* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

/* TV Container */
.tv-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
}

/* TV Frame */
.tv-frame {
    position: relative;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 30px;
    padding: 40px;
    border: 3px solid #0a0a0a;
    box-shadow:
        inset 0 2px 10px rgba(255, 255, 255, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.9);
}

/* TV Screen */
.tv-screen {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    aspect-ratio: 4 / 3;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    border: 8px solid #1a1a1a;
    box-shadow:
        inset 0 0 50px rgba(0, 0, 0, 0.9),
        inset 0 0 20px rgba(0, 100, 255, 0.1);
}

/* Scanlines Effect */
#scanlinesEffect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s;
}

#scanlinesEffect.hidden {
    opacity: 0;
}

/* CRT Curvature and Glow */
#crtEffect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 99;
    opacity: 1;
    transition: opacity 0.3s;
}

#crtEffect.hidden {
    opacity: 0;
}

/* Main Content */
.content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: perspective(1000px) rotateX(0deg);
}

/* MTV Header */
.mtv-header {
    background: linear-gradient(90deg, #ff0080, #ff8c00, #ffff00);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid #000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.mtv-logo {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.1em;
    text-shadow:
        3px 3px 0px #000,
        6px 6px 0px rgba(0, 0, 0, 0.5);
    margin: 0;
    line-height: 0.8;
}

.letter-h {
    color: #fff;
}

.letter-d {
    color: #000;
}

.letter-p {
    color: #fff;
}

.subtitle {
    font-size: 0.8rem;
    font-weight: bold;
    color: #000;
    letter-spacing: 0.3em;
    margin-top: 5px;
}

.now-playing {
    background: rgba(0, 0, 0, 0.7);
    color: #ffff00;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    max-width: 500px;
    overflow: hidden;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

.now-playing-inner {
    display: inline-block;
    animation: scroll-text 15s linear infinite;
    padding-right: 50px;
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.now-playing:hover .now-playing-inner {
    animation-play-state: paused;
}

/* Video Player */
.video-player-container {
    position: relative;
    width: 100%;
    height: calc(100% - 150px);
    background: #000;
    cursor: none;
}

.video-player-container:hover {
    cursor: default;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    transition: filter 0.3s;
}

#videoPlayer.vcr-effect {
    filter:
        saturate(1.2)
        contrast(1.1)
        brightness(0.95)
        blur(0.3px);
}

/* Big Play Button */
.big-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    z-index: 60;
    opacity: 1;
    transition: all 0.3s ease;
}

.big-play-button.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ff0080, #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border: 5px solid #000;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.8),
        inset 0 3px 10px rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.big-play-button:hover .play-icon {
    transform: scale(1.1);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.9),
        inset 0 3px 10px rgba(255, 255, 255, 0.4);
}

.play-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffff00;
    text-shadow:
        2px 2px 0px #000,
        0 0 10px rgba(255, 255, 0, 0.5);
    letter-spacing: 0.2em;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* MTV-Style Title Card */
.mtv-title-card {
    position: absolute;
    bottom: 80px;
    left: 40px;
    background: linear-gradient(135deg, #ff0080 0%, #ff8c00 50%, #ffff00 100%);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.8),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 50;
    border: 3px solid #000;
    max-width: 600px;
}

.mtv-title-card.show {
    opacity: 1;
    transform: translateX(0);
}

.mtv-title-card.hide {
    opacity: 0;
    transform: translateX(-100px);
}

.title-card-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-card-logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: #000;
    text-shadow: 2px 2px 0px #fff;
    letter-spacing: -0.05em;
}

.title-card-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* Video Controls Overlay */
.video-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        transparent 20%,
        transparent 80%,
        rgba(0, 0, 0, 0.9) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.video-controls-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.overlay-top {
    position: absolute;
    top: 20px;
    left: 20px;
}

.overlay-bottom {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.spacer {
    flex: 1;
}

/* VCR Time Display */
.vcr-time {
    font-family: 'Courier New', monospace;
    color: #00ff00;
    font-size: 1.5rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Overlay Buttons */
.overlay-btn {
    background: rgba(42, 42, 42, 0.9);
    border: 2px solid #666;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.overlay-btn:hover {
    background: rgba(58, 58, 58, 0.9);
    border-color: #00ff00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 255, 0, 0.3);
}

.overlay-btn:active {
    transform: translateY(0);
}

/* Effect Buttons in Overlay */
.effect-btn {
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid #444;
    border-radius: 5px;
    padding: 8px 12px;
    color: #666;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
}

.effect-btn .effect-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
}

.effect-btn.active {
    color: #00ff00;
    border-color: #00ff00;
    background: rgba(26, 42, 26, 0.9);
}

.effect-btn.active .effect-led {
    background: #00ff00;
    box-shadow: 0 0 8px #00ff00;
}

.effect-btn:hover {
    background: rgba(58, 58, 58, 0.9);
}

/* Volume Control in Overlay */
.volume-control-overlay {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider-overlay {
    width: 100px;
    height: 8px;
    border-radius: 4px;
    background: rgba(51, 51, 51, 0.9);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-slider-overlay::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff0080;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(255, 0, 128, 0.5);
}

.volume-slider-overlay::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff0080;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px rgba(255, 0, 128, 0.5);
}

/* TV Physical Controls */
.tv-physical-controls {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 40px;
}

.knob {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: 3px solid #1a1a1a;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.knob::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 20px;
    background: #666;
    border-radius: 2px;
}

.led-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow:
        0 0 10px #00ff00,
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


/* TV Stand */
.tv-stand {
    width: 300px;
    height: 40px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 0 0 10px 10px;
    margin-top: -10px;
    border: 2px solid #0a0a0a;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .mtv-logo {
        font-size: 2.5rem;
    }

    .now-playing {
        font-size: 0.8rem;
        max-width: 200px;
    }

    .mtv-title-card {
        bottom: 60px;
        left: 20px;
        padding: 15px 20px;
        max-width: calc(100% - 40px);
    }

    .title-card-logo {
        font-size: 2rem;
    }

    .title-card-text {
        font-size: 1rem;
    }

    .play-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .play-text {
        font-size: 1.2rem;
    }

    .controls-row {
        gap: 10px;
    }

    .overlay-btn {
        padding: 8px 15px;
        font-size: 1.2rem;
    }

    .effect-btn {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
}
