/* ============================================================
   ESTILOS GLOBAIS — Site Torrent
   Ordem: 1) Header base (azul/laranja)  2) Override escuro
          3) Estilos do index            4) Estilos do item
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   1) HEADER — TEMA BASE AZUL + LARANJA
   ============================================================ */
:root {
    --nav-blue-1: #172554;
    --nav-blue-2: #1e3a8a;
    --nav-blue-3: #2563eb;
    --nav-border: #3b82f6;
    --nav-divider: #1e40af;

    --orange-primary: #f97316;
    --orange-soft: #fb923c;
    --orange-glow: #fbbf24;

    --nav-text: #eff6ff;
    --nav-text-hover: #fed7aa;
    --nav-text-muted: #bfdbfe;

    --dd-bg-1: #1e3a8a;
    --dd-bg-2: #172554;
    --dd-border: #3b82f6;
    --dd-item-text: #eff6ff;
    --dd-item-hover-text: #fed7aa;
    --dd-item-hover-bg: rgba(251, 146, 60, 0.14);
    --dd-title: #fb923c;

    --search-bg: rgba(0, 0, 0, 0.28);
    --search-border: rgba(251, 146, 60, 0.45);
    --search-placeholder: #bfdbfe;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background:
        radial-gradient(circle at 12% 50%, rgba(251, 146, 60, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 88% 50%, rgba(37, 99, 235, 0.35) 0%, transparent 50%),
        linear-gradient(180deg, var(--nav-blue-3) 0%, var(--nav-blue-2) 55%, var(--nav-blue-1) 100%);
    border-bottom: 1px solid var(--nav-border);
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(251, 146, 60, 0.20) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 146, 60, 0.75), transparent);
    pointer-events: none;
}

/* ---------- Logo / Brand ---------- */
.site-brand {
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
    color: var(--nav-text) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.site-brand i {
    color: var(--orange-soft);
    text-shadow: 0 0 12px rgba(251, 146, 60, 0.65);
}

.site-brand:hover {
    transform: scale(1.03);
    color: #ffffff !important;
}

/* ---------- Nav links ---------- */
.custom-navbar .nav-link {
    color: var(--nav-text) !important;
    font-weight: 500;
    font-size: 0.93rem;
    padding: 8px 14px !important;
    border-radius: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: var(--nav-text-hover) !important;
    background-color: rgba(251, 146, 60, 0.14);
}

.custom-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 2px;
    height: 2px;
    background: var(--orange-soft);
    border-radius: 2px;
    transition: all 0.25s ease;
    opacity: 0;
}

.custom-navbar .nav-link:hover::after {
    left: 15%;
    right: 15%;
    opacity: 1;
}

.custom-navbar .nav-link.active {
    font-weight: 700;
}

.custom-navbar .nav-link.active::after {
    left: 15%;
    right: 15%;
    opacity: 1;
}

/* ---------- Botão Entrar / Usuário ---------- */
.nav-link-user {
    color: #fff !important;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-soft));
    border: 1px solid rgba(251, 146, 60, 0.6);
    font-weight: 700 !important;
    border-radius: 20px !important;
    padding: 7px 16px !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.nav-link-user::after { display: none; }

.nav-link-user:hover {
    background: linear-gradient(135deg, #fb923c, #fdba74) !important;
    color: #172554 !important;
    box-shadow: 0 0 20px rgba(251, 146, 60, 0.65);
    transform: translateY(-1px);
}

/* ---------- Dropdown ---------- */
.custom-dropdown-menu {
    background:
        radial-gradient(circle at 100% 0%, rgba(251, 146, 60, 0.14) 0%, transparent 45%),
        linear-gradient(160deg, var(--dd-bg-1) 0%, var(--dd-bg-2) 100%) !important;
    border: 1px solid var(--dd-border) !important;
    border-radius: 14px !important;
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 24px rgba(37, 99, 235, 0.25) !important;
    padding: 18px !important;
    margin-top: 0 !important;
    overflow: hidden;
    animation: fadeIn 0.22s ease-out;
    position: relative;
}

.custom-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 146, 60, 0.75), transparent);
    pointer-events: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header-title {
    color: var(--dd-title) !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    padding: 0 0 10px 0 !important;
    margin-bottom: 12px !important;
    position: relative;
}

.dropdown-header-title::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 1px;
    background: linear-gradient(90deg, var(--nav-divider), transparent);
}

