* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    height: 100%;
    background: #000;
}

body {
    --cover-overlay: linear-gradient(180deg, rgba(6, 6, 10, 0.82) 0%, rgba(8, 8, 14, 0.76) 40%, rgba(4, 4, 10, 0.88) 100%);
    --bg-cover: none;
    --lyric-small-font-size: clamp(18px, 4.6vw, 26px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000;
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: #fff;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: background 0.5s ease, background-image 0.5s ease, background-size 0.5s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1024px) {
    body {
        --lyric-small-font-size: clamp(22px, 5.6vw, 26px);
    }
}

@media (max-width: 600px) {
    body {
        --lyric-small-font-size: clamp(24px, 7.8vw, 26px);
    }
}

body.has-cover-bg {
    background-image: var(--cover-overlay), var(--bg-cover);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

/* Universal rule: All white text automatically gets shadow */
* {
    text-shadow: inherit;
}

/* Allow text selection in input fields and textareas */
input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Automatic shadow for all elements with white color in CSS */
.card-title,
.song-title,
.song-artist,
.nav-btn,
.dock-label,
.dock-cover-letter,
.np-title,
.np-artist,
.song-status,
.explicit,
.section-title,
.radio-logo,
.radio-label-abs,
.radio-large-img,
.profile-pic {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Ensure inline styles with white color also get shadow */
[style*="color: #fff"],
[style*="color: white"],
[style*="color:#fff"],
[style*="color:white"] {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Glassmorphic overlay effect - matching liquid glass.html */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    pointer-events: none;
    z-index: 0;
    /* Exclude dock area to prevent flickering */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 120px), 0 calc(100% - 120px));
}

/* Additional glassmorphic layer for depth */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    /* Exclude dock area to prevent flickering */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 120px), 0 calc(100% - 120px));
}

body>* {
    position: relative;
    z-index: 1;
}

:root {
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-highlight: rgba(255, 255, 255, 0.45);
    --glass-bg-strong: rgba(255, 255, 255, 0.22);
    --glass-bg-soft: rgba(255, 255, 255, 0.08);
}

.glass-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 16px;
    min-height: 32px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(140deg, var(--glass-bg-strong), var(--glass-bg-soft));
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    text-shadow: none;
    white-space: nowrap;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.glass-pill::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
}

.glass-pill svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
    opacity: 0.9;
}

.glass-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.glass-pill:active {
    transform: scale(0.97);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.glass-pill-accent,
.nav-btn.active,
.chip.active {
    background: linear-gradient(135deg, rgba(226, 33, 52, 0.9) 0%, rgba(226, 33, 52, 0.55) 100%);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 34px rgba(226, 33, 52, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    color: #fff;
}

button.glass-pill {
    font-family: inherit;
    cursor: pointer;
}

/* Hide body glassmorphic patterns during loading to prevent glitch */
body:not([data-loading-complete])::before,
body:not([data-loading-complete])::after {
    display: none;
}

/* iPhone 13 Pro Aspect Ratio Indicator */
.aspect-ratio-line {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 390px;
    height: 844px;
    border: none;
    z-index: 9999;
    pointer-events: none;
    box-sizing: border-box;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    isolation: isolate;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    max-width: 358px;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

.loading-brand-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.loading-image {
    height: auto;
    max-height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    flex-shrink: 0;
    animation: loadingLogoSpin 1.2s ease-in-out 0.8s 1;
}

@keyframes loadingLogoSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: clamp(28px, 6vw, 42px);
    font-weight: bold;
    font-style: italic;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    white-space: nowrap;
    flex-shrink: 1;
}

.loading-dot {
    position: relative;
    display: inline-block;
}

.loading-developer-text {
    font-family: 'Courier New', Courier, 'Lucida Console', Monaco, monospace;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    text-align: center;
    transform: rotate(-2deg);
}

.typewriter-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typewriter 0.25s steps(7, end) 0.05s forwards;
    width: 0;
    vertical-align: bottom;
}

.typewriter-cursor {
    display: inline-block;
    margin-left: 2px;
    animation: cursorSteady 0.3s, cursorBlink 1s step-end infinite 0.3s;
    opacity: 1;
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 4.2em;
    }
}

@keyframes cursorSteady {

    0%,
    100% {
        opacity: 1;
    }
}

@keyframes cursorBlink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

/* Page Views */
.page-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
    z-index: 1;
}

/* Hide main page initially when loading screen is present */
body:not([data-loading-complete]) #mainPage {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.page-view.hidden {
    display: none;
}

.page-view.shared-cover-page {
    position: absolute;
    overflow: hidden;
}

.page-view.shared-cover-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.4s ease, opacity 0.4s ease;
}

body.has-cover-bg .page-view.shared-cover-page::before {
    background-image: var(--cover-overlay), var(--bg-cover);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-color: transparent;
}

.page-view.shared-cover-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.4) 100%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    pointer-events: none;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 120px), 0 calc(100% - 120px));
}

.page-view.shared-cover-page>* {
    position: relative;
    z-index: 2;
}

.page-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    padding: 48px 32px 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}

.page-placeholder-title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: -0.5px;
}

.page-placeholder-subtitle {
    font-size: 1rem;
    max-width: 320px;
    opacity: 0.8;
    line-height: 1.5;
}

.placeholder-cta {
    margin-top: 20px;
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-weight: 600;
    text-transform: lowercase;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.placeholder-cta:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.15);
}

/* Main Page */
.main-page-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 120px;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Main Page Brand (Logo and Text) - Top Left of Portrait */
.main-page-brand {
    position: fixed;
    top: 16px;
    left: calc(50% - 195px + 16px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    z-index: 100;
    pointer-events: none;
}

.main-page-brand-image {
    height: auto;
    max-height: 36px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.main-page-brand-image.spin-forward {
    animation: spinForward 0.6s ease;
}

.main-page-brand-image.spin-reverse {
    animation: spinReverse 0.6s ease;
}

@keyframes spinForward {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.main-page-brand-text {
    font-size: 26px;
    font-weight: bold;
    font-style: italic;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Home Feed (TikTok-style) */
.home-feed {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    touch-action: none;
    /* Critical for custom gestures */
    background: #000;
}

.feed-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
    overflow: hidden;
    background-color: #111;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Initial positions */
#feedPrev {
    transform: translateY(-100%);
    z-index: 0;
}

#feedCurrent {
    transform: translateY(0);
    z-index: 1;
}

#feedNext {
    transform: translateY(100%);
    z-index: 0;
}

.np-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

/* Feed Profile Header */
.feed-profile-header {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 32px);
    max-width: 358px;
    z-index: 1001;
    padding: 0 16px;
    box-sizing: border-box;
}

.feed-profile-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
}

.feed-profile-pic-wrapper {
    position: relative;
    width: 41px;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000;
    position: relative;
    z-index: 2;
}

