/* 怖哩怖哩 — 暗色恐怖风 + 可见图片背景 */
:root {
  --pink: #fb7299;
  --pink-hot: #ff6699;
  --pink-dim: #e85a8a;
  --pink-soft: rgba(251, 114, 153, 0.16);
  --bg: #0c0c10;
  --bg-white: rgba(18, 18, 24, 0.72);
  --panel: rgba(16, 16, 22, 0.55);
  --card: rgba(14, 14, 20, 0.42);
  --text: #e8e6ea;
  --text2: #b0aeb8;
  --muted: #8a8794;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(255, 255, 255, 0.06);
  --player-bg: #000;
  --ctrl-bg: #141418;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  --glass: rgba(12, 12, 18, 0.48);
  --glass-strong: rgba(14, 14, 20, 0.72);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif;
  --topbar-h: 64px;
  --max: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: #050508;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ========== 恐怖全页背景（常驻底图 + 轮换层，始终可见） ========== */
.horror-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* 底图永远在，不会被轮换闪没 */
  background:
    url("../assets/horror-bili/bg_void_corridor.png") center / cover no-repeat,
    #050508;
}
.horror-bg-layer {
  position: absolute;
  inset: -4%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  animation: horror-bg-cycle 42s ease-in-out infinite;
  filter: saturate(1.2) contrast(1.15) brightness(1.02);
  mix-blend-mode: normal;
}
.horror-bg-layer.l1 {
  background-image: url("../assets/horror-bili/bg_void_corridor.png");
  animation-delay: 0s;
}
.horror-bg-layer.l2 {
  background-image: url("../assets/horror-bili/bg_flesh_static.png");
  animation-delay: -14s;
}
.horror-bg-layer.l3 {
  background-image: url("../assets/horror-bili/bg_red_eye_fog.png");
  animation-delay: -28s;
}
@keyframes horror-bg-cycle {
  0%, 8% { opacity: 0; transform: scale(1.03); }
  16%, 32% { opacity: 0.88; transform: scale(1.09); }
  42%, 100% { opacity: 0; transform: scale(1.14); }
}
/* 轻遮罩：只压暗四角，中间尽量留图 */
.horror-bg-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 75% at 50% 40%, transparent 0%, transparent 55%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 12%, transparent 62%, rgba(0, 0, 0, 0.38) 100%);
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 4px
  );
  opacity: 0.4;
}

/* 内容层压在背景之上 */
.topbar,
#homeView,
#watchView,
.footer {
  position: relative;
  z-index: 1;
}

