@import url('https://solargentinotv.com.ar/assets/fonts/NetflixSans/netflixsans.css');

/* =========================================================
   SOL ARGENTINO TV MOVIES
   DESKTOP APP UI – CSS COMPLETO (REEMPLAZO TOTAL)
   - Misma tipografía que el original (Netflix Sans)
   - Rediseño total estilo app de escritorio
   - Conserva: Hero + Cards + Video hover + Mute btn + Modal + Vivo + Próximamente + Responsive
========================================================= */

/* =========================================================
   0) TOKENS / SISTEMA VISUAL (DESKTOP)
========================================================= */
:root {
    --app-bg: #0b0c0f;
    --app-panel: #101219;
    --app-panel-2: #141826;
    --app-stroke: rgba(255, 255, 255, .08);
    --app-stroke-2: rgba(255, 255, 255, .12);
    --app-text: #f2f2f2;
    --app-muted: rgba(242, 242, 242, .72);

    --accent: #ffffff;
    --accent-text: #000000;

    --danger: #ff1b1b;
    --success: #04a756;

    --sidebar-w: 260px;
    --sidebar-w-compact: 220px;

    --radius-0: 0px;
    --radius-1: 6px;
    --radius-2: 10px;
    --radius-3: 14px;

    --shadow-1: 0 10px 30px rgba(0, 0, 0, .55);
    --shadow-2: 0 16px 60px rgba(0, 0, 0, .65);

    --pad-1: 10px;
    --pad-2: 14px;
    --pad-3: 18px;
    --pad-4: 24px;
    --pad-5: 32px;

    --gap-1: 8px;
    --gap-2: 12px;
    --gap-3: 18px;
    --gap-4: 24px;
    --gap-5: 30px;

    --font: 'Netflix Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

/* =========================================================
   1) RESET + BASE
========================================================= */
body.desktop-app,
body.desktop-app * {
    margin: 0;
    height: 100%;
    font-family: var(--font);
    background: var(--app-bg);
    color: var(--app-text);
    overflow: hidden;
    line-height: 1.35;
}

/* Media */
body.desktop-app img,
body.desktop-app video,
body.desktop-app svg {
    display: block;
    max-width: 100%;
    height: auto;
}

body.desktop-app svg {
    width: 1em;
    height: 1em;
}

/* Text defaults */
body.desktop-app p {
    font-weight: 300;
}

body.desktop-app p.synopsis {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.35;
    color: var(--app-muted);
}

/* Accessibility basic */
body.desktop-app :focus {
    outline: none;
}

body.desktop-app :focus-visible {
    outline: 2px solid rgba(255, 255, 255, .35);
    outline-offset: 2px;
}

/* =========================================================
   2) APP LAYOUT (SIDEBAR + CONTENT)
   (Mismo HTML, distinto layout total)
========================================================= */
body.desktop-app {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-rows: 100vh;
}

/* =========================================================
   3) HEADER = SIDEBAR (app feel)
========================================================= */
body.desktop-app header {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, #11131a 0%, #0f1117 100%);
    border-right: 1px solid var(--app-stroke);
    z-index: 50;
}

body.desktop-app .wrap {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: var(--pad-5) var(--pad-4);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--gap-4);
}

body.desktop-app .logo {
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: .9px;
    text-transform: uppercase;
    opacity: .92;
    white-space: normal;
    line-height: 1.15;
}

body.desktop-app .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    flex-wrap: nowrap;
}

body.desktop-app .nav span {
    color: var(--app-muted);
    font-size: .92rem;
    padding: 10px 12px;
    border-radius: var(--radius-2);
    cursor: pointer;
    user-select: none;
    transition: background .12s ease, color .12s ease, transform .12s ease;
}

body.desktop-app .nav span:hover {
    color: var(--app-text);
    background: rgba(255, 255, 255, .06);
}

body.desktop-app .nav .nav-link.active {
    color: var(--accent-text);
    background: var(--accent);
    font-weight: 800;
}

body.desktop-app .search {
    flex: 0 0 auto;
    position: relative;
    min-width: 0;
}

body.desktop-app #searchInput {
    width: 100%;
    padding: 12px 12px;
    padding-right: 12px;
    border-radius: var(--radius-2);
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .06);
    color: var(--app-text);
    font-size: .98rem;
}

body.desktop-app #searchInput::placeholder {
    color: rgba(242, 242, 242, .55);
    opacity: 1;
}

body.desktop-app #searchInput:focus {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .09);
}

body.desktop-app .searchTab {
    display: none;
}

