:root {
  --bg: #070708;
  --card: #121214;
  --line: #26262c;
  --txt: #f3f3f5;
  --dim: #9a9aa3;
  --gold: #e7b84a;
  --gold2: #c48a18;
  --red: #e23d5c;
  --overlay: rgba(0, 0, 0, 0.78);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--txt); }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.45;
}
a { color: var(--gold); text-decoration: none; }
img, video { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7,7,8,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 16px;
}
.logo {
  color: var(--txt);
  font-weight: 900;
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  display: flex; align-items: baseline;
}
.logo b { color: var(--gold); letter-spacing: .2em; }
.tag { color: var(--dim); font-size: .78rem; max-width: 520px; }

.slot { margin: 16px 0; }
.slot:empty { display: none; }
.slot img, .slot video, .grid-banner img, .grid-banner video {
  width: 100%; border-radius: 8px;
}
.slot a, .grid-banner a { display: block; }
.grid-banner { grid-column: 1 / -1; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 8px 0 28px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--gold2); }
.thumb {
  position: relative; aspect-ratio: 16/10;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(231,184,74,.18), transparent 50%),
    linear-gradient(160deg, #1a1a22, #0c0c10 55%, #161018);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%);
}
.play i {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 2px solid var(--gold);
  display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(231,184,74,.12);
}
.play i::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--gold);
  margin-left: 3px;
}
.play.spin i {
  border-color: rgba(231,184,74,.25);
  border-top-color: var(--gold);
  animation: spin .5s linear infinite;
  box-shadow: none;
}
.play.spin i::after { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.dur {
  position: absolute; right: 8px; bottom: 8px;
  background: #000; color: #fff; font-size: .72rem;
  padding: 3px 6px; border-radius: 4px; font-variant-numeric: tabular-nums;
}
.meta { padding: 10px 10px 12px; }
.meta h3 {
  font-size: .86rem; font-weight: 650; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--dim); font-size: .85rem;
}
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.foot nav a { color: var(--dim); }
.foot nav a:hover { color: var(--gold); }

.legal { padding: 36px 0 64px; max-width: 760px; }
.legal h1 { font-size: 1.6rem; margin-bottom: 14px; }
.legal p { color: #c9c9d1; margin-bottom: 12px; white-space: pre-wrap; }
.mail { color: var(--gold); }

.mask {
  position: fixed; inset: 0; z-index: 50;
  background: var(--overlay);
  display: none; place-items: center; padding: 18px;
}
.mask.on { display: grid; }
.modal {
  width: min(520px, 100%);
  background: #161618;
  border: 1px solid #3a3a42;
  border-radius: 14px;
  padding: 26px 24px 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.modal h2 { font-size: 1.35rem; margin-bottom: 8px; }
.modal .kicker { color: var(--gold); font-size: .92rem; font-weight: 700; margin-bottom: 12px; }
.modal p { color: #c8c8d0; font-size: .95rem; margin-bottom: 18px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  border: 0; cursor: pointer; border-radius: 8px;
  padding: 12px 16px; font-weight: 700; font-size: .92rem;
}
.btn.ghost { background: #2a2a30; color: #ddd; flex: 1; }
.btn.go { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: #1a1204; flex: 1.3; }
.btn:hover { filter: brightness(1.06); }

@media (max-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } .tag { display: none; } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }
