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

:root {
  --bg: #111110;
  --bg2: #181816;
  --bg3: #1F1E1C;
  --amber: #F5A623;
  --amber-dim: rgba(245,166,35,0.12);
  --amber-border: rgba(245,166,35,0.22);
  --white: #F0EDE8;
  --grey: #7A7670;
  --light: #C4BFB8;
  --border: rgba(240,237,232,0.08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px;
  background: rgba(17,17,16,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--amber); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--grey);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--amber);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.85; }

.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 56px 48px;
}

.page-header {
  margin-bottom: 40px;
}

.page-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--light);
  font-weight: 300;
  max-width: 640px;
}

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 88px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 16px 18px 10px;
}

.channel-list {
  list-style: none;
}

.channel-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: none;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.channel-btn:hover,
.channel-btn.active {
  background: var(--amber-dim);
  color: var(--white);
}

.channel-btn .icon { font-size: 1rem; }

.main-panel { min-width: 0; }

.player-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
}

.player-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-meta {
  padding: 18px 20px 20px;
}

.player-meta h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 6px;
}

.player-meta p {
  font-size: 0.85rem;
  color: var(--grey);
  font-family: 'JetBrains Mono', monospace;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 10px;
  margin-bottom: 24px;
}

.search-bar input,
.search-bar select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  padding: 11px 14px;
}

.search-bar input:focus,
.search-bar select:focus {
  outline: none;
  border-color: var(--amber-border);
}

.btn-primary,
.btn-ghost {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.2s, border-color 0.2s;
}

.btn-primary {
  color: var(--bg);
  background: var(--amber);
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  color: var(--light);
  background: transparent;
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: rgba(240,237,232,0.3); }

.status-msg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--grey);
  padding: 12px 0 4px;
}

.status-msg.error { color: #f87171; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.video-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  text-align: left;
}

.video-card:hover {
  border-color: var(--amber-border);
  transform: translateY(-2px);
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #000;
}

.video-card-body {
  padding: 14px 16px 16px;
}

.video-card-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--white);
}

.video-card-body p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--grey);
  line-height: 1.5;
}

.cta-strip {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-strip h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
}

.cta-strip p {
  color: var(--light);
  font-size: 0.9rem;
  font-weight: 300;
}

footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 36px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 56px;
}

.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

.footer-logo span { color: var(--amber); }

.footer-links,
.footer-social {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a,
.footer-social a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-social a:hover { color: var(--white); }

.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--grey);
}

.footer-note {
  width: 100%;
  font-size: 0.72rem;
  color: var(--grey);
  font-weight: 300;
  margin-top: 8px;
}

@media (max-width: 960px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .page-wrap { padding: 88px 24px 32px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .search-bar {
    grid-template-columns: 1fr 1fr;
  }
  .search-bar input { grid-column: 1 / -1; }
  footer { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
}
