/* ==========================================
   UYKU SESLERİ - Sleep.css v2.0
   Modern Kidlio tasarım dili
   ========================================== */

/* Sayfa Container */
.sleep-page {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 16px 20px 180px;
    box-sizing: border-box;
    position: relative;
    margin-top: 8px;
}

/* Dark mode container — arka plan yok, kartlar direkt gradient üzerinde */

/* Sleep sayfasında arka plan yıldız/sparkle efektlerini gizle */
body:has(.sleep-page) .body-decoration .star-emoji,
body:has(.sleep-page) .body-decoration .dot-1,
body:has(.sleep-page) .body-decoration .dot-2,
body:has(.sleep-page) .body-decoration .star-1 {
    display: none !important;
}

/* ==========================================
   HEADER
   ========================================== */

.sleep-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 10px;
}

.sleep-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #4f5c8f;
    border: 1px solid rgba(79, 92, 143, 0.15);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sleep-back-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
    transform: scale(1.08);
    color: #3d4a7a;
}

.sleep-back-btn:active {
    transform: scale(0.95);
}

.sleep-header-text {
    flex: 1;
}

.sleep-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0;
    text-align: center;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #5B6AE8, #7B62ED, #A068F5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sleep-subtitle {
    font-size: 0.78rem;
    color: #5a6898;
    margin: 2px 0 0;
    font-weight: 500;
}

.sleep-header-moon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2))
            drop-shadow(0 0 12px rgba(251, 191, 36, 0.4));
    animation: moon-float 4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes moon-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-2px) rotate(3deg); }
}

body.dark .sleep-title {
    background: linear-gradient(135deg, #8B9CF8, #B890FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark .sleep-subtitle {
    color: rgba(160, 200, 255, 0.8);
}

body.dark .sleep-back-btn {
    color: rgba(160, 200, 255, 0.7);
    border-color: rgba(100, 160, 240, 0.15);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark .sleep-back-btn:hover {
    color: rgba(200, 220, 255, 0.9);
}

/* ==========================================
   AAP GUVENLİK NOTU
   ========================================== */

.sleep-safety-tip {
    margin: 10px 0 6px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(255, 248, 230, 0.55) 0%,
        rgba(255, 243, 210, 0.4) 100%
    );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(196, 149, 32, 0.2);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.safety-tip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.safety-tip-header:hover {
    background: rgba(251, 191, 36, 0.06);
}

.safety-tip-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.safety-tip-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: #b45309;
    flex: 1;
    letter-spacing: 0.01em;
}

.safety-tip-toggle {
    font-size: 0.5rem;
    color: #b45309;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.sleep-safety-tip.open .safety-tip-toggle {
    transform: rotate(180deg);
}

.safety-tip-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 14px;
}

.sleep-safety-tip.open .safety-tip-body {
    max-height: 200px;
    padding: 0 14px 10px;
}

.safety-tip-list {
    margin: 0;
    padding: 0 0 0 16px;
    list-style: none;
}

.safety-tip-list li {
    position: relative;
    font-size: 0.62rem;
    color: #4f5c8f;
    line-height: 1.6;
    padding-left: 4px;
}

.safety-tip-list li::before {
    content: "•";
    position: absolute;
    left: -12px;
    color: #c49520;
    font-weight: bold;
}

.safety-tip-list li strong {
    color: #3d4a7a;
    font-weight: 700;
}

.safety-tip-source {
    display: block;
    font-size: 0.52rem;
    color: #8b7530;
    margin-top: 6px;
    font-style: italic;
}

