/**
 * Created by GrounnyDev
 * Owner: grounnydev.com
 */

:root {
    --ms-bg: #020817;
    --ms-bg2: #0F172A;
    --ms-card: #111827;
    --ms-primary: #2563EB;
    --ms-hover: #3B82F6;
    --ms-glow: #60A5FA;
    --ms-text: #FFFFFF;
    --ms-muted: #94A3B8;
    --ms-border: #1E293B;
    --navbar-height: 3.5rem;
}

@media (min-width: 1024px) {
    :root {
        --navbar-height: 4rem;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
.site-body {
    background-color: var(--ms-bg);
    color: var(--ms-text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
    padding-top: var(--navbar-height) !important;
    width: 100%;
}

/* ─── Detalle película / serie ─── */
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0 3rem;
    margin-top: 0;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0.28;
    filter: brightness(0.6);
}

.detail-hero .hero-overlay {
    position: absolute;
    inset: 0;
}

.detail-hero-inner {
    position: relative;
    z-index: 5;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .detail-hero-inner {
        flex-direction: row;
        align-items: flex-start;
    }
}

.detail-poster {
    width: 14rem;
    max-width: 100%;
    border-radius: 0.75rem;
    border: 1px solid var(--ms-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .detail-poster {
        margin: 0;
        width: 15rem;
    }
}

.detail-info {
    flex: 1;
    min-width: 0;
}

.detail-title {
    margin: 0 0 0.25rem;
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
}

.detail-subtitle {
    margin: 0 0 1rem;
    color: var(--ms-muted);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--ms-muted);
    margin-bottom: 1rem;
}

.detail-genres {
    color: var(--ms-glow);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.detail-overview {
    color: var(--ms-muted);
    line-height: 1.65;
    margin: 0 0 1.5rem;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-cinematic {
    --hero-scrim: #020817;
}

.hero-cinematic .hero-scrim-stack {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to right, rgb(2 8 23 / 0.95) 30%, rgb(2 8 23 / 0.72) 50%, rgb(2 8 23 / 0.25)),
        linear-gradient(to top, rgb(2 8 23), rgb(2 8 23 / 0.35), transparent),
        linear-gradient(to bottom, rgb(2 8 23 / 0.65), transparent 32%);
}

.hero-cinematic .hero-filmstrip-fade-left {
    background: linear-gradient(to right, var(--hero-scrim), transparent);
}

.hero-cinematic .hero-filmstrip-fade-right {
    background: linear-gradient(to left, var(--hero-scrim), transparent);
}

/* Hero — CTA beneficios VIP */
.hero-vip-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
    padding: 0.65rem 1rem 0.65rem 0.85rem;
    border-radius: 9999px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(37, 99, 235, 0.2));
    border: 1px solid rgba(167, 139, 250, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.2);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.hero-vip-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 181, 253, 0.65);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.48), rgba(37, 99, 235, 0.28));
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.35);
}

.hero-vip-cta-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.1rem;
}

.hero-vip-cta-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 0;
}

.hero-vip-cta-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    color: #f8fafc;
}

.hero-vip-cta-benefits {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.85);
    line-height: 1.3;
}

.hero-vip-cta-arrow {
    flex-shrink: 0;
    font-size: 1rem;
    opacity: 0.7;
    transition: transform 0.2s, opacity 0.2s;
}

.hero-vip-cta:hover .hero-vip-cta-arrow {
    transform: translateX(3px);
    opacity: 1;
}

@media (min-width: 640px) {
    .hero-vip-cta {
        padding: 0.75rem 1.25rem 0.75rem 1rem;
    }

    .hero-vip-cta-title {
        font-size: 0.95rem;
    }

    .hero-vip-cta-benefits {
        font-size: 0.78rem;
    }
}

