:root {
    --bg: #0a0412;
    --bg-2: #0f0b22;
    --accent: #ff2bd6;
    --accent-2: #19f7ff;
    --accent-3: #f7ff4a;
    --text: #f2f4ff;
    --muted: #9aa0c2;
    --panel: rgba(12, 10, 24, 0.92);
    --border: rgba(255, 43, 214, 0.3);
    --shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    --panel-opacity: 0.75;
    --button-opacity: 0.9;
}

@keyframes logo-pulse {
    0% {
        transform: translateX(var(--logo-x)) translateY(var(--logo-y)) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translateX(var(--logo-x)) translateY(var(--logo-y)) scale(1.03);
        opacity: 1;
    }
    100% {
        transform: translateX(var(--logo-x)) translateY(var(--logo-y)) scale(1);
        opacity: 0.9;
    }
}

@keyframes logo-halo-sweep {
    0% {
        opacity: 0.18;
        background-position: -200% 50%;
    }
    50% {
        opacity: 0.32;
    }
    100% {
        opacity: 0.18;
        background-position: 200% 50%;
    }
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #158aa8 0%, #121e4a 45%, #02050a 80%);
    position: relative;
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    min-height: 100dvh;
    overflow: hidden;
}

html {
    background: linear-gradient(135deg, #158aa8 0%, #121e4a 45%, #02050a 80%);
    min-height: 100dvh;
}

#app-scale-root {
    position: fixed;
    left: 0;
    top: 0;
    width: 1920px;
    height: 1080px;
    background: linear-gradient(135deg, #158aa8 0%, #121e4a 45%, #02050a 80%);
    transform-origin: top left;
    will-change: transform;
}

.android-touch-nav-btn {
    display: none;
    position: static;
    width: 48px;
    min-width: 48px;
    height: 48px;
    border: 1px solid rgba(25, 247, 255, 0.38);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(12, 18, 34, 0.96), rgba(7, 13, 24, 0.9));
    color: #f2f4ff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    text-align: center;
    padding: 0;
    z-index: 6;
    cursor: pointer;
    flex: 0 0 48px;
    -webkit-tap-highlight-color: transparent;
}

.android-touch-nav-btn:active {
    transform: scale(0.96);
}

.android-touch-up-btn,
.android-touch-down-btn,
.android-touch-left-btn,
.android-touch-right-btn {
    font-size: 24px;
    letter-spacing: 0;
    font-weight: 600;
}

.android-touch-back-btn {
    background:
        linear-gradient(135deg, rgba(255, 48, 201, 0.24), rgba(24, 247, 255, 0.16)),
        linear-gradient(135deg, rgba(12, 18, 34, 0.96), rgba(7, 13, 24, 0.9));
    border-color: rgba(255, 82, 214, 0.55);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), 0 0 14px rgba(255, 48, 201, 0.18);
}

.android-touch-left-btn {
    background:
        linear-gradient(135deg, rgba(25, 247, 255, 0.24), rgba(96, 78, 255, 0.16)),
        linear-gradient(135deg, rgba(12, 18, 34, 0.96), rgba(7, 13, 24, 0.9));
    border-color: rgba(25, 247, 255, 0.55);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), 0 0 14px rgba(25, 247, 255, 0.18);
}

.android-touch-up-btn {
    background:
        linear-gradient(135deg, rgba(24, 247, 255, 0.24), rgba(62, 138, 255, 0.16)),
        linear-gradient(135deg, rgba(12, 18, 34, 0.96), rgba(7, 13, 24, 0.9));
    border-color: rgba(24, 247, 255, 0.55);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), 0 0 14px rgba(24, 247, 255, 0.18);
}

.android-touch-down-btn {
    background:
        linear-gradient(135deg, rgba(255, 171, 52, 0.24), rgba(255, 48, 201, 0.16)),
        linear-gradient(135deg, rgba(12, 18, 34, 0.96), rgba(7, 13, 24, 0.9));
    border-color: rgba(255, 171, 52, 0.55);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), 0 0 14px rgba(255, 171, 52, 0.18);
}

.android-touch-right-btn {
    background:
        linear-gradient(135deg, rgba(54, 255, 190, 0.24), rgba(24, 247, 255, 0.16)),
        linear-gradient(135deg, rgba(12, 18, 34, 0.96), rgba(7, 13, 24, 0.9));
    border-color: rgba(54, 255, 190, 0.55);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), 0 0 14px rgba(54, 255, 190, 0.18);
}

.android-touch-ok-btn {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    background:
        radial-gradient(circle at 40% 36%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 42%),
        linear-gradient(135deg, rgba(255, 48, 201, 0.36), rgba(24, 247, 255, 0.2)),
        linear-gradient(135deg, rgba(19, 26, 44, 0.98), rgba(8, 13, 26, 0.94));
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.46),
        0 0 26px rgba(255, 48, 201, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.android-touch-back-edge {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: max(72px, calc(env(safe-area-inset-left) + 48px));
    height: 100dvh;
    z-index: 139;
    background: transparent;
    touch-action: none;
}


body.playback-active,
body.playback-active .app-container,
html.playback-active {
    background: #000;
}

.welcome-overlay {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 80;
    pointer-events: none;
}

.welcome-text {
    position: fixed;
    left: 0;
    top: 0;
    text-align: center;
    transform: none;
    font-size: 64px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e8f6ff;
    text-shadow: 0 0 24px rgba(69, 245, 255, 0.45), 0 0 40px rgba(43, 76, 255, 0.35);
    opacity: 0;
}

.welcome-letter {
    display: inline-block;
    will-change: transform, opacity;
}

.help-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    z-index: 2147483647;
    background: rgba(2, 5, 10, 0.72);
    align-items: center;
    justify-content: center;
}

.help-card {
    width: 760px;
    max-width: 92vw;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 7, 14, 0.96);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
    padding: 24px 26px;
}

.help-card h3 {
    margin: 0 0 14px;
    font-size: 28px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.help-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 9px 0;
    font-size: 16px;
    letter-spacing: 0.05em;
}

.help-list li span:first-child {
    color: #e8fbff;
    font-weight: 700;
}

.help-list li span:last-child {
    color: var(--muted);
}

.help-hint {
    margin: 14px 0 0;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: rgba(232, 251, 255, 0.78);
    text-transform: uppercase;
}

.screensaver-overlay {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
    background: #000;
    pointer-events: none;
}

.screensaver-logo {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffffff;
    z-index: 10000;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    animation: ztvColorShift 10s linear infinite;
}

