/* =========================================================
   OBS Live · 播放器 + 评论区
========================================================= */

:root {
    --bg: #090a0d;
    --bg-soft: #0e1014;
    --panel: #14161b;
    --panel-hover: #1a1d23;
    --text: #f5f7fa;
    --muted: #9da3ad;
    --muted-dim: #6f7681;
    --border: rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.05);

    --accent: #ff3b4e;
    --accent-hover: #ff5262;
    --ok: #39d98a;
    --warn: #ffb020;

    --radius: 16px;
    --radius-sm: 10px;

    --shadow: 0 25px 70px rgba(0, 0, 0, 0.45), 0 8px 25px rgba(0, 0, 0, 0.25);

    --chat-width: 360px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
        Roboto, Helvetica, Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

/* =========================================================
   页面骨架
========================================================= */

.page {
    width: min(1560px, 100%);
    min-height: 100vh;
    padding: 24px 22px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ---------- 顶栏 ---------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 17px;
    background: linear-gradient(135deg, #ff3b4e, #d91d35);
    box-shadow: 0 7px 25px rgba(255, 59, 78, 0.22);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #777;
    transition: background 0.2s ease;
}

.pill[data-state="live"] .pill-dot {
    background: var(--ok);
    box-shadow: 0 0 10px rgba(57, 217, 138, 0.7);
}

.pill[data-state="connecting"] .pill-dot,
.pill[data-state="reconnecting"] .pill-dot {
    background: var(--warn);
    animation: blink 1.2s infinite;
}

.pill[data-state="waiting"] .pill-dot {
    background: var(--warn);
}

.pill[data-state="error"] .pill-dot {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(255, 59, 78, 0.6);
}

.pill[data-state="live"] {
    color: #d6ffe9;
}

.pill-dot.online {
    background: #4d9bff;
    box-shadow: 0 0 10px rgba(77, 155, 255, 0.6);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ---------- 主布局 ---------- */

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--chat-width);
    gap: 20px;
    align-items: start;
    flex: 1;
}

.stage {
    min-width: 0;
}

/* =========================================================
   播放器
========================================================= */

.player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow);
    user-select: none;
}

.player.idle {
    cursor: none;
}

video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

/* ---------- 渐变遮罩 ---------- */

.player-gradient {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 2;
}