.dropdown-header-title i {
    color: var(--orange-soft);
}

.custom-dropdown-menu .dropdown-item {
    color: var(--dd-item-text) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    padding: 8px 12px 8px 14px !important;
    border-radius: 8px !important;
    background-color: transparent !important;
    transition: all 0.18s ease-in-out !important;
    text-decoration: none !important;
    position: relative;
}

.custom-dropdown-menu .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: var(--orange-soft);
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.custom-dropdown-menu .dropdown-item:hover,
.custom-dropdown-menu .dropdown-item:focus {
    background-color: var(--dd-item-hover-bg) !important;
    color: var(--dd-item-hover-text) !important;
    transform: translateX(3px);
    padding-left: 18px !important;
}

.custom-dropdown-menu .dropdown-item:hover::before,
.custom-dropdown-menu .dropdown-item:focus::before {
    transform: translateY(-50%) scaleY(1);
}

.dropdown-grid-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.dropdown-genres-menu {
    min-width: 220px !important;
    padding: 16px !important;
    margin-top: 0 !important;
    top: 100% !important;
}

.dropdown-genres-menu .dropdown-header-title {
    padding: 0 0 8px 0 !important;
    margin-bottom: 10px !important;
}

@media (min-width: 1200px) {
    .custom-navbar .nav-item.dropdown {
        position: relative;
    }

    .custom-navbar .nav-item.dropdown::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -6px;
        height: 10px;
        background: transparent;
    }

    .custom-navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0 !important;
        animation: fadeIn 0.2s ease-out;
    }

    .custom-navbar .nav-item.dropdown:hover > .nav-link {
        color: var(--nav-text-hover) !important;
        background-color: rgba(251, 146, 60, 0.14);
    }
}

/* ---------- Busca ---------- */
.search-box-wrapper {
    position: relative;
    min-width: 240px;
}

.search-input-modern {
    background-color: var(--search-bg) !important;
    border: 1px solid var(--search-border) !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 9px 42px 9px 18px !important;
    font-size: 0.88rem !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) inset;
}

.search-input-modern::placeholder {
    color: var(--search-placeholder) !important;
}

.search-input-modern:focus {
    background-color: rgba(0, 0, 0, 0.45) !important;
    border-color: var(--orange-soft) !important;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.25), 0 2px 8px rgba(0, 0, 0, 0.3) inset !important;
    outline: none !important;
}

.btn-search-modern {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--orange-soft);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-search-modern:hover {
    color: #ffffff;
    background-color: var(--orange-primary);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.7);
}

/* ---------- Toggler mobile ---------- */
.navbar-toggler-modern {
    border: 1px solid rgba(251, 146, 60, 0.6) !important;
    padding: 6px 10px !important;
    color: var(--orange-soft) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
}

.navbar-toggler-modern:hover {
    background-color: rgba(251, 146, 60, 0.14);
    border-color: var(--orange-soft) !important;
}

.navbar-toggler-modern:focus {
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.3) !important;
    border-color: var(--orange-soft) !important;
}

@media (max-width: 1199.98px) {
    .custom-dropdown-menu {
        min-width: 100% !important;
    }

    .dropdown-grid-links {
        grid-template-columns: 1fr;
    }

    .search-box-wrapper {
        width: 100%;
        margin-top: 15px;
    }

    .custom-navbar .nav-link {
        padding: 10px 14px !important;
    }
    .custom-navbar .nav-link::after {
        display: none;
    }
}

/* ============================================================
   2) OVERRIDE GLOBAL — TEMA CINEMATOGRÁFICO ESCURO
   (aplicado em index.php e item.php)
   ============================================================ */
