/* Computer website layout. Not the 1920×1080 TV canvas.
   Loaded only by apps/web-player. Televisions never see this file. */

html.desktop-web .hidden {
    display: none !important;
}

html.desktop-web,
html.desktop-web body,
html.desktop-web.canvas-fit,
html.desktop-web.canvas-fit body {
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh;
    overflow: auto !important;
    -webkit-transform: none !important;
    transform: none !important;
    cursor: default;
    font-size: 18px;
    background: var(--app-shell-bg, #080d14);
}
html.desktop-web #app-shell,
html.desktop-web.canvas-fit #app-shell {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-transform: none !important;
    transform: none !important;
    padding: 0 !important;
}
html.desktop-web #boot-splash {
    width: 100% !important;
    height: 100% !important;
    animation-duration: 0.7s !important;
}
html.desktop-web .boot-splash-mark {
    width: 160px !important;
    height: 160px !important;
    animation-duration: 0.7s !important;
}

html.desktop-web button,
html.desktop-web .nav-button,
html.desktop-web .source-button,
html.desktop-web .language-button,
html.desktop-web .primary-button,
html.desktop-web .small-button,
html.desktop-web .catalog-lane,
html.desktop-web .catalog-shelf-card,
html.desktop-web .content-card,
html.desktop-web .channel-row,
html.desktop-web .category-item,
html.desktop-web .episode-card,
html.desktop-web .episode-list button,
html.desktop-web #video-empty {
    cursor: pointer;
}

/* TV remote chrome — useless on a mouse. Keep the login QR: someone
   opening the site from WhatsApp can scan instead of retyping the M3U. */
html.desktop-web #exit-dialog,
html.desktop-web #live-prev,
html.desktop-web #live-next,
html.desktop-web .guide-scroll-cue,
html.desktop-web .section-more-cue,
html.desktop-web .catalog-scroll-cue,
html.desktop-web .catalog-shelf-more,
html.desktop-web #catalog-pagination,
html.desktop-web #catalog-prev,
html.desktop-web #catalog-next,
html.desktop-web .zap-legend,
html.desktop-web .video-stage:not(.fullscreen) .player-fit-badge,
html.desktop-web .player-shrink-touch,
html.desktop-web .stage-corners,
html.desktop-web .stage-corner,
html.desktop-web .stage-frame,
html.desktop-web .video-stage:not(.fullscreen) .stage-corners {
    display: none !important;
}
html.desktop-web .control-glyph {
    position: relative !important;
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: none;
}

html.desktop-web .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid !important;
    grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
    align-items: center;
    width: 100% !important;
    height: 84px !important;
    padding: 0 24px !important;
    box-sizing: border-box;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
html.desktop-web .brand {
    width: auto !important;
    justify-self: start;
}
html.desktop-web .brand-lockup-compact .brand-symbol {
    width: 44px !important;
    height: 44px !important;
}
html.desktop-web .brand-lockup-compact .brand-word {
    font-size: 22px !important;
    margin-left: 12px !important;
}
html.desktop-web .brand #clock {
    font-size: 18px !important;
}
html.desktop-web .main-nav {
    display: flex !important;
    justify-content: center !important;
    justify-self: center;
    width: auto !important;
    min-width: 480px;
    height: 56px !important;
    margin: 0 !important;
    padding: 4px !important;
}
html.desktop-web .nav-button {
    min-width: 150px !important;
    height: 48px !important;
    font-size: 22px !important;
    font-weight: 600;
}
html.desktop-web .topbar-actions {
    width: auto !important;
    max-width: none !important;
    justify-self: end;
    margin-left: 0 !important;
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}
html.desktop-web .source-button {
    width: auto !important;
    height: 48px !important;
    min-width: 120px;
    font-size: 16px;
}
html.desktop-web .source-button strong {
    font-size: 18px !important;
}
html.desktop-web .language-button {
    width: 72px !important;
    height: 48px !important;
}
html.desktop-web .browser-fullscreen-button {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    min-width: 0;
    height: 48px !important;
    padding: 0 16px !important;
    margin-right: 0 !important;
    font-size: 15px !important;
    cursor: pointer;
    white-space: nowrap;
}
html.desktop-web .browser-fullscreen-button span {
    display: inline !important;
}

