:root {
    color-scheme: dark;
    --bg: #071113;
    --panel: #101a1d;
    --panel-soft: #162326;
    --player: #05090a;
    --line: rgba(255, 255, 255, 0.11);
    --text: #f2f7f4;
    --muted: #a6b7b2;
    --accent: #22c55e;
    --accent-2: #38bdf8;
    --danger: #f97316;
    --control-h: 42px;
    --card-radius: 8px;
    --shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
    --tap: rgba(34, 197, 94, 0.22);
}

@media (orientation: landscape) and (pointer: coarse) and (max-width: 860px) and (max-height: 430px) {
    body.cinema-active:not(.sidebar-collapsed):not(.cinema-playing) .app-shell,
    body.series-active:not(.sidebar-collapsed):not(.series-playing) .app-shell {
        grid-template-columns: 180px minmax(0, 1fr) !important;
    }

    body.cinema-active:not(.sidebar-collapsed).cinema-playing .app-shell,
    body.series-active:not(.sidebar-collapsed).series-playing .app-shell {
        grid-template-columns: 180px var(--moto-content-w) minmax(0, 1fr) !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .sidebar,
    body.series-active:not(.sidebar-collapsed) .sidebar {
        width: 180px !important;
        align-items: stretch !important;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
            rgba(3, 12, 14, 0.98) !important;
        box-shadow: 16px 0 32px rgba(0, 0, 0, 0.36) !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .mode-tabs,
    body.series-active:not(.sidebar-collapsed) .mode-tabs {
        width: auto !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .mode,
    body.series-active:not(.sidebar-collapsed) .mode {
        min-width: 0 !important;
        min-height: 36px !important;
        padding: 5px 4px !important;
        font-size: 11px !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .brand > div:not(.brand-mark),
    body.cinema-active:not(.sidebar-collapsed) .search-box,
    body.series-active:not(.sidebar-collapsed) .brand > div:not(.brand-mark),
    body.series-active:not(.sidebar-collapsed) .search-box {
        display: grid !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .sidebar .categories,
    body.cinema-active:not(.sidebar-collapsed) .sidebar .category-list,
    body.series-active:not(.sidebar-collapsed) .sidebar .categories,
    body.series-active:not(.sidebar-collapsed) .sidebar .category-list {
        width: auto !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .category-chip,
    body.series-active:not(.sidebar-collapsed) .category-chip {
        place-items: center start !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 34px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .category-chip span,
    body.series-active:not(.sidebar-collapsed) .category-chip span {
        max-width: 130px !important;
        color: inherit !important;
        font-size: 12px !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .category-chip span::before,
    body.series-active:not(.sidebar-collapsed) .category-chip span::before {
        content: none !important;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 30% -10%, rgba(34, 197, 94, 0.16), transparent 34%), var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.35;
    overflow: hidden;
}

html,
body {
    overscroll-behavior: none;
    scrollbar-color: rgba(0, 255, 166, 0.62) rgba(3, 10, 12, 0.82);
    scrollbar-width: thin;
}

* {
    scrollbar-color: rgba(0, 255, 166, 0.62) rgba(3, 10, 12, 0.82);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
        rgba(3, 10, 12, 0.82);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    min-height: 44px;
    border: 3px solid rgba(3, 10, 12, 0.82);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(0, 255, 166, 0.92), rgba(0, 119, 94, 0.88));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 16px rgba(0, 255, 166, 0.16);
}

::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(180deg, rgba(55, 255, 190, 0.98), rgba(0, 165, 122, 0.95));
}

::-webkit-scrollbar-corner {
    background: rgba(3, 10, 12, 0.82);
}

.category-list::-webkit-scrollbar,
.content-panel::-webkit-scrollbar,
.details-panel::-webkit-scrollbar,
.terms-panel::-webkit-scrollbar,
.desktop-gate__shell::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.category-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.035);
}

.category-list::-webkit-scrollbar-thumb {
    border-width: 2px;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
    touch-action: manipulation;
    min-width: 0;
    letter-spacing: 0;
    transition: transform 120ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
    -webkit-tap-highlight-color: transparent;
}

button:active {
    transform: scale(0.98);
}

button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    gap: 22px;
    align-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(34, 197, 94, 0.2), transparent 28%),
        radial-gradient(circle at 64% 48%, rgba(56, 189, 248, 0.14), transparent 22%),
        linear-gradient(145deg, #020607, #071113 48%, #020607);
    color: var(--text);
    opacity: 1;
    visibility: visible;
    transition: opacity 460ms ease, visibility 460ms ease;
}

.splash-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
    opacity: 0.42;
}

.splash-screen::after {
    content: "";
    position: absolute;
    width: min(74vw, 760px);
    height: min(74vw, 760px);
    border: 1px solid rgba(34, 197, 94, 0.14);
    border-radius: 50%;
    box-shadow: inset 0 0 80px rgba(34, 197, 94, 0.08), 0 0 80px rgba(56, 189, 248, 0.05);
    animation: splashPulse 1800ms ease-in-out infinite;
}

.splash-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-orbit {
    position: relative;
    z-index: 1;
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 28px 80px rgba(0, 0, 0, 0.42);
}

.splash-orbit::before {
    content: "TONY";
    display: grid;
    place-items: center;
    width: 78px;
    height: 58px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #041012;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(34, 197, 94, 0.22);
}

.splash-orbit span {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(34, 197, 94, 0.95);
    border-right-color: rgba(56, 189, 248, 0.55);
    animation: splashSpin 1150ms linear infinite;
}

.splash-orbit span:nth-child(2) {
    inset: 22px;
    animation-duration: 1550ms;
    animation-direction: reverse;
    border-top-color: rgba(56, 189, 248, 0.75);
    border-right-color: rgba(34, 197, 94, 0.22);
}

.splash-orbit span:nth-child(3) {
    inset: 2px;
    animation-duration: 2100ms;
    border-top-color: rgba(255, 255, 255, 0.32);
    border-right-color: transparent;
}

.splash-brand {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
    text-align: center;
}

.splash-brand strong {
    font-size: clamp(42px, 6vw, 74px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0;
}

.splash-brand strong span {
    color: var(--accent);
}

.splash-brand small {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.splash-loader {
    position: relative;
    z-index: 1;
    width: min(280px, 62vw);
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.splash-loader span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.45);
    animation: splashLoad 1050ms ease-in-out infinite;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(320px, 0.82fr) minmax(500px, 1.45fr);
    height: 100vh;
    transition: grid-template-columns 180ms ease;
}

body.home-active {
    overflow: auto;
    background:
        radial-gradient(circle at 78% 2%, rgba(56, 189, 248, 0.16), transparent 34%),
        radial-gradient(circle at 18% 10%, rgba(34, 197, 94, 0.16), transparent 28%),
        #04090b;
}

body.home-active .app-shell {
    display: block;
    height: auto;
    min-height: 100vh;
}

body.home-active .sidebar,
body.home-active .player-panel,
body.home-active .content-head {
    display: none;
}

body.home-active .content-panel {
    min-height: 100vh;
    overflow: visible;
    padding: 0;
    border-left: 0;
    background: transparent;
}

.sidebar-collapsed .app-shell {
    grid-template-columns: 76px minmax(320px, 0.76fr) minmax(560px, 1.6fr);
}

body.cinema-active:not(.cinema-playing) .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
}

body.series-active:not(.series-playing) .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
}

body.cinema-active:not(.cinema-playing) .player-panel,
body.series-active:not(.series-playing) .player-panel {
    display: none;
}

body.cinema-active:not(.cinema-playing) .content-panel,
body.series-active:not(.series-playing) .content-panel {
    border-right: 1px solid var(--line);
    border-radius: 0 18px 18px 0;
}

body.cinema-active.cinema-playing .app-shell {
    grid-template-columns: 76px minmax(420px, 1.05fr) minmax(520px, 0.95fr);
}

body.series-active.series-playing .app-shell {
    grid-template-columns: 76px minmax(420px, 1.05fr) minmax(520px, 0.95fr);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
    min-height: 0;
    height: 100vh;
    padding: 13px 16px;
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.04), transparent 34%),
        rgba(8, 17, 19, 0.95);
    border-right: 1px solid var(--line);
    overflow: hidden;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.icon-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: var(--control-h);
    height: var(--control-h);
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: var(--panel-soft);
    color: var(--text);
    font-size: 28px;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

#sidebarToggle {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    overflow: hidden;
    color: transparent;
}

#sidebarToggle::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(0, 255, 166, 0.14), rgba(255, 255, 255, 0.025)),
        rgba(2, 11, 13, 0.88);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 166, 0.18), 0 8px 18px rgba(0, 0, 0, 0.18);
}

#sidebarToggle::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-top: 2px solid #dfffee;
    border-left: 2px solid #dfffee;
    transform: translateX(2px) rotate(-45deg);
    filter: drop-shadow(0 0 8px rgba(0, 255, 166, 0.55));
    transition: transform 160ms ease;
}

.sidebar-collapsed #sidebarToggle::after {
    transform: translateX(-2px) rotate(135deg);
}

#sidebarToggle:hover::before {
    background:
        linear-gradient(180deg, rgba(0, 255, 166, 0.22), rgba(255, 255, 255, 0.035)),
        rgba(4, 24, 22, 0.94);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 166, 0.35), 0 0 24px rgba(0, 255, 166, 0.16);
}

.icon-btn:hover,
.ghost-btn:hover,
.load-more:hover {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.12);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 66px;
    height: 44px;
    border-radius: var(--card-radius);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #041012;
    font-weight: 900;
    letter-spacing: 0;
}

.brand strong,
.brand span {
    display: block;
}

.brand strong {
    font-size: 21px;
    line-height: 1;
}

.sidebar-collapsed .brand {
    flex-direction: column;
    align-items: stretch;
}

.sidebar-collapsed .brand > div:not(.brand-mark),
.sidebar-collapsed .search-box,
.sidebar-collapsed .categories {
    display: none;
}

.sidebar-collapsed .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 12px;
}

.sidebar-collapsed .icon-btn {
    width: 40px;
    height: 40px;
    margin-left: 0;
}

.sidebar-collapsed #sidebarToggle {
    width: 40px;
    height: 40px;
}

.sidebar-collapsed .mode-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 40px;
}

.sidebar-collapsed .mode {
    min-width: 40px;
    min-height: 44px;
    padding: 7px 0;
    font-size: 0;
}

.sidebar-collapsed .mode::before {
    width: 30px;
    height: 28px;
}

.sidebar-collapsed .mode::after {
    top: 14px;
    font-size: 16px;
}

.brand span,
.section-title,
.search-box span,
#resultCount,
#nowGroup,
#pathText {
    color: var(--muted);
    font-size: 13px;
}

.mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.mode,
.ghost-btn,
.load-more {
    min-height: var(--control-h);
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)), var(--panel-soft);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.mode {
    min-height: 38px;
    padding: 0 8px;
    font-size: 14px;
}

.mode.active {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.9));
    color: #04120a;
    border-color: rgba(34, 197, 94, 0.8);
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.2);
}

.mode:hover {
    border-color: rgba(56, 189, 248, 0.52);
}

.search-box {
    display: grid;
    gap: 5px;
}

.search-box input {
    width: 100%;
    height: var(--control-h);
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    padding: 0 14px;
    background: rgba(7, 17, 19, 0.82);
    color: var(--text);
    outline: none;
    font-size: 14px;
}

.search-box input:focus {
    border-color: var(--accent);
}

.categories {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    overflow: hidden;
}

.category-list {
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 188px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 6px 8px 0;
    scrollbar-color: rgba(0, 255, 166, 0.62) rgba(3, 10, 12, 0.82);
    -webkit-overflow-scrolling: touch;
}

.category-chip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 0 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.category-chip:hover {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(56, 189, 248, 0.09);
}

.category-chip.active {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.14);
    color: #dffcf0;
}

.category-chip.featured:not(.active) {
    border-color: rgba(34, 197, 94, 0.35);
}

.category-chip.favorite-filter:not(.active) {
    border-color: rgba(56, 189, 248, 0.42);
}

.category-chip.favorite-filter span::before {
    content: "☆";
    display: inline-block;
    width: 16px;
    margin-right: 7px;
    color: var(--accent-2);
    font-size: 15px;
    line-height: 1;
    text-align: center;
    vertical-align: -1px;
}

.category-chip.featured span::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 999px;
    background: var(--accent);
    vertical-align: middle;
}

.category-chip small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.stage {
    display: grid;
    grid-template-rows: minmax(280px, 46vh) 1fr;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.player-panel {
    display: grid;
    grid-template-rows: minmax(300px, 58vh) auto 1fr;
    min-height: 0;
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.08), transparent 30%),
        var(--player);
    border-left: 1px solid var(--line);
    overflow: hidden;
}

.video-wrap {
    position: relative;
    min-height: 0;
    cursor: pointer;
    margin: 14px 14px 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--card-radius);
    background: #000;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

video,
.empty-player {
    width: 100%;
    height: 100%;
}

video {
    display: block;
    background: #000;
    object-fit: contain;
}

.empty-player {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 8px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 38%, rgba(34, 197, 94, 0.18), transparent 30%),
        linear-gradient(150deg, rgba(16, 26, 29, 0.86), rgba(2, 6, 7, 0.97));
    pointer-events: auto;
}

.empty-player strong {
    font-size: clamp(32px, 5vw, 58px);
}

.empty-player span {
    color: var(--muted);
}

.player-loading {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    overflow: hidden;
    padding: 24px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(34, 197, 94, 0.2), transparent 30%),
        radial-gradient(circle at 64% 48%, rgba(56, 189, 248, 0.14), transparent 24%),
        linear-gradient(145deg, rgba(2, 6, 7, 0.84), rgba(7, 17, 19, 0.9) 52%, rgba(2, 6, 7, 0.86));
    color: var(--text);
    transition: opacity 220ms ease, visibility 220ms ease;
}

.player-loading.is-visible {
    opacity: 1;
    visibility: visible;
}

.player-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.034) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
    opacity: 0.35;
}

.player-loading::after {
    content: "";
    position: absolute;
    width: min(62%, 360px);
    aspect-ratio: 1;
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 50%;
    box-shadow: inset 0 0 52px rgba(34, 197, 94, 0.08), 0 0 52px rgba(56, 189, 248, 0.06);
    animation: splashPulse 1800ms ease-in-out infinite;
}

