/* ============================================================
   Athenian Rider — cinematic editorial theme
   Hand-authored CSS, no build step.
   ============================================================ */

:root {
  --bg:        #08080a;
  --bg-2:      #0d0d10;
  --surface:   #131317;
  --surface-2: #1a1a1f;
  --border:    #26262c;
  --border-2:  #34343c;
  --text:      #f5f5f6;
  --muted:     #a6a6ad;
  --muted-2:   #74747c;

  --red:       #ff2e3e;
  --red-600:   #e11122;
  --red-700:   #b50e1b;
  --red-glow:  rgba(255, 46, 62, .35);

  --maxw:      1180px;
  --radius:    16px;
  --radius-lg: 22px;

  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 24px 60px -20px rgba(0,0,0,.7);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- ambient background: glow + grain ---------- */
.fx-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% -5%, var(--red-glow), transparent 60%),
    radial-gradient(50% 45% at 0% 10%, rgba(120,30,40,.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
}
.fx-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 9vw, 110px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.section-sub { color: var(--muted); margin-top: 10px; max-width: 52ch; }
.link-more { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .25s; white-space: nowrap; }
.link-more:hover { color: var(--text); }
.link-more::after { content: " \2192"; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .2s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--red-glow);
}
.btn-red:hover { background: var(--red-600); box-shadow: 0 16px 40px -12px var(--red-glow); }
.btn-ghost { border: 1px solid var(--border-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--muted); background: rgba(255,255,255,.05); }
.btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(8,8,10,.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 1px var(--border), 0 6px 18px -6px var(--red-glow); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em; text-transform: uppercase; }
.brand-name span { color: var(--red); }
.nav { display: none; gap: 28px; }
.nav a { font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s; position: relative; }
.nav a:hover { color: var(--text); }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--red); transition: right .25s var(--ease); }
.nav a:hover::after { right: 0; }
@media (min-width: 900px) { .nav { display: flex; } }

/* language toggle */
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang button { padding: 6px 11px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); transition: color .2s, background .2s; }
.lang button:hover { color: var(--text); }
.lang button.is-active { background: var(--red); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(36px, 6vw, 70px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.025em;
}
.hero h1 .accent { color: var(--red); }
.hero-lead { margin-top: 22px; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 44ch; }
.hero-lead strong { color: var(--text); }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 26px; display: flex; align-items: center; gap: 16px; color: var(--muted-2); font-size: .88rem; }
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

/* hero featured player */
.hero-player { position: relative; }
.hero-player .badge-live {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(8,8,10,.7); backdrop-filter: blur(6px);
  border: 1px solid var(--border-2); border-radius: 999px;
  padding: 6px 12px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.hero-player .badge-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red-glow); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--red-glow); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- lite youtube facade ---------- */
.lite {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface) center/cover no-repeat;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  width: 100%;
  display: block;
}
.lite::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
  opacity: .9; transition: opacity .3s;
}
.lite .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(1);
  width: 74px; height: 74px; border-radius: 50%; z-index: 2;
  background: var(--red); display: grid; place-items: center;
  box-shadow: 0 12px 36px -8px var(--red-glow); transition: transform .3s var(--ease), background .3s;
}
.lite .play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.lite:hover .play { transform: translate(-50%,-50%) scale(1.1); background: var(--red-600); }
.lite:hover { border-color: var(--border-2); }