/* en desktop-app, input es suficiente */

/* Vivo en sidebar */
body.desktop-app .vivo-btn {
    margin-top: auto;
    /* se va al fondo */
    display: none;
    /* tu JS lo muestra/oculta; default hidden */
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: var(--radius-2);
    border: 1px solid rgba(255, 0, 0, .55);
    color: #ff4a4a;
    font-weight: 800;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

body.desktop-app .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--danger);
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

body.desktop-app .vivo-btn:hover {
    background: rgba(255, 0, 0, .12);
    border-color: rgba(255, 0, 0, .85);
    color: #fff;
}

/* =========================================================
   4) MAIN AREA (scroll dentro, layout de app)
========================================================= */
body.desktop-app main {
    width: 100%;
    margin: 0;
    padding: var(--pad-5);
    overflow-y: auto;
    overflow-x: hidden;
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(255, 255, 255, .05), transparent 60%),
        radial-gradient(900px 500px at 120% 10%, rgba(255, 255, 255, .04), transparent 60%),
        var(--app-bg);
}

/* Scrollbar */
body.desktop-app main::-webkit-scrollbar {
    width: 10px;
}

body.desktop-app main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
}

body.desktop-app main::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .18);
}

/* =========================================================
   5) HERO (banner cinemático, sin top mágico)
========================================================= */
body.desktop-app .hero {
    position: relative;
    border-radius: var(--radius-3);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-1);
}

/* Media ocupa el hero */
body.desktop-app .hero-media {
    position: relative;
    width: 100%;
    height: clamp(340px, 52vh, 620px);
    overflow: hidden;
    background: #000;
}

body.desktop-app .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Imagen/video (tu HTML tiene img.hero-bg y video.hero-bg) */
body.desktop-app img.hero-bg,
body.desktop-app video.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay pro: abajo + lateral */
body.desktop-app .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(11, 12, 15, 1) 0%,
            rgba(11, 12, 15, .92) 28%,
            rgba(11, 12, 15, .55) 55%,
            rgba(11, 12, 15, 0) 78%),
        linear-gradient(to right,
            rgba(11, 12, 15, .92) 0%,
            rgba(11, 12, 15, .60) 30%,
            rgba(11, 12, 15, 0) 68%);
    pointer-events: none;
    z-index: 1;
}

/* Info flotante */
.body.desktop-app .hero-info {
    position: absolute;
    left: var(--pad-5);
    right: auto;
    bottom: var(--pad-5);
    z-index: 2;
    max-width: 680px;
}

.body.desktop-app .hero-title {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 2.7vw, 3rem);
    font-weight: 900;
    letter-spacing: .2px;
}

.body.desktop-app .hero-film-type {
    font-size: .98rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
    margin: 0 0 10px;
}

.body.desktop-app .hero-synopsis {
    max-width: 40rem;
    font-size: 1.02rem;
    line-height: 1.25;
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .86);
}

/* Acciones */
.body.desktop-app .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================================
   6) BUTTONS (estilo app)
========================================================= */
.body.desktop-app .btn {
    border: none;
    border-radius: var(--radius-2);
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .2px;
    white-space: nowrap;
    transition: transform .12s ease, background .12s ease, color .12s ease, opacity .12s ease;
    user-select: none;
}

.body.desktop-app .btn.primary {
    background: var(--accent);
    color: var(--accent-text);
}

.body.desktop-app .btn.primary:hover {
    transform: translateY(-1px);
}

.body.desktop-app .btn.secondary {
    background: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .90);
    pointer-events: none !important;
    /* como tu original */
}

.body.desktop-app .btn.secondary[disabled],
.body.desktop-app .btn.secondary:disabled {
    opacity: 1;
    user-select: none;
}

/* =========================================================
   7) FILTERS (barra tipo app)
========================================================= */
.body.desktop-app .filters {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.body.desktop-app .filters button {
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .86);
    padding: 8px 14px;
    border-radius: 999px;
    /* pill app */
    cursor: pointer;
    font-weight: 800;
    font-size: .92rem;
    transition: background .12s ease, color .12s ease, border-color .12s ease, transform .12s ease;
}

.body.desktop-app .filters button:hover {
    border-color: rgba(255, 255, 255, .20);
    background: rgba(255, 255, 255, .09);
}

.body.desktop-app .filters .active {
    background: var(--accent);
    color: var(--accent-text);
    border-color: transparent;
}

/* =========================================================
   8) GRID + CARDS (catalog app)
========================================================= */
.body.desktop-app .grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Card: “tile” app, no caja web */
.body.desktop-app .card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius-3);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    will-change: transform;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}

