@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;600;700&display=swap");

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: #07080b;
  color: #f3efe6;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

body {
  background:
    radial-gradient(ellipse at 50% -10%, #2a2216 0%, #07080b 52%);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 8px;
}

.mark {
  color: #e8c36a;
  text-decoration: none;
  letter-spacing: 0.28em;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.now { color: #9a9386; font-size: 13px; }

.nav a {
  color: #e8c36a;
  text-decoration: none;
  font-size: 13px;
}

.shelf {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 22px 64px;
}

.kicker {
  color: #e8c36a;
  letter-spacing: 0.42em;
  font-size: 12px;
}

h1 {
  margin: 8px 0 28px;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111318;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  box-shadow: 0 18px 40px rgba(0,0,0,0.38);
}

.card:focus-visible { outline: 2px solid #e8c36a; outline-offset: 3px; }

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1c22;
  overflow: hidden;
}

.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb .preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover .preview,
.card:focus-visible .preview { opacity: 1; }

.play {
  position: absolute;
  inset: auto auto 14px 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(232, 195, 106, 0.92);
  color: #1a1408;
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.meta { padding: 14px 16px 16px; }
.meta h2 { font-size: 20px; }
.meta p { margin-top: 4px; color: #a39b8d; font-size: 13px; }

.player {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #000;
  display: grid;
  place-items: center;
}

.player[hidden] { display: none; }

.stage {
  width: min(1100px, 100%);
  padding: 48px 12px 24px;
}

.playing {
  color: #e8c36a;
  margin-bottom: 10px;
  font-size: 14px;
}

.hint {
  color: #b6b0a4;
  font-size: 13px;
  margin: -4px 0 10px;
}

.hint[hidden] { display: none; }

.player.wx-ios .stage {
  width: 100%;
  padding: 56px 0 0;
}

.player.wx-ios .stage video {
  max-height: calc(100vh - 88px);
  border-radius: 0;
}

.stage video {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  background: #000;
  border-radius: 12px;
}

.close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 16px;
  z-index: 3;
  border: 0;
  background: #2a2d36;
  color: #f3efe6;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .top { padding: 16px 16px 0; }
  .shelf { padding: 20px 14px 40px; }
}
