/* ============================================
   AUDIOSSEYA — Твоя музыкальная вселенная
   Стиль: Тёмный, фиолетово-зелёный акцент
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-hover: #282828;
    --bg-input: #1e1e1e;
    
    --accent: #6C3CE1;
    --accent-hover: #7C4CE1;
    --accent-green: #1DB954;
    --accent-green-hover: #1ED760;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --gradient: linear-gradient(135deg, #6C3CE1, #1DB954);
    --gradient-hover: linear-gradient(135deg, #7C4CE1, #1ED760);
    
    --shadow: 0 8px 32px rgba(108, 60, 225, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 50px;
    
    --nav-height: 65px;
    --player-height: 75px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}
/* ===== ЭКВАЛАЙЗЕР ===== */
.equalizer-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 12px 10px 14px;
    margin: 8px 0 12px;
    border: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
}

.eq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 4px;
}

.eq-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.eq-reset {
    font-size: 11px;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    background: rgba(108, 60, 225, 0.12);
    color: var(--accent);
    font-weight: 600;
    transition: all 0.2s;
}

.eq-reset:active {
    transform: scale(0.95);
}

/* ===== ПОЛОСЫ ЭКВАЛАЙЗЕРА (АДАПТИВНЫЕ) ===== */
.eq-bands {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2px;
    height: 90px;
    padding: 2px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.eq-bands::-webkit-scrollbar {
    display: none;
}

.eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 0 auto;
    min-width: 28px;
    max-width: 40px;
    gap: 4px;
}

/* Ползунок - вертикальный */
.eq-band input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    writing-mode: bt-lr;
    width: 60px;
    height: 3px;
    background: var(--bg-hover);
    border-radius: 2px;
    outline: none;
    transform: rotate(-90deg);
    transform-origin: center;
    cursor: pointer;
    touch-action: none;
}

.eq-band input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(108, 60, 225, 0.2);
}

.eq-band input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
}

/* Визуальная полоска */
.eq-visual-bar {
    width: 100%;
    max-width: 14px;
    height: 40px;
    background: var(--bg-hover);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.eq-visual-bar .eq-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient);
    border-radius: 3px;
    transition: height 0.1s ease;
    height: 50%;
}

.eq-visual-bar .eq-fill.negative {
    background: #ff6b6b;
}

.eq-visual-bar .eq-fill.zero {
    background: var(--text-muted);
}

/* Значение и подпись */
.eq-band .eq-value {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 22px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.eq-band .eq-value.positive {
    color: var(--accent-green);
}

.eq-band .eq-value.negative {
    color: #ff6b6b;
}

.eq-band .eq-label {
    font-size: 7px;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

/* ===== АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ ===== */
@media (max-width: 480px) {
    .equalizer-section {
        padding: 10px 6px 12px;
        border-radius: var(--radius-sm);
    }
    
    .eq-bands {
        height: 75px;
        gap: 1px;
    }
    
    .eq-band {
        min-width: 22px;
        max-width: 32px;
    }
    
    .eq-band input[type="range"] {
        width: 50px;
    }
    
    .eq-band input[type="range"]::-webkit-slider-thumb {
        width: 10px;
        height: 10px;
    }
    
    .eq-visual-bar {
        height: 30px;
        max-width: 10px;
    }
    
    .eq-band .eq-value {
        font-size: 8px;
        min-width: 18px;
    }
    
    .eq-band .eq-label {
        font-size: 6px;
    }
    
    .eq-title {
        font-size: 12px;
    }
    
    .eq-reset {
        font-size: 10px;
        padding: 2px 10px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 380px) {
    .eq-band {
        min-width: 18px;
        max-width: 26px;
    }
    
    .eq-band input[type="range"] {
        width: 40px;
    }
    
    .eq-visual-bar {
        height: 24px;
        max-width: 8px;
    }
    
    .eq-band .eq-value {
        font-size: 7px;
        min-width: 14px;
    }
    
    .eq-band .eq-label {
        font-size: 5px;
    }
}
/* ===== УЛУЧШЕННЫЙ ПОЛЗУНОК ПЕРЕМОТКИ ===== */
.progress-bar {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-hover);
    outline: none;
    cursor: pointer;
    touch-action: none; /* Важно для мобильных */
    min-height: 30px; /* Увеличиваем область касания */
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(108, 60, 225, 0.3);
    touch-action: none;
}

.progress-bar::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    touch-action: none;
}

/* Область вокруг ползунка для удобного касания */
.progress-bar::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: var(--bg-hover);
}

