﻿:root {
    --primary: #ff3045;
    --text: #ffffff;
    --muted: #cbb8bb;
    --panel: rgba(6, 0, 2, .82);
    --line: rgba(255, 255, 255, .16);
    --app-bg-image:
        radial-gradient(circle at 38% 4%, rgba(120, 0, 0, .55), transparent 34%),
        linear-gradient(135deg, #050000 0%, #1a0008 48%, #030000 100%);
}

* {
    box-sizing: border-box;
}

html,
body,
#root {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

html,
body {
    background-color: #050000;
    background-image: var(--app-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#root {
    position: relative;
    z-index: 1;
    background: transparent;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    color: var(--text);
    cursor: pointer;
}

.bg-dim {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 48, 69, .18), transparent 34%),
        linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.68));
    pointer-events: none;
    z-index: -1;
}

.content {
    position: relative;
    z-index: 1;
}

.topnav {
    display: none;
}

.screen {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 14px 22px 20px;
    isolation: isolate;
}

.login-screen {
    display: grid;
    grid-template-columns: 1fr 560px;
    align-items: center;
    gap: 92px;
    padding: 0;
    padding-left: 12.5vw;
    padding-right: 8vw;
}

.login-brand {
    position: relative;
    z-index: 1;
    width: 560px;
    max-width: 42vw;
    text-align: center;
}

.login-brand-logo,
.login-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 130px;
    margin-bottom: 58px;
}

.brand-logo {
    max-width: 245px;
    max-height: 148px;
    object-fit: contain;
    filter: drop-shadow(0 12px 26px rgba(255, 48, 69, .42));
}

.brand-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
}

.login-brand h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 38px;
    line-height: 1.05;
    font-weight: 900;
}

.login-brand p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 25px;
    font-weight: 700;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 560px;
    min-height: 510px;
    background: rgba(0,0,0,.62);
    border: 2px solid rgba(255,48,69,.58);
    border-radius: 22px;
    padding: 30px 34px 24px;
    box-shadow: 0 28px 90px rgba(0,0,0,.68), inset 0 1px 0 rgba(255,255,255,.08);
}

.login-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 22px;
}

.pill,
.nav-btn,
.category-btn,
.tool-btn {
    background: rgba(0,0,0,.36);
    border: 2px solid transparent;
    border-radius: 14px;
    min-height: 46px;
    padding: 0 22px;
    font-weight: 900;
    text-transform: uppercase;
}

.pill {
    width: 200px;
    min-height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    border-color: rgba(255,255,255,.22);
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

.pill.active,
.selected {
    color: #fff;
    background: var(--primary);
}

.pill.active {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.pill:focus,
.pill.active:focus {
    color: #fff;
    border-color: rgba(255,255,255,.86);
}

.focusable:focus {
    outline: none;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 48, 69, .2), 0 0 26px rgba(255, 48, 69, .25);
}

.nav-btn.selected:not(:focus),
.category-btn.selected:not(:focus) {
    border-color: transparent;
    box-shadow: none;
}

.login-heading {
    font-size: 30px;
    font-weight: 900;
    text-align: center;
    margin: 0 0 18px;
}

.login-help {
    color: var(--muted);
    text-align: center;
    font-size: 24px;
    margin-bottom: 22px;
}

.field {
    margin-bottom: 16px;
}

.field input {
    width: 100%;
    height: 86px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,.35);
    background: rgba(0,0,0,.4);
    color: #fff;
    padding: 0 22px;
    font-size: 26px;
}

.primary-btn {
    width: 100%;
    height: 76px;
    border-radius: 30px;
    background: var(--primary);
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
}

.status {
    min-height: 32px;
    color: var(--primary);
    font-size: 18px;
    margin-top: 18px;
    text-align: center;
}

.qr-box {
    display: grid;
    place-items: center;
    gap: 14px;
}

.qr-code {
    width: 250px;
    height: 250px;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
}

.device-code {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 10px;
    color: var(--primary);
}

.app-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.topnav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    margin-bottom: 6px;
}

.nav-logo {
    position: absolute;
    left: 54px;
    top: 8px;
    width: 88px;
    height: 42px;
    object-fit: contain;
}

.nav-title {
    font-size: 24px;
    font-weight: 900;
}

.nav-btn {
    min-width: 120px;
    height: 48px;
    border-radius: 10px;
    border-color: rgba(255,255,255,.72);
    font-size: 18px;
    color: rgba(255,255,255,.72);
    background: rgba(0,0,0,.42);
    padding: 0 18px;
}

.nav-btn.active {
    color: #fff;
    background: var(--primary);
    border-color: rgba(255,255,255,.88);
}

