/* --- V14.0.63 R&D ARCHITECTURE --- */
:root {
    --bg-base: #141414;
    --bg-elevated: rgba(20, 20, 20, 0.7);
    --neon-green: #39ff14;
    --roku-purple: #662D91;
    --glass-border: rgba(255, 255, 255, 0.1);
    --stash-active: #ff00ff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-base);
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body.crt-mode::after {
    content: " "; display: block; position: fixed; top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2000; background-size: 100% 2px, 3px 100%; pointer-events: none;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9);
}

header {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 40px; box-sizing: border-box;
    background: var(--bg-elevated); backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid var(--glass-border);
    z-index: 100; transition: background 0.3s ease;
}
.brand-container { display: flex; align-items: center; gap: 15px; }
.header-logo { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--neon-green); object-fit: cover; }
.header-title { font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; margin: 0; color: #fff; }
.header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.search-input {
    background: rgba(255,255,255,0.1); color: #fff; border: 1px solid var(--glass-border);
    padding: 8px 16px; border-radius: 50px; font-weight: bold; font-size: 13px;
    outline: none; transition: all 0.3s ease; width: 200px;
}
.search-input:focus { border-color: var(--neon-green); box-shadow: 0 0 10px rgba(57, 255, 20, 0.4); }
.search-input::placeholder { color: #aaa; }

.action-btn {
    background: rgba(255,255,255,0.1); color: #fff; border: 1px solid var(--glass-border);
    padding: 8px 16px; border-radius: 50px; font-weight: bold; font-size: 13px;
    text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; text-decoration: none;
}
.action-btn:hover { background: var(--neon-green); color: #000; border-color: var(--neon-green); box-shadow: 0 0 15px rgba(57, 255, 20, 0.4); }
.btn-purple { background: var(--roku-purple); border-color: var(--roku-purple); }
.btn-purple:hover { background: #7b38ad; color: #fff; box-shadow: 0 0 15px rgba(102, 45, 145, 0.6); }

.hero {
    height: 70vh; min-height: 500px; display: flex; align-items: flex-end;
    padding: 50px 40px; background-image: linear-gradient(to top, var(--bg-base) 0%, rgba(20,20,20,0) 100%), url('/logo.jpg?v=14.0.63');
    background-size: cover; background-position: center 20%; position: relative; margin-bottom: 20px;
}
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-tag { color: var(--neon-green); font-weight: 900; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; font-size: 14px; }
.hero-title { font-size: 56px; margin: 0 0 15px 0; text-transform: uppercase; line-height: 1.1; }
.hero-desc { font-size: 18px; color: #ccc; margin-bottom: 25px; line-height: 1.5; }
.hero-sponsor-btn { font-size: 16px; padding: 12px 28px; display: inline-block; }

.pill-nav {
    display: flex; overflow-x: auto; gap: 10px; padding: 0 40px 30px 40px; 
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.pill-nav::-webkit-scrollbar { display: none; }
.pill-btn {
    background: rgba(255,255,255,0.05); color: #ccc; border: 1px solid var(--glass-border);
    padding: 10px 20px; border-radius: 50px; font-size: 13px; font-weight: bold;
    cursor: pointer; white-space: nowrap; text-transform: uppercase; transition: all 0.3s ease;
}
.pill-btn:hover { background: var(--neon-green); color: #000; border-color: var(--neon-green); }

.carousel-section { margin-bottom: 40px; padding: 0 40px; scroll-margin-top: 100px; }
.carousel-title { font-size: 22px; color: #fff; margin-bottom: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-left: 4px solid var(--neon-green); padding-left: 10px; display: flex; align-items: center; gap: 10px; }

.carousel-row { display: flex; overflow-x: auto; gap: 20px; padding-bottom: 20px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; min-height: 100px; }
.carousel-row.search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); flex-wrap: nowrap; overflow-x: hidden; justify-content: flex-start; }
.carousel-row::-webkit-scrollbar { height: 8px; }
.carousel-row::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 10px; }
.carousel-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
.carousel-row::-webkit-scrollbar-thumb:hover { background: var(--neon-green); }

.card-wrapper { display: grid; grid-template-rows: auto 1fr auto; row-gap: 5px; flex: 0 0 auto; width: 300px; }
.search-grid .card-wrapper { width: 100%; margin-bottom: 20px; }

.video-card { width: 100%; aspect-ratio: 16/9; background-color: #222; border-radius: 8px; position: relative; cursor: pointer; overflow: hidden; background-size: cover; background-position: center; border: 1px solid var(--glass-border); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.video-card:focus { outline: 3px solid var(--neon-green); transform: scale(1.05); z-index: 10; }
.video-card:hover { transform: scale(1.05); border-color: var(--neon-green); box-shadow: 0 10px 25px rgba(57, 255, 20, 0.4); z-index: 10; animation: cinematic-pan 12s infinite alternate linear; }

.video-card.is-game { background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #000; }
.video-card.is-game:hover { animation: none; }

@keyframes cinematic-pan { 
    0% { background-position: center center; background-size: cover; } 
    50% { background-position: center 20%; background-size: 110%; } 
    100% { background-position: center 80%; background-size: cover; }
}

.leaving-soon-badge { position: absolute; top: 8px; right: 8px; background: #ff3333; color: #fff; font-size: 10px; font-weight: 900; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; z-index: 15; box-shadow: 0 2px 10px rgba(255, 0, 0, 0.4); letter-spacing: 0.5px; }
.card-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 15px; opacity: 0; transition: opacity 0.3s ease; }
.video-card:hover .card-overlay, .video-card:focus .card-overlay { opacity: 1; }

.play-indicator { display: inline-flex; align-items: center; justify-content: center; background: var(--neon-green); color: #000; width: 35px; height: 35px; border-radius: 50%; font-size: 14px; font-weight: bold; margin-top: auto; }

.external-title { color: #fff; font-size: 15px; font-weight: 800; margin-top: 8px; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.info-btn, .share-btn, .stash-btn { background: transparent; border: none; color: #aaa; cursor: pointer; font-size: 18px; padding: 0 0 0 6px; transition: all 0.3s ease; vertical-align: middle; display: inline-block; margin-top: -3px; }
.info-btn:hover, .share-btn:hover, .stash-btn:hover { color: var(--neon-green); text-shadow: 0 0 10px rgba(57, 255, 20, 0.5); transform: scale(1.1); }
.stash-btn.active { color: var(--stash-active); }

.sponsor-caption { font-size: 13px; color: #aaa; line-height: 1.4; margin-top: 2px; }
.sponsor-caption a { color: var(--neon-green); text-decoration: none; font-weight: bold; transition: color 0.3s ease; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); z-index: 1000; box-sizing: border-box; padding: 20px; }
.modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) translateZ(0); width: calc(100% - 40px); max-width: 900px; background: #000; border: 2px solid var(--neon-green); border-radius: 8px; box-shadow: 0 0 35px rgba(57, 255, 20, 0.4); z-index: 1002; transition: max-width 0.3s ease; }

.modal-content.game-mode { max-width: 800px; border-width: 3px; box-shadow: 0 0 40px rgba(57, 255, 20, 0.6); }

.ambient-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.1); width: calc(100% - 40px); max-width: 900px; padding-bottom: 56.25%; filter: blur(50px); opacity: 0.7; z-index: 1001; pointer-events: none; background-size: cover; background-position: center; transition: opacity 1s ease; }

.close-btn { position: absolute; top: -15px; right: -15px; background: var(--neon-green); color: #000; border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 20px; font-weight: bold; cursor: pointer; z-index: 1006; box-shadow: 0 4px 10px rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; transition: transform 0.3s ease; }
.close-btn:hover { transform: scale(1.1); }

.sleep-timer-btn { position: absolute; top: -15px; left: -15px; background: #222; color: #fff; border: 2px solid var(--glass-border); border-radius: 50px; padding: 8px 16px; font-size: 13px; font-weight: bold; cursor: pointer; z-index: 1006; box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: all 0.3s ease; }
.sleep-timer-btn:hover { border-color: var(--neon-green); color: var(--neon-green); }

#videoContainer { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; background-color: #000; border-radius: 6px; overflow: hidden; transition: padding-bottom 0.3s ease; }
#videoContainer.game-mode { padding-bottom: 75%; }

#videoContainer iframe, #videoContainer video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; display: block; background-color: #000; z-index: 1001; transition: opacity 3s ease; }
#liveBumper { display: none; width: 100%; aspect-ratio: 16/9; background: radial-gradient(circle, #222 0%, #000 100%); z-index: 1005; justify-content: center; align-items: center; flex-direction: column; text-align: center; border-radius: 6px; box-sizing: border-box; padding: 20px; }
.bumper-logo { width: 18vw; max-width: 100px; min-width: 60px; aspect-ratio: 1/1; border-radius: 50%; border: 3px solid var(--neon-green); margin-bottom: 15px; box-shadow: 0 0 20px rgba(57, 255, 20, 0.5); object-fit: cover; }
.bumper-text { color: var(--neon-green); font-size: calc(14px + 1.5vw); font-weight: 900; text-transform: uppercase; letter-spacing: 2px; margin: 0; }
.bumper-subtext { color: #fff; font-size: calc(10px + 1vw); margin-top: 8px; letter-spacing: 5px; }

#rouletteModal { display: none; width: 100%; aspect-ratio: 16/9; background: radial-gradient(circle, #1a1a1a 0%, #000 100%); z-index: 1005; justify-content: center; align-items: center; flex-direction: column; text-align: center; border-radius: 6px; box-sizing: border-box; padding: 20px; }
.roulette-container { border: 4px solid var(--neon-green); border-radius: 8px; overflow: hidden; width: 55%; max-width: 350px; aspect-ratio: 16/9; box-shadow: 0 0 40px rgba(57, 255, 20, 0.6); position: relative; margin: 0 auto 15px auto; }
.roulette-poster { width: 100%; height: 100%; object-fit: cover; }
.roulette-text { color: var(--neon-green); font-size: calc(12px + 1.5vw); font-weight: 900; text-transform: uppercase; letter-spacing: 3px; margin: 0; text-shadow: 0 0 8px rgba(57,255,20,0.4); }

.info-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); z-index: 1010; box-sizing: border-box; padding: 20px; justify-content: center; align-items: center; }
.info-modal-content { padding: 40px 30px; width: 100%; max-width: 500px; text-align: center; border: 2px solid var(--roku-purple); background: #111; border-radius: 8px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.info-title { color: var(--neon-green); margin-top: 0; text-transform: uppercase; }
.info-desc { color: #ccc; font-size: 15px; margin-bottom: 20px; line-height: 1.5; }
.info-box { text-align: left; background: #222; padding: 15px; border-radius: 8px; margin-bottom: 15px; }
.info-box.android { border-left: 3px solid var(--neon-green); }
.info-box.apple { border-left: 3px solid #ccc; }
.info-box.warning { border-left: 3px solid #ff3333; }
.info-box strong { color: #fff; }
.info-box span { color: #aaa; font-size: 13px; }

.age-gate-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,10,10,0.95); z-index: 1050; justify-content: center; align-items: center; backdrop-filter: blur(10px); }
.age-gate-content { background: rgba(20,20,20,0.9); border: 1px solid var(--glass-border); padding: 50px; border-radius: 16px; max-width: 450px; text-align: center; }
.age-logo { width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--neon-green); margin-bottom: 20px; object-fit: cover; }
.age-title { color: var(--neon-green); margin-top: 0; text-transform: uppercase; }
.age-desc { color: #ccc; font-size: 16px; margin-bottom: 30px; line-height: 1.6; }
.age-btn { padding: 12px 24px; border: none; border-radius: 50px; font-weight: bold; cursor: pointer; text-transform: uppercase; transition: all 0.3s ease; margin: 0 5px; }
.age-btn-yes { background: var(--neon-green); color: #000; }
.age-btn-no { background: #333; color: #fff; }

#update-banner { display: none; position: fixed; top: 0; left: 0; width: 100%; background: var(--roku-purple); border-bottom: 3px solid var(--neon-green); color: #fff; padding: 15px 20px; z-index: 1500; justify-content: center; align-items: center; gap: 15px; font-weight: bold; }
#update-btn { background: var(--neon-green); color: #000; border: none; padding: 8px 16px; border-radius: 4px; font-weight: 900; cursor: pointer; font-size: 12px; text-transform: uppercase; transition: box-shadow 0.3s ease; }
#update-btn:hover { box-shadow: 0 0 10px rgba(57, 255, 20, 0.5); }

footer { background: #0a0a0a; border-top: 1px solid #222; padding: 40px 20px; text-align: center; margin-top: 50px; }
.footer-title { color: #fff; font-size: 20px; margin-bottom: 5px; }
.footer-subtitle { color: #666; margin: 0 0 15px 0; font-size: 13px; }
.footer-contact { color: var(--neon-green); font-size: 14px; text-decoration: none; transition: text-shadow 0.3s ease; }
.footer-contact:hover { text-shadow: 0 0 8px var(--neon-green); }
.footer-copyright { color: #444; font-size: 12px; margin: 15px 0; }
.footer-legal-links a { color: #666; font-size: 13px; text-decoration: none; margin: 0 10px; }
.footer-legal-links a:hover { color: var(--neon-green); }

@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    header { padding: 15px 20px; flex-direction: column; gap: 15px; }
    .header-actions { justify-content: center; }
    .search-input { width: 100%; }
    .carousel-section { padding: 0 20px; scroll-margin-top: 150px; }
    .card-wrapper { width: 260px; }
    .pill-nav { padding: 0 20px 20px 20px; }
}

#epic-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999; display: flex;
    justify-content: center; align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
.loader-logo {
    width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--neon-green);
    margin-bottom: 25px; object-fit: cover;
    animation: pulse-glow 1.5s infinite alternate;
}
.loader-text {
    color: var(--neon-green); font-size: 22px; font-weight: 900; letter-spacing: 5px;
    text-transform: uppercase; margin-bottom: 20px; text-shadow: 0 0 15px var(--neon-green);
    animation: flicker 2s infinite;
}
.loader-bar-container { width: 250px; height: 4px; background: #222; border-radius: 2px; overflow: hidden; margin-bottom: 12px; }
.loader-bar { width: 0%; height: 100%; background: var(--neon-green); animation: load-fill 2.2s forwards ease-in-out; box-shadow: 0 0 15px var(--neon-green); }
.loader-subtext { color: #888; font-size: 11px; font-family: monospace; letter-spacing: 3px; text-transform: uppercase; transition: color 0.3s ease; }

@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(57, 255, 20, 0.2); transform: scale(0.95); }
    100% { box-shadow: 0 0 40px rgba(57, 255, 20, 0.8); transform: scale(1.05); }
}
@keyframes load-fill { 0% { width: 0%; } 40% { width: 60%; } 80% { width: 85%; } 100% { width: 100%; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } 52% { opacity: 0.3; } 54% { opacity: 1; } }

#matrix-easter-egg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9998;
    display: flex; justify-content: center; align-items: center;
    visibility: hidden; opacity: 0; transition: opacity 1s ease;
    cursor: pointer;
}
#matrix-easter-egg.active { visibility: visible; opacity: 1; }
#matrix-easter-egg-content {
    text-align: center; color: #ff00ff;
    font-size: calc(16px + 1vw); font-weight: bold; text-transform: uppercase;
    animation: matrix-text-glowing 2s infinite alternate; text-shadow: 0 0 10px #ff00ff;
}
@keyframes matrix-text-glowing { 0% { text-shadow: 0 0 10px #ff00ff; } 100% { text-shadow: 0 0 40px #ff00ff; } }

.digital-joint { font-family: monospace; display: inline-block; white-space: pre; text-align: left; margin-top: 15px; font-size: 20px; line-height: 1.1; font-weight: 900; }
.digital-joint .smoke { color: #888; text-shadow: 0 0 15px #aaa; display: block; animation: float-smoke 3s infinite; }
.digital-joint .cherry { color: #ff3300; text-shadow: 0 0 20px #ff0000; display: block; animation: burn 1.5s infinite alternate; }
.digital-joint .body { color: #ff00ff; text-shadow: 0 0 15px #ff00ff; display: block; }

@keyframes float-smoke { 0% { transform: translateY(0) scale(1); opacity: 0.8; } 100% { transform: translateY(-15px) scale(1.2); opacity: 0; } }
@keyframes burn { 0% { text-shadow: 0 0 10px #ff3300, 0 0 20px #ff0000; color: #ff5500; } 100% { text-shadow: 0 0 20px #ff3300, 0 0 40px #ff0000, 0 0 60px #ffaa00; color: #ffaa00; } }

.tv-static { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 2010; display: none; opacity: 0.25; pointer-events: none; }
.tv-static.active { display: block; animation: staticNoise 0.1s infinite; }
@keyframes staticNoise { 0% { background-image: radial-gradient(circle, #eee 1px, transparent 1px), linear-gradient(#000, #333); background-size: 3px 3px, 100% 4px; } 50% { background-image: radial-gradient(circle, #fff 1px, transparent 1px), linear-gradient(#222, #000); background-size: 2px 2px, 100% 3px; background-position: 1px 1px; } }

.binge-screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 2005; display: none; flex-direction: column; justify-content: center; align-items: center; color: var(--neon-green); }
.binge-screen.active { display: flex; }
.binge-timer { font-size: 60px; font-weight: bold; margin: 20px 0; color: #fff; text-shadow: 0 0 15px var(--neon-green); }

.game-badge { position: absolute; top: 8px; left: 8px; background: var(--neon-green); color: #000; font-size: 10px; font-weight: 900; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; z-index: 15; box-shadow: 0 2px 10px rgba(57, 255, 20, 0.4); letter-spacing: 0.5px; }

#cloud-uplink-terminal {
    display: none; width: 100%; height: 100%; background: radial-gradient(circle at center, #0a140d 0%, #000 100%);
    flex-direction: column; justify-content: center; align-items: center; text-align: center; position: absolute; top: 0; left: 0; z-index: 1001;
    border: 2px solid var(--neon-green); box-sizing: border-box;
}

.system-toast {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: #000; border: 2px solid var(--neon-green); color: var(--neon-green);
    padding: 10px 20px; border-radius: 50px; font-weight: bold; font-size: 14px;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4); z-index: 9999;
    display: none; text-transform: uppercase; letter-spacing: 1px;
}

/* 🟢 R&D Global Chat UI */
#seshChatContainer {
    position: fixed; 
    bottom: 80px; right: 40px; width: 320px; height: 400px;
    background: rgba(10,10,10,0.85); border: 2px solid var(--neon-green); border-radius: 8px;
    z-index: 3000; display: flex; flex-direction: column;
    box-shadow: 0 0 20px rgba(57,255,20,0.3); backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.chat-header {
    background: #222; padding: 10px; border-bottom: 1px solid var(--neon-green);
    display: flex; justify-content: space-between; align-items: center;
    color: var(--neon-green); font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
}

.chat-close-btn { background: none; border: none; color: #fff; cursor: pointer; font-size: 16px; }
.chat-close-btn:hover { color: #ff3333; }

/* 🟢 R&D Reaction Bar */
.reaction-bar {
    display: flex; justify-content: space-around; background: #111; padding: 8px;
    border-bottom: 1px solid var(--glass-border);
}
.reaction-btn {
    background: none; border: none; font-size: 20px; cursor: pointer;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}
.reaction-btn:hover { transform: scale(1.3); text-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* 🟢 R&D Floating Emoji Animation */
.floating-reaction {
    position: fixed; bottom: 80px; font-size: 40px; z-index: 3001;
    pointer-events: none; opacity: 1;
    animation: floatUp 3s ease-out forwards;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-300px) scale(1.5); opacity: 0; }
}

#seshChatMessages {
    flex-grow: 1; overflow-y: auto; padding: 15px; color: #fff; font-size: 13px;
    display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth;
}

.chat-msg { text-align: left; background: #222; padding: 8px 12px; border-radius: 8px; width: fit-content; max-width: 90%; word-wrap: break-word; }
.chat-msg-host { border-left: 3px solid var(--neon-green); align-self: flex-start; }
.chat-msg-guest { border-left: 3px solid #ff00ff; align-self: flex-start; }

#seshPinInput { text-transform: uppercase; }
#seshPinInput::placeholder { text-transform: none; }

#seshChatInputArea { display: flex; border-top: 1px solid var(--glass-border); height: 45px; }
#seshChatInput {
    flex-grow: 1; background: transparent; border: none; color: #fff;
    padding: 0 15px; outline: none; font-size: 14px;
}
#seshChatSendBtn {
    background: var(--neon-green); color: #000; border: none; padding: 0 20px;
    font-weight: 900; cursor: pointer; text-transform: uppercase; transition: background 0.3s ease;
}
#seshChatSendBtn:hover { background: #fff; }

.video-overlay-bar {
    position: absolute; top: -15px; z-index: 1006; display: flex; gap: 8px;
    flex-wrap: wrap; pointer-events: none; 
}
.video-overlay-bar.left { left: -10px; max-width: 50%; }
.video-overlay-bar.right { right: 35px; max-width: calc(50% - 35px); justify-content: flex-end; }
.video-overlay-bar .static-btn { position: relative; top: auto; left: auto; right: auto; margin: 0; pointer-events: auto; }
.pin-badge { border-color: #ff00ff !important; color: #ff00ff !important; text-shadow: 0 0 5px rgba(255,0,255,0.5); pointer-events: none !important; cursor: default; }

.host-floating-bar {
    display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.9); border: 2px solid var(--neon-green); padding: 15px 30px;
    border-radius: 50px; z-index: 2000; align-items: center; gap: 20px;
    box-shadow: 0 0 20px rgba(57,255,20,0.4); backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    #seshChatContainer {
        bottom: 0; right: 0; width: 100%; height: 50%; border-radius: 0;
        border-left: none; border-right: none; border-bottom: none;
    }
    .host-floating-bar { width: 90%; padding: 10px 20px; justify-content: space-between; border-radius: 10px; bottom: 10px; }
}

@media (max-width: 600px) {
    .video-overlay-bar { gap: 4px; }
    .video-overlay-bar .static-btn { padding: 6px 10px; font-size: 11px; }
}

/* 🟢 R&D: Auto-Fullscreen CSS for Mobile Landscape Rotation */
@media screen and (orientation: landscape) and (max-height: 600px) {
    .modal-overlay {
        padding: 0 !important;
    }
    
    #modal-content-shell,
    #modal-content-inner,
    .modal-content.game-mode {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100% !important;
        max-height: 100% !important;
        border: none !important;
        border-radius: 0 !important;
        transform: none !important;
        box-shadow: none !important;
    }

    #videoContainer, 
    #videoContainer.game-mode {
        padding-bottom: 0 !important;
        height: 100% !important;
        width: 100vw !important;
        border-radius: 0 !important;
    }

    .close-btn {
        top: 15px !important;
        right: 15px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        color: #fff !important;
        border: 1px solid var(--glass-border) !important;
        box-shadow: none !important;
    }
    
    .video-overlay-bar.left { 
        left: 15px !important; 
        top: 15px !important; 
    }
    
    .video-overlay-bar.right { 
        right: 65px !important; 
        top: 15px !important; 
    }
    
    .sleep-timer-btn { 
        background: rgba(0, 0, 0, 0.6) !important; 
        border-color: var(--glass-border) !important;
    }

    #ambientGlow { 
        display: none !important; 
    }
}