body.clips-page { background: #000; }
.wrap {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
}
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
h1 {
  font-family: var(--display);
  font-size: clamp(1.15rem, 3.6vw, 1.85rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
}
h1 span { color: var(--rose); }
.tag { color: var(--muted); font-size: 0.82rem; margin-top: 3px; }
.meta { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  grid-template-areas:
    "player list"
    "social list";
  gap: 16px;
  align-items: start;
}
.player { grid-area: player; }
.social { grid-area: social; }
.side { grid-area: list; }
.player {
  background: #000;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.player video,
#vid {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}
.now {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.now-k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.now-t {
  font-family: var(--display);
  font-size: 1.12rem;
  margin-top: 4px;
  text-transform: uppercase;
}
.now-s { color: var(--muted); font-size: 0.85rem; margin-top: 5px; }
.social { display: grid; gap: 12px; margin-top: 12px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px 16px;
}
.card h2 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.avg-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.avg-num {
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--gold);
}
.avg-sub { color: var(--muted); font-size: 0.85rem; }
.stars { display: flex; gap: 4px; margin-top: 10px; }
.stars button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  color: rgba(232, 196, 138, 0.28);
  min-width: 44px;
  min-height: 44px;
  transition: color 0.12s ease, transform 0.12s ease;
}
.stars button.on,
.stars button.hover { color: var(--gold); }
.stars button:hover { transform: translateY(-1px); }
.rate-hint { color: var(--muted); font-size: 0.8rem; margin-top: 6px; min-height: 1.1em; }
.name-row { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 8px; }
input, textarea {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 16px;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}
textarea { min-height: 76px; resize: vertical; }
.post {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  cursor: pointer;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffd7a1, var(--gold));
  color: #1a080e;
  width: 100%;
}
.post:hover { filter: brightness(1.06); }
.post:disabled { opacity: 0.55; cursor: not-allowed; }
.cmt {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cmt:last-child { border-bottom: 0; }
.av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 0.9rem;
  color: #1a080e;
}
.cmt-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cmt-h b { font-size: 0.92rem; }
.cmt-h time { color: var(--muted); font-size: 0.78rem; }
.cmt-b { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.del {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--err);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 0;
  text-decoration: underline;
}
.empty { color: var(--muted); padding: 8px 0; }
.side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.side-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sort { display: flex; gap: 6px; }
.sort button {
  appearance: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  min-height: 36px;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sort button.on {
  color: #1a080e;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 700;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(78dvh, 860px);
  overflow: auto;
  padding-right: 2px;
}
.clip {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  min-height: 64px;
  cursor: pointer;
}
.clip:hover { border-color: rgba(232, 196, 138, 0.5); }
.clip.on {
  border-color: var(--rose);
  box-shadow: inset 3px 0 0 var(--rose);
  background: rgba(255, 45, 106, 0.08);
}
.thumb {
  width: 96px; height: 54px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
  display: block;
}
.t { font-weight: 700; overflow-wrap: anywhere; }
.s { color: var(--muted); font-size: 0.78rem; margin-top: 3px; }
.err { color: var(--err); font-size: 0.85rem; }
.site-foot {
  margin-top: 22px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-foot a { color: var(--gold); }
@media (max-width: 860px) {
  .wrap { padding: 12px 12px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "player"
      "list"
      "social";
    gap: 12px;
  }
  .list { max-height: min(48dvh, 380px); }
  header.top { align-items: flex-start; gap: 10px; }
  .thumb { width: 84px; height: 48px; }
}
