/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Custom Properties for Light/Dark Theme */
:root {
    /* Light theme (default) */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-bg-dark: rgba(30, 30, 30, 0.95);
    --text-primary: #333;
    --text-primary-dark: #ffffff;
    --text-secondary: #666;
    --text-secondary-dark: #cccccc;
    --accent-color: #667eea;
    --accent-color-rgb: 102, 126, 234; /* RGB values of #667eea */
    --accent-color-dark: #7c3aed;
    --accent-color-dark-rgb: 124, 58, 237; /* RGB values of #7c3aed */;
    --border-color: #e9ecef;
    --border-color-dark: #404040;
    --modal-overlay: rgba(0, 0, 0, 0.7);
    --modal-overlay-dark: rgba(0, 0, 0, 0.85);
    --input-bg: #ffffff;
    --input-bg-dark: #2a2a2a;
    --menu-hover: #f8f9fa;
    --menu-hover-dark: #3a3a3a;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
}

/* Dark theme media query */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-gradient: var(--bg-gradient-dark);
        --card-bg: var(--card-bg-dark);
        --text-primary: var(--text-primary-dark);
        --text-secondary: var(--text-secondary-dark);
        --accent-color: var(--accent-color-dark);
        --accent-color-rgb: var(--accent-color-dark-rgb);
        --border-color: var(--border-color-dark);
        --modal-overlay: var(--modal-overlay-dark);
        --input-bg: var(--input-bg-dark);
        --menu-hover: var(--menu-hover-dark);
        --shadow-light: var(--shadow-dark);
    }
}

/* Manual theme overrides */
[data-theme="light"] {
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #333;
    --text-secondary: #666;
    --accent-color: #667eea;
    --accent-color-rgb: 102, 126, 234; /* RGB values of #667eea */
    --border-color: #e9ecef;
    --modal-overlay: rgba(0, 0, 0, 0.7);
    --input-bg: #ffffff;
    --menu-hover: #f8f9fa;
    --shadow-light: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --card-bg: rgba(30, 30, 30, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-color: #7c3aed;
    --accent-color-rgb: 124, 58, 237; /* RGB values of #7c3aed */
    --border-color: #404040;
    --modal-overlay: rgba(0, 0, 0, 0.85);
    --input-bg: #2a2a2a;
    --menu-hover: #3a3a3a;
    --shadow-light: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .logo-text {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 30%, #ec4899 70%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .logo-icon {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 30%, #ec4899 70%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(124, 58, 237, 0.4));
}

[data-theme="dark"] .header h1 {
    text-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

[data-theme="dark"] .logo-text::before {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(168, 85, 247, 0.15) 30%, rgba(236, 72, 153, 0.15) 70%, rgba(245, 158, 11, 0.15) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    transition: color 0.3s ease, background 0.3s ease;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px var(--shadow-light);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header h1 {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.beta-indicator {
    background: var(--accent-color);
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    animation: pulse-beta 2s infinite;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.logo-text {
    background: linear-gradient(135deg, var(--accent-color) 0%, #764ba2 50%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.logo-text::before {
    content: 'Rrradio';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 50%, rgba(255, 107, 107, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(8px);
    z-index: -1;
}

.logo-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #764ba2 50%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.header h1 i {
    animation: radioWave 3s ease-in-out infinite;
}

@keyframes radioWave {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
    }
    25% { 
        transform: scale(1.05) rotate(-2deg);
        filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.4));
    }
    50% { 
        transform: scale(1.1) rotate(0deg);
        filter: drop-shadow(0 6px 12px rgba(102, 126, 234, 0.5));
    }
    75% { 
        transform: scale(1.05) rotate(2deg);
        filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.4));
    }
}

.header h1 i {
    animation: pulse 2s infinite;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-theme-toggle {
    background: none;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-theme-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent-color);
    transform: scale(1.1);
}

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

/* Animation for the beta indicator */
@keyframes pulse-beta {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(var(--accent-color-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0);
    }
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--menu-hover);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--text-secondary);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Main content */
.main-content {
    flex: 1;
    margin-bottom: 120px;
}

/* No stations message */
.no-stations {
    text-align: center;
    background: var(--card-bg);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.no-stations i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0.7;
}

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

.no-stations p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Stations grid */
.stations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    overflow: visible;
}

.station-card {
    flex: 1 0 200px;
    max-width: 350px;
    min-width: 200px;
}

/* Station card */
.station-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px var(--shadow-light);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.station-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.station-card.menu-active {
    z-index: 100;
}

.station-card.playing {
    background: linear-gradient(to bottom right, var(--card-bg), rgba(var(--accent-color-rgb), 0.05));
    border: 3px solid var(--accent-color);
    box-shadow: 0 8px 20px rgba(var(--accent-color-rgb), 0.2);
    position: relative;
}

.station-card.playing::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    animation: pulse 1.5s infinite;
}

.station-card.playing .station-info h3 {
    color: var(--text-primary);
    font-weight: 700;
}

.station-card.crossfading {
    background: var(--card-bg);
    border: 2px solid #ffa500;
    position: relative;
    overflow: hidden;
}

.station-card.crossfading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 165, 0, 0.3), 
        transparent);
    animation: crossfade-sweep 2s ease-in-out infinite;
    z-index: 1;
}

.station-card.crossfading .station-info {
    position: relative;
    z-index: 2;
}

.station-card.crossfading .station-info h3 {
    color: var(--text-primary);
    font-weight: 700;
}

