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

body {
    font-family: 'VT323', monospace;
    background: #2a1a3e;
    min-height: 100vh;
    color: #00ff41;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.vintage-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, #3a2a4e 0%, #2a1a3e 50%),
        radial-gradient(circle at 80% 50%, #1a0a2e 0%, #2a1a3e 50%);
    z-index: -2;
}

.vintage-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 65, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 65, 0.03) 3px
        );
    z-index: -1;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(42, 26, 62, 0.8);
    border: 3px solid #00ff41;
    border-radius: 15px;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    animation: glitchIn 2s ease-out;
    width: 100%;
    box-sizing: border-box;
}

.logo-container {
    position: relative;
}

.station-logo-img {
    height: 80px;
    filter: 
        drop-shadow(0 0 10px #00ff41)
        sepia(0.3) hue-rotate(90deg);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 10px #00ff41) sepia(0.3) hue-rotate(90deg); }
    100% { filter: drop-shadow(0 0 20px #00ff41) sepia(0.5) hue-rotate(90deg); }
}

.station-info {
    text-align: center;
    flex: 1;
}

.station-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: #00ff41;
    text-shadow: 
        2px 2px 0px #ff00ff,
        4px 4px 0px #00ffff,
        0 0 20px #00ff41;
    animation: textFlicker 3s ease-in-out infinite;
}

.tagline-container {
    position: relative;
    overflow: hidden;
}

.station-tagline {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
    letter-spacing: 3px;
}

.scanline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    animation: scanlineMove 3s ease-in-out infinite;
    overflow: hidden;
}

@keyframes scanlineMove {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.player-section {
    width: 100%;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
    box-sizing: border-box;
}

.vintage-frame {
    background: linear-gradient(135deg, #3a2a4e, #1a0a2e);
    border: 4px solid #00ff41;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 10px 0px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.frame-corners {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #ff00ff;
    background: #2a1a3e;
}

.corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.visualizer {
    margin-bottom: 30px;
}

.vintage-screen {
    background: #001100;
    border: 3px solid #00ff41;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 65, 0.2),
        0 0 10px rgba(0, 255, 65, 0.3);
    position: relative;
    overflow: hidden;
}

.screen-content {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equalizer {
    display: flex;
    align-items: end;
    gap: 6px;
    height: 60px;
    z-index: 2;
    position: relative;
}

.bar {
    width: 10px;
    background: linear-gradient(to top, #00ff41, #ff00ff);
    border-radius: 2px;
    animation: equalizer 0.6s ease-in-out infinite;
    box-shadow: 0 0 5px currentColor;
}

.bar:nth-child(1) { animation-delay: 0s; height: 25px; }
.bar:nth-child(2) { animation-delay: 0.1s; height: 35px; }
.bar:nth-child(3) { animation-delay: 0.2s; height: 50px; }
.bar:nth-child(4) { animation-delay: 0.3s; height: 40px; }
.bar:nth-child(5) { animation-delay: 0.4s; height: 55px; }
.bar:nth-child(6) { animation-delay: 0.5s; height: 30px; }
.bar:nth-child(7) { animation-delay: 0.6s; height: 45px; }
.bar:nth-child(8) { animation-delay: 0.7s; height: 35px; }

.equalizer.paused .bar {
    animation-play-state: paused;
    height: 15px;
}

.static-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence baseFrequency="0.9"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.1"/></svg>');
    opacity: 0.3;
    animation: static 0.2s infinite;
    z-index: 1;
}

@keyframes static {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-1%, -1%); }
    20% { transform: translate(1%, 1%); }
    30% { transform: translate(-1%, 1%); }
    40% { transform: translate(1%, -1%); }
    50% { transform: translate(-1%, 0); }
    60% { transform: translate(1%, 0); }
    70% { transform: translate(0, -1%); }
    80% { transform: translate(0, 1%); }
    90% { transform: translate(1%, 1%); }
}

.cassette-deck {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.cassette {
    width: 300px;
    height: 120px;
    background: linear-gradient(135deg, #4a3a5e, #2a1a3e);
    border: 3px solid #00ff41;
    border-radius: 10px;
    position: relative;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.5),
        inset 0 0 10px rgba(0, 255, 65, 0.2);
    max-width: 100%;
    box-sizing: border-box;
}

.reel {
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #2a1a3e, #1a0a2e);
    border: 2px solid #ff00ff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.reel.left { left: 30px; }
.reel.right { right: 30px; }

.reel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #00ff41;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff41;
}

.tape-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 120px;
}

.track-title {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: #00ff41;
    margin-bottom: 5px;
    text-shadow: 0 0 5px #00ff41;
}

.track-artist {
    display: block;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

.control-panel {
    background: rgba(26, 10, 46, 0.8);
    border: 2px solid #00ff41;
    border-radius: 10px;
    padding: 20px;
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.vintage-btn {
    background: linear-gradient(135deg, #4a3a5e, #2a1a3e);
    border: 2px solid #ff00ff;
    border-radius: 8px;
    padding: 15px 20px;
    color: #00ff41;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 0px #1a0a2e,
        0 6px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vintage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 0px #1a0a2e,
        0 8px 15px rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 10px #00ff41;
}

.vintage-btn:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0px #1a0a2e,
        0 4px 5px rgba(0, 0, 0, 0.5);
}

.play-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, #00ff41, #00cc33);
    color: #2a1a3e;
    border-color: #00ff41;
}

.volume-btn {
    padding: 15px 20px;
}

.volume-dial {
    position: relative;
    display: flex;
    align-items: center;
}

.volume-slider {
    width: 120px;
    height: 8px;
    background: linear-gradient(90deg, #1a0a2e, #00ff41);
    border: 2px solid #ff00ff;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #00ff41, #00cc33);
    border: 2px solid #ff00ff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #00ff41;
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #00ff41, #00cc33);
    border: 2px solid #ff00ff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #00ff41;
}

.widget-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.widget-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    font-size: 0.7rem;
}

.widget-btn span:first-child {
    font-size: 1.5rem;
}

.stream-status {
    text-align: center;
}

.vintage-display {
    background: #001100;
    border: 2px solid #00ff41;
    border-radius: 5px;
    padding: 10px;
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.2);
}

.display-lights {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
    animation: blink 2s infinite;
}

.status-dot.online {
    background: #00ff41;
    box-shadow: 0 0 10px #00ff41;
}

.status-text {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: #00ff41;
    text-shadow: 0 0 5px #00ff41;
    letter-spacing: 2px;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: rgba(42, 26, 62, 0.8);
    border: 2px solid #00ff41;
    border-radius: 10px;
    animation: fadeIn 1s ease-out 0.4s both;
}

.copyright {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: #00ff41;
    opacity: 0.8;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 26, 62, 0.95);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #3a2a4e, #1a0a2e);
    border: 3px solid #00ff41;
    border-radius: 20px;
    max-width: 95%;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #00ff41;
    background: rgba(26, 10, 46, 0.8);
}

.modal-header h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
}

.close-btn {
    background: none;
    border: none;
    color: #ff00ff;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'VT323', monospace;
}

.close-btn:hover {
    opacity: 1;
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
}

.modal-body {
    padding: 0;
    background: rgba(0, 17, 0, 0.8);
    position: relative;
    overflow: auto;
    flex: 1;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a2a4e, #1a0a2e);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 2px solid #00ff41;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 255, 65, 0.3);
    border-top: 4px solid #00ff41;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 20px #00ff41;
}

.loading-text {
    color: #00ff41;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    text-align: center;
    text-shadow: 0 0 10px #00ff41;
    letter-spacing: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glitchIn {
    0% {
        transform: translateX(-20px);
        opacity: 0;
        filter: hue-rotate(90deg);
    }
    20% {
        transform: translateX(20px);
        filter: hue-rotate(180deg);
    }
    40% {
        transform: translateX(-10px);
        filter: hue-rotate(270deg);
    }
    60% {
        transform: translateX(10px);
        filter: hue-rotate(360deg);
    }
    80% {
        transform: translateX(-5px);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
        filter: hue-rotate(0deg);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes equalizer {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

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

@keyframes textFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
    51% { opacity: 1; }
    52% { opacity: 0.9; }
    53% { opacity: 1; }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }
    
    .station-logo-img {
        height: 60px;
    }
    
    .station-name {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .station-tagline {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .vintage-frame {
        padding: 15px;
        border-width: 2px;
    }
    
    .frame-corners .corner {
        width: 15px;
        height: 15px;
        border-width: 2px;
    }
    
    .vintage-screen {
        padding: 15px;
        border-width: 2px;
    }
    
    .screen-content {
        height: 60px;
    }
    
    .equalizer {
        gap: 4px;
        height: 50px;
    }
    
    .bar {
        width: 8px;
    }
    
    .cassette {
        width: 280px;
        height: 100px;
        border-width: 2px;
    }
    
    .reel {
        width: 40px;
        height: 40px;
        border-width: 1px;
    }
    
    .reel.left { left: 25px; }
    .reel.right { right: 25px; }
    
    .reel::before {
        width: 15px;
        height: 15px;
    }
    
    .tape-label {
        width: 100px;
    }
    
    .track-title {
        font-size: 0.7rem;
    }
    
    .track-artist {
        font-size: 1rem;
    }
    
    .control-panel {
        padding: 15px;
        border-width: 2px;
    }
    
    .control-buttons {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .vintage-btn {
        padding: 12px 18px;
        font-size: 0.7rem;
        border-width: 1px;
        min-height: 44px;
        min-width: 44px;
    }
    
    .play-btn {
        padding: 12px 20px;
    }
    
    .volume-dial {
        flex: 1;
        min-width: 100px;
    }
    
    .volume-slider {
        width: 100%;
        height: 6px;
        border-width: 1px;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
        border-width: 1px;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border-width: 1px;
    }
    
    .widget-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .widget-btn {
        width: 100%;
        max-width: 200px;
        padding: 12px 10px;
        font-size: 0.6rem;
        min-height: 44px;
        border-width: 1px;
        margin: 0 auto;
    }
    
    .widget-btn span:first-child {
        font-size: 1.2rem;
    }
    
    .vintage-display {
        padding: 8px;
        border-width: 1px;
    }
    
    .status-text {
        font-size: 1.2rem;
    }
    
    .footer {
        margin-top: 30px;
        padding: 15px;
        border-width: 1px;
    }
    
    .copyright {
        font-size: 1rem;
    }
    
.modal-content {
        max-width: 98%;
        max-height: 98vh;
        border-width: 2px;
    }
    
    .modal-header {
        padding: 15px;
        border-width: 2px;
    }
    
    .modal-header h2 {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .close-btn {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .loading-overlay {
        border-width: 2px;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .loading-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .header {
        padding: 12px;
        gap: 12px;
    }
    
    .station-logo-img {
        height: 50px;
    }
    
    .station-name {
        font-size: 1.4rem;
    }
    
    .station-tagline {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .vintage-frame {
        padding: 12px;
    }
    
    .vintage-screen {
        padding: 12px;
    }
    
    .screen-content {
        height: 50px;
    }
    
    .equalizer {
        gap: 3px;
        height: 40px;
    }
    
    .bar {
        width: 6px;
    }
    
    .cassette {
        width: 240px;
        height: 85px;
    }
    
    .reel {
        width: 35px;
        height: 35px;
    }
    
    .reel.left { left: 20px; }
    .reel.right { right: 20px; }
    
    .reel::before {
        width: 12px;
        height: 12px;
    }
    
    .tape-label {
        width: 85px;
    }
    
    .track-title {
        font-size: 0.6rem;
    }
    
    .track-artist {
        font-size: 0.9rem;
    }
    
    .control-panel {
        padding: 12px;
    }
    
    .control-buttons {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .vintage-btn {
        padding: 10px 14px;
        font-size: 0.6rem;
        min-height: 40px;
        min-width: 40px;
    }
    
    .play-btn {
        padding: 10px 16px;
    }
    
    .widget-buttons {
        gap: 8px;
        margin-bottom: 12px;
        flex-direction: column;
        width: 100%;
    }
    
    .widget-btn {
        width: 100%;
        max-width: 180px;
        padding: 10px 8px;
        font-size: 0.5rem;
        min-height: 40px;
        margin: 0 auto;
    }
    
    .widget-btn span:first-child {
        font-size: 1rem;
    }
    
    .status-text {
        font-size: 1rem;
    }
    
    .footer {
        margin-top: 20px;
        padding: 12px;
    }
    
    .copyright {
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-header h2 {
        font-size: 0.8rem;
    }
    
    .loading-text {
        font-size: 0.6rem;
    }
}

@media (max-width: 360px) {
    .station-name {
        font-size: 1.2rem;
    }
    
    .cassette {
        width: 200px;
        height: 75px;
    }
    
    .reel.left { left: 15px; }
    .reel.right { right: 15px; }
    
    .tape-label {
        width: 70px;
    }
    
    .track-title {
        font-size: 0.5rem;
    }
    
    .track-artist {
        font-size: 0.8rem;
    }
    
    .vintage-btn {
        padding: 8px 12px;
        font-size: 0.5rem;
        min-height: 36px;
        min-width: 36px;
    }
    
    .widget-btn {
        width: 100%;
        max-width: 160px;
        padding: 8px 6px;
        font-size: 0.4rem;
        min-height: 36px;
        margin: 0 auto;
    }
    
    .widget-btn span:first-child {
        font-size: 0.9rem;
    }
}