/* ============================================================
   CristãoPlay - Estilo Premium Netflix
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #000000;
    --surface: #141414;
    --surface-2: #1f1f1f;
    --surface-3: #2a2a2a;
    --text: #ffffff;
    --text-dim: #b3b3b3;
    --text-dimmer: #808080;
    --accent: #C9A961;
    --accent-bright: #d4b876;
    --danger: #e50914;
    --success: #46d369;
    --border: rgba(255, 255, 255, 0.08);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    transition: background 0.3s ease;
}

.header.scrolled {
    background: var(--surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo span {
    color: var(--accent);
}

.header-nav {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-left: 40px;
    flex: 1;
}

.header-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 14px 8px 38px;
    border-radius: 4px;
    width: 0;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 14px;
    pointer-events: none;
}

.search-box.open input {
    width: 240px;
    opacity: 1;
    pointer-events: auto;
}

.search-icon {
    position: absolute;
    left: 10px;
    pointer-events: none;
    color: var(--text);
    width: 20px;
    height: 20px;
}

.search-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    max-height: 850px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0 4% 120px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(77deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 45%, transparent 80%),
        linear-gradient(180deg, transparent 0%, transparent 50%, var(--bg) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero-badge::before {
    content: '';
    width: 3px;
    height: 22px;
    background: var(--accent);
}

.hero-title {
    font-size: clamp(36px, 5.5vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    max-width: 520px;
    margin-bottom: 28px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-dim);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--text);
    color: #000;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.75);
}

.btn-secondary {
    background: rgba(109, 109, 110, 0.7);
    color: var(--text);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(109, 109, 110, 0.4);
}

.btn-accent {
    background: var(--accent);
    color: #000;
}

.btn-accent:hover {
    background: var(--accent-bright);
}

/* ============================================================
   SEÇÕES DE CARROSSEL
   ============================================================ */
.rows {
    margin-top: -100px;
    position: relative;
    z-index: 5;
    padding-bottom: 80px;
}

.row {
    margin-bottom: 50px;
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    margin-bottom: 14px;
}

.row-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.row-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background: var(--accent);
    margin-right: 12px;
    vertical-align: middle;
    border-radius: 2px;
}

.row-scroll-wrapper {
    position: relative;
    padding: 0 4%;
}

.row-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 30px 0;
    margin: -30px 0;
}

.row-scroll::-webkit-scrollbar { display: none; }

.scroll-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--text);
}

.row-scroll-wrapper:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.scroll-btn.prev { left: 0; }
.scroll-btn.next { right: 0; }

/* ============================================================
   CARD DO FILME
   ============================================================ */
.card {
    flex: 0 0 auto;
    width: 200px;
    aspect-ratio: 2/3;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface-2);
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    will-change: transform;
}

.card:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.95) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-overlay-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.card-overlay-meta {
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    gap: 8px;
}

/* ============================================================
   PÁGINA DO FILME
   ============================================================ */
.filme-hero {
    position: relative;
    min-height: 70vh;
    padding: 120px 4% 60px;
    overflow: hidden;
}

.filme-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.filme-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(77deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%),
        linear-gradient(180deg, transparent 0%, transparent 40%, var(--bg) 100%);
}

.filme-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.filme-categoria {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 14px;
}

.filme-titulo {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.filme-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filme-meta-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 500;
}

.filme-desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 28px;
    max-width: 620px;
}

/* Player */
.player-wrapper {
    position: relative;
    padding-top: 100px;
    padding-bottom: 80px;
    padding-left: 4%;
    padding-right: 4%;
    background: var(--bg);
}

.player-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    aspect-ratio: 16/9;
}

.player-container iframe,
.player-container video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Marca d'água */
.watermark {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    pointer-events: none;
    z-index: 10;
    user-select: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 50px 4% 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-logo span { color: var(--accent); }

.footer-slogan {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 26px;
    font-style: italic;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    font-size: 13px;
    color: var(--text-dim);
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
    color: var(--text-dimmer);
    font-size: 12px;
}

/* ============================================================
   PÁGINA EXPIRADO / SEM ACESSO
   ============================================================ */
.tela-aviso {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #000 70%);
}

.tela-aviso-box {
    max-width: 520px;
}

.tela-aviso-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--accent);
}

.tela-aviso h1 {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.tela-aviso p {
    color: var(--text-dim);
    margin-bottom: 28px;
    line-height: 1.6;
    font-size: 16px;
}

.tela-aviso .btn {
    background: #25d366;
    color: #fff;
    padding: 14px 32px;
}

.tela-aviso .btn:hover {
    background: #1fb955;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .header {
        padding: 14px 4%;
    }

    .logo { font-size: 22px; }

    .header-nav {
        gap: 16px;
        margin-left: 16px;
    }

    .header-nav a { font-size: 12px; }

    .hero {
        height: 75vh;
        min-height: 500px;
        padding-bottom: 80px;
    }

    .hero-title { font-size: 32px; line-height: 1.1; }
    .hero-desc { font-size: 14px; }

    .btn { padding: 11px 22px; font-size: 14px; }

    .rows { margin-top: -60px; }

    .row-title { font-size: 17px; }

    .card { width: 130px; }

    .filme-titulo { font-size: 28px; }
    .filme-desc { font-size: 14px; }

    .search-box.open input { width: 180px; }

    .header-nav { display: none; }
}

@media (max-width: 480px) {
    .card { width: 115px; }
    .hero-title { font-size: 26px; }
    .row-title { font-size: 15px; }
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.loading {
    background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