@keyframes ztvColorShift {
    0% { color: #ffffff; }
    20% { color: #66f0ff; }
    40% { color: #ff5bd6; }
    60% { color: #7b5bff; }
    80% { color: #35ffb6; }
    100% { color: #ffffff; }
}

body.screensaver-active .screensaver-overlay {
    display: block;
}

body.screensaver-active,
body.screensaver-active .app-container,
html.screensaver-active {
    background: #000;
}

body.screensaver-active .video,
body.screensaver-active video {
    opacity: 0;
}

body.screensaver-active .playback-icon {
    opacity: 0;
}

.app-container {
    position: relative;
    left: 4px;
    right: 4px;
    width: calc(100% - 8px);
    padding-top: 4px;
    padding-bottom: 4px;
    min-height: 100dvh;
    background: transparent;
}

.epg-debug-overlay {
    display: none;
}

.bg-grid,
.glow-orb {
    display: none;
}

.creds-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    overflow: hidden;
}

.creds-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 28px;
    background: rgba(8, 7, 14, var(--panel-opacity));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    text-align: center;
    width: 360px;
    height: 320px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.creds-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.creds-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.creds-card #creds-connectivity {
    margin-top: 6px;
    font-size: 12px;
}

.creds-steps {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.creds-steps li {
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.creds-steps li.done {
    border-color: rgba(255, 43, 214, 0.8);
    color: #ff2bd6;
}

.creds-select {
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    display: block;
}

.auth-panel {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    display: none;
}

.profiles-select,
.profile-editor {
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    display: none;
}

.auth-label {
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.auth-mac {
    margin-top: 4px;
    margin-bottom: 12px;
    font-size: 28px;
    letter-spacing: 0.1em;
    color: var(--text);
}

.auth-code-input {
    width: 100%;
    height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(12, 10, 24, 0.9);
    color: var(--text);
    font-size: 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    outline: none;
}

.auth-code-input:focus,
.auth-code-input.is-focused {
    border-color: rgba(255, 43, 214, 1);
    box-shadow: 0 0 0 1px rgba(255, 43, 214, 0.35);
}

.auth-submit {
    width: 100%;
    margin-top: 10px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(25, 247, 255, 0.45);
    background: rgba(13, 95, 122, 0.35);
    color: #dffcff;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-submit:focus,
.auth-submit.is-focused {
    border-color: rgba(255, 43, 214, 1);
    box-shadow: 0 0 0 1px rgba(255, 43, 214, 0.35);
}

.auth-submit:disabled,
.auth-code-input:disabled {
    opacity: 0.55;
}

.auth-status {
    min-height: 20px;
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: none;
    color: var(--muted);
}

.auth-status.error {
    color: #ff8f8f;
}

.profiles-status {
    min-height: 20px;
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: none;
    color: var(--muted);
}

.profiles-status.error {
    color: #ff8f8f;
}

.creds-title {
    margin: 0 0 10px;
    font-size: 16px;
    position: relative;
    top: -8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.creds-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 260px;
    overflow: hidden;
}

.profiles-list {
    max-height: 220px;
}

.cred-item {
    width: 290px;
    margin-left: auto;
    margin-right: auto;
    padding: 2px 13px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    background: rgba(12, 10, 24, 0.96);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.cred-name {
    font-size: 14px;
    margin-bottom: 6px;
}

.cred-meta {
    display: block;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.cred-meta-row {
    display: block;
    margin-bottom: 8px;
}

.cred-meta-item {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 6px;
    padding: 4px 6px;
    border-radius: 999px;
    border: 1px solid rgba(25, 247, 255, 0.25);
    background: rgba(12, 10, 24, 0.9);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.0;
}

.cred-meta-label {
    color: var(--accent-2);
}

.cred-item.is-focused {
    border-width: 2px;
    border-color: rgba(255, 43, 214, 1);
    border-radius: 8px;
}

.cred-item:last-child {
    margin-bottom: 0;
}

.profile-item {
    position: relative;
    padding: 8px 13px;
}

.profile-item-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    border: 1px solid rgba(25, 247, 255, 0.28);
    background: rgba(12, 10, 24, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-name {
    font-size: 14px;
    color: var(--text);
    letter-spacing: 0.1em;
}

.profile-meta {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.14em;
}

.profile-badge {
    display: inline-block;
    margin-top: 3px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 43, 214, 0.4);
    color: #ffd9f7;
    background: rgba(255, 43, 214, 0.12);
    font-size: 9px;
    letter-spacing: 0.16em;
}

.profile-item.is-selected {
    box-shadow: 0 0 0 1px rgba(25, 247, 255, 0.28), 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.profile-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.profile-actions-edit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-action {
    margin-top: 0;
    height: 38px;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.profile-name-input {
    margin-bottom: 12px;
}

.profile-avatar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.profile-avatar-option {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(12, 10, 24, 0.9);
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 94px;
}

.profile-avatar-option img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(25, 247, 255, 0.22);
    background: rgba(255, 255, 255, 0.03);
}

.profile-avatar-option span {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.2;
}

.profile-avatar-option.is-selected {
    border-color: rgba(25, 247, 255, 0.7);
    box-shadow: 0 0 0 1px rgba(25, 247, 255, 0.28);
}

.profile-avatar-option.is-focused {
    border-color: rgba(255, 43, 214, 1);
    box-shadow: 0 0 0 1px rgba(255, 43, 214, 0.35);
}

.creds-screen.creds-only .creds-card > *:not(.creds-select) {
    display: none;
}

.creds-screen.creds-only .creds-select {
    display: block;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.creds-screen.auth-only .creds-card > *:not(.auth-panel) {
    display: none;
}

.creds-screen.auth-only .auth-panel {
    display: block;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.creds-screen.profiles-only .creds-card > *:not(.profiles-select) {
    display: none;
}

.creds-screen.profiles-only .profiles-select {
    display: block;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.creds-screen.profile-edit-only .creds-card > *:not(.profile-editor) {
    display: none;
}

.creds-screen.profile-edit-only .profile-editor {
    display: block;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.creds-screen.conn-only .creds-card > *:not(#creds-connectivity) {
    display: none;
}

.creds-screen.conn-only .creds-spinner {
    display: none;
}

.creds-screen.creds-only {
    display: flex;
    align-items: center;
    justify-content: center;
}

.creds-screen.creds-only .creds-card {
    margin: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.creds-screen.profiles-only .creds-card,
.creds-screen.profile-edit-only .creds-card {
    width: 420px;
    height: 470px;
    margin: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.creds-screen.creds-loading .cred-item {
    opacity: 0.65;
}

.creds-bar {
    margin-top: 14px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.creds-bar-fill {
    width: 0%;
    height: 100%;
    background: #ff2bd6;
    transition: width 250ms linear;
}

.creds-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #ff2bd6;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

.creds-hidden {
    display: none;
}

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

.layout {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 100vh;
    position: relative;
    left: 0;
    width: 100%;
}

.side-nav {
    position: absolute;
    left: 20px;
    top: 20px;
    bottom: auto;
    height: 860px;
    width: 360px;
    min-width: 360px;
    background: rgba(8, 7, 14, var(--panel-opacity));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: auto;
    z-index: 3;
    backdrop-filter: none;
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 0s linear 0s;
    will-change: opacity, transform;
}

.side-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(255, 43, 214, 0.2);
}

.side-footer {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(25, 247, 255, 0.14);
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.side-watermark {
    display: none;
}

.android-feature-art {
    display: none;
}

.side-brand h1 {
    margin: 0;
    font-size: 16px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.side-brand p {
    margin: 2px 0 0;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.side-brand .active-cred {
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #d4b35a;
    font-weight: 600;
    text-transform: uppercase;
}

.brand-logo {
    border-radius: 6px;
}

.brand-logo.is-shell-fullscreen {
    cursor: pointer;
}

.side-brand-copy {
    flex: 1;
    padding-left: 2px;
}

.side-link {
    text-align: left;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(12, 10, 20, var(--button-opacity));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.side-link.is-active,
.side-link:hover {
    border-color: rgba(255, 43, 214, 0.7);
}

.system-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.system-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-2);
}

.system {
    display: flex;
    align-items: center;
    gap: 14px;
}

.system-center {
    flex: 1;
    justify-content: center;
}

.system-center-stack {
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.system-center-stack .system-item {
    justify-content: center;
}

.system-right {
    margin-left: auto;
    align-items: flex-end;
    justify-content: flex-end;
    flex-direction: column;
    padding-right: 0;
    text-align: right;
}

.system-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.system-right .system-item {
    width: 100%;
    justify-content: flex-end;
    padding-right: 5px;
}

.system-right .system-item + .system-item {
    margin-top: 6px;
}

.system-icon {
    width: 18px;
    height: 18px;
    color: rgba(247, 215, 123, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.system-icon svg {
    width: 18px;
    height: 18px;
}

.thermo-icon {
    color: rgba(232, 251, 255, 0.8);
}

.weather-icon {
    color: rgba(232, 251, 255, 0.85);
}

.weather-desc {
    font-size: 13px;
    letter-spacing: 0.06em;
    color: rgba(232, 251, 255, 0.7);
}

.weather-item .system-value {
    font-size: 16px;
    letter-spacing: 0.08em;
    color: #e8fbff;
}

.clock-item {
    padding: 6px 12px;
    border-radius: 10px;
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: 130px;
    text-align: center;
}

.clock-item .system-label {
    font-size: 10px;
    letter-spacing: 0.28em;
    color: rgba(170, 200, 220, 0.7);
    display: block;
}

.clock-item .system-value {
    font-size: 20px;
    letter-spacing: 0.18em;
    font-family: "Courier New", monospace;
    color: #f7d77b;
    text-shadow: none;
    display: block;
    position: relative;
}


.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    padding-top: 4px;
    padding-bottom: 4px;
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 7, 14, var(--panel-opacity));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    width: calc(80% - 40px);
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 0s linear 0s;
}

.toast-status {
    position: absolute;
    top: 72px;
    right: 24px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(8, 10, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e8fbff;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 4;
}

.toast-status.visible {
    opacity: 1;
}

.search-box {
    position: relative;
    width: 380px;
    margin-right: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.search-box.active {
    opacity: 1;
    pointer-events: auto;
}
.search-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(25, 247, 255, 0.35);
    background: rgba(12, 10, 24, 0.9);
    color: var(--text);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.search-suggestions {
    position: absolute;
    top: 38px;
    left: 0;
    right: 0;
    background: rgba(12, 10, 24, 0.95);
    border: 1px solid rgba(25, 247, 255, 0.25);
    border-radius: 10px;
    padding: 6px 0;
    display: none;
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 4;
}

.search-suggestions.visible {
    display: block;
}

.search-item {
    padding: 8px 12px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.search-item.is-active {
    background: rgba(255, 43, 214, 0.2);
}

.brand-text {
    display: flex;
    align-items: center;
    gap: 0;
}

.brand-lines {
    display: flex;
    flex-direction: column;
    margin-left: 16px;
}

.topbar-logo {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 4px;
    box-sizing: border-box;
    display: none;
}

.brand-text h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(25, 247, 255, 0.35), 0 0 16px rgba(255, 43, 214, 0.25);
}

.brand-text p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 14px;
}

@keyframes neon-flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.78;
    }
}

.brand-text.is-default h1,
.brand-text.is-default p {
    animation: neon-flicker 2.8s ease-in-out infinite;
}


.player {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.player-frame {
    position: fixed;
    border-radius: 0;
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    inset: 0;
    z-index: 1;
}

 

body.playback-active .player-frame {
    background: #000;
}

.player-frame.is-preview {
    width: 100%;
    height: 100%;
}


.player-frame.is-fullscreen {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    padding: 20px;
}

.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

body.playback-active .video {
    background: #000;
}


.player-meta {
    position: absolute;
    bottom: 18px;
    left: 18px;
    max-width: 60%;
    z-index: 2;
}


.playback-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 84px;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 0 14px rgba(255, 43, 214, 0.6);
    transition: opacity 0.2s ease;
    z-index: 2;
}

.playback-icon.visible {
    opacity: 0.95;
}
.next-episode {
    margin-top: 8px;
    display: none;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 18, 0.85);
    color: #e8fbff;
    font-size: 28px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.next-episode-seconds {
    text-transform: none;
}

.next-episode.visible {
    display: inline-flex;
}

.next-episode-hint {
    margin-left: 14px;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: rgba(232, 251, 255, 0.65);
}


.player-buffering {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    gap: 0;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(25, 247, 255, 0.35);
    background: rgba(12, 10, 24, 0.85);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    z-index: 3;
}

.player-buffering.visible {
    display: flex;
}

.buffering-icon {
    font-size: 16px;
    margin-right: 10px;
    animation: spin 1s linear infinite;
}
.player-meta h2 {
    margin: 0 0 6px;
    font-size: 14px;
    letter-spacing: 0.08em;
}

.player-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}


.player-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: auto;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.preview-controls {
    pointer-events: auto;
}

.fs-controls {
    display: none;
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 200px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(6, 5, 12, var(--panel-opacity));
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: auto;
}

.fs-controls.visible {
    display: block;
}

.touch-fs-btn {
    position: fixed;
    right: calc(env(safe-area-inset-right) + 16px);
    top: calc(env(safe-area-inset-top) + 16px);
    bottom: auto;
    z-index: 20;
    display: none;
}

body.browser-touch-mode .touch-fs-btn {
    display: inline-flex;
}

body.browser-touch-mode:not(.playback-active) .touch-fs-btn {
    display: none;
}

.fs-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.fs-time-current,
.fs-time-total {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    min-width: 52px;
    text-align: center;
}

.fs-progress-bar {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
    cursor: pointer;
}

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

.fs-mute-btn {
    min-width: 92px;
    padding: 8px 10px;
    font-size: 10px;
    letter-spacing: 0.12em;
    cursor: pointer;
}

.fs-stop-btn {
    min-width: 92px;
    padding: 8px 10px;
    font-size: 10px;
    letter-spacing: 0.12em;
    cursor: pointer;
}


.ctrl-btn {
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(12, 10, 24, 0.75);
    border: 1px solid rgba(25, 247, 255, 0.25);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    font-weight: 600;
}

.ctrl-btn.is-primary {
    border-color: rgba(255, 43, 214, 0.7);
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.row-header h3 {
    margin: 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.panel-tag {
    font-size: 11px;
    color: var(--accent-2);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.channel-vertical {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 70vh;
    padding-right: 0;
}

.channel-vertical .row-card {
    margin-bottom: 15px;
}

.channel-vertical .row-card:last-child {
    margin-bottom: 0;
}

.row-card {
    width: 290px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 11px;
    margin-bottom: 0;
    border-radius: 12px;
    border: 1px solid rgba(25, 247, 255, 0.2);
    background: linear-gradient(135deg, rgba(10, 8, 18, 0.94), rgba(255, 43, 214, 0.06), rgba(25, 247, 255, 0.06), rgba(10, 8, 18, 0.94));
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    min-height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
}

#menu-settings .row-card {
    min-height: 60px;
}

.channel-logo {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 3px;
    box-sizing: border-box;
    border-radius: 6px;
    display: none;
}

.favorite-star {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 14px;
    color: var(--accent-3);
    text-shadow: 0 0 6px rgba(255, 210, 74, 0.6);
}

.watched-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(54, 255, 190, 0.2);
    border: 1px solid rgba(54, 255, 190, 0.6);
    color: #bfffe9;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    box-sizing: border-box;
}

.favorite-tag {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.channel-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.side-page {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}


.row-card.is-active {
    border-color: rgba(255, 43, 214, 0.8);
}

.row-card.focusable.is-focused {
    border-width: 2px;
    border-color: rgba(255, 43, 214, 1);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(18, 10, 30, 0.98), rgba(255, 43, 214, 0.14), rgba(25, 247, 255, 0.12), rgba(14, 10, 28, 0.98));
}

.row-card.focusable.is-focused {
    animation: loading-breathe 2.2s ease-in-out infinite;
}

.list-loading {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-align: center;
    border-color: rgba(25, 247, 255, 0.35);
    position: relative;
    overflow: hidden;
}

body.no-anim .list-loading {
    animation: none;
}

@keyframes loading-breathe {
    0% {
        transform: none;
        opacity: 0.96;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), 0 0 0 rgba(255, 43, 214, 0), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    }
    25% {
        transform: none;
        opacity: 0.98;
        box-shadow:
            0 10px 22px rgba(0, 0, 0, 0.42),
            0 0 14px rgba(255, 43, 214, 0.18),
            0 0 6px rgba(25, 247, 255, 0.08),
            inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    }
    50% {
        transform: none;
        opacity: 1;
        box-shadow:
            0 22px 44px rgba(0, 0, 0, 0.58),
            0 0 42px rgba(255, 43, 214, 0.52),
            0 0 18px rgba(25, 247, 255, 0.22),
            inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    75% {
        transform: none;
        opacity: 0.98;
        box-shadow:
            0 10px 22px rgba(0, 0, 0, 0.42),
            0 0 14px rgba(255, 43, 214, 0.18),
            0 0 6px rgba(25, 247, 255, 0.08),
            inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    }
    100% {
        transform: none;
        opacity: 0.96;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), 0 0 0 rgba(255, 43, 214, 0), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    }
}

.list-loading {
    animation: loading-breathe 2.2s ease-in-out infinite;
}

.cred-item {
    position: relative;
    overflow: hidden;
}

.cred-item.is-focused {
    animation: loading-breathe 2.2s ease-in-out infinite;
}

.ch-number {
    font-size: 13px;
    color: var(--accent-3);
    letter-spacing: 0.1em;
}

.ch-name {
    font-size: 15px;
}

.channel-text.keep-watching-text {
    min-width: 0;
}

.keep-watching-text .ch-name {
    display: block;
}

.keep-watching-meta {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.keep-watching-type {
    color: var(--accent-2);
    margin-right: 10px;
}

.keep-watching-new-badge {
    position: absolute;
    top: 5px;
    right: 8px;
    min-width: 56px;
    height: 24px;
    padding: 0 12px 0 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 86, 198, 0.96), rgba(255, 43, 214, 0.92), rgba(25, 247, 255, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff7fe;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 22px;
    text-align: center;
    box-sizing: border-box;
    text-shadow: 0 1px 6px rgba(94, 0, 78, 0.48);
    box-shadow:
        0 10px 24px rgba(255, 43, 214, 0.28),
        0 0 18px rgba(255, 43, 214, 0.34),
        0 0 10px rgba(25, 247, 255, 0.18);
    pointer-events: none;
    overflow: hidden;
    isolation: isolate;
    animation: keep-watching-new-badge-glow 2.6s ease-in-out infinite;
}

.keep-watching-new-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 0.34) 50%, rgba(255, 255, 255, 0) 85%);
    transform: translateX(-130%);
    animation: keep-watching-new-badge-sheen 2.9s ease-in-out infinite;
    z-index: -1;
}

.keep-watching-new-badge::after {
    content: '✦';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -7px;
    color: #ffffff;
    font-size: 12px;
    line-height: 10px;
    text-align: center;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.92),
        0 0 14px rgba(25, 247, 255, 0.42),
        0 0 16px rgba(255, 43, 214, 0.28);
}

@keyframes keep-watching-new-badge-glow {
    0% {
        box-shadow:
            0 8px 18px rgba(255, 43, 214, 0.22),
            0 0 12px rgba(255, 43, 214, 0.22),
            0 0 8px rgba(25, 247, 255, 0.12);
    }
    50% {
        box-shadow:
            0 12px 28px rgba(255, 43, 214, 0.34),
            0 0 24px rgba(255, 43, 214, 0.42),
            0 0 14px rgba(25, 247, 255, 0.22);
    }
    100% {
        box-shadow:
            0 8px 18px rgba(255, 43, 214, 0.22),
            0 0 12px rgba(255, 43, 214, 0.22),
            0 0 8px rgba(25, 247, 255, 0.12);
    }
}

@keyframes keep-watching-new-badge-sheen {
    0%,
    30% {
        transform: translateX(-130%);
    }
    55%,
    100% {
        transform: translateX(130%);
    }
}

.ch-live {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.epg-timeline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 26px;
    overflow: hidden;
}

.epg-segment {
    position: absolute;
    top: 0;
    bottom: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(25, 247, 255, 0.2);
    background: rgba(10, 9, 18, var(--button-opacity));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.epg-loading-icon {
    display: inline-block;
    margin-right: 6px;
    opacity: 0.9;
}

.epg-segment:last-child {
    margin-right: 0;
}

.epg-panel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(8, 7, 14, var(--panel-opacity));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    padding: 26px 16px 16px;
    height: 160px;
    position: absolute;
    left: 400px;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    backdrop-filter: none;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 0s linear 180ms;
}

.epg-panel.is-panel-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}


.epg-track {
    position: relative;
    height: 92px;
    margin-top: 8px;
    overflow: hidden;
}

.epg-ruler {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 22px;
}

.epg-tick {
    position: absolute;
    top: 12px;
    width: 1px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
}

.epg-tick.is-hour {
    height: 18px;
    background: rgba(255, 255, 255, 0.5);
}

.epg-tick-label {
    position: absolute;
    top: 0;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--muted);
    transform: translateX(-50%);
}

.epg-tick-label.is-minute {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.55);
}

.epg-now-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 43, 214, 0.9);
    z-index: 2;
}

.details-panel {
    transform: translateY(10px);
}

.details-cover-panel {
    position: absolute;
    right: 20px;
    left: auto;
    width: 358px;
    height: 536px;
    max-height: calc(100vh - 200px);
    box-sizing: border-box;
    bottom: 265px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 7, 14, var(--panel-opacity));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 360ms ease-out, transform 360ms ease-out, visibility 0s linear 360ms;
}

.details-cover-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
}

.details-synopsis {
    margin: 6px 0 10px;
    max-width: calc(100% - 150px);
}

.details-synopsis-title {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.details-synopsis-text {
    font-size: 14px;
    line-height: 1.5;
    max-height: 42px;
    overflow: hidden;
}

.details-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 8px;
    max-width: calc(100% - 150px);
}

.details-meta-item {
    display: flex;
    font-size: 12px;
    margin-right: 26px;
    margin-bottom: 6px;
    align-items: center;
}

.details-meta-item.meta-break {
    width: 100%;
}

.details-meta-label {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 8px;
    display: inline-block;
}

.details-meta-value {
    color: var(--text);
}

.details-rating-stars {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--accent-2);
}

.details-rating-stars.low {
    color: var(--accent);
}

.details-cover {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: contain;
    background: #000;
    display: block;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.setting-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.setting-value {
    font-size: 14px;
    color: var(--text);
    letter-spacing: 0.08em;
}

.side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.side-panel {
    display: none;
}

.side-panel.active {
    display: block;
}

body.android-touch-shell .side-panel.active {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

body.desktop-scroll-shell .side-panel.active {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

body.desktop-scroll-shell .app-container,
body.desktop-scroll-shell .layout,
body.desktop-scroll-shell .main,
body.tv-paged-shell .app-container,
body.tv-paged-shell .layout,
body.tv-paged-shell .main {
    min-height: 100%;
    height: 100%;
}

body.desktop-scroll-shell .main,
body.tv-paged-shell .main {
    position: relative;
}

body.desktop-scroll-shell .side-watermark,
body.tv-paged-shell .side-watermark {
    position: absolute;
    left: 20px;
    bottom: 20px;
    width: 360px;
    height: 160px;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
    filter: grayscale(0.78) saturate(0.86) contrast(1.04) brightness(0.96);
    mix-blend-mode: normal;
    overflow: hidden;
}

body.desktop-scroll-shell .side-watermark.is-visible,
body.tv-paged-shell .side-watermark.is-visible {
    display: flex;
}

body.desktop-scroll-shell .side-watermark::before,
body.tv-paged-shell .side-watermark::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 50%, rgba(25, 247, 255, 0.05), rgba(25, 247, 255, 0) 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(8, 7, 14, 0.14));
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 18%, rgba(0, 0, 0, 0.95) 82%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 18%, rgba(0, 0, 0, 0.95) 82%, transparent 100%);
}

body.desktop-scroll-shell .side-watermark-image,
body.tv-paged-shell .side-watermark-image {
    position: relative;
    z-index: 1;
    width: 84%;
    height: 84%;
    object-fit: contain;
    object-position: center;
    opacity: 0.92;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 22%, rgba(0, 0, 0, 0.92) 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 22%, rgba(0, 0, 0, 0.92) 78%, transparent 100%);
}

body.desktop-scroll-shell .side-watermark.is-logo,
body.tv-paged-shell .side-watermark.is-logo {
    filter: grayscale(0.86) saturate(0.74) contrast(1.18) brightness(0.84);
    mix-blend-mode: multiply;
}

body.desktop-scroll-shell .side-watermark.is-logo::before,
body.tv-paged-shell .side-watermark.is-logo::before {
    background:
        radial-gradient(circle at 50% 50%, rgba(25, 247, 255, 0.04), rgba(25, 247, 255, 0) 62%),
        linear-gradient(180deg, rgba(8, 7, 14, 0.06), rgba(8, 7, 14, 0.2));
}

body.desktop-scroll-shell .side-watermark.is-logo .side-watermark-image,
body.tv-paged-shell .side-watermark.is-logo .side-watermark-image {
    opacity: 0.9;
}

body.desktop-scroll-shell .side-watermark.is-poster .side-watermark-image,
body.tv-paged-shell .side-watermark.is-poster .side-watermark-image {
    object-fit: cover;
}

body.android-touch-shell .side-watermark,
body.android-touch-shell .side-watermark.is-visible {
    display: none !important;
}

body.android-touch-shell .android-feature-art {
    position: absolute;
    right: 420px;
    bottom: 470px;
    width: 250px;
    height: 356px;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 7, 14, 0.34);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

body.android-touch-shell .android-feature-art.is-visible {
    display: flex;
}

body.android-touch-shell .android-feature-art-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.98;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-item {
    text-align: left;
    width: 290px;
    margin-left: auto;
    margin-right: auto;
    padding: 7px 12px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid rgba(25, 247, 255, 0.2);
    background: linear-gradient(135deg, rgba(10, 8, 18, 0.94), rgba(255, 43, 214, 0.06), rgba(25, 247, 255, 0.06), rgba(10, 8, 18, 0.94));
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.menu-item.menu-item-page-tail {
    margin-bottom: 0;
}

.menu-item.menu-item-page-hidden {
    display: none !important;
}

.menu-text {
    display: inline-block;
}

.menu-icon {
    width: 17px;
    height: 17px;
    opacity: 0.9;
}

.menu-item.is-focused {
    border-color: rgba(255, 43, 214, 1);
    background: linear-gradient(135deg, rgba(18, 10, 30, 0.98), rgba(255, 43, 214, 0.14), rgba(25, 247, 255, 0.12), rgba(14, 10, 28, 0.98));
}

.menu-item.is-focused {
    animation: loading-breathe 2.2s ease-in-out infinite;
}

.epg-segment {
    min-width: 100px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(25, 247, 255, 0.2);
    background: linear-gradient(135deg, rgba(10, 8, 18, 0.94), rgba(255, 43, 214, 0.06), rgba(25, 247, 255, 0.06), rgba(10, 8, 18, 0.94));
}

.epg-segment.is-live {
    border-color: rgba(255, 43, 214, 0.7);
}

.epg-title {
    margin: 0;
    font-size: 13px;
}

.epg-time {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
}

.epg-status {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-2);
}

.focusable.is-focused {
    outline: none;
    border-width: 2px;
    border-color: rgba(255, 43, 214, 1);
}

.footer {
    display: none;
}


.exit-screen {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #000;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.exit-screen.visible {
    display: flex;
}

.unlock-screen {
    z-index: 50;
}

.unlock-screen.flash {
    background: #fff;
}

.unlock-screen.flash .exit-card {
    color: #000;
}

.unlock-screen .exit-card {
    max-width: 520px;
}

.unlock-progress {
    margin-top: 10px;
    letter-spacing: 0.5em;
    font-size: 16px;
    color: rgba(232, 251, 255, 0.75);
}

body.unlock-mode .app-container {
    opacity: 0.2;
}

.exit-card {
    width: 70%;
    max-width: 720px;
    padding: 16px 10px;
    text-align: center;
    background: transparent;
    border: none;
}

.exit-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.exit-logo {
    display: block;
    width: 440px;
    max-width: 70%;
    margin: -196px auto 16px;
    animation: exit-logo-pulse 3.2s ease-in-out infinite;
}

.exit-card p {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.12em;
}

.exit-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
}

@keyframes exit-logo-pulse {
    0% {
        opacity: 0.92;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
    100% {
        opacity: 0.92;
        transform: scale(0.95);
    }
}

body.exit-mode {
    background: #000;
}

body.exit-mode .app,
body.exit-mode .footer,
body.exit-mode .creds-screen {
    display: none;
}


@media (max-width: 980px) {
    .layout {
        flex-direction: column;
    }

    .side-nav {
        width: 100%;
        min-width: 0;
    }

    .player-overlay {
        position: relative;
        width: 100%;
        bottom: auto;
        right: auto;
        margin-top: 10px;
    }

    .controls {
        justify-content: flex-start;
    }
}


body.fullscreen-mode {
    padding: 0;
    background: #07040f;
}

body.fullscreen-mode.playback-active {
    background: #000;
}


body.fullscreen-mode .side-nav,
body.fullscreen-mode .rows,
body.fullscreen-mode .now-playing {
    display: none;
}

/* During idle-hide we keep the main menu in layout so the slide-out can animate
   before the playback fullscreen state effectively takes over. */
body.fullscreen-mode.idle-ui-hidden .side-nav {
    display: flex;
}

body.fullscreen-mode.tizen-ui-transitioning .side-nav {
    display: flex;
}

body.fullscreen-mode .layout {
    gap: 0;
}

body.fullscreen-mode .main {
    width: 100%;
}

body.fullscreen-mode .player {
    width: 100%;
}

body.fullscreen-mode #stream-resolution {
    display: none;
}

body.fullscreen-mode .player-meta {
    display: block;
}

body.fullscreen-mode .player-frame {
    border: none;
    padding: 0;
}

body.fullscreen-mode .preview-controls {
    display: none;
}

body.fullscreen-mode .player-overlay {
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

body.desktop-scroll-shell.fullscreen-mode #app-scale-root,
body.tv-paged-shell.fullscreen-mode #app-scale-root {
    background: #000;
}

body.desktop-scroll-shell.fullscreen-mode .app-container,
body.tv-paged-shell.fullscreen-mode .app-container {
    left: 0;
    right: 0;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
}

body.fullscreen-mode.playback-active.vod-playback-active .side-watermark.is-visible {
    display: none;
}

body.fullscreen-mode.playback-active.vod-playback-active .details-cover-panel.is-visible {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.idle-ui-hidden .side-watermark,
body.idle-ui-hidden .android-feature-art,
body.idle-ui-hidden .player-overlay {
    display: none;
}

body.idle-ui-hidden .side-nav {
    opacity: 0;
    transform: translateX(-180px);
    visibility: hidden;
    pointer-events: none;
    transition-delay: 0s, 0s, 180ms;
}

body.idle-ui-hidden .topbar {
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    transition-delay: 0s, 0s, 180ms;
}

body.idle-ui-hidden .side-watermark.is-visible {
    display: none;
}

body.idle-ui-hidden .android-feature-art.is-visible {
    display: none;
}

body.idle-ui-hidden .details-cover-panel.is-visible {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition-delay: 0s, 0s, 360ms;
}

body.ios-browser .app-container {
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
}

/* Fire Stick in 720p/HD: compact layout to avoid clipping */
body.firestick-hd .side-nav {
    left: 12px;
    top: 12px;
    width: 300px;
    min-width: 300px;
    height: 860px;
    padding: 12px;
    gap: 8px;
}

body.firestick-hd .topbar {
    top: 12px;
    right: 12px;
    width: calc(100% - 336px);
    padding: 10px 12px;
}

body.firestick-hd .menu-item,
body.firestick-hd .row-card {
    width: 248px;
    margin-bottom: 15px;
}

body.firestick-hd .menu-item {
    padding: 9px 10px;
    font-size: 12px;
}

body.firestick-hd .menu-icon {
    width: 16px;
    height: 16px;
}

body.firestick-hd .row-card {
    min-height: 68px;
    padding: 9px;
}

body.firestick-hd #menu-settings .row-card {
    min-height: 62px;
}

body.firestick-hd .channel-logo {
    width: 30px;
    height: 30px;
}

body.firestick-hd .ch-number {
    font-size: 12px;
}

body.firestick-hd .ch-name {
    font-size: 13px;
}

body.firestick-hd .ch-live {
    font-size: 9px;
    letter-spacing: 0.14em;
}

body.firestick-hd .topbar-logo {
    width: 34px;
    height: 34px;
}

body.firestick-hd .brand-lines {
    margin-left: 10px;
}

body.firestick-hd .brand-text h1 {
    font-size: 18px;
}

body.firestick-hd .brand-text p {
    font-size: 11px;
}

body.firestick-hd .search-box {
    width: 220px;
}

body.firestick-hd .channel-vertical {
    gap: 0;
    max-height: calc(100% - 230px);
}

body.firestick-hd .channel-vertical .row-card {
    margin-bottom: 15px;
}

body.firestick-hd .channel-vertical .row-card:last-child {
    margin-bottom: 0;
}

body.firestick-hd .epg-panel {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 336px);
    height: 132px;
    padding: 16px 12px 12px;
}

body.firestick-hd .epg-track {
    height: 74px;
}

body.firestick-hd .details-cover-panel {
    width: 320px;
    height: 430px;
    max-height: calc(100% - 210px);
    bottom: 210px;
}

body.firestick-hd .details-synopsis-text {
    font-size: 12px;
    max-height: 34px;
}

body.firestick-hd .details-meta-item {
    font-size: 11px;
    margin-right: 16px;
}

/* In Android/Fire Stick, keep app layout tied to the scaled root instead of viewport vh units. */
body.firestick #app-scale-root .app-container,
body.firestick #app-scale-root .layout,
body.firestick #app-scale-root .main {
    min-height: 100%;
    height: 100%;
}

body.firestick #app-scale-root .player {
    min-height: 100%;
    height: 100%;
}

body.firestick #app-scale-root .player-frame,
body.firestick #app-scale-root .player-frame.is-preview,
body.firestick #app-scale-root .player-frame.is-fullscreen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
}

/* Tizen keeps the video surface stable if the app shell goes transparent
   during playback, but the player still needs to stay viewport-sized. */

body.tizen-shell #app-scale-root .app-container,
body.tizen-shell #app-scale-root .layout,
body.tizen-shell #app-scale-root .main {
    min-height: 100%;
    height: 100%;
}

