* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

:root {
    --jp-panel-bg: rgba(39, 30, 33, 0.84);
    --jp-panel-bg-soft: rgba(35, 28, 31, 0.7);
    --jp-border: #4a373a;
    --jp-border-soft: #3f3133;
    --jp-text: #e8dfd8;
    --jp-muted: #b5a4a4;
    --jp-accent: #7b3131;
    --jp-accent-hover: #965050;
}

body {
    font-family: 'Segoe UI', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    background: #1a1a1a;
    color: var(--jp-text);
    line-height: 1.6;
}

.app-body {
    background:
        radial-gradient(circle at 20% 0%, rgba(170, 48, 48, 0.22), transparent 42%),
        radial-gradient(circle at 80% 100%, rgba(255, 225, 200, 0.06), transparent 50%),
        linear-gradient(120deg, #120f10 0%, #191517 40%, #131214 100%);
    background-attachment: fixed;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 60px 20px 40px;
    border-bottom: 1px solid var(--jp-border);
    position: relative;
}

h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 8px;
    color: #fff;
}

.subtitle {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--jp-muted);
    margin-top: 8px;
}

.header-actions {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-chip {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #4e3c3c;
    color: #d7b7b7;
    font-size: 12px;
    letter-spacing: 1px;
    background: rgba(109, 40, 40, 0.14);
}

.logout-link {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #4e3c3c;
    color: #d7b7b7;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    transition: all 0.25s ease;
    background: rgba(109, 40, 40, 0.14);
}

.logout-link:hover {
    border-color: #7a4a4a;
    color: #f3dada;
    background: rgba(109, 40, 40, 0.3);
}

main {
    flex: 1;
    padding: 40px 20px;
}

.search-section {
    margin-bottom: 30px;
}

.key-panel {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--jp-border-soft);
    background: var(--jp-panel-bg-soft);
}

.key-panel h2 {
    font-size: 16px;
    font-weight: 500;
    color: #f0e6df;
    margin-bottom: 6px;
}

.key-panel p {
    color: var(--jp-muted);
    font-size: 13px;
}

.key-panel-admin {
    border-color: #5c4f52;
}

.key-panel-desc {
    margin-bottom: 12px;
}

.privacy-note {
    margin-bottom: 12px;
    padding: 8px 10px;
    border: 1px solid #5d4c4f;
    background: rgba(56, 42, 45, 0.55);
    color: #d8c6c6;
    font-size: 12px;
}

.key-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.key-form input {
    flex: 1;
    min-width: 220px;
    padding: 10px 12px;
    background: #231f21;
    border: 1px solid #46383b;
    color: #ece5df;
    outline: none;
}

.key-form input:focus {
    border-color: #8f6464;
}

.ghost-btn {
    background: transparent;
    border: 1px solid #635055;
    color: #ccbcbc;
}

.ghost-btn:hover {
    background: rgba(95, 70, 74, 0.35);
}

.key-status {
    margin-top: 10px;
    font-size: 12px;
}

.key-status.ok {
    color: #89d98b;
}

.key-status.warn {
    color: #ff9898;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#searchMode {
    padding: 12px;
    background: var(--jp-panel-bg-soft);
    border: 1px solid var(--jp-border-soft);
    color: var(--jp-text);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

#searchMode:hover {
    border-color: #6a4b4f;
    background: rgba(52, 38, 42, 0.85);
}

#searchMode:focus {
    border-color: #8a6060;
    background: rgba(52, 38, 42, 0.92);
}

#searchInput {
    flex: 1;
    padding: 12px 16px;
    background: var(--jp-panel-bg-soft);
    border: 1px solid var(--jp-border-soft);
    color: var(--jp-text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

#searchInput:focus {
    border-color: #8a6060;
}

button {
    padding: 12px 32px;
    background: var(--jp-accent);
    color: #f5eeee;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 2px;
    transition: background 0.3s;
}

button:hover {
    background: var(--jp-accent-hover);
}

.search-type {
    display: flex;
    gap: 10px;
}

.type-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--jp-border-soft);
    color: var(--jp-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    height: 38px;
}

.type-btn:hover {
    border-color: #6a4b4f;
    color: #d3c4c4;
}

.type-btn.active {
    background: var(--jp-accent);
    color: #f5eeee;
    border-color: var(--jp-accent);
}

