/* 同频 — 两个人的同步听歌室 */

:root {
    color-scheme: dark;
    --bg: #0B0F0D;
    --bg-soft: #0E1411;
    --panel: #131A16;
    --panel-soft: #161F1A;
    --line: #263029;
    --line-soft: #1E2721;
    --text: #EBE9DF;
    --text-dim: #AEB7AE;
    --muted: #7F8B82;
    --faint: #5C675E;
    --brass: #C9A96E;
    --brass-strong: #E2C68E;
    --celadon: #9FBFA7;
    --cinnabar: #C1583E;
    --cinnabar-strong: #DB6B4E;
    --danger: #E07862;
    --success: #94BFA5;
    --focus: #E4C98F;
    --font-display: "Songti SC", "STSong", "Noto Serif SC", "Georgia", serif;
    --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SFMono-Regular", "Menlo", "Consolas", monospace;
    --radius: 18px;
    --shadow: 0 34px 90px -46px rgba(0, 0, 0, 0.92);
}

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

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100svh;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(900px 620px at 10% -12%, rgba(201, 169, 110, 0.09), transparent 62%),
        radial-gradient(900px 720px at 108% 112%, rgba(159, 191, 167, 0.06), transparent 62%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.page-landing {
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

::selection {
    background: rgba(201, 169, 110, 0.28);
    color: #FFF9EC;
}

.mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0.045;
    mix-blend-mode: screen;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

/* ---------------------------------------------------------------- 品牌与页头 */

.site-head {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}

.brand-disc {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, var(--bg) 0 2px, var(--cinnabar) 2.5px 5px, #1B231E 5.5px 100%);
    border: 1px solid rgba(201, 169, 110, 0.55);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.05);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
}

.brand-sub {
    font-size: 8.5px;
    letter-spacing: 0.22em;
    color: var(--muted);
    margin-top: 2px;
}

.site-note {
    font-size: 9px;
    letter-spacing: 0.22em;
    color: var(--muted);
    white-space: nowrap;
}

/* ---------------------------------------------------------------- 进门页 */

.landing {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(44px, 7vh, 100px) 28px 64px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: clamp(44px, 7vw, 104px);
    align-items: center;
    flex: 1;
}

.hero {
    min-width: 0;
    padding-top: 8px;
}

.eyebrow {
    margin: 0 0 20px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.26em;
    color: var(--brass);
    text-transform: uppercase;
}

.hero-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(88px, 12vw, 158px);
    line-height: 0.9;
    letter-spacing: 0.045em;
    color: var(--text);
    text-wrap: balance;
}

.hero-line {
    margin: 28px 0 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(22px, 2.5vw, 31px);
    letter-spacing: 0.06em;
    color: var(--text);
}

.hero-copy {
    margin: 18px 0 0;
    max-width: 34em;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.95;
}

