/* ============================================
   AXSL LANDING PAGE — DESIGN SYSTEM
   ============================================ */

:root {
    /* Core palette */
    --bg-primary: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-card-border: rgba(255, 255, 255, 0.06);

    --text-primary: #e8e6f0;
    --text-secondary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.3);

    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --accent-soft: rgba(139, 92, 246, 0.15);

    --spotify-green: #1db954;
    --spotify-glow: rgba(29, 185, 84, 0.3);

    --game-blue: #5865f2;
    --game-glow: rgba(88, 101, 242, 0.3);

    --status-online: #23a55a;
    --status-idle: #f0b232;
    --status-dnd: #f23f43;
    --status-offline: #80848e;

    --secret-amber: #f59e0b;
    --secret-glow: rgba(245, 158, 11, 0.3);

    /* Spacing & Sizing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --max-width: 480px;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   STARFIELD CANVAS
   ============================================ */

#image-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: url('bg.jpg') center/cover no-repeat;
    opacity: 0.85; /* slight dim for readability of glass */
}

/* Ambient Orbs for Glassmorphism */
.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    animation: floatOrb 20s infinite ease-in-out alternate;
    pointer-events: none;
}
.orb-1 { width: 450px; height: 450px; background: rgba(147, 51, 234, 0.4); top: 5%; left: 15%; animation-delay: 0s; }
.orb-2 { width: 350px; height: 350px; background: rgba(59, 130, 246, 0.4); bottom: 10%; right: 10%; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: rgba(236, 72, 153, 0.4); top: 50%; left: 60%; animation-delay: -10s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.1); }
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 10, 15, 0.7) 100%);
}

/* ============================================
   PAGE WRAPPER
   ============================================ */

.page-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px 30px;
}

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

.profile-container {
    width: 100%;
    max-width: var(--max-width);
    /* Liquid Glass Overhaul */
    background: rgba(20, 20, 24, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    position: relative;
    animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

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

/* ============================================
   AVATAR
   ============================================ */

.avatar-section {
    position: relative;
    animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.avatar-ring {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.4s var(--ease-spring);
}

.avatar-ring:hover {
    transform: scale(1.05);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-primary);
    display: block;
}

.status-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-primary);
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--status-offline);
    transition: background 0.3s ease;
}

.status-dot.online { background: var(--status-online); box-shadow: 0 0 8px var(--status-online); }
.status-dot.idle { background: var(--status-idle); box-shadow: 0 0 8px var(--status-idle); }
.status-dot.dnd { background: var(--status-dnd); box-shadow: 0 0 8px var(--status-dnd); }
.status-dot.offline { background: var(--status-offline); }

/* ============================================
   USER INFO
   ============================================ */

.user-info {
    text-align: center;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.display-name {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.verified-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    -webkit-text-fill-color: initial;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.username {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
    font-family: 'JetBrains Mono', monospace;
}

.discord-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    -webkit-text-fill-color: initial;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    line-height: 1.4;
}

.bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

/* ============================================
   DISCORD STATUS TEXT
   ============================================ */

.status-section {
    animation: fadeInUp 0.8s var(--ease-out) 0.25s both;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    backdrop-filter: blur(12px);
}

.status-emoji {
    font-size: 1rem;
}

/* ============================================
   ACTIVITY CARDS (Spotify / Game)
   ============================================ */

.activity-card {
    width: 100%;
    /* Liquid Glass */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.35s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
    pointer-events: none;
}

.spotify-card {
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.spotify-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.spotify-card::before {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.05), transparent);
}

.spotify-card:hover::before { opacity: 1; }

.game-card {
    animation: fadeInUp 0.8s var(--ease-out) 0.35s both;
}

.game-card::before {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.05), transparent);
}

.game-card:hover::before { opacity: 1; }

.game-card:hover {
    border-color: rgba(88, 101, 242, 0.2);
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.1);
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.spotify-card .activity-header {
    color: var(--spotify-green);
}

.game-card .activity-header {
    color: var(--game-blue);
}

.activity-body {
    display: flex;
    gap: 12px;
    align-items: center;
}

.activity-art {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.game-art {
    border-radius: var(--radius-md);
}

.activity-details {
    min-width: 0;
    flex: 1;
}

.activity-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Spotify Progress */
.spotify-progress {
    margin-top: 12px;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--spotify-green);
    border-radius: 3px;
    width: 0%;
    transition: width 1s linear;
    box-shadow: 0 0 8px var(--spotify-glow);
}

.progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: 'JetBrains Mono', monospace;
}

/* Spotify Player Bar */
.spotify-player {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.spotify-play-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--spotify-green);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.spotify-play-btn:hover {
    transform: scale(1.1);
    background: #1ed760;
    box-shadow: 0 0 14px var(--spotify-glow);
}

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

.spotify-play-btn .pause-icon {
    display: none;
}

.spotify-play-btn.playing .play-icon {
    display: none;
}

.spotify-play-btn.playing .pause-icon {
    display: block;
}

.spotify-play-btn.playing {
    background: var(--spotify-green);
    box-shadow: 0 0 12px var(--spotify-glow);
}

.spotify-progress {
    flex: 1;
    min-width: 0;
}