/* Hero overlay (detalle) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 8, 23, 0.97) 0%, rgba(2, 8, 23, 0.5) 50%, rgba(2, 8, 23, 0.92) 100%),
        linear-gradient(0deg, rgba(2, 8, 23, 1) 0%, transparent 42%);
}

#heroFilmstrip {
    scrollbar-width: thin;
    scrollbar-color: var(--ms-primary) transparent;
}

#heroFilmstrip::-webkit-scrollbar {
    height: 4px;
}

#heroFilmstrip::-webkit-scrollbar-thumb {
    background: var(--ms-primary);
    border-radius: 9999px;
}

.navbar {
    background: linear-gradient(180deg, rgba(2, 8, 23, 0.98) 0%, rgba(2, 8, 23, 0.85) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ms-border);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
}

.navbar-bar {
    position: relative;
}

/* ─── Móvil: menú hamburguesa + drawer ─── */
.navbar-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-left: -0.25rem;
    padding: 0;
    border: none;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ms-text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
}

.navbar-menu-btn:active {
    background: rgba(255, 255, 255, 0.12);
}

.navbar-menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 18px;
    height: 14px;
}

.navbar-menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.navbar-menu-btn.is-open .navbar-menu-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-menu-btn.is-open .navbar-menu-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-menu-btn.is-open .navbar-menu-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.navbar-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ms-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s, color 0.2s;
}

.navbar-search-toggle.is-active,
.navbar-search-toggle:active {
    background: rgba(37, 99, 235, 0.2);
    color: var(--ms-glow);
}

.navbar-admin-pill {
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--ms-primary);
    transition: background 0.2s;
}

.navbar-admin-pill:hover {
    background: var(--ms-hover);
}

.navbar-login-pill {
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
}

.navbar-drawer-link-btn {
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
}

.navbar-search-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}

.navbar-search-panel.is-open {
    max-height: 5rem;
    opacity: 1;
}

.navbar-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(2, 8, 23, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.navbar-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.navbar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: min(18.5rem, 86vw);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0f172a 0%, #020817 100%);
    border-right: 1px solid var(--ms-border);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.45);
    transform: translateX(-105%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.navbar-drawer.is-open {
    transform: translateX(0);
}

.navbar-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.navbar-drawer-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ms-muted);
}

.navbar-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--ms-border);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--ms-muted);
    cursor: pointer;
}

.navbar-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.navbar-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.9rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ms-muted);
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.navbar-drawer-link-icon {
    width: 1.75rem;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.navbar-drawer-link:hover,
.navbar-drawer-link:active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ms-text);
}

.navbar-drawer-link.is-active {
    background: rgba(37, 99, 235, 0.18);
    color: var(--ms-glow);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.navbar-drawer-link.is-vip {
    margin-top: 0.35rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(37, 99, 235, 0.12));
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: #e9d5ff;
}

.navbar-drawer-foot {
    padding: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.navbar-drawer-link-muted {
    color: #64748b;
    font-size: 0.875rem;
}

body.navbar-open {
    overflow: hidden;
}

.nav-link.is-active {
    color: var(--ms-glow);
}

.nav-link-vip {
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: #c4b5fd !important;
}

.nav-link-vip:hover {
    color: #e9d5ff !important;
}

@media (min-width: 1024px) {
    .navbar-menu-btn,
    .navbar-search-toggle,
    .navbar-overlay,
    .navbar-drawer {
        display: none !important;
    }
}

html.theme-light .navbar-menu-btn,
html.theme-light .navbar-search-toggle {
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
}

html.theme-light .navbar-drawer {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-right-color: #e2e8f0;
}

html.theme-light .navbar-drawer-link {
    color: #475569;
}

html.theme-light .navbar-drawer-link.is-active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

html.theme-light .navbar-drawer-link.is-vip {
    color: #6d28d9;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(37, 99, 235, 0.06));
}

html.theme-light .navbar-overlay {
    background: rgba(15, 23, 42, 0.35);
}

.brand-link {
    text-decoration: none;
    max-width: 12rem;
}

@media (min-width: 640px) {
    .brand-link {
        max-width: none;
    }
}

.brand-name {
    background: linear-gradient(90deg, #fff 0%, var(--ms-glow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--ms-muted);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--ms-text);
}

.nav-icon {
    font-size: 1.125rem;
    text-decoration: none;
    line-height: 1;
}

.hero-badge {
    display: inline-block;
    color: var(--ms-glow);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.15);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ms-primary);
    color: white !important;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--ms-hover);
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid var(--ms-border);
    color: var(--ms-text) !important;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--ms-primary);
    color: var(--ms-glow) !important;
}