/* ========== 顶栏 ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(251, 114, 153, 0.18);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.topbar-inner {
  max-width: 2070px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.brand-name {
  font-weight: 800;
  font-size: 18px;
  color: var(--pink);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
}
.nav-tab {
  border: 0;
  background: transparent;
  color: var(--text2);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
}
.nav-tab:hover { background: rgba(255, 255, 255, 0.08); color: var(--pink); }
.nav-tab.active {
  color: var(--pink);
  font-weight: 600;
  background: var(--pink-soft);
}

.search-box {
  flex: 1;
  min-width: 140px;
  max-width: 500px;
  height: 40px;
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.search-box:focus-within {
  background: rgba(0, 0, 0, 0.45);
  border-color: var(--pink);
}
.search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 14px;
  outline: none;
  font-size: 14px;
}
.search-box input::placeholder { color: var(--muted); }
.search-btn {
  border: 0;
  background: transparent;
  color: var(--text2);
  width: 44px;
  display: grid;
  place-items: center;
}
.search-btn:hover { color: var(--pink); }
.search-ico {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 5px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.search-btn:hover .search-ico { transform: scale(1.06); filter: drop-shadow(0 0 4px rgba(251, 114, 153, 0.55)); }

.top-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}
.top-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--text2);
  padding: 4px 8px;
  border-radius: 6px;
  min-width: 48px;
  font-size: 11px;
  line-height: 1.2;
}
.top-icon-btn .ticon { font-size: 16px; line-height: 1.2; }
.top-icon-btn .ticon-img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}
.top-icon-btn:hover { color: var(--pink); background: rgba(251, 114, 153, 0.12); }
.top-icon-btn:hover .ticon-img {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 2px 10px rgba(251, 114, 153, 0.4);
}
.top-icon-btn {
  position: relative;
  cursor: pointer;
}
.top-icon-btn.active {
  color: var(--pink);
  background: rgba(251, 114, 153, 0.14);
}
.top-badge {
  position: absolute;
  top: 0;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(12, 12, 16, 0.9);
}
.upload-btn {
  margin: 0 6px 0 4px;
  height: 32px;
  padding: 0 12px 0 6px;
  border: 0;
  border-radius: 6px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.upload-btn .upload-ico {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.upload-btn:hover { background: var(--pink-hot); }
.user-avatar-btn {
  border: 0;
  background: transparent;
  padding: 0;
  margin-left: 4px;
  cursor: pointer;
  border-radius: 50%;
  line-height: 0;
}
.user-avatar-btn:hover .user-avatar {
  box-shadow: 0 0 0 2px rgba(251, 114, 153, 0.55);
  transform: scale(1.04);
}
.user-avatar-btn.active .user-avatar {
  box-shadow: 0 0 0 2px var(--pink);
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(251, 114, 153, 0.35);
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}

/* ========== 频道条 ========== */
.channel-bar {
  background: rgba(8, 8, 12, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.channel-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ch-pill {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text2);
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 13px;
  white-space: nowrap;
}
.ch-pill:hover {
  background: rgba(251, 114, 153, 0.15);
  color: var(--text);
  border-color: rgba(251, 114, 153, 0.35);
}
.ch-pill.active {
  background: var(--pink);
  color: #fff;
  font-weight: 600;
  border-color: transparent;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(8, 6, 12, 0.75) 0%, rgba(8, 6, 12, 0.35) 55%, rgba(8, 6, 12, 0.55) 100%),
    var(--banner) center/cover no-repeat;
  color: #fff;
  border-bottom: 1px solid rgba(251, 114, 153, 0.15);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-copy {
  display: flex;
  gap: 14px;
  align-items: center;
}
.hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.hero-copy h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
}
.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}
.hero-stats {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(251, 114, 153, 0.25);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ========== 首页主区 ========== */
.home-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 16px 56px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(8, 8, 14, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.section-tools { display: flex; align-items: center; gap: 10px; }
.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text2);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
}
.ghost-btn:hover { color: var(--pink); border-color: var(--pink); background: rgba(251, 114, 153, 0.12); }
.muted { color: var(--muted); font-size: 12px; }

/* ========== 视频卡片网格（仿 B 站） ========== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 20px; /* 更大间距 → 背景从缝隙透出 */
}
.card {
  background: transparent; /* 不挡背景：只罩封面，文字靠阴影可读 */
  border: 0;
  border-radius: 8px;
  overflow: visible;
  cursor: pointer;
  transition: transform 0.15s;
  padding: 0;
  box-shadow: none;
}
.card:hover {
  transform: translateY(-3px);
}
.cover-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a0a0e;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.card:hover .cover-wrap {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(251, 114, 153, 0.45);
}
.cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card:hover .cover-wrap img { transform: scale(1.04); }
.badge-dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 2px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.badge-tag {
  position: absolute;
  left: 6px;
  top: 6px;
  background: rgba(251, 114, 153, 0.92);
  color: #fff;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 2px;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-stats-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 18px 6px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.card:hover .card-stats-overlay { opacity: 1; }
.card:hover .badge-dur { opacity: 0; }
.card-body { padding: 10px 2px 0; }
.card-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #f0eef4;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}
.card:hover .card-title { color: var(--pink); }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: rgba(200, 198, 210, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.4;
}
.card-up { color: rgba(200, 198, 210, 0.85); }
.card-up:hover { color: var(--pink); }

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 28px 16px 40px;
  color: rgba(200, 200, 210, 0.7);
  font-size: 12px;
  background: rgba(6, 6, 10, 0.45);
  backdrop-filter: blur(6px);
}
.footer p { margin: 4px 0; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 16px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
}

/* ========== 播放页 ========== */
.watch-view {
  background: transparent;
  min-height: calc(100vh - var(--topbar-h));
}
.watch-view[hidden] { display: none !important; }
#homeView[hidden] { display: none !important; }

.watch-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 20px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px; /* 主栏/侧栏缝隙露出背景 */
  align-items: start;
}

.watch-left { min-width: 0; }