.progress-bar::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: var(--bg-hover);
}
/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding-bottom: calc(var(--nav-height) + var(--player-height) + var(--safe-bottom));
    touch-action: manipulation;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--text-primary);
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    color: var(--text-primary);
    cursor: pointer;
    touch-action: manipulation;
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.95);
}

img {
    display: block;
    max-width: 100%;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 16px 10px;
    z-index: 50;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.brand-icon {
    font-size: 26px;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.greeting {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 0;
}

.greeting .username {
    color: var(--text-primary);
    font-weight: 600;
}

.admin-badge {
    background: var(--gradient);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

/* ===== Main Content ===== */
.main-content {
    padding-bottom: 20px;
}

.section {
    padding: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header .see-all {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Carousel ===== */
.carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.carousel-item {
    flex: 0 0 140px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    scroll-snap-align: start;
    border: 1px solid rgba(255,255,255,0.04);
}

.carousel-item:active {
    transform: scale(0.96);
    border-color: var(--accent);
}

.carousel-cover {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-secondary);
}

.carousel-title {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Popular List ===== */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.popular-item:active {
    background: var(--bg-hover);
    border-color: var(--accent);
    transform: scale(0.98);
}

.popular-rank {
    font-weight: 700;
    color: var(--text-muted);
    min-width: 30px;
    font-size: 16px;
}

.popular-cover {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

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

.popular-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-artist {
    font-size: 13px;
    color: var(--text-secondary);
}

.popular-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.popular-actions button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popular-actions button:active {
    transform: scale(0.85);
}

.popular-actions .fav-btn.active {
    background: var(--accent);
}

.popular-actions .playlist-add-btn {
    font-size: 14px;
}

/* ===== Playlists Grid ===== */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.playlist-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.04);
}

.playlist-card:active {
    transform: scale(0.96);
    border-color: var(--accent);
}

.playlist-cover {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.empty-playlist-icon {
    font-size: 40px;
    opacity: 0.3;
}

.playlist-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-count {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.04);
    z-index: 100;
    padding-bottom: var(--safe-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 16px;
    transition: all 0.2s ease;
    min-width: 56px;
    position: relative;
}

.nav-icon {
    font-size: 24px;
}

.nav-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-item.active .nav-label {
    color: var(--accent);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gradient);
    border-radius: 0 0 4px 4px;
}

/* ===== Auth Pages ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--bg-primary);
    background-image: radial-gradient(circle at 20% 20%, rgba(108, 60, 225, 0.08) 0%, transparent 50%);
}

.auth-container {
    max-width: 380px;
    width: 100%;
    background: var(--bg-secondary);
    padding: 36px 28px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.04);
}

.auth-logo {
    font-size: 56px;
    text-align: center;
    margin-bottom: 8px;
}

.auth-brand {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.auth-error {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    border-left: 3px solid #ff3b30;
}

.auth-success {
    background: rgba(29, 185, 84, 0.12);
    color: var(--accent-green);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    border-left: 3px solid var(--accent-green);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.06);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.15);
}

.auth-btn {
    background: var(--gradient);
    color: #fff;
    padding: 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.auth-btn:active {
    transform: scale(0.97);
}

.auth-links {
    text-align: center;
    margin-top: 16px;
}

.auth-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-links a:hover {
    color: var(--accent);
}

/* ===== Mini Player ===== */
.mini-player {
    position: fixed;
    bottom: var(--nav-height);
    left: 0;
    right: 0;
    height: var(--player-height);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.04);
    z-index: 99;
    padding: 0 12px;
    padding-bottom: var(--safe-bottom);
}

.mini-player-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    cursor: pointer;
}

.mini-cover {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

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

.mini-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-artist {
    font-size: 12px;
    color: var(--text-secondary);
}

.mini-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.mini-controls button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mini-controls button:active {
    transform: scale(0.85);
}

.mini-controls .mini-fav-btn.active {
    background: var(--accent);
}

/* ===== Full Player ===== */
.full-player {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
}

.full-player.active {
    display: block;
}

.full-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
}

.full-player-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-radius: 24px 24px 0 0;
    padding: 24px 20px 40px;
    max-height: 92vh;
    overflow-y: auto;
    animation: slideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.full-player-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    padding: 8px;
    opacity: 0.5;
}

.full-player-art {
    text-align: center;
    margin: 10px 0 20px;
}

.full-cover {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

.full-player-info {
    text-align: center;
    margin-bottom: 20px;
}

.full-title {
    font-size: 22px;
    font-weight: 700;
}

.full-artist {
    font-size: 16px;
    color: var(--text-secondary);
}

.full-player-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.progress-bar {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-hover);
    outline: none;
    transition: height 0.2s;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(108, 60, 225, 0.3);
}

.progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
}

