:root {
    --bg-color: #050505;
    --text-color: #33ff00;
    /* Classic Terminal Green */
    --accent-color: #ff3300;
    /* Weak Signal Red */
    --glitch-color: #00ffff;
    /* Ghost Blue */
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CRT Effects */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 10;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.5'/%3E%3C/svg%3E");
}

.container {
    text-align: center;
    z-index: 20;
    max-width: 600px;
    padding: 2rem;
    border: 1px solid #1a1a1a;
    box-shadow: 0 0 20px rgba(51, 255, 0, 0.1);
}

/* Header */
.broadcast-header {
    margin-bottom: 2rem;
}

.status-light {
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: 0 0 10px var(--accent-color);
    animation: pulse 2s infinite;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 4px;
    text-shadow: 2px 2px var(--accent-color);
    margin: 0;
}

.frequency {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Spotify Wrapper */
.player-wrapper {
    margin: 2rem 0;
    position: relative;
}

.visualizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Align bars to bottom */
    gap: 4px;
    margin-bottom: 1rem;
    opacity: 0.5;
    height: 50px;
    /* Fixed height to prevent page shaking */
}

.bar {
    width: 4px;
    background-color: var(--text-color);
    transition: height 0.1s ease;
}

iframe {
    transition: filter 0.3s ease;
}



.caption {
    font-style: italic;
    opacity: 0.6;
    margin-top: 1rem;
}

/* Footer & Hidden Text */
.terminal-footer {
    font-size: 0.7rem;
    border-top: 1px dashed #333;
    padding-top: 1rem;
}

.blink {
    animation: blink 1s infinite step-end;
}

.host-link {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--text-color);
}

/* RSS Section */
.rss-container {
    margin-top: 2rem;
    border-top: 1px dashed #333;
    padding-top: 1rem;
}

.rss-title {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.rss-box {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.rss-box input {
    background: #000;
    border: 1px solid #333;
    color: var(--text-color);
    font-family: inherit;
    padding: 0.5rem;
    width: 70%;
    font-size: 0.8rem;
}

.rss-box button {
    background: var(--text-color);
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    font-size: 0.8rem;
}

.rss-box button:hover {
    background: var(--glitch-color);
}

.rss-help {
    font-size: 0.7rem;
    opacity: 0.5;
    font-style: italic;
}

.hidden-text {
    color: #0a0a0a;
    /* Almost invisible */
    user-select: none;
    margin-top: 2rem;
}

.hidden-text:hover {
    color: var(--glitch-color);
    text-shadow: 0 0 5px var(--glitch-color);
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Glitch Trigger Class */
.glitch.active {
    color: var(--glitch-color);
}