/* ==========================================================================
   CUEVANA 3 PRO - 1:1 CLONE DESIGN SYSTEM
   Exact Design Tokens, Header, Player, Cards, Landing & Responsive Layout
   ========================================================================== */

:root {
    --page-bg: #1e2129;
    --header-bg: rgba(20, 22, 28, 0.94);
    --surface: #272c36;
    --surface-hover: #303641;
    --text: #f7f8fb;
    --text-contrast: #ffffff;
    --text-soft: #c3c8d2;
    --text-muted: #8f97a6;
    --line: rgba(255, 255, 255, 0.11);
    --accent: #006ff5;
    --accent-strong: #006ff5E6;
    --accent-ink: #10201c;
    --container: 1420px;
    --header-height: 76px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --shadow: 0 18px 50px rgba(7, 9, 14, 0.3);
    --transition: 180ms ease;
    --watch-backdrop: none;
}

*, ::after, ::before {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--page-bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.overlay-open {
    overflow: hidden;
}

button, input {
    font: inherit;
}

button {
    border: 0;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

:focus-visible {
    outline: rgba(0, 111, 245, 0.5) solid 3px;
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    overflow: hidden;
    border: 0;
}

.container {
    width: min(calc(100% - 36px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--text-contrast);
    font-weight: 800;
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

/* ==========================================================================
   HEADER & NAVIGATION (1:1 CUEVANA)
   ========================================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-height);
    background: var(--header-bg);
    box-shadow: 0 10px 30px rgba(5, 6, 9, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 2.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-logo {
    display: block;
    width: auto;
    height: 42px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 4px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link, .nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
}

.nav-item[data-open="true"] .nav-trigger,
.nav-link:hover,
.nav-link[aria-current="page"],
.nav-trigger:hover,
.nav-trigger[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.nav-chevron {
    width: 15px;
    height: 15px;
    transition: transform var(--transition);
}

.nav-item[data-open="true"] .nav-chevron {
    transform: rotate(180deg);
}

.dropdown-panel {
    position: absolute;
    top: calc(100% - 8px);
    left: 0;
    z-index: 20;
    display: none;
    min-width: 230px;
    padding-top: 8px;
}

.dropdown-panel::before {
    position: absolute;
    inset: 0 0 auto;
    height: 18px;
    content: "";
}

.nav-item[data-open="true"] .dropdown-panel {
    display: block;
    animation: 110ms ease-out both dropdown-open;
}

@keyframes dropdown-open {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #252a34;
    box-shadow: var(--shadow);
}

.dropdown-menu.genres-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    width: 480px;
}

.dropdown-link {
    display: block;
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 650;
    transition: color var(--transition), background var(--transition);
}

.dropdown-link:hover,
.dropdown-link[aria-current="page"] {
    background: var(--surface-hover);
    color: var(--accent);
}

.desktop-search {
    position: relative;
    width: min(260px, 22vw);
    margin-left: auto;
}

.desktop-search input {
    width: 100%;
    height: 42px;
    padding: 0 46px 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #17191f;
    outline: 0;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.desktop-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 111, 245, 0.16);
}

.desktop-search button {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: transparent;
    color: #17191f;
    cursor: pointer;
}

.mobile-actions {
    display: none;
    margin-left: auto;
    gap: 8px;
}

.icon-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.icon-button:hover {
    border-color: rgba(0, 111, 245, 0.42);
    background: rgba(0, 111, 245, 0.1);
}

.icon-button svg {
    width: 21px;
    height: 21px;
}

/* Mobile Overlays */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
}

.mobile-overlay[data-open="true"] {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.overlay-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(8, 10, 14, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-panel {
    position: relative;
    z-index: 1;
    width: min(440px, calc(100% - 24px));
    margin: 12px 12px 0 auto;
    border-radius: 16px;
    background: #262b35;
    box-shadow: var(--shadow);
}

.mobile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 0 14px 0 20px;
    border-bottom: 1px solid var(--line);
}

.mobile-panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 850;
}

.mobile-search-body {
    padding: 22px 20px 28px;
}

.mobile-search-form {
    position: relative;
}

.mobile-search-form input {
    width: 100%;
    height: 52px;
    padding: 0 52px 0 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #20242c;
    color: var(--text);
    outline: 0;
}

.mobile-search-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 111, 245, 0.13);
}

.mobile-search-submit {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--text-contrast);
    cursor: pointer;
}

