/*
Theme Name: CineStream
Theme URI: https://cinestream.theme
Author: CineStream Team
Author URI: https://cinestream.theme
Description: Tema WordPress profissional, leve e performático para filmes e séries. Integração com TMDB, DramaBox e ReelShort. Layout responsivo, player de vídeo integrado, otimizado para SEO.
Version: 1.0.11
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cinestream
Tags: movies, tv-shows, streaming, video, entertainment, responsive, seo-optimized
*/

/* ==========================================================================
   Reset e Base Styles
   ========================================================================== */

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

:root {
    --primary-color: #e50914;
    --secondary-color: #141414;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --background-dark: #000000;
    --background-light: #1a1a1a;
    --card-background: #2a2a2a;
    --hover-color: #f40612;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Pages (default WP pages)
   ========================================================================== */

.page-content {
    padding: 28px 0 40px;
    max-width: 900px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 32px;
}

.page-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.page-body {
    color: rgba(255,255,255,0.9);
    max-width: 80ch;
    margin: 0 auto;
    text-align: left;
}

.page-body p {
    margin: 0 0 14px;
}

.page-body a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .page-content {
        padding: 20px 0 32px;
        max-width: 100%;
    }

    .page-title {
        font-size: 28px;
    }

    .page-body {
        max-width: 100%;
        padding: 0 12px;
    }
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Container e Grid System
   ========================================================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

/* ==========================================================================
   Header e Navigation
   ========================================================================== */


.site-header {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.site-logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
}

.nav-menu {
    margin: 0 auto;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-dropdown {
    position: relative;
}



.nav-dropdown-toggle::after {
    content: "▾";
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.8;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 520px;
    display: none;
    gap: 18px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 55px rgba(0,0,0,0.65);
    z-index: 2000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.nav-dropdown-title {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 700;
}

.nav-dropdown-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-dropdown-menu a {
    font-size: 14px;
    color: rgba(255,255,255,0.92);
}

.nav-dropdown-menu a:hover {
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .nav-dropdown-menu {
        min-width: 320px;
    }
    .nav-dropdown:hover .nav-dropdown-menu {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Header (Mobile behavior)
   ========================================================================== */
@media (max-width: 768px) {
    .main-navigation {
        position: relative;
        gap: 12px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border-radius: 12px;
        background: rgba(20, 20, 20, 0.98);
        border: 1px solid rgba(255,255,255,0.12);
        box-shadow: 0 18px 55px rgba(0,0,0,0.65);
        z-index: 2500;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }

    /* Mobile dropdown: tap to open (JS toggles .open on .nav-dropdown) */
    .nav-dropdown-menu {
        position: static;
        min-width: auto;
        margin-top: 8px;
        padding: 10px;
        display: none;
        grid-template-columns: 1fr;
        gap: 12px;
        box-shadow: none;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: grid;
    }

    /* Collapse search into icon */
    .search-form {
        background: transparent;
        padding: 0;
    }

    .search-form input {
        width: 0 !important;
        padding: 0 !important;
        opacity: 0;
        pointer-events: none;
        transition: width 220ms ease, opacity 160ms ease, padding 220ms ease;
        border: 0;
        background: transparent;
    }

    .search-form.is-open input {
        width: 180px !important;
        padding: 8px 40px 8px 12px !important;
        opacity: 1;
        pointer-events: auto;
        background: var(--card-background);
        border-radius: 4px;
        border: 1px solid rgba(255,255,255,0.12);
    }
}

.row-nav {
    cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--background-dark);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    align-items: start;
    margin-bottom: 28px;
}

/* Footer: brand section styling */
.footer-brand {
    max-width: 360px;
    text-align: left;
}

.footer-brand .footer-desc {
    max-width: 46ch;
    margin: 6px 0 0;
    text-align: left;
}

.footer-brand h3 {
    text-align: left;
}

.footer-brand-logo {
    display: flex;
    justify-content: flex-start;
}

.footer-brand-logo .footer-logo-link {
    text-align: left;
}

@media (max-width: 980px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        justify-items: center;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .site-footer .footer-section {
        text-align: center;
    }

    .site-footer .footer-section.footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
    }

    .site-footer .footer-section.footer-brand h3,
    .site-footer .footer-section.footer-brand .footer-desc,
    .site-footer .footer-section.footer-brand .footer-brand-logo {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand h3 {
        text-align: center;
    }

    .footer-brand .footer-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-brand-logo {
        justify-content: center;
    }

    .footer-brand-logo .footer-logo-link {
        text-align: center;
    }

    .site-footer .footer-brand {
        text-align: center;
    }

    .site-footer .footer-brand-logo {
        justify-content: center;
    }

    .site-footer .footer-logo-link {
        text-align: center;
    }

    .site-footer .footer-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .site-footer .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-left: 0;
        margin: 0;
    }

    .site-footer .footer-section ul li {
        margin-bottom: 0;
    }
}

.footer-section h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.footer-section a {
    color: rgba(255,255,255,0.9);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-desc {
    color: var(--text-secondary);
    margin-top: 6px;
}

.footer-bottom {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu a {
    color: rgba(255,255,255,0.85);
}

.footer-menu a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }
}
.nav-menu a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--card-background);
    border-radius: 4px;
    padding: 8px 15px;
}

.search-form input {
    background: transparent;
    border: none;
    color: var(--text-color);
    outline: none;
    width: 200px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    margin-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.9) 100%);
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.hero-rating {
    color: #ffd700;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.btn-primary:hover {
    background: var(--hover-color);
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* ==========================================================================
   Movie/Series Cards
   ========================================================================== */

.content-section {
    padding: 60px 0;
}

.archive-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 30px 0 20px;
}