.time-label {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 40px;
    font-variant-numeric: tabular-nums;
}

.full-player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.ctrl-btn {
    font-size: 28px;
    padding: 10px 14px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ctrl-btn:active {
    transform: scale(0.85);
}

.big-btn {
    font-size: 40px;
    background: var(--gradient);
    color: #fff;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(108, 60, 225, 0.3);
}

.big-btn:active {
    transform: scale(0.9);
}

.full-player-volume {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-icon {
    font-size: 20px;
    cursor: pointer;
}

.volume-bar {
    flex: 1;
    -webkit-appearance: none;
    height: 3px;
    border-radius: 2px;
    background: var(--bg-hover);
    outline: none;
}

.volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

/* ===== Admin ===== */
.admin-panel {
    padding: 16px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-header h1 {
    font-size: 20px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.admin-stat-card {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.04);
}

.admin-stat-number {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.admin-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
}

.admin-table-row {
    display: grid;
    grid-template-columns: 40px 1fr 1fr 80px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    align-items: center;
    gap: 8px;
}

.admin-table-header {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
}

.admin-table-cell {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-actions {
    display: flex;
    gap: 6px;
}

.admin-btn {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.admin-btn-edit {
    background: rgba(108, 60, 225, 0.15);
    color: var(--accent);
}

.admin-btn-delete {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
}

.admin-btn-add {
    display: block;
    background: var(--gradient);
    color: #fff;
    padding: 14px;
    text-align: center;
    border-radius: var(--radius);
    font-weight: 700;
    margin: 16px 0;
}

/* ===== Upload Form ===== */
.upload-form {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.04);
}

.file-input-wrapper {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 2px dashed rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-wrapper:active {
    border-color: var(--accent);
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
}

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

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.form-actions .btn-cancel {
    flex: 1;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 14px;
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none;
}

.form-actions .btn-submit {
    flex: 2;
    background: var(--gradient);
    color: #fff;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.current-files {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin: 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.current-files span {
    color: var(--text-primary);
}

/* ===== Playlist Add Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 300;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 40px;
    width: 100%;
    max-width: 400px;
    max-height: 70vh;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    font-size: 24px;
    opacity: 0.5;
}

.modal-playlist-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-playlist-item:active {
    background: var(--bg-hover);
    transform: scale(0.97);
}

.modal-playlist-item .icon {
    font-size: 24px;
}

.modal-playlist-item .name {
    flex: 1;
    font-weight: 500;
}

.modal-playlist-item .count {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.site-footer {
    text-align: center;
    padding: 20px 16px 30px;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.03);
    margin-top: 20px;
}

.site-footer a {
    color: var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .brand-name { font-size: 16px; }
    .greeting { font-size: 14px; }
    .full-cover { width: 160px; height: 160px; }
    .full-title { font-size: 18px; }
    .big-btn { width: 56px; height: 56px; font-size: 32px; }
}

@media (min-width: 430px) {
    body { max-width: 430px; margin: 0 auto; }
    .bottom-nav { max-width: 430px; left: 50%; transform: translateX(-50%); }
    .mini-player { max-width: 430px; left: 50%; transform: translateX(-50%); }
}