/* ===== LOVE POEMS WEBSITE - ENHANCED STYLING ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a0a0a;
    --primary-light: #1a1a1a;
    --primary-lighter: #2d2d2d;
    --accent-red: #dc143c;
    --accent-red-light: #e74c3c;
    --accent-red-dark: #b91c2c;
    --text-light: #f0f0f0;
    --text-muted: rgba(240, 240, 240, 0.7);
    --red-glow: #ff4444;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, #050505 0%, #0a0a0a 25%, #0f0505 50%, #0a0a0a 75%, #000000 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Changed from center to flex-start */
    padding-top: 50px;           /* Standardized top offset */
    overflow-x: clip;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
    padding-top: 20px;
}

/* ===== ANIMATED BACKGROUND ===== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        radial-gradient(1px 1px at 5% 10%, #fff, transparent),
        radial-gradient(1px 1px at 15% 80%, #dc143c, transparent),
        radial-gradient(2px 2px at 25% 30%, #ff4444, transparent),
        radial-gradient(1px 1px at 40% 60%, #fff, transparent),
        radial-gradient(1px 1px at 60% 20%, #dc143c, transparent),
        radial-gradient(2px 2px at 75% 70%, #e74c3c, transparent),
        radial-gradient(1px 1px at 85% 40%, #fff, transparent),
        radial-gradient(1px 1px at 95% 75%, #dc143c, transparent),
        radial-gradient(1.5px 1.5px at 12% 40%, #ff6b6b, transparent),
        radial-gradient(1px 1px at 30% 90%, #fff, transparent),
        radial-gradient(2px 2px at 50% 50%, #e74c3c, transparent),
        radial-gradient(1px 1px at 70% 10%, #dc143c, transparent),
        radial-gradient(1.5px 1.5px at 88% 60%, #ff4444, transparent),
        radial-gradient(1px 1px at 20% 55%, #fff, transparent),
        radial-gradient(2px 2px at 92% 25%, #e74c3c, transparent);
    background-size: 100% 100%;
    background-attachment: fixed;
    animation: twinkle 5s ease-in-out infinite;
    opacity: 0.9;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Gradient orbs - Full Viewport Frame */
.gradient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
    isolation: isolate;
}

/* Main red glow top-right */
.gradient-orbs::before {
    content: '';
    position: absolute;
    width: min(62vw, 640px);
    height: min(62vw, 640px);
    background: radial-gradient(circle, rgba(220, 20, 60, 0.28), transparent 68%);
    background-clip: content-box;
    border-radius: 50%;
    top: -80px;
    right: -80px;
    animation: float 20s ease-in-out infinite;
    filter: blur(42px);
    padding: 80px;
    margin: -80px;
}

/* Secondary red glow bottom-left */
.gradient-orbs::after {
    content: '';
    position: absolute;
    width: min(52vw, 520px);
    height: min(52vw, 520px);
    background: radial-gradient(circle, rgba(231, 76, 60, 0.22), transparent 68%);
    background-clip: content-box;
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
    animation: float 25s ease-in-out infinite reverse;
    filter: blur(42px);
    padding: 80px;
    margin: -80px;
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(50px, -80px, 0); }
    50% { transform: translate3d(-30px, 120px, 0); }
    75% { transform: translate3d(80px, -40px, 0); }
}

/* Decorative rose petals - subtle animated accents */
.gradient-orbs .petal {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50% 0;
    background: rgba(220, 20, 60, 0.15);
    animation: petal-drift 8s ease-in-out infinite;
}

@keyframes petal-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    50% { opacity: 0.4; }
    100% { transform: translate(100px, 200px) rotate(360deg); opacity: 0; }
}

/* Floating hearts */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.heart {
    position: absolute;
    bottom: -50px;
    animation: floatUp linear infinite;
    user-select: none;
    filter: drop-shadow(0 0 4px rgba(220, 20, 60, 0.6));
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-120vh) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