.options-row {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.platform-selector {
    font-size: 14px;
    color: var(--jp-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-selector label,
.quality-selector label {
    line-height: 38px;
}

#platform {
    padding: 10px 12px;
    background: var(--jp-panel-bg-soft);
    border: 1px solid var(--jp-border-soft);
    color: var(--jp-text);
    outline: none;
    height: 38px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#platform:hover {
    border-color: #6a4b4f;
    background: rgba(52, 38, 42, 0.85);
}

#platform:focus {
    border-color: #8a6060;
    background: rgba(52, 38, 42, 0.92);
}

.quality-selector {
    font-size: 14px;
    color: var(--jp-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

#quality {
    padding: 10px 12px;
    background: var(--jp-panel-bg-soft);
    border: 1px solid var(--jp-border-soft);
    color: var(--jp-text);
    outline: none;
    height: 38px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#quality:hover {
    border-color: #6a4b4f;
    background: rgba(52, 38, 42, 0.85);
}

#quality:focus {
    border-color: #8a6060;
    background: rgba(52, 38, 42, 0.92);
}

.platform-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(80, 56, 60, 0.7);
    color: #d6c6c6;
    font-size: 11px;
    border-radius: 2px;
    margin-left: 8px;
}

.results {
    margin-top: 30px;
}

