.rooms-page main {
    gap: 20px;
    padding-bottom: clamp(170px, 16vh, 230px);
}

.room-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.52fr);
    gap: 24px;
    align-items: end;
    max-width: none;
    min-height: 350px;
    overflow: hidden;
    padding: 38px 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, rgba(5, 8, 18, 0.96), rgba(7, 11, 24, 0.6) 54%, rgba(8, 11, 18, 0.26)),
        linear-gradient(180deg, rgba(7, 9, 18, 0.08), rgba(7, 9, 18, 0.96)),
        url("../images/background.webp") center / cover;
    box-shadow: var(--shadow);
}

.room-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 90px, rgba(88, 213, 246, 0.06) 91px, transparent 92px),
        linear-gradient(180deg, rgba(123, 110, 246, 0.1), transparent 44%);
    pointer-events: none;
}

.room-hero-copy,
.room-hero-scene {
    position: relative;
    z-index: 1;
}

.room-hero h1 {
    max-width: 780px;
    margin-bottom: 16px;
    font-size: clamp(2.75rem, 5.4vw, 5rem);
    line-height: 1.02;
}

.room-hero h1 span {
    display: block;
    color: #92baff;
}

.room-hero p {
    max-width: 600px;
}

.room-hero-meta,
.listener-stack,
.room-filter-row,
.room-title-line,
.room-card-meta {
    display: flex;
    align-items: center;
}

.room-hero-meta {
    gap: 14px;
    margin-top: 26px;
    color: var(--muted);
}

.room-hero-meta strong {
    color: #9ed3ff;
}

.listener-stack {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.listener-stack span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-left: -9px;
    border: 2px solid rgba(8, 12, 22, 0.9);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(88, 213, 246, 0.84), rgba(123, 110, 246, 0.72));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.listener-stack span:last-child {
    margin-left: 0;
}

.small-stack span {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
}

.room-hero-scene {
    min-height: 220px;
    border: 1px solid rgba(167, 184, 218, 0.18);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.12), rgba(4, 6, 14, 0.76)),
        url("../images/background.webp") center / cover;
    box-shadow: inset 0 0 80px rgba(88, 213, 246, 0.12);
}

.room-window-light {
    position: absolute;
    bottom: 22px;
    width: 52px;
    height: 88px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.1);
}

.room-window-light:nth-child(1) {
    left: 28px;
}

.room-window-light:nth-child(2) {
    left: 98px;
    height: 122px;
}

.room-window-light:nth-child(3) {
    left: 168px;
    height: 104px;
}

.room-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: stretch;
    padding: 14px;
    background:
        linear-gradient(135deg, rgba(var(--neon-primary-rgb), 0.12), transparent 38%),
        rgba(8, 12, 24, 0.76);
}

.room-filter-row {
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.room-toolbar .chip {
    min-height: 40px;
    padding: 0 14px;
    border-color: rgba(var(--neon-primary-rgb), 0.22);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(238, 244, 255, 0.78);
    font-weight: 760;
}

.room-toolbar .chip:hover,
.room-toolbar .chip.is-selected {
    border-color: rgba(var(--neon-primary-rgb), 0.58);
    background: rgba(var(--neon-primary-rgb), 0.16);
    color: var(--text);
}

.room-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

.room-sort-form label {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 760;
    white-space: nowrap;
}

.room-sort-form select {
    width: 184px;
    min-height: 38px;
    border-radius: var(--radius);
    padding: 0 12px;
}

.room-sort-form .button {
    min-height: 38px;
    padding: 0 14px;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.room-card {
    display: grid;
    grid-template-rows: 154px 1fr;
    overflow: hidden;
    border-color: rgba(167, 184, 218, 0.14);
    background:
        linear-gradient(180deg, rgba(14, 21, 40, 0.88), rgba(8, 12, 24, 0.92)),
        rgba(11, 17, 32, 0.82);
}

.room-card:hover {
    border-color: rgba(88, 213, 246, 0.34);
    transform: translateY(-2px);
    transition: border-color 180ms ease, transform 180ms ease;
}

.room-image {
    position: relative;
    min-height: 154px;
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.04), rgba(4, 6, 14, 0.82)),
        var(--room-custom-image, none) center / cover,
        url("../images/background.webp") center / cover;
}

.room-image-sleep-room {
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.02), rgba(4, 6, 14, 0.84)),
        var(--room-custom-image, none) center / cover,
        url("../images/rooms/sleep-room.png") center / cover;
}

