:root {
    --bg-dark: #050a15;
    --hud-bg: rgba(8, 15, 30, 0.85);
    --hud-border: rgba(255, 255, 255, 0.1);
    --accent: #00e0ff;
    --accent-glow: rgba(0, 224, 255, 0.6);
    --accent-red: #ff3366;
    --text-primary: #ffffff;
    --text-secondary: #8ca2bf;
    --overlay-z: 100;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    overflow: hidden;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    user-select: none;
}

.tv-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

#player {
    width: 100vw;
    height: 100vh;
    transform: scale(1.2);
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.15) 50%,
            rgba(0, 0, 0, 0.15));
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.8;
    display: none;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.65%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22 opacity=%220.15%22/%3E%3C/svg%3E');
    z-index: 6;
    pointer-events: none;
    display: none;
}

.vhs-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
    background: linear-gradient(rgba(255, 0, 0, 0.05) 0%, rgba(0, 255, 0, 0.02) 50%, rgba(0, 0, 255, 0.05) 100%);
    mix-blend-mode: screen;
    z-index: 5;
    pointer-events: none;
    animation: vhs-rgb 3s infinite linear;
    display: none;
}

@keyframes vhs-rgb {
    0% {
        transform: translateY(0) scale(1.001);
    }

    10% {
        transform: translateY(2px) scale(1.0);
    }

    100% {
        transform: translateY(0) scale(1.001);
    }
}

/* Look: Clean */
body.look-clean #player {
    transform: scale(1.0) !important;
    filter: none;
}

body.look-clean .scanlines,
body.look-clean .vhs-filter,
body.look-clean .noise-overlay {
    display: none;
}

/* Look: Retro */
body.look-retro #player {
    transform: scale(1.4) !important;
    filter: contrast(1.25) brightness(1.1) saturate(1.3) sepia(0.15) drop-shadow(3px 0px 0px rgba(255, 0, 80, 0.4)) drop-shadow(-3px 0px 0px rgba(0, 255, 255, 0.3));
}

body.look-retro .scanlines {
    display: block;
    opacity: 0.4;
    pointer-events: none;
}

body.look-retro .noise-overlay {
    display: block;
    opacity: 0.15;
    pointer-events: none;
}

body.look-retro .vhs-filter {
    display: block;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    z-index: 80;
}

body.look-retro,
body.look-retro *:not(i) {
    font-family: Arial, sans-serif !important;
}

/* Retro Bloom Effect Overlay */
body.look-retro::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: inherit;
    backdrop-filter: brightness(1.2) blur(8px);
    mask-image: radial-gradient(circle, transparent 20%, black 80%);
    -webkit-backdrop-filter: brightness(1.2) blur(8px);
    pointer-events: none;
    z-index: 75;
    opacity: 0.3;
}

/* Look: Y2K */
body.look-y2k #player {
    transform: scale(1.4) !important;
    filter: contrast(1.1) saturate(1.2);
}

body.look-y2k .vhs-filter {
    display: block;
    opacity: 0.8;
}

body.look-y2k .scanlines {
    display: block;
    opacity: 0.5;
}

body.look-y2k .noise-overlay {
    display: none;
}

/* Look: B&W Nostalgia */
body.look-bw #player {
    transform: scale(1.4) !important;
    filter: grayscale(1) contrast(1.8) brightness(1.2);
    animation: bw-shake 0.1s infinite ease-in-out;
}

body.look-bw .scanlines {
    display: block;
    opacity: 0.7;
    background-size: 100% 12px;
    pointer-events: none;
}

body.look-bw .noise-overlay {
    display: block;
    opacity: 0.5;
    animation: flicker 0.1s infinite;
    pointer-events: none;
}

body.look-bw .vhs-filter {
    display: block;
    background: linear-gradient(rgba(0, 0, 0, 0.4) 50%, rgba(18, 16, 16, 0) 50%);
    background-size: 100% 10px;
    opacity: 0.6;
    pointer-events: none;
}

body.look-bw,
body.look-bw *:not(i) {
    font-family: 'Times New Roman', Times, serif !important;
}