html.desktop-web .dialog-backdrop {
    width: 100vw !important;
    height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
}
html.desktop-web .dialog {
    width: min(420px, 92vw) !important;
    padding: 24px !important;
    border-radius: 16px !important;
}

/* Overlay is pointer-events:none so the picture stays clickable. The TV
   dock is the only child that opted back in — Format / Audio / Sous-titres
   panels sit beside it, so a mouse click never reached them. */
html.desktop-web .video-overlay .player-controls,
html.desktop-web .video-overlay .player-timeline,
html.desktop-web .video-overlay .image-settings {
    pointer-events: auto !important;
}
html.desktop-web .video-stage.fullscreen .video-overlay {
    transition: opacity 0.25s ease;
}
html.desktop-web.desktop-hud-idle .video-stage.fullscreen {
    cursor: none;
}
html.desktop-web .video-overlay.idle .player-timeline {
    pointer-events: none !important;
}
html.desktop-web .player-timeline {
    cursor: pointer;
}
html.desktop-web .timeline-bar {
    height: 4px !important;
    cursor: pointer;
    pointer-events: auto !important;
    border-radius: 4px;
}
html.desktop-web .timeline-bar::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    bottom: -12px;
}
html.desktop-web .timeline-thumb {
    opacity: 1 !important;
    width: 12px !important;
    height: 12px !important;
    transform: translate(-6px, -6px) !important;
    cursor: grab;
    pointer-events: auto;
}
html.desktop-web .timeline-bar.is-scrubbing .timeline-thumb,
html.desktop-web .timeline-thumb:active {
    cursor: grabbing;
}
html.desktop-web .video-overlay.idle .image-settings:not(.hidden) {
    pointer-events: auto !important;
}
html.desktop-web .image-settings {
    min-width: 360px !important;
    padding: 20px 18px !important;
}
html.desktop-web .image-settings-title {
    font-size: 15px !important;
    margin-bottom: 14px !important;
}
html.desktop-web .image-settings-option {
    cursor: pointer !important;
    min-height: 52px !important;
    font-size: 20px !important;
    padding: 10px 16px !important;
}
html.desktop-web .image-settings-option span {
    font-size: 20px !important;
}
html.desktop-web .image-settings-option small {
    font-size: 20px !important;
}
html.desktop-web .image-settings-option:hover {
    background: rgba(255, 255, 255, 0.08);
}
html.desktop-web .track-settings .image-settings-list {
    max-height: 360px;
}
html.desktop-web .accounts-dialog {
    width: min(920px, 92vw) !important;
    max-height: 86vh;
    overflow: auto;
}
html.desktop-web .accounts-dialog h2 {
    font-size: 28px !important;
}
html.desktop-web .accounts-dialog header {
    height: auto !important;
    padding: 20px 24px !important;
}
html.desktop-web .account-row {
    min-height: 92px !important;
    padding: 18px 22px !important;
    cursor: pointer;
    gap: 16px !important;
}
html.desktop-web .account-copy strong {
    font-size: 22px !important;
}
html.desktop-web .account-copy span {
    font-size: 15px !important;
    margin-top: 4px !important;
}
html.desktop-web .account-action {
    min-width: 128px !important;
    height: 48px !important;
    font-size: 16px !important;
    cursor: pointer;
}
html.desktop-web .icon-button {
    width: 48px !important;
    height: 48px !important;
    font-size: 24px !important;
}
html.desktop-web .dialog h2 {
    margin: 0 0 16px !important;
    font-size: 22px !important;
}