.room-image-calm-room {
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.02), rgba(4, 6, 14, 0.84)),
        var(--room-custom-image, none) center / cover,
        url("../images/rooms/calm-room.png") center / cover;
}

.room-image-focus-room {
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.02), rgba(4, 6, 14, 0.84)),
        var(--room-custom-image, none) center / cover,
        url("../images/rooms/focus-room.png") center / cover;
}

.room-image-study-room {
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.02), rgba(4, 6, 14, 0.84)),
        var(--room-custom-image, none) center / cover,
        url("../images/rooms/study-room.png") center / cover;
}

.room-image-rainy-night-room {
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.02), rgba(4, 6, 14, 0.84)),
        var(--room-custom-image, none) center / cover,
        url("../images/background.webp") center / cover;
}

.room-card.is-closed,
.nf-room-mini-card.is-closed {
    opacity: 0.78;
}

.room-card.is-closed .room-image,
.nf-room-mini-card.is-closed .nf-room-mini-image {
    filter: grayscale(0.45) brightness(0.74);
}

.room-image > span:not(.live-room-badge) {
    position: absolute;
    bottom: 22px;
    width: 42px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.08);
    opacity: 0.42;
}

.room-image > span:not(.live-room-badge):nth-of-type(2) {
    left: 28px;
}

.room-image > span:not(.live-room-badge):nth-of-type(3) {
    left: 86px;
    height: 92px;
}

.room-image > span:not(.live-room-badge):nth-of-type(4) {
    left: 144px;
    height: 76px;
}

.live-room-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(84, 215, 157, 0.34);
    border-radius: var(--radius);
    background: rgba(6, 12, 22, 0.72);
    color: #c9f6df;
    font-size: 0.82rem;
    font-weight: 760;
}

.live-room-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 16px rgba(84, 215, 157, 0.8);
}

.room-card-body {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 13px;
    padding: 17px;
}

.room-title-line {
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 7px;
}

.room-title-line h2 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.18;
}

.room-card-body > div:first-child > p:not(.eyebrow) {
    display: -webkit-box;
    min-height: 4.8em;
    overflow: hidden;
    color: rgba(210, 220, 238, 0.78);
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.room-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(88, 213, 246, 0.28);
    border-radius: var(--radius);
    background: rgba(88, 213, 246, 0.08);
    color: #a8dcff;
    font-weight: 800;
}

.room-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.2;
}

.room-card-meta span {
    display: grid;
    align-items: center;
    min-height: 34px;
    padding: 7px 8px;
    border: 1px solid rgba(167, 184, 218, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.room-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 2px;
}

.room-card-footer form,
.room-card-footer .button {
    width: 100%;
}

.room-card-footer .button {
    justify-content: center;
    min-height: 42px;
}

.room-chat-panel {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.room-experience-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    align-items: stretch;
}

.room-stage,
.room-chat-rail {
    display: grid;
    min-width: 0;
}

.room-stage {
    gap: 18px;
}

.room-chat-rail {
    grid-template-rows: auto minmax(260px, 1fr) auto auto;
    gap: 14px;
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.room-scene-frame {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(167, 184, 218, 0.16);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.06), rgba(4, 6, 14, 0.8)),
        url("../images/background.webp") center / cover;
}

.room-scene-sleep-room {
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.06), rgba(4, 6, 14, 0.8)),
        url("../images/rooms/sleep-room.png") center / cover;
}

.room-scene-calm-room {
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.06), rgba(4, 6, 14, 0.8)),
        url("../images/rooms/calm-room.png") center / cover;
}

.room-scene-focus-room {
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.06), rgba(4, 6, 14, 0.8)),
        url("../images/rooms/focus-room.png") center / cover;
}

.room-scene-study-room {
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.06), rgba(4, 6, 14, 0.8)),
        url("../images/rooms/study-room.png") center / cover;
}

.room-scene-rainy-night-room {
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.06), rgba(4, 6, 14, 0.8)),
        url("../images/background.webp") center / cover;
}

.room-scene-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(88, 213, 246, 0.14), transparent 42%, rgba(231, 169, 95, 0.12)),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 60px);
    mix-blend-mode: screen;
    pointer-events: none;
}

.room-scene-overlay {
    position: absolute;
    inset: auto 18px 18px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: end;
}

.room-now-playing {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    width: min(100%, 430px);
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 12, 23, 0.82);
    backdrop-filter: blur(18px);
}

.room-now-playing h3,
.room-now-playing p {
    margin-bottom: 0;
}

.pinned-note {
    width: min(100%, 320px);
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 12, 23, 0.78);
    backdrop-filter: blur(18px);
}