body.tizen-shell #app-scale-root .main {
    position: relative;
}

body.tizen-shell #app-scale-root .player {
    min-height: 100%;
    height: 100%;
    position: static;
}

body.tizen-shell #app-scale-root .player-frame,
body.tizen-shell #app-scale-root .player-frame.is-preview,
body.tizen-shell #app-scale-root .player-frame.is-fullscreen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
}

body.tizen-shell.playback-active #app-scale-root,
body.tizen-shell.playback-active .app-container,
body.tizen-shell.playback-active .layout,
body.tizen-shell.playback-active .main,
body.tizen-shell.playback-active .player,
body.tizen-shell.playback-active .player-frame,
body.tizen-shell.playback-active .video {
    background: transparent !important;
}

body.tizen-shell.playback-active .app-container {
    left: 0;
    right: 0;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
}

body.tizen-shell.playback-active #app-scale-root .main {
    padding-top: 0;
    padding-bottom: 0;
}

body.android-touch-shell #app-scale-root .app-container,
body.android-touch-shell #app-scale-root .layout,
body.android-touch-shell #app-scale-root .main {
    min-height: 100%;
    height: 100%;
}

body.android-touch-shell #app-scale-root .main {
    position: relative;
}

body.android-touch-shell .side-nav {
    top: 20px;
    bottom: auto;
    height: 810px;
    width: 360px;
    min-width: 360px;
    max-width: 360px;
    overflow: hidden;
    padding-bottom: 16px;
}