.archive-title {
    font-size: clamp(26px, 3.2vw, 38px);
    letter-spacing: -0.02em;
}

.archive-description {
    color: var(--text-secondary);
    max-width: 72ch;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 40px;
    border-bottom: 1px solid var(--border-color);
    background:
        radial-gradient(900px 400px at 15% 0%, rgba(229, 9, 20, 0.22), transparent 60%),
        radial-gradient(900px 500px at 85% 10%, rgba(0, 153, 255, 0.18), transparent 55%),
        linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.0));
}

.hero-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    letter-spacing: .08em;
    font-size: 11px;
}

/* ==========================================================================
   Home Layout (Dooplay-like)
   ========================================================================== */

.home-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
    padding-top: 18px;
}

.home-main {
    min-width: 0;
}

.home-sidebar {
    align-self: start;
    position: static;
}

.home-sidebar .sidebar-box {
    position: sticky;
    top: 92px;
}

.sidebar-box {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 14px;
}

.sidebar-box-title {
    font-size: 16px;
    margin-bottom: 12px;
}

.sidebar-genre-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-genre-list a {
    display: grid;
    grid-template-columns: 16px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-genre-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.15), transparent);
    transition: left 0.5s ease;
}

.sidebar-genre-list a:hover {
    background: rgba(229, 9, 20, 0.12);
    border-color: rgba(229, 9, 20, 0.4);
    color: #fff;
    transform: translateX(4px);
}

.sidebar-genre-list a:hover::before {
    left: 100%;
}

.sidebar-genre-list a:hover .dot {
    background: var(--primary-color);
    box-shadow: 0 0 8px rgba(229, 9, 20, 0.6);
}