:root {
    --bg-0: #05070f;
    --bg-1: #0a0f1f;
    --bg-2: #10172c;
    --bg-3: #172038;

    --glass:        rgba(16, 23, 44, 0.55);
    --glass-strong: rgba(16, 23, 44, 0.85);
    --glass-border: rgba(148, 163, 184, 0.10);
    --glass-border-hi: rgba(56, 189, 248, 0.45);

    --cyan:   #22d3ee;
    --cyan-2: #06b6d4;
    --violet: #8b5cf6;
    --violet-2: #a78bfa;
    --pink:   #ec4899;
    --amber:  #fbbf24;
    --green:  #34d399;

    --text:        #cbd5e1;
    --text-strong: #f8fafc;
    --text-muted:  #94a3b8;

    --grad-primary: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
    --grad-accent:  linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --grad-warm:    linear-gradient(135deg, #fbbf24 0%, #ec4899 100%);

    --glow-cyan:   0 0 32px -8px rgba(34, 211, 238, 0.55);
    --glow-violet: 0 0 32px -8px rgba(139, 92, 246, 0.55);
    --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

html { background: var(--bg-0); }

body {
    background:
        radial-gradient(1100px 700px at 12% -10%, rgba(34, 211, 238, 0.10), transparent 55%),
        radial-gradient(900px  600px at 88% 5%,   rgba(139, 92, 246, 0.10), transparent 55%),
        radial-gradient(1200px 800px at 50% 100%, rgba(236, 72, 153, 0.06), transparent 55%),
        var(--bg-0);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.028) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- Override do header para o tema escuro ---------- */
.site-header {
    background: rgba(5, 7, 15, 0.72) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08) !important;
    box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.9) !important;
}
.site-header::after {
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.55), rgba(139, 92, 246, 0.55), transparent) !important;
    height: 1px !important;
}
.site-brand { color: #f8fafc !important; font-weight: 800 !important; }
.site-brand i {
    color: var(--cyan) !important;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.9) !important;
}
.custom-navbar .nav-link {
    color: rgba(226, 232, 240, 0.82) !important;
    font-weight: 600 !important;
}
.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: var(--cyan) !important;
    background-color: rgba(34, 211, 238, 0.10) !important;
}
.custom-navbar .nav-link::after { background: var(--cyan) !important; }

.nav-link-user {
    background: var(--grad-primary) !important;
    border: none !important;
    color: #05070f !important;
    box-shadow: 0 6px 22px -8px rgba(34, 211, 238, 0.7) !important;
    font-weight: 800 !important;
}
.nav-link-user:hover {
    background: var(--grad-primary) !important;
    color: #05070f !important;
    box-shadow: 0 0 32px -6px rgba(34, 211, 238, 0.95) !important;
    transform: translateY(-1px);
}
.nav-link-user i { color: #05070f !important; }

.custom-dropdown-menu {
    background: linear-gradient(160deg, rgba(16, 23, 44, 0.96) 0%, rgba(5, 7, 15, 0.98) 100%) !important;
    border: 1px solid rgba(34, 211, 238, 0.18) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9), 0 0 40px -20px rgba(34, 211, 238, 0.4) !important;
}
.custom-dropdown-menu::before {
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.8), transparent) !important;
}
.dropdown-header-title { color: var(--cyan) !important; }
.dropdown-header-title i { color: var(--violet-2) !important; }
.dropdown-header-title::after {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.4), transparent) !important;
}
.custom-dropdown-menu .dropdown-item { color: rgba(226, 232, 240, 0.9) !important; }
.custom-dropdown-menu .dropdown-item:hover,
.custom-dropdown-menu .dropdown-item:focus {
    background-color: rgba(34, 211, 238, 0.12) !important;
    color: var(--cyan) !important;
}
.custom-dropdown-menu .dropdown-item::before { background: var(--cyan) !important; }

.search-input-modern {
    background-color: rgba(5, 7, 15, 0.7) !important;
    border: 1px solid rgba(34, 211, 238, 0.22) !important;
    color: #f8fafc !important;
}
.search-input-modern::placeholder { color: rgba(148, 163, 184, 0.7) !important; }
.search-input-modern:focus {
    border-color: var(--cyan) !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.20), 0 0 24px -6px rgba(34, 211, 238, 0.5) !important;
    background-color: rgba(5, 7, 15, 0.9) !important;
}
.btn-search-modern { color: var(--cyan) !important; }
.btn-search-modern:hover {
    background: var(--cyan) !important;
    color: #05070f !important;
    box-shadow: 0 0 24px -4px rgba(34, 211, 238, 0.9) !important;
}
.navbar-toggler-modern {
    border-color: rgba(34, 211, 238, 0.4) !important;
    color: var(--cyan) !important;
}
.navbar-toggler-modern:hover { background-color: rgba(34, 211, 238, 0.12); }
.navbar-toggler-modern:focus { box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.3) !important; }

/* ============================================================
   3) ESTILOS DA HOME (index.php)
   ============================================================ */