html.desktop-web .login-screen {
    width: 100% !important;
    max-width: none !important;
    height: 100vh !important;
    min-height: 100vh;
    display: grid !important;
    grid-template-columns: minmax(280px, 1.1fr) minmax(380px, 520px) !important;
    margin: 0 !important;
    justify-content: stretch;
    align-items: center;
    padding: 48px 8vw !important;
    gap: 64px !important;
    overflow: auto !important;
    box-sizing: border-box;
}
html.desktop-web .login-language-button {
    position: fixed !important;
    top: 20px !important;
    right: 24px !important;
    width: auto !important;
    min-width: 72px;
    height: 48px !important;
}
html.desktop-web .welcome-copy h1 {
    font-size: 48px !important;
    line-height: 1.12 !important;
    margin: 16px 0 20px !important;
}
html.desktop-web .welcome-copy p {
    font-size: 20px !important;
    max-width: 520px !important;
    line-height: 1.45 !important;
}
html.desktop-web .brand-lockup-hero .brand-symbol {
    width: 72px !important;
    height: 72px !important;
}
html.desktop-web .brand-lockup-hero .brand-word {
    font-size: 36px !important;
}
html.desktop-web .login-card {
    width: 100% !important;
    max-width: 520px;
    padding: 36px !important;
    border-radius: 20px !important;
}
html.desktop-web .login-card h2 {
    font-size: 28px !important;
    margin: 6px 0 18px !important;
}
html.desktop-web .login-card label {
    margin: 12px 0 !important;
    font-size: 16px !important;
}
html.desktop-web .login-card input {
    height: 52px !important;
    margin-top: 6px !important;
    font-size: 18px !important;
}
html.desktop-web .login-card .primary-button {
    min-height: 52px !important;
    margin-top: 16px !important;
    font-size: 18px !important;
}
html.desktop-web .remember-row input {
    width: 18px !important;
    height: 18px !important;
}
html.desktop-web #pair-phone-button,
html.desktop-web .pair-phone-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    font-size: 16px;
    cursor: pointer;
}

html.desktop-web .app-screen {
    width: 100% !important;
    height: auto !important;
    min-height: 0;
}
html.desktop-web .live-screen {
    display: grid !important;
    grid-template-columns: 320px minmax(0, 1fr) !important;
    width: 100% !important;
    height: calc(100vh - 84px) !important;
    min-height: 0;
    overflow: hidden !important;
}