.nav-btn:focus,
.category-btn:focus,
.pill:focus,
.tool-btn:focus,
.episode-btn:focus,
.season-btn:focus {
    color: var(--primary);
    border-color: var(--primary);
}

.primary-btn:focus {
    color: #fff;
    border-color: rgba(255,255,255,.86);
    box-shadow: 0 0 0 3px rgba(255,255,255,.18), 0 0 32px rgba(255,48,69,.38);
}

.content {
    flex: 1;
    overflow: hidden;
}

.app-clock {
    position: absolute;
    right: 34px;
    top: 8px;
    z-index: 2;
    width: 286px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 14px 0 16px;
    border-radius: 30px;
    background: rgba(0,0,0,.58);
    border: 2px solid rgba(255,48,69,.72);
    box-shadow: 0 16px 38px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.08);
    overflow: hidden;
}

.app-clock strong {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-width: 98px;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    font-weight: 900;
    text-align: left;
}

.app-clock strong::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    margin: 0 12px 0 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,48,69,.86);
}

.app-clock span {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 2px;
    font-size: 12px;
    line-height: 1.15;
    color: #fff;
    font-weight: 900;
    text-align: left;
    padding-left: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.app-clock span b {
    color: var(--primary);
    font-size: 11px;
    line-height: 1;
}

.app-clock::before {
    content: "";
    width: 1px;
    height: 34px;
    background: rgba(255,255,255,.4);
    order: 2;
}

.app-clock strong {
    order: 1;
}

.app-clock span {
    order: 3;
}

.empty {
    font-size: 26px;
    font-weight: 800;
    color: var(--muted);
    margin: 28px 0 0;
}

.library-shell {
    display: grid;
    height: 100%;
    gap: 18px;
}

.vod-shell {
    grid-template-columns: 300px 1fr;
}

.live-shell {
    grid-template-columns: 300px 430px 1fr;
}

.library-shell aside {
    min-width: 0;
    height: 100%;
}

.library-shell aside h1 {
    margin: 20px 0 12px 24px;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
}

.categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: calc(100vh - 82px);
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 0 0 12px 14px;
}

.categories::-webkit-scrollbar,
.grid::-webkit-scrollbar {
    display: none;
}

.category-btn {
    width: 272px;
    min-height: 64px;
    justify-content: flex-start;
    text-align: left;
    border-radius: 8px;
    border-color: rgba(255,255,255,.78);
    background: rgba(23,25,31,.88);
    font-size: 18px;
    white-space: normal;
    color: #fff;
}

.category-btn.active {
    color: #fff;
    background: var(--primary);
    border-color: rgba(255,255,255,.94);
}

.grid {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 14px 14px;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 8px 28px 0;
    scrollbar-width: none;
}

.vod-content .grid {
    gap: 14px;
    padding-right: 0;
}

.card {
    position: relative;
    flex: 0 0 248px;
    width: 248px;
    height: 365px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(23,25,31,.92);
    border: 2px solid rgba(255,255,255,.20);
    color: #fff;
}

.vod-content .card {
    flex: 0 0 calc((100% - 70px) / 6);
    width: calc((100% - 70px) / 6);
    height: clamp(330px, calc((100vh - 112px) / 3), 430px);
}

.card:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255,48,69,.2), 0 18px 44px rgba(255,48,69,.22);
}

.card:focus .card-title {
    color: #fff;
}

.card img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card.live img {
    width: 84%;
    height: 62%;
    object-fit: contain;
    display: block;
    margin: 12% auto 0;
    border-radius: 18px;
    background: linear-gradient(180deg, #f4f4f4, #d6d6d6);
}

.shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 38%, rgba(0,0,0,.94));
}

.card-title {
    position: absolute;
    z-index: 2;
    left: 14px;
    right: 10px;
    bottom: 14px;
    font-size: 22px;
    line-height: 1.12;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 6px #000;
}

.home-page {
    height: 100%;
    overflow: hidden;
    padding-top: 4px;
}

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

.review-home-empty {
    height: 100%;
}

.loading-screen,
.loading-overlay {
    display: grid;
    place-items: center;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(2px);
}

.loading-panel {
    min-width: 440px;
    min-height: 188px;
    display: grid;
    place-items: center;
    gap: 22px;
    padding: 34px 46px;
    border-radius: 18px;
    background: rgba(5,0,2,.82);
    border: 2px solid rgba(255,48,69,.62);
    box-shadow: 0 28px 90px rgba(0,0,0,.68), inset 0 1px 0 rgba(255,255,255,.08);
}

.loading-spinner {
    width: 58px;
    height: 58px;
    border: 6px solid rgba(255,255,255,.18);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 900ms linear infinite;
}

.loading-panel strong {
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    text-align: center;
}