/* —— 播放器 —— */
.bili-player {
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  user-select: none;
}
.player-cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transition: filter 0.4s ease, transform 0.8s ease;
}
.player-stage.is-playing .player-cover {
  animation: kenburns 12s ease-in-out infinite alternate;
  filter: contrast(1.05) saturate(1.05);
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.player-stage.is-playing .play-center,
.player-stage.is-playing .player-hint { opacity: 0; pointer-events: none; }

.play-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: none;
  z-index: 3;
  transition: transform 0.15s, opacity 0.2s, filter 0.15s;
  pointer-events: none;
  padding: 0;
}
.play-center .play-ico {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(251, 114, 153, 0.55);
  filter: drop-shadow(0 0 10px rgba(251, 114, 153, 0.35));
}
.play-triangle { padding-left: 4px; }
.player-stage:hover .play-center {
  transform: translate(-50%, -50%) scale(1.06);
  filter: brightness(1.08);
}
.player-hint {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  z-index: 2;
  white-space: nowrap;
  transition: opacity 0.2s;
  pointer-events: none;
}

.danmaku-layer {
  position: absolute;
  inset: 8% 0 18%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.danmaku-layer.off { display: none; }
.danmaku {
  position: absolute;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 0 0 4px rgba(0, 0, 0, 0.6);
  animation: fly linear forwards;
  will-change: transform;
}
@keyframes fly {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 100vw)); }
}

/* 控制栏 */
.player-ctrl {
  background: var(--ctrl-bg);
  color: #fff;
  padding: 0 8px 6px;
  user-select: none;
}
.progress-wrap {
  position: relative;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0 -2px;
}
.progress-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
.progress-buf {
  position: absolute;
  left: 0;
  height: 3px;
  width: 62%;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  pointer-events: none;
}
.progress-bar {
  position: absolute;
  left: 0;
  height: 3px;
  background: var(--pink);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}
.progress-knob {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  z-index: 2;
  left: 0%;
  opacity: 0;
  transition: opacity 0.15s;
}
.progress-wrap:hover .progress-knob,
.progress-wrap:hover::before { height: 4px; }
.progress-wrap:hover .progress-bar,
.progress-wrap:hover .progress-buf { height: 4px; }
.progress-wrap:hover .progress-knob { opacity: 1; }

.ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
}
.ctrl-left, .ctrl-right {
  display: flex;
  align-items: center;
  gap: 2px;
}
.ctrl-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 4px;
  line-height: 1;
  white-space: nowrap;
}
.ctrl-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ctrl-btn.dm-toggle.on { color: var(--pink); }
.ctrl-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}

/* 弹幕发送条 */
.dm-send-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1f1f1f;
  border-top: 1px solid #2a2a2a;
  padding: 8px 10px;
}
.dm-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
.dm-input {
  flex: 1;
  height: 32px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #181818;
  color: #eee;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
}
.dm-input:focus { border-color: var(--pink); }
.dm-input::placeholder { color: #666; }
.dm-send {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.dm-send:hover { background: var(--pink-hot); }

/* 宽屏 / 全屏 */
.bili-player.is-wide {
  max-width: none;
}
.watch-inner.is-wide {
  grid-template-columns: 1fr;
}
.watch-inner.is-wide .watch-right { display: none; }
.bili-player.is-fs {
  position: fixed;
  inset: 0;
  z-index: 500;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.bili-player.is-fs .player-stage {
  flex: 1;
  aspect-ratio: auto;
  height: auto;
}
.bili-player.is-fs .dm-send-bar { display: none; }

/* 视频信息 */
.video-info {
  margin-top: 14px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.v-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}
.v-data-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.v-stats {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.v-toolbar {
  display: flex;
  gap: 4px;
}
.tool-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--text2);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.tool-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--pink); }
.tool-btn.on { color: var(--pink); }
.tool-btn .t-ico { font-size: 16px; }
.tool-btn .t-ico-img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
}
.tool-btn .t-num { font-variant-numeric: tabular-nums; }

