/* =========================================================================
   ERVA ROMANTİK WEB UYGULAMASI - ULTRA GLASSMORPHISM & 3D INTERACTIVE CSS
   Theme: Night Blue (#070a14) + Deep Purple (#7e22ce) + Rose Gold (#f472b6)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #070a14;
    --bg-dark-secondary: #0f1629;
    --accent-purple: #7e22ce;
    --accent-purple-glow: rgba(147, 51, 234, 0.4);
    --rose-gold-light: #fda4af;
    --rose-gold: #f472b6;
    --rose-gold-deep: #e11d48;
    --rose-gold-glow: rgba(244, 114, 182, 0.35);
    --gold-shimmer: linear-gradient(135deg, #fef3c7 0%, #fde047 50%, #f59e0b 100%);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-bg-hover: rgba(30, 41, 59, 0.75);
    --glass-border: rgba(244, 114, 182, 0.18);
    --glass-border-strong: rgba(244, 114, 182, 0.35);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-handwriting: 'Dancing Script', cursive;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-sans: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 130px;
    line-height: 1.6;
}

/* Dynamic Mesh Background Grid & Floating Lights */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: 
        radial-gradient(circle at 15% 20%, rgba(126, 34, 206, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(244, 114, 182, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(15, 22, 41, 1) 0%, #070a14 100%);
}

.bg-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, rgba(244, 114, 182, 0.8), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, rgba(192, 132, 252, 0.9), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 230px 190px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 300px 300px, rgba(244, 114, 182, 0.7), rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 350px 350px;
    opacity: 0.45;
    animation: starsPulse 8s ease-in-out infinite alternate;
}

@keyframes starsPulse {
    0% { opacity: 0.35; transform: scale(1); }
    100% { opacity: 0.65; transform: scale(1.04); }
}

/* Cursor Trail Particles */
.cursor-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    user-select: none;
    animation: particleFade 0.8s ease-out forwards;
}

@keyframes particleFade {
    0% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.3) translateY(-25px); }
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--glass-border-strong);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px var(--rose-gold-glow);
}

.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 0;
}

/* =========================================================================
   1. HERO SECTION & CANLI ZAMAN SAYACI
   ========================================================================= */
.hero-section {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem 1.5rem;
    position: relative;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border-radius: 50px;
    background: rgba(244, 114, 182, 0.12);
    border: 1px solid rgba(244, 114, 182, 0.35);
    color: var(--rose-gold);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(244, 114, 182, 0.25);
}

.badge-pill i {
    font-size: 1rem;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 6.5vw, 4.75rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--rose-gold-light) 50%, var(--rose-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.hero-subtitle strong {
    color: var(--rose-gold);
    font-weight: 600;
}

/* Time Counter Grid */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .counter-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }
}

.counter-box {
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.counter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rose-gold), transparent);
    opacity: 0.8;
}

.counter-number {
    font-family: var(--font-sans);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.35rem;
    text-shadow: 0 0 15px var(--rose-gold-glow);
}

