:root {
    --primary: #1976d2;
    --primary-dark: #1565c0;
    --surface: #ffffff;
    --background: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --divider: #e0e0e0;
    --theme-r: 25;
    --theme-g: 118;
    --theme-b: 210;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Roboto', -apple-system, sans-serif;
    background: #ffffff;
    color: var(--text-primary);
    overflow: hidden;
}

html.overlay-open,
body.overlay-open {
    overflow: hidden;
    overscroll-behavior: none;
}

body.overlay-open {
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
}

body.overlay-open .main-content {
    overflow: hidden !important;
    -webkit-overflow-scrolling: auto;
}

body.overlay-open .app-container {
    overscroll-behavior: none;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
    background: #ffffff;
}

.navigation-rail {
    width: 240px;
    background: #ffffff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    padding: 24px 8px;
    flex-shrink: 0;
}

.nav-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 12px;
    color: var(--primary);
    font-weight: 500;
    font-size: 1.1rem;
}

.nav-divider {
    height: 1px;
    background: var(--divider);
    margin: 8px 12px;
}

.nav-items {
    overflow-y: auto;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 24px;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.2s, transform 0.1s;
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-item:hover::before {
    opacity: 0.08;
}

.nav-item:active {
    transform: scale(0.96);
}

.nav-item.active {
    background: rgba(var(--theme-r), var(--theme-g), var(--theme-b), 0.12);
    color: var(--primary);
    font-weight: 500;
}

.nav-section-title {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-item {
    margin-bottom: 8px;
}

.main-content {
    flex: 1;
    padding: 0 32px;
    overflow-y: auto;
    background: #ffffff;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 24px 0 16px 0;
    background: #ffffff;
}

.title-area {
    display: flex;
    align-items: center;
    gap: 6px;
}

.title-area h1 {
    font-size: 28px;
    font-weight: 400;
}

.expand-icon {
    display: none;
    color: var(--primary);
    font-size: 28px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 24px;
    width: 240px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.search-box:focus-within {
    width: 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.search-box input {
    border: none;
    background: transparent;
    margin-left: 8px;
    width: 100%;
    font-size: 15px;
}

.home-container {
    padding-bottom: 100px;
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.welcome-card h2 {
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 400;
}

.welcome-card p {
    font-size: 16px;
    opacity: 0.9;
}

.section-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.song-list-container {
    display: grid;
    gap: 4px;
    padding-bottom: 100px;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    animation: fadeInUp 0.3s ease backwards;
    position: relative;
}

.song-item:hover {
    background: #f5f5f5;
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.song-cover-mini {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    margin-right: 16px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.song-info {
    flex: 1;
}

.song-info b {
    font-size: 15px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.song-info small {
    color: var(--text-secondary);
    font-size: 13px;
}

.download-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0;
}

.song-item:hover .download-btn {
    opacity: 1;
}

.download-btn:hover {
    background: rgba(0,0,0,0.08);
    color: var(--primary);
}

.download-btn span {
    font-size: 20px;
}

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

.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 100;
    cursor: pointer;
}

.mini-progress-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--divider);
}

.mini-progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
}

.track-info-mini {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
}

.track-info-mini img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    margin-right: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#mini-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

#mini-artist {
    font-size: 12px;
    color: var(--text-secondary);
}

.controls-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: rgba(0,0,0,0.08);
}

.icon-btn-filled {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.icon-btn-filled:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

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

.lyrics-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(22px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
    min-height: 0;
    overscroll-behavior: none;
    touch-action: none;
}

.lyrics-overlay.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.app-bg {
    position: absolute;
    inset: -5%;
    background-size: cover;
    background-position: center;
    filter: blur(36px) brightness(0.72) saturate(1.15);
    transform: scale(1.06);
    opacity: 0;
    transition:
        transform 0.8s ease,
        filter 0.8s ease,
        opacity 0.8s ease,
        background-image 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

.lyrics-overlay.open .app-bg {
    opacity: 0.22;
}

body.is-playing .lyrics-overlay.open .app-bg {
    filter: blur(42px) brightness(0.62) saturate(1.22);
    transform: scale(1.12);
    opacity: 0.30;
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

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

.lyrics-layout {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(340px, 42%) minmax(0, 58%);
    padding: 80px 40px 20px 40px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    gap: 20px;
}

.left-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 40px;
    text-align: center;
    min-height: 0;
}

.cover-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.cover-container img {
    width: min(360px, 78vw, 40vh);
    height: min(360px, 78vw, 40vh);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(0,0,0,0.22);
    object-fit: cover;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.info-container {
    margin-top: 30px;
    color: var(--text-primary);
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.info-container h2 {
    width: 100%;
    text-align: center;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(0,0,0,0.86);
    text-shadow: 0 2px 10px rgba(255,255,255,0.16);
    word-break: break-word;
    overflow-wrap: break-word;
}

.info-container h3 {
    width: 100%;
    text-align: center;
    font-size: clamp(20px, 2.1vw, 26px);
    line-height: 1.4;
    font-weight: 500;
    color: rgba(0,0,0,0.58);
    word-break: break-word;
    overflow-wrap: break-word;
}

.right-side {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

#lyrics-container {
    position: relative;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    overscroll-behavior: none;
    touch-action: none;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

#lyrics-container.dragging {
    cursor: grabbing;
}

#lyrics-container::before {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 3;
}

#lyrics-container.show-guide::before {
    opacity: 0.75;
}

.drag-time-label {
    position: absolute;
    top: calc(50% - 34px);
    right: 24px;
    transform: translateY(-100%);
    background: rgba(255,255,255,0.92);
    color: var(--primary);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    pointer-events: none;
    z-index: 4;
    min-height: 30px;
}

.lyrics-track {
    width: 100%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.lyric-line {
    padding: 16px 0;
    margin-left: 40px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transform-origin: left center;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease;
    opacity: 0.92;
}

.lyric-main {
    position: relative;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    isolation: isolate;
}

.lyric-text {
    display: block;
    max-width: 100%;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    letter-spacing: 0;
}

.lyric-base {
    position: relative;
    z-index: 1;
    color: rgba(0,0,0,0.26);
    transition: color 0.25s ease;
}

.lyric-fill {
    position: absolute;
    inset: 0 auto auto 0;
    z-index: 2;
    color: var(--primary-dark);
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
    -webkit-clip-path: inset(0 100% 0 0);
    transition: clip-path 0.08s linear, -webkit-clip-path 0.08s linear;
    text-shadow:
        0 0 0.35px currentColor,
        0 0 6px rgba(var(--theme-r), var(--theme-g), var(--theme-b), 0.18);
    filter: saturate(1.08) contrast(1.06);
}

.lyric-line.active {
    transform: scale(1.04);
}

.lyric-line.active .lyric-base {
    color: rgba(0,0,0,0.18);
}

.lyric-line.active .lyric-fill {
    color: var(--primary-dark);
    text-shadow:
        0 0 0.45px currentColor,
        0 0 10px rgba(var(--theme-r), var(--theme-g), var(--theme-b), 0.22);
}

.lyric-line.preview {
    transform: scale(1.05);
}

.lyric-line.preview .lyric-base {
    color: rgba(var(--theme-r), var(--theme-g), var(--theme-b), 0.42);
}

.lyric-sub {
    display: block;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.78;
    margin-top: 6px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.sync-lyrics-btn {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    cursor: pointer;
    z-index: 5;
}

.bottom-controls {
    min-height: 140px;
    height: 140px;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.progress-section {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 24px;
}

.progress-bar-wrapper {
    flex: 1;
    height: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.08);
    border-radius: 2px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    border-radius: 2px;
    position: relative;
    transition: width 0.1s linear;
}

.progress-handle {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar-wrapper:hover .progress-handle {
    opacity: 1;
}

.playback-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.icon-btn-large {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    display: flex;
    transition: all 0.2s;
}

.icon-btn-large:hover {
    background: rgba(0,0,0,0.08);
}

.icon-btn-large span {
    font-size: 32px;
}

.icon-btn-play {
    background: var(--primary);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.2s;
    border: none;
}

.icon-btn-play:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    transform: scale(1.05);
}

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

.icon-btn-play span {
    font-size: 36px;
}

.speed-btn {
    min-width: 62px;
    height: 36px;
    border-radius: 18px;
    border: none;
    background: rgba(255,255,255,0.92);
    color: var(--primary);
    padding: 0 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.poster-btn {
    min-width: 44px;
}

.mode-modal {
    position: fixed;
    bottom: 100px;
    right: 60px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 8px;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mode-overlay {
    position: fixed;
    inset: 0;
    z-index: 299;
    display: none;
}

.mode-modal.active ~ .mode-overlay {
    display: block;
}

.mode-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-primary);
    min-width: 180px;
}

.mode-item:hover {
    background: rgba(0,0,0,0.05);
}

.mode-item.active {
    background: rgba(var(--theme-r), var(--theme-g), var(--theme-b), 0.12);
    color: var(--primary);
}

.mode-item span:first-child {
    font-size: 20px;
}

.mobile-nav-drawer {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100%;
    background: var(--surface);
    z-index: 250;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 249;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-nav-drawer.active ~ .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--divider);
}

.drawer-header h2 {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary);
}

.poster-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    overflow-y: auto;
    padding: 24px;
}

.poster-modal.active {
    display: block;
}

.poster-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
}

.poster-panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 420px);
    margin: max(24px, 4vh) auto;
    background: rgba(255,255,255,0.96);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.poster-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.poster-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px;
    color: #fff;
    min-height: min(620px, 70vh);
    max-height: calc(100vh - 120px);
    background: linear-gradient(180deg, rgba(var(--theme-r), var(--theme-g), var(--theme-b), 0.85), rgba(15,15,20,0.92));
    isolation: isolate;
}

