/* Main Stylesheet - The Amber Room Music Blog */
/* Based on Dark Mode First with Editorial Soul design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables - Design Tokens */
:root {
    /* Colors */
    --primary-500: #F59E0B;
    --primary-700: #B45309;
    
    --bg-page: #000000;
    --bg-surface: #141414;
    --bg-hover: #1A1A1A;
    
    --text-primary: #E4E4E7;
    --text-secondary: #A1A1AA;
    --text-accent: #F59E0B;
    
    --border-color: #27272A;
    --border-input: #3F3F46;
    
    --success: #10B981;
    --warning: #FBBF24;
    --error: #F87171;
    
    /* Typography */
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing (4px grid) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    --space-xxxl: 96px;
    
    /* Border Radius */
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Shadows/Glows */
    --glow-md: 0 0 16px 0 rgba(245, 158, 11, 0.2);
    --glow-lg: 0 0 32px 0 rgba(245, 158, 11, 0.25);
    
    /* Layout */
    --max-width: 1280px;
    --max-width-text: 720px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-page);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 61px;
    line-height: 1.2;
}

h2 {
    font-size: 49px;
    line-height: 1.3;
}

h3 {
    font-size: 31px;
    line-height: 1.4;
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 250ms ease-out;
}

a:hover {
    color: var(--primary-500);
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.text-container {
    max-width: var(--max-width-text);
    margin: 0 auto;
}

/* Header/Navigation */
.site-header {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-xxxl);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 31px;
    margin: 0;
}

.site-title a {
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Song Entry Card (Homepage) */
.song-entry {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-md);
    transition: background-color 250ms ease-out;
    cursor: pointer;
}

.song-entry:hover {
    background-color: var(--bg-hover);
}

.song-entry:hover .song-entry-title {
    color: var(--primary-500);
}