.counter-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.scroll-hint {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.scroll-hint:hover {
    color: var(--rose-gold);
}

.scroll-hint i {
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto;
}

/* =========================================================================
   2. 3D BALMUMU MÜHÜRLÜ AŞK MEKTUBU (WAX SEALED LETTER)
   ========================================================================= */
.letter-section {
    padding: 4rem 0;
}

.envelope-wrapper {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    perspective: 1200px;
    cursor: pointer;
}

.envelope-box {
    width: 100%;
    min-height: 280px;
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid var(--rose-gold);
    border-radius: 20px;
    position: relative;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 35px var(--rose-gold-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.wax-seal {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: radial-gradient(circle, #e11d48 0%, #9f1239 70%, #4c0519 100%);
    border: 2px solid var(--rose-gold-light);
    box-shadow: 0 0 25px rgba(225, 29, 72, 0.6), inset 0 0 10px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: sealGlow 2.5s infinite alternate;
}

@keyframes sealGlow {
    0% { box-shadow: 0 0 15px rgba(225, 29, 72, 0.5); }
    100% { box-shadow: 0 0 35px rgba(244, 114, 182, 0.8); }
}

.envelope-hint {
    font-size: 0.9rem;
    color: var(--rose-gold);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Unfolded Letter Parchment */
.letter-paper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.08) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(254, 224, 71, 0.3);
    border-radius: 24px;
    padding: 0 2.5rem;
    margin-top: 1.5rem;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}

.envelope-wrapper.open .letter-paper {
    max-height: 1200px;
    opacity: 1;
    padding: 2.5rem;
    margin-top: 1.5rem;
}

.letter-heading {
    font-family: var(--font-handwriting);
    font-size: 2.5rem;
    color: var(--rose-gold-light);
    margin-bottom: 1rem;
}

.letter-body {
    font-family: var(--font-handwriting);
    font-size: 1.65rem;
    line-height: 1.8;
    color: #fef08a;
    text-shadow: 0 0 10px rgba(254, 240, 138, 0.2);
}

.btn-close-letter {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-close-letter:hover {
    background: rgba(244, 114, 182, 0.2);
    color: #ffffff;
}

/* =========================================================================
   3. 3D TILT & FLIP ANI FOTOĞRAF GALERİSİ
   ========================================================================= */
.gallery-section {
    padding: 4rem 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    max-width: 950px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.photo-card {
    aspect-ratio: 4 / 5;
    position: relative;
    perspective: 1000px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-card-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    border-radius: 20px;
}

.photo-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    padding: 12px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.photo-image-placeholder {
    width: 100%;
    height: 72%;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.6) 0%, rgba(244, 114, 182, 0.3) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--rose-gold);
    font-size: 2.25rem;
    position: relative;
    overflow: hidden;
}

.photo-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.photo-caption {
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
}

.photo-date {
    font-size: 0.75rem;
    color: var(--rose-gold);
    text-align: center;
}

/* Photo Card Back (Flip Face) */
.photo-face-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: var(--rose-gold);
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.photo-back-story {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

/* =========================================================================
   4. UÇAN PEMBE KALP BALONCUKLARI ("Seni Sevmemin Nedeni...")
   ========================================================================= */
.reasons-section {
    padding: 4rem 0;
    text-align: center;
}

.reasons-box {
    max-width: 650px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-spawn-heart {
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-deep));
    border: none;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px var(--rose-gold-glow);
    transition: var(--transition-bounce);
    margin-bottom: 2rem;
}

.btn-spawn-heart:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 15px 40px rgba(244, 114, 182, 0.5);
}

.love-reason-display {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--rose-gold-light);
    min-height: 60px;
    transition: all 0.4s ease;
}

.floating-bubble {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    animation: floatUpAndFade 4s ease-out forwards;
    user-select: none;
}

@keyframes floatUpAndFade {
    0% { opacity: 1; transform: translate(0, 0) scale(0.6); }
    50% { opacity: 0.9; transform: translate(var(--move-x), -200px) scale(1.2); }
    100% { opacity: 0; transform: translate(calc(var(--move-x) * 1.5), -450px) scale(1.5); }
}

/* =========================================================================
   5. AŞK YOLCULUĞU ZAMAN ÇİZELGESİ (LOVE TIMELINE)
   ========================================================================= */
.timeline-section {
    padding: 4rem 0;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--rose-gold) 15%, var(--accent-purple) 85%, transparent 100%);
    box-shadow: 0 0 15px var(--rose-gold-glow);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin-bottom: 2.5rem;
    width: 50%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
    margin-left: 50%;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    top: 15px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--rose-gold);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 15px var(--rose-gold);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
    right: auto;
}

.timeline-content {
    padding: 1.5rem;
    width: 100%;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--rose-gold);
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================================================
   MEMORIES & SURPRISE & PLAYER ENHANCEMENTS
   ========================================================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 750px;
    margin: 0 auto;
    perspective: 1000px;
}