.result-item {
    padding: 20px;
    background: var(--jp-panel-bg);
    border: 1px solid var(--jp-border-soft);
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.result-item:hover {
    border-color: #725256;
}

.song-info h3 {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 6px;
}

.song-info p {
    font-size: 13px;
    color: var(--jp-muted);
}

.result-item {
    padding: 20px;
    background: #2a2a2a;
    border: 1px solid #333;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.song-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.song-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 16px;
}

.inline-lyrics {
    flex: 1;
    font-size: 13px;
    color: var(--jp-muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    padding: 0 20px;
    line-height: 20px;
}

.song-cover {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.result-item button {
    padding: 8px 16px;
    font-size: 12px;
    margin-left: 8px;
}

.inline-player {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--jp-border-soft);
    animation: slideDown 0.3s ease;
}

.lyrics-container {
    margin-top: 12px;
    padding: 16px;
    background: rgba(33, 26, 28, 0.8);
    border-radius: 2px;
    max-height: 200px;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

.lyrics-content {
    font-size: 13px;
    line-height: 2;
    color: var(--jp-muted);
    text-align: center;
}

.lyrics-content .lyric-line {
    transition: color 0.3s;
    padding: 4px 0;
}

.lyrics-content .lyric-line.active {
    color: #fff;
    font-weight: 500;
}

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

.progress-bar {
    flex: 1;
    height: 4px;
    background: #5a464b;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: #f0d7d7;
    width: 0;
    transition: width 0.1s;
}

.time {
    font-size: 11px;
    color: var(--jp-muted);
    min-width: 80px;
    text-align: right;
}

footer {
    padding: 20px;
    border-top: 1px solid var(--jp-border);
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.status {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    font-size: 12px;
    color: #948787;
}

.status span {
    letter-spacing: 1px;
}

.source-links {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    font-size: 12px;
    color: #948787;
}

.source-links a {
    color: #7b5a5a;
    text-decoration: none;
    border-bottom: 1px dotted rgba(123, 90, 90, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.source-links a:hover {
    color: #5f4343;
    border-bottom-color: rgba(95, 67, 67, 0.65);
}

.loading {
    color: var(--jp-muted);
}

.online {
    color: #4caf50;
}

.offline {
    color: #f44336;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9b8d8d;
    font-size: 14px;
    letter-spacing: 2px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
}

.pagination button {
    padding: 8px 20px;
    font-size: 13px;
}

.pagination button:disabled {
    background: #4b3b40;
    color: #a79292;
    cursor: not-allowed;
}

.pagination span {
    color: var(--jp-muted);
    font-size: 13px;
}

.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: #f44336;
}

.toast.success {
    background: #4caf50;
}

.toast.info {
    background: #7b5a3a;
}

.auth-body {
    min-height: 100vh;
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(170, 48, 48, 0.26), transparent 40%),
        radial-gradient(circle at 80% 100%, rgba(255, 225, 200, 0.08), transparent 50%),
        linear-gradient(120deg, #120f10 0%, #191517 40%, #131214 100%);
    color: #ede6df;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-paper {
    width: 100%;
    max-width: 460px;
    padding: 44px 34px 34px;
    border: 1px solid #513535;
    background:
        linear-gradient(rgba(39, 28, 31, 0.85), rgba(29, 23, 26, 0.92)),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 3px
        );
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
}

.login-kicker {
    color: #b38f8f;
    letter-spacing: 4px;
    font-size: 12px;
    text-align: center;
    margin-bottom: 8px;
}

.login-title {
    font-size: 54px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 10px;
    margin: 0;
    color: #f6eeeb;
}

.login-subtitle {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 24px;
    color: #a99999;
    letter-spacing: 3px;
    font-size: 11px;
}

.password-login-entry-btn {
    display: block;
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid #7b3131;
    background: #7b3131;
    color: #f5eeee;
    letter-spacing: 2px;
}

.password-login-entry-btn:hover {
    background: #965050;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form label {
    color: #ad9a9a;
    font-size: 13px;
    letter-spacing: 2px;
}

.login-form input {
    padding: 12px 14px;
    background: #231f21;
    border: 1px solid #46383b;
    color: #ece5df;
    outline: none;
    transition: border-color 0.25s ease;
}

.login-form input:focus {
    border-color: #8f6464;
}

.login-form button {
    margin-top: 8px;
    background: #7b3131;
    color: #f5eeee;
    letter-spacing: 3px;
}

.login-form button:hover {
    background: #965050;
}

.login-divider {
    margin: 20px 0 14px;
    text-align: center;
    color: #8f7f7f;
    font-size: 11px;
    letter-spacing: 3px;
}

.linuxdo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    color: #f5eeee;
    background: #654a2f;
    text-decoration: none;
    letter-spacing: 2px;
    border: 1px solid #7b5a34;
    transition: background 0.25s ease;
}

.linuxdo-btn:hover {
    background: #7a5a3a;
}

.linuxdo-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    flex-shrink: 0;
}

.linuxdo-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.linuxdo-btn-label {
    line-height: 1;
}

.apply-key-link {
    display: inline-block;
    margin-top: 12px;
    color: #d8b89a;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
}

.apply-key-link:hover {
    color: #e8c7a6;
}

.app-apply-link {
    margin-top: 0;
}

.login-error {
    margin-top: 14px;
    color: #ff8e8e;
    font-size: 13px;
    text-align: center;
}

.login-tip {
    margin-top: 14px;
    color: #8f8686;
    font-size: 12px;
    text-align: center;
    letter-spacing: 1px;
}

.login-tip.login-tip-subtle {
    margin-top: 10px;
    color: #9f9292;
}

.login-tip.warn {
    color: #ff9a9a;
}

.song-header > div:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-playlist-btn {
    padding: 8px 12px;
    min-width: 42px;
    letter-spacing: 0;
    font-size: 16px;
    line-height: 1;
}

.floating-dock {
    position: fixed;
    right: 22px;
    bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1200;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid #7b5e5e;
    color: #f2e8df;
    background: radial-gradient(circle at 35% 30%, #a14f4f 0%, #5f2c2c 48%, #2b181b 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    font-size: 24px;
    padding: 0;
    letter-spacing: 0;
}

.fab-btn:hover {
    background: radial-gradient(circle at 35% 30%, #b05c5c 0%, #6f3333 48%, #311a1e 100%);
}

.player-fab-btn.is-spinning {
    animation: recordSpin 5.6s linear infinite;
}

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

.playlist-sheet,
.full-player-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
}

.playlist-sheet {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s ease;
}

.playlist-sheet.visible {
    pointer-events: auto;
}

.playlist-sheet.open {
    opacity: 1;
}

.full-player-overlay {
    --fp-origin-x: calc(100% - 44px);
    --fp-origin-y: calc(100% - 44px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.34s ease;
}

.full-player-overlay.visible {
    pointer-events: auto;
}

.full-player-overlay.open {
    opacity: 1;
}

.playlist-sheet-backdrop,
.full-player-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 8, 9, 0.62);
    backdrop-filter: blur(3px);
}

.playlist-sheet-backdrop {
    opacity: 0;
    transition: opacity 0.26s ease;
}

.playlist-sheet.open .playlist-sheet-backdrop {
    opacity: 1;
}

.full-player-backdrop {
    opacity: 0;
    transition: opacity 0.34s ease;
}

.full-player-overlay.open .full-player-backdrop {
    opacity: 1;
}

.playlist-sheet-panel {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(900px, calc(100% - 24px));
    max-height: 68vh;
    border-top: 1px solid #5f484a;
    background: linear-gradient(180deg, rgba(42, 31, 34, 0.98), rgba(26, 20, 23, 0.98));
    border-left: 1px solid #4f3c40;
    border-right: 1px solid #4f3c40;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.45);
    transform: translateX(-50%) translateY(100%);
    opacity: 0.98;
    transition: transform 0.26s ease, opacity 0.26s ease;
    display: flex;
    flex-direction: column;
}

.playlist-sheet.open .playlist-sheet-panel {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.playlist-sheet-header {
    padding: 14px 18px;
    border-bottom: 1px solid #4e3a3d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.playlist-sheet-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: #f2e8df;
}

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

.playlist-sheet-actions button {
    padding: 7px 12px;
    font-size: 12px;
    letter-spacing: 1px;
}

.playlist-sheet-list {
    overflow-y: auto;
    padding: 12px 14px 18px;
}

.playlist-empty {
    text-align: center;
    color: #a99898;
    font-size: 13px;
    padding: 28px 10px;
}

.playlist-item {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #4a383b;
    background: rgba(58, 43, 47, 0.45);
    margin-bottom: 10px;
}

.playlist-item.active {
    border-color: #8d5b5b;
    background: rgba(94, 55, 59, 0.44);
}

.playlist-item-cover {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 2px;
}

.playlist-item-meta h4 {
    font-size: 14px;
    color: #efe6df;
    margin-bottom: 3px;
}

.playlist-item-meta p {
    font-size: 12px;
    color: #b9abab;
}

.playlist-item-actions {
    display: flex;
    gap: 6px;
}

.playlist-item-actions button {
    padding: 6px 10px;
    font-size: 12px;
    letter-spacing: 1px;
}

.full-player-shell {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 26px clamp(16px, 5vw, 42px);
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif;
    background:
        radial-gradient(circle at 18% 0%, rgba(170, 48, 48, 0.24), transparent 42%),
        radial-gradient(circle at 100% 100%, rgba(255, 226, 202, 0.1), transparent 45%),
        linear-gradient(120deg, rgba(20, 16, 17, 0.95), rgba(30, 23, 26, 0.96) 42%, rgba(20, 17, 19, 0.96));
    transform-origin: var(--fp-origin-x) var(--fp-origin-y);
    transform: scale(0.06);
    opacity: 0;
    border-radius: 24px;
    transition:
        transform 0.38s cubic-bezier(0.18, 0.75, 0.2, 1),
        opacity 0.3s ease,
        border-radius 0.38s ease;
}

.full-player-overlay.open .full-player-shell {
    transform: scale(1);
    opacity: 1;
    border-radius: 0;
}

.full-player-top-tools {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.full-player-top-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(242, 220, 210, 0.28);
    background: rgba(78, 47, 51, 0.35);
    color: #f4e8df;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.full-player-top-btn:hover {
    background: rgba(112, 62, 62, 0.5);
    border-color: rgba(242, 220, 210, 0.45);
}

.top-btn-icon {
    font-size: 20px;
    line-height: 1;
}

.full-player-close-btn .top-btn-icon {
    font-size: 24px;
    margin-top: -1px;
}

.full-player-main {
    display: grid;
    grid-template-columns: minmax(240px, 34%) 1fr;
    gap: clamp(18px, 4vw, 52px);
    align-items: center;
}

.full-player-cover-wrap {
    text-align: center;
}

.full-player-cover {
    width: min(340px, 100%);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(233, 211, 200, 0.2);
}

.full-player-title {
    margin-top: 16px;
    font-size: clamp(24px, 3vw, 34px);
    color: #f6ece4;
    font-weight: 600;
}

.full-player-artist {
    margin-top: 6px;
    color: #d6c3c0;
    font-size: 15px;
}

.full-player-lyric-wrap {
    color: #f2e8df;
    min-height: 220px;
}

.full-player-kicker {
    color: #bda6a6;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 24px;
}

.full-player-current-lyric {
    font-size: clamp(28px, 5vw, 58px);
    line-height: 1.2;
    font-weight: 600;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.full-player-next-lyric {
    margin-top: 18px;
    font-size: clamp(16px, 2vw, 24px);
    color: #beaead;
}

.full-player-progress-row {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    gap: 12px;
    color: #c6b8b7;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.full-player-progress-row span {
    font-size: 12px;
}

.full-player-progress-bar {
    height: 6px;
    background: rgba(201, 176, 166, 0.24);
    cursor: pointer;
}

.full-player-progress-fill {
    height: 100%;
    width: 0;
    background: #f1dfd2;
}

.full-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.full-player-overlay.fs-idle .full-player-top-tools {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.full-player-overlay.fs-idle .full-player-progress-row,
.full-player-overlay.fs-idle .full-player-controls {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.full-player-controls button {
    width: 56px;
    height: 56px;
    min-width: 56px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(226, 198, 185, 0.32);
    background: rgba(78, 48, 52, 0.42);
    color: #f5e8df;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.full-player-controls .control-icon {
    display: inline-block;
    font-size: 24px;
    line-height: 1;
}

.full-player-controls .control-text {
    font-size: 13px;
    letter-spacing: 1px;
}

.full-player-controls button:hover {
    background: rgba(112, 62, 62, 0.5);
}

@media (max-width: 768px) {
    header {
        padding: 30px 15px 20px;
    }

    .header-actions {
        right: 10px;
        top: 8px;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    h1 {
        font-size: 32px;
        letter-spacing: 4px;
    }

    main {
        padding: 20px 15px;
    }

    .search-box {
        gap: 6px;
    }

    #searchMode {
        padding: 8px;
        font-size: 13px;
    }

    #searchInput {
        padding: 8px 12px;
        font-size: 13px;
    }

    button {
        padding: 8px 16px;
        font-size: 13px;
        letter-spacing: 1px;
    }

    .type-btn {
        padding: 8px 16px;
        font-size: 12px;
        height: 34px;
    }

    .options-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }

    .key-panel {
        padding: 12px;
    }

    .key-form input {
        min-width: 100%;
    }

    .search-type {
        gap: 6px;
    }

    .platform-selector,
    .quality-selector {
        font-size: 12px;
        gap: 6px;
    }

    .platform-selector label,
    .quality-selector label {
        line-height: 34px;
        font-size: 12px;
    }

    #platform,
    #quality {
        padding: 8px;
        height: 34px;
        font-size: 12px;
        width: 80px;
    }

    .result-item {
        padding: 15px;
    }

    .song-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .song-header > div:first-child {
        gap: 12px;
        flex: 1;
        min-width: 200px;
    }

    .song-header > div:last-child {
        display: flex;
        gap: 4px;
    }

    .song-cover {
        width: 50px;
        height: 50px;
    }

    .song-info h3 {
        font-size: 14px;
    }

    .song-info p {
        font-size: 12px;
    }

    .inline-lyrics {
        padding: 8px 0 0 0;
        line-height: 1.5;
        font-size: 12px;
    }

    .result-item button {
        padding: 6px 12px;
        font-size: 11px;
        margin-left: 4px;
    }

    .pagination {
        gap: 12px;
        padding: 15px;
    }

    .pagination button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .status {
        flex-direction: column;
        gap: 8px;
        font-size: 11px;
    }

    .source-links {
        flex-direction: column;
        gap: 6px;
        font-size: 11px;
        text-align: left;
        justify-content: flex-start;
    }

    .login-paper {
        padding: 34px 20px 24px;
    }

    .login-title {
        font-size: 42px;
        letter-spacing: 8px;
    }

    .floating-dock {
        right: 12px;
        bottom: 16px;
        gap: 9px;
    }

    .fab-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .playlist-sheet-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .playlist-sheet-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .playlist-sheet-panel {
        width: 100%;
        left: 0;
        transform: translateY(100%);
        border-left: none;
        border-right: none;
    }

    .playlist-sheet.open .playlist-sheet-panel {
        transform: translateY(0);
    }

    .full-player-shell {
        padding: 24px 14px 20px;
        gap: 16px;
    }

    .full-player-main {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .full-player-cover {
        width: min(240px, 72vw);
    }

    .full-player-lyric-wrap {
        min-height: 130px;
        text-align: center;
    }

    .full-player-current-lyric {
        font-size: clamp(24px, 9vw, 36px);
    }

    .full-player-next-lyric {
        font-size: 16px;
    }

    .full-player-controls {
        gap: 8px;
    }

    .full-player-controls button {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .full-player-controls .control-icon {
        font-size: 21px;
    }

    .full-player-controls .control-text {
        font-size: 12px;
    }
}