.home-vc101 {
    display: grid;
    grid-template-columns: clamp(500px, 35.4vw, 680px) minmax(0, 1fr);
    gap: 0;
    padding: 8px 0 0;
}

.home-menu-panel {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 128px 34px 0 10px;
}

.home-brand {
    height: 235px;
    display: grid;
    place-items: center;
}

.home-logo {
    width: 438px;
    max-height: 238px;
    object-fit: contain;
    filter: drop-shadow(0 14px 30px rgba(255,48,69,.35));
}

.home-logo-text {
    color: #fff;
    font-size: 42px;
    font-weight: 900;
}

.home-menu-grid {
    width: min(600px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 58px 36px;
    padding: 18px 24px 0;
}

.home-menu-card {
    position: relative;
    height: 220px;
    border-radius: 28px;
    border: 2px solid rgba(255,48,69,.56);
    background: rgba(0,0,0,.26);
    color: var(--primary);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.home-menu-card:focus {
    outline: none;
    border-color: rgba(255,255,255,.96);
    background: rgba(255,48,69,.22);
    box-shadow: 0 0 0 4px rgba(255,48,69,.24), 0 22px 58px rgba(255,48,69,.20);
}

.home-menu-icon {
    position: absolute;
    left: 50%;
    top: 40px;
    width: 128px;
    height: 128px;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    border-radius: 30px;
    background: rgba(0,0,0,.22);
    border: 2px solid rgba(255,255,255,.08);
}

.home-menu-icon img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(0,0,0,.48));
}

.home-menu-card strong {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -58px;
    color: var(--primary);
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 3px 7px #000;
}

.home-reload {
    position: absolute;
    left: 50%;
    bottom: 78px;
    transform: translateX(-54%);
    width: 520px;
    height: 82px;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,.72);
    background: rgba(0,0,0,.28);
    color: var(--primary);
    font-size: 26px;
    font-weight: 900;
}

.home-reload span {
    margin-right: 18px;
    font-size: 28px;
}

.home-reload:focus {
    outline: none;
    background: var(--primary);
    color: #fff;
    border-color: rgba(255,255,255,.96);
}

.home-version {
    position: absolute;
    left: 50%;
    bottom: 44px;
    transform: translateX(-54%);
    color: rgba(255,255,255,.78);
    font-size: 16px;
    font-weight: 900;
}

.home-content-panel {
    min-width: 0;
    padding: 36px 0 0 8px;
    overflow: hidden;
}

.home-section {
    margin-bottom: 7px;
    overflow: hidden;
}

.home-section h2,
.content-head h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 23px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.home-section h2 {
    display: inline-block;
    margin: 0 0 6px;
    color: #fff;
    font-size: 23px;
    line-height: .95;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow:
        2px 2px 0 rgba(255,48,69,.88),
        0 3px 0 rgba(0,0,0,.96),
        0 0 12px rgba(0,0,0,.95);
}

.home-row {
    display: flex;
    gap: 13px;
    overflow: hidden;
}

.home-row .card {
    flex: 0 0 auto;
}

.highlight-row .card {
    width: calc((100vw - 70px) / 3);
    height: auto;
    aspect-ratio: 2.59 / 1;
}

.games-row .card {
    width: calc((100% - 26px) / 3);
    height: auto;
    aspect-ratio: 1.92 / 1;
}

.games-row.games-slider {
    width: max-content;
    min-width: 100%;
    animation: gamesSlide calc(var(--game-count, 4) * 3.2s) ease-in-out infinite;
}

.games-row.games-slider .card {
    width: calc((100vw - 724px) / 3);
}

.games-row.games-slider:hover,
.games-row.games-slider:focus-within {
    animation-play-state: paused;
}

@keyframes gamesSlide {
    0%, 22% { transform: translateX(0); }
    42%, 64% { transform: translateX(calc(-1 * ((100vw - 724px) / 3))); }
    84%, 100% { transform: translateX(0); }
}

.home-vc101 .media-row .card {
    width: calc((100% - 52px) / 5);
    height: clamp(360px, 37vh, 405px);
}

.games-row .card-title {
    display: none;
}

.games-row .shade {
    display: none;
}

.home-row .card-title {
    font-size: 15px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    line-height: 1.05;
    max-height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-align: center;
}

.home-row.games-row .card-title {
    display: none;
}

.home-row .card img {
    object-fit: cover;
}

.content-head {
    height: 54px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 8px 10px 0;
}

.content-head span {
    color: rgba(255,255,255,.62);
    font-size: 18px;
    font-weight: 900;
}

.channel-column {
    min-width: 0;
}

.channel-list {
    height: calc(100vh - 74px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: none;
}

.channel-row {
    width: 100%;
    height: 76px;
    display: grid;
    grid-template-columns: 48px 64px 1fr;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    padding: 0 16px;
    border: 2px solid rgba(255,48,69,.78);
    border-radius: 8px;
    background: rgba(23,25,31,.86);
    color: #fff;
    text-align: left;
}

.channel-row:focus {
    outline: none;
    background: rgba(35,36,43,.96);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,48,69,.16);
}

.channel-number {
    color: rgba(255,255,255,.58);
    font-size: 20px;
}

.channel-row img,
.channel-icon {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255,255,255,.94);
}

.channel-row strong {
    font-size: 22px;
    font-weight: 900;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.live-preview {
    min-width: 0;
    margin-top: 54px;
    padding-right: 16px;
}

.preview-image {
    height: 71vh;
    display: grid;
    place-items: center;
    background: rgba(20,22,28,.92);
    border-radius: 8px;
    overflow: hidden;
}

.preview-image img {
    width: 62%;
    height: 62%;
    object-fit: contain;
}

.preview-image span {
    font-size: 48px;
    font-weight: 900;
}

.live-preview h2 {
    margin: 16px 0 4px;
    font-size: 28px;
    font-weight: 900;
}

.live-preview p {
    margin: 0 0 16px;
    color: rgba(255,255,255,.72);
    font-size: 18px;
    font-weight: 700;
}

.epg-preview {
    display: grid;
    grid-template-columns: 110px 22px 1fr;
    gap: 8px;
    padding: 18px 22px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: rgba(0,0,0,.56);
    font-size: 19px;
}

.epg-preview b {
    color: var(--primary);
}

.vod-content {
    min-width: 0;
}

.search-panel,
.profile-panel,
.details-panel {
    background: rgba(0,0,0,.72);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
}

.search-input {
    width: 100%;
    height: 58px;
    background: rgba(0,0,0,.55);
    border: 2px solid rgba(255,255,255,.24);
    color: #fff;
    border-radius: 12px;
    font-size: 24px;
    padding: 0 20px;
    margin-bottom: 24px;
}

.search-input:focus,
.pin-input:focus,
.field input:focus {
    outline: none;
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(255,48,69,.18), 0 0 24px rgba(255,48,69,.18);
}

.profile-compact {
    width: min(1040px, 76vw);
    min-height: 0;
    padding: 30px 40px 28px;
    margin: 24px auto 0;
    border: 4px solid rgba(255,23,50,.86);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(18,12,18,.94), rgba(25,22,29,.90));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 88px rgba(0,0,0,.55);
}

.profile-compact h1 {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 28px;
    border-radius: 10px;
    background: #f4142b;
    font-size: 36px;
    line-height: 1;
    margin: 0 0 22px;
    font-weight: 900;
    color: #fff;
    text-align: left;
    text-transform: uppercase;
}

.profile-compact h2 {
    color: #fff;
}

.profile-compact h2 {
    font-size: 28px;
    line-height: 1.1;
    margin: 18px 0 8px;
    font-weight: 900;
}

.profile-compact .tool-row + .status {
    margin-top: 10px;
}

.profile-info {
    margin-bottom: 18px;
}

.profile-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: center;
    min-height: 44px;
    padding: 0 22px;
    font-size: 24px;
    line-height: 1.1;
    margin-bottom: 6px;
    border: 2px solid rgba(151, 0, 16, .82);
    border-radius: 10px;
    background: rgba(11,0,4,.42);
}

.profile-label {
    color: var(--muted);
    font-weight: 800;
}

.profile-row strong {
    font-weight: 900;
    text-align: right;
    color: #fff;
}

.profile-help {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.25;
    margin: 0 0 14px;
    max-width: 720px;
}

.pin-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.pin-input {
    width: 170px;
    height: 68px;
    border-radius: 12px;
    border: 2px solid rgba(255,23,50,.76);
    background: rgba(0,0,0,.46);
    color: #fff;
    padding: 0 22px;
    font-size: 20px;
    font-weight: 800;
}

.tool-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.tool-btn {
    min-width: 150px;
    height: 58px;
    border-radius: 12px;
    background: rgba(28,31,39,.92);
    border: 2px solid rgba(255,23,50,.52);
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

@media (max-width: 1366px) {
    .login-screen {
        grid-template-columns: 1fr 420px;
        gap: 56px;
        padding-left: 10vw;
        padding-right: 6vw;
    }

    .login-card {
        width: 420px;
        min-height: 430px;
        padding: 24px;
    }

    .pill {
        width: 150px;
        min-height: 54px;
        font-size: 16px;
    }

    .field input {
        height: 64px;
        font-size: 20px;
    }

    .primary-btn {
        height: 58px;
        font-size: 20px;
    }

    .login-brand h1 {
        font-size: 30px;
    }

    .login-brand p {
        font-size: 20px;
    }

    .vod-shell {
        grid-template-columns: 248px 1fr;
    }

    .live-shell {
        grid-template-columns: 248px 350px 1fr;
    }

    .category-btn {
        width: 230px;
        min-height: 54px;
        font-size: 15px;
    }

    .card {
        width: 178px;
        height: 262px;
        flex-basis: 178px;
    }

    .highlight-row .card,
    .games-row .card {
        height: auto;
    }

    .media-row .card {
        width: calc((100vw - 94px) / 5);
        height: auto;
    }

    .vod-content .card {
        flex: 0 0 calc((100% - 70px) / 6);
        width: calc((100% - 70px) / 6);
        height: clamp(250px, calc((100vh - 100px) / 3), 330px);
    }

    .home-vc101 .media-row .card {
        width: calc((100% - 52px) / 5);
        height: clamp(188px, 27vh, 218px);
    }

    .app-clock {
        right: 18px;
        top: 8px;
        width: clamp(220px, 24vw, 286px);
        min-width: 220px;
        height: 54px;
        min-height: 54px;
        gap: 8px;
        padding: 0 10px 0 12px;
        border-radius: 27px;
    }

    .app-clock strong {
        min-width: 78px;
        font-size: clamp(23px, 2.4vw, 28px);
    }

    .app-clock strong::before {
        width: 8px;
        height: 8px;
        margin-right: 9px;
        box-shadow: 0 0 0 3px rgba(255,48,69,.86);
    }

    .app-clock span {
        font-size: clamp(9px, 1.2vw, 12px);
        padding-left: 8px;
        white-space: nowrap;
    }

    .app-clock span b {
        font-size: clamp(9px, 1.1vw, 11px);
    }

    .app-clock::before {
        height: 30px;
    }

    .preview-image {
        height: 64vh;
    }
}

@media (max-height: 820px) {
    .home-content-panel {
        padding-top: 20px;
    }

    .home-section {
        margin-bottom: 4px;
    }

    .home-section h2 {
        margin-bottom: 4px;
    }

    .home-vc101 .media-row .card {
        height: clamp(188px, 26vh, 218px);
    }

    .home-row .card-title {
        bottom: 8px;
        font-size: 14px;
        max-height: 48px;
    }
}

@media (min-width: 2500px) {
    .screen {
        padding: 28px 44px 40px;
    }

    .topnav {
        min-height: 104px;
        gap: 24px;
    }

    .nav-logo {
        left: 108px;
        top: 16px;
        width: 176px;
        height: 84px;
    }

    .nav-btn {
        min-width: 240px;
        height: 96px;
        border-radius: 20px;
        font-size: 36px;
    }

    .app-clock {
        right: 64px;
        top: 36px;
        min-width: 240px;
        min-height: 124px;
        padding: 16px 36px;
        border-radius: 24px;
    }

    .app-clock strong {
        font-size: 48px;
    }

    .app-clock span {
        font-size: 28px;
    }

    .home-section h2,
    .content-head h2 {
        font-size: 46px;
        margin-bottom: 10px;
    }

    .home-section {
        margin-bottom: 14px;
    }

    .home-row {
        gap: 26px;
    }

    .home-row .card-title {
        font-size: 26px;
        bottom: 14px;
        max-height: 88px;
    }

    .vod-shell {
        grid-template-columns: 600px 1fr;
    }

    .live-shell {
        grid-template-columns: 600px 860px 1fr;
    }

    .library-shell {
        gap: 32px;
    }

    .library-shell aside h1 {
        margin: 40px 0 24px 48px;
        font-size: 56px;
    }

    .categories {
        gap: 20px;
        height: calc(100vh - 256px);
        padding-left: 28px;
    }

    .category-btn {
        width: 544px;
        min-height: 128px;
        border-radius: 16px;
        font-size: 36px;
        padding: 0 44px;
    }

    .grid {
        gap: 28px;
        max-height: calc(100vh - 236px);
    }

    .vod-content .card {
        width: calc((100vw - 930px) / 6);
        flex-basis: calc((100vw - 930px) / 6);
        height: auto;
        aspect-ratio: 248 / 365;
    }

    .card-title {
        font-size: 44px;
    }

    .content-head {
        height: 108px;
        padding-bottom: 20px;
    }

    .content-head span {
        font-size: 36px;
    }
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.88);
    z-index: 20;
}

.modal.hidden,
.hidden {
    display: none !important;
}

.details-panel {
    width: min(1180px, 91vw);
    min-height: 540px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    box-shadow: 0 36px 110px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
}

.series-details {
    width: min(1320px, 93vw);
    min-height: 620px;
    grid-template-columns: 300px 1fr;
}