.song-entry-cover {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.song-entry-content {
    flex: 1;
}

.song-entry-title {
    font-size: 31px;
    margin-bottom: var(--space-xs);
    transition: color 250ms ease-out;
}

.song-entry-meta {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-private {
    background-color: var(--bg-surface);
    color: var(--warning);
    border: 1px solid var(--warning);
}

/* Song Page */
.song-header {
    text-align: center;
    margin-bottom: var(--space-xxxl);
}

.song-cover-large {
    width: 300px;
    height: 300px;
    margin: 0 auto var(--space-xl);
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.song-title {
    margin-bottom: var(--space-sm);
}

.song-meta {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Lyrics Block */
.lyrics-section {
    margin-bottom: var(--space-xxxl);
}

.lyrics-section h2 {
    margin-bottom: var(--space-xl);
}

.lyrics-content {
    font-size: 20px;
    line-height: 1.7;
    white-space: pre-line; /* Preserve line breaks but collapse multiple spaces */
}

.lyrics-content br {
    display: block;
    content: "";
    margin-top: 0;
}

.lyrics-stanza {
    margin-bottom: var(--space-lg);
}

.lyrics-pullquote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 31px;
    color: var(--text-accent);
    border-left: 2px solid var(--primary-500);
    padding-left: var(--space-md);
    margin: var(--space-xl) 0;
}

/* Development Notes */
.development-section {
    margin-bottom: var(--space-xxxl);
}

.development-note {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.development-note h3 {
    font-size: 20px;
    margin-bottom: var(--space-sm);
}

.development-note-content {
    color: var(--text-primary);
    line-height: 1.6;
}

/* Comments Section */
.comments-section {
    margin-bottom: var(--space-xxxl);
    padding-bottom: 120px; /* Space for fixed audio player */
}

.comment {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.comment-author {
    font-weight: 600;
    color: var(--primary-500);
}

.comment-date {
    font-size: 14px;
    color: var(--text-secondary);
}

.comment-content {
    color: var(--text-primary);
}

.comment-actions {
    margin-top: var(--space-sm);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    height: 56px;
    padding: 0 var(--space-md);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 200ms ease-out;
}

.form-textarea {
    height: auto;
    min-height: 120px;
    padding: var(--space-md);
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: var(--glow-md);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 250ms ease-out;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-500);
    color: var(--bg-page);
}

.btn-primary:hover {
    background-color: var(--primary-700);
    box-shadow: var(--glow-lg);
    color: var(--bg-page);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-input);
}

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

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-danger {
    background-color: var(--error);
    color: var(--bg-page);
}

.btn-danger:hover {
    background-color: #DC2626;
    color: var(--bg-page);
}

/* Audio Player */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0 var(--space-lg);
    z-index: 1000;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.play-pause-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 200ms ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause-btn:hover {
    color: var(--primary-500);
}

.play-pause-btn svg {
    width: 32px;
    height: 32px;
}

.player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: var(--border-input);
    border-radius: var(--radius-full);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-500);
    border-radius: var(--radius-full);
    transition: width 100ms linear;
}

.time-display {
    font-size: 14px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    min-width: 100px;
    text-align: right;
}

/* Alerts/Messages */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-error {
    background-color: rgba(248, 113, 113, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

.alert-warning {
    background-color: rgba(251, 191, 36, 0.1);
    color: var(--warning);
    border: 1px solid var(--warning);
}

/* Admin Panel Specific */
.admin-panel {
    padding: var(--space-xxxl) 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.admin-table {
    width: 100%;
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background-color: var(--bg-page);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background-color: var(--bg-hover);
}

/* Login/Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.auth-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: var(--space-xxl);
    width: 100%;
    max-width: 480px;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --space-xxxl: 64px;
    }
    
    h1 {
        font-size: 49px;
    }
    
    h2 {
        font-size: 39px;
    }
    
    h3 {
        font-size: 25px;
    }
    
    .song-entry {
        flex-direction: column;
    }
    
    .song-entry-cover {
        width: 100%;
        height: 0;
        padding-bottom: 100%; /* 1:1 aspect ratio */
        position: relative;
    }
    
    .song-entry-cover img {
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .audio-player {
        padding: 0 var(--space-sm);
        gap: var(--space-sm);
    }
    
    .time-display {
        min-width: 80px;
        font-size: 12px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.mt-lg {
    margin-top: var(--space-lg);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.hidden {
    display: none;
}


/* Language Switcher */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-switcher-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 8px 12px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 200ms ease-out;
}

.language-switcher-toggle:hover {
    border-color: var(--primary-500);
    background-color: var(--bg-hover);
}

.language-switcher-toggle svg {
    width: 20px;
    height: 20px;
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.language-menu.active {
    display: block;
}

.language-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 200ms ease-out;
    border-bottom: 1px solid var(--border-color);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: var(--bg-hover);
}

.language-option.active {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--primary-500);
}

.language-option .lang-name {
    font-weight: 500;
}

.language-option .lang-code {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.language-option.active .lang-code {
    color: var(--primary-500);
}

/* Lyrics Translation Display */
.lyrics-container {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-xxxl);
}

.lyrics-container.has-translation {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
}

.lyrics-column {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.lyrics-column h3 {
    font-size: 20px;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lyrics-language-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lyrics-text {
    font-size: 18px;
    line-height: 1.8;
    white-space: pre-wrap;
    color: var(--text-primary);
}

.translation-controls {
    margin-bottom: var(--space-md);
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
}

.translation-select {
    flex: 1;
    min-width: 200px;
}

.toggle-translation-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 8px 16px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 200ms ease-out;
}

.toggle-translation-btn:hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
}

.toggle-translation-btn svg {
    width: 16px;
    height: 16px;
}

.translator-notes {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background-color: var(--bg-page);
    border-left: 3px solid var(--primary-500);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-style: italic;
    color: var(--text-secondary);
}

.translator-notes strong {
    color: var(--text-primary);
    font-style: normal;
}

/* Mobile responsiveness for translations */
@media (max-width: 768px) {
    .lyrics-container.has-translation {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .lyrics-text {
        font-size: 16px;
    }
    
    .translation-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .translation-select {
        width: 100%;
    }
}

/* Translation badge */
.translation-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: var(--radius-full);
    color: var(--success);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.translation-badge svg {
    width: 14px;
    height: 14px;
}

/* Admin translation management */
.translation-list {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.translation-item {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.translation-item:hover {
    background-color: var(--bg-hover);
}

.translation-item-info {
    flex: 1;
}

.translation-item-lang {
    font-weight: 600;
    color: var(--primary-500);
    margin-bottom: 4px;
}

.translation-item-preview {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px;
}

.translation-item-actions {
    display: flex;
    gap: var(--space-xs);
}




/* ========================================
   AMBER RADIO - FLOATING WINDOW PLAYER
   ======================================== */

/* Window Container */
.amber-radio-window {
    position: fixed;
    width: 400px;
    background: rgba(18, 18, 28, 0.98);
    backdrop-filter: blur(30px);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 10000;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.amber-radio-window.minimized {
    height: 60px !important;
}

.amber-radio-window.minimized .amber-window-content {
    display: none;
}

/* Window Titlebar */
.amber-window-titlebar {
    background: linear-gradient(135deg, #F59E0B, #B45309);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    user-select: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.amber-window-titlebar:active {
    cursor: grabbing;
}

.amber-window-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.amber-window-logo img {
    height: 32px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.amber-window-controls {
    display: flex;
    gap: 0.5rem;
}

.amber-window-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.amber-window-btn:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

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

/* Window Content */
.amber-window-content {
    padding: 1.5rem;
}

/* Now Playing Section */
.amber-now-playing {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.amber-cover-large {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
}

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

.amber-track-info {
    text-align: center;
    width: 100%;
}

.amber-track-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amber-track-artist {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.amber-track-artist a {
    color: var(--primary-500);
    transition: color 0.2s;
}

.amber-track-artist a:hover {
    color: var(--primary-400);
}

/* Progress Section */
.amber-progress-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.amber-time-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    min-width: 38px;
    text-align: center;
}

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

.amber-progress-bar:hover .amber-progress-handle {
    opacity: 1;
}

.amber-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-700));
    border-radius: 3px;
    transition: width 0.1s linear;
}

.amber-progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s;
}

/* Controls Section */
.amber-controls-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.amber-controls-left,
.amber-controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.amber-controls-right {
    justify-content: flex-end;
}

.amber-controls-center {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.amber-control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.75rem;
}

.amber-control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-500);
    transform: scale(1.05);
}

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

.amber-control-btn.active {
    color: var(--primary-500);
    background: rgba(245, 158, 11, 0.2);
}

.amber-control-small {
    padding: 0.6rem;
}

.amber-play-btn {
    background: var(--primary-500);
    color: white;
    padding: 1rem;
}

.amber-play-btn:hover {
    background: var(--primary-600);
    color: white;
    transform: scale(1.1);
}

.repeat-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 9px;
    font-weight: bold;
    color: var(--primary-500);
    pointer-events: none;
}

.amber-control-btn.repeat-one {
    position: relative;
}

/* Volume Control */
.amber-volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.amber-volume-slider {
    width: 0;
    opacity: 0;
    transition: all 0.3s;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
}

.amber-volume-control:hover .amber-volume-slider {
    width: 80px;
    opacity: 1;
    margin-right: 0.5rem;
}

.amber-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-500);
    cursor: pointer;
}

.amber-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-500);
    cursor: pointer;
    border: none;
}

