@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --color-bg:        #0a0f14;
  --color-surface:   #111820;
  --color-border:    #1e2d3d;
  --color-who-blue:  #0093d5;
  --color-accent:    #00c9a7;
  --color-danger:    #e8423a;
  --color-danger-bg: rgba(232, 66, 58, 0.08);
  --color-text:      #e8edf2;
  --color-muted:     #7a8fa0;
  --color-tag-bg:    rgba(0, 147, 213, 0.12);
  --color-tag-text:  #5cc8f0;
  --radius-card:     14px;
  --radius-tag:      100px;
  --shadow-hover:    0 12px 48px rgba(0, 147, 213, 0.18);
  --font-display:    'DM Serif Display', Georgia, serif;
  --font-body:       'DM Sans', system-ui, sans-serif;
  --transition:      all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: white;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,147,213,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,147,213,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── Navbar ──────────────────────────────────── */


/* ── Header ──────────────────────────────────── */
.header {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-badge {
  width: 40px;
  height: 40px;
  background: var(--color-who-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-badge img { width: 28px; height: 28px; object-fit: contain; }

.header-text h1 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.1;
}

.header-text p {
  font-size: 0.72rem;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-sep { flex: 1; }

.header-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--color-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
}

.header-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ── Alert Banner ────────────────────────────── */
.alert-banner {
  position: relative;
  z-index: 1;
  background: var(--color-danger-bg);
  border-bottom: 1px solid rgba(232, 66, 58, 0.2);
  padding: 0.8rem 2rem;
  direction: rtl;
}

.alert-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--color-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--color-danger);
}

.alert-banner p { font-size: 0.85rem; color: #f5a5a2; }
.alert-banner p strong { color: #ff8582; }

/* ── Main ────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ── Section Header ──────────────────────────── */
.section-header {
  margin-bottom: 2.5rem;
  border-right: 3px solid var(--color-who-blue);
  padding-right: 1.25rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.section-header p { font-size: 0.92rem; color: var(--color-muted); max-width: 540px; }

/* ── Filter Bar ──────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--color-surface);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-tag);
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-btn:hover { border-color: var(--color-who-blue); color: var(--color-who-blue); }
.filter-btn.active { background: var(--color-who-blue); color: white; border-color: var(--color-who-blue); }

/* ── Video Grid ──────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Video Card ──────────────────────────────── */
.video-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s ease both;
}

.video-card:hover { border-color: rgba(0,147,213,0.4); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.video-card:nth-child(1) { animation-delay: 0.05s; }
.video-card:nth-child(2) { animation-delay: 0.10s; }
.video-card:nth-child(3) { animation-delay: 0.15s; }
.video-card:nth-child(4) { animation-delay: 0.20s; }
.video-card:nth-child(5) { animation-delay: 0.25s; }
.video-card:nth-child(6) { animation-delay: 0.30s; }
.video-card.hidden { display: none; }

/* ── Thumbnail ───────────────────────────────── */
.thumbnail-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

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

/* ── Card Body ───────────────────────────────── */
.card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-tag {
  display: inline-flex;
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-tag);
  width: fit-content;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card-body h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.card-body p { font-size: 0.83rem; color: var(--color-muted); line-height: 1.55; flex: 1; }

.watch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-who-blue);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  margin-top: 0.3rem;
}

.watch-link:hover { color: var(--color-accent); }

/* ── Footer ──────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  padding: 2rem;
  text-align: center;
}

.site-footer p { font-size: 0.78rem; color: var(--color-muted); }
.site-footer a { color: var(--color-who-blue); text-decoration: none; }

/* ── Animations ──────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.7rem; }
  main { padding: 2rem 1rem 4rem; }
}