body.android-touch-shell .side-panel.active {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

body.android-touch-shell .channel-vertical,
body.android-touch-shell .menu-list {
    flex: 1 1 auto;
    max-height: none;
}

body.desktop-scroll-shell .channel-vertical,
body.desktop-scroll-shell .menu-list {
    flex: 1 1 auto;
    min-height: 0;
}

body.desktop-scroll-shell #menu-main .menu-list {
    flex: 0 0 auto;
    max-height: 574px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.desktop-scroll-shell #menu-main .menu-list::-webkit-scrollbar {
    display: none;
}

body.android-touch-shell #menu-main .menu-list {
    flex: 0 0 auto;
    max-height: 574px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

body.android-touch-shell #menu-main .menu-list::-webkit-scrollbar {
    display: none;
}

body.android-touch-shell #category-list,
body.android-touch-shell #series-category-list,
body.android-touch-shell #movie-category-list,
body.android-touch-shell #channel-list,
body.android-touch-shell #series-list,
body.android-touch-shell #watched-series-list,
body.android-touch-shell #season-list,
body.android-touch-shell #episode-list,
body.android-touch-shell #movie-list,
body.android-touch-shell #camera-list,
body.android-touch-shell #favorites-list,
body.desktop-scroll-shell #category-list,
body.desktop-scroll-shell #series-category-list,
body.desktop-scroll-shell #movie-category-list,
body.desktop-scroll-shell #channel-list,
body.desktop-scroll-shell #series-list,
body.desktop-scroll-shell #watched-series-list,
body.desktop-scroll-shell #season-list,
body.desktop-scroll-shell #episode-list,
body.desktop-scroll-shell #movie-list,
body.desktop-scroll-shell #camera-list,
body.desktop-scroll-shell #favorites-list {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