.shadow-glow,
.group:hover .group-hover\:shadow-glow {
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.45);
}

.home-sections-grid {
    align-items: stretch;
    width: 100%;
}

.home-section-cell {
    overflow: hidden;
}

.home-section-featured {
    min-height: 280px;
}

@media (min-width: 1024px) {
    .home-section-featured {
        min-height: 320px;
    }
}

.home-row,
.slider-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.home-row {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ms-primary) transparent;
}

.home-row::-webkit-scrollbar {
    height: 5px;
}

.home-row::-webkit-scrollbar-thumb {
    background: var(--ms-primary);
    border-radius: 9999px;
}

.slider-track {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--ms-primary) var(--ms-bg2);
}

.slider-track::-webkit-scrollbar {
    height: 5px;
}

.slider-track::-webkit-scrollbar-thumb {
    background: var(--ms-primary);
    border-radius: 9999px;
}

.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: var(--ms-primary) var(--ms-bg2);
}

.scrollbar-hide {
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.card-item img {
    display: block;
    width: 100%;
}

.rank-number {
    color: rgba(37, 99, 235, 0.35);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.form-input {
    width: 100%;
    background: var(--ms-bg);
    border: 1px solid var(--ms-border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--ms-text);
    outline: none;
}

.form-input:focus {
    border-color: var(--ms-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--ms-card);
    border: 1px solid var(--ms-border);
    border-radius: 0.75rem;
    overflow: hidden;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-height: 24rem;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.search-result-item:hover,
.search-result-item.active {
    background: var(--ms-bg2);
}

.player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.player-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.player-page .player-wrapper {
    padding-bottom: 0;
    height: calc(100vh - 120px);
    min-height: 400px;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tailwind custom color utilities fallback */
.bg-ms-bg { background-color: var(--ms-bg) !important; }
.bg-ms-bg2 { background-color: var(--ms-bg2) !important; }
.bg-ms-card { background-color: var(--ms-card) !important; }
.bg-ms-primary { background-color: var(--ms-primary) !important; }
.hover\:bg-ms-hover:hover { background-color: var(--ms-hover) !important; }
.text-ms-text { color: var(--ms-text) !important; }
.text-ms-muted { color: var(--ms-muted) !important; }
.text-ms-glow { color: var(--ms-glow) !important; }
.border-ms-border { border-color: var(--ms-border) !important; }
.hover\:border-ms-primary:hover { border-color: var(--ms-primary) !important; }
.focus\:border-ms-primary:focus { border-color: var(--ms-primary) !important; }

/* ─── Footer ─── */
.site-footer {
    flex-shrink: 0;
    position: relative;
    margin-top: 4rem;
    background: linear-gradient(180deg, var(--ms-bg) 0%, var(--ms-bg2) 35%, #0a1020 100%);
    border-top: 1px solid var(--ms-border);
    overflow: hidden;
}

.site-footer-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--ms-primary) 25%,
        var(--ms-glow) 50%,
        var(--ms-primary) 75%,
        transparent 100%
    );
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.45);
}

.site-footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1.25rem 1.5rem;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 2rem;
}

@media (min-width: 640px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .site-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 2rem;
    }
}

.site-footer-brand {
    min-width: 0;
}

.site-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.site-footer-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

.site-footer-logo-img {
    max-height: 2.5rem;
    max-width: 10rem;
    object-fit: contain;
}

.site-footer-logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff 0%, var(--ms-glow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-footer-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--ms-muted);
    max-width: 22rem;
}

.site-footer-title {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ms-text);
}