.sidebar-genre-list a:hover .name {
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-genre-list a:hover .count {
    color: rgba(229, 9, 20, 0.8);
}

.sidebar-genre-list .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.35);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.sidebar-genre-list .name {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.sidebar-genre-list .count {
    color: var(--text-secondary);
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-hero {
    position: relative;
    z-index: 0;
    border-radius: 14px;
    overflow: hidden;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.10);
}

.feature-hero--full {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    min-height: 520px;
}

.feature-hero--full::before {
    content: none;
}

.feature-hero-overlay {
    position: absolute;
    inset: 0;
    padding: 120px 34px 52px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: none;
}

.feature-hero-overlay--contained {
    position: relative;
    inset: auto;
    padding: 110px 0 46px;
    /* Let the full-bleed hero handle the overlay; keep content above it */
    background: transparent;
    z-index: 2;
}

/* Home: top hero rotator (3 titles) */
.feature-hero--full .feature-hero-slides {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.feature-hero--full .feature-hero-slide {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: inherit;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #0a0a0a;
    opacity: 0;
    display: none;
    transform: translateX(100%);
    transition: opacity 500ms ease, transform 500ms ease-out;
    pointer-events: none;
}

.feature-hero--full .feature-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 35%, rgba(0,0,0,0.25) 65%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
    pointer-events: none;
}

.feature-hero--full .feature-hero-slide.is-active {
    opacity: 1 !important;
    display: block !important;
    pointer-events: auto;
    z-index: 1;
    transform: translateX(0);
}

.feature-hero--full .feature-hero-slide.is-enter {
    display: block !important;
    opacity: 0 !important;
    transform: translateX(100%);
    pointer-events: none;
    z-index: 1;
}

.feature-hero--full .feature-hero-slide.is-exit {
    display: block !important;
    opacity: 0 !important;
    transform: translateX(-6%);
    pointer-events: none;
    z-index: 0;
}

/* Hero navigation arrows */
.feature-hero--full {
    position: relative;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-nav:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.hero-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-nav--prev {
    left: 20px;
}

.hero-nav--next {
    right: 20px;
}

.hero-nav svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .hero-nav {
        width: 36px;
        height: 36px;
        opacity: 0.5;
        top: auto;
        bottom: 20px;
        transform: translateY(0);
    }

    .hero-nav:hover {
        transform: translateY(0) scale(1.1);
    }

    .hero-nav:active {
        transform: translateY(0) scale(0.95);
    }

    .hero-nav--prev {
        left: 50%;
        transform: translateX(calc(-100% - 8px)) translateY(0);
    }

    .hero-nav--prev:hover {
        transform: translateX(calc(-100% - 8px)) translateY(0) scale(1.1);
    }

    .hero-nav--prev:active {
        transform: translateX(calc(-100% - 8px)) translateY(0) scale(0.95);
    }

    .hero-nav--next {
        right: 50%;
        transform: translateX(calc(100% + 8px)) translateY(0);
    }

    .hero-nav--next:hover {
        transform: translateX(calc(100% + 8px)) translateY(0) scale(1.1);
    }

    .hero-nav--next:active {
        transform: translateX(calc(100% + 8px)) translateY(0) scale(0.95);
    }

    .hero-nav svg {
        width: 16px;
        height: 16px;
    }
}

.feature-strip--full {
    padding-top: 18px;
}

.feature-hero-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
}

.feature-hero-title {
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.55);
}

.feature-hero-desc {
    color: var(--text-secondary);
    max-width: 78ch;
    font-size: 15px;
    margin-bottom: 16px;
}

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

.feature-strip .row-scroller {
    grid-auto-columns: minmax(180px, 220px);
}

.row-section {
    padding: 18px 0 10px;
    overflow: visible;
}

.section-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.row-nav {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

.row-nav:hover {
    background: rgba(255,255,255,0.12);
}

.row-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 200px);
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 15px 2px 20px;
    scroll-snap-type: x mandatory;
}

.row-scroller::-webkit-scrollbar {
    height: 10px;
}

.row-scroller::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
}

.row-scroller .content-card {
    scroll-snap-align: start;
    z-index: 1;
}

.row-scroller .content-card:hover {
    transform: translateY(-4px) scale(1.03);
    z-index: 100;
}

.row-scroller .content-card img {
    aspect-ratio: 2/3;
}

@media (max-width: 768px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
    .home-sidebar {
        position: static;
    }
    .feature-hero {
        min-height: 360px;
    }
    .feature-hero--full {
        min-height: 420px;
    }
    .feature-hero-overlay--contained {
        padding: 80px 0 34px;
    }
}