.hero-deck {
    margin-top: 46px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.mini-vinyl {
    position: relative;
    flex: none;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #0C100E 0 4px, rgba(0, 0, 0, 0) 4.5px),
        repeating-radial-gradient(circle at 50% 50%, #1A201C 0 2px, #0D110E 2px 4px);
    border: 1px solid #2B342D;
    box-shadow: 0 24px 46px -30px #000, inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.mini-vinyl::after {
    content: "";
    position: absolute;
    inset: 32%;
    border-radius: 50%;
    background: var(--cinnabar);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.mini-label {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.12em;
    color: #F6E6D8;
}

.deck-note {
    margin: 0;
    max-width: 220px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.16em;
    line-height: 2;
}

.entry {
    min-width: 0;
}

.panel {
    background: linear-gradient(180deg, rgba(22, 30, 25, 0.92), rgba(15, 21, 17, 0.96));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.entry-panel {
    padding: clamp(22px, 3vw, 34px);
    border-radius: 24px;
}

.flash {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 11px;
    border: 1px solid rgba(193, 88, 62, 0.38);
    background: rgba(193, 88, 62, 0.11);
    color: #F0C7BB;
    font-size: 12.5px;
    line-height: 1.75;
}

.flash.is-success {
    border-color: rgba(148, 191, 165, 0.35);
    background: rgba(148, 191, 165, 0.08);
    color: #C8E3D1;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}

.form-kicker {
    font-size: 8.5px;
    letter-spacing: 0.26em;
    color: var(--brass);
}

.form-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    letter-spacing: 0.05em;
    color: var(--text);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.field > span {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--text-dim);
    font-size: 11.5px;
    letter-spacing: 0.07em;
}

.field em {
    font-style: normal;
    font-size: 10px;
    color: var(--muted);
}

.input {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #2A352D;
    border-radius: 10px;
    background: #0D130F;
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.input::placeholder {
    color: #617066;
}

.input:hover {
    border-color: #3A463C;
}

.input:focus {
    outline: none;
    border-color: var(--brass);
    background: #0F1611;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

.input-code {
    font-family: var(--font-mono);
    font-size: 16px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.btn {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    font-size: 13.5px;
    letter-spacing: 0.12em;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    cursor: default;
    opacity: 0.45;
}

.btn-solid {
    background: var(--brass);
    color: #17120B;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 30px -20px rgba(201, 169, 110, 0.8);
}

.btn-solid:hover {
    background: var(--brass-strong);
}

.btn-ghost {
    background: transparent;
    border-color: #3A463C;
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--brass);
    color: var(--brass-strong);
}

.or {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 9.5px;
    letter-spacing: 0.26em;
}

.or::before,
.or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.entry-note {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.9;
}

.site-foot {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    border-top: 1px solid rgba(38, 48, 41, 0.6);
}

/* ---------------------------------------------------------------- 房间顶栏 */

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(11, 15, 13, 0.86);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 28px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.brand-small .brand-name {
    font-size: 26px;
}

.room-head {
    min-width: 0;
}

.room-kicker {
    display: block;
    font-size: 8.5px;
    letter-spacing: 0.24em;
    color: var(--muted);
    margin-bottom: 3px;
}

.room-name {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.04em;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 5px 8px 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #0F1511;
}

.code-label {
    font-size: 8.5px;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.code-chip strong {
    font-size: 12.5px;
    letter-spacing: 0.16em;
    color: var(--brass-strong);
}

.copy-btn {
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid #334037;
    border-radius: 6px;
    background: transparent;
    color: var(--text-dim);
    font-size: 9.5px;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.copy-btn:hover {
    border-color: var(--brass);
    color: var(--brass-strong);
}

.leave-form {
    margin: 0;
}

.btn-quiet {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.btn-quiet:hover {
    color: var(--text);
    border-color: var(--line);
}

/* ---------------------------------------------------------------- 房间布局 */

.room-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 26px 28px 84px;
}

.room-main > .flash {
    margin-bottom: 18px;
}

.room-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 342px;
    gap: 22px;
    align-items: start;
}

.player-column,
.side-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.player {
    position: relative;
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: clamp(26px, 3.4vw, 48px);
    align-items: center;
    padding: clamp(24px, 3vw, 38px);
    overflow: hidden;
}

.player::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.08), transparent 68%);
    pointer-events: none;
}

.record-stage {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    justify-self: center;
    display: grid;
    place-items: center;
}

.record-stage::before {
    content: "";
    position: absolute;
    inset: 2%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.10), transparent 68%);
    filter: blur(18px);
}

.record {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #0A0D0B;
    box-shadow:
        0 40px 70px -44px #000,
        inset 0 0 0 1px #2B332C,
        inset 0 0 0 8px #0D110E,
        inset 0 0 0 9px rgba(255, 255, 255, 0.035);
}

.record-grooves {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(from 0deg,
            rgba(255, 255, 255, 0.055),
            transparent 22%,
            rgba(255, 255, 255, 0.015) 48%,
            transparent 72%,
            rgba(255, 255, 255, 0.045)
        ),
        repeating-radial-gradient(circle at 50% 50%,
            #181D19 0 2px,
            #0C100E 2px 4px
        );
    animation: spin 18s linear infinite;
    animation-play-state: paused;
}

.record.is-playing .record-grooves {
    animation-play-state: running;
}

.record.is-empty {
    opacity: 0.55;
    filter: grayscale(0.35);
}

.record-label {
    position: absolute;
    inset: 31%;
    z-index: 2;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10%;
    text-align: center;
    color: #F8EADF;
    background: radial-gradient(circle at 34% 27%, #D98265, #B7543A 56%, #8E3A27);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        0 0 0 7px rgba(0, 0, 0, 0.28);
}

.record-kicker {
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.22em;
    color: rgba(255, 246, 237, 0.7);
}

.record-title {
    max-width: 100%;
    font-family: var(--font-display);
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: 0.03em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

.record-rpm {
    font-size: 6.5px;
    letter-spacing: 0.12em;
    color: rgba(255, 246, 237, 0.55);
}

.tonearm {
    position: absolute;
    top: 7%;
    right: 9%;
    z-index: 3;
    width: 7px;
    height: 41%;
    border-radius: 4px;
    background: linear-gradient(180deg, #E3CC99, #8D7444);
    transform-origin: 50% 9%;
    transform: rotate(27deg);
    opacity: 0.82;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

.tonearm::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #171D19;
    border: 2px solid #B99A63;
    transform: translateX(-50%);
}

.tonearm::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 12px;
    height: 20px;
    border-radius: 3px;
    background: #0E120F;
    border: 1px solid #3B423B;
    transform: translateX(-50%) rotate(-8deg);
}

.unlock {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 190px;
    padding: 16px 18px;
    border: 1px solid rgba(201, 169, 110, 0.7);
    border-radius: 14px;
    background: rgba(10, 14, 11, 0.94);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 24px 60px -26px #000;
}

.unlock:hover {
    border-color: var(--brass-strong);
}

.unlock-kicker {
    font-size: 7.5px;
    letter-spacing: 0.28em;
    color: var(--brass);
}

.unlock strong {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.unlock-sub {
    font-size: 10px;
    color: var(--muted);
}

.player-body {
    min-width: 0;
}

.now-playing {
    min-width: 0;
}

.now-state {
    margin: 0 0 10px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--brass);
    min-height: 13px;
}

.now-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(24px, 2.5vw, 35px);
    line-height: 1.22;
    letter-spacing: 0.02em;
    color: var(--text);
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.now-artist {
    margin: 9px 0 0;
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.6;
}

.now-added {
    margin: 14px 0 0;
    min-height: 16px;
    color: var(--muted);
    font-size: 10.5px;
    letter-spacing: 0.03em;
}

.controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.round-btn {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.round-btn:hover {
    border-color: var(--brass);
    color: var(--brass-strong);
    background: rgba(201, 169, 110, 0.05);
}

.round-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.round-btn svg {
    width: 17px;
    height: 17px;
}

.play-btn {
    flex: none;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--brass);
    color: #17120B;
    cursor: pointer;
    box-shadow: 0 16px 34px -20px rgba(201, 169, 110, 0.9);
    transition: background 0.18s ease, transform 0.12s ease;
}

.play-btn:hover {
    background: var(--brass-strong);
}

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

.play-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

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

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

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

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

.mute-btn {
    margin-left: auto;
}

.icon-muted {
    display: none;
}

.mute-btn.is-muted .icon-sound {
    display: none;
}

.mute-btn.is-muted .icon-muted {
    display: block;
}

.progress-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
}

.time {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.time:last-child {
    text-align: right;
}

.seek-wrap {
    position: relative;
    height: 18px;
    display: flex;
    align-items: center;
}

.seek-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px;
    background: #29342C;
    overflow: hidden;
}

.seek-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--cinnabar), var(--brass));
}

