/* ===== 玄鸟语音开黑 — 雷神加速器风格 UI ===== */

:root {
    --bg: #0a0e1a;
    --bg-deep: #060911;
    --bg-card: rgba(14, 19, 35, 0.92);
    --bg-card-hover: rgba(20, 26, 48, 0.96);
    --panel: rgba(12, 17, 32, 0.88);
    --panel-strong: rgba(16, 22, 42, 0.96);
    --panel-soft: rgba(255, 255, 255, 0.03);
    --line: rgba(255, 255, 255, 0.06);
    --line-strong: rgba(255, 255, 255, 0.12);
    --text: #eaf0fa;
    --text-secondary: #b0bcd5;
    --muted: #6b7a99;
    --brand: #6c5ce7;
    --brand-light: #a29bfe;
    --brand-soft: rgba(108, 92, 231, 0.15);
    --brand-glow: rgba(108, 92, 231, 0.4);
    --accent: #00cec9;
    --accent-soft: rgba(0, 206, 201, 0.12);
    --accent-glow: rgba(0, 206, 201, 0.35);
    --gold: #ffc048;
    --gold-soft: rgba(255, 192, 72, 0.12);
    --danger: #ff6b81;
    --success: #2ed573;
    --online: #2ed573;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.15);
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100vh; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(108, 92, 231, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 10%, rgba(0, 206, 201, 0.08), transparent),
        radial-gradient(ellipse 50% 50% at 50% 100%, rgba(108, 92, 231, 0.06), transparent);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ===== Layout Shell ===== */
.masthead__inner,
.hero__inner,
.sub-hero__inner,
.page-shell {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

/* ===== Masthead / Navbar ===== */
.masthead {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 20px 0;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.masthead--compact { padding-top: 10px; }

.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(10, 14, 26, 0.75);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), #8b5cf6);
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
}

.brand__copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.brand__copy strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.brand__copy small {
    color: var(--muted);
    font-size: 11px;
}

.masthead__nav {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
}

.masthead__nav a {
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.masthead__nav a:hover {
    color: #fff;
    background: var(--brand-soft);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    z-index: 1;
    padding: 28px 0 16px;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: stretch;
}

.hero__copy,
.hero__panel {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero__copy::before,
.hero__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.06), transparent 50%);
    pointer-events: none;
}

.hero__copy {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__eyebrow,
.hero-panel__eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 30%, var(--brand-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p,
.sub-hero p,
.panel__header p,
.note-box,
.status-box,
.spotlight-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
}

/* ===== Hero Panel (Right Side) ===== */
.hero__panel {
    padding: 24px;
    display: grid;
    gap: 16px;
    align-content: start;
}

.hero-panel__lead h2 {
    margin: 10px 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-stat-grid,
.admin-stat-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
}

.hero-stat {
    position: relative;
    overflow: hidden;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.hero-stat::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-soft), transparent 70%);
}

.hero-stat__label,
.voice-stage__label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-stat strong,
.voice-stage strong {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

.spotlight-list { display: grid; gap: 8px; }
.spotlight-list--compact { gap: 6px; }

.spotlight-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    transition: all var(--transition);
}

.spotlight-item:hover {
    border-color: rgba(108, 92, 231, 0.2);
    background: rgba(108, 92, 231, 0.04);
}

.spotlight-item span:first-child {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand-light);
    font-weight: 800;
    font-size: 13px;
}

.spotlight-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.spotlight-item p {
    font-size: 12px !important;
}

/* ===== Sub Hero (Room Page) ===== */
.sub-hero {
    position: relative;
    z-index: 1;
    padding: 20px 0 8px;
}

.sub-hero__inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
}

.sub-hero h1 {
    margin: 8px 0 6px;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sub-hero__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    transition: all var(--transition);
}

.back-link:hover {
    color: var(--brand-light);
    transform: translateX(-3px);
}

/* ===== Pills / Tags / Badges ===== */
.pill,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.pill--accent {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(0, 206, 201, 0.2);
}

.pill--brand {
    background: var(--brand-soft);
    color: var(--brand-light);
    border-color: rgba(108, 92, 231, 0.2);
}

.pill--online {
    background: rgba(46, 213, 115, 0.1);
    color: var(--online);
    border-color: rgba(46, 213, 115, 0.2);
}

.pill--online::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--online);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(46, 213, 115, 0); }
}

/* ===== Page Shell ===== */
.page-shell {
    position: relative;
    z-index: 1;
    padding: 16px 0 40px;
    display: grid;
    gap: 16px;
}

.room-shell {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.room-sidebar,
.room-main {
    display: grid;
    gap: 16px;
}

/* ===== Panel ===== */
.panel,
.modal__dialog {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 22px;
}

.panel::before,
.modal__dialog::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.3), transparent);
    pointer-events: none;
}

.panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel__header h2,
.modal__header h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.section-kicker {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 11px;
}

/* ===== Game Strip ===== */
.game-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.game-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    min-height: 180px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg-card);
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition);
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.04), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card__cover {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.game-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card__kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--brand-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.game-card__meta h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

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

.game-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.game-card__footer strong {
    color: var(--brand-light);
    font-size: 13px;
}

/* ===== Filter Section ===== */
.filter-row {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 200px auto;
    align-items: end;
}

.filter-field,
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-field span,
.form-field span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.filter-field input,
.filter-field select,
.form-field input,
.form-field select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(6, 9, 17, 0.8);
    color: var(--text);
    outline: none;
    font-size: 14px;
    transition: all var(--transition);
}

.filter-field input::placeholder,
.form-field input::placeholder {
    color: var(--muted);
}

