/* Custom styles for the audio player */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    transition: background 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #f43f5e;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
    transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #374151;
    border-radius: 2px;
    transition: background 0.2s ease;
}

input[type="range"]:hover::-webkit-slider-runnable-track {
    background: #4b5563;
}

input[type="range"]:focus {
    outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Smooth transitions */
.transition-colors {
    transition: all 0.3s ease;
}

/* Hover effects */
.hover\:text-yellow-400:hover {
    color: #fb7185;
}

/* Custom focus styles */
button:focus {
    outline: none;
    ring: 2px;
    ring-color: #f43f5e;
}

/* Progress bar container */
.progress-container {
    position: relative;
    width: 100%;
    height: 4px;
    background: #374151;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    height: 100%;
    background: #f43f5e;
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Moving gradient background */
#backgroundGradient {
    background: linear-gradient(120deg, #181c2b 0%, #232946 40%, #1a1a2e 100%);
    background-size: 200% 200%;
    animation: gradientMove 16s ease-in-out infinite;
    width: 100vw;
    height: 100vh;
    opacity: 0.92;
    filter: blur(10px) brightness(0.7) contrast(1.1);
}

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

/* Rotating cover photo overlay */
#coverPhoto {
    display: none !important;
}

/* Ensure main content is above backgrounds */
.container {
    position: relative;
    z-index: 20;
}

#chapterCoverImg {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(80, 80, 120, 0.18), 0 1.5px 8px 0 rgba(255, 230, 180, 0.10);
    border: 3px solid rgba(255, 255, 255, 0.13);
    filter: drop-shadow(0 0 12px #f7e9c4aa) blur(0.3px);
    background: rgba(255,255,255,0.06);
    transition: box-shadow 0.5s, filter 0.5s, border 0.5s;
    margin-bottom: 1.5rem;
}

#chapterCover, #chapterCover img { display: none !important; }

/* Player card glassy effect */
.max-w-2xl.bg-gray-800 {
    background: rgba(34, 39, 60, 0.82);
    box-shadow: 0 8px 32px 0 rgba(30, 30, 60, 0.25), 0 1.5px 8px 0 rgba(255, 230, 180, 0.10);
    border-radius: 1.5rem;
    border: 1.5px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(8px) saturate(1.1);
    transition: box-shadow 0.5s, background 0.5s;
}

/* Play button dreamy glow */
#playBtn {
    background: linear-gradient(120deg, #f43f5e 60%, #fb7185 100%);
    box-shadow: 0 0 0 0 #f43f5e80, 0 4px 24px 0 #f43f5e44;
    border: none;
    outline: none;
    transition: box-shadow 0.3s, background 0.3s;
}
#playBtn:hover {
    box-shadow: 0 0 0 8px #f43f5e33, 0 4px 32px 0 #f43f5e66;
    background: linear-gradient(120deg, #f43f5e 80%, #fb7185 100%);
}

/* Chapter list dreamy style */
#chaptersList > div {
    background: rgba(40, 44, 70, 0.82);
    border-radius: 1rem;
    border: 1.5px solid rgba(255,255,255,0.08);
    box-shadow: 0 2px 12px 0 rgba(80, 80, 120, 0.10);
    transition: background 0.3s, box-shadow 0.3s, border 0.3s;
}
#chaptersList > div:hover {
    background: rgba(244, 63, 94, 0.12);
    box-shadow: 0 4px 24px 0 #f43f5e33;
    border: 1.5px solid #f43f5e55;
}
#chaptersList > div.border-l-4.border-rose-500 {
    background: rgba(244, 63, 94, 0.18);
    border-color: #f43f5e !important;
    box-shadow: 0 4px 24px 0 #f43f5e33;
}

/* Soft transitions for all buttons */
button, #playBtn {
    transition: box-shadow 0.3s, background 0.3s, border 0.3s, color 0.3s;
} 