/* Font: index.php üzerinden yüklenir (@import gecikme yapmasın diye) */

/* Sunset Fire (ana) + 5 mockup paleti */
:root {
    --bg-deep: #14100e;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-highlight: rgba(255, 255, 255, 0.22);
    --text-color: #fff8f2;
    --text-muted: rgba(255, 248, 242, 0.62);

    /* Mockup 2 — Sunset Fire (birincil UI) */
    --primary: #ff6b35;
    --primary-glow: #ff8c42;
    --accent: #ff4d6d;
    --accent-soft: #ffb347;
    --gold: #ffc857;

    /* Mockup 1 — Aurora */
    --aurora-cyan: #22d3ee;
    --aurora-purple: #a855f7;

    /* Mockup 3 — Neon Jungle */
    --jungle-lime: #84cc16;
    --jungle-emerald: #10b981;
    --jungle-blue: #3b82f6;

    /* Mockup 4 — Cosmic Berry */
    --cosmic-magenta: #d946ef;
    --cosmic-indigo: #6366f1;
    --cosmic-gold: #f59e0b;

    /* Mockup 5 — Tropical Wave */
    --tropical-teal: #14b8a6;
    --tropical-yellow: #eab308;
    --tropical-coral: #f472b6;

    --success: #4ade80;
    --danger: #ff4d6d;
    --library-accent: var(--tropical-teal);
    --queue-accent: var(--accent);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --blur: 22px;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-deep);
    color: var(--text-color);
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

/* ── Tema seçenekleri ── */
[data-theme="aurora"] {
    --primary: #22d3ee;
    --primary-glow: #67e8f9;
    --accent: #a855f7;
    --accent-soft: #c084fc;
    --gold: #e879f9;
    --library-accent: #22d3ee;
    --queue-accent: #a855f7;
    --bg-deep: #0a0f1a;
}

[data-theme="jungle"] {
    --primary: #84cc16;
    --primary-glow: #a3e635;
    --accent: #3b82f6;
    --accent-soft: #10b981;
    --gold: #bef264;
    --library-accent: #10b981;
    --queue-accent: #84cc16;
    --bg-deep: #0a100a;
}

[data-theme="cosmic"] {
    --primary: #d946ef;
    --primary-glow: #e879f9;
    --accent: #6366f1;
    --accent-soft: #f59e0b;
    --gold: #fbbf24;
    --library-accent: #6366f1;
    --queue-accent: #d946ef;
    --bg-deep: #120818;
}

[data-theme="tropical"] {
    --primary: #14b8a6;
    --primary-glow: #2dd4bf;
    --accent: #f472b6;
    --accent-soft: #eab308;
    --gold: #fde047;
    --library-accent: #14b8a6;
    --queue-accent: #f472b6;
    --bg-deep: #0c1a1f;
}

[data-theme="sunset"] {
    --primary: #ff6b35;
    --primary-glow: #ff8c42;
    --accent: #ff4d6d;
    --accent-soft: #ffb347;
    --gold: #ffc857;
    --library-accent: #14b8a6;
    --queue-accent: #ff4d6d;
    --bg-deep: #14100e;
}