.pinned-note p:last-child {
    margin-bottom: 0;
}

.room-chat-log {
    display: grid;
    align-content: start;
    gap: 10px;
    overflow: auto;
    padding-right: 2px;
}

.room-message {
    display: grid;
    gap: 5px;
    padding: 12px 0 12px 14px;
    border-left: 2px solid rgba(88, 213, 246, 0.24);
}

.room-message strong,
.room-message-author {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 760;
}

.room-message-author {
    width: fit-content;
}

.room-message-author:hover {
    color: var(--cyan);
}

.room-message span {
    color: var(--muted);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.room-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.room-chat-form input {
    background: rgba(255, 255, 255, 0.045);
}

.room-chat-feedback {
    min-height: 22px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.room-vote-panel {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}

.room-vote-heading {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: start;
}

.room-vote-heading h3,
.room-vote-panel p {
    margin-bottom: 0;
}

.room-cycle-rail {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.room-cycle-rail span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--amber));
    transition: width 0.3s ease;
}

.room-vote-list {
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow: auto;
    padding-right: 2px;
}

.room-vote-list form {
    margin: 0;
}

.room-vote-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 62px;
    padding: 10px 12px;
    border: 1px solid rgba(167, 184, 218, 0.14);
    border-radius: 8px;
    background: rgba(8, 12, 23, 0.44);
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.room-vote-button:hover,
.room-vote-button.is-selected {
    border-color: rgba(88, 213, 246, 0.44);
    background: rgba(88, 213, 246, 0.1);
}

.room-vote-button strong,
.room-vote-button small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-vote-button small,
.room-vote-button > span:last-child {
    color: var(--muted);
}

.room-vote-button > span:last-child {
    min-width: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    text-align: center;
    font-weight: 760;
}

.room-picture-in-picture {
    position: fixed;
    right: max(18px, env(safe-area-inset-right, 0px));
    bottom: var(--room-pip-bottom-offset, calc(var(--player-height, 178px) + 34px + env(safe-area-inset-bottom, 0px)));
    z-index: 29;
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr);
    grid-template-areas:
        "signal copy"
        "signal actions";
    gap: 10px 13px;
    align-items: center;
    width: min(440px, calc(100vw - 36px));
    max-height: min(var(--room-pip-max-height, 220px), calc(100vh - 24px));
    min-height: 86px;
    padding: 12px;
    border: 1px solid var(--neon-line);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(6, 11, 28, 0.94), rgba(4, 7, 19, 0.98)),
        radial-gradient(circle at 12% 0%, var(--neon-soft), transparent 38%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 62px rgba(0, 0, 0, 0.48),
        0 0 32px rgb(var(--neon-primary-rgb) / 0.18);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.room-picture-in-picture[hidden] {
    display: none;
}

.room-pip-signal {
    grid-area: signal;
    align-self: stretch;
    width: 4px;
    min-height: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--neon-primary), var(--neon-secondary));
    box-shadow: 0 0 18px rgb(var(--neon-primary-rgb) / 0.34);
}

.room-pip-copy {
    grid-area: copy;
    min-width: 0;
}

.room-pip-copy .eyebrow,
.room-pip-copy h2,
.room-pip-copy p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-pip-copy .eyebrow {
    margin-bottom: 5px;
    color: rgba(233, 238, 255, 0.66);
}

.room-pip-copy h2 {
    margin-bottom: 4px;
    font-size: 1.02rem;
    line-height: 1.2;
}

.room-pip-copy p {
    margin-bottom: 6px;
    color: rgba(233, 238, 255, 0.72);
    font-size: 0.88rem;
}

.room-pip-copy span {
    display: inline-flex;
    max-width: 100%;
    color: var(--neon-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
}

.room-pip-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
}

.room-pip-actions .button {
    min-height: 34px;
    padding-inline: 12px;
    white-space: nowrap;
}

.nf-room-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, clamp(320px, 24vw, 380px));
    gap: clamp(12px, 1.2vw, 18px);
    min-height: min(760px, calc(100vh - 138px));
}