/* ===== MAIN WRAPPER ===== */
.main-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* ===== CALENDAR TRIGGER ===== */
.calendar-trigger {
    position: fixed;
    top: 22px;
    right: 24px;
    z-index: 30;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(220, 20, 60, 0.5);
    border-radius: 16px;
    background: rgba(20, 10, 10, 0.85);
    color: var(--text-light);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(220, 20, 60, 0.2);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.calendar-trigger:hover {
    transform: translateY(-2px);
    border-color: var(--accent-red-light);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(220, 20, 60, 0.28);
}

.calendar-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.calendar-popover {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 25;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.calendar-popover.active {
    display: block;
    opacity: 1;
}

.calendar-panel {
    width: min(320px, calc(100vw - 32px));
    background: linear-gradient(145deg, rgba(20, 10, 10, 0.98), rgba(10, 5, 5, 0.98));
    border: 1px solid rgba(220, 20, 60, 0.45);
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6), 0 0 28px rgba(220, 20, 60, 0.18);
    padding: 16px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}

.calendar-nav {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(220, 20, 60, 0.35);
    border-radius: 10px;
    background: rgba(220, 20, 60, 0.08);
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.calendar-nav:hover {
    background: rgba(220, 20, 60, 0.18);
    border-color: var(--accent-red-light);
}

.calendar-month {
    flex: 1;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.calendar-weekdays {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(220, 20, 60, 0.25);
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240, 240, 240, 0.72);
}

.calendar-days {
    min-height: 240px;
}

.calendar-day {
    appearance: none;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text-light);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.calendar-day:hover {
    background: rgba(220, 20, 60, 0.08);
    border-color: rgba(220, 20, 60, 0.35);
}

.calendar-day--muted {
    color: rgba(240, 240, 240, 0.35);
}

.calendar-day--today {
    border-color: rgba(220, 20, 60, 0.8);
    box-shadow: inset 0 0 0 1px rgba(220, 20, 60, 0.5);
}

.calendar-day--has-poem {
    background: rgba(220, 20, 60, 0.15);
    border-color: rgba(220, 20, 60, 0.5);
    color: #fff7f7;
}

.calendar-day--selected {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.35), rgba(231, 76, 60, 0.2));
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 26px rgba(220, 20, 60, 0.2);
}

.calendar-day--has-poem::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    margin: 2px auto 0;
    border-radius: 50%;
    background: #ffb4c0;
}

.calendar-day--future {
    color: rgba(240, 240, 240, 0.25);
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day--future:hover {
    background: transparent;
    border-color: transparent;
    cursor: not-allowed;
}

/* ===== POEM CONTAINER ===== */
.poem-container {
    position: relative;
    z-index: 2;
    max-width: 750px;
    width: 90%;
    margin: 120px auto 40px auto;
    padding: 60px 45px;
    background: linear-gradient(145deg, 
        rgba(20, 10, 10, 0.95), 
        rgba(10, 5, 5, 0.98));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 20, 60, 0.4);
    border-radius: 20px;
    box-shadow: 
        0 40px 120px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(220, 20, 60, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s ease, transform 1.5s ease;
    overflow: hidden;
    isolation: isolate;
}

.poem-container::before {
    content: '';
    position: absolute;
    inset: -30% -10% auto auto;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.3), transparent 70%);
    filter: blur(15px);
    pointer-events: none;
    z-index: 0;
}

.poem-container::after {
    content: '';
    position: absolute;
    inset: auto -5% -30% auto;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.2), transparent 70%);
    filter: blur(12px);
    pointer-events: none;
    z-index: 0;
}

.poem-content {
    position: relative;
    z-index: 1;
}

.poem-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LILY MARK ===== */
.lily-mark {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    height: 80px;
    position: relative;
    z-index: 1;
}

.lily-mark svg {
    width: 80px;
    height: 80px;
    color: var(--accent-red);
    filter: drop-shadow(0 0 15px rgba(220, 20, 60, 0.6)) drop-shadow(0 0 8px rgba(220, 20, 60, 0.4));
    animation: lilyGlow 3s ease-in-out infinite;
}

@keyframes lilyGlow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(220, 20, 60, 0.6)) drop-shadow(0 0 8px rgba(220, 20, 60, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(220, 20, 60, 0.8)) drop-shadow(0 0 12px rgba(220, 20, 60, 0.6));
    }
}

/* Blur overlay (lock effect) */
.blur-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: linear-gradient(145deg, 
        rgba(8, 3, 3, 0.9), 
        rgba(15, 8, 8, 0.85));
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, filter 0.7s ease, transform 0.7s ease, backdrop-filter 0.7s ease;
    z-index: 10;
    cursor: pointer;
    box-shadow: 
        0 0 100px 30px rgba(220, 20, 60, 0.15),
        0 0 60px 15px rgba(231, 76, 60, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1), 
        inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.blur-overlay::before,
.blur-overlay::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.25), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.blur-overlay::before {
    top: -30px;
    left: -30px;
}

.blur-overlay::after {
    right: -50px;
    bottom: -50px;
}

.blur-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    color: #f5f5f5;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.75rem;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
    z-index: 1;
}

.blur-content p {
    margin: 0;
    font-weight: 500;
}

.heart-pulse {
    display: inline-block;
    font-size: 3.5rem;
    filter: drop-shadow(0 0 20px rgba(220, 20, 60, 0.9));
    animation: pulse 1.6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) rotate(-10deg);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
        opacity: 1;
    }
}