.series-detail-full {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 78px 54px;
    background:
        linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.90) 33%, rgba(0,0,0,.38) 72%, rgba(0,0,0,.62) 100%),
        linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.96)),
        var(--detail-bg);
    background-size: cover;
    background-position: center;
    scrollbar-width: none;
}

.series-detail-full::-webkit-scrollbar {
    display: none;
}

.series-hero {
    width: min(1120px, 64vw);
    padding-top: 0;
}

.series-hero .details-title {
    margin: 0 0 22px;
    font-size: 56px;
    line-height: .98;
}

.series-meta {
    display: flex;
    gap: 14px;
    color: #ffd33d;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 24px;
}

.series-meta span + span::before {
    content: "â€¢";
    margin-right: 14px;
}

.series-hero .details-desc {
    max-width: 1120px;
    max-height: none;
    margin-bottom: 26px;
    color: rgba(255,255,255,.86);
    font-size: 25px;
    line-height: 1.28;
}

.series-actions {
    margin: 0 0 28px;
}

.series-actions .primary-btn,
.series-actions .tool-btn {
    width: 178px;
    height: 66px;
    border-radius: 9px;
    font-size: 18px;
    border: 2px solid rgba(255,255,255,.72);
}

.series-actions .tool-btn {
    background: rgba(30,34,42,.86);
}

.series-block {
    margin-top: 18px;
}

.series-block h2 {
    margin: 0 0 22px;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
}

.series-detail-full .season-list {
    display: flex;
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 6px;
    scrollbar-width: none;
}

.series-detail-full .season-list::-webkit-scrollbar,
.series-detail-full .episode-list::-webkit-scrollbar,
.similar-row::-webkit-scrollbar {
    display: none;
}

.series-detail-full .season-btn {
    flex: 0 0 248px;
    height: 80px;
    border-radius: 10px;
    background: rgba(45,48,54,.82);
    border: 2px solid rgba(255,255,255,.78);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    padding: 0 18px;
}

.series-detail-full .season-btn.active,
.series-detail-full .season-btn:focus {
    background: var(--primary);
    border-color: rgba(255,255,255,.94);
    color: #fff;
}

.series-detail-full .episode-list {
    display: flex;
    flex-direction: row;
    gap: 18px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 6px;
    scrollbar-width: none;
}

.series-detail-full .episode-btn {
    position: relative;
    flex: 0 0 380px;
    width: 380px;
    height: 145px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(23,25,31,.92);
    border: 2px solid rgba(255,255,255,.18);
    text-align: left;
    padding: 0;
    color: #fff;
}

.series-detail-full .episode-btn img,
.series-detail-full .episode-btn span {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: rgba(23,25,31,.9);
}

.series-detail-full .episode-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.92));
}

.series-detail-full .episode-btn strong {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 16px;
    bottom: 18px;
    font-size: 22px;
    line-height: 1.08;
    font-weight: 900;
    white-space: normal;
}

.series-detail-full .episode-btn small {
    position: absolute;
    z-index: 1;
    left: 18px;
    top: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.series-detail-full .episode-btn:focus {
    background: rgba(35,36,43,.96);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,48,69,.22);
}

.similar-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.similar-row .card {
    flex: 0 0 220px;
    width: 220px;
    height: 325px;
}

.similar-row .card-title {
    font-size: 18px;
}

.details-content {
    min-width: 0;
}

.confirm-panel {
    width: min(560px, 82vw);
    padding: 34px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(4,4,7,.96);
}

.confirm-panel h2 {
    margin: 0 0 24px;
    font-size: 32px;
    font-weight: 900;
}

.details-poster {
    width: 100%;
    height: 442px;
    object-fit: cover;
    border-radius: 12px;
    background: #111;
}

.details-title {
    font-size: 42px;
    line-height: 1.05;
    font-weight: 900;
    margin: 0 0 12px;
}

.details-desc {
    color: #f5f5f7;
    font-size: 22px;
    line-height: 1.35;
    max-height: 118px;
    overflow: hidden;
    margin: 0 0 14px;
    font-weight: 700;
}

.episodes-area {
    min-height: 0;
}

.series-details .episodes-area {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 16px;
    height: 300px;
    margin-top: 8px;
}

.season-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: none;
}

.season-btn {
    min-height: 50px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(255,255,255,.08);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    text-align: left;
    padding: 0 14px;
}

.season-btn.active {
    color: #fff;
    border-color: rgba(255,48,69,.78);
    background: rgba(255,48,69,.26);
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: none;
}