.mobile-search-note {
    margin: 14px 2px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.mobile-menu-body {
    max-height: calc(100vh - 106px);
    overflow-y: auto;
    padding: 6px 20px 22px;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--line);
}

.mobile-nav-item:last-child {
    border-bottom: 0;
}

.mobile-nav-link, .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    padding: 0;
    background: transparent;
    color: var(--text-soft);
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-toggle svg {
    width: 17px;
    height: 17px;
    transition: transform var(--transition);
}

.mobile-nav-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--transition);
}

.mobile-submenu[data-open="true"] {
    grid-template-rows: 1fr;
}

.mobile-submenu-inner {
    min-height: 0;
    overflow: hidden;
}

.mobile-submenu-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 0 0 16px;
}

.mobile-submenu-link {
    padding: 10px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 650;
}

.mobile-submenu-link:hover,
.mobile-submenu-link[aria-current="page"] {
    background: rgba(0, 111, 245, 0.1);
    color: var(--accent);
}

/* ==========================================================================
   HOMEPAGE LANDING HERO (1:1 CUEVANA)
   ========================================================================== */
.landing-hero {
    position: relative;
    display: grid;
    min-height: 580px;
    place-items: center;
    overflow: hidden;
    padding: calc(var(--header-height) + 40px) 0 60px;
    background: radial-gradient(circle at 20% 20%, rgba(0, 111, 245, 0.06), transparent 32rem),
                radial-gradient(circle at 80% 20%, rgba(0, 111, 245, 0.06), transparent 32rem),
                linear-gradient(180deg, #242933 0%, var(--page-bg) 100%);
    isolation: isolate;
}

.landing-inner {
    width: min(100%, 840px);
    margin-inline: auto;
    text-align: center;
}

.landing-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.landing-logo-image {
    display: block;
    width: min(380px, 80vw);
    height: 90px;
    margin: 10px auto 10px;
    background: url("/assets/img/logo-home.svg") center / contain no-repeat;
}

.landing-title {
    margin: 0;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 850;
    color: #fff;
    letter-spacing: -0.03em;
}

.landing-description {
    max-width: 680px;
    margin: 12px auto 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.7;
}

.landing-search {
    position: relative;
    width: min(100%, 680px);
    margin: 28px auto 0;
}

.landing-search input {
    width: 100%;
    height: 62px;
    padding: 0 68px 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #17191f;
    font-size: 17px;
    outline: 0;
    box-shadow: 0 24px 65px rgba(7, 9, 14, 0.34);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.landing-search input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 0 4px rgba(0, 111, 245, 0.12), 0 24px 65px rgba(7, 9, 14, 0.36);
}

.landing-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-contrast);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.landing-search button:hover {
    background: var(--accent-strong);
    transform: translateY(-50%) scale(1.04);
}

.landing-search button svg {
    width: 20px;
    height: 20px;
}

/* Social Share Buttons */
.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 24px auto;
    gap: 10px;
}

.share-total {
    min-width: 50px;
    text-align: center;
    line-height: 1.05;
    color: #aaa;
    flex: 0 0 auto;
}

.share-total strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
}

.share-total span {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    border: none;
    text-decoration: none;
}

.social-btn:hover {
    color: #fff;
    opacity: 0.88;
    transform: translateY(-2px);
}

.social-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.btn-facebook { background-color: #4267b2; }
.btn-twitter { background-color: #1da1f2; }
.btn-whatsapp { background-color: #23b158; }
.btn-telegram { background-color: #0088cc; }
.btn-reddit { background-color: #ff4500; }

.landing-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}

.full-site-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--text-contrast);
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(0, 111, 245, 0.2);
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.full-site-button:hover {
    background: var(--accent-strong);
    box-shadow: 0 18px 40px rgba(0, 111, 245, 0.3);
    transform: translateY(-2px);
}

.full-site-button svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   CATALOGUE SHELF & MOVIE CARDS (1:1 CUEVANA)
   ========================================================================== */
.section--shelf {
    padding: 50px 0;
}

.shelf__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.shelf__title {
    margin: 0;
    font-size: 24px;
    font-weight: 850;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.shelf__title::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 24px;
    background: var(--accent);
    border-radius: 3px;
}

/* Genre quick pills */
.genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.genre-pill {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: all var(--transition);
}

.genre-pill:hover,
.genre-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 111, 245, 0.25);
}

/* Movies Grid */
.movies-grid, .catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 22px 18px;
}

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.movie-card-link {
    display: block;
    color: inherit;
}