/* ---------- Cabeçalho de seção (pílula com ícone) ---------- */
.section-header {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Outfit', 'Inter', sans-serif;
    padding: 10px 24px 10px 10px;
    background: rgba(16, 23, 44, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 100px;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.7);
}
.section-header::before {
    content: '\f008';
    display: none;
}
.section-header .sh-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #05070f;
    font-size: 0.95rem;
    box-shadow: 0 0 22px -4px rgba(34, 211, 238, 0.8);
    flex-shrink: 0;
}
.section-header h1 {
    color: var(--text-strong) !important;
    letter-spacing: -0.3px;
    font-weight: 800;
    font-size: 1rem !important;
    text-transform: uppercase;
    margin: 0 !important;
    line-height: 1.2;
}

/* ---------- Card de capa ---------- */
.media-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    outline: none;
}
.media-card-link:focus-visible .media-card-cover {
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.5), 0 20px 50px -20px rgba(0, 0, 0, 0.9);
}

.media-card { position: relative; margin: 0; }

.media-card-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-3);
    border: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.9);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1),
                box-shadow .35s ease,
                border-color .35s ease;
    isolation: isolate;
}
.media-card-link:hover .media-card-cover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow:
        0 24px 55px -20px rgba(0, 0, 0, 0.95),
        0 0 45px -10px rgba(34, 211, 238, 0.75);
}

.media-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease, filter .4s ease;
    filter: brightness(0.95);
}
.media-card-link:hover .media-card-cover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

/* ---------- Badges ("quadradinhos") ---------- */
.badges {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
    pointer-events: none;
    max-width: 65%;
}
.badges-tl { top: 10px;    left: 10px;  }
.badges-tr { top: 10px;    right: 10px; justify-content: flex-end; }
.badges-bl { bottom: 10px; left: 10px;  }
.badges-br { bottom: 10px; right: 10px; justify-content: flex-end; }

.cover-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-tipo {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    color: #042f2e;
    box-shadow: 0 4px 14px rgba(34, 211, 238, 0.45);
}

.badge-qualidade {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #1e1b4b;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.5);
}

.badge-ano {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.95), rgba(15, 23, 42, 0.95));
    color: #e2e8f0;
}

.badge-nota {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #431407;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.55);
}
.badge-nota i { color: #78350f; font-size: 0.7rem; }

.badge-audio {
    background: linear-gradient(135deg, #db2777, #ec4899);
    color: #fff;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.5);
}

/* ---------- Overlay no hover ---------- */
.cover-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 7, 15, 0) 35%, rgba(5, 7, 15, 0.92) 100%),
        radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.25), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 14px;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}
.media-card-link:hover .cover-overlay { opacity: 1; }

.cover-overlay-title {
    color: #ffffff;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.2px;
}

.cover-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--grad-primary);
    color: #05070f;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-radius: 100px;
    box-shadow: 0 10px 24px -8px rgba(34, 211, 238, 0.85);
}

/* ---------- Paginação ---------- */
.pagination { gap: 6px; }
.pagination .page-link {
    border-radius: 12px !important;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text) !important;
    background: rgba(16, 23, 44, 0.55) !important;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    backdrop-filter: blur(14px);
    padding: 9px 16px;
    transition: all 0.25s cubic-bezier(.2, .7, .2, 1);
    font-family: 'Outfit', 'Inter', sans-serif;
    min-width: 42px;
    text-align: center;
}
.pagination .page-link:hover {
    background: rgba(34, 211, 238, 0.10) !important;
    color: var(--cyan) !important;
    border-color: rgba(34, 211, 238, 0.55) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -12px rgba(34, 211, 238, 0.7);
}
.pagination .page-item.active .page-link {
    background: var(--grad-primary) !important;
    border-color: transparent !important;
    color: #05070f !important;
    box-shadow: 0 10px 28px -10px rgba(34, 211, 238, 0.85);
}
.pagination .page-item.active .page-link:hover {
    transform: translateY(-2px);
}

@media (max-width: 575.98px) {
    .cover-badge       { font-size: 0.58rem; padding: 4px 7px; }
    .badges            { gap: 4px; max-width: 72%; }
    .cover-overlay-title { font-size: 0.75rem; }
    .cover-overlay-btn   { font-size: 0.62rem; padding: 5px 11px; }
    .section-header    { padding: 8px 18px 8px 8px; gap: 10px; }
    .section-header .sh-icon { width: 30px; height: 30px; font-size: 0.85rem; }
    .section-header h1 { font-size: 0.88rem !important; }
}