.player-gradient.top {
    top: 0;
    height: 140px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.player-gradient.bottom {
    bottom: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

/* ---------- 角标 ---------- */

.player-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 7px;
    background: rgba(12, 13, 16, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.badge-live .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 59, 78, 0.12), 0 0 12px rgba(255, 59, 78, 0.75);
    animation: blink 1.7s infinite;
}

.badge-live[hidden],
.badge-net[hidden] {
    display: none;
}

.badge-net {
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #c9ced7;
}

/* ---------- 中央遮罩 ---------- */

.overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(25, 27, 33, 0.5), rgba(0, 0, 0, 0.85));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.overlay-content {
    text-align: center;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.13);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.loader[hidden] {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.overlay-title {
    font-size: 16px;
    font-weight: 600;
}

.overlay-subtitle {
    margin-top: 7px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}

.retry-button {
    margin-top: 18px;
    border: 0;
    padding: 9px 18px;
    border-radius: 9px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background 0.15s ease;
}

.retry-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.retry-button[hidden] {
    display: none;
}

/* ---------- 取消静音提示 ---------- */

.unmute-hint {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 8;
    border: 0;
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(12, 13, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    animation: fade-in 0.3s ease;
}

.unmute-hint[hidden] {
    display: none;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- 弹幕层 ---------- */

.danmaku-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
}

.danmaku {
    position: absolute;
    left: 0;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 6px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.6);
    will-change: transform;
}

.danmaku.is-own {
    background: rgba(255, 59, 78, 0.28);
    box-shadow: 0 0 0 1px rgba(255, 59, 78, 0.4);
}

/* ---------- 控制栏 ---------- */

.controls-area {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 7;
    padding: 45px 16px 13px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.player.idle .controls-area {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.controls {
    display: flex;
    align-items: center;
    gap: 7px;
}

.control-button {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.075);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}

.control-button:hover {
    background: rgba(255, 255, 255, 0.16);
}

.control-button:active {
    transform: scale(0.92);
}

.control-button[aria-pressed="true"] {
    background: rgba(255, 59, 78, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 59, 78, 0.45);
}

.control-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.play-button {
    background: rgba(255, 255, 255, 0.12);
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ---------- 音量 ---------- */

.volume-wrapper {
    display: flex;
    align-items: center;
    gap: 7px;
}

.volume-slider {
    width: 84px;
    appearance: none;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.23);
    cursor: pointer;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.controls-spacer {
    flex: 1;
}

/* =========================================================
   播放器下方信息
========================================================= */

.stream-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 4px 0;
}

.stream-title {
    margin: 0;
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -0.3px;
}

.stream-desc {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.meta-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.chip {
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    color: #b8bdc6;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.chip[data-empty="true"] {
    color: var(--muted-dim);
}

/* =========================================================
   聊天面板
========================================================= */

.chat {
    display: flex;
    flex-direction: column;
    height: min(640px, calc(100vh - 130px));
    min-height: 380px;
    background: linear-gradient(180deg, rgba(20, 22, 27, 0.95), rgba(16, 18, 22, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
}

.chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.02);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 650;
}

.chat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #777;
}

.chat[data-status="online"] .chat-dot {
    background: var(--ok);
    box-shadow: 0 0 9px rgba(57, 217, 138, 0.7);
}

.chat[data-status="connecting"] .chat-dot {
    background: var(--warn);
    animation: blink 1.2s infinite;
}

.chat[data-status="offline"] .chat-dot {
    background: var(--accent);
}

.chat-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-text-button {
    border: 0;
    padding: 5px 9px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.icon-text-button:hover {
    background: rgba(255, 255, 255, 0.13);
    color: var(--text);
}

.icon-text-button[aria-pressed="true"] {
    background: rgba(255, 59, 78, 0.22);
    color: #ffd7db;
    box-shadow: inset 0 0 0 1px rgba(255, 59, 78, 0.4);
}

/* ---------- 消息列表 ---------- */

.chat-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 12px 6px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.chat-list::-webkit-scrollbar {
    width: 8px;
}

.chat-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.chat-empty,
.chat-hint {
    margin: auto;
    text-align: center;
    color: var(--muted-dim);
    font-size: 12px;
    line-height: 1.7;
    padding: 14px;
}

/* 列表顶部的「只显示最近 N 分钟」提示：常驻在最上方 */
.chat-window-tip {
    margin: 0 0 4px;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px dashed var(--border);
    font-size: 11px;
    flex-shrink: 0;
}

.chat-window-tip + .chat-empty {
    margin: auto;
}

.chat-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid transparent;
    animation: slide-in 0.22s ease;
    word-break: break-word;
}

.chat-item.highlight {
    background: rgba(255, 59, 78, 0.09);
    border-color: rgba(255, 59, 78, 0.28);
}

.chat-item.is-own {
    background: rgba(77, 155, 255, 0.08);
    border-color: rgba(77, 155, 255, 0.2);
}

.chat-item-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
}

.chat-name {
    font-weight: 650;
    color: #cfd4dc;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-name.is-admin::after {
    content: "管理员";
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    background: rgba(255, 59, 78, 0.2);
    color: #ff9aa5;
    vertical-align: middle;
}

.chat-time {
    margin-left: auto;
    color: var(--muted-dim);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.chat-text {
    font-size: 13px;
    line-height: 1.62;
    color: #e7eaf0;
    white-space: pre-wrap;
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: none; }
}

/* ---------- 新消息提示 ---------- */

.chat-newest {
    align-self: center;
    margin: 4px 0 6px;
    border: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 59, 78, 0.9);
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 59, 78, 0.35);
}

.chat-newest[hidden] {
    display: none;
}

/* ---------- 输入区 ---------- */

.chat-compose {
    border-top: 1px solid var(--border-soft);
    padding: 10px 12px 11px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: rgba(0, 0, 0, 0.18);
}

.nick-input {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s ease;
}

.nick-input:focus {
    border-color: rgba(255, 255, 255, 0.22);
}

.compose-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-input {
    flex: 1;
    min-height: 38px;
    max-height: 108px;
    resize: none;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 9px;
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.45;
    outline: none;
    transition: border-color 0.15s ease;
}

.chat-input:focus {
    border-color: rgba(255, 255, 255, 0.22);
}

.send-button {
    flex-shrink: 0;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), #d91d35);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.12s ease;
}

.send-button:hover {
    filter: brightness(1.1);
}

.send-button:active {
    transform: scale(0.96);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: none;
}

.compose-hint {
    min-height: 15px;
    font-size: 11px;
    color: var(--muted-dim);
}