.seek-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 18px;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.seek-input::-webkit-slider-runnable-track {
    height: 3px;
    background: transparent;
}

.seek-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -4.5px;
    border-radius: 50%;
    border: 2px solid #161B17;
    background: var(--brass-strong);
    box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.5);
}

.seek-input::-moz-range-track {
    height: 3px;
    background: transparent;
}

.seek-input::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 2px solid #161B17;
    border-radius: 50%;
    background: var(--brass-strong);
}

.seek-input:disabled {
    cursor: default;
    opacity: 0.4;
}

.sync-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.03em;
}

.sync-dot {
    flex: none;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--celadon);
    box-shadow: 0 0 0 3px rgba(159, 191, 167, 0.1);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.sync-dot.is-off {
    background: var(--danger);
    box-shadow: 0 0 0 3px rgba(224, 120, 98, 0.1);
}

.sync-note {
    margin-left: auto;
    color: var(--faint);
    font-size: 9px;
}

#audio {
    display: none;
}

/* ---------------------------------------------------------------- 歌词 */

.lyrics-panel {
    padding: 24px 26px;
}

.lyrics-body {
    position: relative;
    min-height: 156px;
    max-height: 292px;
    overflow-y: auto;
    padding: 2px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}

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

.lyrics-body::-webkit-scrollbar-track {
    background: transparent;
}