[data-theme="aurora"] .blob1 { background: #22d3ee; animation: blobDrift1 28s ease-in-out infinite alternate; }
[data-theme="aurora"] .blob2 { background: #a855f7; animation: blobDrift2 32s ease-in-out infinite alternate; }
[data-theme="aurora"] .blob3 { background: #67e8f9; animation: blobDrift3 24s ease-in-out infinite alternate; }

[data-theme="jungle"] .blob1 { background: #84cc16; animation: blobDrift1 28s ease-in-out infinite alternate; }
[data-theme="jungle"] .blob2 { background: #3b82f6; animation: blobDrift2 32s ease-in-out infinite alternate; }
[data-theme="jungle"] .blob3 { background: #10b981; animation: blobDrift3 24s ease-in-out infinite alternate; }

[data-theme="cosmic"] .blob1 { background: #d946ef; animation: blobDrift1 28s ease-in-out infinite alternate; }
[data-theme="cosmic"] .blob2 { background: #6366f1; animation: blobDrift2 32s ease-in-out infinite alternate; }
[data-theme="cosmic"] .blob3 { background: #f59e0b; animation: blobDrift3 24s ease-in-out infinite alternate; }

[data-theme="tropical"] .blob1 { background: #14b8a6; animation: blobDrift1 28s ease-in-out infinite alternate; }
[data-theme="tropical"] .blob2 { background: #f472b6; animation: blobDrift2 32s ease-in-out infinite alternate; }
[data-theme="tropical"] .blob3 { background: #eab308; animation: blobDrift3 24s ease-in-out infinite alternate; }

/* ── Ayarlar paneli (tema + dil) ── */
.app-settings {
    position: fixed;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 5000;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
}

.settings-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.settings-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.theme-picker {
    display: flex;
    gap: 0.35rem;
}

.theme-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: var(--swatch);
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-btn:hover { transform: scale(1.12); }

.theme-btn.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25), 0 0 14px var(--swatch);
    transform: scale(1.08);
}

.lang-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 999px;
    padding: 3px;
    border: 1px solid var(--glass-border);
}

.lang-btn {
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.3rem 0.55rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

/* ── Liquid glass arka plan — 5 tema geçişi ── */
.background-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #14100e 0%, #1a1210 50%, #120e14 100%);
}

.background-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 107, 53, 0.08),
        rgba(255, 77, 109, 0.06),
        rgba(255, 200, 87, 0.05)
    );
    animation: overlayShift 48s ease-in-out infinite;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    mix-blend-mode: screen;
    will-change: transform, background;
}

.blob1 {
    width: 55vw;
    height: 55vw;
    max-width: 620px;
    max-height: 620px;
    top: -18%;
    left: -12%;
    animation: blobDrift1 28s ease-in-out infinite alternate, blobColor1 48s ease-in-out infinite;
}

.blob2 {
    width: 48vw;
    height: 48vw;
    max-width: 540px;
    max-height: 540px;
    bottom: -20%;
    right: -10%;
    animation: blobDrift2 32s ease-in-out infinite alternate, blobColor2 48s ease-in-out infinite;
}

.blob3 {
    width: 36vw;
    height: 36vw;
    max-width: 420px;
    max-height: 420px;
    top: 40%;
    left: 38%;
    animation: blobDrift3 24s ease-in-out infinite alternate, blobColor3 48s ease-in-out infinite;
}

.blob4, .blob5 { display: none; }

@keyframes blobColor1 {
    0%, 100% { background: #ff6b35; }
    20%      { background: #22d3ee; }
    40%      { background: #84cc16; }
    60%      { background: #d946ef; }
    80%      { background: #14b8a6; }
}

@keyframes blobColor2 {
    0%, 100% { background: #ff4d6d; }
    20%      { background: #a855f7; }
    40%      { background: #3b82f6; }
    60%      { background: #6366f1; }
    80%      { background: #f472b6; }
}

@keyframes blobColor3 {
    0%, 100% { background: #ffc857; }
    20%      { background: #67e8f9; }
    40%      { background: #10b981; }
    60%      { background: #f59e0b; }
    80%      { background: #eab308; }
}

@keyframes overlayShift {
    0%, 100% { opacity: 1; filter: hue-rotate(0deg); }
    25%      { filter: hue-rotate(35deg); }
    50%      { filter: hue-rotate(90deg); }
    75%      { filter: hue-rotate(160deg); }
}

@keyframes blobDrift1 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(12vw, 18vh) scale(1.12); }
}

@keyframes blobDrift2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-14vw, -12vh) scale(1.08); }
}

@keyframes blobDrift3 {
    from { transform: translate(-50%, -50%) scale(0.9); }
    to   { transform: translate(-40%, -60%) scale(1.15); }
}

/* ── Glass yardımcıları ── */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 var(--glass-highlight);
}

/* ── Giriş ekranı ── */
.login-container {
    position: relative;
    z-index: 10;
    width: min(440px, 92vw);
    margin: auto;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0 2rem;
}

.login-card {
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
}

.login-card .login-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.35), rgba(255, 77, 109, 0.25));
    border: 1px solid rgba(255, 140, 66, 0.4);
    margin-bottom: 1.25rem;
    color: var(--gold);
}

.login-container h1 {
    font-size: clamp(2.2rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff8f2, var(--gold), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-container p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1rem;
}

#login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 28px rgba(255, 107, 53, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#login-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 36px rgba(255, 107, 53, 0.55);
}

/* ── Ana panel ── */
.panel-content {
    position: relative;
    z-index: 10;
    width: min(1480px, 96vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 auto;
    padding: 3.25rem 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    flex: 0 0 auto;
}

.top-header h1 {
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 800;
    background: linear-gradient(90deg, var(--gold), var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.user-area strong { color: var(--text-color); }

.user-chip {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 140, 66, 0.35);
}

.logout-btn {
    background: linear-gradient(135deg, var(--accent), #e11d48);
    color: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.45);
}

/* ── İstatistik şeridi ── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    flex: 0 0 auto;
}

.stat-card {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stat-card.library-stat .stat-icon {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.35), rgba(34, 211, 238, 0.2));
    border: 1px solid rgba(20, 184, 166, 0.4);
}

.stat-card.queue-stat .stat-icon {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.35), rgba(255, 77, 109, 0.25));
    border: 1px solid rgba(255, 140, 66, 0.4);
}

.stat-card.rules-stat .stat-icon {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.3), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(217, 70, 239, 0.35);
}

.stat-card .stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-card .stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-card.rules-stat {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card.rules-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 70, 239, 0.2);
}

/* ── 60 / 40 layout ── */
.main-container {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-height: 0;
    flex-grow: 1;
}

.column {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    min-height: 0;
    overflow: hidden;
}

#library-column {
    flex: 3;
    border-top: 3px solid var(--library-accent);
}

#queue-column {
    flex: 2;
    border-top: 3px solid var(--queue-accent);
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.column h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.column-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.column-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.column-badge.duration-badge {
    color: var(--gold);
    border-color: rgba(255, 200, 87, 0.35);
    background: rgba(255, 200, 87, 0.1);
}

.song-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    white-space: nowrap;
}

.meta-chip.meta-duration { color: var(--gold); border-color: rgba(255, 200, 87, 0.25); }
.meta-chip.meta-bpm { color: var(--primary-glow); border-color: rgba(255, 140, 66, 0.25); }
.meta-chip.meta-year { color: var(--tropical-teal); border-color: rgba(20, 184, 166, 0.25); }

#library-column .column-badge { color: var(--tropical-teal); border-color: rgba(20, 184, 166, 0.35); }
#queue-column .column-badge { color: var(--primary-glow); border-color: rgba(255, 140, 66, 0.35); }

.search-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.search-wrap::before {
    content: '🔍';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}

input[type="search"] {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    -webkit-appearance: none;
    appearance: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input[type="search"]::placeholder { color: var(--text-muted); }

input[type="search"]:focus {
    border-color: rgba(255, 140, 66, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
}

.list-container {
    overflow-y: auto;
    flex: 1;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.list-container::-webkit-scrollbar { width: 6px; }
.list-container::-webkit-scrollbar-track { background: transparent; }
.list-container::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--accent));
    border-radius: 999px;
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ── Kartlar ── */
.card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateX(4px);
    border-color: rgba(255, 140, 66, 0.35);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.12);
}

.card.library-card:hover {
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.12);
}

.card .cover-art {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.card-info h3 {
    font-size: 1.08rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.15rem;
}

.card-info p {
    font-size: 0.92rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    line-height: 1.4;
}

.card-info p strong { color: var(--gold); font-weight: 600; }

/* Sıra numarası rozeti */
.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.45);
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, var(--gold), var(--primary));
    box-shadow: 0 4px 16px rgba(255, 200, 87, 0.5);
}

.action-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.vote-section, .admin-buttons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.vote-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 2.5rem;
    text-align: center;
}

/* ── Butonlar ── */
.vote-btn, .request-btn, .admin-buttons button, .retract-vote-btn, .delete-my-request-btn {
    font-family: inherit;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.request-btn {
    background: linear-gradient(135deg, var(--tropical-teal), var(--aurora-cyan));
    color: #042f2e;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.35);
}

.request-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(20, 184, 166, 0.5);
}

.vote-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
}

.vote-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.5);
}

.retract-vote-btn, .delete-my-request-btn {
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

.retract-vote-btn:hover, .delete-my-request-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-color);
}

.admin-buttons button {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.played-btn {
    background: linear-gradient(135deg, var(--jungle-lime), var(--success));
    color: #052e16;
}

.delete-btn {
    background: linear-gradient(135deg, var(--accent), #be123c);
    color: #fff;
}

/* ── Enstrüman modalı — Mockup 5 bubble glass ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: rgba(10, 8, 6, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: fadeInModal 0.3s ease-out;
}

.modal-content {
    width: min(520px, 96vw);
    padding: 2rem 1.75rem 1.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 60px rgba(255, 107, 53, 0.15);
    animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content {
    position: relative;
    outline: 1px solid rgba(255, 140, 66, 0.35);
    outline-offset: 0;
}

.modal-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.modal-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.modal-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

#instrument-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

#instrument-options .instrument-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    min-height: 110px;
}

#instrument-options .instrument-btn:hover {
    transform: translateY(-4px) scale(1.03);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.3);
}

#instrument-options .instrument-btn .inst-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

#instrument-options .instrument-btn .inst-diff {
    height: 18px;
    width: auto;
    opacity: 0.9;
}

#instrument-options .instrument-btn.instrument-vocals:hover { box-shadow: 0 12px 32px rgba(244, 114, 182, 0.35); }
#instrument-options .instrument-btn.instrument-lead:hover    { box-shadow: 0 12px 32px rgba(255, 107, 53, 0.35); }
#instrument-options .instrument-btn.instrument-drums:hover  { box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35); }
#instrument-options .instrument-btn.instrument-bass:hover   { box-shadow: 0 12px 32px rgba(20, 184, 166, 0.35); }

#instrument-options .modal-empty {
    grid-column: 1 / -1;
    color: var(--text-muted);
    padding: 1rem;
}

#closeModal {
    margin-top: 1.25rem;
    width: 100%;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#closeModal:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-color);
}

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

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.88) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Bilgi paneli ── */
#showInfoBtn {
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1.1rem 0 0.85rem;
    height: 48px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
}

#showInfoBtn:hover {
    color: var(--text-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.35), rgba(255, 77, 109, 0.25));
    border-color: rgba(255, 140, 66, 0.45);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
    transform: translateY(-50%) scale(1.04);
}

#showInfoBtn svg { width: 22px; height: 22px; flex-shrink: 0; }

#showInfoBtn.hidden {
    transform: translateY(-50%) scale(0);
    opacity: 0;
    pointer-events: none;
}

.side-info-panel {
    position: fixed;
    left: 0;
    top: 0;
    width: min(400px, 92vw);
    height: 100vh;
    z-index: 2000;
    padding: 5rem 1.75rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: rgba(20, 16, 14, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--glass-border);
    box-shadow: 8px 0 48px rgba(0, 0, 0, 0.4);
}

.side-info-panel.visible { transform: translateX(0); }

#closeInfoBtn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.25s ease, background 0.25s ease;
}

