[hidden] { display: none !important; }
:root {
  --bg: #0e0e10;
  --surface: #18181b;
  --surface-2: #222226;
  --border: #2c2c31;
  --text: #e8e6e3;
  --text-2: #9d9a96;
  --accent: #c8423b;
  --radius: 8px;
  --wrap: 1280px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.6 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.hint { color: var(--text-2); text-align: center; padding: 60px 0; }

/* 顶栏 */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(14,14,16,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; height: 56px; gap: 12px; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; }
.brand::before { content: ""; width: 6px; height: 20px; background: var(--accent); border-radius: 2px; }

/* 首页标题 */
.page-head { padding: 28px 0 18px; }
.page-head h1 { margin: 0; font-size: 22px; }
.page-head p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }

/* 视频卡片网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 18px; padding-bottom: 48px; }
.card { display: block; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.badge { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.card h3 { margin: 10px 0 4px; font-size: 15px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover h3 { color: var(--accent); }
.card .sub { color: var(--text-2); font-size: 13px; }

/* 播放页 */
.watch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 20px 0 48px; }
.player { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.v-title { margin: 16px 0 6px; font-size: 20px; line-height: 1.4; }
.v-meta { color: var(--text-2); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.v-desc { margin-top: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.v-desc:empty { display: none; }
.v-desc a { color: var(--accent); }
.side h4 { margin: 0 0 12px; font-size: 15px; }
.side .card { display: grid; grid-template-columns: 150px 1fr; gap: 10px; margin-bottom: 12px; }
.side .card h3 { margin: 0 0 2px; font-size: 14px; }
.side .thumb { border-radius: 6px; }

@media (min-width: 1100px) {
  .watch { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 12px; }
  .watch { padding-top: 0; }
  .watch .player { border-radius: 0; margin: 0 -12px; width: calc(100% + 24px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .card h3 { font-size: 14px; }
  .v-title { font-size: 17px; }
}

/* 评论区 */
.comments { margin-top: 28px; }
.c-head { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
.c-head h3 { margin: 0; font-size: 18px; }
.c-count { color: var(--text-2); font-weight: 400; font-size: 14px; margin-left: 4px; }
.c-tabs button { background: none; border: 0; color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; padding: 2px 8px; }
.c-tabs button.on { color: var(--text); font-weight: 600; }
.c-tabs button + button { border-left: 1px solid var(--border); }
.c-form { margin-bottom: 18px; }
.c-form textarea { width: 100%; resize: vertical; min-height: 64px; padding: 10px 12px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); font: inherit; font-size: 14px; }
.c-form textarea:focus, .c-nick:focus { outline: none; border-color: var(--accent); }
.c-form.sub { margin: 10px 0 4px; }
.c-form.sub textarea { min-height: 48px; }
.c-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.c-nick { width: 140px; padding: 6px 10px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: 13px; }
.c-msg { color: #e0716b; font-size: 13px; flex: 1; }
.c-send, .c-cancel { margin-left: auto; padding: 6px 18px; border: 0; border-radius: 6px; font: inherit; font-size: 14px; cursor: pointer; }
.c-send { background: var(--accent); color: #fff; }
.c-send:disabled { opacity: .6; cursor: default; }
.c-cancel { background: var(--surface-2); color: var(--text-2); margin-left: 0; }
.c-cancel + .c-send { margin-left: 0; }
.c-item { padding: 14px 0; border-top: 1px solid var(--border); }
.c-name { font-size: 13px; color: var(--text-2); font-weight: 600; }
.c-pin { margin-left: 8px; font-size: 11px; color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 0 4px; font-weight: 400; }
.c-text { margin-top: 4px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.c-foot { display: flex; align-items: center; gap: 16px; margin-top: 6px; color: var(--text-2); font-size: 12px; }
.c-foot button { background: none; border: 0; padding: 0; color: var(--text-2); font: inherit; cursor: pointer; }
.c-foot button:hover, .c-like.on { color: var(--accent); }
.c-replies { margin-top: 6px; }
.c-replies:empty { display: none; }
.c-reply { padding: 8px 0 0; }
.c-reply .c-text { margin-top: 0; }
.c-reply .c-name { margin-right: 2px; }
.c-to { color: var(--text-2); }
.c-to b { color: var(--accent); font-weight: 400; }
.c-replies, .c-replies-more, .c-slot { margin-left: 0; padding-left: 14px; border-left: 2px solid var(--surface-2); }
.c-replies-more { display: block; background: none; border: 0; border-left: 2px solid var(--surface-2); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; padding: 6px 0 0 14px; }
.c-replies-more:hover { color: var(--accent); }
.c-slot:empty { display: none; }
.c-more { display: block; margin: 16px auto 0; padding: 8px 28px; background: var(--surface); color: var(--text-2); border: 1px solid var(--border); border-radius: 20px; font: inherit; font-size: 13px; cursor: pointer; }
.c-hint { color: var(--text-2); text-align: center; font-size: 14px; }
.c-hint:empty { display: none; }
@media (max-width: 640px) { .c-nick { width: 110px; } }