/* ---------- gallery tabs ---------- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tab {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
  font-weight: 600; font-size: .9rem;
  transition: all .22s var(--ease);
}
.tab:hover { color: var(--text); border-color: var(--border-2); }
.tab.is-active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 22px -10px var(--red-glow); }
.tab-sub { color: var(--muted); font-size: .95rem; margin-bottom: 26px; min-height: 1.5em; }

/* ---------- video grid + cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* vertical (Shorts) variant */
.grid--vertical { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .grid--vertical { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid--vertical { grid-template-columns: repeat(5, 1fr); } }
.card.card--vertical .thumb { aspect-ratio: 9 / 16; }
.card.card--vertical h3 { font-size: .92rem; }

.card { display: flex; flex-direction: column; text-align: left; width: 100%; }
.card .thumb {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .thumb img { transform: scale(1.06); }
.card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 55%, rgba(0,0,0,.35));
  opacity: 0; transition: opacity .3s;
}
.card:hover .thumb::after { opacity: 1; }
.card .play-mini {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.8);
  width: 56px; height: 56px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; opacity: 0; transition: all .3s var(--ease);
  box-shadow: 0 10px 28px -8px var(--red-glow);
}
.card .play-mini svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.card:hover .play-mini { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.card .badge-new {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: #fff; font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px;
}
.card h3 { margin-top: 13px; font-size: 1rem; font-weight: 600; line-height: 1.35; transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover h3 { color: var(--red); }
.card .date { margin-top: 6px; font-size: .83rem; color: var(--muted-2); }

/* skeleton loading */
.skeleton { position: relative; overflow: hidden; background: var(--surface); }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
  transform: translateX(-100%); animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skel-card .thumb { aspect-ratio: 16/9; border-radius: var(--radius); }
.skel-line { height: 12px; border-radius: 6px; margin-top: 13px; }
.skel-line.short { width: 45%; }

.empty-state { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
.empty-state a { color: var(--red); font-weight: 600; }

/* ---------- subscribe band ---------- */
.cta-band { position: relative; overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-2); }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 80% 50%, var(--red-glow), transparent 60%);
  opacity: .6;
}
.cta-band .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-block: clamp(40px, 6vw, 64px); }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.02em; line-height: 1.05; max-width: 18ch; }
.cta-band p { color: var(--muted); margin-top: 10px; max-width: 40ch; }

/* ---------- podcast spotlight ---------- */
.spotlight { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--border); }
.spotlight-grid { display: grid; gap: clamp(28px, 5vw, 52px); align-items: center; }
@media (min-width: 900px) { .spotlight-grid { grid-template-columns: 1fr 1.1fr; } }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 2fr 1fr; } }
.about-list { margin-top: 18px; display: grid; gap: 10px; }
.about-list li { list-style: none; padding-left: 26px; position: relative; color: var(--muted); }
.about-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 2px; background: var(--red); }
.about-list strong { color: var(--text); font-weight: 600; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.aside-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.aside-card p { color: var(--muted); margin-block: 12px 18px; }

/* ---------- contact / social ---------- */
.social-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 13px 20px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; transition: all .22s var(--ease);
}
.social-btn:hover { border-color: var(--border-2); transform: translateY(-2px); background: var(--surface-2); }
.social-btn img { width: 22px; height: 22px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-block: 30px; color: var(--muted-2); font-size: .88rem; }
.footer .brand-name { font-size: 1rem; }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--border); background: var(--bg-2); overflow: hidden; padding-block: 12px; }
.ticker-track { display: flex; gap: 48px; white-space: nowrap; width: max-content; animation: marquee 40s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.ticker-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- modal player ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(4,4,6,.86); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-box {
  width: min(1100px, 100%); max-height: 92vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); transform: translateY(16px) scale(.98); transition: transform .35s var(--ease);
}
.modal.is-open .modal-box { transform: none; }
.modal-player { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.modal-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.modal-foot { padding: 18px 22px 22px; }
.modal-title { font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(8,8,10,.7); backdrop-filter: blur(6px); border: 1px solid var(--border-2);
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.modal-close:hover { background: var(--red); transform: rotate(90deg); }
.modal-close svg { width: 20px; height: 20px; stroke: #fff; }

/* up-next queue */
.queue { border-top: 1px solid var(--border); padding: 18px 22px 22px; }
.queue h4 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.queue-list { display: grid; gap: 10px; }
.queue-item { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 12px; text-align: left; transition: background .2s; width: 100%; }
.queue-item:hover { background: var(--surface-2); }
.queue-item.is-playing { background: var(--surface-2); }
.queue-item img { width: 132px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.queue-item .qt { font-size: .92rem; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.queue-item.is-playing .qt { color: var(--red); }
.queue-item .qd { font-size: .78rem; color: var(--muted-2); margin-top: 4px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
