/* --- GLOBAL RESET --- */
* {
    box-sizing: border-box;
    user-select: none;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding-top: 30px;       
    padding-bottom: 30px; 
    background-color: #ffeef5;
    background-image: url(https://i.pinimg.com/1200x/09/14/a6/0914a6727f9000bb972591204919d681.jpg);
    background-size:inherit;
    font-family: 'Quicksand', sans-serif;
}

/* --- BACK BUTTON --- */
.back-btn {
    position: absolute; top: 20px; left: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #ffb7c5; padding: 10px 20px; border-radius: 25px;
    text-decoration: none; font-weight: 600; font-size: 13px;
    border: 2px solid #ffb7c5;
    box-shadow: 0 4px 10px rgba(255, 183, 197, 0.3);
    transition: all 0.2s ease;
    display: flex; align-items: center; gap: 8px; z-index: 100;
    backdrop-filter: blur(5px);
}
.back-btn:hover {
    background-color: #ffb7c5; color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 183, 197, 0.5);
}

/* --- SCENE CONTAINER --- */
.scene-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;   
    gap: 10px; /* Very small gap */
}

/* --- 1. TV CONTAINER --- */
.tv-container {
    position: relative;
    width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(189, 143, 163, 0.4));
}

.tv-bg { width: 100%; height: auto; display: block; }

/* SCREEN OVERLAY */
.screen-overlay {
    position: absolute;
    top: 11%; left: 10%; width: 80%; height: 56.5%;
    background: #000;
    overflow: hidden; z-index: 2;
}

.tv-display { width: 100%; height: 100%; position: relative; }

/* Slideshow Track */
.carousel-track {
    display: flex; width: 100%; height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
}
.show-slide { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }

/* TV ON State */
.tv-display.power-on .carousel-track { opacity: 1; }
.tv-display.power-on .off-screen-black { opacity: 0; }

/* Black Screen */
.off-screen-black {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #111; z-index: 5; pointer-events: none;
    transition: opacity 0.5s;
}

/* Glass Glare Effect */
.screen-glare {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.4) 0%, transparent 40%);
    pointer-events: none; z-index: 10;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}


/* --- 2. MICRO CONTROLS DOCK --- */
.tv-controls-dock {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 6px 15px; /* Tiny padding */
    background: linear-gradient(to bottom, #fff0f5 0%, rgba(255, 183, 197, 0.69) 100%);
    border-radius: 15px;
    border: 2px solid #fff;
    box-shadow: 
        0 4px 10px rgba(189, 143, 163, 0.4),
        inset 0 1px 2px rgba(255,255,255,0.8);
}

.control-group { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.label { font-size: 7px; font-weight: bold; color: #ffb7c5; letter-spacing: 0.5px; }

/* General Button Styles */
.control-btn {
    border: none; outline: none; cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    transition: all 0.1s ease;
}
.control-btn:active { transform: scale(0.92) translateY(1px); }

/* POWER BUTTON (Micro) */
.power-btn {
    width: 24px; height: 24px; 
    border-radius: 50%;
    font-size: 10px; 
    background: linear-gradient(145deg, #ffb7c5, rgba(255, 183, 197, 0.77));
    color: white; border: 1.5px solid #fff;
    box-shadow: 0 1px 3px rgba(255, 20, 147, 0.4), inset 0 1px 2px rgba(255,255,255,0.4);
}

/* CHANNEL ROCKER AREA */
.channel-rocker {
    display: flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.5); 
    padding: 3px 6px; border-radius: 10px;
    border: 1.5px solid #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

/* CHANNEL BUTTONS (Micro) */
.ch-btn {
    width: 20px; height: 20px; 
    border-radius: 6px; 
    font-size: 8px; 
    background: #fff;
    color: #ff69b4; border: 1px solid #ffb7c5;
    box-shadow: 0 1px 2px rgba(189, 143, 163, 0.2);
}
.ch-btn:hover { border-color: #ff69b4; background: #fff0f5; }

.ch-label-group { display: flex; flex-direction: column; align-items: center; }