:root {
  --bg: #0b0d10;
  --bg-elevated: #14171c;
  --border: #23272e;
  --text: #eef0f2;
  --text-dim: #9aa3ad;
  --accent: #e63946;
  --accent-dim: #7d1f27;
  --radius: 10px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.15rem;
}

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

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.15s;
}

.nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s, opacity 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-subscribe {
  background: var(--accent);
  color: #fff;
}

.btn-subscribe:hover { background: #d62839; }

.btn-primary {
  background: var(--text);
  color: #0b0d10;
}

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

.btn-ghost:hover { border-color: var(--text-dim); }

/* Hero */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at top left, rgba(230, 57, 70, 0.12), transparent 55%),
    var(--bg);
}

.hero-inner { max-width: 720px; }

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section h2 {
  font-size: 1.5rem;
  margin: 0;
}

.status {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.status.error { color: var(--accent); }

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: #33383f;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.video-thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.15s;
}

.video-card:hover .video-thumb::after { opacity: 1; }

.video-info {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.video-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-date {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: auto;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, #1c2027 37%, var(--bg-elevated) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* About */
.about p {
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 28px;
}

.subscribe-widget {
  max-width: 420px;
}

/* Footer */
.site-footer { padding: 32px 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 24px;
  display: flex;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.modal-body {
  position: relative;
  width: 100%;
  max-width: 900px;
}

.modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.modal-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .header-inner { height: 60px; }
  .nav { display: none; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 48px 0; }
}