@media (min-width: 640px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.memory-card {
    aspect-ratio: 3 / 4;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 18px;
}

.memory-card.flipped,
.memory-card.matched {
    transform: rotateY(180deg);
}

.memory-card.matched {
    cursor: default;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.card-back {
    background: linear-gradient(135deg, rgba(15, 22, 41, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
    backdrop-filter: blur(10px);
}

.card-back-pattern {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(244, 114, 182, 0.1);
    border: 1px dashed var(--rose-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose-gold);
    font-size: 1.25rem;
    box-shadow: 0 0 15px rgba(244, 114, 182, 0.15);
}

.card-front {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.95) 0%, rgba(88, 28, 135, 0.9) 100%);
    border-color: var(--rose-gold);
    box-shadow: 0 0 20px var(--rose-gold-glow);
}

.memory-card.matched .card-front {
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.card-icon {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    margin-bottom: 6px;
    color: var(--rose-gold);
}

.card-title {
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
}

.surprise-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(40px);
}

.surprise-wrapper.active {
    max-height: 2000px;
    opacity: 1;
    overflow: visible;
    transform: translateY(0);
    margin-top: 3rem;
}

.surprise-card {
    max-width: 750px;
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 3rem);
    position: relative;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid var(--rose-gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px var(--rose-gold-glow);
}

.surprise-quote-mark {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 4rem;
    font-family: var(--font-heading);
    color: rgba(244, 114, 182, 0.12);
    line-height: 1;
    pointer-events: none;
}

.surprise-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.surprise-category {
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(244, 114, 182, 0.15);
    color: var(--rose-gold);
    font-size: 0.8rem;
    font-weight: 600;
}

.note-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.note-body {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.surprise-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
    flex-wrap: wrap;
    gap: 12px;
}

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

.author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose-gold), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    box-shadow: 0 0 10px var(--rose-gold-glow);
}

.author-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
}

.btn-refresh-note {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--rose-gold);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-refresh-note:hover {
    background: rgba(244, 114, 182, 0.2);
    border-color: var(--rose-gold);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-refresh-note i.spinning {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* CUSTOM AUDIO PLAYER */
.player-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 880px;
    z-index: 1000;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 20px;
    background: rgba(10, 15, 30, 0.88);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(244, 114, 182, 0.35);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(244, 114, 182, 0.25);
}

.player-track-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.track-art {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-purple), var(--rose-gold-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 12px var(--rose-gold-glow);
    flex-shrink: 0;
}

.track-art.playing {
    animation: rotateArt 10s linear infinite;
}

@keyframes rotateArt {
    100% { transform: rotate(360deg); }
}

.track-details {
    overflow: hidden;
}

.track-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.track-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.player-center-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-grow: 1;
    max-width: 420px;
}

.play-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-play-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-deep));
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--rose-gold-glow);
    transition: var(--transition-bounce);
}

.btn-play-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(244, 114, 182, 0.6);
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    min-width: 32px;
}

.progress-bar-wrapper {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-purple), var(--rose-gold));
    border-radius: 10px;
    transition: width 0.1s linear;
}

.player-right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.equalizer-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.eq-bar {
    width: 3px;
    height: 4px;
    background: var(--rose-gold);
    border-radius: 2px;
    transition: height 0.2s ease;
}

.player-bar.playing .eq-bar:nth-child(1) { animation: eqWave 0.8s ease-in-out infinite alternate; }
.player-bar.playing .eq-bar:nth-child(2) { animation: eqWave 1.1s ease-in-out infinite alternate 0.2s; }
.player-bar.playing .eq-bar:nth-child(3) { animation: eqWave 0.7s ease-in-out infinite alternate 0.4s; }
.player-bar.playing .eq-bar:nth-child(4) { animation: eqWave 1.3s ease-in-out infinite alternate 0.1s; }

@keyframes eqWave {
    0% { height: 3px; }
    100% { height: 18px; }
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-mute {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-mute:hover {
    color: var(--rose-gold);
}

.volume-slider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rose-gold);
    cursor: pointer;
    box-shadow: 0 0 8px var(--rose-gold);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
    .player-bar {
        flex-wrap: wrap;
        padding: 10px 14px;
    }
    
    .player-right-controls {
        display: none;
    }
    
    .player-center-controls {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 4px;
    }
    
    .timeline-item, .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 45px;
        padding-right: 0;
        margin-left: 0;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
    }
}