/* ============================================================
   4) ESTILOS DA PÁGINA DE ITEM (item.php)
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.item-breadcrumb {
    font-size: .82rem;
    padding: 24px 0 0;
    letter-spacing: 0.2px;
}
.item-breadcrumb .breadcrumb,
.item-breadcrumb nav {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    --bs-breadcrumb-divider-color: rgba(148, 163, 184, 0.4);
}
.item-breadcrumb .breadcrumb-item,
.item-breadcrumb .breadcrumb-item a,
.item-breadcrumb a,
.item-breadcrumb span,
.item-breadcrumb li {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-weight: 500;
}
.item-breadcrumb .breadcrumb-item a:hover,
.item-breadcrumb a:hover {
    color: var(--cyan) !important;
}
.item-breadcrumb .breadcrumb-item.active,
.item-breadcrumb .breadcrumb-item.active span {
    color: var(--cyan) !important;
    font-weight: 700;
}

/* ---------- Headline ---------- */
.item-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(1.6rem, 2.6vw + 1rem, 2.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--text-strong);
    margin: 18px 0 10px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.item-subtitle {
    font-style: italic;
    color: var(--violet-2);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
}
.item-date {
    font-size: .8rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    font-weight: 500;
    padding: 6px 14px;
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 100px;
}
.item-date i { color: var(--cyan); }

/* ---------- Hero cinematográfico ---------- */
.item-hero {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    padding: 32px;
    margin-bottom: 44px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    isolation: isolate;
}
.item-hero-bg {
    position: absolute;
    inset: -8%;
    background-size: cover;
    background-position: center;
    filter: blur(60px) saturate(1.4) brightness(0.5);
    transform: scale(1.15);
    opacity: 0.55;
    z-index: -2;
}
.item-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(5, 7, 15, 0.94) 0%, rgba(5, 7, 15, 0.72) 55%, rgba(139, 92, 246, 0.14) 100%),
        linear-gradient(180deg, rgba(5, 7, 15, 0.2) 0%, rgba(5, 7, 15, 0.7) 100%);
    z-index: -1;
}
.item-hero-content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