.poster-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(28px) brightness(0.58);
    -webkit-filter: blur(28px) brightness(0.58);
    transform: scale(1.18);
    opacity: 0.9;
    will-change: transform, filter, background-image;
    z-index: 0;
}

.poster-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: 18px;
}

.poster-cover {
    width: min(100%, 320px);
    aspect-ratio: 1;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 12px 36px rgba(0,0,0,0.25);
    align-self: center;
}

.poster-meta h3 {
    font-size: clamp(22px, 3.2vw, 28px);
    margin-bottom: 6px;
}

.poster-meta p {
    opacity: 0.86;
    font-size: clamp(14px, 2.2vw, 16px);
}

.poster-lyric {
    margin-top: 12px;
    font-size: clamp(20px, 3vw, 26px);
    line-height: 1.5;
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: break-word;
}

.poster-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    opacity: 0.9;
    font-size: 14px;
    flex-wrap: wrap;
}

.poster-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

@media (max-height: 820px) {
    .lyrics-layout {
        padding-top: 64px;
    }

    .left-side {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .cover-container img {
        width: min(280px, 64vw, 30vh);
        height: min(280px, 64vw, 30vh);
    }

    .info-container {
        margin-top: 20px;
        gap: 8px;
    }

    .info-container h2 {
        font-size: clamp(26px, 3.2vw, 34px);
    }

    .info-container h3 {
        font-size: clamp(16px, 2vw, 20px);
    }

    .poster-modal {
        padding: 16px;
    }

    .poster-panel {
        margin: 16px auto;
        padding: 14px;
        border-radius: 16px;
    }

    .poster-card {
        padding: 18px;
        min-height: auto;
        max-height: calc(100vh - 64px);
    }

    .poster-content {
        gap: 14px;
    }

    .poster-cover {
        width: min(100%, 240px);
    }

    .poster-lyric {
        margin-top: 6px;
        font-size: clamp(18px, 2.7vw, 22px);
        line-height: 1.42;
    }

    .poster-footer {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .navigation-rail {
        display: none;
    }

    .expand-icon {
        display: block;
        cursor: pointer;
    }

    .main-content {
        padding: 0 16px;
    }

    .top-bar {
        padding: 16px 0 12px 0;
    }

    .title-area h1 {
        font-size: 24px;
    }

    .search-box {
        width: 200px;
    }

    .search-box:focus-within {
        width: 240px;
    }

    .welcome-card {
        padding: 24px;
    }

    .welcome-card h2 {
        font-size: 24px;
    }

    .lyrics-layout {
        grid-template-columns: 1fr;
        padding: 60px 20px 20px 20px;
        gap: 8px;
    }

    .left-side {
        padding: 12px 20px 8px;
        justify-content: center;
    }

    .cover-container img {
        width: min(240px, 62vw, 28vh);
        height: min(240px, 62vw, 28vh);
        border-radius: 16px;
    }

    .info-container {
        margin-top: 20px;
        max-width: 100%;
        gap: 6px;
    }

    .info-container h2 {
        font-size: clamp(26px, 7vw, 34px);
    }

    .info-container h3 {
        font-size: clamp(16px, 4.2vw, 20px);
    }

    .right-side {
        margin-top: 20px;
    }

    .lyric-line {
        margin-left: 20px;
    }

    .lyric-text {
        font-size: 20px;
    }

    .bottom-controls {
        padding: 0 20px;
        height: 140px;
        min-height: 140px;
    }

    .icon-btn-play {
        width: 48px;
        height: 48px;
    }

    .icon-btn-play span {
        font-size: 32px;
    }

    .mode-modal {
        right: 20px;
        bottom: 90px;
    }

    .playback-controls {
        gap: 8px;
    }

    .poster-modal {
        padding: 12px;
    }

    .poster-panel {
        width: min(96vw, 420px);
        margin: 12px auto;
        padding: 12px;
        border-radius: 16px;
    }

    .poster-actions {
        margin-bottom: 10px;
    }

    .poster-card {
        padding: 16px;
        border-radius: 18px;
        max-height: calc(100vh - 48px);
    }

    .poster-cover {
        width: min(100%, 220px);
        border-radius: 14px;
    }

    .poster-lyric {
        font-size: clamp(18px, 5vw, 22px);
    }
}