.body.desktop-app .card:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: var(--shadow-1);
    z-index: 10;
}

/* Media: más “cinema tile” */
.body.desktop-app .media {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

/* Imagen / Video dentro */
.body.desktop-app .media img,
.body.desktop-app .media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* hover preview behaviour (igual que tu lógica) */
.body.desktop-app .media video {
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity .22s ease;
}

.body.desktop-app .card .media img {
    opacity: 1;
    pointer-events: none;
    z-index: 1;
    transition: opacity .22s ease;
}

.body.desktop-app .card:hover .media img {
    opacity: 0;
}

.body.desktop-app .card:hover .media video {
    opacity: 1;
    pointer-events: auto;
}

/* sombra inferior para leer meta */
.body.desktop-app .media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 12, 15, .85) 0%, rgba(11, 12, 15, 0) 60%);
    opacity: .75;
    pointer-events: none;
    z-index: 3;
}

/* Meta: más “app details” */
.body.desktop-app .meta {
    padding: 14px 14px 16px;
    display: grid;
    gap: 8px;
}

.body.desktop-app .meta h3 {
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: .1px;
}

.body.desktop-app .meta span,
.body.desktop-app span.film-type {
    display: block;
    font-size: .86rem;
    font-weight: 700;
    color: rgba(242, 242, 242, .75);
    margin: 0;
}

.body.desktop-app span.film-type {
    color: rgba(242, 242, 242, .82);
}

.body.desktop-app .synopsis {
    font-size: .90rem;
    color: rgba(242, 242, 242, .70);
    line-height: 1.35;
}

/* =========================================================
   9) BMT MUTE BUTTON (igual feature, estética app)
========================================================= */
.body.desktop-app .bmt-mute-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;

    width: 42px;
    height: 42px;

    background: rgba(0, 0, 0, .40) !important;
    border: 1px solid rgba(255, 255, 255, .65) !important;
    border-radius: 999px !important;

    display: none !important;
    place-items: center;

    cursor: pointer !important;
    z-index: 6;

    opacity: .55 !important;
    transition: opacity .15s ease, transform .15s ease;
}

.body.desktop-app .bmt-mute-btn:hover {
    opacity: 1 !important;
    transform: scale(1.03);
}

.body.desktop-app .bmt-mute-btn.mute-visible {
    display: grid !important;
}

#bmtMuteIcon {
    width: 1.5em;
    height: 1.5em;
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(269deg) brightness(105%) contrast(102%) !important;
}

/* =========================================================
   10) SOUND BTN (si lo seguís usando)
========================================================= */
.body.desktop-app .sound-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    z-index: 6;
    opacity: 0;
    cursor: pointer;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, .40) !important;
    border: 1px solid rgba(255, 255, 255, .65) !important;
    transition: opacity .15s ease;
    display: grid;
    place-items: center;
}

.body.desktop-app .card:hover .sound-btn {
    opacity: .6 !important;
}

.body.desktop-app .sound-btn:hover {
    opacity: 1 !important;
}

.body.desktop-app .sound-btn img {
    width: 26px;
    height: 26px;
    filter: brightness(0) saturate(100%) invert(97%) sepia(98%) saturate(40%) hue-rotate(99deg) brightness(108%) contrast(100%);
}

/* =========================================================
   11) PRÓXIMAMENTE (badge)
========================================================= */
.body.desktop-app .proximamente-card {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 10px 12px;
    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(255, 0, 0, .90);
    z-index: 8;
}

.body.desktop-app .proximamente-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 12, 15, .70), rgba(11, 12, 15, .10));
    z-index: -1;
}

.body.desktop-app .proximamente-span {
    color: #fff;
    font-size: .88rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: center;
    line-height: 1.2;
}

/* =========================================================
   12) MODAL COPYRIGHT (se mantiene, estilo app)
========================================================= */
.body.desktop-app .modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, .72);
    z-index: 1000;
    width: 100%;
    overflow: auto;
    pointer-events: none;
    /* overlay no intercepta, como tu original */
}

.body.desktop-app .hidden {
    display: none;
}