.movie-poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #11141a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition), box-shadow var(--transition);
}

.movie-card:hover .movie-poster-wrap {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.05);
}

/* Badges on card */
.card-badge {
    position: absolute;
    z-index: 2;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.quality-badge {
    top: 8px;
    left: 8px;
    background: #ffc31a;
    color: #000;
}

.year-badge {
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    backdrop-filter: blur(4px);
}

.rating-badge {
    bottom: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0, 0, 0, 0.78);
    color: #ffb703;
    backdrop-filter: blur(4px);
}

.rating-badge svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
}

/* Play Overlay */
.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity var(--transition);
}

.movie-card:hover .play-overlay {
    opacity: 1;
}

.play-circle {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 111, 245, 0.45);
    transform: scale(0.85);
    transition: transform var(--transition);
}

.movie-card:hover .play-circle {
    transform: scale(1);
}

.play-circle svg {
    width: 24px;
    height: 24px;
    margin-left: 2px;
}

.movie-title {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition);
}

.movie-card:hover .movie-title {
    color: var(--accent);
}

/* Cuevana Card Hover Popup */
.card-hover-info {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 260px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: #1c212b;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
}

.movie-card:hover .card-hover-info {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.card-hover-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.card-hover-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    margin-bottom: 8px;
}

.card-hover-quality {
    padding: 2px 6px;
    border-radius: 3px;
    background: #ffc31a;
    color: #000;
    font-weight: 800;
}

.card-hover-year {
    color: var(--text-muted);
}

.card-hover-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #ffb703;
    font-weight: 700;
}

.card-hover-rating svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
}

.card-hover-overview {
    margin: 0;
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   WATCH PAGE & 1:1 CUEVANA PLAYER
   ========================================================================== */
.watch-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: calc(var(--header-height) + 24px) 0 76px;
    background: var(--page-bg);
    isolation: isolate;
}

.watch-page::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--watch-backdrop, none);
    background-position: center 10%;
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
    opacity: 0.35;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, rgba(0,0,0,0.7) 70%, transparent 95%);
    mask-image: linear-gradient(180deg, #000 0%, #000 50%, rgba(0,0,0,0.7) 70%, transparent 95%);
}

.watch-page::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(24, 27, 34, 0.55) 0%, rgba(27, 30, 38, 0.75) 35%, rgba(30, 33, 41, 0.92) 70%, var(--page-bg) 95%),
                linear-gradient(90deg, rgba(30, 33, 41, 0.85) 0%, rgba(30, 33, 41, 0.45) 50%, rgba(30, 33, 41, 0.85) 100%);
    content: "";
}

.watch-container {
    width: min(calc(100% - 36px), 1320px);
    margin-inline: auto;
}

.watch-header {
    margin-bottom: 22px;
}

.watch-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin-bottom: 16px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.watch-back:hover {
    border-color: rgba(0, 111, 245, 0.44);
    background: rgba(0, 111, 245, 0.12);
    color: var(--accent);
    transform: translateY(-2px);
}

.watch-back svg {
    width: 16px;
    height: 16px;
}

.watch-title {
    margin: 0;
    font-size: clamp(28px, 3.8vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #fff;
    font-weight: 850;
}

.watch-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.watch-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(24, 27, 34, 0.7);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.watch-pill.quality {
    border-color: transparent;
    background: #ffc31a;
    color: #000;
}

/* Primary Watch Actions */
.watch-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 720px;
    margin: 24px auto 20px;
}

.watch-primary-action {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    transition: all var(--transition);
}

.watch-primary-action:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.watch-primary-action svg {
    width: 20px;
    height: 20px;
}

.watch-primary-action.stream {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 111, 245, 0.35);
}

.watch-primary-action.download {
    border: 1px solid rgba(0, 111, 245, 0.44);
    background: rgba(0, 111, 245, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

/* Cuevana Player Panel */
.player-panel {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-md);
    background: #11141a;
    box-shadow: 0 28px 80px rgba(5, 7, 11, 0.45);
    margin-bottom: 24px;
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(0, 111, 245, 0.08), transparent 30%), #090b0f;
}