.turnstile-slot:empty {
    display: none;
}

.compose-hint[data-kind="error"] {
    color: #ff8b96;
}

.compose-hint[data-kind="ok"] {
    color: #7ee0b1;
}

/* =========================================================
   进站昵称弹窗
========================================================= */

.welcome {
    position: fixed;
    inset: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(5, 6, 9, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    animation: welcome-in 0.22s ease;
}

.welcome.closing {
    animation: welcome-out 0.18s ease forwards;
}

@keyframes welcome-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes welcome-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.welcome-card {
    width: min(400px, 100%);

    padding: 30px 26px 22px;

    border-radius: 20px;

    background: linear-gradient(180deg, #1a1d24, #131519);
    border: 1px solid rgba(255, 255, 255, 0.09);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.4);

    text-align: center;

    animation: card-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.welcome-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    font-size: 22px;
    color: #fff;

    background: linear-gradient(135deg, #ff3b4e, #d91d35);
    box-shadow: 0 10px 30px rgba(255, 59, 78, 0.32);
}

.welcome-title {
    margin: 0;

    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.welcome-text {
    margin: 9px 0 22px;

    font-size: 13px;
    line-height: 1.65;

    color: var(--muted);
}

.welcome-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.welcome-input {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.05);

    font-size: 15px;
    text-align: center;

    outline: none;

    transition: border-color 0.15s ease, background 0.15s ease;
}

.welcome-input::placeholder {
    color: var(--muted-dim);
}

.welcome-input:focus {
    border-color: rgba(255, 59, 78, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

.welcome-input.shake {
    animation: input-shake 0.36s ease;
    border-color: rgba(255, 59, 78, 0.8);
}

@keyframes input-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.welcome-button {
    width: 100%;

    padding: 12px 18px;

    border: 0;
    border-radius: 11px;

    background: linear-gradient(135deg, var(--accent), #d91d35);
    color: #fff;

    font-size: 15px;
    font-weight: 650;

    cursor: pointer;

    transition: filter 0.15s ease, transform 0.12s ease;
}

.welcome-button:hover {
    filter: brightness(1.1);
}

.welcome-button:active {
    transform: scale(0.98);
}

.welcome-skip {
    margin-top: 14px;

    border: 0;
    background: none;

    color: var(--muted-dim);

    font-size: 12px;

    cursor: pointer;

    transition: color 0.15s ease;
}

.welcome-skip:hover {
    color: var(--muted);
}

@media (max-width: 700px) {

    .welcome-card {
        padding: 24px 20px 18px;
        border-radius: 17px;
    }

    .welcome-icon {
        width: 46px;
        height: 46px;
        font-size: 19px;
        margin-bottom: 14px;
    }

    .welcome-title {
        font-size: 17px;
    }

    .welcome-text {
        margin: 8px 0 18px;
        font-size: 12px;
    }
}

/* =========================================================
   页脚
========================================================= */

.footer {
    margin-top: auto;
    padding-top: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.28);
    font-size: 11px;
}

/* =========================================================
   全屏
========================================================= */

.player:fullscreen {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
    border: 0;
}

.player:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

/* =========================================================
   响应式
========================================================= */

@media (max-width: 1080px) {

    .layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .chat {
        height: 460px;
    }
}

@media (max-width: 700px) {

    .page {
        padding: 12px 10px 22px;
        gap: 12px;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .brand-title {
        font-size: 14px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

    .pill {
        font-size: 10px;
        padding: 6px 9px;
    }

    .player {
        border-radius: 12px;
    }

    .player-badges {
        top: 10px;
        left: 10px;
    }

    .badge {
        padding: 5px 8px;
        font-size: 9px;
    }

    .controls-area {
        padding: 34px 9px 9px;
    }

    .control-button {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .control-button svg {
        width: 17px;
        height: 17px;
    }

    .volume-slider {
        width: 62px;
    }

    .stream-info {
        flex-direction: column;
        gap: 10px;
        padding-top: 12px;
    }

    .stream-title {
        font-size: 16px;
    }

    .stream-desc {
        font-size: 11px;
    }

    .meta-chips {
        justify-content: flex-start;
    }

    .chat {
        height: 56vh;
        min-height: 340px;
    }

    .danmaku {
        font-size: 13px;
    }
}

@media (max-width: 390px) {

    .volume-wrapper {
        display: none;
    }

    .controls {
        gap: 4px;
    }

    .control-button {
        width: 32px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