/* Pôster */
.item-cover {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: var(--bg-3);
    box-shadow:
        0 30px 60px -24px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(34, 211, 238, 0.18),
        0 0 60px -16px rgba(139, 92, 246, 0.55);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.item-cover:hover {
    transform: translateY(-4px);
    box-shadow:
        0 36px 70px -24px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(34, 211, 238, 0.35),
        0 0 80px -14px rgba(34, 211, 238, 0.7);
}
.item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Selo de faixa etária */
.item-rating {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1rem;
    line-height: 1;
    color: #05070f;
    background: #f8fafc;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(5, 7, 15, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2;
}
.fe-livre { background: linear-gradient(135deg, #10b981, #34d399); color: #022c22; }
.fe-10    { background: linear-gradient(135deg, #0ea5e9, #22d3ee); color: #042f2e; }
.fe-12    { background: linear-gradient(135deg, #facc15, #fbbf24); color: #422006; }
.fe-14    { background: linear-gradient(135deg, #f97316, #fb923c); color: #431407; }
.fe-16    { background: linear-gradient(135deg, #ef4444, #f87171); color: #450a0a; }
.fe-18    { background: linear-gradient(135deg, #111827, #1f2937); color: #f8fafc; }
.fe-padrao { background: #f8fafc; color: #05070f; }

/* Info */
.item-info { padding-top: 6px; min-width: 0; }
.item-title-info {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 18px;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

/* ---------- Chips / Pills ---------- */
.item-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.item-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.20);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all .25s ease;
}
.item-pill i { color: var(--cyan); font-size: .8rem; }
.item-pill:hover {
    border-color: var(--cyan);
    background: rgba(34, 211, 238, 0.12);
    color: var(--text-strong);
    transform: translateY(-1px);
}

.item-pill.imdb {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(236, 72, 153, 0.10));
    border-color: rgba(251, 191, 36, 0.55);
    color: #fde68a;
    font-weight: 800;
}
.item-pill.imdb i { color: #fbbf24; }
a.item-pill.imdb:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(236, 72, 153, 0.18));
    border-color: #fbbf24;
    color: #fffbeb;
    box-shadow: 0 8px 26px -10px rgba(251, 191, 36, 0.7);
}

/* ---------- Ficha rápida ao lado do pôster ---------- */
.item-meta-list {
    margin: 0;
    font-size: 0.94rem;
    line-height: 2.1;
    color: var(--text);
    border-top: 1px solid rgba(148, 163, 184, 0.10);
    padding-top: 18px;
}
.item-meta-list strong {
    color: var(--text-strong);
    font-weight: 700;
    margin-right: 4px;
}
.item-meta-list a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
}
.item-meta-list a:hover {
    color: var(--cyan-2);
    text-decoration: underline;
}

/* Gêneros em pílula */
.genre-balloon-link {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(139, 92, 246, 0.12) !important;
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
    color: var(--violet-2) !important;
    padding: 3px 12px !important;
    border-radius: 100px !important;
    font-size: .78rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all .2s ease !important;
    margin: 3px 4px 3px 0 !important;
    line-height: 1.5 !important;
    letter-spacing: .2px !important;
}
.genre-balloon-link:hover {
    background: var(--grad-accent) !important;
    border-color: transparent !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px -8px rgba(236, 72, 153, 0.6) !important;
}

/* ---------- Títulos de seção ---------- */
.item-section { margin-bottom: 48px; }

.item-section-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: .4px;
    text-transform: uppercase;
    margin: 0 0 22px 0;
    padding: 8px 20px 8px 8px;
    background: rgba(16, 23, 44, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 100px;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.7);
}
.item-section-title i {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #05070f;
    font-size: 0.9rem;
    box-shadow: 0 0 22px -4px rgba(34, 211, 238, 0.8);
    flex-shrink: 0;
}

/* ---------- Painéis genéricos ---------- */
.item-panel {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px 32px;
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.item-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--grad-primary);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.7);
}
.synopsis-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.9;
    font-weight: 400;
    margin: 0;
}

/* ---------- Downloads ---------- */
.download-panel {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 26px 28px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
}
.download-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.download-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(5, 7, 15, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 16px;
    transition: all .3s ease;
}
.download-row:hover {
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(5, 7, 15, 0.72);
    transform: translateX(4px);
    box-shadow: 0 14px 40px -20px rgba(34, 211, 238, 0.5);
}
.download-name {
    flex: 1;
    min-width: 220px;
    text-align: left;
    font-weight: 600;
    font-size: .95rem;
    color: var(--text-strong);
    line-height: 1.4;
    word-break: break-word;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 100px;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--cyan) !important;
    text-decoration: none;
    background: rgba(34, 211, 238, 0.06);
    border: 1.5px solid rgba(34, 211, 238, 0.5);
    backdrop-filter: blur(10px);
    transition: all .3s cubic-bezier(.2, .7, .2, 1);
    min-width: 190px;
    position: relative;
    overflow: hidden;
}
.download-btn i { font-size: .85rem; transition: transform .3s ease; }
.download-btn:hover {
    background: var(--grad-primary);
    color: #05070f !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px -12px rgba(34, 211, 238, 0.85),
        0 0 0 1px rgba(34, 211, 238, 0.5);
}
.download-btn:hover i { transform: scale(1.15) rotate(-6deg); }

.download-btn-green {
    color: var(--green) !important;
    border-color: rgba(52, 211, 153, 0.5);
    background: rgba(52, 211, 153, 0.06);
}
.download-btn-green:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #022c22 !important;
    box-shadow:
        0 12px 40px -12px rgba(52, 211, 153, 0.85),
        0 0 0 1px rgba(52, 211, 153, 0.5);
}

/* ---------- Bloco "Antes de Baixar" ---------- */
.before-download {
    margin-top: 26px;
    padding: 24px 22px 22px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.07) 0%, rgba(34, 211, 238, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}
.before-download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 200px at 100% 0%, rgba(34, 211, 238, 0.10), transparent 60%);
    pointer-events: none;
}

.before-download-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}
.before-download-head .bd-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-primary);
    color: #05070f;
    font-size: .95rem;
    box-shadow: 0 0 24px -6px rgba(34, 211, 238, 0.85);
    flex-shrink: 0;
}
.before-download-head h3 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: .3px;
    margin: 0;
    text-transform: uppercase;
}
.before-download-head p {
    margin: 2px 0 0 0;
    font-size: .82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.bd-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    position: relative;
}
.bd-step {
    background: rgba(5, 7, 15, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 16px;
    padding: 18px 16px 16px;
    position: relative;
    transition: all .3s cubic-bezier(.2, .7, .2, 1);
    overflow: hidden;
}
.bd-step::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 100% 0%, var(--step-color, var(--cyan)), transparent 70%);
    opacity: 0.18;
    pointer-events: none;
}
.bd-step:hover {
    transform: translateY(-3px);
    border-color: var(--step-color, var(--cyan));
    box-shadow: 0 18px 40px -20px var(--step-color, var(--cyan));
}