/* UP 卡 */
.up-card {
  margin-top: 14px;
  padding: 14px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.up-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.up-info { flex: 1; min-width: 0; }
.up-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.up-fans {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.follow-btn {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.follow-btn:hover { background: var(--pink-hot); }
.follow-btn.on {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text2);
}

.v-desc {
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.75;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: pre-wrap;
  letter-spacing: 0.02em;
  max-height: min(52vh, 520px);
  overflow-y: auto;
}
.v-desc::before {
  content: "简介";
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

/* 相关推荐 */
.watch-right {
  position: sticky;
  top: calc(var(--topbar-h) + 12px);
  align-self: start;
  max-height: calc(100vh - var(--topbar-h) - 24px);
  overflow-y: auto;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.related-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.link-back {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  padding: 4px 6px;
  border-radius: 4px;
}
.link-back:hover { color: var(--pink); background: var(--pink-soft); }

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rel-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  cursor: pointer;
  border-radius: 6px;
  padding: 2px;
}
.rel-item:hover .rel-title { color: var(--pink); }
.rel-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a1e;
}
.rel-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rel-dur {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  padding: 0 4px;
  border-radius: 2px;
}
.rel-body { min-width: 0; padding-top: 2px; }
.rel-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.rel-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ========== 评论 ========== */
.comment-section {
  margin-top: 16px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.comment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.comment-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.comment-warn {
  font-size: 12px;
  color: var(--pink);
  opacity: 0.9;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: none;
  overflow: visible;
  margin-top: 16px;
  margin-bottom: 0;
  padding-right: 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.comment-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}
.comment-item .c-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
}
.comment-item .c-main { min-width: 0; }
.comment-item .c-name {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 4px;
  font-weight: 500;
}
.comment-item .c-name .c-time {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.comment-item .c-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}

img.horror-emoji {
  display: inline !important;
  width: 1.25em;
  height: 1.25em;
  max-width: 1.25em;
  max-height: 1.25em;
  vertical-align: -0.2em;
  object-fit: contain;
  margin: 0 0.06em;
  border: 0;
  padding: 0;
  cursor: default;
}

.comment-compose {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.compose-main { min-width: 0; }
.compose-input-row { display: block; }
.comment-editor {
  min-height: 64px;
  max-height: 140px;
  overflow-y: auto;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  outline: none;
}
.comment-editor:focus {
  background: rgba(0, 0, 0, 0.55);
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(251, 114, 153, 0.2);
}
.comment-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}
.compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.emoji-toggle,
.comment-send {
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text2);
  cursor: pointer;
  padding: 0 14px;
  font-size: 13px;
}
.emoji-toggle:hover {
  border-color: var(--pink);
  color: var(--pink);
}
.comment-send {
  background: var(--pink);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}
.comment-send:hover {
  background: var(--pink-hot);
  color: #fff;
}
.emoji-picker {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(12, 12, 18, 0.92);
  padding: 10px;
  max-height: 220px;
  overflow: auto;
}
.emoji-picker-head {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 4px;
}
.emoji-grid button {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}
.emoji-grid button:hover {
  background: var(--pink-soft);
  border-color: rgba(251, 114, 153, 0.35);
}
.emoji-grid button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.comment-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0;
  text-align: center;
}

