/* ===== 2026 NN-inspired Client Layout ===== */
.lobby-page--nn,
.room-page--nn {
    background:
        radial-gradient(circle at top left, rgba(242, 163, 101, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(108, 92, 231, 0.14), transparent 22%),
        linear-gradient(180deg, #080b13 0%, #0a0f18 38%, #090d16 100%);
}

.masthead--nn {
    padding-top: 12px;
}

.masthead--nn .masthead__inner {
    min-height: 64px;
    border-radius: 18px;
    background: rgba(9, 13, 21, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.masthead--nn .brand__mark {
    background: linear-gradient(135deg, #f2a365, #6c5ce7 78%);
    box-shadow: 0 8px 22px rgba(242, 163, 101, 0.28);
}

.masthead--nn .masthead__nav a {
    min-height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.nn-lobby,
.nn-room {
    display: grid;
    gap: 18px;
    align-items: start;
    padding: 22px 0 34px;
}

.nn-lobby {
    grid-template-columns: 290px minmax(0, 1fr) 320px;
}

.nn-room {
    grid-template-columns: 290px minmax(0, 1fr) 320px;
}

.nn-lobby__rail,
.nn-room__rail,
.nn-lobby__main,
.nn-room__main,
.nn-lobby__side,
.nn-room__side {
    display: grid;
    gap: 16px;
    align-content: start;
}

.nn-lobby__rail,
.nn-room__rail {
    position: sticky;
    top: 92px;
}

.nn-lobby__rail,
.nn-room__rail,
.nn-lobby__side,
.nn-room__side {
    padding: 16px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
        rgba(8, 12, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

.nn-lobby__main,
.nn-room__main {
    min-width: 0;
}

.nn-lobby__rail-header,
.nn-room__rail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nn-lobby__rail-copy h1,
.nn-board-hero__content h2,
.nn-room__channel-card h1 {
    letter-spacing: -0.03em;
}

.nn-lobby__rail-copy h1 {
    margin: 10px 0 8px;
    font-size: clamp(28px, 2.5vw, 36px);
    line-height: 1.08;
}

.nn-lobby__rail-copy p,
.nn-board-hero__content p,
.nn-sidecard p,
.nn-room__channel-card p,
.nn-room__stage p {
    color: var(--text-secondary);
    line-height: 1.68;
}

.nn-lobby__rail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.nn-channel-list {
    display: grid;
    gap: 8px;
}

.nn-channel-list .game-card {
    position: relative;
    display: grid;
    grid-template-columns: 44px 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 96px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.nn-channel-list .game-card::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 50%;
    width: 4px;
    height: 44px;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, #f2a365, #6c5ce7);
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
    opacity: 0;
    transition: all var(--transition);
}

.nn-channel-list .game-card:hover,
.nn-channel-list .game-card--active {
    transform: none;
    border-color: rgba(242, 163, 101, 0.25);
    background: rgba(242, 163, 101, 0.07);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.nn-channel-list .game-card:hover::before,
.nn-channel-list .game-card--active::before {
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
}

.game-card__serial {
    display: grid;
    place-items: center;
    width: 30px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
}

.nn-channel-list .game-card__cover {
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

.nn-channel-list .game-card__meta {
    min-width: 0;
}

.nn-channel-list .game-card__meta h3 {
    margin: 2px 0 4px;
    font-size: 15px;
    font-weight: 700;
}

.nn-channel-list .game-card__meta p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

.nn-channel-list .game-card__footer {
    grid-column: 2 / -1;
    margin-top: 4px;
    padding-top: 8px;
    font-size: 12px;
}

.nn-board-hero,
.nn-filter-panel,
.nn-room-stream,
.nn-room__stage,
.nn-sidecard,
.nn-room__channel-card,
.room-panel {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        rgba(8, 12, 20, 0.92);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
}

.nn-board-hero::after,
.nn-room__stage::after,
.nn-room__channel-card::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 163, 101, 0.18), transparent 68%);
    pointer-events: none;
}

.nn-board-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
}

.nn-board-hero__content h2 {
    margin: 10px 0 10px;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.08;
}

.nn-board-hero__stats {
    display: grid;
    gap: 12px;
}

.hero-stat {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
}

.hero-stat__label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.hero-stat strong {
    font-size: 34px;
    line-height: 1;
}

.nn-filter-panel .filter-row {
    margin-top: 14px;
}

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

.room-grid--stream {
    gap: 6px;
}

.nn-roomline {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    transition: all var(--transition);
}

.nn-roomline:hover {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
}

.nn-roomline__head,
.nn-roomline__sub {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nn-roomline__serial {
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 12px;
    line-height: 1;
}

.nn-roomline__name {
    flex: 1;
    min-width: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nn-roomline:hover .nn-roomline__name {
    color: var(--text);
}

.nn-roomline__count {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.nn-roomline__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding-left: 28px;
    color: var(--muted);
    font-size: 12px;
}

.nn-roomline__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nn-roomline__action {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 12px;
}

.nn-roomline__join {
    min-height: 28px;
    padding: 0 12px;
    border-radius: 8px;
}

.nn-roomline__tags {
    padding-left: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nn-sidecard {
    gap: 14px;
}

.nn-summary-list .summary-item {
    align-items: flex-start;
    flex-direction: column;
}

.nn-summary-list .summary-item strong {
    margin-bottom: 4px;
}

.nn-sidecard--gifts .gift-grid--side {
    gap: 10px;
}

.nn-sidecard--gifts .gift-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    text-align: left;
}

.nn-sidecard--gifts .gift-card__icon {
    width: 42px;
    height: 42px;
}

.nn-sidecard--gifts .gift-card__price {
    white-space: nowrap;
}

.nn-room__channel-card h1 {
    margin: 8px 0 10px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
}

.nn-room__channel-nav {
    display: grid;
    gap: 8px;
}

.nn-room__channel-item {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-align: left;
    cursor: default;
    transition: all var(--transition);
}

.nn-room__channel-item strong {
    font-size: 14px;
}

.nn-room__channel-item span {
    color: var(--text-secondary);
    font-size: 12px;
}

.nn-room__channel-item.is-active {
    border-color: rgba(242, 163, 101, 0.28);
    background: rgba(242, 163, 101, 0.08);
    box-shadow: inset 0 0 0 1px rgba(242, 163, 101, 0.1);
}

.nn-room__stage {
    gap: 18px;
}

.voice-stage--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 6px;
}

.voice-stage--wide .voice-stage__block {
    min-height: 110px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.voice-stage__label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.mic-seats--stage {
    grid-template-columns: repeat(4, minmax(112px, 1fr));
    gap: 16px;
}

.mic-seats--stage .mic-seat {
    padding: 12px 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.mic-seats--stage .mic-seat__avatar {
    width: 74px;
    height: 74px;
}

.room-voice-note {
    margin-top: 2px;
    border-style: solid;
    border-color: rgba(242, 163, 101, 0.14);
    background: rgba(242, 163, 101, 0.05);
    color: var(--text-secondary);
}

.room-panel--devices .device-list,
.room-panel--members .member-list,
.room-panel--gifts .gift-grid {
    margin-top: 4px;
}

.room-panel--devices .device-item,
.room-panel--members .member-card {
    border-radius: 16px;
}

.room-panel--gifts .gift-grid--side .gift-card {
    grid-template-columns: 42px minmax(0, 1fr);
}

@media (max-width: 1220px) {
    .nn-lobby,
    .nn-room {
        grid-template-columns: 1fr;
    }

    .nn-lobby__rail,
    .nn-room__rail {
        position: static;
    }

    .nn-lobby__side,
    .nn-room__side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .nn-board-hero {
        grid-template-columns: 1fr;
    }

    .voice-stage--wide {
        grid-template-columns: 1fr;
    }

    .mic-seats--stage {
        grid-template-columns: repeat(2, minmax(112px, 1fr));
    }
}

@media (max-width: 720px) {
    .nn-lobby__side,
    .nn-room__side {
        grid-template-columns: 1fr;
    }

    .nn-channel-list .game-card {
        grid-template-columns: 36px 44px minmax(0, 1fr);
    }

    .nn-sidecard--gifts .gift-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .nn-lobby,
    .nn-room {
        gap: 14px;
    }

    .nn-lobby__rail,
    .nn-room__rail,
    .nn-lobby__side,
    .nn-room__side,
    .nn-board-hero,
    .nn-filter-panel,
    .nn-room-stream,
    .nn-room__stage,
    .nn-sidecard,
    .nn-room__channel-card,
    .room-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .mic-seats--stage {
        grid-template-columns: repeat(2, minmax(96px, 1fr));
    }
}

/* ===== 2026 NN App Rail Overrides ===== */
.nn-apprail {
    position: sticky;
    top: 92px;
    display: grid;
    align-content: space-between;
    justify-items: center;
    gap: 16px;
    width: 72px;
    min-height: 640px;
    padding: 16px 10px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        rgba(8, 12, 20, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

.nn-apprail__brand {
    display: grid;
    justify-items: center;
}

.nn-apprail__brand .brand__mark {
    width: 42px;
    height: 42px;
}

.nn-apprail__nav {
    display: grid;
    gap: 10px;
    width: 100%;
}

.nn-apprail__item {
    width: 100%;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
}

.nn-apprail__item:hover {
    transform: translateY(-1px);
    color: var(--text);
    border-color: rgba(242, 163, 101, 0.26);
    background: rgba(242, 163, 101, 0.08);
}

.nn-apprail__item.is-active {
    color: #fff;
    border-color: rgba(242, 163, 101, 0.4);
    background: linear-gradient(180deg, rgba(242, 163, 101, 0.2), rgba(108, 92, 231, 0.12));
    box-shadow: 0 0 0 1px rgba(242, 163, 101, 0.18), 0 12px 26px rgba(0, 0, 0, 0.22);
}

.nn-apprail__dock {
    display: grid;
    justify-items: center;
}

.nn-apprail__pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ed573;
    box-shadow: 0 0 0 6px rgba(46, 213, 115, 0.12), 0 0 16px rgba(46, 213, 115, 0.4);
}

.nn-lobby {
    grid-template-columns: 72px 290px minmax(0, 1fr) 320px;
}

.nn-room {
    grid-template-columns: 72px 290px minmax(0, 1fr) 320px;
}

.admin-workspace {
    grid-template-columns: 72px 280px minmax(0, 1fr);
}

.nn-channel-list__meta {
    display: grid;
    gap: 4px;
    margin-top: -4px;
    color: var(--muted);
    font-size: 12px;
}

.nn-channel-list__meta strong {
    color: var(--text);
    font-size: 13px;
}

.nn-channel-list .game-card {
    grid-template-columns: 44px 48px minmax(0, 1fr);
}

.game-card__serial {
    display: grid;
    place-items: center;
    width: 30px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
}

.nn-room__channel-item,
.admin-nav__item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 4px 10px;
}

.nn-room__channel-item em,
.admin-nav__item em {
    grid-row: span 2;
    align-self: center;
    display: grid;
    place-items: center;
    width: 30px;
    height: 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 1220px) {
    .nn-lobby,
    .nn-room {
        grid-template-columns: 72px 1fr;
    }

    .nn-lobby__main,
    .nn-room__main,
    .nn-lobby__side,
    .nn-room__side {
        grid-column: 2;
    }

    .admin-workspace {
        grid-template-columns: 72px 1fr;
    }

    .admin-sidebar,
    .admin-stage {
        grid-column: 2;
    }
}

@media (max-width: 720px) {
    .nn-lobby,
    .nn-room,
    .admin-workspace {
        grid-template-columns: 1fr;
    }

    .nn-apprail,
    .nn-apprail--admin {
        position: static;
        width: 100%;
        min-height: 0;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        justify-items: stretch;
    }

    .nn-apprail__nav {
        grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    }

    .nn-lobby__main,
    .nn-room__main,
    .nn-lobby__side,
    .nn-room__side,
    .admin-sidebar,
    .admin-stage {
        grid-column: auto;
    }
}

/* ===== 2026 NN Match Layout ===== */
body.lobby-page--nn,
body.room-page--nn {
    background:
        radial-gradient(circle at top left, rgba(103, 64, 152, 0.5), transparent 34%),
        linear-gradient(180deg, #2d252e 0%, #181818 18%, #141414 100%);
    color: #f3f3f3;
}

body.lobby-page--nn::before,
body.room-page--nn::before {
    display: none;
}

body.lobby-page--nn::after,
body.room-page--nn::after {
    display: none;
}

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

.nn-discover,
.nn-roompage {
    min-height: 100vh;
    display: grid;
    gap: 24px;
    padding: 16px 18px;
}

.nn-discover {
    grid-template-columns: 58px 258px minmax(0, 1fr);
}

.nn-roompage {
    grid-template-columns: 58px 286px minmax(0, 1fr) 322px;
}

.nn-discover__rail,
.nn-roompage__rail {
    display: grid;
    align-content: space-between;
    justify-items: center;
    gap: 18px;
}

.nn-discover__brand {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.nn-discover__brand-mark {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #5d51f7;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.nn-discover__brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
    flex: none;
}

.nn-discover__brand-copy {
    display: none;
}

.nn-roompage__rail .nn-discover__brand-copy {
    display: grid;
    gap: 2px;
}

.nn-roompage__rail .nn-discover__brand {
    width: 100%;
    align-items: flex-start;
}

.nn-roompage__rail .nn-discover__brand-copy strong {
    font-size: 13px;
}

.nn-roompage__rail .nn-discover__brand-copy small {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.56);
}

.nn-discover__rail-games,
.nn-roompage__rail-icons {
    display: grid;
    gap: 12px;
    width: 100%;
}

.nn-rail-game,
.nn-roompage__rail-icon {
    position: relative;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.nn-rail-game:hover,
.nn-roompage__rail-icon:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.13);
}

.nn-rail-game.is-active,
.nn-roompage__rail-icon.is-active {
    box-shadow: inset 0 0 0 1px rgba(116, 91, 255, 0.5);
    background: rgba(116, 91, 255, 0.18);
}

.nn-rail-game.is-active::before,
.nn-roompage__rail-icon.is-active::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 999px;
    background: #6f54ff;
}

.nn-rail-game__cover,
.nn-roompage__rail-icon {
    display: grid;
    place-items: center;
    overflow: hidden;
}

.nn-rail-game__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nn-rail-game__cover span,
.nn-roompage__rail-icon::after {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.nn-roompage__rail-icon:nth-child(1)::after { content: "厅"; }
.nn-roompage__rail-icon:nth-child(2)::after { content: "房"; }
.nn-roompage__rail-icon:nth-child(3)::after { content: "礼"; }

.nn-rail-game__badge {
    position: absolute;
    right: -2px;
    top: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ff4a4a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.nn-discover__rail-foot,
.nn-roompage__rail-foot {
    margin-top: auto;
}

.nn-discover__rail-user {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #ff8a00;
    font-size: 13px;
    font-weight: 800;
}

.nn-discover__sidebar,
.nn-roompage__sidebar,
.nn-roompage__members {
    min-height: calc(100vh - 32px);
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.nn-discover__sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
    padding-top: 38px;
}

.nn-discover__sidebar-head h1 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.nn-discover__create {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: none;
    border-radius: 2px;
    background: #efefef;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.nn-discover__create-icon {
    font-size: 18px;
    font-weight: 700;
}

.nn-discover__sidebar-menu {
    display: grid;
    gap: 10px;
}

.nn-discover__menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: none;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.nn-discover__menu-item.is-active {
    background: rgba(255, 255, 255, 0.1);
}

.nn-discover__menu-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid currentColor;
}

.nn-discover__sidebar-meta {
    display: grid;
    gap: 10px;
}

.nn-discover__sidebar-meta div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
}

.nn-discover__sidebar-meta strong {
    color: #fff;
    font-size: 14px;
}

.nn-discover__sidebar-gifts {
    display: grid;
    gap: 10px;
}

.nn-discover__gift {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.nn-discover__gift-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nn-discover__gift-meta {
    display: grid;
    gap: 2px;
}

.nn-discover__gift-meta strong {
    font-size: 13px;
    color: #fff;
}

.nn-discover__gift-meta span {
    color: rgba(255, 255, 255, 0.54);
    font-size: 12px;
}

.nn-discover__main {
    display: grid;
    align-content: start;
    gap: 16px;
    padding-top: 2px;
}

.nn-discover__toolbar,
.nn-roompage__head {
    display: grid;
    align-items: center;
    gap: 14px;
}

.nn-discover__toolbar {
    grid-template-columns: auto 236px auto;
}

.nn-discover__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}

.nn-discover__back::before {
    content: "‹";
    font-size: 20px;
    line-height: 1;
}

.nn-discover__toolbar-search input,
.nn-roompage__head-search input,
.nn-discover__searchbar input,
.nn-roompage__members-search input,
.nn-roompage__join-field input {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-radius: 2px;
}

.nn-discover__toolbar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.nn-toolbar-icon {
    position: relative;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nn-toolbar-icon::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 8px;
    border: 2px solid #6f54ff;
}

.nn-toolbar-icon--menu::before {
    inset: 4px 5px;
    border: none;
    border-top: 2px solid #e2e2e2;
    border-bottom: 2px solid #e2e2e2;
}

.nn-toolbar-icon--menu::after {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    top: 13px;
    border-top: 2px solid #e2e2e2;
}

.nn-discover__searchbar {
    position: relative;
    width: min(468px, 100%);
}

.nn-discover__searchbar button {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nn-discover__searchbar button::before,
.nn-roompage__members-search::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
}

.nn-discover__searchbar button::before {
    top: 4px;
    left: 4px;
}

.nn-discover__searchbar button::after,
.nn-roompage__members-search::before {
    content: "";
    position: absolute;
    width: 8px;
    border-top: 2px solid rgba(255, 255, 255, 0.72);
    transform: rotate(45deg);
}

.nn-discover__searchbar button::after {
    right: 2px;
    bottom: 4px;
}

.nn-discover__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.nn-community-card {
    min-width: 0;
}

.nn-community-card__link {
    display: block;
    min-height: 338px;
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nn-community-card__banner {
    height: 112px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.nn-community-card__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nn-community-card__banner span {
    font-size: 24px;
    font-weight: 800;
}

.nn-community-card__body {
    display: grid;
    gap: 8px;
    padding: 14px 18px 16px;
}

.nn-community-card__body h3 {
    font-size: 18px;
    font-weight: 700;
}

.nn-community-card__sub {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.nn-community-card__body p {
    min-height: 70px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.75;
}

.nn-community-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nn-community-card__tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}

.nn-community-card__foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
}

.nn-community-card__online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nn-community-card__online::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #18c37e;
}

.nn-community-card__serial {
    color: rgba(255, 255, 255, 0.34);
}

.nn-roompage__sidebar {
    display: grid;
    align-content: start;
    gap: 14px;
}

.nn-roompage__cover {
    display: grid;
    gap: 12px;
}

.nn-roompage__cover-image {
    height: 124px;
    border-radius: 2px;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
        linear-gradient(135deg, #3a2a38, #58443d 42%, #2f2e2d);
}

.nn-roompage__cover-meta {
    display: grid;
    gap: 4px;
}

.nn-roompage__cover-meta strong {
    font-size: 14px;
}

.nn-roompage__cover-meta span,
.nn-roompage__community-status {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.nn-roompage__community {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nn-roompage__community-name {
    font-size: 14px;
    font-weight: 700;
}

.nn-roompage__tree {
    display: grid;
    gap: 4px;
}

.nn-roompage__tree-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    cursor: pointer;
}

.nn-roompage__tree-item.is-active {
    color: #8b79ff;
}

.nn-roompage__tree-icon,
.nn-roompage__tree-index {
    align-self: start;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    color: inherit;
}

.nn-roompage__tree-icon::before {
    content: "◧";
    font-size: 12px;
}

.nn-roompage__tree-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.nn-roompage__tree-item span {
    color: rgba(255, 255, 255, 0.44);
    font-size: 12px;
}

.nn-roompage__toolbar {
    display: flex;
    gap: 8px;
}

.nn-roompage__toolbar-btn,
.nn-roompage__head-btn {
    height: 38px;
    padding: 0 14px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #f0f0f0;
    cursor: pointer;
}

.nn-roompage__toolbar-btn--primary,
.nn-roompage__head-btn {
    background: #efefef;
    color: #161616;
}

.nn-roompage__toolbar-btn--icon {
    position: relative;
    width: 38px;
    padding: 0;
}

.nn-roompage__toolbar-btn--icon::before {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.86);
}

.nn-roompage__toolbar-btn--icon::after {
    content: "";
    position: absolute;
    width: 9px;
    border-top: 2px solid rgba(255, 255, 255, 0.86);
    transform: rotate(35deg);
    right: 9px;
    top: 12px;
}

.nn-roompage__voice-list {
    display: grid;
    gap: 6px;
}

.nn-roompage__voice-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
}

.nn-roompage__voice-item.is-active {
    background: rgba(89, 72, 214, 0.18);
    color: #8b79ff;
}

.nn-roompage__voice-serial {
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
}

.nn-roompage__voice-content {
    display: grid;
    gap: 2px;
}

.nn-roompage__voice-content strong {
    font-size: 14px;
    font-weight: 700;
}

.nn-roompage__voice-content span {
    color: rgba(255, 255, 255, 0.46);
    font-size: 12px;
}

.nn-roompage__join {
    display: grid;
    gap: 12px;
    margin-top: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.nn-roompage__join-field {
    display: grid;
    gap: 8px;
}

.nn-roompage__join-field span,
.nn-roompage__join-check {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.nn-roompage__join-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nn-roompage__join-submit.btn {
    height: 40px;
    border-radius: 2px;
    background: #efefef;
    color: #141414;
}

.nn-roompage__join-status.status-box {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.68);
}

.nn-roompage__main {
    display: grid;
    align-content: start;
    gap: 18px;
    padding-top: 2px;
}

.nn-roompage__head {
    grid-template-columns: auto 200px auto;
}

.nn-roompage__head-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.nn-roompage__head-btn--ghost {
    background: rgba(111, 84, 255, 0.8);
    color: #f7f5ff;
}

.nn-roompage__stage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    min-height: 420px;
    align-content: start;
}

.nn-roompage__stage .mic-seat {
    min-height: 430px;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 0 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.nn-roompage__stage .mic-seat__avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: linear-gradient(135deg, #67595a, #ac8b5e 46%, #f6e2bd);
    color: #fff;
    font-size: 72px;
    font-weight: 800;
}

.nn-roompage__stage .mic-seat--active .mic-seat__avatar {
    outline: 4px solid #f2cf67;
    outline-offset: -4px;
}

.nn-roompage__stage .mic-seat:nth-child(2) .mic-seat__avatar {
    background: linear-gradient(135deg, #17141c, #37323f 36%, #ed7b4d);
}

.nn-roompage__stage .mic-seat:nth-child(3) .mic-seat__avatar {
    background: linear-gradient(135deg, #f2f2f2, #ffffff 55%, #dfdfdf);
    color: #ff8a00;
}

.nn-roompage__stage .mic-seat__name,
.nn-roompage__stage .mic-seat__badge {
    padding: 0 12px;
}

.nn-roompage__stage .mic-seat__name {
    font-size: 16px;
    font-weight: 700;
}

.nn-roompage__stage .mic-seat__badge {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.nn-roompage__stage .mic-seat--empty {
    opacity: 0.3;
}

.nn-roompage__members {
    display: grid;
    align-content: start;
    gap: 14px;
    padding-top: 86px;
}

.nn-roompage__members-search {
    position: relative;
}

.nn-roompage__members-search::after {
    top: 10px;
    right: 34px;
}

.nn-roompage__members-search::before {
    right: 24px;
    top: 24px;
}

.nn-roompage__members-title {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.nn-roompage__member-list {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
}

.nn-roompage__member-list .member-card {
    padding: 0;
    border: none;
    background: transparent;
}

.nn-roompage__member-list .member-card > div {
    display: grid;
    gap: 6px;
}

.nn-roompage__member-list .member-card__name {
    position: relative;
    padding-left: 42px;
    font-size: 14px;
    font-weight: 600;
}

.nn-roompage__member-list .member-card__name::before {
    content: attr(data-initial);
}

.nn-roompage__member-list .member-card__name::before,
.nn-roompage__member-list .member-card__name::after {
    position: absolute;
}

.nn-roompage__member-list .member-card__name::before {
    left: 0;
    top: -3px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #494949, #1f1f1f);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.nn-roompage__member-list .member-card__name::after {
    content: "";
    left: 26px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #18c37e;
    box-shadow: 0 0 0 2px #141414;
}

.nn-roompage__member-list .member-card__meta {
    padding-left: 42px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nn-roompage__member-list .tag,
.nn-roompage__member-list .pill {
    height: 20px;
    padding: 0 6px;
    border-radius: 2px;
    background: rgba(111, 84, 255, 0.12);
    color: #9b8cff;
    font-size: 11px;
}

.nn-roompage__status-panel,
.nn-roompage__gift-panel {
    padding: 14px 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.nn-roompage__status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.nn-roompage__status-row strong {
    color: #f1f1f1;
    font-size: 12px;
}

.nn-roompage__gift-title {
    margin-bottom: 12px;
    color: #f1f1f1;
    font-size: 14px;
    font-weight: 700;
}

.nn-roompage__gift-panel .gift-grid {
    display: grid;
    gap: 10px;
}

.nn-roompage__gift-panel .gift-card {
    min-height: 54px;
    padding: 10px 12px;
    border-radius: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    text-align: left;
}

.nn-roompage__gift-panel .gift-card__icon {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
}

.nn-roompage__gift-panel .gift-card__price {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 11px;
}

@media (max-width: 1440px) {
    .nn-discover__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1220px) {
    .nn-discover {
        grid-template-columns: 58px 220px minmax(0, 1fr);
    }

    .nn-roompage {
        grid-template-columns: 58px 260px minmax(0, 1fr);
    }

    .nn-roompage__members {
        grid-column: 2 / span 2;
        padding-top: 0;
    }

    .nn-roompage__stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nn-discover__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .nn-discover,
    .nn-roompage {
        grid-template-columns: 1fr;
    }

    .nn-discover__rail,
    .nn-roompage__rail {
        grid-auto-flow: column;
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }

    .nn-discover__brand-copy,
    .nn-roompage__rail .nn-discover__brand-copy {
        display: grid;
    }

    .nn-discover__rail-games,
    .nn-roompage__rail-icons {
        grid-auto-flow: column;
        grid-auto-columns: 48px;
        justify-content: start;
        overflow: auto;
    }

    .nn-discover__grid,
    .nn-roompage__stage {
        grid-template-columns: 1fr;
    }

    .nn-discover__toolbar,
    .nn-roompage__head {
        grid-template-columns: 1fr;
    }

    .nn-discover__searchbar {
        width: 100%;
    }
}

/* ===== NN Refine v12 ===== */
body.lobby-page--nn,
body.room-page--nn,
body.admin-page.room-page--nn {
    background:
        radial-gradient(circle at top, rgba(93, 63, 140, 0.35) 0%, rgba(12, 12, 14, 0) 32%),
        #121214;
}

.nn-shell,
.nn-room-layout {
    min-height: 100vh;
    display: grid;
    gap: 0;
    background: transparent;
}

.nn-shell {
    grid-template-columns: 70px 280px minmax(0, 1fr);
}

.nn-room-layout {
    grid-template-columns: 70px 290px minmax(0, 1fr) 340px;
}

.nn-shell__rail {
    background: rgba(17, 17, 19, 0.92);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.nn-shell__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    color: #fff;
    text-decoration: none;
}

.nn-shell__brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.nn-shell__brand-text {
    display: none;
}

.nn-shell__rail-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.nn-rail-game,
.nn-room-rail__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.nn-rail-game.is-active,
.nn-room-rail__icon.is-active {
    box-shadow: 0 0 0 2px #6c4df6;
    border-color: #8f7bff;
}

.nn-rail-game__cover {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.nn-rail-game__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nn-rail-game__badge {
    position: absolute;
    right: -4px;
    top: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    background: #ff4d6d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.nn-room-rail__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    margin: auto;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.88);
}

.nn-room-rail__icon:nth-child(2)::before {
    border-radius: 50%;
}

.nn-room-rail__icon:nth-child(3)::before {
    width: 20px;
    height: 14px;
    border-radius: 4px;
}

.nn-room-rail__icon:nth-child(4)::before {
    width: 14px;
    height: 14px;
    border-radius: 0;
    transform: rotate(45deg);
}

.nn-shell__rail-bottom {
    margin-top: auto;
}

.nn-shell__avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffb55a, #ff7b1c);
    color: #fff;
    font-weight: 700;
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.nn-shell__sidebar,
.nn-room-left,
.nn-room-right,
.nn-admin__sidebar {
    background: rgba(16, 16, 18, 0.96);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 18px 16px;
}

.nn-shell__sidebar-head h1,
.nn-admin__title h1 {
    margin: 12px 0 24px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.nn-shell__create {
    width: 100%;
    height: 42px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #efefef;
    color: #111;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
}

.nn-shell__create-icon {
    width: 20px;
    height: 20px;
    position: relative;
    border-radius: 50%;
    border: 2px solid #111;
}

.nn-shell__create-icon::before,
.nn-shell__create-icon::after {
    content: "";
    position: absolute;
    background: #111;
    inset: 0;
    margin: auto;
}

.nn-shell__create-icon::before {
    width: 10px;
    height: 2px;
}

.nn-shell__create-icon::after {
    width: 2px;
    height: 10px;
}

.nn-shell__menu {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.nn-shell__menu-item {
    height: 46px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: #d7d7db;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
}

.nn-shell__menu-item.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nn-shell__menu-flame,
.nn-shell__menu-gamepad {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffb35b, #ff6f32);
    box-shadow: 0 0 0 3px rgba(255, 160, 54, 0.14);
}

.nn-shell__menu-gamepad {
    border-radius: 4px;
    background: linear-gradient(180deg, #8c7cff, #5d48ef);
    box-shadow: 0 0 0 3px rgba(109, 87, 255, 0.12);
}

.nn-shell__discover-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
}

.nn-shell__discover-meta div {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px;
}

.nn-shell__discover-meta span {
    display: block;
    color: #8d8d97;
    font-size: 12px;
}

.nn-shell__discover-meta strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.nn-shell__discover-tip {
    margin-top: 16px;
    color: #7b7b84;
    font-size: 12px;
    line-height: 1.7;
}

.nn-shell__content,
.nn-room-center,
.nn-admin__main {
    min-width: 0;
    padding: 12px 24px 18px;
}

.nn-shell__topbar {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nn-shell__back {
    color: #f4f4f7;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    padding-left: 16px;
}

.nn-shell__back::before {
    content: "‹";
    position: absolute;
    left: 0;
    top: -1px;
    color: #a38dff;
    font-size: 18px;
}

.nn-shell__channel-search,
.nn-shell__search-wrap,
.nn-room-right__search {
    position: relative;
}

.nn-shell__channel-search input,
.nn-shell__search-wrap input,
.nn-room-right__search input,
.nn-room-center__nickname input {
    width: 100%;
    height: 40px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1b1b20;
    color: #f5f5f7;
    padding: 0 40px 0 14px;
    font-size: 14px;
}

.nn-shell__channel-search {
    width: 200px;
}

.nn-shell__search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 16px;
}

.nn-shell__search-wrap {
    width: 468px;
    max-width: 100%;
}

.nn-shell__search-wrap::after,
.nn-shell__channel-search::after,
.nn-room-right__search::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    opacity: 0.8;
}

.nn-shell__search-wrap::before,
.nn-shell__channel-search::before,
.nn-room-right__search::before {
    content: "";
    position: absolute;
    right: 11px;
    top: 22px;
    width: 8px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
}

.nn-shell__topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.nn-shell__icon-btn {
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    position: relative;
    color: transparent;
}

.nn-shell__icon-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 5px;
    border: 2px solid #6154ff;
}

.nn-shell__icon-btn::after {
    content: "";
    position: absolute;
    right: -4px;
    top: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff465f;
}

.nn-shell__icon-btn--menu::before {
    inset: auto;
    width: 18px;
    height: 2px;
    top: 3px;
    right: 0;
    background: #f4f4f7;
    border: none;
    box-shadow: 0 6px 0 #f4f4f7, 0 12px 0 #f4f4f7;
}

.nn-shell__icon-btn--menu::after {
    right: -2px;
    top: -2px;
}

.nn-shell__refresh-btn {
    width: 40px;
    height: 40px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1c1c21;
    position: relative;
}

.nn-shell__refresh-btn::before {
    content: "↻";
    color: #f4f4f7;
    font-size: 18px;
}

.nn-community-wall {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nn-community-card {
    min-width: 0;
    background: #17171a;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nn-community-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.nn-community-card__banner {
    height: 112px;
    background: #232329;
    overflow: hidden;
}

.nn-community-card__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nn-community-card__body {
    padding: 14px 18px 18px;
}

.nn-community-card__body h3 {
    margin: 0;
    color: #f5f5f7;
    font-size: 17px;
    font-weight: 700;
}

.nn-community-card__meta {
    margin-top: 8px;
    color: #9e9ea8;
    font-size: 14px;
}

.nn-community-card__badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.nn-community-card__level,
.nn-community-card__id {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.nn-community-card__level {
    background: #8ba3c5;
    color: #fff;
}

.nn-community-card__id {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d1d8;
}

.nn-community-card__body p {
    margin: 12px 0 0;
    color: #b1b1b9;
    font-size: 14px;
    line-height: 1.7;
    min-height: 72px;
}

.nn-community-card__foot {
    margin-top: 18px;
    color: #d7d7dc;
    font-size: 14px;
}

.nn-community-card__online {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nn-community-card__online::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #16c784;
}

.nn-room-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nn-room-left__cover {
    background: #151519;
}

.nn-room-left__cover-image {
    height: 124px;
    background:
        linear-gradient(135deg, rgba(255, 171, 64, 0.26), rgba(93, 63, 198, 0.12)),
        url('/assets/brand/logo-64.png') center/84px no-repeat,
        #202127;
}

.nn-room-left__cover-meta {
    padding: 12px 0 2px;
}

.nn-room-left__cover-meta strong {
    display: block;
    color: #fff;
    font-size: 17px;
}

.nn-room-left__cover-meta span,
.nn-room-left__game span {
    display: block;
    margin-top: 6px;
    color: #a2a2aa;
    font-size: 13px;
}

.nn-room-left__game strong {
    color: #fff;
    font-size: 18px;
}

.nn-room-left__channels {
    display: grid;
    gap: 2px;
}

.nn-room-left__channel {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 10px;
    border: none;
    background: transparent;
    color: #d7d7dc;
    text-align: left;
}

.nn-room-left__channel.is-active {
    color: #8f7cff;
}

.nn-room-left__channel strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.nn-room-left__channel span {
    color: #9b9ba3;
    font-size: 13px;
}

.nn-room-left__channel-icon,
.nn-room-left__channel-index {
    width: 18px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: #9a8dff;
    font-size: 14px;
}

.nn-room-left__channel-icon::before {
    content: "◧";
}

.nn-room-left__toolbar {
    display: grid;
    grid-template-columns: 1.5fr 1fr 48px;
    gap: 8px;
}

.nn-room-left__toolbar-btn {
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #242429;
    color: #fff;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 600;
}

.nn-room-left__toolbar-btn--primary {
    background: #f3f3f4;
    color: #111;
}

.nn-room-left__toolbar-btn--icon::before {
    content: "↻";
    font-size: 18px;
}

.nn-room-left__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nn-room-left__voice-meta span {
    display: block;
    color: #8c8c95;
    font-size: 12px;
}

.nn-room-left__voice-meta strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 14px;
}

.nn-room-left__voice-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nn-room-left__voice-actions button {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    position: relative;
}

.nn-room-left__voice-actions button::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
}

.nn-room-center {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #141416;
}

.nn-room-center__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nn-room-center__topic strong {
    display: block;
    color: #fff;
    font-size: 18px;
}

.nn-room-center__topic span {
    color: #a0a0aa;
    font-size: 13px;
}

.nn-room-center__actions {
    display: flex;
    gap: 8px;
}

.nn-room-center__action {
    height: 32px;
    padding: 0 14px;
    border-radius: 2px;
    border: none;
    background: #4b42a6;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.nn-room-center__action.is-light {
    background: #f2f2f3;
    color: #111;
}

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

.nn-stage-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #17171a;
}

.nn-stage-card__cover {
    height: 270px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #26272d, #151519);
    color: #fff;
    font-size: 72px;
    font-weight: 800;
}

.nn-stage-card.is-host .nn-stage-card__cover {
    box-shadow: inset 0 0 0 4px #f4c14f;
}

.nn-stage-card__name,
.nn-stage-card__badge {
    padding: 10px 14px 0;
    color: #f3f3f6;
}

.nn-stage-card__name {
    font-size: 16px;
    font-weight: 700;
}

.nn-stage-card__badge {
    padding-bottom: 14px;
    color: #a8a8b0;
    font-size: 12px;
}

.nn-stage-card--empty .nn-stage-card__cover {
    background: #1c1d22;
    color: rgba(255, 255, 255, 0.35);
}

.nn-room-center__feed {
    display: grid;
    gap: 18px;
    padding-right: 24px;
}

.nn-room-feed__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.nn-room-feed__avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #8c7cff, #573ef0);
    color: #fff;
    font-weight: 700;
}

.nn-room-feed__item.is-system .nn-room-feed__avatar {
    background: linear-gradient(135deg, #ff9f43, #ff6b2d);
}

.nn-room-feed__meta strong {
    color: #f3f3f6;
    font-size: 15px;
}

.nn-room-feed__meta span {
    margin-left: 10px;
    color: #7f7f88;
    font-size: 12px;
}

.nn-room-feed__bubble {
    margin-top: 6px;
    display: inline-block;
    padding: 12px 14px;
    border-radius: 4px;
    background: #202025;
    color: #dfdfe4;
    font-size: 15px;
    line-height: 1.6;
}

.nn-room-center__composer {
    margin-top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nn-room-center__check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b8b8bf;
    font-size: 13px;
}

.nn-room-center__join-btn {
    height: 40px;
    padding: 0 16px;
    border-radius: 2px;
    border: none;
    background: #5c49f6;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.nn-room-center__status {
    grid-column: 1 / -1;
    color: #8f8f97;
    font-size: 13px;
}

.nn-room-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #131315;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.nn-room-right__banner {
    height: 82px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(145, 95, 255, 0.4), rgba(255, 82, 125, 0.16));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.nn-room-right__title {
    color: #f4f4f7;
    font-size: 14px;
}

.nn-room-right__members {
    display: grid;
    gap: 12px;
    min-height: 260px;
}

.nn-room-member {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f1f1f5;
}

.nn-room-member__avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffb55a, #ff7b1c);
    color: #fff;
    font-weight: 700;
}

.nn-room-member__meta {
    min-width: 0;
    flex: 1;
}

.nn-room-member__meta strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.nn-room-member__meta span {
    display: block;
    margin-top: 3px;
    color: #8c8c95;
    font-size: 12px;
}

.nn-room-member__role {
    color: #fff;
    background: #7c4dff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.nn-room-right__notice,
.nn-room-right__gifts {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    padding: 14px;
}

.nn-room-right__notice-title,
.nn-room-right__gifts-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.nn-room-right__notice-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #b5b5bc;
    font-size: 13px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nn-room-right__notice-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.nn-room-right__gifts .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nn-room-right__gifts .gift-card {
    min-height: 112px;
    background: #1a1a1e;
    border-radius: 2px;
}

.nn-admin__sidebar {
    background: rgba(16, 16, 18, 0.98);
}

.nn-admin__title-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nn-admin__title-brand span {
    display: block;
    margin-top: 2px;
    color: #8d8d97;
    font-size: 12px;
}

.nn-admin__title p {
    color: #8f8f98;
    line-height: 1.7;
}

.nn-admin__quicklinks {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.nn-admin__quicklink {
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 2px;
    background: #f3f3f4;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.nn-admin__quicklink--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.nn-admin__menu {
    display: grid;
    gap: 6px;
    margin-top: 24px;
}

.nn-admin__menu-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    padding: 12px 10px;
    background: transparent;
    border: none;
    color: #d8d8dd;
}

.nn-admin__menu-item.is-active {
    background: rgba(255, 255, 255, 0.06);
}

.nn-admin__menu-index {
    color: #8f7cff;
    font-size: 12px;
    font-weight: 800;
}

.nn-admin__menu-item strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.nn-admin__menu-item span:last-child {
    display: block;
    margin-top: 3px;
    color: #8d8d97;
    font-size: 12px;
}

.nn-admin__meta {
    margin-top: auto;
    display: grid;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nn-admin__meta span {
    color: #8f8f98;
    font-size: 12px;
}

.nn-admin__meta strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 14px;
}

.nn-admin__head {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nn-admin__head-copy h2 {
    color: #fff;
}

.nn-admin-card,
.nn-admin__form-card {
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #17171a;
}

@media (max-width: 1500px) {
    .nn-community-wall {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1320px) {
    .nn-room-layout {
        grid-template-columns: 70px 270px minmax(0, 1fr);
    }

    .nn-room-right {
        display: none;
    }

    .nn-community-wall {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .nn-shell {
        grid-template-columns: 64px 220px minmax(0, 1fr);
    }

    .nn-room-layout {
        grid-template-columns: 64px 220px minmax(0, 1fr);
    }

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

@media (max-width: 860px) {
    .nn-shell,
    .nn-room-layout {
        grid-template-columns: 1fr;
    }

    .nn-shell__rail,
    .nn-room-left,
    .nn-admin__sidebar {
        display: none;
    }

    .nn-community-wall,
    .nn-room-center__stage {
        grid-template-columns: 1fr;
    }

    .nn-shell__search-row,
    .nn-room-center__bar,
    .nn-room-center__composer {
        grid-template-columns: 1fr;
        display: grid;
    }
}