.bd-step-num {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: .85rem;
    font-weight: 900;
    color: #05070f;
    background: var(--step-color, var(--cyan));
    box-shadow: 0 0 18px -4px var(--step-color, var(--cyan));
    margin-bottom: 12px;
}
.bd-step-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 800;
    color: var(--text-strong);
    margin: 0 0 6px 0;
    line-height: 1.25;
    letter-spacing: -0.2px;
}
.bd-step-text {
    font-size: .84rem;
    line-height: 1.65;
    color: var(--text);
    margin: 0;
    font-weight: 500;
}
.bd-step-text a {
    color: var(--step-color, var(--cyan));
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    transition: opacity .2s ease;
}
.bd-step-text a:hover { opacity: 0.75; }

.bd-step-cyan   { --step-color: #22d3ee; }
.bd-step-violet { --step-color: #a78bfa; }
.bd-step-pink   { --step-color: #f472b6; }

.bd-footer {
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(34, 211, 238, 0.06);
    border: 1px dashed rgba(34, 211, 238, 0.30);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    flex-wrap: wrap;
}
.bd-footer i {
    color: var(--cyan);
    font-size: 1.15rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
}
.bd-footer p {
    margin: 0;
    font-size: .86rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.55;
}
.bd-footer p strong { color: var(--text-strong); }
.bd-footer kbd {
    display: inline-block;
    background: var(--grad-primary);
    color: #05070f;
    font-family: 'Inter', monospace;
    font-size: .72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 5px;
    margin: 0 2px;
}

/* ---------- Ficha do arquivo ---------- */
.ficha-panel {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.06) 0%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-left: 3px solid var(--amber);
    border-radius: 20px;
    padding: 26px 30px;
    color: var(--text);
    font-size: .95rem;
    line-height: 1.9;
    font-weight: 500;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
}
.ficha-panel .item-section-title {
    background: rgba(5, 7, 15, 0.55);
    border-color: rgba(251, 191, 36, 0.35);
}
.ficha-panel .item-section-title i {
    background: var(--grad-warm);
    box-shadow: 0 0 22px -4px rgba(251, 191, 36, 0.8);
}
.ficha-panel a { color: var(--amber); }
.ficha-panel strong { color: #fde68a; }

/* ---------- Detalhes complementares ---------- */
.extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.extra-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    transition: all .3s cubic-bezier(.2, .7, .2, 1);
    box-shadow: var(--shadow-card);
}
.extra-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-color, var(--cyan));
    box-shadow: 0 0 18px var(--accent-color, var(--cyan));
}
.extra-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color, var(--cyan));
    box-shadow: 0 20px 50px -20px var(--accent-color, var(--cyan));
}
.extra-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #05070f;
    background: var(--accent-color, var(--cyan));
    flex-shrink: 0;
    box-shadow: 0 0 24px -4px var(--accent-color, var(--cyan));
}
.extra-body { display: flex; flex-direction: column; min-width: 0; }
.extra-label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3px;
}
.extra-value {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-strong);
    word-break: break-word;
    line-height: 1.3;
}
.extra-cyan   { --accent-color: #22d3ee; }
.extra-green  { --accent-color: #34d399; }
.extra-amber  { --accent-color: #fbbf24; }
.extra-violet { --accent-color: #8b5cf6; }
.extra-pink   { --accent-color: #ec4899; }
.extra-indigo { --accent-color: #6366f1; }

.dates-panel {
    background: rgba(5, 7, 15, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 14px;
    padding: 16px 22px;
    font-size: .85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: var(--text-muted);
    margin-top: 18px;
    backdrop-filter: blur(10px);
}
.dates-panel li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 500;
    list-style: none;
}
.dates-panel li strong { color: var(--text-strong); }
.dates-panel i { color: var(--cyan); }

/* ---------- Equipe & Elenco ---------- */
.cast-subtitle {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: .76rem;
    font-weight: 800;
    color: var(--cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cast-subtitle i { color: var(--cyan); font-size: .85rem; }
.cast-subtitle::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.4), transparent);
}
.cast-subtitle + .cast-grid + .cast-subtitle { margin-top: 40px; }

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 22px;
}
.cast-card {
    text-align: center;
    transition: transform .3s ease;
}
.cast-card:hover { transform: translateY(-4px); }

.cast-img {
    width: 110px;
    height: 110px;
    margin: 0 auto 12px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-3);
    border: 1px solid rgba(34, 211, 238, 0.20);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.15),
        0 20px 40px -20px rgba(0, 0, 0, 0.9);
    transition: all .35s cubic-bezier(.2, .7, .2, 1);
    position: relative;
}
.cast-card:hover .cast-img {
    border-color: var(--cyan);
    box-shadow:
        0 0 0 1px var(--cyan),
        0 0 40px -6px rgba(34, 211, 238, 0.8),
        0 24px 50px -20px rgba(0, 0, 0, 0.9);
}
.cast-img img { width: 100%; height: 100%; object-fit: cover; }
.cast-img i { color: var(--cyan) !important; opacity: 0.6; }

.cast-name {
    display: block;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-strong);
    margin-bottom: 2px;
    line-height: 1.3;
}
.cast-role {
    display: block;
    font-size: .78rem;
    color: var(--violet-2);
    font-weight: 500;
    font-style: italic;
}

/* ---------- Comentários ---------- */
.comments-panel {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 26px 28px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
}

/* ---------- Recomendados ---------- */
.reco-section {
    border-top: 1px solid rgba(148, 163, 184, 0.10);
    padding-top: 44px;
    margin-top: 30px;
}
.reco-card {
    display: block;
    text-decoration: none;
    color: var(--text);
}
.reco-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-3);
    border: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.9);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.reco-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.reco-card:hover .reco-poster {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow:
        0 24px 50px -20px rgba(0, 0, 0, 0.95),
        0 0 40px -10px rgba(34, 211, 238, 0.7);
}
.reco-card:hover .reco-poster img { transform: scale(1.06); }
.reco-title {
    margin-top: 10px;
    font-weight: 700;
    font-size: .88rem;
    color: var(--text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s ease;
}
.reco-card:hover .reco-title { color: var(--cyan); }
.reco-meta {
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 500;
}

.trailer-wrap {
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 20px 60px -20px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(34, 211, 238, 0.15),
        0 0 40px -12px rgba(139, 92, 246, 0.4);
}

/* ---------- Responsivo do item ---------- */
@media (max-width: 991.98px) {
    .item-hero { padding: 24px; border-radius: 20px; }
    .item-hero-content { grid-template-columns: 220px 1fr; gap: 24px; }
    .item-cover { border-radius: 14px; }
}

@media (max-width: 767.98px) {
    .item-hero { padding: 20px 18px; }
    .item-hero-content {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .item-cover { max-width: 240px; margin: 0 auto; }
    .download-row { flex-direction: column; align-items: stretch; }
    .download-name { text-align: center; min-width: 0; }
    .download-btn { width: 100%; min-width: 0; }
    .cast-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }
    .cast-img { width: 96px; height: 96px; border-radius: 16px; }
    .item-section { margin-bottom: 36px; }
    .item-panel { padding: 22px 20px; }
    .item-section-title { font-size: .9rem; padding: 6px 16px 6px 6px; }
    .item-section-title i { width: 30px; height: 30px; font-size: .8rem; }
    .bd-steps { grid-template-columns: 1fr; }
    .before-download { padding: 20px 16px; }
    .bd-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}


/* Container principal dos comentários */
.comentarios-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Estilo do Card de cada comentário */
.card-comentario {
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.card-comentario .card-body {
    padding: 0.5rem 0;
}

/* Nome do Usuário */
.nome-usuario {
    font-weight: 700;
    color: #2c3e50;
    font-size: 0.95rem;
}

/* Data */
.data-comentario {
    color: #95a5a6;
    font-size: 0.8rem;
}

/* Caixa de texto do form */
#texto-comentario {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    resize: none;
    transition: border-color 0.3s;
}

#texto-comentario:focus {
    border-color: #0d6efd;
    box-shadow: none;
}

/* Botão Enviar */
#btn-enviar-comentario {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

/* Uma pequena animação opcional para o comentário que acabou de entrar */
.novo-comentario-animacao {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