html.desktop-web .live-screen > .category-rail {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    width: auto !important;
    overflow: hidden;
    padding: 12px 10px !important;
}
html.desktop-web .rail-heading {
    height: auto !important;
    padding: 4px 10px 10px !important;
    font-size: 13px !important;
    letter-spacing: 0.12em;
}
html.desktop-web .rail-search {
    height: 36px !important;
    margin: 0 4px 10px !important;
    font-size: 13px !important;
}
html.desktop-web .category-list {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0;
    overflow-y: auto !important;
}
html.desktop-web .category-item {
    min-height: 58px !important;
    padding: 10px 14px !important;
    font-size: 18px;
    border-radius: 10px;
}
html.desktop-web .category-item span {
    font-size: 18px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.desktop-web .live-main {
    height: 100% !important;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 12px 16px 10px !important;
    overflow: hidden;
}
html.desktop-web .preview-row {
    height: auto !important;
    flex: 0 0 auto;
    display: grid !important;
    grid-template-columns: minmax(280px, 1.15fr) minmax(200px, 0.85fr) !important;
    gap: 14px !important;
}
html.desktop-web .video-stage {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    max-height: 42vh;
    border-radius: 12px !important;
    overflow: hidden;
}
html.desktop-web #html-player,
html.desktop-web .video-empty {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}
html.desktop-web .program-panel {
    height: auto !important;
    max-height: 42vh;
    overflow: auto;
    padding: 20px 24px !important;
}
html.desktop-web .program-panel h2 {
    font-size: 26px !important;
}
html.desktop-web .guide-panel {
    flex: 1 1 auto;
    min-height: 140px;
    height: auto !important;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    overflow: hidden;
}
html.desktop-web .guide-header h2 {
    font-size: 22px !important;
}
html.desktop-web .time-ruler {
    font-size: 11px !important;
    opacity: 0.7;
}
html.desktop-web .channel-guide {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0;
    overflow-y: auto !important;
}
html.desktop-web .channel-row {
    height: 80px !important;
    overflow: hidden !important;
    border-radius: 10px;
}
html.desktop-web .channel-identity {
    flex: 0 1 320px !important;
    width: auto !important;
    min-width: 200px !important;
    max-width: 380px !important;
}
html.desktop-web .channel-copy {
    min-width: 0;
    overflow: hidden;
}
html.desktop-web .channel-copy strong {
    font-size: 20px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.desktop-web .channel-copy span {
    font-size: 15px !important;
}
html.desktop-web .epg-track {
    min-width: 0;
}

html.desktop-web .catalog-screen {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 72px minmax(0, 1fr) !important;
    width: 100% !important;
    height: calc(100vh - 84px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
html.desktop-web .catalog-screen > .category-rail {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
    height: 72px !important;
    min-height: 72px !important;
    padding: 8px 24px !important;
    grid-row: 1;
    overflow: auto hidden !important;
    border-right: 0 !important;
}
html.desktop-web .catalog-lane-bar {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    width: 100%;
    gap: 8px;
}
html.desktop-web .catalog-lane {
    min-width: 0 !important;
    width: auto !important;
    height: 48px !important;
    min-height: 48px !important;
    margin-right: 0 !important;
    padding: 0 18px !important;
    font-size: 16px !important;
    border-radius: 24px !important;
}
html.desktop-web .lane-flag {
    width: 42px !important;
    height: 26px !important;
    margin-right: 10px !important;
    overflow: hidden;
}
html.desktop-web .lane-flag svg {
    width: 42px !important;
    height: 26px !important;
}
html.desktop-web .lane-search-icon {
    width: 28px !important;
    height: 28px !important;
    margin-right: 8px !important;
}
html.desktop-web .catalog-screen .catalog-main {
    grid-row: 2;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}
html.desktop-web .catalog-shelves {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 280px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 8px 28px 32px !important;
}
html.desktop-web .catalog-feature {
    height: 28vh !important;
    max-height: 320px !important;
    min-height: 220px !important;
    flex: 0 0 28vh !important;
    border-radius: 0;
    margin: 0 !important;
}
html.desktop-web .catalog-screen:not(:has(.catalog-shelf-card:focus)) .catalog-feature {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    flex: 0 0 0 !important;
    overflow: hidden !important;
    opacity: 0;
}
html.desktop-web .catalog-feature-copy {
    width: min(720px, 100%) !important;
    padding: 28px 40px !important;
}
html.desktop-web .catalog-feature-copy h2 {
    font-size: 32px !important;
    max-height: 2.4em !important;
    line-height: 1.2 !important;
    margin: 8px 0 6px !important;
    overflow: hidden;
    -webkit-line-clamp: 2;
}
html.desktop-web .catalog-feature-meta,
html.desktop-web .catalog-feature-summary {
    font-size: 14px !important;
    max-height: 40px !important;
}
html.desktop-web .catalog-shelf {
    min-height: 0 !important;
    margin-bottom: 6px !important;
}
html.desktop-web .catalog-shelf h2 {
    height: auto !important;
    margin: 0 0 8px !important;
    font-size: 16px !important;
    font-weight: 600;
}
html.desktop-web .catalog-shelf-track {
    height: auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-transform: none !important;
    transform: none !important;
    padding-bottom: 10px;
    scrollbar-width: thin;
}
html.desktop-web .catalog-shelf-card {
    flex: 0 0 168px !important;
    width: 168px !important;
    max-width: 168px !important;
    height: auto !important;
    min-height: 0 !important;
    margin-right: 14px !important;
    overflow: visible !important;
}
html.desktop-web .catalog-shelf-card img,
html.desktop-web .catalog-shelf-card .placeholder {
    height: 236px !important;
    border-radius: 10px !important;
    font-size: 28px !important;
}
html.desktop-web .catalog-shelf-card strong {
    font-size: 15px !important;
    padding: 6px 2px 0 !important;
    font-weight: 600;
}
html.desktop-web .catalog-shelf-card span {
    font-size: 12px !important;
    padding: 2px 2px 0 !important;
}
html.desktop-web .catalog-shelf-card:hover,
html.desktop-web .catalog-shelf-card:focus {
    transform: translateY(-3px) scale(1.02);
    z-index: 4;
}
html.desktop-web .catalog-header {
    padding: 8px 24px !important;
}
html.desktop-web .catalog-search {
    width: min(480px, 100%) !important;
    height: 48px !important;
    font-size: 17px !important;
}
html.desktop-web .zap-overlay {
    pointer-events: auto !important;
    cursor: pointer;
}

html.desktop-web .video-stage.fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 80 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
}
html.desktop-web .video-stage.fullscreen #html-player,
html.desktop-web .video-stage.fullscreen .video-empty {
    width: 100% !important;
    height: 100% !important;
}
html.desktop-web .video-empty strong {
    font-size: 18px !important;
    text-align: center;
    padding: 0 16px;
}
html.desktop-web .video-empty span {
    font-size: 13px !important;
}
html.desktop-web .player-control {
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
}
html.desktop-web .player-fit-badge {
    top: 16px !important;
    right: 16px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
}

html.desktop-web .movie-screen,
html.desktop-web .series-screen,
html.desktop-web .detail-screen {
    width: 100% !important;
    height: calc(100vh - 84px) !important;
    min-height: 0 !important;
    overflow: auto !important;
    padding: 0 !important;
    box-sizing: border-box;
    position: relative;
}
html.desktop-web .detail-body {
    max-width: 1100px;
    padding: 28px 40px 48px !important;
    height: auto !important;
}
html.desktop-web .detail-copy {
    max-width: 640px !important;
}
html.desktop-web .detail-copy-movie {
    margin-top: 32px !important;
}
html.desktop-web .detail-copy h1,
html.desktop-web .detail-copy-movie h1 {
    font-size: 32px !important;
    max-height: none !important;
    margin: 8px 0 !important;
}
html.desktop-web .detail-screen .detail-meta {
    font-size: 15px !important;
}
html.desktop-web .detail-plot {
    max-width: 640px;
    max-height: none !important;
    font-size: 15px !important;
    -webkit-line-clamp: 8;
}
html.desktop-web .detail-tracks {
    font-size: 13px !important;
}
html.desktop-web .detail-backdrop.hero-art-poster {
    right: 48px !important;
    left: auto !important;
    max-width: 24% !important;
    height: 72% !important;
    top: 10% !important;
}
html.desktop-web .primary-button {
    min-height: 44px !important;
    font-size: 15px !important;
    padding: 0 20px !important;
}
html.desktop-web .small-button {
    min-height: 40px !important;
    font-size: 14px !important;
}
html.desktop-web .episode-list,
html.desktop-web .episode-grid {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 10px !important;
}
html.desktop-web .season-tabs {
    margin-top: 16px !important;
}

html.desktop-web .toast {
    font-size: 14px !important;
    padding: 12px 18px !important;
    bottom: 24px !important;
}

html.desktop-web .category-list::-webkit-scrollbar,
html.desktop-web .channel-guide::-webkit-scrollbar,
html.desktop-web .catalog-shelves::-webkit-scrollbar,
html.desktop-web .catalog-shelf-track::-webkit-scrollbar,
html.desktop-web .program-panel::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    display: block;
}
html.desktop-web .category-list::-webkit-scrollbar-thumb,
html.desktop-web .channel-guide::-webkit-scrollbar-thumb,
html.desktop-web .catalog-shelves::-webkit-scrollbar-thumb,
html.desktop-web .catalog-shelf-track::-webkit-scrollbar-thumb,
html.desktop-web .program-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 8px;
}

html.desktop-web [data-focusable]:focus {
    outline: 2px solid rgba(180, 220, 255, 0.5);
    outline-offset: 2px;
}

html.desktop-web .hidden,
html.desktop-web .login-screen.hidden,
html.desktop-web .app-screen.hidden,
html.desktop-web .dialog-backdrop.hidden {
    display: none !important;
}

@media (max-width: 980px) {
    html.desktop-web .login-screen {
        grid-template-columns: 1fr !important;
        max-width: none !important;
        padding: 72px 6vw 40px !important;
        gap: 28px !important;
    }
    html.desktop-web .live-screen {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto minmax(0, 1fr);
        overflow: auto !important;
    }
    html.desktop-web .live-screen > .category-rail {
        height: auto !important;
        max-height: 160px;
        flex-direction: column;
    }
    html.desktop-web .preview-row {
        grid-template-columns: 1fr !important;
    }
    html.desktop-web .video-stage,
    html.desktop-web .program-panel {
        max-height: none;
    }
    html.desktop-web .detail-backdrop.hero-art-poster {
        display: none !important;
    }
}
