
:root {
  --bg: #0f1117;
  --panel: #171a22;
  --panel-2: #202431;
  --text: #f6f7fb;
  --muted: #a7afc2;
  --line: rgba(255,255,255,.10);
  --accent: #27d17f;
  --accent-2: #158fff;
  --danger: #ff4d4f;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --shadow: 0 18px 48px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(39, 209, 127, .14), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(21, 143, 255, .12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 23, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #0b6b3c);
  box-shadow: 0 0 0 4px rgba(39, 209, 127, .08);
}

.search-box {
  position: relative;
  max-width: 640px;
  width: 100%;
}

.search-box .bi {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-box input {
  padding-left: 44px;
  color: var(--text);
  background: #0b0d12;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search-box input:focus {
  color: var(--text);
  background: #0b0d12;
  border-color: rgba(39, 209, 127, .55);
  box-shadow: 0 0 0 .25rem rgba(39, 209, 127, .12);
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(39, 209, 127, .12), rgba(21, 143, 255, .05)),
    radial-gradient(circle at 75% 30%, rgba(255,255,255,.08), transparent 18rem);
}

.hero-card {
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.26), transparent 12rem),
    linear-gradient(135deg, #1d8f5d, #19345f 52%, #10121a);
}

.video-poster[data-accent="blue"] {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 12rem),
    linear-gradient(135deg, #174ea6, #1b6c8f 52%, #10121a);
}

.video-poster[data-accent="orange"] {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 12rem),
    linear-gradient(135deg, #b44d22, #7a332a 52%, #10121a);
}

.video-poster[data-accent="teal"] {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 12rem),
    linear-gradient(135deg, #0d766e, #164e63 52%, #10121a);
}

.video-poster[data-accent="violet"] {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 12rem),
    linear-gradient(135deg, #4c1d95, #1e3a8a 52%, #10121a);
}

.video-poster[data-accent="red"] {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 12rem),
    linear-gradient(135deg, #991b1b, #713f12 52%, #10121a);
}

.poster-label {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.play-pill {
  width: 52px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.56);
  border: 1px solid rgba(255,255,255,.20);
}

.region-pill, .tag-pill, .category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255,255,255,.06);
  color: #dfe5f2;
  font-size: .85rem;
}

.category-chip.active {
  background: rgba(39, 209, 127, .16);
  border-color: rgba(39, 209, 127, .45);
  color: white;
}

.video-card {
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(39, 209, 127, .42);
  background: rgba(255,255,255,.07);
}

.video-title {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
}

.video-meta {
  color: var(--muted);
  font-size: .88rem;
}

.section-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    radial-gradient(circle at 90% 0%, rgba(39, 209, 127, .14), transparent 24rem);
  box-shadow: var(--shadow);
}

.section-prose {
  color: #d5dbea;
  font-size: 1.03rem;
  line-height: 1.75;
}

.player-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
}

.player-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.soft-panel {
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.empty-state {
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: rgba(255,255,255,.035);
}

@media (max-width: 768px) {
  .topbar .container {
    gap: 12px;
  }

  .search-box {
    order: 3;
    max-width: none;
  }

  .display-4 {
    font-size: 2.35rem;
  }
}