.lyrics-body::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: var(--line);
}

.lyrics-empty {
    display: grid;
    place-items: center;
    min-height: 148px;
    margin: 0;
    padding: 20px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.8;
    text-align: center;
}

.lyrics-lines {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 12px 8px;
}

.lyrics-line {
    display: block;
    width: 100%;
    margin: 0;
    padding: 7px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.75;
    text-align: center;
    cursor: pointer;
    opacity: 0.62;
    transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.lyrics-line:hover {
    color: var(--text-dim);
    opacity: 0.92;
}

.lyrics-line.is-active {
    color: var(--brass-strong);
    background: linear-gradient(90deg, rgba(201, 169, 110, 0.04), rgba(201, 169, 110, 0.085), rgba(201, 169, 110, 0.04));
    opacity: 1;
}

.lyrics-text {
    display: block;
}

.lyrics-trans {
    display: block;
    margin-top: 2px;
    color: var(--faint);
    font-family: var(--font-body);
    font-size: 10px;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.lyrics-line.is-active .lyrics-trans {
    color: rgba(226, 198, 142, 0.62);
}

@media (max-width: 700px) {
    .lyrics-panel {
        padding: 20px 18px;
    }

    .lyrics-body {
        max-height: 240px;
    }

    .lyrics-line {
        font-size: 13px;
    }
}

/* ---------------------------------------------------------------- 队列 */

.queue-panel {
    padding: 24px 26px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.04em;
    color: var(--text);
}

.section-meta {
    font-size: 8.5px;
    letter-spacing: 0.14em;
    color: var(--muted);
    white-space: nowrap;
}

.queue-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.queue-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
    align-items: center;
    border-top: 1px solid var(--line-soft);
    border-radius: 9px;
    transition: background 0.16s ease;
}

.queue-item:first-child {
    border-top: 0;
}

.queue-item:hover {
    background: rgba(255, 255, 255, 0.018);
}

.queue-item.is-current {
    background: linear-gradient(90deg, rgba(201, 169, 110, 0.085), rgba(201, 169, 110, 0.015));
}

.q-play {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.q-index {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 16px;
    color: var(--muted);
}

.q-no {
    font-size: 9px;
    letter-spacing: 0.05em;
}

.q-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brass);
}

.eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.eq i {
    display: block;
    width: 2px;
    height: 4px;
    border-radius: 1px;
    background: var(--brass);
    animation: eq 0.9s ease-in-out infinite;
}

.eq i:nth-child(2) {
    animation-delay: 0.16s;
}

.eq i:nth-child(3) {
    animation-delay: 0.32s;
}

.q-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.q-title {
    font-size: 13.5px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.is-current .q-title {
    color: var(--brass-strong);
}

.q-artist {
    font-size: 10.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.q-duration {
    font-size: 9.5px;
    color: var(--muted);
    text-align: right;
}

.q-del {
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--faint);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.queue-item:hover .q-del,
.q-del:focus-visible {
    opacity: 1;
}

.q-del:hover {
    color: var(--danger);
    border-color: rgba(224, 120, 98, 0.35);
}

.empty-note {
    margin: 8px 0 0;
    padding: 18px 0;
    color: var(--muted);
    font-size: 11.5px;
    text-align: center;
}

/* ---------------------------------------------------------------- 侧栏 */

.seats-panel {
    padding: 24px;
}

.seats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.seat {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 62px;
    padding: 9px;
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.012);
}

.seat.is-me {
    border-color: rgba(201, 169, 110, 0.34);
    background: rgba(201, 169, 110, 0.045);
}

.seat.is-empty {
    border-style: dashed;
    opacity: 0.82;
}

.avatar {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--celadon);
    color: #10150F;
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 1;
}