.player-loading__orbit {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 46px rgba(0, 0, 0, 0.4);
}

.player-loading__orbit::before {
    content: "TONY";
    display: grid;
    place-items: center;
    width: 52px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #041012;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.22);
}

.player-loading__orbit span {
    position: absolute;
    inset: 8px;
    border: 2px solid transparent;
    border-top-color: rgba(34, 197, 94, 0.95);
    border-right-color: rgba(56, 189, 248, 0.55);
    border-radius: 50%;
    animation: splashSpin 1150ms linear infinite;
}

.player-loading__orbit span:nth-child(2) {
    inset: 15px;
    animation-duration: 1550ms;
    animation-direction: reverse;
    border-top-color: rgba(56, 189, 248, 0.75);
    border-right-color: rgba(34, 197, 94, 0.22);
}

.player-loading__orbit span:nth-child(3) {
    inset: 2px;
    animation-duration: 2100ms;
    border-top-color: rgba(255, 255, 255, 0.32);
    border-right-color: transparent;
}

.player-loading__brand {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 5px;
    text-align: center;
}

.player-loading__brand strong {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0;
}

.player-loading__brand strong span {
    color: var(--accent);
}

.player-loading__brand small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.player-loading__bar {
    position: relative;
    z-index: 1;
    width: min(220px, 58%);
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
}

.player-loading__bar span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.45);
    animation: splashLoad 1050ms ease-in-out infinite;
}

.player-cast-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 7;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(34, 211, 238, 0.42);
    border-radius: 10px;
    color: #dffcff;
    background: rgba(2, 10, 12, 0.72);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(12px);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.player-cast-btn:hover,
.player-cast-btn:focus-visible {
    border-color: rgba(34, 211, 238, 0.9);
    background: rgba(5, 25, 28, 0.86);
    outline: none;
}

.player-cast-btn:active {
    transform: scale(0.96);
}

.player-cast-btn span {
    position: relative;
    display: block;
    width: 22px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.player-cast-btn span::before,
.player-cast-btn span::after {
    content: "";
    position: absolute;
    left: -4px;
    bottom: -5px;
    border-color: currentColor;
}

.player-cast-btn span::before {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.player-cast-btn span::after {
    width: 9px;
    height: 9px;
    border-width: 0 0 2px 2px;
    border-style: solid;
    border-bottom-left-radius: 12px;
}

.player-cast-btn.is-unavailable {
    opacity: 0.82;
}

.cast-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
}

.cast-modal.is-hidden {
    display: none;
}

.cast-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
}

.cast-modal__panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    width: min(440px, 100%);
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: var(--card-radius);
    background:
        linear-gradient(180deg, rgba(34, 211, 238, 0.12), rgba(34, 197, 94, 0.035)),
        #081113;
    color: var(--text);
    padding: 18px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.cast-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.cast-modal__head span {
    display: block;
    color: var(--accent-2);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.cast-modal__head h2 {
    margin: 3px 0 0;
    font-size: 22px;
    line-height: 1.15;
}

.cast-modal__panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.cast-modal__item {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: #effcff;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cast-modal__actions .ghost-btn {
    min-height: 42px;
}

.cast-modal__primary {
    border-color: rgba(34, 211, 238, 0.62);
    background: rgba(34, 211, 238, 0.14);
    color: #e7fdff;
}

.cast-modal__primary:disabled,
.cast-modal__actions .ghost-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.now-playing {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 18px 16px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        rgba(8, 17, 19, 0.92);
}

.now-playing strong,
.now-playing span {
    display: block;
}

.now-playing strong {
    font-size: 23px;
    line-height: 1.18;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.content-panel {
    min-height: 0;
    overflow: auto;
    padding: 18px 20px;
    background: var(--panel);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.content-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

body.cinema-active #resultCount,
body.series-active #resultCount {
    display: none;
}

body.cinema-active .head-actions,
body.series-active .head-actions {
    justify-content: flex-end;
    min-width: 96px;
}

.content-head h1 {
    margin: 2px 0 0;
    font-size: 27px;
    line-height: 1.08;
}

.ghost-btn {
    padding: 0 16px;
}

.item-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.home-grid {
    display: block;
}

.home-stage {
    position: relative;
    display: grid;
    gap: 24px;
    min-height: 100vh;
    align-content: start;
    padding: clamp(18px, 3vw, 34px);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(2, 6, 7, 0.98) 0%, rgba(3, 8, 10, 0.82) 38%, rgba(3, 8, 10, 0.5) 100%),
        radial-gradient(circle at 82% 8%, rgba(244, 197, 66, 0.18), transparent 24%),
        linear-gradient(145deg, #061113 0%, #091114 46%, #040708 100%);
}

.home-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
    opacity: 0.22;
    pointer-events: none;
}

.home-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(4, 9, 11, 1) 0%, transparent 24%),
        radial-gradient(ellipse at 78% 34%, rgba(255, 255, 255, 0.12), transparent 34%);
    pointer-events: none;
}

.home-stage > * {
    position: relative;
    z-index: 1;
}

.home-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 48px;
}

.home-topbar strong {
    color: #f7fffb;
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
}

.home-topbar strong span {
    color: var(--accent);
}

.home-topbar div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-nav-btn {
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: var(--card-radius);
    padding: 0 14px;
    background: transparent;
    color: rgba(242, 247, 244, 0.78);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.home-nav-btn:hover {
    border-color: rgba(34, 197, 94, 0.54);
    background: rgba(34, 197, 94, 0.12);
}

.home-title {
    display: grid;
    gap: 13px;
    width: min(720px, 100%);
    min-height: clamp(250px, 42vh, 420px);
    align-content: center;
    padding: 28px 0 6px;
}

.home-title span {
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.home-title strong {
    max-width: 760px;
    color: #f6fbf8;
    font-size: clamp(36px, 5.4vw, 78px);
    line-height: 0.96;
    text-wrap: balance;
}

.home-title p {
    max-width: 560px;
    margin: 0;
    color: rgba(233, 247, 241, 0.78);
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.48;
}

.home-primary {
    justify-self: start;
    min-width: 190px;
    min-height: 48px;
    border: 1px solid rgba(34, 197, 94, 0.72);
    border-radius: var(--card-radius);
    padding: 0 22px;
    background: linear-gradient(180deg, #33e37b, #16a34a);
    color: #04120a;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 18px 40px rgba(34, 197, 94, 0.24);
}

.home-primary:hover {
    border-color: rgba(141, 255, 190, 0.9);
    background: linear-gradient(180deg, #5cf196, #22c55e);
    box-shadow: 0 20px 48px rgba(34, 197, 94, 0.3);
}

.home-channel-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-channel {
    display: grid;
    place-items: center;
    min-height: clamp(86px, 10vw, 126px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--card-radius);
    color: #fff;
    font-size: clamp(20px, 3vw, 36px);
    font-weight: 900;
    overflow: hidden;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.home-channel-live {
    background: linear-gradient(135deg, #1c56f0, #16c78c);
}

.home-channel-movies {
    background: linear-gradient(135deg, #e4003a, #ff9a24);
}

.home-channel-series {
    background: linear-gradient(135deg, #19a9ff, #6f4cff);
}

.home-channel:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.34);
}

.home-resume {
    display: grid;
}

.home-resume-card {
    display: grid;
    grid-template-columns: minmax(92px, 150px) minmax(0, 1fr);
    gap: 14px;
    width: min(720px, 100%);
    min-height: 122px;
    padding: 12px;
    border: 1px solid rgba(0, 255, 166, 0.2);
    border-radius: var(--card-radius);
    background:
        linear-gradient(120deg, rgba(0, 255, 166, 0.14), rgba(56, 189, 248, 0.08)),
        rgba(5, 13, 15, 0.92);
    color: #fff;
    text-align: left;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.home-resume-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 166, 0.46);
}

.home-resume-art {
    display: grid;
    place-items: end start;
    min-height: 98px;
    padding: 10px;
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.72)),
        linear-gradient(145deg, rgba(0, 255, 166, 0.26), rgba(56, 189, 248, 0.24));
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 950;
    line-height: 1;
}

.home-resume-card.has-image .home-resume-art {
    background:
        linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.82)),
        var(--resume-image) center / cover no-repeat;
    font-size: 0;
}

.home-resume-copy {
    display: grid;
    align-content: center;
    gap: 5px;
    min-width: 0;
}

.home-resume-copy small {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.home-resume-copy strong {
    overflow: hidden;
    color: #f8fffb;
    font-size: clamp(21px, 2.3vw, 30px);
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-resume-copy span {
    overflow: hidden;
    color: rgba(233, 247, 241, 0.72);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-resume-copy em {
    color: #dfffee;
    font-size: 13px;
    font-style: normal;
    font-weight: 850;
}

.home-live-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.home-live-card {
    display: grid;
    align-content: end;
    gap: 6px;
    min-height: 150px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--card-radius);
    padding: 13px;
    background:
        linear-gradient(155deg, rgba(0, 255, 170, 0.16), rgba(56, 189, 248, 0.2)),
        rgba(5, 13, 15, 0.92);
    color: #fff;
    text-align: left;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.home-live-card.has-image {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.72) 100%),
        var(--live-image) center / cover no-repeat;
}

.home-live-card > strong,
.home-catalog-card > strong {
    display: none;
}

.home-live-card.has-acronym > strong,
.home-catalog-card.has-acronym > strong {
    display: block;
    align-self: start;
    width: fit-content;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(0, 255, 166, 0.12);
    color: #dfffee;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 0 18px rgba(0, 255, 166, 0.28);
}

.home-live-card span {
    font-size: 17px;
    font-weight: 900;
    line-height: 1.05;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.home-live-card.no-channel-name {
    align-content: end;
}

.home-live-card small {
    color: rgba(242, 247, 244, 0.76);
    font-size: 12px;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-live-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 166, 0.42);
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-card {
    display: grid;
    grid-template-rows: minmax(160px, 23vh) auto;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--card-radius);
    padding: 0;
    background: rgba(5, 12, 15, 0.92);
    color: var(--text);
    text-align: left;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.home-card-live {
    --home-a: #00ffaa;
    --home-b: #0b7c95;
    --home-a-rgb: 0, 255, 170;
    --home-b-rgb: 11, 124, 149;
}

.home-card-movies {
    --home-a: #f4c542;
    --home-b: #b52846;
    --home-a-rgb: 244, 197, 66;
    --home-b-rgb: 181, 40, 70;
}

.home-card-series {
    --home-a: #74b9ff;
    --home-b: #5b3fd8;
    --home-a-rgb: 116, 185, 255;
    --home-b-rgb: 91, 63, 216;
}

.home-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        radial-gradient(circle at 26% 18%, rgba(var(--home-a-rgb), 0.34), transparent 30%),
        radial-gradient(circle at 80% 8%, rgba(var(--home-b-rgb), 0.42), transparent 28%),
        linear-gradient(145deg, rgba(var(--home-b-rgb), 0.52), #03080a 72%);
}

.home-card.has-home-image .home-poster {
    background:
        linear-gradient(180deg, rgba(3, 8, 10, 0.08), rgba(3, 8, 10, 0.8)),
        linear-gradient(90deg, rgba(var(--home-b-rgb), 0.45), rgba(0, 0, 0, 0.08)),
        var(--home-image) center / cover no-repeat;
}

.home-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.28;
    mask-image: linear-gradient(180deg, black, transparent 74%);
}

.home-cover {
    position: absolute;
    display: grid;
    place-items: end start;
    width: 38%;
    height: 64%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035)),
        linear-gradient(145deg, rgba(var(--home-a-rgb), 0.34), rgba(var(--home-b-rgb), 0.42));
    color: #fff;
    font-size: clamp(12px, 1.4vw, 18px);
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.home-cover.has-image {
    background:
        linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.78)),
        var(--cover-image) center / cover no-repeat;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.home-cover-1 {
    left: 10%;
    bottom: 10%;
    z-index: 3;
}

.home-cover-2 {
    left: 32%;
    bottom: 16%;
    z-index: 2;
    transform: rotate(3deg);
    opacity: 0.94;
}

.home-cover-3 {
    right: 8%;
    bottom: 8%;
    z-index: 1;
    transform: rotate(-4deg);
    opacity: 0.82;
}

.home-card-body {
    display: grid;
    gap: 8px;
    min-height: 158px;
    padding: 16px;
}

.home-card-body small {
    color: var(--home-a);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.home-card-body strong {
    color: #f9fffc;
    font-size: 24px;
    line-height: 1.08;
}

.home-card-body span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.home-card-body em {
    align-self: end;
    color: #eefbf6;
    font-size: 13px;
    font-style: normal;
    font-weight: 850;
}

.home-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 12vw);
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 16px;
}

.home-rail-card {
    display: grid;
    align-content: end;
    gap: 6px;
    aspect-ratio: 2 / 3;
    min-height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--card-radius);
    padding: 12px;
    color: #fff;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.home-rail-card-live {
    background: linear-gradient(160deg, rgba(0, 255, 170, 0.18), rgba(11, 124, 149, 0.3)), #071113;
}

.home-rail-card-movies {
    background: linear-gradient(160deg, rgba(244, 197, 66, 0.18), rgba(181, 40, 70, 0.34)), #10090b;
}

.home-rail-card-series {
    background: linear-gradient(160deg, rgba(116, 185, 255, 0.18), rgba(91, 63, 216, 0.36)), #080b16;
}

.home-rail-card span {
    font-size: 22px;
    font-weight: 900;
}

.home-rail-card small {
    color: rgba(242, 247, 244, 0.72);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.home-catalog {
    display: grid;
    gap: 12px;
}

.home-catalog-head {
    display: grid;
    gap: 4px;
}

.home-catalog-head strong {
    color: #f8fffb;
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.08;
}

.home-catalog-head span {
    color: rgba(233, 247, 241, 0.7);
    font-size: 14px;
}

.home-catalog-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 12vw);
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 16px;
}

.home-catalog-card {
    display: grid;
    align-content: end;
    gap: 7px;
    aspect-ratio: 2 / 3;
    min-height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--card-radius);
    padding: 12px;
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(56, 189, 248, 0.12)),
        rgba(5, 13, 15, 0.92);
    color: #fff;
    text-align: left;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.home-catalog-card.has-image.is-bg-ready {
    background:
        linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, 0.82)),
        var(--catalog-image) center / cover no-repeat;
}