/* Dark mode */
body.dark .sleep-safety-tip {
    background: linear-gradient(
        135deg,
        rgba(20, 35, 65, 0.9) 0%,
        rgba(15, 28, 55, 0.85) 100%
    );
    border-color: rgba(251, 191, 36, 0.15);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark .safety-tip-title {
    color: rgba(251, 191, 36, 0.9);
}

body.dark .safety-tip-list li {
    color: rgba(255, 255, 255, 0.75);
}

body.dark .safety-tip-list li strong {
    color: rgba(255, 255, 255, 0.9);
}

body.dark .safety-tip-list li::before {
    color: #fbbf24;
}

body.dark .safety-tip-toggle {
    color: rgba(251, 191, 36, 0.7);
}

body.dark .safety-tip-source {
    color: rgba(251, 191, 36, 0.5);
}

/* ==========================================
   ROZET ACIKLAMASI
   ========================================== */

.sleep-badge-legend {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 4px 0;
}

.badge-legend-star {
    font-size: 0.55rem;
    line-height: 1;
}

.badge-legend-text {
    font-size: 0.58rem;
    color: #7080a8;
    font-weight: 500;
    letter-spacing: 0.01em;
}

body.dark .badge-legend-text {
    color: rgba(255, 255, 255, 0.35);
}

/* ==========================================
   SIRALAMA BUTONLARI
   ========================================== */

.sleep-sort-bar {
    display: flex;
    gap: 0;
    padding: 8px 0 4px;
    justify-content: center;
}

.sleep-sort-bar-inner {
    display: flex;
    width: 100%;
    border-radius: 20px;
    background: rgba(79, 92, 143, 0.07);
    border: 1px solid rgba(79, 92, 143, 0.12);
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sort-chip {
    flex: 1;
    padding: 7px 14px;
    border-radius: 0;
    border: none;
    background: transparent;
    color: rgba(61, 74, 122, 0.55);
    font-size: 0.63rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-family: "Quicksand", "Nunito", sans-serif;
    position: relative;
    letter-spacing: 0.01em;
}

.sort-chip:hover {
    color: rgba(61, 74, 122, 0.85);
}

.sort-chip.active {
    background: rgba(255, 255, 255, 0.85);
    color: #5B6AE8;
}

/* Dark mode */
body.dark .sleep-sort-bar-inner {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .sort-chip {
    color: rgba(255, 255, 255, 0.45);
}

body.dark .sort-chip:hover {
    color: rgba(255, 255, 255, 0.8);
}

body.dark .sort-chip.active {
    background: rgba(255, 255, 255, 0.12);
    color: #8DA4EF;
}

/* ==========================================
   SES KARTLARI GRID
   ========================================== */

.sleep-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    justify-items: center;
    padding: 14px 0 8px;
}

/* ==========================================
   SES KARTI - Kidlio Balon Stili
   ========================================== */

.sleep-sound-card {
    width: 100%;
    max-width: 95px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px;
    overflow: visible;
    text-decoration: none;

    /* Glassmorphism balon — activities card stili */
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(220, 230, 255, 0.8) 30%,
        rgba(195, 210, 245, 0.7) 60%,
        rgba(170, 190, 235, 0.6) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(220, 230, 255, 0.65);
    box-shadow:
        0 0 25px rgba(100, 120, 200, 0.15),
        0 8px 32px rgba(22, 38, 72, 0.18),
        inset 0 -8px 20px rgba(100, 120, 200, 0.12),
        inset 0 8px 20px rgba(255, 255, 255, 0.35);

    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: bubble-float-sleep 4s ease-in-out infinite;
}

/* Her kart farklı zamanlama */
.sleep-sound-card:nth-child(1) { animation-delay: 0s; }
.sleep-sound-card:nth-child(2) { animation-delay: 0.3s; }
.sleep-sound-card:nth-child(3) { animation-delay: 0.6s; }
.sleep-sound-card:nth-child(4) { animation-delay: 0.9s; }
.sleep-sound-card:nth-child(5) { animation-delay: 0.2s; }
.sleep-sound-card:nth-child(6) { animation-delay: 0.5s; }
.sleep-sound-card:nth-child(7) { animation-delay: 0.8s; }
.sleep-sound-card:nth-child(8) { animation-delay: 0.1s; }
.sleep-sound-card:nth-child(9) { animation-delay: 0.4s; }
.sleep-sound-card:nth-child(10) { animation-delay: 0.7s; }
.sleep-sound-card:nth-child(11) { animation-delay: 1s; }
.sleep-sound-card:nth-child(12) { animation-delay: 0.35s; }

@keyframes bubble-float-sleep {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.01); }
}

