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

:root {
    --dark-primary: #1a1035;
    --dark-secondary: #0a0718;
    --card-bg: #0f0c22;
    --gold-primary: #c8a84b;
    --gold-light: #e8c47a;
    --blue-accent: #7b9fd4;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --border-color: #2a2545;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'EB Garamond', serif;
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(200, 168, 75, 0.5) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(123, 159, 212, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 40% 20%, rgba(200, 168, 75, 0.35) 0%, transparent 60%);
    animation: backgroundShift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Stars - scattered across background */
        radial-gradient(1px 1px at 5% 10%, rgba(255, 255, 255, 0.95), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 15% 25%, rgba(255, 255, 255, 0.85), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 25% 5%, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 35% 35%, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 50% 15%, rgba(255, 255, 255, 0.88), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 65% 45%, rgba(255, 255, 255, 0.92), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.85), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 10% 75%, rgba(255, 255, 255, 0.82), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 45% 85%, rgba(255, 255, 255, 0.95), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 75% 75%, rgba(255, 255, 255, 0.85), rgba(0, 0, 0, 0));
    background-repeat: no-repeat;
    background-size: 100% 100%;
    animation: starTwinkle 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    will-change: opacity;
}

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

/* ===== BACKGROUND EFFECTS ===== */

.stars {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.stars::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 120px, rgba(200, 168, 75, 0.25) 120px, rgba(200, 168, 75, 0.25) 240px),
        repeating-linear-gradient(-45deg, transparent, transparent 120px, rgba(123, 159, 212, 0.22) 120px, rgba(123, 159, 212, 0.22) 240px);
    animation: slideBackground 30s linear infinite;
    opacity: 1;
}

.stars::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.95), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 60px 70px, rgba(255, 255, 255, 0.75), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.85), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.7), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 90px 10px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 1;
}

.moon {
    position: fixed;
    top: 80px;
    right: 100px;
    width: 200px;
    height: 200px;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.moon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 168, 75, 0.15) 0%, rgba(200, 168, 75, 0.05) 50%, transparent 100%);
    box-shadow: 0 0 100px rgba(200, 168, 75, 0.2);
    animation: float 6s ease-in-out infinite;
}

.moon-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(232, 196, 122, 0.6), var(--gold-primary));
    box-shadow: inset -10px -10px 40px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(200, 168, 75, 0.4),
                0 0 100px rgba(200, 168, 75, 0.2);
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

.orbital-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
    will-change: transform;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.orbiting-star {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at 30% 30%, rgba(232, 196, 122, 0.9), rgba(200, 168, 75, 0.5));
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(200, 168, 75, 0.6), 0 0 30px rgba(200, 168, 75, 0.3);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.orbiting-star.star-1 {
    top: 0%;
    left: 50%;
}

.orbiting-star.star-2 {
    top: 50%;
    left: 100%;
}

.orbiting-star.star-3 {
    top: 100%;
    left: 50%;
}

.orbiting-star.star-4 {
    top: 50%;
    left: 0%;
}

.orbiting-star.star-5 {
    top: 25%;
    left: 75%;
}

/* ===== HERO SECTION ===== */

.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 168, 75, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes slideBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes moonGlow {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scale(1);
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1.2s ease-out;
}

.hero-title {
    font-family: 'EB Garamond', serif;
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 40px rgba(200, 168, 75, 0.3);
}

.hero-subtitle {
    font-family: 'EB Garamond', serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--blue-accent);
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(123, 159, 212, 0.2);
}

.hero-tagline {
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 300;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 3rem;
}

.scroll-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 1rem;
    letter-spacing: 1px;
    animation: fadeInUp 1.2s ease-out 0.4s backwards;
}

.scroll-link:hover {
    background: var(--gold-primary);
    color: var(--dark-primary);
    box-shadow: 0 0 30px rgba(200, 168, 75, 0.5);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== POEM PLAYER PAGE ===== */

.poem-player-page {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1rem;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    display: block;
}

.player-page-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.back-to-poems {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.8rem 2rem;
    background: var(--gold-primary);
    color: var(--dark-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    font-size: 1rem;
}

.back-to-poems:hover {
    background: var(--gold-light);
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(200, 168, 75, 0.5);
}

.poem-player-content {
    background: linear-gradient(135deg, rgba(15, 12, 34, 0.95) 0%, rgba(10, 7, 24, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    width: 100%;
    box-sizing: border-box;
}

.player-waveform-container {
    background: rgba(200, 168, 75, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.8rem;
    margin-bottom: 0.8rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    margin-bottom: 0.8rem;
    cursor: pointer;
    appearance: none;
    background: transparent;
    border: none;
    padding: 0;
}

.progress-bar::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold-light);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(200, 168, 75, 0.5);
}

.progress-bar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold-light);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(200, 168, 75, 0.5);
}

.progress-bar::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-primary) var(--value, 0%), rgba(200, 168, 75, 0.2) var(--value, 0%), rgba(200, 168, 75, 0.2) 100%);
    height: 6px;
    border-radius: 3px;
}