.home-catalog-card.has-acronym {
    align-content: space-between;
}

.home-catalog-card span {
    font-size: 17px;
    font-weight: 900;
    line-height: 1.08;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.home-catalog-card small {
    color: rgba(242, 247, 244, 0.78);
    font-size: 12px;
    font-weight: 760;
    line-height: 1.18;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.home-catalog-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.34);
}

.home-category-note {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.item-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        #0b1417;
    color: var(--text);
    padding: 10px 12px;
    text-align: left;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow);
    transition: transform 120ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.item-card:hover {
    border-color: rgba(34, 197, 94, 0.52);
    transform: translateY(-1px);
}

.item-card.active {
    border-color: var(--accent);
    background:
        linear-gradient(90deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.045) 58%),
        #0b1514;
    box-shadow: inset 3px 0 0 var(--accent), 0 0 0 1px rgba(34, 197, 94, 0.18), var(--shadow);
}

.video-wrap:fullscreen {
    background: #000;
}

.video-wrap:fullscreen video {
    width: 100vw;
    height: 100vh;
}

.video-wrap:-webkit-full-screen {
    background: #000;
}

.video-wrap:-webkit-full-screen video {
    width: 100vw;
    height: 100vh;
}

.logo-box {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: var(--card-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        #111b1e;
    overflow: hidden;
    color: var(--accent-2);
    font-size: 15px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.logo-box img {
    width: 86%;
    height: 86%;
    object-fit: contain;
}

.logo-box.no-logo {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(56, 189, 248, 0.18));
    color: #dffcf0;
    font-size: 15px;
}

.item-card strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.22;
    color: #f7fbf9;
}

.item-card span {
    display: block;
    min-width: 0;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: rgba(255, 255, 255, 0.045);
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.favorite-btn:hover,
.favorite-btn.active {
    border-color: rgba(34, 197, 94, 0.65);
    background: rgba(34, 197, 94, 0.14);
    color: #f8ff9d;
}

.load-more {
    width: 100%;
    margin-top: 12px;
}

.details-panel {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-content: start;
    gap: 14px;
    min-height: 0;
    overflow: auto;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(16, 26, 29, 0.72), rgba(11, 18, 20, 0.96)),
        var(--panel);
}

.detail-logo {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: var(--card-radius);
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(56, 189, 248, 0.18)),
        #101a1d;
    color: #dffcf0;
    font-size: 22px;
    font-weight: 900;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.035);
}

.detail-logo img {
    width: 86%;
    height: 86%;
    object-fit: contain;
}

.details-panel span {
    color: var(--muted);
    font-size: 14px;
}

.details-panel h2 {
    margin: 4px 0 8px;
    font-size: 22px;
    line-height: 1.16;
}

.details-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.is-hidden {
    display: none !important;
}

.pwa-install {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 90;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    margin: 0 auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--card-radius);
    background: rgba(7, 17, 19, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44);
}

.pwa-install strong,
.pwa-install span {
    display: block;
}

.pwa-install strong {
    font-size: 15px;
}

.pwa-install span {
    color: var(--muted);
    font-size: 13px;
}

.pwa-install .ghost-btn {
    min-height: 38px;
}

.pwa-install .icon-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
}

.desktop-gate {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        linear-gradient(120deg, rgba(7, 17, 19, 0.98), rgba(5, 9, 10, 0.9)),
        radial-gradient(circle at 20% 16%, rgba(34, 197, 94, 0.2), transparent 32%),
        radial-gradient(circle at 86% 74%, rgba(56, 189, 248, 0.16), transparent 28%);
    backdrop-filter: blur(8px);
}

.desktop-gate__shell {
    display: grid;
    grid-template-columns: minmax(420px, 0.94fr) minmax(360px, 0.72fr);
    gap: 18px;
    width: min(1120px, 100%);
    max-height: calc(100vh - 56px);
}

.desktop-gate__hero,
.terms-panel {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--card-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(11, 20, 23, 0.94);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.44);
}

.desktop-gate__hero {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 28px;
    padding: 30px;
    overflow: hidden;
}

.desktop-gate__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    min-height: 54px;
    padding: 7px 13px 7px 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--card-radius);
    background: rgba(7, 17, 19, 0.72);
}

.desktop-gate__brand span {
    display: grid;
    place-items: center;
    width: 76px;
    height: 40px;
    border-radius: var(--card-radius);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #041012;
    font-weight: 900;
}

.desktop-gate__brand strong {
    font-size: 22px;
}

.desktop-gate__copy {
    align-self: center;
    display: grid;
    gap: 12px;
}

.desktop-gate__eyebrow,
.terms-panel__head span {
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.desktop-gate__copy h1 {
    margin: 0;
    font-size: clamp(44px, 5vw, 76px);
    line-height: 0.95;
}

.desktop-gate__copy p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.45;
}

.desktop-gate__actions {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(140px, 0.78fr) minmax(140px, 0.78fr);
    gap: 10px;
}

.primary-action,
.secondary-action {
    display: grid;
    place-items: center;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--card-radius);
    color: var(--text);
    font-weight: 850;
    text-decoration: none;
    line-height: 1;
}

.primary-action {
    border-color: rgba(34, 197, 94, 0.82);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.98), rgba(22, 163, 74, 0.92));
    color: #031108;
    box-shadow: 0 16px 34px rgba(34, 197, 94, 0.24);
}

.secondary-action {
    background: rgba(255, 255, 255, 0.055);
}

.primary-action:hover,
.secondary-action:hover {
    border-color: rgba(56, 189, 248, 0.72);
    background-color: rgba(56, 189, 248, 0.12);
}

.terms-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 26px;
    overflow: auto;
}

.terms-panel__head {
    display: grid;
    gap: 6px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.terms-panel__head strong {
    font-size: 26px;
}

.terms-list {
    display: grid;
    gap: 12px;
    align-content: start;
    padding-top: 16px;
}

.terms-list p {
    margin: 0;
    padding: 13px 0 13px 14px;
    border-left: 3px solid rgba(34, 197, 94, 0.58);
    color: #dbe7e3;
    line-height: 1.48;
}

body {
    background:
        radial-gradient(circle at 68% 42%, rgba(0, 255, 166, 0.13), transparent 26%),
        radial-gradient(circle at 18% 96%, rgba(0, 210, 155, 0.08), transparent 28%),
        linear-gradient(140deg, #02090b 0%, #061012 46%, #020607 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 16px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 18px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: 0.42;
    pointer-events: none;
}

.app-shell {
    grid-template-columns: 300px minmax(420px, 0.88fr) minmax(620px, 1.18fr);
    gap: 0;
    padding: 18px;
}

.sidebar,
.content-panel,
.player-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        rgba(4, 13, 15, 0.88);
    border-color: rgba(255, 255, 255, 0.095);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.sidebar {
    gap: 16px;
    height: calc(100vh - 36px);
    padding: 20px 20px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 0;
    border-radius: 18px 0 0 18px;
}

.content-panel {
    padding: 24px 24px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-panel {
    position: relative;
    height: calc(100vh - 36px);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left-color: rgba(0, 255, 166, 0.16);
    border-radius: 0 18px 18px 0;
    overflow: hidden;
}

.player-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 166, 0.72), transparent);
    box-shadow: 0 0 30px rgba(0, 255, 166, 0.72);
    pointer-events: none;
}

.brand {
    gap: 13px;
}

.brand-mark {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(0, 255, 178, 0.38);
    border-radius: 10px;
    background:
        linear-gradient(160deg, rgba(0, 255, 178, 0.84), rgba(0, 83, 80, 0.58) 45%, rgba(4, 16, 18, 0.96)),
        #061214;
    color: transparent;
    box-shadow: 0 16px 38px rgba(0, 255, 166, 0.16), inset 0 0 28px rgba(0, 255, 166, 0.12);
}

.brand-mark::before {
    content: "T";
    color: #051213;
    font-size: 31px;
    font-weight: 950;
    text-shadow: 0 1px 18px rgba(255, 255, 255, 0.42);
}

.brand strong {
    font-size: 22px;
    font-weight: 850;
}

.brand span {
    max-width: 110px;
    line-height: 1.12;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
    color: #d8e4df;
    font-size: 25px;
}

.mode-tabs {
    gap: 10px;
}

.mode {
    display: grid;
    place-items: center;
    gap: 7px;
    min-height: 72px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 12px 8px 10px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    color: #cfd8d5;
}

.mode::before {
    content: "";
    display: grid;
    place-items: center;
    width: 32px;
    height: 28px;
    border: 1px solid rgba(218, 238, 231, 0.28);
    border-radius: 7px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035)),
        rgba(4, 14, 16, 0.78);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.mode::after {
    position: absolute;
    top: 17px;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
    color: currentColor;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 14px rgba(0, 255, 166, 0.32);
}

.mode[data-type="live"]::after {
    content: "\25B8";
}

.mode[data-type="movies"]::after {
    content: "\25A6";
}

.mode[data-type="series"]::after {
    content: "\25A3";
}

.mode[data-type="live"]::before {
    border-radius: 6px;
}

.mode[data-type="live"] {
    background-image:
        radial-gradient(circle at 50% 21px, rgba(0, 255, 166, 0.12), transparent 25px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.mode[data-type="movies"]::before {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 5px, transparent 5px 10px) top / 100% 8px no-repeat,
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
        rgba(4, 14, 16, 0.78);
}

.mode[data-type="series"]::before {
    box-shadow:
        -5px 5px 0 rgba(255, 255, 255, 0.045),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035),
        0 10px 24px rgba(0, 0, 0, 0.22);
}

.mode.active {
    border-color: rgba(0, 255, 166, 0.56);
    background:
        linear-gradient(180deg, rgba(0, 255, 166, 0.34), rgba(0, 118, 81, 0.34)),
        rgba(2, 18, 16, 0.92);
    color: #f5fffb;
    box-shadow: 0 14px 34px rgba(0, 255, 166, 0.13), inset 0 0 20px rgba(0, 255, 166, 0.12);
}

.mode.active::before {
    border-color: rgba(0, 255, 166, 0.68);
    background-color: rgba(0, 58, 47, 0.78);
    box-shadow: inset 0 0 22px rgba(0, 255, 166, 0.14), 0 0 24px rgba(0, 255, 166, 0.18);
}

.mode.active::after {
    color: #dfffee;
    text-shadow: 0 0 18px rgba(0, 255, 166, 0.68);
}

.search-box {
    gap: 7px;
}

.search-box input {
    height: 42px;
    border-radius: 10px;
    padding: 0 42px 0 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(3, 9, 11, 0.74);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.search-box {
    position: relative;
}

.search-box::after {
    content: "\2315";
    position: absolute;
    right: 14px;
    bottom: 9px;
    color: #b9c6c2;
    font-size: 19px;
    line-height: 1;
    pointer-events: none;
}

.category-list {
    gap: 6px;
    padding-right: 0;
}

.category-chip {
    min-height: 39px;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(3, 10, 12, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.category-chip.active {
    border-color: rgba(0, 255, 166, 0.78);
    background:
        linear-gradient(90deg, rgba(0, 255, 166, 0.24), rgba(0, 255, 166, 0.07)),
        rgba(5, 42, 33, 0.84);
    box-shadow: inset 3px 0 0 #00ffaa, 0 10px 26px rgba(0, 255, 166, 0.08);
}

.category-chip.favorite-filter span::before {
    content: "\2606";
}

.category-chip.featured span::before {
    width: 6px;
    height: 6px;
    background: #29f59d;
    box-shadow: 0 0 10px rgba(41, 245, 157, 0.8);
}

.content-head {
    margin-bottom: 18px;
}

.content-head h1 {
    font-size: 34px;
    font-weight: 850;
}

.head-actions {
    gap: 14px;
}

.ghost-btn,
.load-more {
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
        rgba(5, 13, 15, 0.84);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.item-grid {
    gap: 10px;
}

.item-card {
    min-height: 86px;
    border-radius: 10px;
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018) 58%),
        rgba(8, 20, 23, 0.9);
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.item-card:hover {
    border-color: rgba(0, 255, 166, 0.48);
    background:
        linear-gradient(105deg, rgba(0, 255, 166, 0.09), rgba(255, 255, 255, 0.025) 58%),
        rgba(8, 22, 24, 0.94);
    transform: translateY(-1px);
}

.item-card.active {
    border-color: rgba(0, 255, 166, 0.76);
    background:
        linear-gradient(90deg, rgba(0, 255, 166, 0.16), rgba(0, 255, 166, 0.035) 62%),
        rgba(7, 22, 21, 0.96);
    box-shadow: inset 3px 0 0 #00ffaa, 0 0 0 1px rgba(0, 255, 166, 0.12), 0 18px 42px rgba(0, 0, 0, 0.26);
}

.logo-box,
.detail-logo {
    border: 1px solid rgba(0, 255, 166, 0.34);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(0, 255, 166, 0.18), rgba(0, 74, 76, 0.32)),
        #041112;
    color: #e9fff7;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 0 24px rgba(0, 255, 166, 0.1);
}

.item-card strong {
    font-size: 18px;
    font-weight: 780;
}

.item-card span span::before {
    content: "\26A1";
    margin: 0 7px 0 8px;
    color: #f3bf36;
    font-size: 13px;
}

.favorite-btn {
    border: 0;
    background: transparent;
    color: #9eaaa7;
    box-shadow: none;
    font-size: 26px;
}

.favorite-btn:hover,
.favorite-btn.active {
    background: transparent;
    color: #7df5be;
    text-shadow: 0 0 18px rgba(0, 255, 166, 0.48);
}

.loading-state {
    display: grid;
    place-items: center;
    gap: 14px;
    min-height: 280px;
    padding: 30px;
    border: 1px solid rgba(0, 255, 166, 0.22);
    border-radius: var(--card-radius);
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 255, 166, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.014)),
        rgba(5, 13, 15, 0.82);
    color: #eefbf6;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    overflow: hidden;
}

.loading-copy {
    display: grid;
    gap: 5px;
}

.loading-copy strong {
    font-size: 18px;
}

.loading-state small {
    color: var(--muted);
}