body.android-touch-shell #category-list::-webkit-scrollbar,
body.android-touch-shell #series-category-list::-webkit-scrollbar,
body.android-touch-shell #movie-category-list::-webkit-scrollbar,
body.android-touch-shell #channel-list::-webkit-scrollbar,
body.android-touch-shell #series-list::-webkit-scrollbar,
body.android-touch-shell #watched-series-list::-webkit-scrollbar,
body.android-touch-shell #season-list::-webkit-scrollbar,
body.android-touch-shell #episode-list::-webkit-scrollbar,
body.android-touch-shell #movie-list::-webkit-scrollbar,
body.android-touch-shell #camera-list::-webkit-scrollbar,
body.android-touch-shell #favorites-list::-webkit-scrollbar,
body.desktop-scroll-shell #category-list::-webkit-scrollbar,
body.desktop-scroll-shell #series-category-list::-webkit-scrollbar,
body.desktop-scroll-shell #movie-category-list::-webkit-scrollbar,
body.desktop-scroll-shell #channel-list::-webkit-scrollbar,
body.desktop-scroll-shell #series-list::-webkit-scrollbar,
body.desktop-scroll-shell #watched-series-list::-webkit-scrollbar,
body.desktop-scroll-shell #season-list::-webkit-scrollbar,
body.desktop-scroll-shell #episode-list::-webkit-scrollbar,
body.desktop-scroll-shell #movie-list::-webkit-scrollbar,
body.desktop-scroll-shell #camera-list::-webkit-scrollbar,
body.desktop-scroll-shell #favorites-list::-webkit-scrollbar {
    display: none;
}