.nf-room-stage,
.nf-room-chat,
.nf-room-mini-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--neon-line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 18% 0%, var(--neon-soft), transparent 34%),
        linear-gradient(180deg, rgba(8, 12, 25, 0.7), rgba(3, 6, 14, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 24px 70px rgba(0, 0, 0, 0.34),
        0 0 42px rgb(var(--neon-primary-rgb) / 0.12);
}

.nf-room-stage {
    display: grid;
    grid-template-rows: auto minmax(150px, 1fr) auto;
    min-width: 0;
    min-height: clamp(560px, 68vh, 760px);
    padding: clamp(18px, 2vw, 26px);
    background:
        linear-gradient(180deg, rgba(4, 7, 17, 0.04), rgba(4, 7, 17, 0.82)),
        var(--room-custom-image, none) center / cover,
        url("../images/background.webp") center / cover;
}

.nf-room-stage.room-scene-sleep-room {
    background:
        linear-gradient(180deg, rgba(4, 7, 17, 0.04), rgba(4, 7, 17, 0.82)),
        var(--room-custom-image, none) center / cover,
        url("../images/rooms/sleep-room.png") center / cover;
}

.nf-room-stage.room-scene-calm-room {
    background:
        linear-gradient(180deg, rgba(4, 7, 17, 0.04), rgba(4, 7, 17, 0.82)),
        var(--room-custom-image, none) center / cover,
        url("../images/rooms/calm-room.png") center / cover;
}

.nf-room-stage.room-scene-focus-room {
    background:
        linear-gradient(180deg, rgba(4, 7, 17, 0.04), rgba(4, 7, 17, 0.82)),
        var(--room-custom-image, none) center / cover,
        url("../images/rooms/focus-room.png") center / cover;
}

.nf-room-stage.room-scene-study-room {
    background:
        linear-gradient(180deg, rgba(4, 7, 17, 0.04), rgba(4, 7, 17, 0.82)),
        var(--room-custom-image, none) center / cover,
        url("../images/rooms/study-room.png") center / cover;
}

.nf-room-stage-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 5, 14, 0.74), rgba(3, 7, 17, 0.22) 58%, rgba(2, 5, 14, 0.7)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(2, 5, 14, 0.3));
    pointer-events: none;
}

.nf-room-stage-top,
.nf-room-stage-bottom,
.nf-room-visualizer,
.nf-room-start-card {
    position: relative;
    z-index: 1;
}

.nf-room-stage-top,
.nf-room-stage-bottom,
.nf-room-panel-heading,
.nf-room-live-stack,
.nf-room-now-playing,
.nf-room-queue-item,
.nf-room-mini-card {
    display: flex;
    align-items: center;
}

.nf-room-stage-top {
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.nf-room-stage-top h1 {
    margin-bottom: 10px;
    max-width: min(760px, 100%);
    font-size: clamp(2.35rem, 4.2vw, 4.7rem);
    line-height: 0.98;
    overflow-wrap: normal;
    word-break: normal;
}

.nf-room-stage-top p:not(.eyebrow) {
    max-width: 620px;
    margin-bottom: 0;
    color: rgba(233, 238, 255, 0.78);
}

.nf-room-live-stack {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.nf-room-visualizer {
    display: flex;
    align-items: end;
    gap: clamp(3px, 0.55vw, 8px);
    height: clamp(130px, 24vh, 250px);
    min-height: clamp(130px, 24vh, 250px);
    align-self: end;
    padding: 0 clamp(4px, 2vw, 24px) 8px;
}

.nf-room-visualizer span {
    flex: 1 1 0;
    max-width: 14px;
    height: var(--bar-level, 22%);
    min-height: 14px;
    transform-origin: bottom;
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, var(--neon-primary), var(--neon-secondary));
    box-shadow: 0 0 18px rgb(var(--neon-primary-rgb) / 0.28);
    opacity: 0.82;
    transition: height 90ms linear, opacity 160ms ease;
}

.nf-room-start-card,
.nf-room-now-playing,
.nf-room-queue,
.nf-room-chat {
    border: 1px solid rgba(167, 184, 218, 0.16);
    background: rgba(5, 9, 20, 0.78);
    backdrop-filter: blur(18px);
}

.nf-room-start-card {
    align-self: center;
    justify-self: center;
    width: min(360px, 100%);
    padding: 18px;
    border-radius: var(--radius);
    text-align: center;
}

.nf-room-start-card h2 {
    margin-bottom: 14px;
    font-size: 1.3rem;
}

.nf-room-stage-bottom {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(250px, 360px);
    gap: 14px;
    align-items: end;
}

.nf-room-now-playing {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    min-width: 0;
    min-height: 118px;
    padding: 16px;
    border-radius: var(--radius);
}

.nf-room-now-playing h2 {
    margin-bottom: 4px;
    font-size: clamp(1.35rem, 2vw, 2rem);
    overflow-wrap: normal;
    word-break: normal;
}

.nf-room-now-playing p {
    margin-bottom: 0;
    overflow-wrap: normal;
    word-break: normal;
}

.nf-room-status {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgb(var(--neon-primary-rgb) / 0.28);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 760;
}

.nf-room-queue {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    min-width: 0;
    max-height: 260px;
    overflow: hidden;
    padding: 14px;
    border-radius: var(--radius);
}

.nf-room-panel-heading {
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.nf-room-panel-heading h2 {
    margin-bottom: 0;
    font-size: 1.12rem;
}

.nf-room-queue-list {
    display: grid;
    min-height: 0;
    gap: 7px;
    overflow: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 184, 218, 0.28) transparent;
}

.nf-room-queue-item {
    gap: 9px;
    min-width: 0;
    min-height: 34px;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
}

.nf-room-queue-item.is-current {
    border-color: rgb(var(--neon-primary-rgb) / 0.25);
    background: rgb(var(--neon-primary-rgb) / 0.09);
    color: var(--text);
}

.nf-room-queue-item span {
    width: 22px;
    color: var(--neon-primary);
    font-weight: 800;
}

.nf-room-queue-item strong {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nf-room-queue-item small {
    flex: 0 0 auto;
}

.nf-room-chat {
    display: grid;
    grid-template-rows: auto minmax(220px, 1fr) auto auto;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border-radius: var(--radius);
}

.nf-room-chat .room-chat-log {
    min-height: 0;
}

.nf-room-other-section {
    display: grid;
    gap: 16px;
}

.nf-room-other-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.nf-room-mini-card {
    gap: 12px;
    min-width: 0;
    padding: 12px;
}

.nf-room-mini-image {
    flex: 0 0 84px;
    width: 84px;
    aspect-ratio: 1;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.06), rgba(4, 6, 14, 0.72)),
        var(--room-custom-image, none) center / cover,
        url("../images/background.webp") center / cover;
}