.loading-ring,
.loading-dots {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(0, 255, 166, 0.25);
    border-radius: 50%;
    background: rgba(0, 255, 166, 0.06);
    box-shadow: 0 0 34px rgba(0, 255, 166, 0.15), inset 0 0 20px rgba(0, 255, 166, 0.08);
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: 32px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.loading-dots span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #00ffaa;
    box-shadow: 0 0 16px rgba(0, 255, 166, 0.46);
    animation: dotWave 960ms ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    background: #38bdf8;
    animation-delay: 120ms;
}

.loading-dots span:nth-child(3) {
    background: #dfffee;
    animation-delay: 240ms;
}

.loading-dots span:nth-child(4) {
    background: #7df5be;
    animation-delay: 360ms;
}

.loading-ring::before,
.loading-ring::after,
.loading-ring span {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.loading-ring::before {
    inset: 5px;
    border: 3px solid rgba(255, 255, 255, 0.13);
    border-top-color: #00ffaa;
    border-right-color: rgba(56, 189, 248, 0.72);
    animation: splashSpin 850ms linear infinite;
}

.loading-ring::after {
    width: 12px;
    height: 12px;
    background: #dfffee;
    box-shadow: 0 0 18px rgba(0, 255, 166, 0.68);
}

.loading-progress {
    position: relative;
    width: min(340px, 78vw);
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

.loading-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #00ffaa, #38bdf8);
    box-shadow: 0 0 22px rgba(0, 255, 166, 0.42);
    animation: splashLoad 1050ms ease-in-out infinite;
}

.loading-skeletons {
    display: grid;
    grid-template-columns: repeat(3, minmax(68px, 1fr));
    gap: 8px;
    width: min(420px, 100%);
    margin-top: 6px;
}

.loading-skeleton {
    height: 54px;
    border-radius: var(--card-radius);
    background:
        linear-gradient(100deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.12) 42%, rgba(255, 255, 255, 0.035) 78%),
        rgba(255, 255, 255, 0.045);
    background-size: 220% 100%;
    animation: loadingSheen 1300ms ease-in-out infinite;
}

.loading-skeleton:nth-child(2n) {
    animation-delay: 130ms;
}

.loading-skeleton:nth-child(3n) {
    animation-delay: 260ms;
}

.series-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    min-height: 152px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018) 58%),
        rgba(8, 20, 23, 0.9);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    animation: cardReveal 180ms ease both;
}

.media-catalog-grid,
.series-catalog-grid {
    display: grid;
    gap: 30px;
}

.media-row {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.media-row h2 {
    margin: 0;
    color: #f8fffb;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.08;
}

.series-row {
    position: relative;
    padding-top: 4px;
}

.series-row::before {
    content: "";
    position: absolute;
    top: 22px;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 255, 166, 0.56), rgba(56, 189, 248, 0.18), transparent);
    pointer-events: none;
}

.series-row-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding-right: 14px;
    background: rgba(4, 13, 15, 0.96);
}

.series-row-heading h2 {
    max-width: min(520px, 72vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.series-row-heading small {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid rgba(0, 255, 166, 0.18);
    border-radius: 999px;
    background: rgba(0, 255, 166, 0.08);
    color: #c6fff0;
    font-size: 12px;
    font-weight: 760;
}

.media-row-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 32%);
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 12px;
    scroll-snap-type: x proximity;
}

.series-row .media-row-strip {
    grid-auto-columns: minmax(168px, 22%);
    gap: 8px;
}

.series-producer-row .media-row-strip {
    grid-auto-columns: minmax(260px, 38%);
}

.series-start-row .media-row-strip {
    grid-auto-columns: minmax(190px, 24%);
}

.media-poster,
.series-poster-card,
.series-producer-card {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 4px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(56, 189, 248, 0.12)),
        rgba(5, 13, 15, 0.92);
    color: #fff;
    text-align: left;
    scroll-snap-align: start;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.home-live-card.has-image::before,
.home-catalog-card.has-image.is-bg-ready::before,
.media-poster.has-image::before,
.series-poster-card.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.16) 42%, transparent 78%),
        rgba(255, 255, 255, 0.035);
    background-size: 220% 100%;
    animation: loadingSheen 1300ms ease-in-out infinite;
    opacity: 0.42;
    pointer-events: none;
}

.home-live-card > *,
.home-catalog-card > *,
.media-poster > *,
.series-poster-card > * {
    position: relative;
    z-index: 1;
}

.series-producer-card {
    display: grid;
    align-content: end;
    gap: 8px;
    min-height: 118px;
    padding: 14px;
    background:
        linear-gradient(110deg, rgba(0, 255, 166, 0.18), rgba(56, 189, 248, 0.08) 45%, rgba(0, 0, 0, 0.18)),
        rgba(5, 13, 15, 0.94);
}

.media-poster.has-image,
.series-poster-card.has-image {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.78) 100%),
        var(--catalog-poster) center / cover no-repeat;
}

.media-poster {
    display: grid;
    align-content: end;
    gap: 4px;
    padding: 12px;
}

.movie-card {
    align-content: stretch;
    grid-template-rows: minmax(190px, 1fr);
    padding: 0;
}

.movie-start-row .media-row-strip {
    grid-auto-columns: minmax(190px, 24%);
}

.movie-start-card {
    display: grid;
    align-content: end;
    min-height: 210px;
    padding: 13px;
}

.series-start-card {
    display: grid;
    align-content: end;
    min-height: 210px;
    padding: 13px;
}

.series-start-card.has-producer-logo {
    align-content: space-between;
}

.producer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    place-items: center;
    width: fit-content;
    max-width: 100%;
    min-width: 76px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.42);
}

.producer-logo img {
    display: block;
    max-width: 118px;
    max-height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8));
}

.movie-card.is-expanded {
    border-color: rgba(0, 255, 166, 0.68);
    box-shadow: 0 0 0 2px rgba(0, 255, 166, 0.12), 0 16px 38px rgba(0, 0, 0, 0.24);
}

.movie-poster-toggle {
    display: grid;
    align-content: end;
    gap: 5px;
    width: 100%;
    min-height: 190px;
    border: 0;
    padding: 12px;
    background:
        linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.84) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 58%);
    color: #fff;
    text-align: left;
}

.media-poster span,
.series-poster-toggle span,
.series-producer-card span {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.06;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.78);
}

.media-poster small,
.series-poster-toggle small,
.series-producer-card small {
    color: rgba(242, 247, 244, 0.78);
    font-size: 12px;
    font-weight: 760;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.76);
}

.media-poster:hover,
.series-poster-card:hover,
.series-producer-card:hover {
    z-index: 2;
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.34);
}

.movie-details {
    display: none;
    gap: 10px;
    padding: 12px;
    background: rgba(3, 9, 11, 0.94);
}

.movie-detail-page {
    display: grid;
    grid-template-columns: minmax(170px, 260px) minmax(0, 1fr);
    gap: 24px;
    min-height: 360px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(110deg, rgba(0, 255, 166, 0.1), transparent 42%),
        rgba(3, 9, 11, 0.96);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.movie-detail-art {
    display: grid;
    place-items: end start;
    min-height: 316px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 14px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.82)),
        rgba(8, 20, 23, 0.9);
}

.movie-detail-page.has-image .movie-detail-art {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.82)),
        var(--movie-detail-poster) center / cover no-repeat;
}

.movie-detail-art span {
    color: #f5fffb;
    font-size: 22px;
    font-weight: 950;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.movie-detail-copy {
    display: grid;
    align-content: center;
    gap: 13px;
    min-width: 0;
}

.movie-detail-copy small {
    color: #9fffdc;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.movie-detail-copy h2 {
    margin: 0;
    color: #f8fffb;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.02;
}

.movie-detail-copy p {
    max-width: 760px;
    margin: 0;
    color: rgba(242, 247, 244, 0.86);
    font-size: 15px;
    line-height: 1.55;
}

.metadata-loading {
    position: relative;
    overflow: hidden;
}

.metadata-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.12) 48%, transparent 78%);
    animation: loadingSheen 1300ms ease-in-out infinite;
    pointer-events: none;
}

.movie-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.movie-detail-actions button {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.055);
    color: #f5fffb;
    font-size: 14px;
    font-weight: 850;
}

.movie-detail-play {
    border-color: rgba(0, 255, 166, 0.52) !important;
    background: linear-gradient(180deg, rgba(0, 255, 166, 0.3), rgba(0, 118, 81, 0.28)) !important;
}

.movie-card.is-expanded .movie-details {
    display: grid;
}

.movie-details p {
    margin: 0;
    color: rgba(242, 247, 244, 0.84);
    font-size: 13px;
    line-height: 1.42;
}

.movie-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.movie-facts span {
    max-width: 100%;
    padding: 5px 7px;
    border: 1px solid rgba(0, 255, 166, 0.18);
    border-radius: 999px;
    background: rgba(0, 255, 166, 0.08);
    color: #dfffee;
    font-size: 11px;
    font-weight: 760;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-play-btn {
    min-height: 38px;
    border: 1px solid rgba(0, 255, 166, 0.42);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(0, 255, 166, 0.26), rgba(0, 118, 81, 0.24));
    color: #f5fffb;
    font-size: 13px;
    font-weight: 850;
}

.series-poster-card {
    display: grid;
    grid-template-columns: 1fr;
    align-content: end;
    min-height: 210px;
    padding: 0;
}

.series-poster-card.is-selected {
    border-color: rgba(0, 255, 166, 0.68);
    box-shadow: 0 0 0 2px rgba(0, 255, 166, 0.12), 0 16px 38px rgba(0, 0, 0, 0.24);
}

.series-detail-page {
    display: grid;
    grid-template-columns: minmax(170px, 260px) minmax(0, 1fr);
    gap: 24px;
    min-height: 420px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(110deg, rgba(56, 189, 248, 0.12), transparent 42%),
        rgba(3, 9, 11, 0.96);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.series-detail-art {
    display: grid;
    place-items: end start;
    min-height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 14px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.82)),
        rgba(8, 20, 23, 0.9);
}

.series-detail-page.has-image .series-detail-art {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.82)),
        var(--series-detail-poster) center / cover no-repeat;
}

.series-detail-art span {
    color: #f5fffb;
    font-size: 22px;
    font-weight: 950;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.series-detail-copy {
    display: grid;
    align-content: start;
    gap: 13px;
    min-width: 0;
}

.series-detail-copy > small {
    color: #9fdcff;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.series-detail-copy h2 {
    margin: 0;
    color: #f8fffb;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.02;
}

.series-detail-copy p {
    max-width: 820px;
    margin: 0;
    color: rgba(242, 247, 244, 0.86);
    font-size: 15px;
    line-height: 1.55;
}

.series-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.series-detail-actions button {
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.055);
    color: #f5fffb;
    font-size: 13px;
    font-weight: 850;
}

.series-detail-seasons {
    max-height: 48vh;
    overflow: auto;
    padding-right: 6px;
}

.series-empty-episodes {
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 13px;
}

.series-row .series-poster-card {
    min-height: 236px;
    border-radius: 3px;
}

.series-poster-toggle {
    display: grid;
    align-content: end;
    gap: 5px;
    width: 100%;
    min-height: 210px;
    border: 0;
    padding: 12px;
    background: transparent;
    color: #fff;
    text-align: left;
}

.series-row .series-poster-toggle {
    min-height: 236px;
    background:
        linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 58%);
}

.series-poster-card .series-body {
    display: none;
    padding: 12px;
    background: rgba(3, 9, 11, 0.94);
}

.series-poster-card.is-expanded {
    grid-auto-rows: auto;
}

.series-poster-card.is-expanded .series-body {
    display: grid;
}

.series-poster-card.is-expanded .series-poster-toggle {
    min-height: 170px;
}

.series-card .series-cover {
    width: 96px;
    height: 132px;
    align-self: start;
}

.series-card .series-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.series-body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.series-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.series-heading strong,
.series-heading span {
    display: block;
}

.series-heading strong {
    color: #f7fbf9;
    font-size: 19px;
    line-height: 1.16;
}

.series-heading span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.series-meta {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    align-items: flex-start;
}

.series-meta span {
    margin: 0;
    padding: 6px 8px;
    border: 1px solid rgba(0, 255, 166, 0.2);
    border-radius: 999px;
    background: rgba(0, 255, 166, 0.08);
    color: #dfffee;
    font-size: 12px;
    font-weight: 700;
}

.season-strip {
    color: #aebdb8;
    font-size: 12px;
    line-height: 1.35;
}

.season-stack {
    display: grid;
    gap: 8px;
}

.season-block {
    display: grid;
    gap: 8px;
}

.season-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.035);
    color: #edf8f3;
    font-size: 13px;
    font-weight: 800;
}

.season-toggle small {
    color: var(--muted);
    font-weight: 700;
}

.episode-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 7px;
}

.episode-list.is-collapsed {
    display: none;
}

.episode-pill {
    display: grid;
    justify-items: start;
    gap: 3px;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 7px 9px;
    background: rgba(3, 10, 12, 0.7);
    color: #f5fffb;
    text-align: left;
}

.episode-pill:hover,
.episode-pill.active {
    border-color: rgba(0, 255, 166, 0.6);
    background: rgba(0, 255, 166, 0.12);
}

.episode-pill span {
    font-size: 13px;
    font-weight: 850;
}

.episode-pill small {
    max-width: 100%;
    color: var(--muted);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-wrap {
    min-height: 0;
    margin: 0;
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 26px 84px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(0, 255, 166, 0.12);
}

.video-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0, 255, 166, 0.18), inset 0 -80px 130px rgba(0, 0, 0, 0.36);
    pointer-events: none;
}

.empty-player {
    background:
        radial-gradient(circle at 52% 20%, rgba(0, 255, 166, 0.24), transparent 25%),
        radial-gradient(circle at 55% 48%, rgba(0, 255, 166, 0.15), transparent 24%),
        linear-gradient(150deg, rgba(2, 10, 11, 0.78), rgba(0, 0, 0, 0.98));
}

.empty-player strong {
    font-size: clamp(46px, 5.4vw, 78px);
    font-weight: 900;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.72);
}

.empty-player strong::first-letter {
    color: #ffffff;
}

.empty-player strong {
    color: #25d79c;
}

.empty-player span {
    font-size: 18px;
    color: #d5dedb;
}

.now-playing {
    margin-top: 18px;
    padding: 0 10px 18px;
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.09);
}