.body.desktop-app .modal-content {
    pointer-events: auto;
    width: min(720px, 92vw);
    background: linear-gradient(180deg, #171a24 0%, #121521 100%);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: var(--radius-3);
    box-shadow: var(--shadow-2);
    padding: 22px 22px;
    text-align: justify;
}

.body.desktop-app .modal-content h3 {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: .2px;
    margin-bottom: 10px;
}

.body.desktop-app .modal-content p {
    font-size: .98rem;
    color: rgba(242, 242, 242, .82);
    line-height: 1.45;
    margin: 10px 0;
}

.body.desktop-app .question {
    font-weight: 900;
    margin-top: 14px;
    color: rgba(255, 255, 255, .92);
}

.body.desktop-app .modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.body.desktop-app .copybtn {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-2);
    cursor: pointer;
    font-size: .98rem;
    font-weight: 900;
    transition: transform .12s ease, filter .12s ease;
}

.body.desktop-app .copybtn:active {
    transform: translateY(1px);
}

.body.desktop-app .copybtn.primary {
    background: var(--success);
    color: #fff;
}

.body.desktop-app .copybtn.primary:hover {
    filter: brightness(.92);
}

.body.desktop-app .copybtn.secondary {
    background: var(--danger);
    color: #fff;
}

.body.desktop-app .copybtn.secondary:hover {
    filter: brightness(.92);
}

.body.desktop-app .copybtn:focus {
    outline: none;
}

/* =========================================================
   13) VIDEO HOVER CLASSES (por si usás .card-video)
========================================================= */
.body.desktop-app .card-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transition: opacity .22s ease;
}

.body.desktop-app .card-video.active {
    opacity: 1;
    pointer-events: auto;
}

.body.desktop-app .card-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 12, 15, .85), transparent 55%);
    opacity: 0;
    transition: opacity .22s ease;
    z-index: 3;
    pointer-events: none;
}

.body.desktop-app .card-video.active::after {
    opacity: 1;
}

/* =========================================================
   14) RESPONSIVE (100% – ventana chica)
   Mantiene estilo app: sidebar colapsa a topbar
========================================================= */
@media (max-width: 1100px) {
    :root {
        --sidebar-w: 100%;
    }

    body.desktop-app {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        overflow: hidden;
    }

    body.desktop-app header {
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--app-stroke);
    }

    body.desktop-app .wrap {
        height: auto;
        padding: 18px 18px;
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    body.desktop-app .logo {
        font-size: 1rem;
        white-space: nowrap;
    }

    body.desktop-app .nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    body.desktop-app .nav span {
        padding: 8px 10px;
        border-radius: 999px;
        font-size: .9rem;
    }

    body.desktop-app .search {
        flex: 1;
        min-width: 220px;
    }

    body.desktop-app #searchInput {
        padding: 10px 12px;
    }

    body.desktop-app main {
        padding: 18px;
    }

    body.desktop-app .grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    body.desktop-app .hero-media {
        height: clamp(320px, 45vh, 520px);
    }

    body.desktop-app .hero-info {
        left: 18px;
        bottom: 18px;
        max-width: 92%;
    }

    body.desktop-app .hero-title {
        font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    }
}

@media (max-width: 720px) {
    body.desktop-app .wrap {
        flex-direction: column;
        align-items: stretch;
    }

    body.desktop-app .nav {
        justify-content: center;
    }

    body.desktop-app .search {
        min-width: 0;
    }

    body.desktop-app .hero {
        border-radius: var(--radius-2);
    }

    body.desktop-app .hero-info {
        position: relative;
        padding: 16px;
        left: 0;
        bottom: 0;
        max-width: 100%;
        background: linear-gradient(180deg, rgba(11, 12, 15, .70), rgba(11, 12, 15, .96));
    }

    body.desktop-app .hero::before {
        background:
            linear-gradient(to top, rgba(11, 12, 15, .95) 0%, rgba(11, 12, 15, .55) 50%, rgba(11, 12, 15, 0) 100%);
    }

    body.desktop-app .hero-actions {
        flex-direction: column;
    }

    body.desktop-app .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 420px) {
    body.desktop-app main {
        padding: 14px;
    }

    body.desktop-app .grid {
        grid-template-columns: 1fr;
    }

    body.desktop-app .meta h3 {
        font-size: 1rem;
    }

    body.desktop-app .synopsis {
        font-size: .88rem;
    }
}

/* =========================================================
   15) PERFORMANCE / UX
========================================================= */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================================
   16) COMPAT (tu CSS viejo tenía cosas duplicadas)
   Aseguramos consistencia sin “look web”
========================================================= */
body.desktop-app .btn.secondary {
    background: rgba(255, 255, 255, .10) !important;
    color: rgba(255, 255, 255, .90) !important;
}

body.desktop-app .bmt-mute-btn.mute-visible {
    opacity: .9 !important;
}