body.desktop-scroll-shell #menu-categories .side-page,
body.desktop-scroll-shell #menu-series-categories .side-page,
body.desktop-scroll-shell #menu-movies-categories .side-page,
body.desktop-scroll-shell #menu-channels .side-page,
body.desktop-scroll-shell #menu-series-list .side-page,
body.desktop-scroll-shell #menu-series-watched .side-page,
body.desktop-scroll-shell #menu-series-seasons .side-page,
body.desktop-scroll-shell #menu-series-episodes .side-page,
body.desktop-scroll-shell #menu-movies-list .side-page,
body.desktop-scroll-shell #menu-cameras .side-page {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

body.android-touch-shell #menu-categories .side-page,
body.android-touch-shell #menu-series-categories .side-page,
body.android-touch-shell #menu-movies-categories .side-page,
body.android-touch-shell #menu-channels .side-page,
body.android-touch-shell #menu-series-list .side-page,
body.android-touch-shell #menu-series-watched .side-page,
body.android-touch-shell #menu-series-seasons .side-page,
body.android-touch-shell #menu-series-episodes .side-page,
body.android-touch-shell #menu-movies-list .side-page,
body.android-touch-shell #menu-cameras .side-page {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

body.android-touch-shell #menu-categories .side-page .system-label,
body.android-touch-shell #menu-series-categories .side-page .system-label,
body.android-touch-shell #menu-movies-categories .side-page .system-label,
body.android-touch-shell #menu-channels .side-page .system-label,
body.android-touch-shell #menu-series-list .side-page .system-label,
body.android-touch-shell #menu-series-watched .side-page .system-label,
body.android-touch-shell #menu-series-seasons .side-page .system-label,
body.android-touch-shell #menu-series-episodes .side-page .system-label,
body.android-touch-shell #menu-movies-list .side-page .system-label,
body.android-touch-shell #menu-cameras .side-page .system-label,
body.android-touch-shell #menu-categories .side-page .system-value,
body.android-touch-shell #menu-series-categories .side-page .system-value,
body.android-touch-shell #menu-movies-categories .side-page .system-value,
body.android-touch-shell #menu-channels .side-page .system-value,
body.android-touch-shell #menu-series-list .side-page .system-value,
body.android-touch-shell #menu-series-watched .side-page .system-value,
body.android-touch-shell #menu-series-seasons .side-page .system-value,
body.android-touch-shell #menu-series-episodes .side-page .system-value,
body.android-touch-shell #menu-movies-list .side-page .system-value,
body.android-touch-shell #menu-cameras .side-page .system-value {
    display: none !important;
}

