/* =====================================================================
   视频站 · 公开页面样式（Neo-brutalism）
   奶油底 #fdf5e6 + 4px 黑描边 + 硬阴影 + 黄/粉/紫/绿
   ===================================================================== */

:root {
  --cream: #fdf5e6;
  --panel: #ffefd5;
  --ink: #111;
  --muted: #6b6257;
  --yellow: #ffdf5d;
  --pink: #ff8fab;
  --purple: #cdb4ff;
  --green: #b8f2a1;
  --red: #ff5252;
  --blue: #8ecae6;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }

::selection { background: var(--yellow); color: var(--ink); }

::-webkit-scrollbar { width: 13px; height: 13px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, .08); border-radius: 6px; }
::-webkit-scrollbar-thumb { background: var(--yellow); border: 3px solid var(--ink); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #ffd166; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------------- 顶栏 ---------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--yellow);
  border-bottom: 4px solid var(--ink);
}
.top-in { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-icon {
  width: 36px; height: 36px;
  background: var(--pink);
  border: 3px solid var(--ink);
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: .9rem;
  padding-left: 2px;
  box-shadow: 3px 3px 0 var(--ink);
  flex-shrink: 0;
}
.brand-text {
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: -.6px;
  line-height: 1.05;
  text-transform: uppercase;
}
.brand-text small {
  display: block;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  opacity: .55;
  margin-top: 2px;
}
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 19px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: all .15s ease;
  white-space: nowrap;
  line-height: 1.1;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-sm { padding: 7px 13px; font-size: .68rem; border-width: 2px; border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn-pink { background: var(--pink); }
.btn-purple { background: var(--purple); }
.btn-green { background: var(--green); }
.btn-cream { background: var(--cream); }

/* ---------------- 首页 hero ---------------- */
.hero { padding: 54px 0 34px; }
.hero-kicker {
  display: inline-block;
  background: var(--purple);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
}
.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: .92;
  margin: 20px 0 14px;
  text-transform: uppercase;
}
.hero h1 .hl {
  display: inline-block;
  margin-left: 8px;
  color: var(--pink);
  -webkit-text-stroke: 2.5px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
}
.hero-sub {
  max-width: 560px;
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--muted);
}
.chips { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 5px 11px;
  font-size: .7rem;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}
.chip.y { background: var(--yellow); }
.chip.g { background: var(--green); }
.chip.p { background: var(--purple); }
.chip.k { background: var(--pink); }

/* ---------------- 视频卡片 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(312px, 1fr));
  gap: 28px;
  padding: 8px 0 68px;
}
.vcard {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
  transition: all .16s ease;
}
.vcard:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0 var(--ink); }
.vthumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-bottom: 4px solid var(--ink);
  background: linear-gradient(135deg, var(--c1, #ff8fab), var(--c2, #cdb4ff));
  overflow: hidden;
}
.vthumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
}
.vph-ico {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(17, 17, 17, .92);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 4px 4px 0 rgba(17, 17, 17, .35);
  display: grid; place-items: center;
  font-size: 1.3rem;
  padding-left: 5px;
  flex-shrink: 0;
}
.vph-txt {
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .6px;
  background: rgba(255, 255, 255, .85);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 3px 9px;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vdur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: var(--ink);
  color: #fff;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .6px;
  padding: 3px 8px;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, .85);
}
.vbody { padding: 15px 17px 17px; display: flex; flex-direction: column; flex: 1; }
.vtitle {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -.4px;
  line-height: 1.35;
  margin: 0 0 7px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vdesc {
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.vdesc.is-empty { opacity: .55; font-style: italic; }
.vmeta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.vchip {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: .63rem;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------------- 空状态 ---------------- */
.empty-box {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--panel);
  border: 4px dashed var(--ink);
  border-radius: 20px;
  padding: 54px 22px;
}
.empty-ico { font-size: 2.6rem; }
.empty-box h3 { font-size: 1.15rem; font-weight: 900; margin: 12px 0 6px; }
.empty-box p { font-size: .8rem; font-weight: 600; color: var(--muted); margin: 0 0 20px; }

/* ---------------- 播放页 ---------------- */
.watch { padding: 26px 0 70px; flex: 1; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  font-weight: 800;
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 6px 12px;
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 20px;
  transition: all .13s ease;
}
.back:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }

.player-shell {
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 10px 10px 0 var(--ink);
  background: #000;
  overflow: hidden;
}
.player-shell video {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: #000;
  outline: none;
}

.watch-head { margin: 30px 0 20px; }
.watch-head h1 {
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -1.3px;
  line-height: 1.15;
  margin: 0 0 14px;
  word-break: break-word;
}

.desc-card {
  background: var(--panel);
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: 22px 24px 24px;
}
.desc-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.2px;
  border-bottom: 4px solid var(--ink);
  padding-bottom: 10px;
  margin: 0 0 15px;
}
.desc-ico {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 8px;
  font-size: .8rem;
  flex-shrink: 0;
}
.desc-body {
  white-space: pre-wrap;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.9;
  color: #2a251f;
  word-break: break-word;
}
.desc-body.is-empty { opacity: .5; font-style: italic; }

.watch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.addr-hint {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: .66rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(17, 17, 17, .05);
  border: 2px dashed rgba(17, 17, 17, .3);
  border-radius: 8px;
  padding: 6px 10px;
  word-break: break-all;
}

/* ---------------- 404 ---------------- */
.notfound { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 22px; }
.nf-card {
  text-align: center;
  background: var(--panel);
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 12px 12px 0 var(--ink);
  padding: 40px 34px 36px;
  max-width: 460px;
}
.nf-code {
  font-size: 4.4rem;
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 1;
  color: var(--pink);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
}
.nf-card h1 { font-size: 1.2rem; font-weight: 900; margin: 18px 0 8px; }
.nf-card p { font-size: .8rem; font-weight: 600; color: var(--muted); margin: 0 0 22px; line-height: 1.7; }

/* ---------------- 页脚 ---------------- */
.foot {
  margin-top: auto;
  border-top: 4px solid var(--ink);
  background: var(--panel);
  padding: 18px 0;
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
}
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 24px; }
  .hero h1 { letter-spacing: -2px; }
  .grid { gap: 20px; padding-bottom: 48px; grid-template-columns: 1fr; }
  .vcard { box-shadow: 7px 7px 0 var(--ink); }
  .player-shell, .desc-card { box-shadow: 6px 6px 0 var(--ink); border-width: 3px; }
  .top-in { height: 58px; }
  .brand-text { font-size: .92rem; }
  .brand-text small { display: none; }
  .watch-head { margin-top: 22px; }
  .desc-card { padding: 18px 16px 20px; }
  .foot-in { justify-content: center; text-align: center; }
}