/* ========== 功能页：消息/动态/收藏/历史/空间 ========== */
.panel-view {
  min-height: calc(100vh - var(--topbar-h));
  padding: 16px 16px 40px;
}
.panel-inner {
  max-width: 960px;
  margin: 0 auto;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.panel-back {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.panel-back:hover { color: var(--pink); border-color: rgba(251, 114, 153, 0.4); }
.panel-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.panel-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.panel-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.panel-tab {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text2);
  border-radius: 16px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
}
.panel-tab:hover { color: var(--pink); }
.panel-tab.active {
  background: rgba(251, 114, 153, 0.18);
  border-color: rgba(251, 114, 153, 0.45);
  color: var(--pink);
}
.panel-body {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-height: 320px;
  overflow: hidden;
}
.panel-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.panel-empty strong { color: var(--text2); }

/* 消息 */
.msg-list { display: flex; flex-direction: column; }
.msg-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  align-items: start;
  text-align: left;
  width: 100%;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: inherit;
  font: inherit;
}
.msg-item:hover { background: rgba(251, 114, 153, 0.06); }
.msg-item.unread { background: rgba(251, 114, 153, 0.08); }
.msg-item.unread .msg-name::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--pink);
  vertical-align: middle;
}
.msg-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(251, 114, 153, 0.3);
}
.msg-main { min-width: 0; }
.msg-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.msg-preview {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.msg-time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 2px;
}
.msg-detail {
  padding: 20px 18px 24px;
}
.msg-detail-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.msg-detail-body {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.85;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.msg-detail-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 动态 */
.feed-list { display: flex; flex-direction: column; }
.feed-card {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.feed-card-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.feed-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.feed-meta .feed-name { font-weight: 600; color: var(--text); font-size: 14px; }
.feed-meta .feed-ago { font-size: 12px; color: var(--muted); margin-top: 2px; }
.feed-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 12px;
  white-space: pre-wrap;
}
.feed-video {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  font: inherit;
}
.feed-video:hover { border-color: rgba(251, 114, 153, 0.35); }
.feed-video img {
  width: 100%;
  height: 94px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.feed-v-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-v-sub { font-size: 12px; color: var(--muted); }
.feed-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}
.feed-act {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.feed-act:hover, .feed-act.on { color: var(--pink); background: rgba(251, 114, 153, 0.12); }

/* 收藏 / 历史 列表 */
.plist {
  display: flex;
  flex-direction: column;
}
.p-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: center;
  cursor: pointer;
  width: 100%;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}
.p-item:hover { background: rgba(251, 114, 153, 0.06); }
.p-cover {
  position: relative;
  width: 160px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.p-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 3px;
}
.p-body { min-width: 0; }
.p-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }
.p-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.p-act-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.p-act-btn:hover { color: var(--pink); border-color: rgba(251, 114, 153, 0.4); }
.p-act-btn.danger:hover { color: #ff8a8a; border-color: rgba(255, 100, 100, 0.4); }

/* 个人空间 */
.profile-banner {
  height: 140px;
  background:
    linear-gradient(180deg, rgba(12, 12, 16, 0.15), rgba(12, 12, 16, 0.92)),
    url("../assets/horror-bili/banner.png") center/cover;
  border-radius: 12px 12px 0 0;
}
.profile-card {
  display: flex;
  gap: 16px;
  padding: 0 18px 18px;
  margin-top: -36px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.profile-av {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(20, 20, 28, 0.95);
  box-shadow: 0 0 0 2px rgba(251, 114, 153, 0.45);
  background: #111;
}
.profile-info { flex: 1; min-width: 200px; padding-bottom: 4px; }
.profile-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.profile-uid { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.profile-sign {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  max-width: 520px;
}
.profile-stats {
  display: flex;
  gap: 18px;
  padding: 0 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}
.profile-stat { text-align: center; min-width: 56px; }
.profile-stat b {
  display: block;
  font-size: 16px;
  color: var(--text);
  font-weight: 700;
}
.profile-stat span { font-size: 12px; color: var(--muted); }
.profile-section {
  padding: 16px 18px 20px;
}
.profile-section h4 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text);
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.profile-mini {
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
}
.profile-mini .pm-cover {
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  margin-bottom: 6px;
}
.profile-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-mini .pm-title {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.profile-edit {
  display: grid;
  gap: 10px;
  max-width: 420px;
}
.field-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.field-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.field-input:focus { border-color: rgba(251, 114, 153, 0.5); }
.field-area { resize: vertical; min-height: 80px; }
.profile-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text2);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
}
.ghost-btn:hover { color: var(--pink); border-color: rgba(251, 114, 153, 0.4); }

/* 弹层 / Toast */
.hb-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.62);
  display: grid;
  place-items: center;
  padding: 16px;
}
.hb-modal[hidden] { display: none !important; }
.hb-modal-card {
  width: min(480px, 100%);
  background: rgba(18, 18, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.hb-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hb-modal-head h3 { margin: 0; font-size: 16px; color: var(--text); }
.hb-modal-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.hb-modal-close:hover { color: var(--pink); }
.hb-modal-body { padding: 14px 16px 8px; }
.upload-tip {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin: 0 0 12px;
}
.upload-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--pink);
}
.hb-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px 16px;
}
.hb-toast {
  position: fixed;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  z-index: 1400;
  background: rgba(20, 20, 28, 0.94);
  color: var(--text);
  border: 1px solid rgba(251, 114, 153, 0.35);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  max-width: min(90vw, 420px);
  text-align: center;
  line-height: 1.5;
}
.hb-toast[hidden] { display: none !important; }

/* ========== 响应式 ========== */
@media (max-width: 1400px) {
  .video-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .watch-inner { grid-template-columns: 1fr; }
  .watch-right {
    position: static;
    max-height: none;
  }
  .nav-tabs { display: none; }
}
@media (max-width: 720px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .top-icon-btn .tlabel { display: none; }
  .brand-name { display: none; }
  .upload-btn span { display: none; }
  .upload-btn { padding: 0 8px; }
  .rel-item { grid-template-columns: 120px 1fr; }
  .p-item { grid-template-columns: 120px 1fr; }
  .p-cover { width: 120px; height: 68px; }
  .p-actions { display: none; }
  .feed-video { grid-template-columns: 120px 1fr; }
  .feed-video img { height: 68px; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .msg-item { grid-template-columns: 40px 1fr auto; }
  .msg-av { width: 40px; height: 40px; }
}
@media (max-width: 420px) {
  .video-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
}