/* ==========================================================================
   Watch Layout (Single)
   ========================================================================== */

.watch-section {
    padding: 26px 0 26px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.watch-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 26px;
    align-items: stretch;
    max-width: 100%;
    min-width: 0;
}

.watch-main {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.watch-player {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
}

.watch-player iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}

.watch-subtitle {
    margin: 14px 0 10px;
    font-size: 16px;
}

.sources-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.watch-sidebar {
    position: static;
    top: 92px;
    padding: 0 14px 14px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    max-height: calc(100vh - 120px);
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    font-size: 16px;
    margin: 0 0 12px 0;
    padding-top: 14px;
}

.sidebar-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 10px;
}

.sidebar-item:hover {
    background: rgba(255,255,255,0.06);
}

.sidebar-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
}

.sidebar-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.sidebar-sub {
    display: flex;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 12px;
}

.sidebar-rating {
    color: #ffd700;
}

@media (max-width: 980px) {
    .watch-layout {
        grid-template-columns: 1fr;
    }
    .watch-sidebar {
        position: static;
        max-height: none;
    }
}

/* Trailer thumbnail (click to load YouTube) */
.trailer-thumb {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.trailer-thumb__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%);
    transition: var(--transition);
}

.trailer-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(229, 9, 20, 0.92);
    box-shadow: 0 18px 45px rgba(0,0,0,0.55);
    transition: var(--transition);
}

.trailer-play svg {
    display: block;
    width: 34px;
    height: 34px;
}

.trailer-thumb__label {
    position: absolute;
    left: 18px;
    bottom: 14px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    text-shadow: 0 8px 26px rgba(0,0,0,0.7);
}

.trailer-thumb:hover .trailer-thumb__shade {
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.75) 100%);
}

.trailer-thumb:hover .trailer-play {
    transform: translate(-50%, -50%) scale(1.06);
    background: rgba(229, 9, 20, 1);
}

.home-hero h1 {
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1.05;
    margin-bottom: 10px;
}

.home-hero p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 70ch;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px 0;
    overflow: visible;
}

.content-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--card-background);
    z-index: 1;
}

.content-card:hover {
    transform: scale(1.05);
    z-index: 100;
    box-shadow: 
        0 0 0 1px rgba(229, 9, 20, 0.3),
        0 0 20px rgba(229, 9, 20, 0.3),
        0 0 40px rgba(229, 9, 20, 0.2),
        0 0 60px rgba(229, 9, 20, 0.1);
}

.content-card-image {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.content-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 100%);
    padding: 20px;
    opacity: 1;
    transition: var(--transition);
}

.content-card-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: scale(0.96);
    transition: var(--transition);
    pointer-events: none;
    text-shadow: 0 8px 24px rgba(0,0,0,0.55);
}

.content-card:hover .content-card-play {
    opacity: 1;
    transform: scale(1);
}

.content-card:hover .content-card-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.92) 100%);
}

.content-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.content-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.content-card-rating {
    color: #ffd700;
}

/* ==========================================================================
   Single Content Page
   ========================================================================== */

.single-content {
    /* Header is sticky (not overlay), so extra top padding creates a blank band above the backdrop */
    padding-top: 0;
}

.content-header {
    position: relative;
    height: 600px;
    margin-bottom: 40px;
}

.content-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.95) 50%);
}

.content-poster {
    width: 300px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.content-details {
    flex: 1;
    padding-left: 40px;
}

.content-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
}

.content-meta-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 16px;
}