.episode-btn {
    height: 56px;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    border: 2px solid rgba(255,255,255,.08);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    text-align: left;
    padding: 0 16px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.episode-btn:focus {
    color: #fff;
    background: rgba(255,48,69,.30);
    border-color: var(--primary);
}

.actions {
    display: flex;
    gap: 16px;
    margin-top: 22px;
}

.movie-details .actions {
    align-items: center;
}

.movie-details #watch-now {
    max-width: 430px;
}

.player {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 30;
}

.player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-osd {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px 44px;
    background: linear-gradient(180deg, rgba(0,0,0,.46), transparent 35%, rgba(0,0,0,.62));
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}

.player-osd.visible {
    opacity: 1;
    pointer-events: auto;
}

.player-title {
    display: inline-flex;
    align-self: flex-start;
    max-width: 560px;
    padding: 18px 24px;
    border-radius: 18px;
    background: rgba(0,0,0,.68);
    font-size: 30px;
    font-weight: 900;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 18px;
}

.progress {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.24);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: var(--primary);
}

.time {
    min-width: 150px;
    font-size: 18px;
    color: var(--muted);
}

.epg-box {
    position: absolute;
    left: 44px;
    bottom: 104px;
    min-width: 520px;
    max-width: 720px;
    background: rgba(0,0,0,.72);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 14px;
    padding: 16px 20px;
    color: #fff;
    font-size: 18px;
}

.epg-line {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    margin: 4px 0;
}

.epg-label {
    color: var(--primary);
    font-weight: 900;
}

.media-detail-full {
    padding: 84px 78px 54px;
    background:
        linear-gradient(90deg, rgba(0,0,0,.97) 0%, rgba(0,0,0,.88) 38%, rgba(0,0,0,.28) 74%, rgba(0,0,0,.50) 100%),
        linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.92)),
        var(--detail-bg);
    background-size: cover;
    background-position: center;
}

.media-detail-full .series-hero {
    width: min(1060px, 62vw);
    min-height: 470px;
}

.media-detail-full .details-title {
    margin: 0 0 24px;
    max-width: 980px;
    font-size: 58px;
    line-height: .98;
    text-shadow: 0 4px 24px rgba(0,0,0,.58);
}

.media-detail-full .series-meta {
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
    color: #fff;
    font-size: 24px;
}

.media-detail-full .series-meta span + span::before {
    margin-right: 16px;
    color: #fff;
}

.media-detail-full .series-meta #detail-rating {
    color: #ffe64c;
}

.media-detail-full .detail-genres {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
}

.media-detail-full .detail-genres::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    flex: 0 0 auto;
}

.media-detail-full .details-desc {
    max-width: 960px;
    min-height: 100px;
    margin: 0 0 30px;
    color: rgba(255,255,255,.94);
    font-size: 23px;
    line-height: 1.26;
    font-weight: 800;
    text-shadow: 0 3px 18px rgba(0,0,0,.68);
}

.media-detail-full .series-actions {
    margin: 0 0 42px;
    gap: 16px;
}

.media-detail-full .series-actions .primary-btn,
.media-detail-full .series-actions .tool-btn {
    width: 190px;
    height: 70px;
    font-size: 19px;
}

.media-detail-full .series-block {
    margin-top: 24px;
}

.search-keyboard-panel {
    gap: 8px;
    height: calc(100vh - 74px);
    padding: 0 0 18px 14px;
}

.search-logo {
    width: 92px;
    height: 56px;
    margin: 0 auto 8px 46px;
    background: var(--logo-url) center / contain no-repeat;
}

.search-display {
    width: 330px;
    height: 66px;
    margin: 0 0 8px;
    padding: 0 18px;
    border: 3px solid var(--primary);
    border-radius: 8px;
    background: rgba(34,38,47,.96);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.search-display:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,48,69,.24);
}

.keyboard-grid {
    width: 330px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.keyboard-key,
.keyboard-action,
.keyboard-back {
    border: 2px solid rgba(255,255,255,.84);
    border-radius: 8px;
    background: rgba(34,38,47,.96);
    color: #fff;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.keyboard-key {
    width: 50px;
    height: 50px;
    font-size: 22px;
}

.keyboard-action {
    width: 58px;
    height: 54px;
    font-size: 13px;
    padding: 0 4px;
}

.keyboard-actions {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.keyboard-back {
    width: 330px;
    height: 54px;
    margin-top: 2px;
    font-size: 15px;
}

.keyboard-key:focus,
.keyboard-action:focus,
.keyboard-back:focus {
    outline: none;
    border-color: #fff;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,48,69,.24);
}

.library-search-grid {
    display: block;
}

#library-search-results.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-content: flex-start;
}

#library-search-results.channel-list {
    height: calc(100vh - 128px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Web player: scale the original Smart TV interface as one proportional stage. */
.web-player-ui,
.web-player-ui body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background-color: #050000;
    background-image: var(--app-bg-image);
    background-size: cover;
    background-position: center;
}

.web-player-ui #web-player-stage {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background-color: #050000;
    background-image: var(--app-bg-image);
    background-size: cover;
    background-position: center;
}