/* Balon parlama efekti (cam yansımasi) */
.sleep-sound-card::before {
    content: "";
    position: absolute;
    top: 8%;
    left: 18%;
    width: 25%;
    height: 20%;
    background: radial-gradient(
        ellipse,
        rgba(255, 255, 255, 0.6) 0%,
        transparent 70%
    );
    border-radius: 50%;
    transform: rotate(-30deg);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Balon alt golge */
.sleep-sound-card::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 10px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.sleep-sound-card:hover {
    transform: translateY(-15px) scale(1.12);
    box-shadow:
        0 0 30px rgba(100, 120, 200, 0.25),
        0 0 60px rgba(100, 120, 200, 0.1),
        0 16px 48px rgba(22, 38, 72, 0.2),
        inset 0 -8px 20px rgba(100, 120, 200, 0.15),
        inset 0 8px 20px rgba(255, 255, 255, 0.4);
    border-color: rgba(220, 230, 255, 0.9);
    animation: none;
}

.sleep-sound-card:hover::after {
    width: 50%;
    opacity: 0.3;
    bottom: -25px;
}

.sleep-sound-card:active {
    transform: translateY(-5px) scale(1.04);
}

/* Glow efekti - renk bazli */
.sound-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-color, #6aacf8) 0%, transparent 65%);
    opacity: 0.08;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.sleep-sound-card:hover .sound-card-glow {
    opacity: 0.2;
}

/* ==========================================
   AKTİF KART - Çalarken
   ========================================== */

.sleep-sound-card.playing {
    border-color: rgba(100, 172, 248, 0.6);
    box-shadow:
        0 0 24px rgba(100, 172, 248, 0.35),
        0 12px 36px rgba(22, 38, 72, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: sleep-card-breathe 2.5s ease-in-out infinite;
}

.sleep-sound-card.playing .sound-card-glow {
    opacity: 0.3;
}

.sleep-sound-card.playing.paused {
    animation: bubble-float-sleep 4s ease-in-out infinite;
    border-color: rgba(100, 172, 248, 0.3);
    box-shadow:
        0 8px 32px rgba(22, 38, 72, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sleep-sound-card.playing.paused .sound-card-glow {
    opacity: 0.12;
}

@keyframes sleep-card-breathe {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 24px rgba(100, 172, 248, 0.35), 0 12px 36px rgba(22, 38, 72, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 0 28px rgba(100, 172, 248, 0.4), 0 14px 38px rgba(22, 38, 72, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    }
}

/* Bilimsel kanit rozeti */
.sound-card-badge {
    position: absolute;
    top: -2px;
    right: 2px;
    font-size: 0.65rem;
    z-index: 3;
    line-height: 1;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

/* Mod rozeti */
.sound-card-badge-mode {
    font-size: 0.32rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(99, 102, 241, 0.4);
    padding: 1px 2.5px;
    border-radius: 2.5px;
    filter: none;
    box-shadow: none;
}

body.dark .sound-card-badge-mode {
    color: rgba(167, 139, 250, 0.7);
    background: rgba(167, 139, 250, 0.25);
    box-shadow: none;
}


/* Kart ikon */
.sound-card-icon {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    margin-bottom: 2px;
}

.sleep-sound-card:hover .sound-card-icon {
    transform: scale(1.15) rotate(-8deg);
}

.sleep-sound-card.playing .sound-card-icon {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2))
            drop-shadow(0 0 12px var(--glow-color, rgba(100, 172, 248, 0.5)));
}

/* Kart isim */
.sound-card-name {
    font-size: 0.7rem;
    font-weight: 700;
    font-family: "Quicksand", "Nunito", sans-serif;
    color: #6B63C8;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-shadow: none;
    position: relative;
    z-index: 1;
}

/* Ses dalgasi animasyonu (calarken) */
.sound-card-wave {
    display: none;
    gap: 2px;
    align-items: flex-end;
    height: 10px;
    position: relative;
    z-index: 1;
}

.sleep-sound-card.playing .sound-card-wave {
    display: flex;
}

.sleep-sound-card.playing.paused .sound-card-wave {
    display: flex;
    opacity: 0.35;
}

.wave-bar {
    width: 2.5px;
    border-radius: 2px;
    background: rgba(79, 92, 143, 0.6);
}

.wave-bar:nth-child(1) {
    height: 4px;
    animation: wave-1 0.8s ease-in-out infinite;
}

.wave-bar:nth-child(2) {
    height: 8px;
    animation: wave-2 0.8s ease-in-out infinite 0.15s;
}

.wave-bar:nth-child(3) {
    height: 5px;
    animation: wave-3 0.8s ease-in-out infinite 0.3s;
}

.sleep-sound-card.playing.paused .wave-bar {
    animation-play-state: paused;
}

@keyframes wave-1 {
    0%, 100% { height: 4px; }
    50% { height: 9px; }
}

@keyframes wave-2 {
    0%, 100% { height: 8px; }
    50% { height: 3px; }
}

@keyframes wave-3 {
    0%, 100% { height: 5px; }
    50% { height: 10px; }
}

/* ==========================================
   DARK MODE - Kartlar
   ========================================== */

body.dark .sleep-sound-card {
    background: radial-gradient(
        circle at 30% 30%,
        rgba(180, 160, 255, 0.25) 0%,
        rgba(140, 120, 240, 0.2) 30%,
        rgba(100, 80, 220, 0.15) 60%,
        rgba(70, 50, 200, 0.1) 100%
    );
    border-color: rgba(148, 112, 245, 0.25);
    box-shadow:
        0 8px 32px rgba(5, 5, 20, 0.4),
        inset 0 -8px 20px rgba(80, 50, 180, 0.15),
        inset 0 8px 20px rgba(255, 255, 255, 0.1);
}

body.dark .sleep-sound-card::before {
    background: radial-gradient(
        ellipse,
        rgba(255, 255, 255, 0.4) 0%,
        transparent 70%
    );
}

body.dark .sleep-sound-card::after {
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
}

body.dark .sleep-sound-card:hover {
    box-shadow:
        0 0 30px rgba(148, 112, 245, 0.2),
        0 0 60px rgba(148, 112, 245, 0.08),
        0 16px 48px rgba(5, 5, 20, 0.4),
        inset 0 -8px 20px rgba(80, 50, 180, 0.2),
        inset 0 8px 20px rgba(255, 255, 255, 0.15);
    border-color: rgba(148, 112, 245, 0.5);
}

body.dark .sleep-sound-card.playing {
    border-color: rgba(148, 112, 245, 0.5);
    box-shadow:
        0 0 24px rgba(148, 112, 245, 0.25),
        0 12px 36px rgba(5, 5, 20, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.dark .sound-card-name {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: none;
}

body.dark .wave-bar {
    background: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   PLAYER BAR (FIXED)
   ========================================== */

.sleep-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 16px 20px;
}

.player-content {
    max-width: 480px;
    margin: 0 auto;
    padding: 14px 18px;
    border-radius: 20px;

    background: linear-gradient(
        145deg,
        rgba(220, 225, 245, 0.92) 0%,
        rgba(200, 210, 240, 0.88) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(180, 195, 235, 0.6);
    box-shadow:
        0 -8px 32px rgba(100, 120, 180, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Player ust satir */
.player-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

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

.player-emoji {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.player-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #3d4a7a;
    text-shadow: none;
}

.player-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Play Butonu */
.player-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    position: relative;

    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(255, 255, 255, 0.3) 0%,
            transparent 50%
        ),
        linear-gradient(145deg, #6aacf8 0%, #5A9AF5 50%, #4080E0 100%);
    color: white;
    box-shadow:
        0 4px 16px rgba(64, 128, 224, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-play-btn:hover {
    transform: scale(1.1);
    box-shadow:
        0 6px 20px rgba(64, 128, 224, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.player-play-btn:active {
    transform: scale(0.95);
}

/* Stop Butonu */
.player-stop-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    background: rgba(79, 92, 143, 0.1);
    color: rgba(61, 74, 122, 0.6);
    border: 1px solid rgba(79, 92, 143, 0.15);
    transition: all 0.3s ease;
}

.player-stop-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.25);
    transform: scale(1.05);
}

.player-stop-btn:active {
    transform: scale(0.95);
}

/* Volume */
.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.volume-icon {
    font-size: 0.75rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(106, 172, 248, 0.7) 0%, rgba(106, 172, 248, 0.7) 53%, rgba(79, 92, 143, 0.12) 53%, rgba(79, 92, 143, 0.12) 100%);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #8ac0fc 0%, #6aacf8 100%);
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(64, 128, 224, 0.4);
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #8ac0fc 0%, #6aacf8 100%);
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(64, 128, 224, 0.4);
}

/* dB Göstergesi */
.volume-db {
    font-size: 0.58rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease, background 0.3s ease;
}

.volume-db.db-safe {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.volume-db.db-caution {
    color: #b45309;
    background: rgba(180, 83, 9, 0.12);
}

.volume-db.db-loud {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

body.dark .volume-db.db-safe {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
}

body.dark .volume-db.db-caution {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}

body.dark .volume-db.db-loud {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}

/* dB tilde (~) işareti */
.db-tilde {
    font-size: 0.85rem;
    font-weight: 900;
    margin-right: 1px;
    line-height: 0;
}

/* Timer */
.player-timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.timer-chips {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.timer-chip {
    padding: 5px 0;
    width: 42px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(79, 92, 143, 0.18);
    background: rgba(79, 92, 143, 0.08);
    color: rgba(61, 74, 122, 0.6);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timer-chip:hover {
    background: rgba(91, 106, 232, 0.12);
    color: #4f5c8f;
    transform: translateY(-1px);
}

.timer-chip.active {
    background: rgba(91, 106, 232, 0.18);
    border-color: rgba(91, 106, 232, 0.4);
    color: #5B6AE8;
    box-shadow: 0 2px 8px rgba(91, 106, 232, 0.15);
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    color: #5B6AE8;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-left: 2px;
}

.timer-icon {
    font-size: 0.7rem;
}

/* ==========================================
   DARK MODE - Player Bar
   ========================================== */

body.dark .player-content {
    background: linear-gradient(
        145deg,
        rgba(25, 18, 60, 0.96) 0%,
        rgba(15, 10, 45, 0.94) 100%
    );
    border-color: rgba(148, 112, 245, 0.2);
    box-shadow:
        0 -8px 32px rgba(5, 5, 20, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark .player-name {
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

body.dark .player-stop-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark .player-stop-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

body.dark .timer-chip:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

/* Fade-out toggle */
.fade-toggle-btn {
    width: 100%;
    padding: 6px 14px;
    border-radius: 14px;
    border: 1px solid rgba(79, 92, 143, 0.18);
    background: rgba(79, 92, 143, 0.08);
    color: rgba(61, 74, 122, 0.6);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fade-toggle-btn:hover {
    background: rgba(91, 106, 232, 0.12);
    color: #4f5c8f;
    border-color: rgba(91, 106, 232, 0.25);
}

.fade-toggle-btn.active {
    background: rgba(91, 106, 232, 0.18);
    border-color: rgba(91, 106, 232, 0.4);
    color: #5B6AE8;
    box-shadow: 0 2px 8px rgba(91, 106, 232, 0.15);
}

body.dark .fade-toggle-btn {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .fade-toggle-btn:hover {
    background: rgba(100, 160, 240, 0.15);
    color: rgba(160, 200, 255, 0.9);
    border-color: rgba(100, 160, 240, 0.25);
}

body.dark .fade-toggle-btn.active {
    background: rgba(100, 160, 240, 0.2);
    border-color: rgba(100, 160, 240, 0.35);
    color: #6aacf8;
    box-shadow: 0 2px 8px rgba(100, 160, 240, 0.12);
}

/* Fade status badge */
.fade-status {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 8px;
    letter-spacing: 0.03em;
    margin-left: 2px;
}

.fade-status.fade-off {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
}

.fade-status.fade-on {
    background: rgba(91, 106, 232, 0.2);
    color: #5B6AE8;
}

body.dark .fade-status.fade-off {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
}

body.dark .fade-status.fade-on {
    background: rgba(148, 112, 245, 0.25);
    color: #b890fc;
}

body.dark .player-play-btn {
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 50%
        ),
        linear-gradient(145deg, #8B6AF5 0%, #7B5AE0 50%, #6A48C8 100%);
    box-shadow:
        0 4px 16px rgba(107, 60, 200, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.dark .volume-slider {
    background: linear-gradient(90deg, rgba(148, 112, 245, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
}

body.dark .volume-slider::-webkit-slider-thumb {
    background: linear-gradient(145deg, #b890fc 0%, #8B6AF5 100%);
}

body.dark .volume-slider::-moz-range-thumb {
    background: linear-gradient(145deg, #b890fc 0%, #8B6AF5 100%);
}

body.dark .timer-chip {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}

body.dark .timer-chip.active {
    background: rgba(90, 154, 245, 0.25);
    border-color: rgba(90, 154, 245, 0.4);
    color: #6aacf8;
    box-shadow: 0 2px 8px rgba(90, 154, 245, 0.15);
}

body.dark .timer-display {
    color: rgba(106, 172, 248, 0.7);
    background: rgba(90, 154, 245, 0.1);
}

