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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0a1a2d 0%, #1a3a5f 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Снежный фон */
.snow-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Заголовок */
.new-year-title {
    position: relative;
    text-align: center;
    padding: 20px 20px 40px;
    z-index: 2;
    background: linear-gradient(to bottom, 
        rgba(10, 26, 45, 0.9) 0%,
        rgba(10, 26, 45, 0.7) 50%,
        transparent 100%);
    width: 100%;
    backdrop-filter: blur(5px);
}

.new-year-title h1 {
    font-family: 'Marck Script', cursive;
    font-size: 3rem;
    background: linear-gradient(45deg, #FFD700, #FFF, #FF8C00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    margin-bottom: 10px;
    animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
    from {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.7),
                     0 0 50px rgba(255, 140, 0, 0.3);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: #87CEEB;
    margin-bottom: 15px;
}

.music-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

.music-indicator i {
    color: #FFD700;
    font-size: 1.1rem;
}

.music-indicator span {
    font-size: 0.9rem;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* СОВЕТСКИЙ ТЕЛЕВИЗОР */
.tv-container {
    position: relative;
    z-index: 2;
    width: 850px;
    max-width: 95vw;
    margin: 20px auto;
    perspective: 1000px;
}

/* Основной корпус */
.soviet-tv {
    position: relative;
    background: 
        /* Деревянная текстура */
        linear-gradient(135deg, 
            #8B4513 0%,
            #A0522D 25%,
            #8B4513 50%,
            #A0522D 75%,
            #8B4513 100%);
    border-radius: 15px;
    padding: 25px 30px 40px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.8),
        inset 0 0 0 2px #654321,
        inset 0 0 30px rgba(0, 0, 0, 0.6);
    border: 8px solid #5D4037;
    transform-style: preserve-3d;
    overflow: hidden;
}

/* Декоративные уголки */
.soviet-tv::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid #D2691E;
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
}

/* Ручки по бокам (старые телевизоры) */
.tv-handle {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 60px;
    background: linear-gradient(135deg, #808080, #606060);
    border-radius: 5px;
    box-shadow: 
        inset 0 0 5px rgba(0, 0, 0, 0.5),
        0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.tv-handle.left {
    left: -25px;
    transform: translateY(-50%);
}

.tv-handle.right {
    right: -25px;
    transform: translateY(-50%);
}

/* Передняя панель */
.tv-front {
    position: relative;
    background: #2C2C2C;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.9),
        0 0 0 3px #1A1A1A;
    border: 2px solid #444;
}

/* Экран телевизора */
.tv-screen {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        inset 0 0 40px rgba(0, 0, 0, 0.95),
        0 0 0 5px #111;
    border: 4px solid #333;
}

/* Выпуклое стекло экрана (как в старых телевизорах) */
.tv-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 30%,
            transparent 70%
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.03) 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.03) 100%
        );
    pointer-events: none;
    z-index: 2;
    border-radius: 6px;
}

.main-video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Регуляторы снизу (как в старых телевизорах) */
.tv-controls-bottom {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    z-index: 3;
}

.tv-knob {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #808080, #606060);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 0.7),
        0 3px 8px rgba(0, 0, 0, 0.5);
    border: 2px solid #444;
}

.tv-knob::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    background: #FFD700;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.tv-knob::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 2px;
    height: 10px;
    background: #FFD700;
    transform: translateX(-50%);
}

/* Динамики по бокам экрана */
.tv-speakers {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 150px;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.3) 3px,
            rgba(0, 0, 0, 0.3) 5px
        ),
        linear-gradient(135deg, #444, #333);
    border-radius: 5px;
    transform: translateY(-50%);
}

.tv-speakers.left {
    left: 10px;
}

.tv-speakers.right {
    right: 10px;
}

/* Логотип "Рубин" или "Горизонт" */
.tv-logo {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFD700;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 3px;
    z-index: 3;
}

/* Сетка на экране (как в аналоговых телевизорах) */
.tv-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 2px
        );
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

/* Снег на экране (новогодний) */
.tv-snow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: tv-snow-fall 15s linear infinite;
    pointer-events: none;
    z-index: 2;
    opacity: 0.4;
}

@keyframes tv-snow-fall {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 80px;
    }
}

/* Подставка телевизора */
.tv-stand {
    position: relative;
    width: 250px;
    height: 40px;
    background: linear-gradient(135deg, #654321, #8B4513);
    margin: 0 auto;
    border-radius: 10px 10px 0 0;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.6),
        inset 0 0 10px rgba(0, 0, 0, 0.8);
    border-top: 3px solid #A0522D;
}

.tv-stand::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 10px;
    background: linear-gradient(135deg, #8B4513, #654321);
    border-radius: 5px 5px 0 0;
}

/* Эффект включения телевизора */
.tv-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        #FFD700 0%,
        rgba(255, 215, 0, 0.7) 20%,
        rgba(255, 215, 0, 0.3) 50%,
        transparent 100%);
    opacity: 0;
    animation: soviet-tv-turn-on 3s ease-out forwards;
    z-index: 3;
}

@keyframes soviet-tv-turn-on {
    0% {
        opacity: 0.8;
        transform: scale(1.2);
    }
    70% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* Декоративные лампочки сверху (как в новогодних гирляндах) */
.tv-lights {
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-around;
    z-index: 3;
}

.tv-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF4444;
    animation: light-blink 2s infinite;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
}

.tv-light:nth-child(2) {
    background: #FFD700;
    animation-delay: 0.4s;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.tv-light:nth-child(3) {
    background: #32CD32;
    animation-delay: 0.8s;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.7);
}

.tv-light:nth-child(4) {
    background: #1E90FF;
    animation-delay: 1.2s;
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.7);
}

@keyframes light-blink {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Подвал */
.footer {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    z-index: 2;
    width: 100%;
    background: linear-gradient(to top, 
        rgba(10, 26, 45, 0.9) 0%,
        rgba(10, 26, 45, 0.7) 50%,
        transparent 100%);
    margin-top: 40px;
    backdrop-filter: blur(5px);
}

.footer p {
    font-size: 1.2rem;
    color: #FFD700;
    font-family: 'Marck Script', cursive;
}

.footer .tv-model {
    font-size: 0.9rem;
    color: #87CEEB;
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
    font-style: italic;
}

/* Снежинки */
.snowflake {
    position: fixed;
    top: -10px;
    color: white;
    font-size: 20px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
    animation: snow-fall linear infinite;
}

@keyframes snow-fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .new-year-title h1 {
        font-size: 2.2rem;
    }
    
    .main-video {
        height: 300px;
    }
    
    .soviet-tv {
        padding: 15px 20px 30px;
    }
    
    .tv-handle.left,
    .tv-handle.right {
        display: none;
    }
    
    .tv-speakers {
        width: 20px;
        height: 120px;
    }
    
    .tv-controls-bottom {
        gap: 20px;
    }
    
    .tv-knob {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .new-year-title h1 {
        font-size: 1.8rem;
    }
    
    .main-video {
        height: 250px;
    }
    
    .soviet-tv {
        padding: 10px 15px 25px;
        border-width: 5px;
    }
    
    .tv-speakers {
        display: none;
    }
    
    .tv-controls-bottom {
        display: none;
    }
    
    .tv-lights {
        display: none;
    }
}