.nf-room-chat.is-paused .room-chat-log,
.nf-room-chat.is-paused .room-chat-form {
    opacity: 0.72;
}

.nf-room-mini-card > div:nth-child(2) {
    min-width: 0;
    flex: 1 1 auto;
}

.nf-room-mini-card h3,
.nf-room-mini-card p {
    margin-bottom: 3px;
}

.nf-room-mini-card h3,
.nf-room-mini-card p:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1500px) {
    .nf-room-active {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .nf-room-stage {
        min-height: clamp(560px, 72vh, 720px);
    }

    .nf-room-stage-bottom {
        grid-template-columns: minmax(320px, 1fr) minmax(250px, 340px);
    }

    .nf-room-chat {
        grid-template-rows: auto minmax(220px, 38vh) auto auto;
    }

    .nf-room-other-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .nf-room-stage-bottom {
        grid-template-columns: 1fr;
    }

    .nf-room-now-playing {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .nf-room-status {
        width: fit-content;
        margin-left: 0;
        grid-column: 2;
    }

    .nf-room-other-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.presence-row {
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.presence-row span:first-child {
    color: var(--text);
    font-weight: 720;
}

@media (min-width: 1366px) {
    .room-grid,
    .nf-room-other-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .nf-room-active {
        grid-template-columns: minmax(0, 1fr) clamp(340px, 22vw, 460px);
    }

    .nf-room-stage {
        min-height: clamp(620px, 45vw, 860px);
    }
}

@media (min-width: 2200px) {
    .room-hero {
        grid-template-columns: minmax(0, 1fr) clamp(380px, 24vw, 620px);
        min-height: 460px;
    }

    .room-grid,
    .nf-room-other-grid {
        grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    }
}

@media (max-width: 700px) {
    .room-picture-in-picture {
        right: max(10px, env(safe-area-inset-right, 0px));
        left: max(10px, env(safe-area-inset-left, 0px));
        bottom: var(--room-pip-bottom-offset, calc(var(--player-height, 86px) + 14px + env(safe-area-inset-bottom, 0px)));
        grid-template-columns: 3px minmax(0, 1fr);
        width: auto;
        min-height: 74px;
        padding: 10px;
        border-radius: 13px;
    }

    .room-pip-signal {
        width: 3px;
        min-height: 48px;
    }

    .room-pip-actions {
        justify-content: flex-start;
    }

    .room-pip-actions .button {
        min-height: 31px;
        padding-inline: 9px;
        font-size: 0.76rem;
    }

    .room-pip-copy p {
        display: none;
    }

    .room-toolbar,
    .room-sort-form,
    .room-filter-row {
        align-items: stretch;
        flex-direction: column;
    }

    .room-sort-form {
        padding-top: 12px;
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .room-sort-form select,
    .room-sort-form .button {
        width: 100%;
    }
}