.filter-field input:focus,
.filter-field select:focus,
.form-field input:focus,
.form-field select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
    background: rgba(8, 12, 24, 0.95);
}

.form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.form-stack {
    display: grid;
    gap: 12px;
}

.form-check {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.form-check--panel {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

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

/* ===== Buttons ===== */
.btn,
.icon-btn {
    border: 0;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition);
}

.btn {
    min-height: 44px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 14px;
    gap: 8px;
}

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #8b5cf6);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(108, 92, 231, 0.45);
}

.btn--ghost {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.btn--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.btn--small {
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: var(--radius-xs);
}

.btn--accent {
    color: #fff;
    background: linear-gradient(135deg, #00b894, var(--accent));
    box-shadow: 0 8px 24px rgba(0, 206, 201, 0.25);
}

.btn--accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 206, 201, 0.4);
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
}

.icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* ===== Room Grid ===== */
.room-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.room-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.room-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}

.room-card:hover {
    transform: translateY(-3px);
    border-color: rgba(108, 92, 231, 0.25);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.room-card:hover::before {
    opacity: 1;
}

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

.room-card__game {
    margin-bottom: 6px;
    color: var(--brand-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.room-card__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.room-card__meta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.room-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.room-card__footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.room-card__members {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.room-card__members::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--online);
    box-shadow: 0 0 6px rgba(46, 213, 115, 0.4);
}

/* ===== Gift Grid ===== */
.gift-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.gift-card {
    position: relative;
    overflow: hidden;
    padding: 16px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--transition);
    color: inherit;
}

.gift-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 192, 72, 0.25);
    box-shadow: 0 12px 30px rgba(255, 192, 72, 0.1);
}

.gift-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
    font-size: 22px;
}

.gift-card__name {
    font-size: 14px;
    font-weight: 600;
}

.gift-card__desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.gift-card__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
}

/* ===== Voice Stage ===== */
.voice-stage {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 14px;
}

.voice-stage__block {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.voice-stage__block::after {
    content: "";
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-soft), transparent 70%);
}

.voice-stage strong {
    font-size: 18px;
}

/* ===== Mic Seats (Voice Room) ===== */
.mic-seats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 14px;
    padding: 16px 0;
}

.mic-seat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.mic-seat__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid var(--line);
    color: var(--muted);
    font-size: 24px;
    position: relative;
    transition: all var(--transition);
}

.mic-seat--active .mic-seat__avatar {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft), 0 0 20px var(--brand-glow);
}

.mic-seat--speaking .mic-seat__avatar {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft), 0 0 20px var(--accent-glow);
    animation: speak-pulse 1.5s ease-in-out infinite;
}

@keyframes speak-pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 0 5px var(--accent-soft), 0 0 30px var(--accent-glow); }
}

.mic-seat__name {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mic-seat__badge {
    font-size: 10px;
    color: var(--muted);
}

.mic-seat--empty .mic-seat__avatar {
    border-style: dashed;
}

/* ===== Member List ===== */
.member-list {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
}

.member-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    transition: all var(--transition);
}

.member-card:hover {
    border-color: rgba(108, 92, 231, 0.15);
    background: rgba(108, 92, 231, 0.03);
}

.member-card__name {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
}

.member-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

/* ===== Modal ===== */
.modal[hidden] { display: none; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8vh;
}

.modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 14, 0.78);
    backdrop-filter: blur(10px);
}

.modal__dialog {
    position: relative;
    max-width: 560px;
    width: calc(100% - 40px);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

/* ===== Empty & Status ===== */
.empty-state,
.status-box,
.note-box {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.status-box {
    border-style: solid;
    border-color: var(--line);
}

.note-box {
    border-style: solid;
    border-color: var(--line);
    font-size: 12px;
}

.audio-sink audio {
    width: 100%;
    margin-top: 10px;
}

/* ===== Admin ===== */
.admin-shell,
.admin-app { display: grid; gap: 16px; }
.admin-login-panel { max-width: 480px; }
.admin-workbench {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-table-wrap {
    overflow: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(6, 9, 17, 0.5);
}

.admin-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}

.admin-table th {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.02);
}

.admin-table tbody tr:hover {
    background: rgba(108, 92, 231, 0.03);
}

.table-muted {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

#livekitDeployLog {
    white-space: pre-wrap;
    font-family: "Consolas", "SFMono-Regular", "JetBrains Mono", monospace;
    font-size: 12px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ===== Responsive ===== */
@media (max-width: 1120px) {
    .hero__inner,
    .room-shell,
    .admin-workbench {
        grid-template-columns: 1fr;
    }

    .sub-hero__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .sub-hero__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .masthead { padding-top: 10px; }

    .masthead__inner {
        border-radius: var(--radius-lg);
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
    }

    .masthead__nav {
        width: 100%;
    }

    .masthead__nav a {
        flex: 1 1 auto;
        text-align: center;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .hero-stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .hero h1,
    .sub-hero h1 {
        font-size: 26px;
    }

    .hero__copy,
    .hero__panel,
    .panel,
    .modal__dialog {
        padding: 18px;
        border-radius: var(--radius-lg);
    }

    .hero__actions,
    .room-card__footer,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn { width: 100%; }
}

@media (max-width: 560px) {
    .masthead__inner,
    .hero__inner,
    .sub-hero__inner,
    .page-shell {
        width: min(100% - 20px, 1280px);
    }

    .hero-stat-grid,
    .game-strip,
    .gift-grid,
    .room-grid,
    .voice-stage {
        grid-template-columns: 1fr;
    }

    .mic-seats {
        grid-template-columns: repeat(3, 1fr);
    }
}