.web-player-ui #web-player-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 48, 69, .18), transparent 34%),
        linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.68));
    pointer-events: none;
}

.web-player-ui #root {
    position: absolute;
    top: var(--web-player-top, 0);
    left: var(--web-player-left, 0);
    width: 1920px;
    height: 1080px;
    transform: scale(var(--web-player-scale, .82));
    transform-origin: top left;
    overflow: hidden;
}

.web-player-ui #root .bg-dim {
    display: none;
}

.web-player-ui .login-tabs,
.web-player-ui .qr-box {
    display: none;
}

.web-player-ui .login-title-line {
    margin-bottom: 28px;
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.web-player-ui .app-clock {
    display: none;
}

.web-player-ui .home-page {
    height: 100%;
    overflow: hidden;
}

.web-player-ui .home-vc101 {
    height: 100%;
    grid-template-columns: 480px minmax(0, 1fr);
    gap: 18px;
    padding: 0;
}

.web-player-ui .home-menu-panel {
    position: relative;
    height: 100%;
    padding: 82px 28px 0;
}

.web-player-ui .home-brand {
    height: 150px;
}

.web-player-ui .home-logo {
    width: 305px;
    max-height: 148px;
}

.web-player-ui .home-logo-text {
    font-size: 32px;
}

.web-player-ui .home-menu-grid {
    width: 392px;
    gap: 24px 22px;
    padding: 10px 0 0;
}

.web-player-ui .home-menu-card {
    height: 142px;
    border-radius: 18px;
}

.web-player-ui .home-menu-icon {
    top: 18px;
    width: 76px;
    height: 76px;
    border-radius: 18px;
}

.web-player-ui .home-menu-icon img {
    width: 68px;
    height: 68px;
}

.web-player-ui .home-menu-card strong {
    bottom: 18px;
    color: var(--primary);
    font-size: 25px;
    line-height: 1;
}

.web-player-ui .home-reload {
    position: static;
    width: 392px;
    height: 58px;
    margin-top: 42px;
    transform: none;
    border-radius: 12px;
    font-size: 19px;
}

.web-player-ui .home-reload span {
    margin-right: 10px;
    font-size: 20px;
}

.web-player-ui .home-version {
    position: static;
    margin-top: 12px;
    transform: none;
    font-size: 13px;
    text-align: center;
}

.web-player-ui .home-content-panel {
    height: 100%;
    padding: 118px 42px 0 0;
    overflow: hidden;
}

.web-player-ui .home-section {
    margin-bottom: 18px;
}

.web-player-ui .home-section h2,
.web-player-ui .content-head h2 {
    margin-bottom: 10px;
    font-size: 28px;
    line-height: 1;
}

.web-player-ui .home-section h2 {
    text-shadow:
        2px 2px 0 rgba(255,48,69,.76),
        0 3px 0 rgba(0,0,0,.92),
        0 0 12px rgba(0,0,0,.9);
}

.web-player-ui .home-row {
    gap: 16px;
    overflow: hidden;
}

.web-player-ui .home-vc101 .media-row .card {
    width: calc((100% - 64px) / 5);
    height: 292px;
}

.web-player-ui .games-row .card,
.web-player-ui .games-row.games-slider .card {
    width: calc((100% - 32px) / 3);
    height: auto;
    aspect-ratio: 1.92 / 1;
}

.web-player-ui .home-row .card-title {
    font-size: 18px;
    line-height: 1.08;
    max-height: 60px;
}

@media (max-height: 900px) {
    .web-player-ui .home-menu-panel {
        padding-top: 58px;
    }

    .web-player-ui .home-brand {
        height: 126px;
    }

    .web-player-ui .home-logo {
        width: 270px;
        max-height: 124px;
    }

    .web-player-ui .home-menu-grid {
        gap: 20px 18px;
    }

    .web-player-ui .home-menu-card {
        height: 126px;
    }

    .web-player-ui .home-menu-icon {
        top: 16px;
        width: 66px;
        height: 66px;
    }

    .web-player-ui .home-menu-icon img {
        width: 58px;
        height: 58px;
    }

    .web-player-ui .home-menu-card strong {
        bottom: 16px;
        font-size: 22px;
    }

    .web-player-ui .home-reload {
        height: 50px;
        margin-top: 32px;
        font-size: 17px;
    }

    .web-player-ui .home-content-panel {
        padding-top: 78px;
    }

    .web-player-ui .home-vc101 .media-row .card {
        height: 248px;
    }
}