.progress-bar::-moz-range-track {
    background: rgba(200, 168, 75, 0.2);
    height: 6px;
    border-radius: 3px;
    border: none;
}

/* ===== CONTAINER ===== */

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}

.container::before {
    content: '';
    position: fixed;
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(200, 168, 75, 0.1);
    border-radius: 45% 55% 50% 50%;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.container::after {
    content: '';
    position: fixed;
    bottom: 15%;
    right: 8%;
    width: 250px;
    height: 250px;
    border: 2px solid rgba(123, 159, 212, 0.1);
    border-radius: 50% 50% 55% 45%;
    animation: float 10s ease-in-out infinite;
    animation-delay: -2s;
    pointer-events: none;
    z-index: 1;
}

/* ===== POEMS GRID ===== */

.poems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

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

/* ===== POEM CARDS ===== */

.poem-card {
    background: var(--card-bg);
    border-left: 3px solid var(--gold-primary);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.poem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, 0.6), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.7), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, 0.6), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 20% 80%, rgba(255, 255, 255, 0.4), rgba(0, 0, 0, 0));
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    animation: twinkle 4s ease-in-out infinite;
}

.poem-card::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 12%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, rgba(232, 196, 122, 0.4), var(--gold-primary));
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(200, 168, 75, 0.3);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    animation: moonGlow 6s ease-in-out infinite;
}

.poem-card:hover {
    border-left-color: var(--blue-accent);
    box-shadow: 0 0 40px rgba(200, 168, 75, 0.15),
                0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
}

.card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(200, 168, 75, 0.1), rgba(123, 159, 212, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

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

.placeholder-image {
    font-size: 4rem;
    color: var(--gold-primary);
    opacity: 0.4;
    animation: float 3s ease-in-out infinite;
}

.card-content {
    flex: 1;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.card-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    font-weight: 400;
}

.play-button {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue-accent);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(123, 159, 212, 0.3);
    z-index: 3;
}

.play-button:hover {
    background: var(--gold-light);
    box-shadow: 0 0 20px rgba(200, 168, 75, 0.5),
                0 3px 10px rgba(123, 159, 212, 0.4);
    transform: scale(1.08);
}

.play-button svg {
    width: 22px;
    height: 22px;
}

/* ===== PLAYER MODAL ===== */

.player-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 24, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

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

.modal-moon {
    position: absolute;
    top: 60px;
    right: 60px;
    width: 150px;
    height: 150px;
    z-index: 2;
    pointer-events: none;
}

.modal-moon .moon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 168, 75, 0.15) 0%, rgba(200, 168, 75, 0.05) 50%, transparent 100%);
    box-shadow: 0 0 80px rgba(200, 168, 75, 0.2);
    animation: float 6s ease-in-out infinite;
}

.modal-moon .moon-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(232, 196, 122, 0.6), var(--gold-primary));
    box-shadow: inset -8px -8px 30px rgba(0, 0, 0, 0.5),
                0 0 50px rgba(200, 168, 75, 0.4),
                0 0 80px rgba(200, 168, 75, 0.2);
}

.modal-moon .orbital-ring {
    width: 280px;
    height: 280px;
}

.modal-moon .orbiting-star {
    width: 6px;
    height: 6px;
}

.player-container {
    background: linear-gradient(135deg, rgba(15, 12, 34, 0.95) 0%, rgba(10, 7, 24, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.4s ease-out;
    backdrop-filter: blur(5px);
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) rgba(200, 168, 75, 0.1);
}

#player-animation-canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    opacity: 0.4 !important;
    border-radius: 16px !important;
    pointer-events: none !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-top-bar {
    display: flex;
    align-items: center;
    width: calc(100% + 5rem);
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    padding: 1.5rem 2.5rem;
    background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    border-radius: 16px 16px 0 0;
    border-bottom: 3px solid var(--gold-light);
}

.player-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--dark-primary);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: var(--transition);
    z-index: 3;
    border-radius: 0;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: none;
    width: 100%;
}

.player-close:hover {
    transform: translateX(-8px);
    color: rgba(26, 16, 53, 0.8);
}

.player-close:active {
    transform: translateX(-5px);
}

.player-header {
    margin-bottom: 0.8rem;
    padding-left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.player-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.2;
    flex: 1;
}

.back-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    background: var(--gold-primary);
    color: var(--dark-primary);
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
}

.player-subtitle {
    font-size: 0.85rem;
    color: var(--gold-primary);
    font-style: italic;
    font-weight: 400;
    display: block;
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
}

.player-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===== WAVEFORM ===== */

.waveform-container {
    background: rgba(200, 168, 75, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
}

#waveform {
    margin-bottom: 1.5rem;
}

#waveform wave {
    --wave-color: var(--gold-primary);
    --progress-color: var(--gold-light);
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

/* ===== PLAYER CONTROLS ===== */

.player-controls {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin: 0.8rem 0;
}

.control-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    border: none;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(200, 168, 75, 0.3);
}

.control-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(200, 168, 75, 0.5),
                0 4px 12px rgba(200, 168, 75, 0.4);
}

.control-button svg {
    width: 24px;
    height: 24px;
}

/* ===== LYRICS ===== */

.lyrics-section {
    display: none;
}

.lyrics-container {
    background: rgba(123, 159, 212, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    max-height: 280px;
    overflow-y: auto;
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

.lyric-line {
    transition: var(--transition);
    cursor: pointer;
    padding: 0.25rem 0;
    opacity: 0.5;
    line-height: 2;
}

.lyric-line.past {
    opacity: 0.4;
    color: var(--text-secondary);
}

.lyric-line.current {
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 1.2rem;
    opacity: 1;
    text-shadow: 0 0 15px rgba(200, 168, 75, 0.4);
}

.lyric-line.future {
    opacity: 0.3;
    color: var(--text-secondary);
}

/* Word-level lyric sync */
.lyric-word {
    display: inline;
    transition: all 0.1s ease-out;
    cursor: pointer;
    padding: 0 0.15rem;
    border-radius: 3px;
}

.lyric-word.current {
    color: var(--gold-light);
    font-weight: 700;
    background: rgba(200, 168, 75, 0.15);
    text-shadow: 0 0 10px rgba(200, 168, 75, 0.6);
    box-shadow: 0 0 15px rgba(200, 168, 75, 0.3);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    animation: wordPulse 0.3s ease-out;
}

@keyframes wordPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(200, 168, 75, 0.4);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 15px rgba(200, 168, 75, 0.8);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(200, 168, 75, 0.6);
    }
}

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* ===== FOOTER ===== */