.station-card.crossfading .station-image-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid #ffa500;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
    background: rgba(255, 255, 255, 0.9);
}

@keyframes crossfade-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

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

.station-image-container {
    position: relative;
    width: 100%;
    height: 80px;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.station-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px;
    box-sizing: border-box;
    display: block;
}

.station-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f1f3f4, #e8eaed);
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.placeholder-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    object-position: center;
    opacity: 0.8;
}

.station-image-placeholder i {
    font-size: 2.5rem;
    opacity: 0.7;
}

.station-image-placeholder span {
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.station-info h3 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.station-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.station-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    position: relative;
    z-index: 10;
}

.station-menu-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.station-menu-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent-color);
    transform: scale(1.1);
}

.station-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid var(--border-color);
    min-width: 120px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
    overflow: visible;
}

.station-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.station-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
    border-radius: 0;
}

.station-menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.station-menu-item:last-child {
    border-radius: 0 0 8px 8px;
}

.station-menu-item:only-child {
    border-radius: 8px;
}

.station-menu-item:hover {
    background: var(--menu-hover);
}

.station-menu-item:last-child:hover {
    background: #ffeaea;
    color: #dc3545;
}

.btn-small {
    padding: 8px 12px;
    font-size: 14px;
    min-width: auto;
}

.btn-control {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--accent-color);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-control:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.btn-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-control:disabled:hover {
    transform: none;
    background: none;
}

/* Audio Player */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 20px;
    box-shadow: 0 -8px 32px var(--shadow-light);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.current-station-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 8px;
    box-sizing: border-box;
}

.player-details {
    flex: 1;
}

.current-station-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

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

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
}

.volume-slider {
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    outline: none;
    cursor: pointer;
}

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

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay);
    backdrop-filter: blur(5px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    transition: background 0.3s ease;
}

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

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

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    transition: background 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--menu-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 30px 30px 15px 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 0 30px 20px 30px;
}

/* Settings Modal Styles */
.settings-group {
    margin-bottom: 30px;
}

.settings-group h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-group h3 i {
    color: var(--accent-color);
    font-size: 1rem;
}

.setting-item {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--menu-hover);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Version info styles */
.version-info {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.05) 0%, 
        rgba(118, 75, 162, 0.05) 50%, 
        rgba(255, 107, 107, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.version-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(102, 126, 234, 0.1), 
        transparent);
    transition: left 0.5s ease;
}

.version-info:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.version-info:hover::before {
    left: 100%;
}

.version-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.version-item:last-child {
    border-bottom: none;
}

.version-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-width: 90px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.version-label i {
    font-size: 0.8rem;
    opacity: 0.7;
    width: 12px;
    text-align: center;
}

.version-value {
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Segoe UI', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    background: var(--input-bg);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.version-value:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

.setting-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.setting-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.setting-label input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.setting-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.setting-label-text {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.setting-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.4;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.slider-container input[type="range"] {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-value {
    min-width: 40px;
    text-align: center;
    font-weight: 500;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.setting-select {
    width: 100%;
    padding: 10px 15px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    margin-bottom: 5px;
}

.setting-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.btn-icon:hover {
    background: var(--menu-hover);
    transform: scale(1.05);
}

/* Drag and drop styles */
.drag-handle {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    opacity: 0.7;
    transition: all 0.2s ease;
    z-index: 10;
}

.drag-handle:hover {
    opacity: 1;
    background-color: rgba(var(--accent-color-rgb), 0.2);
}

.station-card {
    position: relative;
}

.station-card.dragging {
    opacity: 0.7;
    cursor: grabbing;
    transform: scale(0.95);
    z-index: 1000;
    box-shadow: 0 15px 30px rgba(var(--accent-color-rgb), 0.3);
    background: linear-gradient(to bottom, rgba(var(--accent-color-rgb), 0.05), var(--card-bg));
}

.station-card.drag-over {
    border: 2px dashed var(--accent-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 0.9em;
    }
    
    .logo-icon {
        font-size: 1.8rem;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    /* Compact Add Station button for tablets */
    #addStationBtn {
        padding: 10px 16px;
        font-size: 14px;
        gap: 6px;
    }
    
    .stations-grid {
        gap: 20px;
    }
    
    .station-card {
        flex: 1 0 100%;
        max-width: 100%;
    }
    
    .audio-player {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .player-info {
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 20px 20px 10px 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 0.85em;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    /* Ultra-compact Add Station button for mobile - icon only */
    #addStationBtn {
        padding: 8px;
        min-width: 40px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        gap: 0;
        justify-content: center;
    }
    
    /* Hide the text, keep only the icon */
    #addStationBtn .btn-text {
        display: none;
    }
    
    #addStationBtn .fas {
        font-size: 18px;
        margin: 0;
    }
    
    /* Compact version info for mobile */
    .version-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 4px 0;
    }
    
    .version-label {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }
    
    .version-value {
        font-size: 0.8rem;
        padding: 2px 6px;
    }
    
    .station-card {
        padding: 14px;
    }
    
    .volume-control {
        display: none;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .header-actions {
        gap: 10px;
    }
    
    /* Even more compact for very small screens */
    #addStationBtn {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    
    #addStationBtn .fas {
        font-size: 16px;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Animation for the playing station indicator */
@keyframes pulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0.7);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 5px rgba(var(--accent-color-rgb), 0);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0);
    }
}