.feed-profile-pic-wrapper::after {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1;
}

.feed-profile-pic-wrapper::before {
    content: '';
    position: absolute;
    width: 41px;
    height: 41px;
    border-radius: 50%;
    background:
        linear-gradient(#000 0 0) padding-box,
        #808080 border-box;
    border: 1.5px solid transparent;
    z-index: 0;
}


.feed-profile-username {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1DA1F2;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    flex-shrink: 0;
}

.feed-follow-btn {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.feed-follow-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.feed-follow-btn:active {
    transform: scale(0.95);
}

.feed-follow-btn.following {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feed-follow-btn.following:hover {
    background: rgba(255, 255, 255, 0.15);
}

.np-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.np-letter {
    font-size: 180px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.9;
    transition: opacity 1s ease;
}

.np-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.np-title {
    font-size: 28px;
    font-weight: 800;
    transition: opacity 1s ease;
}

.np-artist {
    font-size: 16px;
    opacity: 0.9;
    transition: opacity 1s ease;
}

.metadata-fade {
    opacity: 0;
}

.np-center.fade-out .np-letter,
.np-center.fade-out .np-title,
.np-center.fade-out .np-artist {
    opacity: 0;
}

.np-lyrics {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lyrics-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 640px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    /* Smooth morphing transitions */
    transition: width 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        max-width 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        padding 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lyrics-container.lyrics-empty {
    opacity: 0;
}

.lyric-line {
    margin: 0;
    font-size: clamp(28px, 6vw, 50px);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.8px;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(16px);
    will-change: opacity, transform;
    position: relative;
    /* Smooth morphing transitions - the magic happens here */
    transition: font-size 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        letter-spacing 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        line-height 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        max-width 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        text-shadow 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: visible;
}

/* Morph enhancement effects - focus, breath, and color temperature */
.lyric-line.morph-enhancing {
    transform-origin: center center;
    animation: morphEnhancement 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
        morphScalePulse 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes morphEnhancement {
    0% {
        text-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
        filter: brightness(1) saturate(1);
        letter-spacing: 0.8px;
    }

    25% {
        text-shadow: 0 5px 26px rgba(0, 0, 0, 0.7), 0 0 8px rgba(255, 200, 100, 0.15);
        filter: brightness(1.05) saturate(1.08);
        letter-spacing: 0.82px;
    }

    50% {
        text-shadow: 0 6px 30px rgba(0, 0, 0, 0.75), 0 0 12px rgba(255, 180, 80, 0.2);
        filter: brightness(1.08) saturate(1.12);
        letter-spacing: 0.85px;
    }

    75% {
        text-shadow: 0 5px 26px rgba(0, 0, 0, 0.7), 0 0 8px rgba(255, 200, 100, 0.15);
        filter: brightness(1.05) saturate(1.08);
        letter-spacing: 0.82px;
    }

    100% {
        text-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
        filter: brightness(1) saturate(1);
        letter-spacing: 0.8px;
    }
}

@keyframes morphScalePulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(0) scale(1.008);
    }

    50% {
        transform: translateY(0) scale(1.015);
    }

    75% {
        transform: translateY(0) scale(1.008);
    }
}

/* Adjust letter-spacing for small mode */
body[data-lyric-mode="small"] .lyric-line {
    letter-spacing: 0.4px;
}

body[data-lyric-mode="small"] .lyric-line.morph-enhancing {
    animation: morphEnhancementSmall 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
        morphScalePulse 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Word reveal mode styling - only applies when W mode is active AND showing word-reveal content */
body[data-lyric-reveal="true"] .lyric-line.word-reveal-active {
    font-family: 'Space Mono', 'IBM Plex Mono', 'Space Grotesk', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(255, 255, 255, 0.3),
        0 0 50px rgba(255, 255, 255, 0.2) !important;
    animation: none !important;
    opacity: 1 !important;
}

/* Ensure regular mode is NOT affected - override any word-reveal styles when W mode is off */
body:not([data-lyric-reveal="true"]) .lyric-line:not(.word-reveal-active) {
    font-family: inherit !important;
    font-weight: 700 !important;
    font-style: italic !important;
    letter-spacing: 0.8px !important;
    text-transform: none !important;
}

@keyframes morphEnhancementSmall {
    0% {
        text-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
        filter: brightness(1) saturate(1);
        letter-spacing: 0.4px;
    }

    25% {
        text-shadow: 0 5px 26px rgba(0, 0, 0, 0.7), 0 0 8px rgba(255, 200, 100, 0.15);
        filter: brightness(1.05) saturate(1.08);
        letter-spacing: 0.42px;
    }

    50% {
        text-shadow: 0 6px 30px rgba(0, 0, 0, 0.75), 0 0 12px rgba(255, 180, 80, 0.2);
        filter: brightness(1.08) saturate(1.12);
        letter-spacing: 0.45px;
    }

    75% {
        text-shadow: 0 5px 26px rgba(0, 0, 0, 0.7), 0 0 8px rgba(255, 200, 100, 0.15);
        filter: brightness(1.05) saturate(1.08);
        letter-spacing: 0.42px;
    }

    100% {
        text-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
        filter: brightness(1) saturate(1);
        letter-spacing: 0.4px;
    }
}

/* Light Refraction Streak - Horizontal Flash */
.lyric-line.morph-enhancing {
    position: relative;
}

.lyric-line.morph-enhancing::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 20%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0.3) 80%,
            transparent 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
    animation: lightRefraction 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes lightRefraction {
    0% {
        left: -100%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}


@media (max-width: 480px) {
    .lyrics-container {
        width: 88%;
        min-height: 130px;
    }

    /* Ensure default lyrics match desktop size on mobile */
    body:not([data-lyric-mode="small"]) .lyric-line {
        font-size: 50px;
    }

    /* Ensure pause icon SVG displays correctly on mobile */
    .pause-icon,
    .play-icon {
        display: block !important;
        width: 24px !important;
        height: 24px !important;
    }
}

.np-hint {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    opacity: 0.85;
    z-index: 1;
}

.np-cta {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    z-index: 1;
}

.np-cta.hidden {
    display: none;
}


/* Header */
.header {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
    padding-top: 20px;
}

.profile-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
}

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

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.nav-buttons {
    display: flex;
    gap: 8px;
    flex: 1;
}

.nav-btn {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-btn:active {
    transform: scale(0.97);
}

/* Main Content */
.main-content {
    padding: 0 16px 24px;
    overflow-y: auto;
    height: calc(844px - 76px - 100px);
    padding-bottom: 120px;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease backwards;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.15s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

.card:nth-child(4) {
    animation-delay: 0.25s;
}

.card:nth-child(5) {
    animation-delay: 0.3s;
}

.card:nth-child(6) {
    animation-delay: 0.35s;
}

.card:nth-child(7) {
    animation-delay: 0.4s;
}

.card:nth-child(8) {
    animation-delay: 0.45s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

.card:active {
    transform: scale(0.98);
}

.liked-songs {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.liked-heart {
    font-size: 32px;
    margin-bottom: 8px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.artist-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 80px;
}

.artist-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.playlist-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 80px;
}

.playlist-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.mini-img {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border-radius: 2px;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 80px;
}

.radio-image {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.radio-label {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 8px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 4px;
    border-radius: 2px;
}

.radio-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

/* Section Title */
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 24px 0 16px;
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Song List */
.song-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease backwards;
}

.song-item:nth-child(1) {
    animation-delay: 0.1s;
}

.song-item:nth-child(2) {
    animation-delay: 0.2s;
}

.song-item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(4px);
}

.song-item:active {
    transform: scale(0.98);
}

.song-art {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.equalizer-icon {
    font-size: 16px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

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

.song-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.song-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-title.playing {
    color: #e22134;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(226, 33, 52, 0.5);
    }

    50% {
        text-shadow: 0 0 10px rgba(226, 33, 52, 0.8);
    }
}

.explicit {
    font-size: 10px;
    background: #333;
    color: #fff;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

.song-artist {
    font-size: 14px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-status {
    color: #e22134;
    font-size: 18px;
    font-weight: bold;
}

.song-options {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease;
}

.song-options:active {
    transform: rotate(90deg);
}

/* Jump Back In - Radio Scroll */
.radio-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.radio-scroll-card {
    flex-shrink: 0;
    width: 280px;
    height: 160px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.radio-scroll-card:hover {
    transform: scale(1.05);
}

.radio-scroll-card:active {
    transform: scale(0.98);
}

.radio-gradient {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gradientShift 3s ease infinite;
}

.grad1 {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.grad2 {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.grad3 {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

@keyframes gradientShift {

    0%,
    100% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(10deg);
    }
}

.radio-logo {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.radio-label-abs {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
}

.radio-large-img {
    font-size: 64px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Dock */
.dock {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    padding: 12px 0 20px;
    isolation: isolate;
    will-change: transform;
}

.home-icon-button {
    position: absolute;
    top: 30px;
    right: 20px;
    width: 56px;
    height: 56px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1003;
    isolation: isolate;
    padding: 0;
}

.home-icon-button svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
    animation: homeIconSpin 6s linear infinite;
    transform-origin: 50% 50%;
}

.home-icon-button:hover {
    transform: translateY(-2px) scale(1.05);
}

.home-icon-button:active {
    transform: translateY(0) scale(0.96);
}

body[data-active-page="main"] .home-icon-button {
    display: flex;
}

body[data-active-page="main"] .home-icon-wheel {
    display: block;
}

body[data-home-icon-open="true"] .home-icon-button {
    transform: translateY(-2px) scale(1.05);
}

.dock.expanded .home-icon-button {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dock.expanded .feed-profile-header {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lyrics-container {
    --lyric-max-width: 80%;
}

body[data-lyric-mode="small"] .lyrics-container {
    width: calc(100% - 24px);
    max-width: min(376px, calc(100% - 24px));
    padding: 0 12px;
}

body[data-lyric-mode="small"] .lyric-line {
    font-size: var(--lyric-small-font-size, clamp(22px, 6vw, 26px));
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.4px;
    line-height: 1.28;
    max-width: min(376px, calc(100% - 24px));
    white-space: normal;
}

.home-icon-wheel {
    position: absolute;
    top: calc(-1 * (var(--home-wheel-size, 140px) + 40px) + 42px);
    right: 20px;
    width: var(--home-wheel-size, 140px);
    height: var(--home-wheel-size, 140px);
    --wheel-radius: calc(var(--home-wheel-size, 140px) * 0.36);
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
    z-index: 1002;
    overflow: hidden;
    border-radius: 50%;
}

.home-icon-wheel-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    transform: translateZ(0);
    will-change: opacity;
    backface-visibility: hidden;
}

.home-icon-wheel-cover.visible {
    opacity: 1;
}

.home-icon-wheel-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.home-icon-wheel::after {
    content: '';
    position: absolute;
    inset: calc(var(--home-wheel-size, 140px) * 0.143);
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.wheel-option {
    position: absolute;
    top: 50%;
    left: 50%;
    --wheel-x: 0px;
    --wheel-y: 0px;
    transform: translate(-50%, -50%) translate(var(--wheel-x), var(--wheel-y)) scale(1) translateZ(0);
    width: calc(var(--home-wheel-size, 140px) * 0.33);
    height: calc(var(--home-wheel-size, 140px) * 0.33);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.025) 100%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    outline: none;
    z-index: 2;
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.wheel-icon-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(20px, calc(var(--home-wheel-size, 140px) * 0.22), 30px);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wheel-icon-letter span {
    display: block;
    transform: translateY(-2px);
}

.wheel-option:hover,
.wheel-option:focus-visible {
    transform: translate(-50%, -50%) translate(var(--wheel-x), var(--wheel-y)) scale(1.08) translateZ(0);
    background: linear-gradient(145deg, rgba(226, 33, 52, 0.175) 0%, rgba(226, 33, 52, 0.075) 100%);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 40px rgba(226, 33, 52, 0.2);
}

.wheel-option:active {
    transform: translate(-50%, -50%) translate(var(--wheel-x), var(--wheel-y)) scale(0.95) translateZ(0);
}

.wheel-option[aria-pressed="true"] {
    background: linear-gradient(145deg, rgba(226, 33, 52, 0.225) 0%, rgba(226, 33, 52, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 40px rgba(226, 33, 52, 0.2);
}

.wheel-option .wheel-icon {
    position: relative;
    width: calc(var(--home-wheel-size, 140px) * 0.19);
    height: calc(var(--home-wheel-size, 140px) * 0.19);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.wheel-option .wheel-icon svg {
    width: 70%;
    height: 70%;
    display: block;
    margin: auto;
}

.wheel-option[data-option="radio"] .wheel-icon svg,
.wheel-option[data-option="more"] .wheel-icon svg {
    width: 100%;
    height: 100%;
    margin: 0;
}

.wheel-option .wheel-icon-note-dual,
.wheel-option .wheel-icon-mic {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: calc(var(--home-wheel-size, 140px) * 0.19) !important;
    height: calc(var(--home-wheel-size, 140px) * 0.19) !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) translateZ(0) !important;
    opacity: 1;
    transition: opacity 0.25s ease;
    pointer-events: none;
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
    will-change: opacity;
    backface-visibility: hidden;
}

.wheel-option .wheel-icon-note-dual svg,
.wheel-option .wheel-icon-mic svg {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    transform: scale(1);
    transform-origin: center center;
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: block;
}

.wheel-option .wheel-icon-note-single,
.wheel-option .wheel-icon-headphones {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: calc(var(--home-wheel-size, 140px) * 0.19) !important;
    height: calc(var(--home-wheel-size, 140px) * 0.19) !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) translateZ(0) !important;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
    will-change: opacity;
    backface-visibility: hidden;
}

.wheel-option .wheel-icon-note-single svg,
.wheel-option .wheel-icon-headphones svg {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    transform: scale(0.6);
    transform-origin: center center;
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: block;
}

.wheel-option[aria-pressed="true"] .wheel-icon-note-single,
.wheel-option[aria-pressed="true"] .wheel-icon-headphones {
    opacity: 1;
}

.wheel-option[aria-pressed="true"] .wheel-icon-note-single svg,
.wheel-option[aria-pressed="true"] .wheel-icon-headphones svg {
    transform: scale(1) !important;
    transform-origin: center center;
}

.wheel-option[aria-pressed="true"] .wheel-icon-note-dual,
.wheel-option[aria-pressed="true"] .wheel-icon-mic {
    opacity: 0;
}

.wheel-option[aria-pressed="true"] .wheel-icon-note-dual svg,
.wheel-option[aria-pressed="true"] .wheel-icon-mic svg {
    transform: scale(0.6) !important;
    transform-origin: center center;
}

.home-icon-wheel .wheel-option:nth-of-type(1) {
    --wheel-x: 0px;
    --wheel-y: calc(var(--wheel-radius) * -1);
}

.home-icon-wheel .wheel-option:nth-of-type(2) {
    --wheel-x: calc(var(--wheel-radius) * 0.95106);
    --wheel-y: calc(var(--wheel-radius) * -0.30902);
}

.home-icon-wheel .wheel-option:nth-of-type(3) {
    --wheel-x: calc(var(--wheel-radius) * 0.58779);
    --wheel-y: calc(var(--wheel-radius) * 0.80902);
}

.home-icon-wheel .wheel-option:nth-of-type(4) {
    --wheel-x: calc(var(--wheel-radius) * -0.58779);
    --wheel-y: calc(var(--wheel-radius) * 0.80902);
}

.home-icon-wheel .wheel-option:nth-of-type(5) {
    --wheel-x: calc(var(--wheel-radius) * -0.95106);
    --wheel-y: calc(var(--wheel-radius) * -0.30902);
}

body[data-home-icon-open="true"] .home-icon-wheel {
    opacity: 1;
    transform: scale(1);
    pointer-events: none;
}

body[data-home-icon-open="true"] .home-icon-wheel .wheel-option {
    pointer-events: auto;
}

.home-icon-wheel[aria-hidden="true"] .wheel-option {
    pointer-events: none;
}

/* W Mode Effects Wheel - Only visible when W mode is active */
.w-mode-effects-wheel {
    position: absolute;
    top: calc(-1 * (var(--home-wheel-size, 140px) + 40px) + 42px);
    right: calc(20px + var(--home-wheel-size, 140px) + 40px);
    width: var(--home-wheel-size, 140px);
    height: var(--home-wheel-size, 140px);
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
    z-index: 1001;
    overflow: hidden;
    border-radius: 50%;
}

.w-mode-effects-wheel-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.w-mode-effects-wheel::after {
    content: '';
    position: absolute;
    inset: calc(var(--home-wheel-size, 140px) * 0.143);
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.w-mode-effects-wheel .wheel-option {
    position: absolute;
    top: 50%;
    left: 50%;
    --wheel-x: 0px;
    --wheel-y: 0px;
    transform: translate(-50%, -50%) translate(var(--wheel-x), var(--wheel-y)) scale(1) translateZ(0);
    width: calc(var(--home-wheel-size, 140px) * 0.33);
    height: calc(var(--home-wheel-size, 140px) * 0.33);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.025) 100%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    outline: none;
    z-index: 2;
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.w-mode-effects-wheel .wheel-option:hover,
.w-mode-effects-wheel .wheel-option:focus-visible {
    transform: translate(-50%, -50%) translate(var(--wheel-x), var(--wheel-y)) scale(1.08) translateZ(0);
    background: linear-gradient(145deg, rgba(226, 33, 52, 0.175) 0%, rgba(226, 33, 52, 0.075) 100%);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 40px rgba(226, 33, 52, 0.2);
}

.w-mode-effects-wheel .wheel-option:active {
    transform: translate(-50%, -50%) translate(var(--wheel-x), var(--wheel-y)) scale(0.95) translateZ(0);
}

.w-mode-effects-wheel .wheel-option[aria-pressed="true"] {
    background: linear-gradient(145deg, rgba(226, 33, 52, 0.225) 0%, rgba(226, 33, 52, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 40px rgba(226, 33, 52, 0.2);
}

.w-mode-effects-wheel .wheel-option .wheel-icon {
    position: relative;
    width: calc(var(--home-wheel-size, 140px) * 0.19);
    height: calc(var(--home-wheel-size, 140px) * 0.19);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    font-size: clamp(20px, calc(var(--home-wheel-size, 140px) * 0.2), 28px);
    font-weight: 700;
}

.w-mode-effects-wheel .wheel-option:nth-of-type(2) {
    --wheel-y: calc(-1 * (var(--home-wheel-size, 140px) * 0.36));
}

.w-mode-effects-wheel .wheel-option:nth-of-type(3) {
    --wheel-x: calc(var(--home-wheel-size, 140px) * 0.36);
}

.w-mode-effects-wheel .wheel-option:nth-of-type(4) {
    --wheel-y: calc(var(--home-wheel-size, 140px) * 0.36);
}

/* W effects wheel only visible when W mode is active AND not hidden */
body[data-lyric-reveal="true"] .w-mode-effects-wheel:not([aria-hidden="true"]) {
    opacity: 1;
    transform: scale(1);
    pointer-events: none;
    display: block;
}

body[data-lyric-reveal="true"] .w-mode-effects-wheel:not([aria-hidden="true"]) .wheel-option {
    pointer-events: auto;
}

/* Hide wheel when aria-hidden is true (regardless of W mode) */
.w-mode-effects-wheel[aria-hidden="true"] {
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

.w-mode-effects-wheel[aria-hidden="true"] .wheel-option {
    pointer-events: none !important;
}

@keyframes homeIconSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.dock-arrow {
    position: absolute;
    right: calc(50% + 40px);
    bottom: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    opacity: 0.8;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    animation: arrowBounce 2s ease-in-out infinite;
    transform: translateX(-192%);
    isolation: isolate;
}

.dock-arrow:hover {
    opacity: 1;
    transform: translateX(-192%) translateY(-4px);
}

.dock-arrow:active {
    transform: translateX(-192%) translateY(-2px) scale(0.95);
}

.dock.expanded .dock-arrow {
    transform: translateX(-192%) rotate(180deg);
    animation: none;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateX(-192%) translateY(0);
    }

    50% {
        transform: translateX(-192%) translateY(-6px);
    }
}

.dock-content {
    display: flex;
    gap: 23px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    padding: 0 19px;
    box-sizing: border-box;
    position: relative;
}

.dock-content::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 38px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
    border: none;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: -1;
}

.dock.expanded .dock-content {
    opacity: 1;
    transform: translateY(-75%) scale(1);
    pointer-events: auto;
    padding: 8px 12px;
    gap: 2px;
    max-width: 340px;
}

.dock.expanded .dock-content::before {
    opacity: 1;
    transform: scale(1);
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
    animation: dockItemAppear 0.4s ease backwards;
    flex-shrink: 0;
    position: relative;
}

.dock-item:nth-child(1) {
    animation-delay: 0.1s;
}

.dock-item:nth-child(2) {
    animation-delay: 0.2s;
}

.dock-item:nth-child(3) {
    animation-delay: 0.3s;
}

.dock-item:nth-child(4) {
    animation-delay: 0.4s;
}

.dock-item:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes dockItemAppear {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dock-item:hover {
    transform: translateY(-4px) scale(1.1);
}

.dock-item:active {
    transform: translateY(-2px) scale(0.95);
}

.dock.expanded .dock-item:hover {
    transform: translateY(-2px) scale(1.02);
}

.dock.expanded .dock-item:active {
    transform: translateY(0) scale(0.98);
}

.dock.expanded .dock-item {
    flex: 1;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 28px;
    border: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.dock.expanded .dock-item .dock-label {
    font-size: 11px;
}

.dock-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 12px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dock.expanded .dock-icon {
    width: 30px;
    height: 30px;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dock.expanded .dock-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.dock.expanded .dock-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px) scale(1.02);
}

.dock.expanded .dock-item:active {
    transform: translateY(0) scale(0.98);
}

body[data-active-page="main"] .dock.expanded #homeBtn,
body[data-active-page="search"] .dock.expanded #searchBtn,
body[data-active-page="studio"] .dock.expanded #studioBtn,
body[data-active-page="explore"] .dock.expanded #exploreBtn,
body[data-active-page="playlist"] .dock.expanded #playlistBtn {
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-weight: 600;
}

.dock.expanded .dock-item .dock-label {
    text-transform: capitalize;
    letter-spacing: 0.01em;
}

/* Ensure inline SVG icons render white with a subtle shadow */
.dock-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
    fill: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.dock-item:hover .dock-icon {
    background: transparent;
    transform: scale(1.1);
}

.dock-label {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.dock-now-playing-area {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    outline: none;
    isolation: isolate;
    max-width: 358px;
}

.dock-now-playing-area:focus {
    outline: none;
}

.dock-now-playing-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    border: none;
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: -1;
    isolation: isolate;
}

.dock-now-playing-area:hover .dock-now-playing-bg {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.dock-now-playing-area:active {
    transform: translateX(-50%) scale(0.98);
}

/* Scrolling text animations for dock now-playing area */
@keyframes scrollTextBidirectional {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(var(--scroll-offset, 0));
    }

    100% {
        transform: translateX(0);
    }
}

.dock-artist-name {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dock-artist-name:not(:empty) {
    opacity: 1;
    transform: translateX(0);
}

.dock-artist-name.scrolling {
    text-overflow: clip;
    text-align: left;
    transform: translateX(0) !important;
}

.dock-artist-name.scrolling .scroll-text {
    display: inline-block;
    animation: scrollTextBidirectional 11s linear infinite;
    will-change: transform;
}

.dock-song-title {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dock-song-title:not(:empty) {
    opacity: 1;
    transform: translateX(0);
}

.dock-song-title.scrolling {
    text-overflow: clip;
    text-align: left;
    transform: translateX(0) !important;
}

.dock-song-title.scrolling .scroll-text {
    display: inline-block;
    animation: scrollTextBidirectional 11s linear infinite;
    will-change: transform;
}

.dock-toggle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.dock-artist-pfp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
    transform-origin: center center;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.dock-artist-pfp.visible {
    opacity: 1;
}

.dock-toggle.playing .dock-artist-pfp.visible {
    opacity: 1;
    filter: none;
}

.dock-toggle.paused .dock-artist-pfp.visible {
    opacity: 1;
    filter: grayscale(100%);
}

/* Hide letter when profile picture is visible */
.dock-artist-pfp.visible~.dock-cover-letter {
    opacity: 0;
    pointer-events: none;
}

.dock-toggle:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.dock-toggle:not(.playing):hover {
    transform: translateZ(0) scale(1.1);
}

.dock-toggle.playing:hover {
    /* Keep spinning, scale effect handled by box-shadow */
}

.dock-toggle:not(.playing):active {
    transform: translateZ(0) scale(0.95);
}

.dock-toggle.playing:active {
    animation-play-state: paused;
}

.dock-toggle.spinning {
    animation: buttonSpin 0.4s ease;
}

/* Expanded: keep red highlight only (no rotation) */
.dock.expanded .dock-toggle {
    background: linear-gradient(135deg, #e22134 0%, #ff3d4f 100%);
}


/* Keep spinning when expanded and playing */
.dock.expanded .dock-toggle.playing {
    animation: spinDisc 6s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

/* When dock is expanded AND spinning, use normal spin */
.dock.expanded .dock-toggle.spinning {
    animation: buttonSpin 0.4s ease;
}

@keyframes buttonSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes buttonSpinExpanded {
    from {
        transform: rotate(180deg);
    }

    to {
        transform: rotate(540deg);
    }
}

@keyframes spinDisc {
    from {
        transform: translateZ(0) rotate(0deg);
    }

    to {
        transform: translateZ(0) rotate(360deg);
    }
}

/* Playing state - normal colors */
.dock-toggle.playing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    animation: spinDisc 6s linear infinite;
    transform-origin: center center;
    will-change: transform;
    transform: translateZ(0);
}

.dock-toggle.playing:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

/* Paused state - black and white */
.dock-toggle.paused {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: none;
    filter: grayscale(100%);
}

.dock-toggle.paused:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}


.dock-cover-letter {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    animation: letterPulse 2s ease-in-out infinite;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

/* Playing state - normal white letter */
.dock-toggle.playing .dock-cover-letter {
    color: #fff;
    filter: none;
}

/* Paused state - black and white letter */
.dock-toggle.paused .dock-cover-letter {
    color: #fff;
    filter: grayscale(100%) brightness(1.2);
}

@keyframes letterPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.dock.expanded .dock-cover-letter {
    animation: letterSpin 0.4s ease;
}

@keyframes letterSpin {
    from {
        transform: rotate(0deg) scale(1);
    }

    to {
        transform: rotate(360deg) scale(1);
    }
}

.dock-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.play-icon,
.pause-icon {
    width: 24px;
    height: 24px;
    color: #fff;
    fill: currentColor;
    position: absolute;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.play-icon.active,
.pause-icon.active {
    opacity: 1;
    transform: scale(1);
}

.dock-toggle.playing .dock-cover-letter {
    opacity: 0.3;
    transform: scale(0.7);
}

.dock-toggle.playing .pause-icon {
    opacity: 1;
    transform: scale(1);
    color: #fff;
}

.dock-toggle.paused .dock-cover-letter {
    opacity: 0.3;
    transform: scale(0.7);
    color: #fff;
    filter: grayscale(100%) brightness(1.2);
}

.dock-toggle.paused .play-icon {
    opacity: 1;
    transform: scale(1);
    color: #fff;
}

.dock-toggle:not(.playing):not(.paused) .dock-cover-letter {
    opacity: 1;
    transform: scale(1);
    color: #fff;
    filter: none;
}

/* Scrollbar Styling */
.radio-scroll::-webkit-scrollbar {
    height: 4px;
}

.radio-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.radio-scroll::-webkit-scrollbar-thumb {
    background: #e22134;
    border-radius: 2px;
}

.main-content::-webkit-scrollbar {
    width: 4px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: #e22134;
    border-radius: 2px;
}

/* Song Playing Page */
.song-playing-content {
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Simple Search Page Styles */
.search-page-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 100vh;
    align-items: center;
    pointer-events: auto;
}

.search-container-simple {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 3;
    border-radius: 999px;
    padding: 6px 12px 6px 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    gap: 12px;
    pointer-events: auto;
}

.search-input-simple {
    flex: 1;
    padding: 8px 0;
    font-size: 0.95rem;
    border: none;
    background: transparent;
    color: #f2f2f2;
    font-family: inherit;
    outline: none;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.search-input-simple:focus {
    color: #fff;
}

.search-input-simple::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-button-simple {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.search-button-simple:hover {
    background: rgba(255, 255, 255, 0.25);
}

.search-button-simple:active {
    transform: scale(0.97);
}

.search-button-simple svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.search-results-simple {
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    max-width: 480px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    position: relative;
    z-index: 3;
    -webkit-overflow-scrolling: touch;
}

.search-results-simple.show {
    display: block;
}

.search-result-item-simple {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item-simple:last-child {
    border-bottom: none;
}

.search-result-item-simple:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-item-simple:active {
    background: rgba(255, 255, 255, 0.15);
}

.search-result-title-simple {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #f2f2f2;
}

.search-result-artist-simple {
    font-size: 0.85rem;
    opacity: 0.7;
    color: #f2f2f2;
}

.search-result-art-simple {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.search-result-art-simple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-result-letter-simple {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

.search-result-meta-simple {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-no-results-simple {
    padding: 16px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
    color: #f2f2f2;
}

/* Playlist Page */
.playlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    gap: 12px;
}

.ph-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ph-title {
    font-size: 28px;
    font-weight: 800;
}

.ph-actions {
    display: flex;
    gap: 8px;
}

.ph-icon-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ph-icon-btn:active {
    transform: scale(0.95);
}

.ph-icon-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.playlist-chips {
    display: flex;
    gap: 8px;
    padding: 0 16px;
}

.chip {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
}

.playlist-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
}

.toolbar-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.toolbar-icon {
    opacity: 0.9;
}

.spacer {
    flex: 1;
}

.playlist-content {
    padding: 0 16px 100px;
    overflow-y: auto;
    height: calc(844px - 56px - 48px - 48px - 100px);
}

/* Grid mode */
.playlist-content.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.playlist-content.grid .song-item {
    flex-direction: column;
    align-items: flex-start;
}

.playlist-content.grid .song-art {
    width: 72px;
    height: 72px;
}

.playlist-content.grid .song-info {
    width: 100%;
}

.song-playing-header {
    padding: 16px 0;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

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

/* Profile Page */
.profile-page-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 120px;
}

.profile-page-header {
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.profile-info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    gap: 12px;
}

.profile-page-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-page-name {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-page-name .verified-checkmark {
    width: 22px;
    height: 22px;
    font-size: 14px;
}

.profile-page-username {
    font-size: 16px;
    color: #999;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.profile-page-follow-btn {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 24px;
    padding: 10px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.profile-page-follow-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.profile-page-follow-btn:active {
    transform: scale(0.95);
}

.profile-page-follow-btn.following {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-page-follow-btn.following:hover {
    background: rgba(255, 255, 255, 0.15);
}

.profile-posts-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-post-item {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.profile-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.profile-post-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    text-align: center;
}

.profile-post-letter {
    font-size: 180px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.9;
    color: #fff;
}

.profile-post-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-post-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.profile-post-artist {
    font-size: 16px;
    opacity: 0.9;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.song-playing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 40px 0;
}

.song-playing-art {
    width: 280px;
    height: 280px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: background-image 0.6s ease, transform 0.6s ease;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.6s ease;
}

.song-playing-letter {
    font-size: 120px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.song-playing-info {
    text-align: center;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.song-playing-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.song-playing-artist {
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Search Bar Styles */
.search-bar-container {
    padding: 16px 20px;
    position: relative;
    z-index: 2;
}

.search-input-wrapper {
    position: relative;
}

.glassmorphic-search {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-button {
    background: transparent;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    padding: 0;
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.search-button:active {
    transform: scale(0.95);
}

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

/* Search Results Container */
.search-results-container {
    padding: 0 20px 100px;
    position: relative;
    z-index: 2;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 48px;
}

.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
}

.search-result-card {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    position: relative;
}

.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.search-result-card:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.search-result-art {
    width: 72px;
    height: 72px;
    position: relative;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
    border: none;
    padding: 0;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.search-result-art:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
}

.search-result-art.has-cover::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.15) 100%);
}

.search-result-art::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

.search-result-letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    z-index: 3;
}

.search-result-art.has-cover .search-result-letter,
.search-result-letter.hidden {
    display: none;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    align-items: flex-start;
}

.search-result-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.search-result-artist {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.74);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
    transition: all 0.3s ease;
}

.preview-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.search-result-card.previewing {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
}

.preview-play-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.preview-overlay:not(.hidden) .preview-play-icon {
    transform: scale(1);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.search-result-card.previewing {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
}

.preview-play-icon svg {
    width: 24px;
    height: 24px;
    margin-left: 2px;
}


/* Preview Overlay */
.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
    transition: all 0.3s ease;
}

.preview-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.preview-play-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.preview-overlay:not(.hidden) .preview-play-icon {
    transform: scale(1);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.search-result-card.previewing {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.preview-play-icon svg {
    width: 24px;
    height: 24px;
    margin-left: 2px;
}

/* Enhanced Search Result Cards */
.search-result-card {
    position: relative;
}

.search-result-art {
    position: relative;
    overflow: hidden;
}

/* Category Results */
.category-results {
    padding: 20px;
}

.category-results.hidden {
    display: none;
}

.search-result-card:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

.search-result-card.is-active {
    border-color: rgba(30, 215, 96, 0.7);
    box-shadow: 0 18px 50px rgba(30, 215, 96, 0.25);
}

.search-result-card.is-active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(30, 215, 96, 0.35);
    pointer-events: none;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.search-result-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.dock.dock-highlight {
    box-shadow: 0 0 60px rgba(30, 215, 96, 0.35);
}

.dock.dock-highlight .dock-now-playing-bg::after {
    opacity: 0.6;
}

.dock-now-playing-bg::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(30, 215, 96, 0.4) 0%, rgba(30, 215, 96, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* NUCLEAR LAYOUT RESET */
/* ============================================
   EDGE-TO-EDGE OVERRIDES FOR ANDROID WEBVIEW
   These overrides ensure the app fills the 
   entire screen with no left/right gaps
   ============================================ */

html {
    width: 100vw !important;
    width: 100dvw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    width: 100vw !important;
    width: 100dvw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    overflow-x: hidden !important;
    /* Safe area support for notches/rounded corners */
    padding-left: env(safe-area-inset-left, 0) !important;
    padding-right: env(safe-area-inset-right, 0) !important;
}

/* Main page containers */
#mainPage,
.page-view,
.main-page-content {
    width: 100vw !important;
    width: 100dvw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Home feed and slides */
#homeFeed,
.home-feed,
.feed-slide,
#feedPrev,
#feedCurrent,
#feedNext {
    width: 100vw !important;
    width: 100dvw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

/* Ensure background covers everything */
.feed-slide {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Dock needs to span full width */
.dock {
    width: 100vw !important;
    width: 100dvw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

/* Loading screen full width */
.loading-screen {
    width: 100vw !important;
    width: 100dvw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
}

/* Fix any element that might have margin:auto centering */
.page-view.shared-cover-page,
.page-view.shared-cover-page::before,
.page-view.shared-cover-page::after {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
}

/* Prevent horizontal scrolling at all costs */
* {
    max-width: 100vw;
}

/* ==========================================
   SOCIAL INTERACTION BUTTONS (TikTok-style)
   ========================================== */

.social-buttons-stack {
    position: absolute;
    /* Position at right edge of centered 358px container */
    left: 50%;
    transform: translateX(calc(-50% + 179px - 30px));
    bottom: 155px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 1002;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: transform 0.2s ease;
}

.social-btn:active {
    transform: scale(0.9);
}

.social-btn svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.social-btn span {
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Heart/Like Button */
.like-btn {
    position: relative;
}

.like-btn .heart-outline {
    display: block;
}

.like-btn .heart-filled {
    display: none;
    color: #ff2d55;
}

.like-btn.liked .heart-outline {
    display: none;
}

.like-btn.liked .heart-filled {
    display: block;
    animation: heartPop 0.4s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

.like-btn.liked .like-count {
    color: #ff2d55;
}

@keyframes heartPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Heart animation particles */
.like-btn.animating::before,
.like-btn.animating::after {
    content: '❤️';
    position: absolute;
    font-size: 12px;
    pointer-events: none;
    animation: heartFloat 0.8s ease-out forwards;
}

.like-btn.animating::before {
    left: -8px;
    animation-delay: 0.1s;
}

.like-btn.animating::after {
    right: -8px;
    animation-delay: 0.2s;
}

@keyframes heartFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.5);
    }
}

/* Comment Button */
.comment-btn {
    position: relative;
}

.comment-bubble {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
    max-width: 140px;
    text-align: center;
}

.comment-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.85);
}

.comment-bubble.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
    animation: bubblePop 0.3s ease-out;
}

@keyframes bubblePop {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px) scale(1);
    }
}

/* Share Button */
.share-btn span {
    font-size: 10px;
}

/* ==========================================
   COMMENT MODAL (TikTok-style)
   ========================================== */

.comment-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.comment-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.comment-modal {
    width: 100%;
    max-width: 358px;
    max-height: 70vh;
    background: #1a1a1a;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.comment-modal-overlay.visible .comment-modal {
    transform: translateY(0);
}

.comment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-modal-count {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.comment-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.comment-modal-close:hover {
    opacity: 1;
}

.comment-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    min-height: 200px;
}

.no-comments-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-comments-placeholder p:first-child {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.no-comments-sub {
    font-size: 13px;
}

/* Individual Comment */
.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-username {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.comment-header .comment-username {
    margin-bottom: 0;
}

/* 3-dot menu for comments */
.comment-menu {
    position: relative;
}

.comment-menu-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
    font-weight: bold;
    letter-spacing: 1px;
}

.comment-menu-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.comment-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 100;
    overflow: hidden;
}

.comment-menu.open .comment-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.comment-delete-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #ff4d6a;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.comment-delete-option:hover {
    background: rgba(255, 77, 106, 0.15);
}

.comment-delete-option svg {
    width: 16px;
    height: 16px;
}

.comment-text {
    font-size: 14px;
    color: #fff;
    line-height: 1.4;
}

.comment-image {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    margin-top: 8px;
    object-fit: cover;
}

.comment-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
}

/* Comment Footer */
.comment-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
}

.emoji-shortcuts {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.emoji-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0;
}

.emoji-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.emoji-btn:active {
    transform: scale(0.9);
}

.comment-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.gallery-btn:hover {
    color: #fff;
}

.gallery-btn svg {
    width: 24px;
    height: 24px;
}

.comment-input-wrapper {
    flex: 1;
    position: relative;
}

/* Dedicated image preview area */
.comment-preview-area {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.comment-preview-container {
    display: inline-flex;
    align-items: flex-start;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px;
}

.comment-image-preview {
    max-width: 120px;
    max-height: 90px;
    border-radius: 8px;
    object-fit: cover;
}

.comment-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.comment-preview-remove:hover {
    background: rgba(255, 77, 106, 0.8);
}

.comment-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.comment-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.send-comment-btn {
    background: #ff2d55;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0;
}

.send-comment-btn:hover {
    background: #ff4569;
}

.send-comment-btn:active {
    transform: scale(0.9);
}

.send-comment-btn svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

/* ==========================================
   SHARE MENU OVERLAY
   ========================================== */

.share-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.share-menu {
    width: 100%;
    max-width: 358px;
    background: #1a1a1a;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.share-menu-overlay.visible .share-menu {
    transform: translateY(0);
}

.share-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.share-menu-header span {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.share-menu-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.share-menu-close:hover {
    opacity: 1;
}

.share-options {
    display: flex;
    justify-content: space-between;
    padding: 24px 12px 32px 4px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s;
}

.share-option:active {
    transform: scale(0.95);
}

.share-option-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-option-icon svg {
    width: 28px;
    height: 28px;
}

.instagram-icon {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.facebook-icon {
    background: #1877f2;
}

.snapchat-icon {
    background: #fffc00;
}

.snapchat-icon svg {
    color: #000;
}

.copy-icon {
    background: rgba(255, 255, 255, 0.2);
}

.save-icon {
    background: rgba(255, 255, 255, 0.2);
}

.save-icon.saved {
    background: #ff2d55;
}

.save-icon.saved svg {
    fill: currentColor;
}

.share-option span {
    font-size: 11px;
    text-align: center;
}

/* ==========================================
   LOGIN MODAL
   ========================================== */

.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.login-modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.login-modal {
    width: 100%;
    max-width: 358px;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 32px 24px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.login-modal-overlay.visible .login-modal {
    transform: translateY(0);
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.login-modal-close:hover {
    opacity: 1;
}

.login-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.login-modal-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.login-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #fff;
}

.login-modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 28px 0;
    line-height: 1.4;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.login-btn:active {
    transform: scale(0.98);
}

.google-login-btn {
    background: #fff;
    color: #333;
}

.google-login-btn:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.apple-login-btn {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.apple-login-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.login-modal-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 24px 0 0 0;
}

/* User menu when logged in */
.user-avatar-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: #333;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
}

.user-avatar-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.user-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   STUDIO LYRIC EDITOR
   ========================================== */

.studio-page-content {
    padding: 0 0 120px 0;
    min-height: 100vh;
    overflow-y: auto;
    pointer-events: auto;
}

.studio-search-section {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px 0;
    pointer-events: auto;
}

.studio-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 32px;
    gap: 12px;
}

.studio-editor {
    padding: 0 16px;
}

.studio-editor.hidden {
    display: none;
}

/* Song Header */
.studio-song-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 20px;
}

.studio-song-art {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.studio-song-letter {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.studio-song-art.has-cover .studio-song-letter {
    display: none;
}

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

.studio-song-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-song-artist {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.studio-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Section Labels */
.studio-section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

/* Lyric List */
.studio-lyric-section {
    margin-bottom: 24px;
}

.studio-lyric-list {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 8px;
}

.studio-lyric-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.studio-lyric-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.studio-lyric-item.selected {
    background: rgba(226, 33, 52, 0.2);
}

.studio-lyric-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.studio-lyric-item.selected .studio-lyric-checkbox {
    background: #e22134;
    border-color: #e22134;
}

.studio-lyric-checkbox::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.studio-lyric-item.selected .studio-lyric-checkbox::after {
    opacity: 1;
}

.studio-lyric-text {
    font-size: 14px;
    color: #fff;
    line-height: 1.4;
}

.studio-no-lyrics {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Font Picker */
.studio-font-section {
    margin-bottom: 24px;
}

.studio-font-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 10px;
}

.studio-font-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.studio-font-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.studio-font-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.studio-font-preset {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px 12px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.studio-font-preset:hover {
    background: rgba(255, 255, 255, 0.2);
}

.studio-font-preset.active {
    background: rgba(226, 33, 52, 0.3);
    border-color: #e22134;
}

/* Color Palette */
.studio-color-section {
    margin-bottom: 24px;
}

.studio-color-palette {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.studio-color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.studio-color-swatch:hover {
    transform: scale(1.1);
}

.studio-color-swatch.active {
    border-color: #fff;
    transform: scale(1.1);
}

/* Preview Section */
.studio-preview-section {
    margin-bottom: 24px;
}

.studio-preview {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.9) 0%, rgba(20, 20, 30, 0.95) 100%);
    border-radius: 16px;
    padding: 24px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.studio-preview-text {
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
    word-break: break-word;
    transition: all 0.3s ease;
}

/* Action Buttons */
.studio-actions {
    display: flex;
    gap: 12px;
    padding-bottom: 20px;
}

.studio-reset-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.studio-reset-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.studio-post-btn {
    flex: 2;
    background: linear-gradient(135deg, #e22134 0%, #c91b2d 100%);
    border: none;
    border-radius: 12px;
    padding: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(226, 33, 52, 0.3);
}

.studio-post-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(226, 33, 52, 0.4);
}

.studio-post-btn:active {
    transform: translateY(0);
}

/* Toggle Switch for All Lyrics */
.studio-lyric-mode {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.studio-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.studio-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.studio-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 26px;
}

.studio-toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: 0.3s;
    border-radius: 50%;
}

.studio-toggle input:checked+.studio-toggle-slider {
    background: #e22134;
}

.studio-toggle input:checked+.studio-toggle-slider::before {
    transform: translateX(22px);
}

.studio-toggle-label {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.studio-lyric-list.hidden {
    display: none;
}

/* ==========================================
   EXPLORE PAGE STYLES
   ========================================== */

.explore-page-content {
    width: 100%;
    min-height: 100vh;
    padding: 16px 16px 140px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.explore-header {
    text-align: center;
    margin-bottom: 24px;
    padding-top: 20px;
}

.explore-title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: -0.5px;
    color: #fff;
}

.explore-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.explore-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.explore-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.explore-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #e22134;
    border-radius: 50%;
    animation: exploreSpin 0.8s linear infinite;
}

@keyframes exploreSpin {
    to {
        transform: rotate(360deg);
    }
}

.explore-loading.hidden,
.explore-empty.hidden {
    display: none;
}

.explore-empty {
    text-align: center;
    padding: 60px 20px;
}

.explore-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.explore-empty-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.explore-empty-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Post Card */
.explore-post-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.explore-post-card:active {
    transform: scale(0.98);
}

.explore-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.explore-post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667 0%, #444 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.explore-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explore-post-user-info {
    flex: 1;
    min-width: 0;
}

.explore-post-username {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.explore-post-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.explore-post-song {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.explore-post-song-art {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: linear-gradient(135deg, #333 0%, #222 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.explore-post-song-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explore-post-song-info {
    flex: 1;
    min-width: 0;
}

.explore-post-song-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.explore-post-song-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Styled Lyrics Display */
.explore-post-lyrics {
    padding: 20px 16px;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explore-post-lyric-text {
    font-size: 18px;
    line-height: 1.5;
    max-width: 100%;
    word-wrap: break-word;
    /* Font and color will be set dynamically */
}

/* Play Button Overlay */
.explore-post-play-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.explore-post-play-btn:active {
    transform: scale(0.9);
}

.explore-post-play-btn svg {
    width: 16px;
    height: 16px;
    fill: #000;
    margin-left: 2px;
}

/* ==========================================
   TOAST NOTIFICATION STYLES
   ========================================== */

.toast-container {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(40, 40, 45, 0.95) 0%, rgba(30, 30, 35, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.hide {
    opacity: 0;
    transform: translateY(-10px);
}

.toast-icon {
    width: 22px;
    height: 22px;
    color: #4ade80;
    flex-shrink: 0;
}

.toast-icon.error {
    color: #f87171;
}

.toast-message {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}