/* ============================================
   Sound System Radio - Lilac Theme Stylesheet
   ============================================ */

:root {
    --primary: #9b59b6;
    --primary-light: #c39bd3;
    --primary-dark: #7d3c98;
    --primary-darker: #6c3483;
    --accent: #d2b4de;
    --bg-dark: #1a0a2e;
    --bg-medium: #2d1b4e;
    --bg-light: #3d2b5e;
    --bg-card: #2a1845;
    --bg-card-hover: #3a2860;
    --text-primary: #f0e6f6;
    --text-secondary: #b8a0cc;
    --text-muted: #8b7399;
    --border: rgba(155, 89, 182, 0.2);
    --border-light: rgba(155, 89, 182, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #9b59b6, #8e44ad, #7d3c98);
    --gradient-hero: linear-gradient(135deg, #2d1b4e 0%, #4a2673 50%, #2d1b4e 100%);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}
/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background animated pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(155, 89, 182, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(142, 68, 173, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(125, 60, 152, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* ============================================
   Header
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 10, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 1px;
}

.logo i {
    color: var(--primary);
    font-size: 1.6rem;
    animation: pulse-glow 2s infinite;
}

.logo strong {
    font-weight: 700;
    color: var(--primary-light);
}

@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 5px rgba(155, 89, 182, 0.5); }
    50% { text-shadow: 0 0 20px rgba(155, 89, 182, 0.8); }
}

.nav {
    display: flex;
    gap: 5px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(155, 89, 182, 0.1);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--gradient-primary);
    box-shadow: 0 2px 12px rgba(155, 89, 182, 0.3);
}

/* ============================================
   Main Content
   ============================================ */
.main {
    padding: 30px 0 120px;
    min-height: calc(100vh - 64px);
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero */
.hero {
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(155, 89, 182, 0.02) 30px,
        rgba(155, 89, 182, 0.02) 60px
    );
    animation: hero-pattern 20s linear infinite;
}

@keyframes hero-pattern {
    from { transform: translate(0, 0); }
    to { transform: translate(60px, 60px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 i {
    -webkit-text-fill-color: var(--primary-light);
    margin-right: 8px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary);
}

/* ============================================
   Sets Grid
   ============================================ */
.sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.set-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.set-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.set-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(155, 89, 182, 0.15);
}

.set-card:hover::before {
    opacity: 1;
}

.set-card.playing {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.2);
}

.set-card.playing::before {
    opacity: 1;
}

.set-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.set-card.playing .set-card-icon {
    animation: pulse-icon 1.5s infinite;
}

@keyframes pulse-icon {
    0%, 100% { box-shadow: 0 0 0 0 rgba(155, 89, 182, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(155, 89, 182, 0); }
}

.set-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.set-card-genre {
    font-size: 0.8rem;
    color: var(--primary-light);
    background: rgba(155, 89, 182, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.set-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.set-card-play {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.set-card:hover .set-card-play {
    opacity: 1;
}

/* ============================================
   Genres
   ============================================ */
.genres-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.genre-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.genre-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(155, 89, 182, 0.15);
}

.genre-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 14px;
}

.genre-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.genre-card-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.genre-card-subs {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.genre-sub-tag {
    font-size: 0.75rem;
    color: var(--primary-light);
    background: rgba(155, 89, 182, 0.12);
    padding: 2px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.genre-sub-tag:hover {
    background: rgba(155, 89, 182, 0.25);
    color: white;
}

/* ============================================
   Search
   ============================================ */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    max-width: 600px;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.15);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 10px rgba(155, 89, 182, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.btn-back {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.btn-back:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

/* ============================================
   Player Bar
   ============================================ */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 10, 46, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 12px 20px;
    transition: transform 0.4s ease;
}

.player-bar.hidden {
    transform: translateY(100%);
}

.player-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-info {
    flex: 0 0 250px;
    min-width: 0;
}

.player-now-playing {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-now-playing > i {
    color: var(--primary);
    font-size: 1.1rem;
    animation: pulse-glow 2s infinite;
}

.player-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-genre {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.player-rotation-badge {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--primary-light);
    background: rgba(155, 89, 182, 0.15);
    border: 1px solid rgba(155, 89, 182, 0.35);
    border-radius: 20px;
    padding: 1px 8px;
    margin-top: 3px;
    width: fit-content;
    letter-spacing: 0.03em;
}

.player-rotation-badge i {
    animation: spin-slow 3s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.player-btn:hover {
    color: var(--text-primary);
    background: rgba(155, 89, 182, 0.15);
}

.player-btn-play {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
}

.player-btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(155, 89, 182, 0.4);
    color: white;
    background: var(--gradient-primary);
}

.player-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 45px;
    text-align: center;
}

.player-progress {
    flex: 1;
    height: 5px;
    background: var(--bg-light);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.player-progress:hover {
    height: 7px;
}

.player-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 130px;
}

.player-volume input[type="range"] {
    -webkit-appearance: none;
    width: 80px;
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    outline: none;
}

.player-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-light);
    cursor: pointer;
    transition: var(--transition);
}

.player-volume input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary);
    transform: scale(1.2);
}

/* ============================================
   Loading & Empty States
   ============================================ */
.loading {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
    font-size: 1rem;
}

.empty-state i {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

/* ============================================
   Admin Styles
   ============================================ */
.admin-header {
    background: rgba(26, 10, 46, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.admin-nav {
    display: flex;
    gap: 5px;
}

.admin-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-nav a:hover {
    color: var(--text-primary);
    background: rgba(155, 89, 182, 0.1);
}

.admin-nav a.active {
    color: white;
    background: var(--gradient-primary);
}

.admin-main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 20px;
}

.admin-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card h3 i {
    color: var(--primary);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-medium);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.15);
}

.form-control option {
    background: var(--bg-medium);
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.admin-table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.admin-table td {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.admin-table tr:hover td {
    background: rgba(155, 89, 182, 0.05);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-edit {
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: #27ae60;
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-success:hover {
    background: #219a52;
}

.badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-sub {
    background: rgba(155, 89, 182, 0.15);
    color: var(--primary-light);
}

.badge-parent {
    background: rgba(39, 174, 96, 0.15);
    color: #2ecc71;
}

/* Admin Login */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box .logo {
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.login-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.login-box .form-group {
    text-align: left;
}

.login-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.alert-success {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #2ecc71;
}

/* Upload area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(155, 89, 182, 0.03);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(155, 89, 182, 0.08);
}

.upload-area i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.upload-area p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.upload-area .hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 6px;
}

.upload-progress {
    margin-top: 20px;
    display: none;
    background: var(--bg-card);
    border: 1px solid rgba(155, 89, 182, 0.25);
    border-radius: 10px;
    padding: 16px 20px;
}

.upload-progress.active {
    display: block;
}

.progress-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.progress-pct {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-light);
    min-width: 40px;
    text-align: right;
}

.progress-bar-container {
    height: 10px;
    background: var(--bg-light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    width: 0%;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    min-height: 20px;
}

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    text-align: center;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 1.1rem;
}

.stat-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 12px 0;
        gap: 10px;
    }

    .nav {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .sets-grid {
        grid-template-columns: 1fr;
    }

    .player-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .player-info {
        flex: 1 1 100%;
        order: 1;
    }

    .player-controls {
        order: 2;
    }

    .player-progress-container {
        flex: 1 1 100%;
        order: 4;
    }

    .player-volume {
        flex: 0;
        order: 3;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .nav-link span {
        display: none;
    }

    .genres-container {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   Home Genres Quick-Play Grid
   ============================================ */
.home-genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 12px;
}

.home-genre-tile {
    background: var(--bg-card);
    border: 1px solid rgba(155, 89, 182, 0.15);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.home-genre-tile:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(155, 89, 182, 0.2);
}
.home-genre-icon {
    font-size: 1.8rem;
    color: var(--primary-light);
    margin-bottom: 10px;
}
.home-genre-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.home-genre-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.home-genre-tile:hover .home-genre-play {
    opacity: 1;
}

/* ============================================
   Schedule / Palinsesto
   ============================================ */
.schedule-container {
    margin-bottom: 30px;
}

.schedule-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding: 10px 16px;
    background: rgba(155, 89, 182, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(155, 89, 182, 0.15);
}
.schedule-header-info i { color: var(--primary-light); }
.schedule-header-info strong { color: var(--primary-light); }

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.schedule-row {
    display: grid;
    grid-template-columns: 140px 1fr auto auto;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.schedule-row:hover {
    border-color: rgba(155, 89, 182, 0.3);
    background: rgba(42, 24, 69, 0.9);
}

/* Currently playing row in schedule */
.schedule-now {
    border-color: var(--primary);
    background: rgba(155, 89, 182, 0.1);
    box-shadow: 0 0 18px rgba(155, 89, 182, 0.12);
}
.schedule-playing {
    border-color: var(--primary) !important;
    background: rgba(155, 89, 182, 0.12) !important;
}

/* Time column */
.schedule-time-col {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.schedule-start, .schedule-end {
    font-family: 'Inter', monospace;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
}
.schedule-arrow {
    color: var(--primary-light);
    font-size: 0.7rem;
}

/* Info column */
.schedule-info-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.schedule-set-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.schedule-set-genre {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.schedule-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #e74c3c;
    width: fit-content;
}
.schedule-live-badge i {
    font-size: 0.5rem;
    animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* Duration column */
.schedule-dur-col {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
.schedule-dur-col i { color: var(--primary-light); font-size: 0.7rem; }

/* Play button column */
.schedule-play-col {
    flex-shrink: 0;
}
.schedule-play-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}
.schedule-row:hover .schedule-play-btn {
    opacity: 1;
}
.schedule-now .schedule-play-btn {
    opacity: 1;
}
.schedule-play-btn:hover {
    transform: scale(1.1);
}

/* Responsive schedule */
@media (max-width: 768px) {
    .schedule-row {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 12px 14px;
    }
    .schedule-time-col {
        grid-column: 1 / -1;
    }
    .schedule-dur-col {
        display: none;
    }
    .home-genres-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
}