.blur-overlay.unlocked {
    opacity: 0;
    pointer-events: none;
    filter: blur(10px) saturate(1.3);
    transform: scale(1.05);
    backdrop-filter: blur(0px);
}

/* ===== POEM TEXT STYLING ===== */
.date-badge {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-red-light);
    margin-bottom: 20px;
    font-weight: 500;
    opacity: 0.9;
}

.poem-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(220, 20, 60, 0.4);
    letter-spacing: 2px;
}

.divider {
    color: var(--accent-red-light);
    font-size: 1.8rem;
    margin: 25px 0;
    letter-spacing: 12px;
    opacity: 0.8;
}

.poem-text {
    font-size: 1.25rem;
    line-height: 2;
    color: #d5d5d5;
    white-space: pre-line;
    font-style: italic;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.signature {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--accent-red-light);
    margin-top: 20px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(220, 20, 60, 0.3);
}

.message {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.message .sub {
    font-size: 1rem;
    color: var(--accent-red-light);
    margin-top: 10px;
    font-style: italic;
    opacity: 0.9;
}

/* ===== POEM CONTROLS ===== */
.poem-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.control-btn {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(231, 76, 60, 0.2));
    border: 1px solid rgba(220, 20, 60, 0.4);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.4), rgba(231, 76, 60, 0.4));
    border-color: var(--accent-red);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.4);
}

.control-btn:active {
    transform: scale(0.95);
}

.favorite-btn.active {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.6), rgba(231, 76, 60, 0.6));
    color: #ff8888;
    font-size: 1.8rem;
}