@keyframes bw-shake {
    0% {
        transform: scale(1.4) translate(0, 0);
    }

    25% {
        transform: scale(1.4) translate(-2px, 1px);
    }

    50% {
        transform: scale(1.4) translate(1px, -2px);
    }

    75% {
        transform: scale(1.4) translate(-1px, 1.5px);
    }

    100% {
        transform: scale(1.4) translate(0, 0);
    }
}

@keyframes flicker {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0.3;
    }
}

/* Custom VCR Font Re-Import for Y2K Mode */
@font-face {
    font-family: 'VCR';
    src: url('assets/fonts/vcr.ttf') format('truetype');
}

body.look-y2k,
body.look-y2k *:not(i) {
    font-family: 'VCR', sans-serif !important;
    text-transform: uppercase !important;
}

#tv-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

#tv-static.active {
    opacity: 1;
}

.tv-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--overlay-z);
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.logo {
    position: absolute;
    top: 35px;
    right: 45px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    background: var(--hud-bg);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--hud-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
}

.logo-kratex {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.logo-tv {
    color: var(--accent-red);
    text-shadow: 0 0 15px rgba(255, 51, 102, 0.6);
}

.info-banner {
    position: absolute;
    bottom: 50px;
    left: 50px;
    width: calc(100% - 100px);
    max-width: 900px;
    height: auto;
    min-height: 90px;
    background: var(--hud-bg);
    border-top: 3px solid var(--accent);
    display: flex;
    align-items: center;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.info-banner.hidden {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
}

.channel-num {
    background: linear-gradient(135deg, #005f8f, var(--accent));
    color: white;
    padding: 0 25px;
    height: 100%;
    font-size: 28px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
}

.program-details {
    padding: 0 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.program-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.2;
    width: 100%;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.program-tags {
    display: flex;
    align-items: center;
    gap: 12px;
}

.program-category {
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-status {
    font-size: 13px;
    color: #20e070;
    font-weight: 700;
    letter-spacing: 1px;
}

.remote-controls {
    position: absolute;
    bottom: 120px;
    right: 110px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 110;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.remote-controls.hidden {
    display: none;
}

.floating-actions {
    position: absolute;
    bottom: 50px;
    right: 110px;
    display: flex;
    gap: 15px;
    z-index: 105;
    pointer-events: auto;
}

.floating-btn {
    width: 60px;
    height: 60px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.floating-btn:hover {
    color: white;
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.keyboard-hints {
    position: absolute;
    top: 50px;
    left: 50px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 20px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    pointer-events: none;
    z-index: 100;
}

.remote-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: -10px;
    margin-left: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.volume-controls,
.channel-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.minimal-controls-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Physical Hardware UI - Info Banner */
.retro-info-banner {
    background: #0d121f;
    border: 8px solid #080c16;
    border-radius: 24px;
    padding: 18px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.9),
        inset 0 2px 5px rgba(255, 255, 255, 0.05),
        0 0 0 2px #1a2233;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 15px;
    max-width: 600px;
}

.retro-details {
    background: #020408;
    /* The Inset LCD Area */
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #141a29;
    box-shadow:
        inset 5px 5px 15px rgba(0, 0, 0, 1),
        1px 1px 1px rgba(255, 255, 255, 0.05);
    flex-grow: 1;
}

.program-title {
    margin-bottom: 5px !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.3) !important;
}

.program-desc {
    color: #4b5d78 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
}

.retro-btn,
.open-video-btn {
    background: radial-gradient(circle at 30% 30%, #222b3d 0%, #0d121f 100%) !important;
    border: 4px solid #080c16 !important;
    border-radius: 12px !important;
    color: #5d708a !important;
    padding: 12px 18px;
    font-weight: 800 !important;
    font-size: 10px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.1) !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.retro-btn:hover,
.open-video-btn:hover {
    color: #ffffff !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

.retro-btn:active,
.open-video-btn:active {
    transform: translateY(3px);
    box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.1s ease;
}

/* Physical Remote & Floating Buttons */
.remote-controls {
    background: #0d121f;
    border: 8px solid #080c16;
    border-radius: 35px;
    padding: 25px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.9),
        0 0 0 2px #1a2233;
}

.remote-btn,
.minimal-btn {
    background: radial-gradient(circle at 30% 30%, #222b3d 0%, #0d121f 100%) !important;
    border: 4px solid #080c16 !important;
    border-radius: 12px !important;
    color: #5d708a !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    width: 60px !important;
    height: 48px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remote-btn:hover,
.minimal-btn:hover {
    color: #ffffff !important;
    border-color: #1a2233 !important;
    transform: translateY(-2px);
}

.remote-btn:active,
.minimal-btn:active {
    transform: translateY(3px);
    box-shadow: inset 3px 3px 10px rgba(0, 0, 0, 0.8) !important;
}

.floating-btn {
    background: radial-gradient(circle at 30% 30%, #222b3d 0%, #0d121f 100%);
    border: 4px solid #080c16;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    color: #5d708a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.1);
}


.power-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.power-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.power-btn {
    background: radial-gradient(circle at 30% 30%, #1a2233 0%, #080c16 100%);
    border: 8px solid #0d121f;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 0 0 2px #05080f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 145px;
    height: 145px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    overflow: hidden;
}

/* Physical concentric ring texture */
.power-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-radial-gradient(circle at center, transparent 0, transparent 1px, rgba(0, 0, 0, 0.05) 1px, rgba(0, 0, 0, 0.05) 2px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.power-symbol {
    background: #04060b;
    padding: 12px;
    border-radius: 50%;
    margin-bottom: 8px;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.6), 1px 1px 1px rgba(255, 255, 255, 0.05);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.power-symbol svg {
    color: #2d3b52;
    transition: all 0.3s ease;
}

.power-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
    color: #2d3b52;
    z-index: 2;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

/* Hardware Status LED */
.power-led {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3d0000;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
}

.power-btn:hover {
    border-color: #121929;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 1), 0 0 0 2px #05080f;
}

.power-btn:hover .power-symbol {
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 224, 255, 0.2);
}

.power-btn:hover .power-symbol svg {
    color: #00e0ff;
    filter: drop-shadow(0 0 8px rgba(0, 224, 255, 0.6));
}

.power-btn:hover .power-label {
    color: #ffffff;
}

.power-btn:hover .power-led {
    background: #ff0000;
    box-shadow: 0 0 12px #ff0000, 0 0 20px rgba(255, 0, 0, 0.4);
}

.power-btn:active {
    transform: translateY(4px) scale(0.97);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 1), inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 2px #05080f;
    transition: all 0.1s ease;
}


/* Ticker Styles */
.ticker-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000000;
    color: white;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    z-index: 150;
    border-top: 2px solid white;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 60s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Landing Content Styles (Artistic TV Aesthetic) */
.landing-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.tv-bezel {
    position: relative;
    padding: 60px;
    background: #080c16;
    border: 3px solid #141a29;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.9), inset 0 0 30px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    width: 90%;
    transition: all 0.5s ease;
}

.landing-logo {
    max-width: 160px;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 10px rgba(0, 224, 255, 0.2));
}

.landing-description {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    line-height: 1.5;
    color: #8ca2bf;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.landing-description strong {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 900;
}

.primary-links {
    display: flex;
    gap: 25px;
    margin-bottom: 45px;
    flex-wrap: wrap;
    justify-content: center;
}

.primary-links a {
    color: #5d708a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.primary-links a:hover {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

.power-core {
    margin-bottom: 45px;
}

.power-btn span {
    margin-top: 15px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #5d708a;
    transition: all 0.3s ease;
}

.power-btn:hover span {
    color: var(--accent);
}

.social-icon-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.social-icon-grid a {
    color: #405066;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon-grid a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.social-icon-grid .divider {
    width: 1px;
    height: 18px;
    background: #1e283d;
    margin: 0 5px;
}

/* TV Logo Image Wrapper */
.logo {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 100;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

/* Open Video Button */
.open-video-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    margin: 0 20px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.open-video-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

.category-btn {
    width: 100px !important;
    font-size: 14px !important;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .swipe-hint {
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(255, 255, 255, 0.4);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        pointer-events: none;
        z-index: 100;
        animation: hint-fade 4s infinite;
    }

    .swipe-hint i {
        font-size: 24px;
        animation: swipe-move 1.5s infinite ease-in-out;
    }

    .swipe-hint span {
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 2px;
        text-transform: uppercase;
        text-align: center; /* Explicitly centered */
        width: 100%;
    }

    /* Branding - TOP CENTER ON MOBILE */
    .logo {
        top: 25px !important;
        right: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .logo img {
        height: 35px !important;
    }

    @keyframes hint-fade {

        0%,
        100% {
            opacity: 0;
        }

        20%,
        80% {
            opacity: 0.6;
        }
    }

    @keyframes swipe-move {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-15px);
        }
    }

    /* Power Screen / Landing Page */
    .tv-bezel {
        padding: 40px 20px;
        border-radius: 35px;
        width: 90%;
        border-width: 4px;
        margin: 0 auto;
    }

    .landing-logo {
        max-width: 100px;
        margin-bottom: 20px;
    }

    .landing-description strong {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .landing-description {
        font-size: 12px;
        letter-spacing: 1px;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .primary-links {
        gap: 10px;
        margin-bottom: 30px;
    }

    .primary-links a {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .power-core {
        margin-bottom: 30px;
    }

    .power-btn {
        width: 110px;
        height: 110px;
        border-width: 6px;
    }

    .power-symbol svg {
        width: 22px;
        height: 22px;
    }

    .social-icon-grid {
        gap: 12px;
    }

    .social-icon-grid a {
        font-size: 14px;
    }

    /* HUD / Info Banner - SLIM & WIDE */
    .retro-info-banner {
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 145px !important;
        width: 92% !important;
        min-height: auto !important; /* Remove large min-height */
        height: auto !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 6px 12px !important; /* Slimmer padding */
        border-width: 2px !important;
        max-width: 450px !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9) !important;
    }

    .retro-details {
        width: 100%;
        padding: 5px 12px !important;
    }

    .program-title {
        font-size: 13px !important;
        text-align: left;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    .program-desc,
    .open-video-btn.retro-btn {
        display: none !important;
    }

    /* Fixed Ticker - HIDDEN ON MOBILE */
    .ticker-container {
        display: none !important;
    }



    /* Floating buttons - BOTTOM CENTER WITH CHANNEL BUTTONS */
    .floating-actions {
        bottom: 80px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        flex-direction: row !important;
        gap: 8px;
        width: auto;
    }

    .mobile-only-btn {
        display: flex !important;
    }

    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    /* ASPECT RATIO 4:3 FOR SCREEN */
    #player-container {
        width: 100vw;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #player {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100vw;
        height: 75vw;
        /* 4:3 aspect ratio (100 * 3/4) */
        transform: translate(-50%, -50%) !important;
    }

    /* Fill the 4:3 container with 16:9 content */
    body.look-retro #player,
    body.look-y2k #player,
    body.look-bw #player,
    body.look-clean #player {
        transform: translate(-50%, -50%) scale(1.4) !important;
    }
}

.mobile-only, .mobile-only-btn {
    display: none !important;
}

/* Video Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Higher than HUD */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #0d121f;
    border: 6px solid #080c16;
    border-radius: 24px;
    padding: 25px;
    width: 85%;
    max-width: 320px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px #1a2233;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay:not(.hidden) .modal-content {
    transform: translateY(0);
}

.modal-logo {
    width: 120px;
    margin-bottom: 20px;
}

.modal-body h3 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
}

.modal-body p {
    color: #8ca2bf;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    flex: 1;
    height: 50px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px solid #080c16;
    text-transform: uppercase;
}

.yes-btn {
    background: linear-gradient(135deg, #00e0ff, #005f8f);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.no-btn {
    background: #1a2233;
    color: #5d708a;
}

.modal-btn:active {
    transform: scale(0.92);
}

@media (max-width: 768px) {
    .info-banner:active {
        background: #1a2233 !important;
        transform: translateX(-50%) scale(0.98) !important;
    }
}

/* Portrait / Shorts View Styles */
body.is-portrait #player {
    transform: scale(1) !important;
    object-fit: contain !important;
}

/* On Mobile, ensure portrait videos fit within the 4:3 container without 1.4x zoom override */
@media (max-width: 768px) {
    body.is-portrait #player {
        transform: translate(-50%, -50%) scale(1) !important;
        height: 100vh !important;
        width: 100vw !important;
    }
}