.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.site-footer-links a {
    color: var(--ms-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.site-footer-links a:hover {
    color: var(--ms-glow);
    transform: translateX(4px);
}

.site-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ms-muted);
    text-decoration: none;
    background: var(--ms-card);
    border: 1px solid var(--ms-border);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.site-footer-social-btn:hover {
    color: var(--ms-text);
    border-color: var(--ms-primary);
    background: rgba(37, 99, 235, 0.15);
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.25);
}

.site-footer-muted {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ms-muted);
    line-height: 1.5;
}

.site-footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ms-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .site-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.site-footer-copy,
.site-footer-credit {
    margin: 0;
    font-size: 0.8rem;
    color: var(--ms-muted);
}

.site-footer-credit a {
    color: var(--ms-glow);
    text-decoration: none;
}

.site-footer-credit a:hover {
    color: var(--ms-hover);
    text-decoration: underline;
}

/* ─── Tema claro (sitio público) ─── */
html.theme-light {
    --ms-bg: #f8fafc;
    --ms-bg2: #f1f5f9;
    --ms-card: #ffffff;
    --ms-text: #0f172a;
    --ms-muted: #64748b;
    --ms-border: #e2e8f0;
    --ms-glow: #2563eb;
    --ms-scrim: #020817;
    --ms-scrim-soft: #0f172a;
}

/* Hero y detalle: zona oscura sobre imagen (no hereda paleta clara) */
html.theme-light .hero-cinematic,
html.theme-light .detail-hero {
    --ms-card: rgba(15, 23, 42, 0.75);
    --ms-border: rgba(255, 255, 255, 0.12);
    color: #fff;
}

html.theme-light .hero-cinematic .text-ms-muted,
html.theme-light .hero-cinematic #heroDesc {
    color: #94a3b8 !important;
}

html.theme-light .hero-cinematic [class*="bg-ms-card"] {
    background-color: rgba(15, 23, 42, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html.theme-light .hero-cinematic .text-ms-glow {
    color: #93c5fd !important;
}

html.theme-light .detail-hero .hero-overlay {
    background:
        linear-gradient(90deg, rgba(2, 8, 23, 0.97) 0%, rgba(2, 8, 23, 0.5) 50%, rgba(2, 8, 23, 0.92) 100%),
        linear-gradient(0deg, rgba(2, 8, 23, 1) 0%, transparent 42%);
}

html.theme-light .detail-hero .detail-title,
html.theme-light .detail-hero .detail-subtitle,
html.theme-light .detail-hero .detail-meta,
html.theme-light .detail-hero .detail-overview {
    color: #fff;
}

html.theme-light .detail-hero .detail-genres {
    color: #93c5fd;
}

html.theme-light .navbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.92) 100%);
    box-shadow: 0 1px 0 rgba(226, 232, 240, 0.9);
}

html.theme-light .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

html.theme-light .brand-name,
html.theme-light .site-footer-logo-text {
    background: linear-gradient(90deg, #0f172a 0%, var(--ms-glow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.theme-light .btn-secondary {
    background: #ffffff;
    color: var(--ms-text) !important;
    border-color: var(--ms-border);
}

html.theme-light .btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--ms-primary);
}

html.theme-light .detail-poster {
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

html.theme-light .detail-hero .detail-poster {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

html.theme-light .site-footer {
    background: linear-gradient(180deg, var(--ms-bg) 0%, var(--ms-bg2) 50%, #e2e8f0 100%);
}

html.theme-light .poster-card,
html.theme-light .media-card,
html.theme-light .group\/card > a {
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html.theme-light .group\/card .bg-gradient-to-t.from-ms-bg {
    --tw-gradient-from: rgb(15 23 42 / 0.88) var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

html.theme-light .episode-card {
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.05);
}

html.theme-light .search-result-item:hover,
html.theme-light .search-result-item.active {
    background: var(--ms-bg2);
}

html.theme-light .player-page header {
    background: var(--ms-bg2) !important;
    border-color: var(--ms-border) !important;
}

html.theme-light .player-page header a.text-ms-muted:hover {
    color: var(--ms-text) !important;
}
