:root {
    --bg-black: #0a0a0c;
    --bg-carbon: #121214;
    --bg-card: #1a1a20;
    --bg-card-hover: #212129;
    --brand-blue: #00d4ff;
    --brand-blue-dark: #00a8cc;
    --text-white: #ffffff;
    --text-gray: #a0a0a5;
    --text-gray-dark: #6b6b70;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(10, 10, 12, 0.98);
    border-bottom: 2px solid var(--brand-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-white);
    text-transform: uppercase;
}

.logo span {
    color: var(--brand-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.search-form {
    display: flex;
    flex: 1;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--bg-card);
    border-right: none;
    border-radius: 8px 0 0 8px;
    background-color: var(--bg-card);
    color: var(--text-white);
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.search-input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.search-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: 0.3s;
    color: white;
    font-weight: bold;
}

.search-btn:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-1px);
}

nav a {
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 15px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--brand-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.container {
    padding: 50px 5%;
}

h2 {
    font-size: 32px;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-left: 6px solid var(--brand-blue);
    padding-left: 15px;
    letter-spacing: 2px;
    font-weight: 800;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 35px;
}

.movie-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.movie-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
    border-color: var(--brand-blue);
}

.card-img {
    height: 380px;
    background-size: cover;
    background-position: center;
    transition: 0.3s;
}

.movie-card:hover .card-img {
    transform: scale(1.05);
}

.movie-card h3 {
    font-size: 18px;
    font-weight: 700;
    padding: 20px 20px 10px 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card p {
    font-size: 14px;
    color: var(--brand-blue);
    padding: 0 20px 10px 20px;
    font-weight: 600;
}

.movie-schedule {
    font-size: 13px;
    color: var(--text-gray);
    padding: 0 20px 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.movie-price {
    font-size: 16px;
    color: var(--text-white);
    padding: 0 20px 20px 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.movie-views {
    font-size: 12px;
    color: var(--text-gray-dark);
    padding: 0 20px 20px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.no-results {
    color: var(--text-gray);
    font-size: 18px;
    padding: 60px 0;
    text-align: center;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-black) 0%, rgba(10, 10, 12, 0.85) 40%, rgba(10, 10, 12, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 5% 100px 5%;
    width: 100%;
}

.hero-title {
    font-size: 72px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    font-weight: 900;
}

.hero-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-schedule, .hero-price {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    color: var(--bg-black);
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: 0.3s;
    margin-top: 15px;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.hero-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

/* Movie Detail Page (assistir.php) */
.video-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.trailer-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    border: 2px solid var(--brand-blue);
}

.trailer-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.movie-info {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.movie-info h1 {
    font-size: 48px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 900;
}

.movie-info span {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.movie-detail-meta {
    margin: 30px 0;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid #2a2a33;
}

.movie-detail-meta p {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    color: var(--bg-black);
    padding: 20px 60px;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    cursor: pointer;
    border: none;
}

.btn-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn-voltar {
    color: var(--text-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: 0.3s;
    font-weight: 600;
    font-size: 16px;
}

.btn-voltar:hover {
    color: var(--brand-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 15px 5%;
    }

    .search-form {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .logo {
        font-size: 22px;
    }

    .hero-title {
        font-size: 36px;
    }

    .movie-info h1 {
        font-size: 28px;
    }
}