.content-genres {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.genre-tag {
    background: var(--card-background);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.content-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ==========================================================================
   Video Player
   ========================================================================== */

.player-section {
    background: var(--background-dark);
    padding: 40px 0;
}

.player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: var(--border-radius);
}

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

.player-controls {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.video-source-btn {
    padding: 10px 20px;
    background: var(--card-background);
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.video-source-btn.active,
.video-source-btn:hover {
    border-color: var(--primary-color);
    background: rgba(229, 9, 20, 0.1);
}

/* ==========================================================================
   Episodes List
   ========================================================================== */

.episodes-section {
    padding: 40px 0;
}

.seasons-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.season-tab {
    padding: 10px 25px;
    background: var(--card-background);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    color: var(--text-color);
    transition: var(--transition);
}

.season-tab.active,
.season-tab:hover {
    background: var(--primary-color);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.episode-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.3);
}

.episode-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.episode-info {
    padding: 15px;
}

.episode-number {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.episode-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.episode-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* Prevent long widget/link content from forcing horizontal scroll */
.site-footer,
.site-footer * {
    min-width: 0;
}

.site-footer ul,
.site-footer ol {
    padding-left: 0;
}

.site-footer a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .content-poster {
        width: 170px;
        margin: 0 auto;
        display: block;
    }
    
    .content-details {
        padding-left: 0;
    }
    
    .content-title {
        font-size: 28px;
    }

    .content-header {
        height: auto;
        margin-bottom: 20px;
    }

    .content-backdrop {
        height: 360px;
        object-fit: cover;
    }

    .content-info {
        padding: 28px 0;
    }

    .row {
        flex-direction: column;
        gap: 18px;
        margin: 0;
    }

    .col {
        padding: 0;
    }

    .content-meta-info {
        flex-wrap: wrap;
        gap: 10px 14px;
        font-size: 14px;
    }

    .hero-buttons .btn {
        padding: 11px 18px;
        font-size: 15px;
    }

    .watch-section {
        padding: 18px 0 8px;
        overflow-x: hidden;
    }

    .watch-section .container {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
    }

    .watch-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        min-width: 0;
    }

    .watch-main {
        min-width: 0;
        max-width: 100%;
    }

    .watch-player {
        min-width: 0;
        max-width: 100%;
    }

    .watch-sidebar {
        position: static;
        max-height: none;
        padding: 12px;
    }

    .sidebar-item {
        grid-template-columns: 96px 1fr;
        padding: 9px;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 60vh;
    }
    
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Share buttons
   ========================================================================== */

.share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    margin-top: 0;
}

.share-count {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    padding-right: 8px;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.share-count__num {
    color: #fff;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.share-buttons {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.share-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.share-btn--facebook { background: #1877F2; border-color: rgba(255,255,255,0.10); }
.share-btn--twitter { background: #000000; border-color: rgba(255,255,255,0.10); }
.share-btn--pinterest { background: #E60023; border-color: rgba(255,255,255,0.10); padding: 0 14px; }
.share-btn--whatsapp { background: #25D366; border-color: rgba(255,255,255,0.10); }

.share-btn--facebook:hover,
.share-btn--twitter:hover,
.share-btn--pinterest:hover,
.share-btn--whatsapp:hover {
    filter: brightness(1.05);
}

/* Footer brand: left-aligned on desktop, centered on mobile (see @media below) */
.site-footer .footer-brand {
    text-align: left;
}

.site-footer .footer-brand-logo {
    display: flex;
    justify-content: flex-start;
}

.site-footer .footer-logo-link {
    text-align: left;
}

.site-footer .footer-desc {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 56ch;
}

/* ==========================================================================
   People cards (Cast)
   ========================================================================== */

.people-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 18px;
    margin-top: 10px;
}

.people-grid--small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
}

.person-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.person-card--no-img {
    grid-template-columns: 1fr;
}

.person-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}

.person-card--nolink {
    cursor: default;
}

.person-card__img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
}

.person-card__img--placeholder {
    display: inline-block;
}

.person-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.person-card__name {
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-card__role {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Watch providers: make provider items clickable without changing layout */
.watch-provider--link {
    display: inline-flex;
    text-decoration: none;
}

/* Cast & Crew and additional info sections */
.content-additional-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-additional-info .info-section {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 16px;
    margin-top: 0;
}

.content-additional-info .info-section h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.cast-crew {
    display: grid;
    gap: 14px;
}

.cast-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: start;
}

.cast-label {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 2px;
}

@media (max-width: 900px) {
    .people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .people-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Loading e Animations
   ========================================================================== */

.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--card-background);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}