.now-playing::after {
    content: "";
    display: block;
    width: min(360px, 48%);
    height: 2px;
    margin-top: 8px;
    background: linear-gradient(90deg, #00ffaa, transparent);
}

.now-playing strong {
    font-size: 24px;
    font-weight: 820;
}

.details-panel {
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    background:
        radial-gradient(circle at 24% 120%, rgba(0, 255, 166, 0.13), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
        rgba(7, 18, 21, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 18px 48px rgba(0, 0, 0, 0.24);
}

.item-card,
.category-chip,
.mode,
.video-wrap,
.details-panel {
    transform: translateZ(0);
}

.item-card {
    animation: cardReveal 180ms ease both;
}

.category-chip {
    animation: softReveal 140ms ease both;
}

.item-card:focus-visible,
.category-chip:focus-visible,
.mode:focus-visible,
.favorite-btn:focus-visible,
#sidebarToggle:focus-visible,
.ghost-btn:focus-visible,
.load-more:focus-visible {
    outline: 3px solid rgba(0, 255, 166, 0.86);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(0, 255, 166, 0.14), 0 0 32px rgba(0, 255, 166, 0.18);
}

.mode:active,
.category-chip:active,
.item-card:active {
    transform: translateZ(0) scale(0.99);
}

@supports (content-visibility: auto) {
    @media (min-width: 981px) and (pointer: fine) {
        .item-card {
            content-visibility: auto;
            contain-intrinsic-size: 86px;
        }
    }
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translate3d(0, 7px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes softReveal {
    from {
        opacity: 0.72;
        transform: translate3d(-4px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

body.is-tv-device {
    font-size: 17px;
}

body.is-tv-device .mode,
body.is-tv-device .category-chip,
body.is-tv-device .item-card,
body.is-tv-device .ghost-btn,
body.is-tv-device .load-more {
    min-height: 48px;
}

body.is-tv-device .item-card {
    min-height: 92px;
}

body.is-tv-device .content-head h1 {
    font-size: 36px;
}

body.is-tv-device .item-card strong {
    font-size: 19px;
}

body.is-slow-device .splash-screen::after,
body.is-slow-device .splash-orbit span,
body.is-slow-device .splash-loader span,
body.is-slow-device .player-loading::after,
body.is-slow-device .player-loading__orbit span,
body.is-slow-device .player-loading__bar span,
body.is-slow-device .loading-ring::before,
body.is-slow-device .loading-progress span,
body.is-slow-device .loading-skeleton,
body.is-reduced-motion .splash-screen::after,
body.is-reduced-motion .splash-orbit span,
body.is-reduced-motion .splash-loader span,
body.is-reduced-motion .player-loading::after,
body.is-reduced-motion .player-loading__orbit span,
body.is-reduced-motion .player-loading__bar span,
body.is-reduced-motion .loading-ring::before,
body.is-reduced-motion .loading-progress span,
body.is-reduced-motion .loading-skeleton {
    animation: none;
}

body.is-slow-device .desktop-gate {
    backdrop-filter: none;
}

body.is-slow-device .item-card,
body.is-slow-device .category-chip,
body.is-slow-device .mode {
    animation: none;
}

body.is-slow-device .player-panel::before,
body.is-slow-device .video-wrap::after,
body.is-slow-device::before {
    box-shadow: none;
}

body.is-slow-device .sidebar,
body.is-slow-device .content-panel,
body.is-slow-device .player-panel,
body.is-slow-device .item-card,
body.is-slow-device .video-wrap,
body.is-slow-device .details-panel,
body.is-slow-device .ghost-btn,
body.is-slow-device .load-more {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.is-slow-device .empty-player,
body.is-slow-device .video-wrap,
body.is-slow-device .details-panel {
    background-image: linear-gradient(150deg, rgba(7, 18, 21, 0.92), rgba(1, 6, 7, 0.98));
}

body.is-slow-device .home-stage::before,
body.is-slow-device .home-stage::after,
body.is-slow-device .home-poster::before,
body.is-slow-device .home-live-card.has-image::before,
body.is-slow-device .home-catalog-card.has-image::before,
body.is-slow-device .media-poster.has-image::before,
body.is-slow-device .series-poster-card.has-image::before {
    animation: none;
    opacity: 0.14;
}

body.is-slow-device .home-stage,
body.is-slow-device .home-card,
body.is-slow-device .home-channel,
body.is-slow-device .home-resume-card,
body.is-slow-device .home-catalog-card,
body.is-slow-device .media-poster,
body.is-slow-device .series-poster-card,
body.is-slow-device .series-producer-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.is-slow-device .home-channel:hover,
body.is-slow-device .home-card:hover,
body.is-slow-device .home-resume-card:hover,
body.is-slow-device .home-catalog-card:hover,
body.is-slow-device .media-poster:hover,
body.is-slow-device .series-poster-card:hover,
body.is-slow-device .series-producer-card:hover {
    transform: none;
}

body.is-slow-device .home-catalog,
body.is-slow-device .media-row {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
}

.item-card .logo-box {
    display: grid;
    place-items: center;
    margin-top: 0;
    overflow: hidden;
    white-space: normal;
    text-overflow: clip;
}

.logo-box.has-logo {
    border-color: rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.1), transparent 36%),
        linear-gradient(145deg, rgba(10, 26, 31, 0.96), rgba(2, 8, 10, 0.98));
}

.logo-box.has-logo img {
    width: 84%;
    height: 84%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.logo-box.no-logo {
    position: relative;
    background:
        radial-gradient(circle at 28% 20%, rgba(0, 255, 166, 0.28), transparent 34%),
        linear-gradient(145deg, rgba(12, 123, 141, 0.38), rgba(0, 63, 49, 0.68)),
        #061113;
    color: #edfff9;
}

.logo-box.no-logo::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    pointer-events: none;
}

.logo-box.no-logo span,
.logo-box.no-logo {
    font-size: 15px;
    line-height: 1;
    font-weight: 920;
}

.item-card {
    isolation: isolate;
}

.item-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(110deg, rgba(0, 255, 166, 0.05), transparent 42%, rgba(56, 189, 248, 0.05));
    opacity: 0;
    transition: opacity 160ms ease;
}

.item-card > * {
    position: relative;
    z-index: 1;
}

.item-card:hover::before,
.item-card.active::before {
    opacity: 1;
}

.media-row-strip {
    gap: 10px;
    padding: 4px 3px 14px;
}

.media-poster,
.series-poster-card,
.series-producer-card {
    border-radius: 8px;
    background:
        radial-gradient(circle at 22% 0%, rgba(0, 255, 166, 0.12), transparent 28%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(56, 189, 248, 0.1)),
        rgba(5, 13, 15, 0.94);
}

.media-poster.has-image,
.series-poster-card.has-image {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.3) 46%, rgba(0, 0, 0, 0.9) 100%),
        var(--catalog-poster) center / cover no-repeat;
}

.media-poster.has-producer-logo,
.series-start-card.has-producer-logo,
.movie-start-card.has-producer-logo {
    align-content: space-between;
}

.producer-logo {
    min-width: 0;
    min-height: 40px;
    padding: 8px 12px;
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
        rgba(0, 0, 0, 0.46);
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.22);
}

.producer-logo-netflix {
    color: #ff1720;
    font-size: 42px;
    font-weight: 980;
    background: linear-gradient(145deg, rgba(80, 0, 6, 0.62), rgba(0, 0, 0, 0.58));
}

.producer-logo-hbo {
    color: #f8fbff;
    font-size: 34px;
    background: linear-gradient(145deg, rgba(16, 35, 47, 0.72), rgba(0, 0, 0, 0.56));
}

.producer-logo-prime {
    color: #2fc8ff;
    font-size: 22px;
    background: linear-gradient(145deg, rgba(0, 38, 72, 0.72), rgba(0, 0, 0, 0.58));
}

.producer-logo-disney,
.producer-logo-paramount,
.producer-logo-apple,
.producer-logo-globo,
.producer-logo-discovery {
    color: #eaf8ff;
    font-size: 24px;
    background: linear-gradient(145deg, rgba(24, 72, 112, 0.6), rgba(0, 0, 0, 0.58));
}

.producer-logo-marvel {
    color: #fff;
    background: linear-gradient(145deg, #d71920, #6b0710);
}

.producer-logo-dc,
.producer-logo-pixar,
.producer-logo-warner {
    color: #f7fbff;
    background: linear-gradient(145deg, rgba(32, 75, 118, 0.72), rgba(0, 0, 0, 0.6));
}

body.is-slow-device .item-card::before,
body.is-slow-device .home-live-card.has-image::before,
body.is-slow-device .home-catalog-card.has-image.is-bg-ready::before,
body.is-slow-device .media-poster.has-image::before,
body.is-slow-device .series-poster-card.has-image::before {
    display: none;
}

body.is-slow-device .logo-box.has-logo img {
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}

@media (pointer: coarse) {
    .item-card:hover,
    .category-chip:hover,
    .mode:hover {
        transform: none;
    }

    .favorite-btn,
    #sidebarToggle {
        min-width: 44px;
        min-height: 44px;
    }
}

@media (orientation: landscape) and (pointer: coarse), (orientation: landscape) and (max-height: 760px) {
    .app-shell {
        padding: 8px;
    }

    .sidebar {
        height: calc(100vh - 16px);
        min-height: 0;
        gap: 8px;
        padding: 10px;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    .brand {
        gap: 9px;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
    }

    .brand strong {
        font-size: 20px;
    }

    .brand span {
        max-width: 130px;
        font-size: 14px;
    }

    .mode-tabs {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mode {
        min-height: 54px;
        padding: 8px 8px 7px;
        gap: 4px;
    }

    .mode::before {
        width: 28px;
        height: 24px;
    }

    .mode::after {
        top: 12px;
        font-size: 15px;
    }

    .search-box {
        flex: 0 0 auto;
    }

    .search-box input {
        height: 40px;
    }

    .categories {
        flex: 1 1 180px;
        min-height: 120px;
        max-height: none;
        overflow: hidden;
    }

    .category-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 4px;
        padding-bottom: 10px;
    }

    .category-chip {
        min-height: 38px;
    }

    .sidebar::-webkit-scrollbar,
    .category-list::-webkit-scrollbar {
        width: 7px;
    }

    .sidebar::-webkit-scrollbar-thumb,
    .category-list::-webkit-scrollbar-thumb {
        border-width: 2px;
    }
}

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

@keyframes splashPulse {
    0%,
    100% {
        transform: scale(0.96);
        opacity: 0.68;
    }

    50% {
        transform: scale(1.02);
        opacity: 1;
    }
}

@keyframes splashLoad {
    0% {
        transform: translateX(-110%);
    }

    55%,
    100% {
        transform: translateX(245%);
    }
}

@keyframes loadingSheen {
    0% {
        background-position: 140% 0;
    }

    100% {
        background-position: -80% 0;
    }
}

@keyframes dotWave {
    0%,
    80%,
    100% {
        transform: translateY(0) scale(0.78);
        opacity: 0.58;
    }

    40% {
        transform: translateY(-9px) scale(1);
        opacity: 1;
    }
}

@media (max-width: 900px) and (orientation: portrait) {
    .desktop-gate {
        display: none;
    }

    body {
        overflow: auto;
    }

    .app-shell {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        height: auto;
    }

    .sidebar-collapsed .app-shell {
        display: flex;
    }

    .sidebar {
        position: sticky;
        top: 0;
        z-index: 5;
        height: auto;
        max-height: 56vh;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .categories {
        min-height: 96px;
        max-height: 150px;
    }

    .category-list {
        grid-auto-flow: column;
        grid-auto-columns: minmax(150px, max-content);
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
    }

    .stage {
        display: block;
        overflow: visible;
    }

    .player-panel {
        order: 2;
        height: 42vh;
        min-height: 260px;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .content-panel {
        order: 1;
        overflow: visible;
    }

    .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .home-stage {
        min-height: 100vh;
        align-content: start;
        padding: 14px;
    }

    .home-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .home-topbar div {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .home-title {
        min-height: auto;
        padding: 24px 0 2px;
    }

    .home-title strong {
        font-size: 34px;
    }

    .home-channel-row {
        grid-template-columns: 1fr;
    }

    .home-resume-card {
        grid-template-columns: 92px minmax(0, 1fr);
        width: 100%;
    }

    .home-channel {
        min-height: 78px;
    }

    .home-live-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-card-grid {
        grid-template-columns: 1fr;
    }

    .home-catalog-row {
        grid-auto-columns: minmax(132px, 42vw);
    }

    .home-catalog-card {
        min-height: 196px;
    }

    .home-card {
        grid-template-rows: 220px auto;
    }
}

@media (max-width: 980px) and (orientation: landscape) {
    .desktop-gate {
        display: none;
    }

    body {
        overflow: hidden;
    }

    .app-shell {
        display: grid;
        grid-template-columns: 210px minmax(270px, 0.76fr) minmax(390px, 1.42fr);
        height: 100vh;
        min-height: 0;
        padding: 4px 8px 4px 3px;
    }

    .sidebar-collapsed .app-shell {
        grid-template-columns: 48px minmax(260px, 0.68fr) minmax(460px, 1.6fr);
    }

    .sidebar {
        position: static;
        height: 100vh;
        max-height: none;
        padding: 10px;
        gap: 10px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 46px;
        height: 38px;
        font-size: 13px;
    }

    .brand strong {
        font-size: 18px;
    }

    .mode-tabs {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .mode {
        min-height: 36px;
    }

    .search-box input {
        height: 38px;
        padding: 0 10px;
    }

    .categories {
        min-height: 0;
        max-height: none;
        flex: 1 1 auto;
    }

    .category-list {
        display: grid;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        overflow-y: auto;
        overflow-x: hidden;
        gap: 6px;
        padding: 0 4px 6px 0;
    }

    .category-chip {
        min-height: 38px;
        padding: 0 9px;
        font-size: 13px;
    }

    .category-chip small {
        font-size: 11px;
    }

    .content-panel {
        order: initial;
        min-height: 0;
        overflow: auto;
        padding: 10px;
    }

    .content-head {
        align-items: center;
        min-height: 54px;
        margin-bottom: 10px;
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        background: rgba(3, 10, 12, 0.72);
    }

    .head-actions {
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-end;
        margin-left: auto;
        gap: 6px;
    }

    #pathText {
        display: block;
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .content-head h1 {
        max-width: 48vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 20px;
    }

    #resultCount {
        max-width: 150px;
        overflow: hidden;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #loadMoreTop {
        display: none;
    }

    .ghost-btn,
    .load-more {
        min-height: 38px;
        padding: 0 12px;
    }

    .item-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.cinema-active.sidebar-collapsed .app-shell,
    body.series-active.sidebar-collapsed .app-shell {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    body.cinema-active.sidebar-collapsed .sidebar,
    body.series-active.sidebar-collapsed .sidebar {
        gap: 8px;
        padding: 5px 3px;
        align-items: center;
    }

    body.cinema-active.sidebar-collapsed .brand,
    body.series-active.sidebar-collapsed .brand {
        gap: 7px;
        align-items: center;
    }

    body.cinema-active.sidebar-collapsed .brand-mark,
    body.cinema-active.sidebar-collapsed #sidebarToggle,
    body.cinema-active.sidebar-collapsed .icon-btn,
    body.series-active.sidebar-collapsed .brand-mark,
    body.series-active.sidebar-collapsed #sidebarToggle,
    body.series-active.sidebar-collapsed .icon-btn {
        width: 36px;
        height: 36px;
    }

    body.cinema-active.sidebar-collapsed .mode-tabs,
    body.series-active.sidebar-collapsed .mode-tabs {
        width: 36px;
        gap: 6px;
    }

    body.cinema-active.sidebar-collapsed .mode,
    body.series-active.sidebar-collapsed .mode {
        min-width: 36px;
        min-height: 36px;
        padding: 5px 0;
    }

    body.cinema-active.sidebar-collapsed .mode::before,
    body.series-active.sidebar-collapsed .mode::before {
        width: 28px;
        height: 26px;
    }

    body.cinema-active.sidebar-collapsed .mode::after,
    body.series-active.sidebar-collapsed .mode::after {
        top: 12px;
        font-size: 15px;
    }

    .home-title strong {
        font-size: 30px;
    }

    .home-stage {
        min-height: 100vh;
        gap: 14px;
        padding: 12px;
    }

    .home-title {
        min-height: auto;
        padding: 10px 0 0;
    }

    .home-title p {
        max-width: 620px;
        font-size: 13px;
    }

    .home-channel-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .home-resume-card {
        grid-template-columns: 92px minmax(0, 1fr);
        min-height: 104px;
    }

    .home-channel {
        min-height: 68px;
        font-size: 20px;
    }

    .home-live-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .home-live-card {
        min-height: 112px;
        padding: 10px;
    }

    .home-live-card span {
        font-size: 14px;
    }

    .home-card-grid {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
        gap: 9px;
    }

    .home-catalog-row {
        grid-auto-columns: minmax(116px, 15vw);
    }

    .home-catalog-card {
        min-height: 168px;
        padding: 9px;
    }

    .home-catalog-card span {
        font-size: 13px;
    }

    .home-card {
        grid-template-rows: 130px auto;
    }

    .home-card-body {
        min-height: 132px;
        padding: 11px;
    }

    .home-card-body strong {
        font-size: 18px;
    }

    .home-card-body span {
        font-size: 12px;
    }

    .item-card {
        min-height: 66px;
        grid-template-columns: 44px minmax(0, 1fr) 36px;
        gap: 10px;
        padding: 7px;
    }

    .series-card {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 10px;
        min-height: 118px;
        padding: 9px;
    }

    .series-card .series-cover {
        width: 70px;
        height: 98px;
    }

    .series-heading {
        display: grid;
        gap: 7px;
    }

    .series-heading strong {
        font-size: 15px;
    }

    .series-meta {
        flex-wrap: wrap;
    }

    .episode-list {
        grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    }

    .logo-box {
        width: 44px;
        height: 44px;
        font-size: 13px;
    }

    .item-card strong {
        font-size: 14px;
    }

    .item-card span {
        font-size: 12px;
    }

    .favorite-btn {
        width: 34px;
        height: 34px;
        font-size: 21px;
    }

    .player-panel {
        order: initial;
        display: grid;
        grid-template-rows: minmax(230px, 62vh) auto 1fr;
        height: 100vh;
        min-height: 0;
        border-left: 1px solid var(--line);
        border-top: 0;
    }

    .video-wrap {
        margin: 10px 10px 0;
    }

    .now-playing {
        padding: 9px 10px;
        gap: 8px;
    }

    .now-playing strong {
        font-size: 16px;
    }

    .details-panel {
        grid-template-columns: 56px 1fr;
        padding: 10px;
        gap: 9px;
    }

    .detail-logo {
        width: 56px;
        height: 56px;
        font-size: 16px;
    }

    .details-panel h2 {
        font-size: 17px;
        margin-bottom: 5px;
    }

    .details-panel p {
        font-size: 12px;
        line-height: 1.35;
    }
}

@media (min-width: 901px) and (max-width: 1220px) {
    .desktop-gate__shell {
        grid-template-columns: minmax(0, 1fr);
        overflow: auto;
    }

    .desktop-gate__hero {
        min-height: 420px;
    }

    .app-shell {
        grid-template-columns: 240px minmax(300px, 0.8fr) minmax(460px, 1.45fr);
    }

    .sidebar-collapsed .app-shell {
        grid-template-columns: 76px minmax(300px, 0.7fr) minmax(520px, 1.6fr);
    }

    .item-grid {
        grid-template-columns: 1fr;
    }
}

@media (orientation: landscape) and (max-height: 760px) {
    .sidebar,
    .content-panel,
    .details-panel {
        padding: 12px;
    }

    .sidebar {
        gap: 12px;
    }

    .brand-mark {
        width: 58px;
        height: 44px;
    }

    .brand strong {
        font-size: 20px;
    }

    .brand span,
    .section-title,
    .search-box span,
    #resultCount,
    #nowGroup,
    #pathText {
        font-size: 12px;
    }

    .mode,
    .ghost-btn,
    .load-more {
        min-height: 42px;
    }

    .search-box input {
        height: 44px;
    }

    .category-chip {
        min-height: 42px;
    }

    .content-head {
        margin-bottom: 10px;
    }

    .content-head h1 {
        font-size: 22px;
    }

    .item-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .item-card {
        min-height: 74px;
        grid-template-columns: 50px minmax(0, 1fr) 38px;
        padding: 8px;
    }

    .series-card {
        grid-template-columns: 76px minmax(0, 1fr);
        min-height: 126px;
        padding: 9px;
    }

    .series-card .series-cover {
        width: 76px;
        height: 106px;
    }

    .series-heading strong {
        font-size: 16px;
    }

    .logo-box {
        width: 50px;
        height: 50px;
    }

    .favorite-btn {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .player-panel {
        grid-template-rows: minmax(230px, 62vh) auto 1fr;
    }

    .now-playing {
        padding: 10px 12px;
    }

    .now-playing strong {
        font-size: 18px;
    }

    .details-panel {
        grid-template-columns: 68px 1fr;
        gap: 10px;
    }

    .detail-logo {
        width: 68px;
        height: 68px;
        font-size: 18px;
    }

    .details-panel h2 {
        font-size: 19px;
    }

    .details-panel p {
        font-size: 13px;
    }
}

@media (max-width: 560px) {
    .desktop-gate {
        display: none;
    }

    .sidebar,
    .content-panel {
        padding: 12px;
    }

    .brand-mark {
        width: 62px;
    }

    .brand strong {
        font-size: 20px;
    }

    .mode,
    .ghost-btn,
    .load-more {
        min-height: 44px;
    }

    .now-playing {
        align-items: stretch;
        flex-direction: column;
    }

    .now-playing strong {
        max-width: 100%;
        font-size: 18px;
    }

    .pwa-install {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .pwa-install .ghost-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .home-title strong {
        font-size: 28px;
    }

    .home-title p {
        font-size: 14px;
    }

    .home-primary {
        width: 100%;
    }

    .home-live-grid {
        grid-template-columns: 1fr;
    }

    .home-live-card {
        min-height: 118px;
    }

    .home-card {
        grid-template-rows: 190px auto;
    }

    .home-rail {
        grid-auto-columns: minmax(130px, 42vw);
    }

    .home-rail-card {
        min-height: 188px;
    }

    .home-catalog-row {
        grid-auto-columns: minmax(128px, 44vw);
    }

    .home-catalog-card {
        min-height: 188px;
    }

    .home-card-body strong {
        font-size: 21px;
    }

    .series-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
        padding: 9px;
    }

    .series-card .series-cover {
        width: 72px;
        height: 102px;
    }

    .series-heading {
        display: grid;
        gap: 7px;
    }

    .series-meta {
        flex-wrap: wrap;
    }

    .episode-list {
        grid-template-columns: 1fr;
    }
}

@media (orientation: landscape) and (pointer: coarse), (orientation: landscape) and (max-height: 760px) {
    .sidebar {
        height: calc(100vh - 16px);
        min-height: 0;
        gap: 7px;
        padding: 10px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar .brand {
        min-height: 42px;
        gap: 8px;
    }

    .sidebar .brand-mark {
        width: 40px;
        height: 40px;
    }

    .sidebar .brand strong {
        font-size: 18px;
    }

    .sidebar .brand span {
        max-width: 118px;
        font-size: 12px;
        line-height: 1.08;
    }

    .sidebar .mode-tabs {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .sidebar .mode {
        min-height: 44px;
        padding: 5px 4px 4px;
        gap: 3px;
        font-size: 12px;
    }

    .sidebar .mode::before {
        width: 25px;
        height: 22px;
    }

    .sidebar .mode::after {
        top: 8px;
        font-size: 13px;
    }

    .sidebar .search-box {
        gap: 3px;
    }

    .sidebar .search-box span {
        font-size: 12px;
    }

    .sidebar .search-box input {
        height: 36px;
    }

    .sidebar .categories {
        flex: 1 1 auto;
        min-height: 240px;
        max-height: none;
        overflow: hidden;
    }

    .sidebar .section-title {
        font-size: 12px;
    }

    .sidebar .category-list {
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 4px;
        padding-bottom: 12px;
    }

    .sidebar .category-chip {
        min-height: 36px;
        padding: 0 10px;
    }

    .sidebar::-webkit-scrollbar,
    .sidebar .category-list::-webkit-scrollbar {
        width: 7px;
    }

    .sidebar::-webkit-scrollbar-thumb,
    .sidebar .category-list::-webkit-scrollbar-thumb {
        border-width: 2px;
    }

    body.categories-priority .sidebar {
        gap: 6px;
    }

    body.categories-priority .sidebar .brand {
        min-height: 38px;
    }

    body.categories-priority .sidebar .brand-mark {
        width: 38px;
        height: 38px;
    }

    body.categories-priority .sidebar .brand span {
        display: none;
    }

    body.categories-priority .sidebar #sidebarToggle {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    body.categories-priority .sidebar .mode-tabs {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    body.categories-priority .sidebar .mode {
        min-height: 36px;
        padding: 4px;
        font-size: 0;
    }

    body.categories-priority .sidebar .mode::before {
        width: 24px;
        height: 22px;
    }

    body.categories-priority .sidebar .mode::after {
        top: 9px;
        font-size: 14px;
    }

    body.categories-priority .sidebar .search-box {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
    }

    body.categories-priority .sidebar .categories {
        min-height: 220px;
    }
}

.series-poster-card {
    grid-template-columns: 1fr;
}

.series-poster-card .series-cover {
    display: none;
}

body.cinema-active:not(.cinema-playing) .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
}

body.cinema-active.cinema-playing .app-shell {
    grid-template-columns: 76px minmax(420px, 1.05fr) minmax(520px, 0.95fr);
}

@media (max-width: 900px) {
    body.cinema-active:not(.cinema-playing) .app-shell,
    body.cinema-active.cinema-playing .app-shell,
    body.series-active:not(.series-playing) .app-shell,
    body.series-active.series-playing .app-shell {
        display: flex;
        flex-direction: column;
    }

    body.cinema-active:not(.cinema-playing) .player-panel,
    body.series-active:not(.series-playing) .player-panel {
        display: none;
    }

    .movie-detail-page,
    .series-detail-page {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: 0;
        padding: 14px;
    }

    .movie-detail-art,
    .series-detail-art {
        min-height: 260px;
    }

    .movie-detail-copy h2,
    .series-detail-copy h2 {
        font-size: 30px;
    }

    .series-detail-seasons {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 980px) and (orientation: landscape) {
    body.cinema-active:not(.cinema-playing) .app-shell,
    body.series-active:not(.series-playing) .app-shell {
        display: grid;
        flex-direction: initial;
        grid-template-columns: 44px minmax(0, 1fr);
        height: 100vh;
    }

    body.cinema-active.cinema-playing .app-shell,
    body.series-active.series-playing .app-shell {
        display: grid;
        flex-direction: initial;
        grid-template-columns: 44px minmax(320px, 1fr) minmax(360px, 0.96fr);
        height: 100vh;
    }

    body.cinema-active:not(.sidebar-collapsed):not(.cinema-playing) .app-shell,
    body.series-active:not(.sidebar-collapsed):not(.series-playing) .app-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    body.cinema-active:not(.sidebar-collapsed).cinema-playing .app-shell,
    body.series-active:not(.sidebar-collapsed).series-playing .app-shell {
        grid-template-columns: 220px minmax(320px, 1fr) minmax(360px, 0.96fr);
    }

    body.cinema-active .sidebar,
    body.series-active .sidebar {
        position: static;
        order: initial;
        height: 100vh;
        max-height: none;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    body.cinema-active:not(.sidebar-collapsed) .sidebar,
    body.series-active:not(.sidebar-collapsed) .sidebar {
        align-items: stretch;
        padding: 10px;
        gap: 10px;
    }

    body.cinema-active:not(.sidebar-collapsed) .brand,
    body.series-active:not(.sidebar-collapsed) .brand {
        flex-direction: row;
        align-items: center;
        min-height: 42px;
    }

    body.cinema-active:not(.sidebar-collapsed) .brand > div:not(.brand-mark),
    body.cinema-active:not(.sidebar-collapsed) .search-box,
    body.cinema-active:not(.sidebar-collapsed) .categories,
    body.series-active:not(.sidebar-collapsed) .brand > div:not(.brand-mark),
    body.series-active:not(.sidebar-collapsed) .search-box,
    body.series-active:not(.sidebar-collapsed) .categories {
        display: grid;
    }

    body.cinema-active:not(.sidebar-collapsed) .mode-tabs,
    body.series-active:not(.sidebar-collapsed) .mode-tabs {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        width: auto;
    }

    body.cinema-active:not(.sidebar-collapsed) .mode,
    body.series-active:not(.sidebar-collapsed) .mode {
        display: grid;
        min-height: 46px;
        padding: 7px 8px;
        font-size: 13px;
    }

    body.cinema-active:not(.sidebar-collapsed) .mode::before,
    body.series-active:not(.sidebar-collapsed) .mode::before {
        width: 28px;
        height: 24px;
    }

    body.cinema-active:not(.sidebar-collapsed) .mode::after,
    body.series-active:not(.sidebar-collapsed) .mode::after {
        top: 10px;
        font-size: 14px;
    }

    body.cinema-active:not(.sidebar-collapsed) .content-panel,
    body.cinema-active.sidebar-collapsed .content-panel,
    body.series-active:not(.sidebar-collapsed) .content-panel,
    body.series-active.sidebar-collapsed .content-panel {
        order: initial;
        min-height: 0;
    }
}

/* Final thumbnail and low-end mobile tuning */
.item-card {
    position: relative;
}

@media (max-width: 560px) {
    .content-panel {
        padding: 10px;
    }

    .media-catalog-grid,
    .series-catalog-grid {
        gap: 20px;
    }

    .media-row {
        gap: 9px;
    }

    .media-row-strip,
    .series-row .media-row-strip,
    .series-start-row .media-row-strip,
    .movie-start-row .media-row-strip {
        grid-auto-columns: minmax(138px, 44vw);
        gap: 8px;
        padding: 2px 1px 10px;
    }

    .media-poster,
    .series-start-card,
    .movie-start-card {
        min-height: 174px;
        padding: 10px;
    }

    .movie-card {
        grid-template-rows: minmax(176px, 1fr);
    }

    .movie-poster-toggle {
        min-height: 176px;
        padding: 10px;
    }

    .producer-logo {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 18px;
    }

    .producer-logo-netflix {
        font-size: 34px;
    }

    .producer-logo-hbo {
        font-size: 28px;
    }

    .item-card {
        grid-template-columns: 52px minmax(0, 1fr) 40px;
        min-height: 74px;
        gap: 10px;
        padding: 9px 10px;
    }

    .logo-box {
        width: 52px;
        height: 52px;
    }
}

body.is-slow-device .media-row-strip {
    scroll-snap-type: none;
}

body.is-slow-device .media-poster,
body.is-slow-device .series-poster-card,
body.is-slow-device .series-producer-card,
body.is-slow-device .item-card {
    transition: border-color 120ms ease, background-color 120ms ease;
}



@media (orientation: landscape) and (pointer: coarse) and (max-width: 860px) and (max-height: 430px) {
    :root {
        --moto-rail-w: 50px;
        --moto-content-w: clamp(248px, 35vw, 288px);
        --moto-pad: 3px;
        --moto-panel-h: calc(100svh - (var(--moto-pad) * 2));
        --moto-now-h: 32px;
        --moto-detail-h: clamp(50px, 15svh, 62px);
    }

    .app-shell,
    body.cinema-active.cinema-playing .app-shell,
    body.series-active.series-playing .app-shell,
    body.cinema-active:not(.sidebar-collapsed).cinema-playing .app-shell,
    body.series-active:not(.sidebar-collapsed).series-playing .app-shell,
    body:not(.sidebar-collapsed) .app-shell {
        grid-template-columns: var(--moto-rail-w) var(--moto-content-w) minmax(0, 1fr);
        height: 100svh;
        max-height: 100svh;
        padding: var(--moto-pad);
        gap: 0;
        overflow: hidden;
    }

    body.cinema-active:not(.cinema-playing) .app-shell,
    body.series-active:not(.series-playing) .app-shell,
    body.cinema-active:not(.sidebar-collapsed):not(.cinema-playing) .app-shell,
    body.series-active:not(.sidebar-collapsed):not(.series-playing) .app-shell {
        grid-template-columns: var(--moto-rail-w) minmax(0, 1fr);
        height: 100svh;
        max-height: 100svh;
        padding: var(--moto-pad);
        overflow: hidden;
    }

    .sidebar,
    body.cinema-active:not(.sidebar-collapsed) .sidebar,
    body.series-active:not(.sidebar-collapsed) .sidebar,
    body:not(.sidebar-collapsed) .sidebar {
        position: relative;
        z-index: 6;
        width: var(--moto-rail-w);
        height: var(--moto-panel-h);
        max-height: var(--moto-panel-h);
        padding: 4px;
        gap: 5px;
        align-items: center;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

    body:not(.sidebar-collapsed) .sidebar {
        width: 180px;
        align-items: stretch;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
            rgba(3, 12, 14, 0.98);
        box-shadow: 16px 0 32px rgba(0, 0, 0, 0.36);
    }

    #sidebarToggle {
        display: grid !important;
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        margin-left: auto;
        padding: 0;
    }

    body.sidebar-collapsed #sidebarToggle {
        margin-left: 0;
    }

    .brand {
        min-height: 34px;
    }

    .brand-mark,
    body.sidebar-collapsed .brand-mark {
        width: 34px;
        height: 32px;
    }

    body:not(.sidebar-collapsed) .brand {
        justify-content: flex-start;
    }

    body:not(.sidebar-collapsed) .brand > div:not(.brand-mark),
    body:not(.sidebar-collapsed) .search-box {
        display: grid !important;
    }

    body.sidebar-collapsed .brand > div:not(.brand-mark),
    body.sidebar-collapsed .search-box {
        display: none !important;
    }

    .mode-tabs,
    body.cinema-active:not(.sidebar-collapsed) .mode-tabs,
    body.series-active:not(.sidebar-collapsed) .mode-tabs {
        width: 40px;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    body:not(.sidebar-collapsed) .mode-tabs {
        width: auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mode,
    body.cinema-active:not(.sidebar-collapsed) .mode,
    body.series-active:not(.sidebar-collapsed) .mode {
        min-width: 40px;
        min-height: 34px;
        padding: 4px 0;
        font-size: 0;
    }

    body:not(.sidebar-collapsed) .mode {
        min-width: 0;
        min-height: 36px;
        padding: 5px 4px;
        font-size: 11px;
    }

    .categories,
    .category-list,
    body.sidebar-collapsed .categories {
        display: grid !important;
        width: 42px;
        min-height: 0;
        overflow: hidden;
    }

    body:not(.sidebar-collapsed) .categories,
    body:not(.sidebar-collapsed) .category-list {
        width: auto;
    }

    .category-list {
        gap: 4px;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        padding: 0 0 8px;
    }

    .category-chip {
        width: 40px;
        min-width: 40px;
        min-height: 32px;
        padding: 0;
    }

    body:not(.sidebar-collapsed) .category-chip {
        place-items: center start;
        width: auto;
        min-width: 0;
        min-height: 34px;
        padding: 0 8px;
        font-size: 12px;
    }

    body:not(.sidebar-collapsed) .category-chip span {
        max-width: 130px;
        color: inherit;
        font-size: 12px;
        text-overflow: ellipsis;
    }

    body:not(.sidebar-collapsed) .category-chip span::before {
        content: none !important;
    }

    .content-panel,
    body.cinema-active:not(.sidebar-collapsed) .content-panel,
    body.cinema-active.sidebar-collapsed .content-panel,
    body.series-active:not(.sidebar-collapsed) .content-panel,
    body.series-active.sidebar-collapsed .content-panel {
        position: relative;
        z-index: 1;
        height: var(--moto-panel-h);
        max-height: var(--moto-panel-h);
        min-height: 0;
        min-width: 0;
        padding: 6px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .home-catalog,
    .media-row,
    .item-card {
        content-visibility: visible !important;
        contain-intrinsic-size: auto !important;
    }

    .content-head {
        min-height: 38px;
        margin-bottom: 6px;
        padding: 5px 7px;
    }

    .content-head h1 {
        max-width: 36vw;
        font-size: 17px;
    }

    #pathText {
        max-width: 36vw;
        font-size: 10px;
    }

    .item-card {
        min-height: 68px;
        grid-template-columns: 48px minmax(0, 1fr) 34px;
        padding: 7px;
        gap: 8px;
    }

    .logo-box {
        width: 48px;
        height: 48px;
    }

    .favorite-btn {
        width: 32px;
        height: 32px;
    }

    .player-panel {
        position: relative;
        z-index: 3;
        height: var(--moto-panel-h);
        max-height: var(--moto-panel-h);
        min-height: 0;
        grid-template-rows: minmax(0, 1fr) var(--moto-now-h) minmax(0, var(--moto-detail-h));
        gap: 5px;
        padding: 5px;
        overflow: hidden;
    }

    .video-wrap {
        height: 100%;
        max-height: none;
        margin: 0;
        aspect-ratio: auto;
    }

    .now-playing {
        height: var(--moto-now-h);
        min-height: 0;
        margin: 0;
        padding: 3px 7px;
        overflow: hidden;
    }

    .now-playing::after {
        display: none;
    }

    .now-playing strong {
        font-size: 14px;
    }

    .details-panel {
        grid-template-columns: 42px minmax(0, 1fr);
        max-height: var(--moto-detail-h);
        margin: 0;
        padding: 5px 6px;
        gap: 7px;
        overflow: hidden;
    }

    .detail-logo {
        width: 42px;
        height: 42px;
        font-size: 12px;
    }

    .details-panel h2 {
        margin: 1px 0 2px;
        font-size: 13px;
    }

    .details-panel p {
        -webkit-line-clamp: 1;
        font-size: 10px;
    }
}

/* Moto G32 and similar phones in landscape */
@media (orientation: landscape) and (pointer: coarse) and (max-width: 980px) and (max-height: 520px) {
    body {
        overflow: hidden;
    }

    .app-shell,
    body.cinema-active.cinema-playing .app-shell,
    body.series-active.series-playing .app-shell,
    body.cinema-active:not(.sidebar-collapsed).cinema-playing .app-shell,
    body.series-active:not(.sidebar-collapsed).series-playing .app-shell {
        grid-template-columns: 54px minmax(282px, 42vw) minmax(0, 1fr);
        height: 100svh;
        height: 100dvh;
        max-height: 100svh;
        max-height: 100dvh;
        padding: 3px;
        gap: 0;
        overflow: hidden;
    }

    body.cinema-active:not(.cinema-playing) .app-shell,
    body.series-active:not(.series-playing) .app-shell,
    body.cinema-active:not(.sidebar-collapsed):not(.cinema-playing) .app-shell,
    body.series-active:not(.sidebar-collapsed):not(.series-playing) .app-shell {
        grid-template-columns: 54px minmax(0, 1fr);
        height: 100svh;
        height: 100dvh;
        max-height: 100svh;
        max-height: 100dvh;
        padding: 3px;
        overflow: hidden;
    }

    .sidebar,
    body.cinema-active:not(.sidebar-collapsed) .sidebar,
    body.series-active:not(.sidebar-collapsed) .sidebar {
        width: 54px;
        height: calc(100svh - 6px);
        height: calc(100dvh - 6px);
        max-height: calc(100svh - 6px);
        max-height: calc(100dvh - 6px);
        padding: 5px 4px;
        gap: 6px;
        align-items: center;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
    }

    .brand {
        min-height: 36px;
        justify-content: center;
    }

    .brand > div:not(.brand-mark),
    .search-box {
        display: none !important;
    }

    #sidebarToggle {
        display: grid !important;
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        padding: 0;
        font-size: 18px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        font-size: 0;
    }

    .brand-mark::first-letter {
        font-size: 17px;
    }

    .mode-tabs,
    body.cinema-active:not(.sidebar-collapsed) .mode-tabs,
    body.series-active:not(.sidebar-collapsed) .mode-tabs {
        display: grid;
        grid-template-columns: 1fr;
        width: 40px;
        gap: 6px;
        flex: 0 0 auto;
    }

    .mode,
    body.cinema-active:not(.sidebar-collapsed) .mode,
    body.series-active:not(.sidebar-collapsed) .mode {
        min-width: 40px;
        min-height: 36px;
        padding: 4px 0;
        font-size: 0;
    }

    .categories {
        display: grid !important;
        width: 44px;
        min-height: 0;
        max-height: none;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .section-title {
        display: none;
    }

    .category-list {
        display: grid;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        gap: 5px;
        width: 44px;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0 0 8px;
        scrollbar-width: thin;
    }

    .category-chip {
        display: grid;
        place-items: center;
        width: 40px;
        min-width: 40px;
        min-height: 34px;
        padding: 0;
        overflow: hidden;
        font-size: 0;
    }

    .category-chip span {
        display: block;
        max-width: 34px;
        margin: 0;
        overflow: hidden;
        color: transparent;
        font-size: 0;
        text-overflow: clip;
        white-space: nowrap;
    }

    .category-chip:not([data-favorites="1"]) span::before {
        content: "•";
        color: #dfffee;
        font-size: 18px;
        line-height: 1;
    }

    .category-chip.featured:not([data-favorites="1"]) span::before {
        content: "★";
        color: #22c55e;
        font-size: 15px;
    }

    .category-chip.favorite-filter span::before {
        content: "★";
        color: #38bdf8;
        font-size: 15px;
    }

    .mode::before {
        width: 28px;
        height: 26px;
    }

    .mode::after {
        top: 10px;
        font-size: 14px;
    }

    body:not(.sidebar-collapsed) .app-shell,
    body.cinema-active:not(.sidebar-collapsed).cinema-playing .app-shell,
    body.series-active:not(.sidebar-collapsed).series-playing .app-shell {
        grid-template-columns: 168px minmax(250px, 38vw) minmax(0, 1fr);
    }

    body:not(.sidebar-collapsed) .sidebar {
        width: 168px;
        align-items: stretch;
        padding: 6px;
    }

    body:not(.sidebar-collapsed) .brand {
        justify-content: flex-start;
    }

    body:not(.sidebar-collapsed) .brand > div:not(.brand-mark),
    body:not(.sidebar-collapsed) .search-box {
        display: grid !important;
    }

    body:not(.sidebar-collapsed) .brand-mark {
        width: 38px;
        height: 34px;
        font-size: 12px;
    }

    body:not(.sidebar-collapsed) .mode-tabs {
        width: auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body:not(.sidebar-collapsed) .mode {
        min-width: 0;
        font-size: 11px;
    }

    body:not(.sidebar-collapsed) .categories,
    body:not(.sidebar-collapsed) .category-list {
        width: auto;
    }

    body:not(.sidebar-collapsed) .category-chip {
        place-items: center start;
        width: auto;
        min-width: 0;
        padding: 0 8px;
        font-size: 12px;
    }

    body:not(.sidebar-collapsed) .category-chip span {
        max-width: 130px;
        color: inherit;
        font-size: 12px;
        text-overflow: ellipsis;
    }

    body:not(.sidebar-collapsed) .category-chip span::before {
        content: none !important;
    }

    .content-panel,
    body.cinema-active:not(.sidebar-collapsed) .content-panel,
    body.cinema-active.sidebar-collapsed .content-panel,
    body.series-active:not(.sidebar-collapsed) .content-panel,
    body.series-active.sidebar-collapsed .content-panel {
        position: relative;
        z-index: 1;
        padding: 7px;
        min-height: 0;
        min-width: 0;
        overflow: auto;
        border-radius: 8px 0 0 8px;
    }

    .home-catalog,
    .media-row,
    .item-card {
        content-visibility: visible !important;
        contain-intrinsic-size: auto !important;
    }

    body.sidebar-collapsed .categories {
        display: grid !important;
    }

    body.sidebar-collapsed .brand > div:not(.brand-mark),
    body.sidebar-collapsed .search-box {
        display: none !important;
    }

    .content-head {
        min-height: 44px;
        margin-bottom: 7px;
        padding: 6px 8px;
    }

    #pathText {
        max-width: 38vw;
        font-size: 11px;
    }

    .content-head h1 {
        max-width: 38vw;
        font-size: 18px;
        line-height: 1;
    }

    #resultCount,
    #loadMoreTop {
        display: none;
    }

    .item-grid {
        gap: 7px;
    }

    .media-catalog-grid,
    .series-catalog-grid {
        gap: 16px;
    }

    .media-row {
        gap: 8px;
    }

    .media-row h2 {
        font-size: 18px;
    }

    .series-row-heading {
        padding-right: 8px;
    }

    .series-row-heading small {
        padding: 3px 6px;
        font-size: 10px;
    }

    .media-row-strip,
    .series-row .media-row-strip,
    .series-start-row .media-row-strip,
    .movie-start-row .media-row-strip {
        grid-auto-columns: minmax(136px, 38%);
        gap: 7px;
        padding: 1px 1px 9px;
    }

    .media-poster,
    .series-start-card,
    .movie-start-card {
        min-height: 164px;
        padding: 9px;
    }

    .producer-logo {
        min-height: 32px;
        padding: 6px 8px;
        font-size: 17px;
    }

    .producer-logo-netflix {
        font-size: 32px;
    }

    .player-panel {
        position: relative;
        z-index: 3;
        min-width: 0;
        height: calc(100svh - 6px);
        height: calc(100dvh - 6px);
        max-height: calc(100svh - 6px);
        max-height: calc(100dvh - 6px);
        grid-template-rows: minmax(144px, 46dvh) 36px minmax(54px, 1fr);
        gap: 6px;
        padding: 6px;
        overflow: hidden;
        border-left: 1px solid rgba(0, 255, 166, 0.22);
        background: rgba(3, 10, 12, 0.98);
    }

    .video-wrap {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        max-height: 46dvh;
        min-height: 0;
        margin: 0;
        aspect-ratio: 16 / 9;
        align-self: start;
    }

    .now-playing {
        position: relative;
        z-index: 2;
        align-content: center;
        min-height: 0;
        height: 38px;
        margin: 0;
        padding: 4px 8px;
    }

    .now-playing::after {
        display: none;
    }

    .now-playing span {
        font-size: 11px;
    }

    .now-playing strong {
        max-width: 38vw;
        font-size: 15px;
        line-height: 1.08;
    }

    .details-panel {
        position: relative;
        z-index: 2;
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 8px;
        align-content: center;
        min-height: 0;
        max-height: 100%;
        margin: 0;
        padding: 7px;
        overflow: hidden;
    }

    .detail-logo {
        width: 50px;
        height: 50px;
        font-size: 13px;
    }

    .details-panel h2 {
        margin: 2px 0 3px;
        font-size: 15px;
        line-height: 1.12;
    }

    .details-panel p {
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.25;
    }

    .item-card,
    .media-row,
    .media-row-strip {
        max-width: 100%;
    }
}

/* Last mobile-landscape override: keep menu usable and player contained. */
@media (orientation: landscape) and (pointer: coarse) and (max-width: 860px) and (max-height: 430px) {
    :root {
        --moto-rail-w: 50px;
        --moto-content-w: clamp(248px, 35vw, 288px);
        --moto-pad: 3px;
        --moto-panel-h: calc(100svh - (var(--moto-pad) * 2));
        --moto-now-h: 32px;
        --moto-detail-h: clamp(50px, 15svh, 62px);
    }

    .app-shell,
    body:not(.sidebar-collapsed) .app-shell,
    body.cinema-active.cinema-playing .app-shell,
    body.series-active.series-playing .app-shell,
    body.cinema-active:not(.sidebar-collapsed).cinema-playing .app-shell,
    body.series-active:not(.sidebar-collapsed).series-playing .app-shell {
        grid-template-columns: var(--moto-rail-w) var(--moto-content-w) minmax(0, 1fr) !important;
        height: 100svh !important;
        max-height: 100svh !important;
        padding: var(--moto-pad) !important;
        gap: 0 !important;
        overflow: hidden !important;
    }

    body.cinema-active:not(.cinema-playing) .app-shell,
    body.series-active:not(.series-playing) .app-shell,
    body.cinema-active:not(.sidebar-collapsed):not(.cinema-playing) .app-shell,
    body.series-active:not(.sidebar-collapsed):not(.series-playing) .app-shell {
        grid-template-columns: var(--moto-rail-w) minmax(0, 1fr) !important;
    }

    .sidebar,
    body.cinema-active:not(.sidebar-collapsed) .sidebar,
    body.series-active:not(.sidebar-collapsed) .sidebar,
    body.sidebar-collapsed .sidebar {
        position: relative !important;
        z-index: 6 !important;
        width: var(--moto-rail-w) !important;
        height: var(--moto-panel-h) !important;
        max-height: var(--moto-panel-h) !important;
        padding: 4px !important;
        gap: 5px !important;
        align-items: center !important;
        overflow: hidden !important;
    }

    body:not(.sidebar-collapsed) .sidebar {
        width: 180px !important;
        align-items: stretch !important;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
            rgba(3, 12, 14, 0.98) !important;
        box-shadow: 16px 0 32px rgba(0, 0, 0, 0.36) !important;
    }

    #sidebarToggle {
        display: grid !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        margin-left: auto !important;
        padding: 0 !important;
    }

    body.sidebar-collapsed #sidebarToggle {
        margin-left: 0 !important;
    }

    .brand {
        min-height: 34px !important;
    }

    .brand-mark,
    body.sidebar-collapsed .brand-mark {
        width: 34px !important;
        height: 32px !important;
    }

    body:not(.sidebar-collapsed) .brand {
        justify-content: flex-start !important;
    }

    body:not(.sidebar-collapsed) .brand > div:not(.brand-mark),
    body:not(.sidebar-collapsed) .search-box {
        display: grid !important;
    }

    body.sidebar-collapsed .brand > div:not(.brand-mark),
    body.sidebar-collapsed .search-box {
        display: none !important;
    }

    .mode-tabs,
    body.cinema-active:not(.sidebar-collapsed) .mode-tabs,
    body.series-active:not(.sidebar-collapsed) .mode-tabs {
        width: 40px !important;
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }

    body:not(.sidebar-collapsed) .mode-tabs {
        width: auto !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .mode,
    body.cinema-active:not(.sidebar-collapsed) .mode,
    body.series-active:not(.sidebar-collapsed) .mode {
        min-width: 40px !important;
        min-height: 34px !important;
        padding: 4px 0 !important;
        font-size: 0 !important;
    }

    body:not(.sidebar-collapsed) .mode {
        min-width: 0 !important;
        min-height: 36px !important;
        padding: 5px 4px !important;
        font-size: 11px !important;
    }

    .sidebar .categories,
    body.categories-priority .sidebar .categories,
    body.sidebar-collapsed .sidebar .categories {
        display: grid !important;
        width: 42px !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: 1 1 0 !important;
        overflow: hidden !important;
    }

    body:not(.sidebar-collapsed) .sidebar .categories {
        width: auto !important;
    }

    .sidebar .category-list {
        width: 42px !important;
        min-height: 0 !important;
        max-height: none !important;
        gap: 4px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain !important;
        padding: 0 0 8px !important;
    }

    body:not(.sidebar-collapsed) .sidebar .category-list {
        width: auto !important;
    }

    .category-chip {
        width: 40px !important;
        min-width: 40px !important;
        min-height: 32px !important;
        padding: 0 !important;
    }

    body:not(.sidebar-collapsed) .category-chip {
        place-items: center start !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 34px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
    }

    body:not(.sidebar-collapsed) .category-chip span {
        max-width: 130px !important;
        color: inherit !important;
        font-size: 12px !important;
        text-overflow: ellipsis !important;
    }

    body:not(.sidebar-collapsed) .category-chip span::before {
        content: none !important;
    }

    .content-panel,
    body.cinema-active:not(.sidebar-collapsed) .content-panel,
    body.cinema-active.sidebar-collapsed .content-panel,
    body.series-active:not(.sidebar-collapsed) .content-panel,
    body.series-active.sidebar-collapsed .content-panel {
        position: relative !important;
        z-index: 1 !important;
        height: var(--moto-panel-h) !important;
        max-height: var(--moto-panel-h) !important;
        min-height: 0 !important;
        min-width: 0 !important;
        padding: 6px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }

    .home-catalog,
    .media-row,
    .item-card {
        content-visibility: visible !important;
        contain-intrinsic-size: auto !important;
    }

    .content-head {
        min-height: 38px !important;
        margin-bottom: 6px !important;
        padding: 5px 7px !important;
    }

    .content-head h1 {
        max-width: 36vw !important;
        font-size: 17px !important;
    }

    #pathText {
        max-width: 36vw !important;
        font-size: 10px !important;
    }

    .item-card {
        min-height: 68px !important;
        grid-template-columns: 48px minmax(0, 1fr) 34px !important;
        padding: 7px !important;
        gap: 8px !important;
    }

    .logo-box {
        width: 48px !important;
        height: 48px !important;
    }

    .favorite-btn {
        width: 32px !important;
        height: 32px !important;
    }

    .player-panel {
        position: relative !important;
        z-index: 3 !important;
        height: var(--moto-panel-h) !important;
        max-height: var(--moto-panel-h) !important;
        min-height: 0 !important;
        min-width: 0 !important;
        grid-template-rows: minmax(0, 1fr) var(--moto-now-h) minmax(0, var(--moto-detail-h)) !important;
        gap: 5px !important;
        padding: 5px !important;
        overflow: hidden !important;
    }

    .video-wrap {
        height: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        aspect-ratio: auto !important;
    }

    .now-playing {
        height: var(--moto-now-h) !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 3px 7px !important;
        overflow: hidden !important;
    }

    .now-playing::after {
        display: none !important;
    }

    .now-playing strong {
        font-size: 14px !important;
    }

    .details-panel {
        grid-template-columns: 42px minmax(0, 1fr) !important;
        max-height: var(--moto-detail-h) !important;
        margin: 0 !important;
        padding: 5px 6px !important;
        gap: 7px !important;
        overflow: hidden !important;
    }

    .detail-logo {
        width: 42px !important;
        height: 42px !important;
        font-size: 12px !important;
    }

    .details-panel h2 {
        margin: 1px 0 2px !important;
        font-size: 13px !important;
    }

    .details-panel p {
        -webkit-line-clamp: 1 !important;
        font-size: 10px !important;
    }

    .player-cast-btn {
        top: 7px !important;
        right: 7px !important;
        width: 34px !important;
        height: 34px !important;
        border-radius: 8px !important;
        backdrop-filter: none !important;
    }

    .player-cast-btn span {
        width: 18px !important;
        height: 12px !important;
        border-width: 2px !important;
    }
}

@media (orientation: landscape) and (pointer: coarse) and (max-width: 860px) and (max-height: 430px) {
    body.cinema-active:not(.sidebar-collapsed):not(.cinema-playing) .app-shell,
    body.series-active:not(.sidebar-collapsed):not(.series-playing) .app-shell {
        grid-template-columns: 180px minmax(0, 1fr) !important;
    }

    body.cinema-active:not(.sidebar-collapsed).cinema-playing .app-shell,
    body.series-active:not(.sidebar-collapsed).series-playing .app-shell {
        grid-template-columns: 180px var(--moto-content-w) minmax(0, 1fr) !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .sidebar,
    body.series-active:not(.sidebar-collapsed) .sidebar {
        width: 180px !important;
        align-items: stretch !important;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
            rgba(3, 12, 14, 0.98) !important;
        box-shadow: 16px 0 32px rgba(0, 0, 0, 0.36) !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .mode-tabs,
    body.series-active:not(.sidebar-collapsed) .mode-tabs {
        width: auto !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .mode,
    body.series-active:not(.sidebar-collapsed) .mode {
        min-width: 0 !important;
        min-height: 36px !important;
        padding: 5px 4px !important;
        font-size: 11px !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .brand > div:not(.brand-mark),
    body.cinema-active:not(.sidebar-collapsed) .search-box,
    body.series-active:not(.sidebar-collapsed) .brand > div:not(.brand-mark),
    body.series-active:not(.sidebar-collapsed) .search-box {
        display: grid !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .sidebar .categories,
    body.cinema-active:not(.sidebar-collapsed) .sidebar .category-list,
    body.series-active:not(.sidebar-collapsed) .sidebar .categories,
    body.series-active:not(.sidebar-collapsed) .sidebar .category-list {
        width: auto !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .category-chip,
    body.series-active:not(.sidebar-collapsed) .category-chip {
        place-items: center start !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 34px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .category-chip span,
    body.series-active:not(.sidebar-collapsed) .category-chip span {
        max-width: 130px !important;
        color: inherit !important;
        font-size: 12px !important;
    }

    body.cinema-active:not(.sidebar-collapsed) .category-chip span::before,
    body.series-active:not(.sidebar-collapsed) .category-chip span::before {
        content: none !important;
    }
}
