/* Core Styling - Deep OTT Dark Theme */
body {
    background-color: #050505; 
    color: #ffffff;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

body.locked { overflow: hidden; }

/* Splash Screen Background */
#splash-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, #1a0b12 0%, #000000 100%);
    display: flex; justify-content: center; align-items: center; flex-direction: column;
    z-index: 9999; transition: opacity 0.8s ease, visibility 0.8s;
}

/* Cinematic Intro Text */
.cinematic-text {
    font-size: 42px; font-weight: 900;
    color: #e50914; 
    letter-spacing: 8px; text-transform: uppercase;
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
    animation: cinematicScale 2s ease forwards;
}

@keyframes cinematicScale {
    0% { transform: scale(0.9); opacity: 0; letter-spacing: 2px; }
    50% { opacity: 1; }
    100% { transform: scale(1); opacity: 1; letter-spacing: 12px; }
}

/* Biometric Scanner */
.hidden-step {
    display: none; opacity: 0; transition: opacity 0.5s ease;
    text-align: center; cursor: pointer; position: relative;
}

.scanner-container {
    position: relative; display: inline-block; padding: 20px;
}

.fingerprint-icon {
    width: 80px; height: 80px;
    stroke: #e50914; opacity: 0.8;
}

/* Moving Laser Scanner Line */
.scanner-line {
    position: absolute; top: 0; left: 10%; right: 10%; height: 2px;
    background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px #e50914;
    animation: scan 2s infinite linear;
}

@keyframes scan {
    0% { top: 10%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 90%; opacity: 0; }
}

.scan-text {
    color: #a3a3a3; margin-top: 15px; font-size: 12px;
    letter-spacing: 3px; font-weight: 600;
}

/* Glassmorphic Password Box */
.splash-content {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 40px; border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 85%; max-width: 340px; text-align: center;
}

.premium-title { color: #fff; margin: 0 0 5px 0; font-size: 24px; letter-spacing: 3px; font-weight: 800; }
.premium-subtitle { color: #888; font-size: 12px; margin-bottom: 30px; letter-spacing: 1px; text-transform: uppercase; }

.password-input-group { display: flex; flex-direction: column; gap: 15px; }
.password-input-group input {
    padding: 15px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 20px;
    text-align: center; outline: none; transition: 0.3s; letter-spacing: 5px;
}
.password-input-group input:focus { border-color: #e50914; box-shadow: 0 0 10px rgba(229, 9, 20, 0.3); }
.password-input-group button {
    padding: 15px; background: #e50914; color: #fff; border: none; border-radius: 8px;
    font-size: 14px; font-weight: bold; cursor: pointer; transition: 0.3s; letter-spacing: 2px;
}
.password-input-group button:hover { background: #b80710; }
#errorMsg { color: #e50914; font-size: 12px; margin-top: 15px; display: none; }

/* Disclaimer Styling */
.disclaimer-text {
    position: absolute; bottom: 20px; left: 20px; right: 20px;
    text-align: center; font-size: 10px; color: #555;
    line-height: 1.5; letter-spacing: 0.5px;
}

/* Main Content Wrapper */
#main-content {
    width: 100%; display: flex; flex-direction: column; align-items: center;
    filter: blur(20px); transition: filter 1s ease; flex: 1; opacity: 0.5;
}
body:not(.locked) #main-content { filter: blur(0); opacity: 1; }

/* Player Styling */
.player-container {
    width: 100%; max-width: 900px; background: #000; box-shadow: 0 10px 40px rgba(0,0,0,0.9);
    position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.now-playing { padding: 12px; background: #0a0a0a; text-align: center; font-weight: 600; color: #fff; font-size: 14px; letter-spacing: 1px; }

/* Premium Search Bar Styling */
.search-container {
    width: 100%; max-width: 900px; padding: 25px 20px 0 20px;
    box-sizing: border-box; text-align: center;
}
#searchInput {
    width: 100%; max-width: 450px; padding: 14px 25px; border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(20, 20, 20, 0.6);
    color: #fff; font-size: 14px; letter-spacing: 1px; outline: none;
    transition: all 0.3s ease; backdrop-filter: blur(10px);
}
#searchInput::placeholder { color: #777; }
#searchInput:focus { border-color: #d4af37; box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); background: rgba(10, 10, 10, 0.9); }

/* Channel Grid */
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 15px; padding: 25px 20px; width: 100%; max-width: 1000px; }
.channel-card { 
    background: #141414; border-radius: 8px; padding: 15px 10px; text-align: center; 
    cursor: pointer; border: 1px solid transparent; transition: 0.3s; 
}
.channel-card:hover { transform: scale(1.05); background: #1f1f1f; border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.channel-logo { width: 100%; max-height: 50px; object-fit: contain; margin-bottom: 12px; }
.channel-title { font-size: 11px; color: #aaa; font-weight: 600; text-transform: uppercase; }

footer { width: 100%; text-align: center; padding: 30px 20px; background: #050505; border-top: 1px solid #111; color: #666; margin-top: auto; box-sizing: border-box;}
footer p { margin: 5px 0; font-size: 12px; }
.footer-disclaimer { font-size: 10px; color: #444; }