/* Lyrics */
.lyrics-icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.lyrics-icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lyrics-icon-btn.active-btn {
    color: var(--spotify-green);
    background: rgba(29, 185, 84, 0.15);
}

.spotify-lyrics-container {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.8;
    text-align: center;
    font-family: 'Inter', sans-serif;
    border-radius: 4px;
    scroll-behavior: smooth;
}

.lyric-line {
    margin: 4px 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lyric-line.active {
    color: #fff;
    font-weight: 600;
    transform: scale(1.05);
}

.spotify-lyrics-container::-webkit-scrollbar {
    width: 4px;
}

.spotify-lyrics-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Last played (not currently listening) */
.spotify-card.last-played {
    opacity: 0.6;
    transition: opacity 0.35s var(--ease-out);
}

.spotify-card.last-played:hover {
    opacity: 0.85;
}

.spotify-card.last-played .activity-header span {
    color: var(--text-muted);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-section {
    width: 100%;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 4px;
}

.section-title svg {
    opacity: 0.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    /* Liquid Glass */
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.project-card.deprecated {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
    pointer-events: none;
}

.project-card:not(.secret-card)::before {
    background: linear-gradient(135deg, var(--accent-soft), transparent);
}

.project-card:not(.secret-card):hover::before { opacity: 1; }

.project-card:not(.secret-card):hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.secret-card::before {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), transparent);
}

.secret-card:hover::before { opacity: 1; }

.secret-card:hover {
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.08);
}

.secret-card {
    cursor: default;
}

.project-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
}

.project-icon-img {
    overflow: hidden;
    padding: 0;
    background: none;
}

.project-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.secret-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--secret-amber);
    animation: secretPulse 3s ease-in-out infinite;
}

@keyframes secretPulse {
    0%, 100% { box-shadow: 0 0 0px transparent; }
    50% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.15); }
}

.deprecated-card::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), transparent);
}

.deprecated-card:hover::before { opacity: 1; }

.deprecated-card:hover {
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.08);
    transform: translateY(-2px);
}

.deprecated-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.deprecated-badge {
    display: block;
    margin: 6px auto 0;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: fit-content;
}

.project-info {
    flex: 1;
    min-width: 0;
}

.project-info h3 {
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--text-primary);
}

.project-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 3px;
    line-height: 1.4;
}

.bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.view-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.view-counter:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.project-arrow {
    display: none;
}



.secret-lock {
    color: var(--secret-amber);
    opacity: 0.5;
}

/* ============================================
   SOCIAL BUTTONS
   ============================================ */

.socials-section {
    display: flex;
    gap: 10px;
    animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.social-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.35s var(--ease-out);
    backdrop-filter: blur(12px);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.discord-btn:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.3);
    color: #5865f2;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.2);
}

.web-btn:hover {
    background: var(--accent-soft);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--accent);
    box-shadow: 0 8px 24px var(--accent-glow);
}

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

.footer {
    margin-top: auto;
    padding-top: 40px;
    animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.footer p {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

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

@media (max-width: 480px) {
    .page-wrapper {
        padding: 40px 16px 20px;
    }

    .profile-container {
        gap: 16px;
    }

    .avatar-ring {
        width: 90px;
        height: 90px;
    }

    .display-name {
        font-size: 1.5rem;
    }

    .activity-card {
        padding: 14px;
    }

    .activity-art {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   TOOLTIP
   ============================================ */

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.7rem;
    white-space: nowrap;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s var(--ease-out);
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   SPOTIFY MODAL & CENTERED LYRICS
   ============================================ */

.click-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.spotify-card {
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}
.spotify-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(12px); }
}

.glass-panel {
    background: rgba(25, 25, 30, 0.2);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}

.spotify-modal-content {
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 90vh;
    overflow: hidden; /* Keep content strictly inside the glass bounds */
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}
.modal-close-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-top: 10px;
    flex-shrink: 0;
}
.modal-header img {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.modal-song-info {
    flex-shrink: 0;
}
.modal-song-info h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 4px;
    color: #fff;
    letter-spacing: -0.02em;
}
.modal-song-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.modal-player {
    background: rgba(0,0,0,0.2);
    padding: 14px;
    border-radius: 16px;
    margin: 0;
    flex-shrink: 0;
}

.modal-lyrics-header {
    display: flex;
    justify-content: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.3);
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}
.live-dot {
    width: 6px;
    height: 6px;
    background: var(--spotify-green);
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.7); }
    50% { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 0 4px rgba(29, 185, 84, 0); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(29, 185, 84, 0); }
}

.modal-lyrics-container {
    flex: 1;
    min-height: 0; /* Ensures flexbox allows shrinking so it stays inside modal */
    overflow-y: auto;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 2.2;
    text-align: center;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    position: relative;
    /* Soft masking fade for top and bottom */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}
.modal-lyrics-container::-webkit-scrollbar {
    display: none;
}

.modal-lyrics-padder {
    height: 40vh; /* creates space so first/last lines can reach the exact center */
}

.lyric-line {
    margin: 8px 0;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
    transform-origin: center;
    filter: blur(1px);
    opacity: 0.4;
}
.lyric-line.active {
    color: #fff;
    font-weight: 800;
    transform: scale(1.2);
    filter: blur(0px);
    opacity: 1;
}