.playlist-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-500);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    pointer-events: none;
}

.amber-control-btn.amber-control-small {
    position: relative;
}

/* Playlist Panel */
.amber-playlist-panel,
.amber-settings-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(18, 18, 28, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.amber-playlist-panel.visible {
    max-height: 400px;
}

.amber-settings-panel.visible {
    max-height: 200px;
}

.amber-playlist-header,
.amber-settings-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.amber-playlist-header h3,
.amber-settings-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.amber-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.amber-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.amber-playlist-items {
    overflow-y: auto;
    max-height: 340px;
}

.amber-playlist-items::-webkit-scrollbar {
    width: 8px;
}

.amber-playlist-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.amber-playlist-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.amber-playlist-items::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Playlist Items */
.amber-playlist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.amber-playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.amber-playlist-item.active {
    background: rgba(245, 158, 11, 0.1);
}

.amber-playlist-item-cover {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

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

.playing-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    display: flex;
    gap: 1.5px;
    align-items: flex-end;
    height: 10px;
}

.playing-indicator span {
    width: 1.5px;
    background: var(--primary-500);
    animation: playing 0.6s ease-in-out infinite;
}

.playing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.playing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.playing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes playing {
    0%, 100% {
        height: 3px;
    }
    50% {
        height: 10px;
    }
}

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

.amber-playlist-item-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amber-playlist-item-artist {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.amber-playlist-item-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.amber-playlist-item:hover .amber-playlist-item-actions {
    opacity: 1;
}

.amber-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.9rem;
}

.amber-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-500);
}

/* Settings Panel */
.amber-settings-content {
    padding: 1rem 1.5rem;
}

.amber-setting-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    cursor: pointer;
    color: var(--text-primary);
}

.amber-setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-500);
}

/* Responsive Design */
@media (max-width: 768px) {
    .amber-radio-window {
        width: 95vw;
        max-width: 360px;
    }
    
    .amber-window-content {
        padding: 1rem;
    }
    
    .amber-cover-large {
        width: 160px;
        height: 160px;
    }
    
    .amber-controls-section {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .amber-controls-left,
    .amber-controls-right {
        order: 2;
        flex: none;
    }
    
    .amber-controls-center {
        order: 1;
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .amber-volume-control:hover .amber-volume-slider {
        width: 60px;
    }
}