/* ===== CORNER MUSIC PLAYER ===== */
.corner-player {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(330px, calc(100vw - 40px));
    padding: 12px 16px;
    background: rgba(10, 5, 5, 0.9);
    border: 1px solid rgba(220, 20, 60, 0.5);
    border-radius: 999px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(220, 20, 60, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 35px;
    height: 30px;
    min-width: 35px;
}

.visualizer span {
    width: 3px;
    height: 10px;
    border-radius: 2px;
    background: linear-gradient(to top, var(--accent-red), #ff8888);
    transform-origin: center;
}

.corner-player.playing .visualizer span {
    animation: soundBars 0.6s ease-in-out infinite alternate;
}

.corner-player.playing .visualizer span:nth-child(1) { animation-delay: 0s; }
.corner-player.playing .visualizer span:nth-child(2) { animation-delay: -0.1s; }
.corner-player.playing .visualizer span:nth-child(3) { animation-delay: -0.2s; }
.corner-player.playing .visualizer span:nth-child(4) { animation-delay: -0.1s; }
.corner-player.playing .visualizer span:nth-child(5) { animation-delay: 0s; }

@keyframes soundBars {
    from {
        height: 4px;
        opacity: 0.5;
    }
    to {
        height: 20px;
        opacity: 1;
    }
}

.corner-player-info {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    max-width: 160px;
}

.now-playing-label {
    display: block;
    color: var(--accent-red-light);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.8;
}

.corner-song {
    display: block;
    color: var(--text-light);
    font-size: 1rem;
    white-space: nowrap;
    font-weight: 500;
}

.corner-song.overflow-scroll {
    animation: textScroll 10s linear infinite;
    padding-right: 20px;
}

@keyframes textScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.corner-control {
    padding: 6px 10px;
    border: 0;
    border-left: 1px solid rgba(220, 20, 60, 0.3);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font: 500 0.75rem 'Cormorant Garamond', serif;
    transition: all var(--transition);
    min-width: 45px;
    text-align: center;
}

.corner-control:hover {
    color: var(--accent-red-light);
    background: rgba(220, 20, 60, 0.1);
    border-left-color: var(--accent-red-light);
}

.corner-control:active {
    transform: scale(0.95);
}


/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 2;
    padding: 30px 20px;
    color: rgba(200, 200, 200, 0.5);
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 0.08em;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets & Medium Devices (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    html {
        font-size: 15px;
    }

    .poem-container {
        padding: 50px 35px;
        margin: 100px auto 40px auto;
        width: 85%;
    }

    .poem-title {
        font-size: 3rem;
    }

    .corner-player {
        width: min(300px, calc(100vw - 40px));
    }
}

/* Small Tablets (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    html {
        font-size: 14px;
    }

    body {
        padding-top: 15px;
    }

    .poem-container {
        padding: 40px 30px;
        margin: 80px auto 30px auto;
        width: 90%;
        border-radius: 18px;
    }

    .poem-title {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .poem-text {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 25px;
    }

    .signature {
        font-size: 1.5rem;
        margin-top: 18px;
    }

    .divider {
        font-size: 1.5rem;
        letter-spacing: 8px;
        margin: 20px 0;
    }

    .date-badge {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .poem-controls {
        gap: 12px;
        margin-top: 25px;
    }

    .control-btn {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .lily-mark {
        height: 70px;
        margin-bottom: 12px;
    }

    .lily-mark svg {
        width: 70px;
        height: 70px;
    }

    .calendar-trigger {
        top: 18px;
        right: 18px;
        width: 50px;
        height: 50px;
    }

    .corner-player {
        right: 16px;
        bottom: 16px;
        width: calc(100vw - 32px);
        font-size: 0.9rem;
        padding: 10px 14px;
    }

    .corner-control {
        min-width: 38px;
        font-size: 0.68rem;
    }

    .corner-song {
        font-size: 0.95rem;
    }
}

/* Mobile Phones (max 480px) */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    body {
        padding-top: 10px;
        min-height: 100vh;
    }

    .poem-container {
        padding: 28px 18px;
        margin: 100px auto 25px auto;
        width: 92%;
        border-radius: 16px;
        box-shadow: 
            0 30px 80px rgba(0, 0, 0, 0.8),
            0 0 40px rgba(220, 20, 60, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .poem-title {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .poem-text {
        font-size: 0.98rem;
        line-height: 1.7;
        margin-bottom: 20px;
        letter-spacing: 0.3px;
    }

    .signature {
        font-size: 1.25rem;
        margin-top: 15px;
    }

    .date-badge {
        font-size: 0.7rem;
        margin-bottom: 12px;
        letter-spacing: 0.15em;
    }

    .divider {
        font-size: 1.15rem;
        letter-spacing: 5px;
        margin: 15px 0;
        opacity: 0.75;
    }

    .poem-controls {
        gap: 10px;
        margin-top: 18px;
    }

    .control-btn {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .lily-mark {
        height: 65px;
        margin-bottom: 10px;
    }

    .lily-mark svg {
        width: 65px;
        height: 65px;
        filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.5)) drop-shadow(0 0 5px rgba(220, 20, 60, 0.3));
    }

    .message {
        font-size: 1rem;
        line-height: 1.6;
    }

    .message .sub {
        font-size: 0.9rem;
        margin-top: 8px;
    }

    .blur-overlay {
        border-radius: inherit;
    }

    .blur-content {
        font-size: 0.6rem;
        gap: 0.8rem;
    }

    .heart-pulse {
        font-size: 2.5rem;
        filter: drop-shadow(0 0 15px rgba(220, 20, 60, 0.8));
    }

    .blur-content p {
        line-height: 1.4;
    }

    .calendar-trigger {
        top: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .calendar-icon {
        font-size: 1.3rem;
    }

    .calendar-popover {
        top: 75px;
        right: 12px;
    }

    .calendar-panel {
        width: calc(100vw - 24px);
        padding: 14px;
    }

    .calendar-nav {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .calendar-month {
        font-size: 0.95rem;
    }

    .calendar-day {
        font-size: 0.9rem;
    }

    .corner-player {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        padding: 10px 12px;
        border-radius: 25px;
    }

    .corner-player-info {
        max-width: 140px;
    }

    .now-playing-label {
        font-size: 0.6rem;
    }

    .corner-song {
        font-size: 0.85rem;
    }

    .corner-control {
        min-width: 35px;
        padding: 5px 8px;
        font-size: 0.65rem;
    }

    .visualizer span {
        width: 2.5px;
        height: 8px;
    }

    .footer {
        padding: 20px 15px;
        font-size: 0.8rem;
    }
}

/* Extra Small Phones (max 360px) */
@media (max-width: 360px) {
    html {
        font-size: 12px;
    }

    .poem-container {
        padding: 26px 16px;
        margin: 90px auto 20px auto;
        width: 91%;
    }

    .poem-title {
        font-size: 1.7rem;
    }

    .poem-text {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .signature {
        font-size: 1.1rem;
    }

    .calendar-trigger {
        top: 12px;
        right: 12px;
        width: 45px;
        height: 45px;
    }

    .corner-player {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        padding: 8px 10px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Mobile Performance Optimization */
@media (max-width: 480px) and (prefers-reduced-motion: no-preference) {
    /* Ensure smooth animations on mobile */
    .poem-container {
        transition: opacity 1.2s ease, transform 1.2s ease;
    }

    .heart {
        animation: floatUp 8s linear infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    body {
        background: radial-gradient(circle at 50% 0%, #2d1b4e, var(--primary-dark) 60%, #000);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .corner-player,
    .poem-controls,
    .stars,
    .hearts-container,
    .gradient-orbs {
        display: none;
    }

    .poem-container {
        box-shadow: none;
        border: none;
        background: white;
        color: black;
    }
}