#closeInfoBtn:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--accent);
    color: #fff;
}

#closeInfoBtn svg { width: 22px; height: 22px; }

.side-info-panel h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--gold), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.side-info-panel ul { list-style: none; }

.side-info-panel ul li {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.65;
}

.side-info-panel ul li:last-child { border-bottom: none; }
.side-info-panel ul li strong { color: var(--text-color); }

.highlight-accent { color: var(--tropical-teal); font-weight: 700; }
.highlight-primary { color: var(--primary-glow); font-weight: 700; }

/* ── Footer ── */
.footer-wrapper {
    flex: 0 0 auto;
    flex-shrink: 0;
    padding: 1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(
        90deg,
        var(--primary),
        var(--aurora-cyan),
        var(--jungle-lime),
        var(--cosmic-magenta),
        var(--tropical-teal)
    );
    background-size: 300% 100%;
    animation: footerGradient 12s ease infinite;
}

@keyframes footerGradient {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.page-footer {
    padding: 1rem 1.25rem;
    border-radius: calc(var(--radius-lg) - 1px);
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: rgba(20, 16, 14, 0.88);
    backdrop-filter: blur(12px);
}

.page-footer p { margin-bottom: 0.25rem; }
.page-footer p:last-child { margin-bottom: 0; }

.text-primary { color: var(--primary-glow); font-weight: 700; }
.text-gemini { color: var(--cosmic-magenta); font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .panel-content {
        padding-top: 4.5rem;
        height: 100dvh;
    }

    .app-settings {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        justify-content: space-between;
        border-radius: var(--radius-md);
    }

    .settings-label { display: none; }

    .main-container {
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    #library-column, #queue-column {
        flex: 1 1 0;
        min-height: 0;
    }

    .stats-bar { grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
    .stat-card { padding: 0.6rem 0.75rem; }

    #showInfoBtn span { display: none; }
    #showInfoBtn { padding: 0 0.85rem; width: 48px; justify-content: center; }

    #instrument-options { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .stats-bar { grid-template-columns: 1fr; }
    .user-chip span[data-i18n="welcome"] { display: none; }
}

@media (max-width: 520px) {
    .card { flex-wrap: wrap; }
    .action-section { width: 100%; justify-content: flex-end; margin-top: 0.25rem; }
    .request-btn { width: 100%; text-align: center; margin-top: 0.35rem; }
    .card.library-card { flex-wrap: nowrap; }
    .card.library-card .request-btn { width: auto; margin-top: 0; }
}