body.android-touch-shell .topbar {
    width: calc(100% - 420px);
    right: 20px;
}

body.android-touch-shell #details-panel {
    position: fixed;
    left: 400px;
    right: 20px;
    height: 160px;
    bottom: 20px;
    padding: 26px 16px 16px;
}

body.android-touch-shell .details-cover-panel {
    display: none !important;
}

body.android-touch-shell .details-cover {
    object-fit: cover;
}

body.android-touch-shell .details-synopsis,
body.android-touch-shell .details-meta {
    max-width: none;
}

body.android-touch-shell .details-synopsis-text {
    max-height: 42px;
}

body.android-touch-shell .menu-list {
    align-items: stretch;
}

body.android-touch-shell .menu-item,
body.android-touch-shell .row-card {
    width: 280px;
}

body.android-touch-shell .android-touch-nav-btn {
    display: inline-flex;
    position: absolute;
    width: 62px;
    min-width: 62px;
    height: 62px;
    flex: 0 0 62px;
}

body.android-touch-shell .side-footer {
    display: flex;
    position: absolute;
    left: 20px;
    bottom: 20px;
    width: 360px;
    height: 176px;
    margin: 0;
    padding: 16px 18px 18px;
    border-radius: 24px;
    border-top: 0;
    background:
        radial-gradient(circle at 72% 34%, rgba(25, 247, 255, 0.12), transparent 36%),
        radial-gradient(circle at 26% 16%, rgba(255, 48, 201, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(14, 18, 32, 0.94), rgba(7, 11, 22, 0.98));
    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.46),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 7;
}