.player-stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #090b0f;
}

.player-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    background: radial-gradient(circle at center, rgba(0, 111, 245, 0.08), transparent 35%), #0c0f14;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 750;
}

.player-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.13);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: 760ms linear infinite player-spin;
}

@keyframes player-spin {
    to { transform: rotate(360deg); }
}

.player-controls {
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #171a21;
}

.server-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.control-label {
    font-weight: 900;
    color: var(--text-soft);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 850;
    color: var(--text-soft);
    font-size: 12px;
}

.server-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #39e58c;
    box-shadow: 0 0 0 6px rgba(57, 229, 140, 0.14);
}

.server-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(90px, 1fr));
    gap: 10px;
}

.server-button {
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition);
}

.server-button:hover {
    border-color: rgba(0, 111, 245, 0.4);
    color: var(--accent);
    transform: translateY(-1px);
}

.server-button.active,
.server-button[aria-pressed="true"] {
    border-color: transparent;
    background: var(--accent);
    color: var(--text-contrast);
    box-shadow: 0 4px 14px rgba(0, 111, 245, 0.3);
}

.watch-note {
    margin: 16px 0 0;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

/* Detail Info Grid (Cast, Director, Specs) */
.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 28px 0;
}

.detail-info-card {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.detail-info-label {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.detail-info-value {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   HOMEPAGE & SUBPAGE ARTICLE SECTION (SEO CONTENT & ANSWERS)
   ========================================================================== */
.landing-article-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, var(--page-bg) 0%, #1b1e26 100%);
}

.landing-article {
    padding: clamp(24px, 4.5vw, 48px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 58%), var(--surface);
    box-shadow: 0 20px 60px rgba(7, 9, 14, 0.22);
}

.landing-article h1 {
    margin: 0 0 18px;
    font-size: clamp(24px, 3.2vw, 34px);
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.landing-article h2 {
    margin: 38px 0 14px;
    font-size: clamp(20px, 2.4vw, 26px);
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.landing-article h3 {
    margin: 28px 0 10px;
    font-size: clamp(17px, 1.8vw, 21px);
    color: #fff;
}

.landing-article p {
    margin: 14px 0 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.85;
}

.landing-article a {
    color: #3b82f6;
    font-weight: 750;
}

.landing-article a:hover {
    text-decoration: underline;
}

/* Answer Blocks for Position Zero Google Lift */
.answer-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.answer-card {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

.answer-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    color: #fff;
    font-weight: 750;
}

.answer-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.75;
}

/* ==========================================================================
   FOOTER (1:1 CUEVANA)
   ========================================================================== */
.site-footer {
    background: #191c23;
    border-top: 1px solid var(--line);
}

.footer-main {
    display: grid;
    grid-template-columns: 2.2fr repeat(4, 1fr);
    gap: 50px;
    padding: 60px 0 46px;
}

.footer-description {
    max-width: 440px;
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.75;
}

.footer-heading {
    margin: 0 0 18px;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 800;
}

.footer-links {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-link {
    color: var(--text-muted);
    font-size: 14px;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--accent);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.footer-social-link:hover {
    border-color: var(--text-muted);
    background: var(--surface-hover);
}

.footer-social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    padding: 22px 0 26px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-disclaimer {
    margin: 0;
    font-style: italic;
}

.footer-bottom {
    margin: 0;
    text-align: right;
    white-space: nowrap;
    color: var(--text-soft);
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1180px) {
    .desktop-search {
        width: 210px;
    }
    .nav-link, .nav-trigger {
        padding-inline: 9px;
    }
}

@media (max-width: 1020px) {
    .desktop-nav, .desktop-search {
        display: none;
    }
    .mobile-actions {
        display: flex;
    }
    .server-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .landing-hero {
        min-height: 520px;
        padding-top: calc(var(--header-height) + 32px);
    }
}

@media (max-width: 620px) {
    :root {
        --header-height: 68px;
    }
    .container {
        width: min(calc(100% - 24px), var(--container));
    }
    .brand-logo {
        height: 36px;
    }
    .server-list, .watch-primary-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-meta {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
    }
    .footer-bottom {
        text-align: center;
    }
    .movies-grid, .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }
    .card-hover-info {
        display: none;
    }
}
