/* ============================================
   SoundClash Radio - Stili Principali
   ============================================ */

:root {
    --primary-color: #ff5500;
    --secondary-color: #ff8800;
    --dark-bg: #0a0e1a;
    --card-bg: rgba(20, 25, 45, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #b0b8d4;
    --accent-glow: rgba(255, 85, 0, 0.3);
    --success-color: #10b981;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   Background Animation
   ============================================ */

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 85, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 136, 0, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0e1a 0%, #141929 100%);
    z-index: -1;
    animation: backgroundPulse 20s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   Header
   ============================================ */

.radio-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.radio-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--accent-glow);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

.radio-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 30px var(--accent-glow);
}

.radio-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

/* ============================================
   Player Container
   ============================================ */

.player-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px var(--accent-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Player Status */
.player-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: var(--success-color);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--success-color);
}

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

.status-text {
    font-weight: 600;
    color: var(--success-color);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.listeners-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Start Radio Overlay */
.start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.start-overlay.hidden {
    display: none;
}

.start-content {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.start-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

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

.start-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.start-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.start-button {
    padding: 15px 40px;
    font-size: 1.2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.start-button:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 72, 72, 0.3);
}

/* Now Playing Section */
.now-playing {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    max-width: 100%; /* Previene overflow */
    overflow: hidden; /* Nasconde elementi che escono */
}

.artwork {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(255, 85, 0, 0.3);
    position: relative;
}

.artwork-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: rgba(0, 0, 0, 0.3);
}

.track-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info {
    flex: 1;
    min-width: 0; /* Importante per ellipsis in flexbox */
    max-width: 100%; /* Forza rispetto del container */
}

.track-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; /* Previene overflow */
}

.track-artist {
    font-size: 1.1rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; /* Previene overflow */
}

/* SoundCloud Widget - Nascosto (solo audio) */
.player-widget {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    display: none; /* Nascondi completamente il widget visivo */
}

.player-widget iframe {
    display: none; /* Doppia sicurezza */
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Live Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.live-dot {
    width: 14px;
    height: 14px;
    background: #ff0000;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

@keyframes livePulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.live-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.control-btn:active {
    transform: scale(0.95);
}

.play-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.play-btn:hover {
    box-shadow: 0 10px 40px var(--accent-glow);
}

.control-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
}

.volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 85, 0, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 85, 0, 0.5);
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 45px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ============================================
   Playlist Section
   ============================================ */

.playlist-section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.playlist {
    max-height: 400px;
    overflow-y: auto;
}

.playlist-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 85, 0, 0.3);
    transform: translateX(5px);
}

.playlist-item.active {
    background: rgba(255, 85, 0, 0.15);
    border-left: 4px solid var(--primary-color);
    scroll-margin: 20px; /* Spazio durante scroll */
}

/* Smooth scroll per il container playlist */
#playlist {
    scroll-behavior: smooth;
}

.playlist-item-number {
    width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
}

.playlist-item.active .playlist-item-number {
    color: var(--primary-color);
}

.playlist-item-info {
    flex: 1;
    min-width: 0;
}

.playlist-item-title {
    font-weight: 500;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-artist {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-playing {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equalizer {
    display: flex;
    gap: 2px;
    height: 16px;
    align-items: flex-end;
}

.equalizer-bar {
    width: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: equalize 1s ease-in-out infinite;
}

.equalizer-bar:nth-child(2) {
    animation-delay: 0.2s;
}

.equalizer-bar:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes equalize {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

/* Scrollbar */
.playlist::-webkit-scrollbar {
    width: 8px;
}

.playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb {
    background: rgba(255, 85, 0, 0.5);
    border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ============================================
   Add Track Section
   ============================================ */

.add-track-section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* Password Protection */
.password-prompt {
    text-align: center;
    padding: 30px 20px;
}

.password-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.password-input-group {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.password-input {
    flex: 1;
    min-width: 200px;
}

.btn-unlock {
    padding: 15px 30px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-unlock:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
}

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

.password-error {
    color: #ff4444;
    margin-top: 15px;
    font-size: 0.9rem;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.add-track-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    position: relative;
}

.fetch-status {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.fetch-status.loading {
    color: var(--primary-color);
    animation: pulse 1.5s ease-in-out infinite;
}

.fetch-status.success {
    color: var(--success-color);
}

.fetch-status.error {
    color: #ff4444;
}

.form-input {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px var(--accent-glow);
}
.form-input::placeholder {
    color: var(--text-secondary);
}

.terms-acceptance {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    color: var(--text-secondary);
}

.checkbox-label strong {
    color: var(--primary-color);
}

.terms-link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: var(--secondary-color);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

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

/* ============================================
   Statistics Section
   ============================================ */

.stats-section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 40px; /* Spazio sopra per separare da Aggiungi Traccia */
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Graph */
.stats-graph {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.graph-title {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.graph-container {
    position: relative;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 10px;
    padding: 10px 0;
}

.graph-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
}

.graph-bar {
    flex: 1;
    max-width: 60px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: all 0.3s ease;
    min-height: 10px;
}

.graph-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.graph-bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.graph-bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

/* ============================================
   Support Section
   ============================================ */

.support-section {
    margin-top: 40px;
    padding: 50px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.support-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.05) 0%, 
        rgba(118, 75, 162, 0.05) 100%);
    pointer-events: none;
}

.support-content {
    position: relative;
    z-index: 1;
}

.support-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.support-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.support-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.support-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.btn-kofi {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #29abe0 0%, #00b9fe 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(41, 171, 224, 0.3);
}

.btn-kofi:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(41, 171, 224, 0.5);
    background: linear-gradient(135deg, #00b9fe 0%, #29abe0 100%);
}

.btn-kofi:active {
    transform: translateY(-1px);
}

.support-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================
   Live Streaming Banner
   ============================================ */

.live-streaming-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.live-streaming-banner:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.banner-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.banner-content {
    flex: 1;
}

.banner-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.banner-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.banner-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.banner-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
    .live-streaming-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .banner-icon {
        font-size: 2.5rem;
    }
    
    .banner-title {
        font-size: 1.1rem;
    }
    
    .banner-button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Footer
   ============================================ */

.radio-footer {
    margin-top: 60px;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.radio-footer p {
    margin: 10px 0;
    font-size: 0.95rem;
}

.radio-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.radio-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .radio-title {
        font-size: 2rem;
    }
    
    .player-container {
        padding: 20px;
    }
    
    .now-playing {
        flex-direction: column;
        text-align: center;
    }
    
    .track-artwork {
        width: 100px;
        height: 100px;
    }
    
    .track-title {
        font-size: 1.2rem;
        max-width: 100%;
        padding: 0 10px; /* Padding per evitare che tocchi i bordi */
    }
    
    .track-artist {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .player-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .live-indicator {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .live-text {
        font-size: 0.8rem;
    }
    
    .volume-control {
        width: 100%;
        justify-content: center;
    }
    
    .volume-slider {
        width: 150px;
    }
    
    .support-section {
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .support-icon {
        font-size: 3rem;
    }
    
    .support-title {
        font-size: 1.4rem;
    }
    
    .support-description {
        font-size: 0.9rem;
    }
    
    .btn-kofi {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
