:root {
  --bg: #08090d;
  --panel: #11131a;
  --panel-2: #171a23;
  --text: #f4f5f7;
  --muted: #a7adbb;
  --line: rgba(255,255,255,.1);
  --red: #e50914;
  --red-dark: #b70710;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(229,9,20,.18), transparent 34rem), var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8,9,13,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--red);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(229,9,20,.35);
}

.brand-text { font-size: 20px; }
.brand-text b { color: var(--red); }

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.top-nav a:hover { color: var(--text); }

.hero {
  padding: 72px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: center;
}
.eyebrow {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 86px);
  line-height: .92;
  letter-spacing: -.08em;
}
.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--line);
}
.btn.primary { background: var(--red); border-color: var(--red); }
.btn.primary:hover { background: var(--red-dark); }
.btn.ghost { color: var(--text); background: rgba(255,255,255,.05); }

.hero-card {
  min-height: 260px;
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: grid;
  place-content: center;
  text-align: center;
}
.hero-card span { font-size: 54px; }
.hero-card strong { font-size: 66px; line-height: 1; }
.hero-card p { color: var(--muted); margin: 8px 0 0; }

.controls {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.search-box input {
  width: 100%;
  padding: 16px 18px;
  background: #05060a;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font-size: 16px;
  outline: none;
}
.search-box input:focus { border-color: rgba(229,9,20,.7); }
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip, .server-btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}
.chip.active, .server-btn.active {
  background: var(--red);
  border-color: var(--red);
}

.section-title {
  margin: 34px 0 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.section-title h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.section-title p { margin: 0; color: var(--muted); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.video-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229,9,20,.55);
}
.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.video-card:hover img { transform: scale(1.06); }
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(229,9,20,.9);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,.72);
  font-size: 12px;
  font-weight: 800;
}
.card-content { padding: 14px; }
.video-title {
  display: block;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}
.empty-state {
  padding: 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.watch-page { padding: 36px 0 60px; }
.back-link { color: var(--muted); font-weight: 700; }
.back-link:hover { color: var(--text); }
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 20px;
}
.player-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.player-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.server-box, .notice, .comments-box, .sidebar {
  margin-top: 16px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.server-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.watch-title {
  margin: 24px 0 10px;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: -.06em;
  line-height: 1;
}
.watch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}
.watch-meta span:not(:last-child)::after { content: "•"; margin-left: 10px; color: #555; }
.watch-description {
  color: #d5d8e0;
  line-height: 1.8;
  font-size: 17px;
}
.notice { color: var(--muted); line-height: 1.6; }
.comments-box h2, .sidebar h2 { margin-top: 0; }
.disqus-placeholder {
  color: var(--muted);
  background: #090a0f;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 16px;
  line-height: 1.6;
}
.disqus-placeholder code {
  color: #fff;
  background: rgba(255,255,255,.08);
  padding: 2px 6px;
  border-radius: 6px;
}
.related-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  line-height: 1.35;
}
.related-card:last-child { border-bottom: 0; }
.related-card img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.muted { color: var(--muted); }

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-inner {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-inner a { color: var(--text); }

@media (max-width: 980px) {
  .hero-grid, .watch-layout { grid-template-columns: 1fr; }
  .hero-card { min-height: 180px; }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .top-nav { display: none; }
  .hero { padding-top: 46px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .container { width: min(100% - 20px, 1180px); }
  .controls { padding: 14px; }
  .card-content { padding: 11px; }
  .video-title { font-size: 14px; }
  .meta { font-size: 12px; }
}

@media (max-width: 440px) {
  .video-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