.avatar.color-0 {
    background: #C9A96E;
}

.avatar.color-1 {
    background: #9FBFA7;
}

.avatar.color-2 {
    background: #C1583E;
    color: #F6E7DB;
}

.avatar.color-3 {
    background: #8FA7C0;
}

.avatar-empty {
    background: transparent;
    border: 1px dashed #3B473D;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 13px;
}

.seat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.seat-name {
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seat-name em {
    margin-left: 4px;
    font-style: normal;
    font-size: 8.5px;
    color: var(--brass);
}

.seat-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dot {
    flex: none;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #6D766D;
}

.dot.is-online {
    background: var(--celadon);
    box-shadow: 0 0 0 2px rgba(159, 191, 167, 0.1);
}

.dot.is-away {
    background: #8A764E;
}

.together-time {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.together-kicker {
    color: var(--faint);
    font-size: 8px;
    letter-spacing: 0.14em;
}

.together-copy {
    color: var(--muted);
}

.together-value {
    margin-left: auto;
    color: var(--brass-strong);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.seat-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.9;
}

.seat-note strong {
    color: var(--brass-strong);
    font-weight: 400;
    letter-spacing: 0.12em;
}

.add-panel {
    padding: 24px;
    transition: border-color 0.2s ease;
}

.add-panel.is-highlight {
    border-color: rgba(201, 169, 110, 0.34);
}

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 14px;
    border: 1px dashed #37443A;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.12);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.dropzone:hover {
    border-color: rgba(201, 169, 110, 0.7);
    background: rgba(201, 169, 110, 0.035);
}

.drop-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--brass);
    font-size: 15px;
    line-height: 1;
}

.drop-title {
    color: var(--text);
    font-size: 12.5px;
}

.drop-meta {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-name {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 9px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.upload-form .btn,
.url-form .btn {
    width: 100%;
    margin-top: 12px;
}

.url-add {
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid var(--line-soft);
}

.url-add summary {
    list-style: none;
    cursor: pointer;
    color: var(--brass);
    font-size: 10.5px;
    letter-spacing: 0.04em;
}

.url-add summary::-webkit-details-marker {
    display: none;
}

.url-add summary::before {
    content: "+";
    display: inline-block;
    margin-right: 6px;
    font-family: var(--font-mono);
}

.url-add[open] summary::before {
    content: "−";
}

.url-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.rights-note {
    margin: 14px 0 0;
    color: var(--faint);
    font-size: 9px;
    text-align: center;
    letter-spacing: 0.03em;
}

/* ---------------------------------------------------------------- 网易云 */

.q-badge {
    display: inline-block;
    margin-right: 5px;
    padding: 0 4px;
    border: 1px solid rgba(193, 88, 62, 0.42);
    border-radius: 3px;
    color: #DE8066;
    font-size: 8px;
    line-height: 1.55;
    vertical-align: 1px;
    letter-spacing: 0.03em;
}

.netease-panel {
    padding: 24px;
}

.netease-copy {
    margin: 0 0 12px;
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.85;
}

.netease-login-btn {
    width: 100%;
}

.netease-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.netease-qr {
    display: block;
    width: 184px;
    height: 184px;
    padding: 8px;
    border-radius: 12px;
    object-fit: contain;
    background: #FFFFFF;
}

.netease-hint {
    margin: 8px 0 0;
    min-height: 16px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.65;
    text-align: center;
}

.netease-user {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    padding: 8px;
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    background: rgba(193, 88, 62, 0.045);
}

.netease-avatar {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-soft);
}

.netease-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.netease-user-info strong {
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.netease-user-info em {
    color: var(--celadon);
    font-size: 8.5px;
    font-style: normal;
    letter-spacing: 0.06em;
}

.netease-user .btn-quiet {
    padding: 0 6px;
    font-size: 10px;
}

.netease-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.netease-search .input {
    min-height: 42px;
    font-size: 13px;
}

.netease-search .btn {
    min-height: 42px;
    padding: 0 14px;
    letter-spacing: 0.06em;
}

.netease-results {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.netease-result {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border-top: 1px solid var(--line-soft);
}

.netease-result:first-child {
    border-top: 0;
}

.netease-cover {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-soft);
}

.netease-cover-empty {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    background: var(--bg-soft);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8px;
}

.netease-result-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.netease-result-title {
    overflow: hidden;
    color: var(--text);
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.netease-result-meta {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.netease-add {
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--brass);
    font-size: 9.5px;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.16s ease, color 0.16s ease;
}

.netease-add:hover {
    border-color: var(--brass);
    color: var(--brass-strong);
}

.netease-add:disabled {
    opacity: 0.45;
    cursor: default;
}

.netease-playlist {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid var(--line-soft);
}

.netease-playlist > summary {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--brass);
    font-size: 11px;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

.netease-playlist > summary::-webkit-details-marker {
    display: none;
}

.netease-playlist > summary::before {
    content: "＋";
    color: var(--brass);
    font-family: var(--font-mono);
    font-size: 10px;
}

.netease-playlist[open] > summary::before {
    content: "−";
}

.netease-playlist-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 10px;
}

.netease-playlist-select {
    width: 100%;
    min-height: 38px;
    padding: 0 9px;
    font-size: 11px;
    text-overflow: ellipsis;
}

.netease-playlist-open {
    min-height: 38px;
    padding: 0 11px;
    font-size: 10px;
}

.netease-playlist-status {
    margin: 8px 0 0;
    text-align: left;
}

.netease-playlist-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.netease-playlist-name {
    min-width: 0;
    overflow: hidden;
    color: var(--text-dim);
    font-size: 10.5px;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.netease-playlist-head .netease-add {
    flex: none;
    margin-left: auto;
}

.netease-playlist-results {
    max-height: 260px;
    margin-top: 4px;
}

.netease-playlist-results:empty {
    display: none;
}

.netease-note {
    margin: 14px 0 0;
    color: var(--faint);
    font-size: 9px;
    line-height: 1.7;
    text-align: center;
}

/* ---------------------------------------------------------------- 提示 */

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 300;
    max-width: calc(100vw - 40px);
    padding: 10px 16px;
    border: 1px solid rgba(201, 169, 110, 0.4);
    border-radius: 10px;
    background: #161E18;
    color: var(--text);
    font-size: 11.5px;
    line-height: 1.6;
    box-shadow: 0 20px 50px -24px #000;
}

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

@keyframes eq {
    0%,
    100% {
        height: 3px;
    }
    50% {
        height: 12px;
    }
}

/* ---------------------------------------------------------------- 响应式 */

/* ---------------------------------------------------------------- 社交 / 队列 / 回顾 */

.invite-btn {
    border-color: rgba(201, 169, 110, 0.32);
    color: var(--brass);
}

.mode-btn {
    flex: none;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 9.5px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.mode-btn:hover {
    border-color: var(--brass);
    color: var(--brass-strong);
    background: rgba(201, 169, 110, 0.05);
}

.mode-btn[data-mode="one"] {
    border-color: rgba(201, 169, 110, 0.38);
    color: var(--brass-strong);
}

.mode-btn[data-mode="shuffle"] {
    border-color: rgba(159, 191, 167, 0.35);
    color: var(--celadon);
}

.record-day {
    display: block;
    margin-top: 2px;
    color: var(--celadon);
    font-size: 7px;
    letter-spacing: 0.12em;
}

.lyrics-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.lyrics-expand-btn {
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.lyrics-expand-btn:hover {
    border-color: var(--brass);
    color: var(--brass-strong);
}

body.lyrics-expanded {
    overflow: hidden;
}

.lyrics-panel.is-fullscreen {
    position: fixed;
    inset: clamp(10px, 2vw, 28px);
    z-index: 250;
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 3vw, 34px);
    border-color: var(--brass);
    background: linear-gradient(180deg, rgba(22, 30, 25, 0.995), rgba(11, 15, 13, 0.998));
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.82);
}

.lyrics-panel.is-fullscreen .lyrics-body {
    flex: 1;
    min-height: 0;
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.lyrics-panel.is-fullscreen .lyrics-lines {
    gap: 5px;
    padding: 9vh 8vw;
}

.lyrics-panel.is-fullscreen .lyrics-line {
    padding: 8px 16px;
    font-size: clamp(18px, 2.4vw, 28px);
    line-height: 1.8;
}

.lyrics-panel.is-fullscreen .lyrics-trans {
    font-size: clamp(11px, 1.2vw, 14px);
}

.lyrics-panel.is-fullscreen .lyrics-empty {
    flex: 1;
    min-height: 0;
    font-size: 15px;
}

.queue-head {
    align-items: center;
}

.queue-manage-btn {
    flex: none;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.queue-manage-btn:hover,
.queue-panel.is-managing .queue-manage-btn {
    border-color: var(--brass);
    color: var(--brass-strong);
}

.queue-manage-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.queue-manage-bar {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin: -3px 0 11px;
}

.queue-manage-action {
    min-height: 25px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 9px;
    cursor: pointer;
}

.queue-manage-action:hover {
    border-color: var(--brass);
    color: var(--brass-strong);
}

.queue-manage-action.is-danger {
    border-color: rgba(224, 120, 98, 0.28);
    color: var(--danger);
}

.queue-manage-action:disabled {
    opacity: 0.35;
    cursor: default;
}

.queue-item {
    grid-template-columns: minmax(0, 1fr) auto;
}

.q-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 4px;
}

.q-order {
    display: none;
    align-items: center;
    gap: 1px;
}

.queue-panel.is-managing .q-order {
    display: inline-flex;
}

.queue-panel.is-managing .q-next {
    display: none;
}

.queue-panel.is-managing .q-del {
    opacity: 1;
}

.q-mini {
    width: 22px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.q-mini:hover {
    border-color: var(--brass);
    color: var(--brass-strong);
}

.q-next {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--faint);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.queue-item:hover .q-next,
.q-next:focus-visible {
    opacity: 1;
}

.q-next:hover {
    border-color: rgba(201, 169, 110, 0.3);
    color: var(--brass-strong);
}

.queue-panel.is-managing .queue-item {
    cursor: grab;
}

.queue-item.is-dragging {
    opacity: 0.35;
}

.queue-item.is-drop-target {
    outline: 1px dashed var(--brass);
    outline-offset: -2px;
}

.recap-panel,
.chat-panel {
    padding: 24px;
}

.recap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.recap-stat {
    min-width: 0;
    padding: 10px 6px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.012);
    text-align: center;
}

.recap-stat span {
    display: block;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.05em;
}

.recap-stat strong {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: var(--brass-strong);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recap-artist {
    overflow: hidden;
    margin: 12px 0 0;
    color: var(--text-dim);
    font-size: 10px;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recap-since {
    margin: 6px 0 0;
    color: var(--faint);
    font-size: 9px;
    line-height: 1.6;
}

.chat-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 230px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.12);
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.chat-empty {
    margin: 0;
    padding: 14px 6px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.7;
    text-align: center;
}

.chat-msg {
    align-self: flex-start;
    max-width: 88%;
    padding: 8px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
}

.chat-msg.is-me {
    align-self: flex-end;
    border-color: rgba(201, 169, 110, 0.28);
    background: rgba(201, 169, 110, 0.06);
}

.chat-msg-head {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 3px;
}

.chat-msg-name {
    color: var(--muted);
    font-size: 9px;
}

.chat-msg-time {
    color: var(--faint);
    font-size: 8px;
}

.chat-msg-body {
    color: var(--text);
    font-size: 12px;
    line-height: 1.6;
    word-break: break-word;
}

.chat-quick {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.chat-quick button {
    width: 30px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--line-soft);
    border-radius: 7px;
    background: transparent;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.chat-quick button:hover {
    border-color: var(--brass);
    background: rgba(201, 169, 110, 0.05);
}

.chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    margin-top: 8px;
}

.chat-form .input {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
}

.chat-form .btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 10.5px;
    letter-spacing: 0.05em;
}

.join-hint {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
    text-align: center;
}

@media (max-width: 1160px) {
    .room-grid {
        grid-template-columns: minmax(0, 1fr) 318px;
    }

    .player {
        grid-template-columns: 232px minmax(0, 1fr);
    }

    .record-stage {
        max-width: 250px;
    }

    .seats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1000px) {
    .landing {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-top: 54px;
    }

    .hero {
        max-width: 680px;
    }

    .hero-title {
        font-size: clamp(84px, 18vw, 132px);
    }

    .entry {
        width: 100%;
        max-width: 620px;
    }

    .room-grid {
        grid-template-columns: 1fr;
    }

    .side-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .seats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .topbar-inner {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px 20px;
        padding: 12px 22px;
    }

    .top-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .room-main {
        padding: 20px 22px 70px;
    }

    .player {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 26px 24px 30px;
    }

    .record-stage {
        max-width: 250px;
        margin: 0 auto;
    }

    .now-playing {
        text-align: center;
    }

    .now-added {
        margin-top: 10px;
    }

    .controls {
        justify-content: center;
    }

    .mute-btn {
        margin-left: 0;
    }

    .sync-row {
        justify-content: center;
    }

    .sync-note {
        margin-left: 0;
    }

    .now-title {
        font-size: clamp(23px, 5vw, 30px);
    }
}

@media (max-width: 700px) {
    .site-head {
        padding: 22px 20px 0;
    }

    .site-note {
        display: none;
    }

    .landing {
        padding: 44px 20px 48px;
        gap: 38px;
    }

    .hero-title {
        font-size: clamp(76px, 22vw, 108px);
    }

    .hero-line {
        margin-top: 22px;
        font-size: 21px;
    }

    .hero-copy {
        font-size: 13.5px;
        line-height: 1.9;
    }

    .hero-deck {
        margin-top: 32px;
    }

    .entry-panel {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .site-foot {
        padding: 18px 20px 26px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .topbar-inner {
        padding: 11px 18px;
    }

    .brand-small .brand-name {
        font-size: 23px;
    }

    .room-name {
        font-size: 17px;
    }

    .code-chip {
        flex-wrap: nowrap;
    }

    .room-main {
        padding: 18px 18px 64px;
    }

    .side-column {
        grid-template-columns: 1fr;
    }

    .seats {
        grid-template-columns: 1fr 1fr;
    }

    .queue-panel,
    .seats-panel,
    .recap-panel,
    .chat-panel,
    .add-panel {
        padding: 20px 18px;
    }

    .player {
        padding: 24px 18px 26px;
    }

    .record-stage {
        max-width: 226px;
    }

    .controls {
        gap: 10px;
        margin-top: 22px;
    }

    .play-btn {
        width: 58px;
        height: 58px;
    }

    .round-btn {
        width: 38px;
        height: 38px;
    }

    .tonearm {
        display: none;
    }

    .q-play {
        grid-template-columns: 28px minmax(0, 1fr) 38px;
        gap: 8px;
    }

    .q-del,
    .q-next {
        opacity: 1;
    }
}

@media (max-width: 430px) {
    .controls {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .mode-btn {
        min-height: 30px;
        padding: 0 8px;
        font-size: 9px;
    }

    .seats,
    .mini-fields {
        grid-template-columns: 1fr;
    }

    .code-chip {
        gap: 6px;
        padding-left: 9px;
    }

    .code-label {
        display: none;
    }

    .record-stage {
        max-width: 210px;
    }

    .now-title {
        font-size: 23px;
    }

    .sync-note {
        display: none;
    }

    .hero-deck {
        gap: 14px;
    }

    .mini-vinyl {
        width: 78px;
        height: 78px;
    }

    .deck-note {
        font-size: 8.5px;
    }
}

@media (max-width: 700px) {
    .lyrics-panel.is-fullscreen {
        inset: 8px;
        padding: 18px 14px;
        border-radius: 14px;
    }

    .lyrics-panel.is-fullscreen .lyrics-lines {
        padding: 10vh 2vw;
    }

    .lyrics-panel.is-fullscreen .lyrics-line {
        font-size: 18px;
    }

    .lyrics-panel.is-fullscreen .lyrics-trans {
        font-size: 11px;
    }
}

@media (hover: none) {
    .q-del,
    .q-next {
        opacity: 1;
    }

    .q-mini {
        width: 26px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .record-grooves,
    .eq i {
        animation: none !important;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.001ms !important;
    }
}