.footer {
    position: relative;
    padding: 1rem 1rem 0.8rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-decoration {
    width: 0;
    height: 0;
    margin: 0;
    opacity: 0;
    display: none;
}

.admin-link {
    display: inline-block;
    font-size: 1rem;
    text-decoration: none;
    color: var(--gold-primary);
    opacity: 0.6;
    transition: var(--transition);
    margin-top: 0;
    padding: 0.3rem;
}

.admin-link:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .poems-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2.5rem;
    }

    .moon {
        width: 150px;
        height: 150px;
        top: 40px;
        right: 40px;
    }

    .moon-glow {
        width: 250px;
        height: 250px;
    }

    .moon-core {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 768px) {
    .poem-player-page {
        padding: 1rem;
        padding-top: 1.5rem;
    }

    .player-page-container {
        max-width: 100%;
        margin: 0 auto;
    }

    .back-to-poems {
        margin-bottom: 1.5rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .poem-player-content {
        padding: 1.2rem;
    }

    .player-waveform-container {
        padding: 1rem 0.8rem;
    }

    .container {
        padding: 2.5rem 1rem;
    }

    .poems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero {
        min-height: 80vh;
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .hero-glow {
        width: 500px;
        height: 500px;
    }

    .player-container {
        padding: 1.5rem;
        max-height: 95vh;
    }

    .player-header {
        margin-bottom: 1rem;
        gap: 0.8rem;
    }

    .player-title {
        font-size: 1.3rem;
    }

    .back-link {
        font-size: 0.9rem;
        padding: 0.45rem 0.9rem;
    }

    .player-controls {
        gap: 0.8rem;
    }

    .control-button {
        width: 44px;
        height: 44px;
    }

    .control-button svg {
        width: 20px;
        height: 20px;
    }

    .waveform-container {
        padding: 1.2rem 1rem;
    }

    .lyrics-container {
        padding: 1.2rem;
        max-height: 220px;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .moon {
        width: 100px;
        height: 100px;
        top: 20px;
        right: 20px;
    }

    .moon-glow {
        width: 180px;
        height: 180px;
    }

    .moon-core {
        width: 60px;
        height: 60px;
    }

    .orbital-ring {
        width: 200px;
        height: 200px;
    }

    .orbiting-star {
        width: 5px;
        height: 5px;
    }

    .scroll-link {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .modal-moon {
        top: 10px;
        right: 10px;
        width: 80px;
        height: 80px;
    }

    .modal-moon .moon-glow {
        width: 140px;
        height: 140px;
    }

    .modal-moon .moon-core {
        width: 50px;
        height: 50px;
    }

    .modal-moon .orbital-ring {
        width: 140px;
        height: 140px;
    }

    .modal-moon .orbiting-star {
        width: 4px;
        height: 4px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }

    .hero {
        min-height: 70vh;
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: 0.85rem;
        margin-bottom: 2rem;
    }

    .scroll-link {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
        border-width: 1.5px;
    }

    .hero-content {
        animation: fadeInUp 1s ease-out;
    }

    .poems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .poem-card {
        border-left-width: 3px;
        height: auto;
        max-width: 100%;
    }

    .card-image {
        height: 180px;
        width: 100%;
    }

    .card-title {
        font-size: 1.15rem;
        margin-bottom: 0.3rem;
    }

    .card-subtitle {
        font-size: 0.85rem;
    }

    .card-content {
        padding: 1.2rem;
    }

    .play-button {
        width: 44px;
        height: 44px;
        bottom: 1rem;
        right: 1rem;
        background: var(--blue-accent);
        box-shadow: 0 3px 10px rgba(123, 159, 212, 0.4);
    }

    .play-button svg {
        width: 20px;
        height: 20px;
    }

    .poem-player-page {
        padding: 0.75rem;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    .poem-player-content {
        padding: 1rem;
    }

    .player-player-content {
        padding: 1rem;
    }

    .player-header {
        margin-bottom: 0.8rem;
        gap: 0.5rem;
    }

    .player-title {
        font-size: 1.2rem;
        margin-bottom: 0;
        line-height: 1.2;
    }

    .back-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        flex-shrink: 0;
    }

    .player-subtitle {
        font-size: 0.8rem;
        margin-top: 0.3rem;
        margin-bottom: 0.5rem;
    }

    .player-waveform-container {
        padding: 0.8rem 0.6rem;
        margin-bottom: 0.8rem;
    }

    .progress-bar {
        height: 5px;
        margin-bottom: 0.6rem;
    }

    .progress-bar::-webkit-slider-thumb {
        width: 12px;
        height: 12px;
    }

    .progress-bar::-moz-range-thumb {
        width: 12px;
        height: 12px;
    }

    .time-info {
        font-size: 0.75rem;
        gap: 1rem;
    }

    .player-controls {
        gap: 0.6rem;
        margin: 0.8rem 0;
    }

    .control-button {
        width: 40px;
        height: 40px;
        box-shadow: 0 2px 8px rgba(200, 168, 75, 0.15);
    }

    .control-button svg {
        width: 20px;
        height: 20px;
    }

    .lyrics-section {
        margin-top: 0.8rem;
    }

    .lyrics-container {
        padding: 1rem;
        max-height: 180px;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .lyric-line {
        padding: 0.15rem 0;
        line-height: 1.5;
    }

    .lyric-line.current {
        font-size: 1rem;
    }

    .footer {
        padding: 1.2rem 0.75rem 1rem;
    }

    .footer-decoration {
        width: 80px;
        height: 30px;
        margin: 0 auto 1rem;
    }

    .admin-link {
        font-size: 1rem;
        margin-top: 0.8rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-tagline {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .scroll-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .card-image {
        height: 150px;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .card-subtitle {
        font-size: 0.8rem;
    }

    .play-button {
        width: 40px;
        height: 40px;
        bottom: 0.9rem;
        right: 0.9rem;
    }

    .play-button svg {
        width: 18px;
        height: 18px;
    }

    .poem-player-content {
        padding: 0.8rem;
    }

    .player-header {
        margin-bottom: 0.6rem;
        gap: 0.4rem;
    }

    .player-title {
        font-size: 1.1rem;
        line-height: 1.1;
    }

    .back-link {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }

    .player-subtitle {
        font-size: 0.75rem;
        margin-top: 0.2rem;
    }

    .player-waveform-container {
        padding: 0.6rem 0.5rem;
        margin-bottom: 0.6rem;
    }

    .progress-bar {
        height: 4px;
        margin-bottom: 0.4rem;
    }

    .progress-bar::-webkit-slider-thumb {
        width: 10px;
        height: 10px;
    }

    .progress-bar::-moz-range-thumb {
        width: 10px;
        height: 10px;
    }

    .time-info {
        font-size: 0.7rem;
    }

    .player-controls {
        gap: 0.5rem;
        margin: 0.6rem 0;
    }

    .control-button {
        width: 40px;
        height: 40px;
        box-shadow: 0 2px 8px rgba(200, 168, 75, 0.15);
    }

    .control-button svg {
        width: 18px;
        height: 18px;
    }

    .lyrics-container {
        max-height: 150px;
        font-size: 0.85rem;
        padding: 0.8rem;
        line-height: 1.4;
    }

    .lyric-line {
        padding: 0.1rem 0;
        line-height: 1.4;
    }

    .lyric-line.current {
        font-size: 0.95rem;
    }

    .footer {
        padding: 1rem 1rem 0.8rem;
    }

    .admin-link {
        font-size: 0.9rem;
        padding: 0.3rem;
    }
}