body.android-touch-shell .android-touch-back-btn {
    left: 18px;
    top: 16px;
    width: 96px;
    min-width: 96px;
    height: 48px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

body.android-touch-shell .android-touch-dpad {
    position: absolute;
    right: 18px;
    top: 15px;
    width: 196px;
    height: 146px;
}

body.android-touch-shell .android-touch-dpad::before {
    content: '';
    position: absolute;
    inset: 20px 16px 10px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.android-touch-shell .android-touch-up-btn {
    left: 67px;
    top: 0;
}

body.android-touch-shell .android-touch-left-btn {
    left: 0;
    top: 42px;
}

body.android-touch-shell .android-touch-ok-btn {
    left: 67px;
    top: 42px;
    width: 68px;
    min-width: 68px;
    height: 68px;
    border-radius: 22px;
}

body.android-touch-shell .android-touch-down-btn {
    left: 67px;
    top: 84px;
}

body.android-touch-shell .android-touch-right-btn {
    left: 134px;
    top: 42px;
}

body.android-touch-shell.playback-active .android-touch-nav-btn,
body.android-touch-shell.fullscreen-mode .android-touch-nav-btn,
body.android-touch-shell .android-touch-nav-btn.is-hidden,
body.android-touch-shell.playback-active .side-footer,
body.android-touch-shell.fullscreen-mode .side-footer,
body.android-touch-shell .side-footer.is-hidden,
body.android-touch-shell .android-touch-back-edge,
body.android-touch-shell .android-touch-back-edge.is-hidden {
    display: none;
}

body.android-touch-shell:not(.playback-active) .player-frame {
    background-color: #02050a;
    background-image:
        linear-gradient(135deg, #158aa8 0%, #121e4a 45%, #02050a 80%),
        radial-gradient(circle at 18% 16%, rgba(25, 247, 255, 0.2), transparent 30%),
        linear-gradient(90deg, rgba(21, 138, 168, 0.38) 0%, rgba(21, 138, 168, 0.18) 18%, rgba(18, 30, 74, 0.08) 34%, rgba(2, 5, 10, 0) 54%),
        linear-gradient(135deg, #158aa8 0%, #121e4a 45%, #02050a 80%);
    background-repeat: no-repeat;
    background-size: 100% 100%, 1920px 1080px, 1920px 1080px, 1920px 1080px;
    background-position: left top, left top, left top, left top;
}

body.android-touch-shell:not(.playback-active) .video {
    opacity: 0;
    pointer-events: none;
}

body.android-touch-shell:not(.playback-active) .playback-icon,
body.android-touch-shell:not(.playback-active) .player-buffering,
body.android-touch-shell:not(.playback-active) #audio-toast,
body.android-touch-shell:not(.playback-active) #video-toast,
body.android-touch-shell:not(.playback-active) #player-toast {
    display: none !important;
    opacity: 0 !important;
}
