/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --bg: #171F1B;
  --surface: #212B25;
  --surface-raised: #283530;
  --line: #3B4A42;
  --text: #F3F0E8;
  --text-muted: #93A69B;
  --accent: #E4A15A;
  --accent-strong: #F0B472;
  --tag-bg: #2E4A3B;
  --tag-text: #B9D9C5;
  --ad-bg: #1D2622;
  --ad-border: #3B4A42;

  --font-display: 'Fraunces', Georgia, serif;
  --font-ui: 'Space Grotesk', 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

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

.muted { color: var(--text-muted); }

/* Visible keyboard focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.logo-dot { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.cat-chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.cat-chip:hover { color: var(--text); border-color: var(--accent); }
.cat-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1B140A;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-width: 200px;
}
.search-wrap i { color: var(--text-muted); font-size: 0.85rem; }
.search-wrap input {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  width: 100%;
}
.search-wrap input:focus { outline: none; }

/* =========================================================
   AD ZONES
   Each is a clearly-labeled placeholder <div>/<aside>.
   Replace the contents (not the wrapper) with your ad
   network's tag once approved. Keep the data-ad-slot
   attributes — they're useful hooks for analytics later.
   ========================================================= */
.ad-zone {
  border: 1px dashed var(--ad-border);
  background: var(--ad-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.ad-zone--banner {
  margin: 20px auto 0;
  min-height: 90px;
}
.ad-zone--inline {
  margin: 12px auto;
  min-height: 100px;
}
.ad-zone--rail {
  min-height: 250px;
  width: 300px;
  flex-shrink: 0;
}

/* Live ad slot — strips placeholder chrome so the ad renders cleanly.
   Add `ad-zone--filled` to any .ad-zone wrapper that now contains a
   real ad network's tag. Keeps a floor min-height so the page doesn't
   jump when the ad loads (prevents CLS penalties). */
.ad-zone--filled {
  border: none;
  background: transparent;
  display: block;
  padding: 0;
  min-height: 90px;
}

@media (max-width: 900px) {
  .ad-zone--rail { display: none; }
}

/* =========================================================
   PLAYER SECTION
   ========================================================= */
.player-section {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  align-items: flex-start;
}
.player-main { flex: 1; min-width: 0; }
.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.player-frame iframe,
.player-frame .player-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-frame .player-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
  padding: 20px;
}

.player-meta { margin-top: 16px; }
.player-meta h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.player-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* =========================================================
   REELS STRIP
   ========================================================= */
.reels-section { margin-top: 44px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0;
}
.reels-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.reels-track::-webkit-scrollbar { height: 6px; }
.reels-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.reel-card {
  scroll-snap-align: start;
  flex: 0 0 150px;
  aspect-ratio: 9 / 16;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.reel-card:hover { border-color: var(--accent); }
.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-card .reel-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.65) 100%);
}
.reel-card .reel-title {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-section { margin-top: 44px; margin-bottom: 60px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.video-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.video-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0000 center / cover no-repeat, var(--surface-raised);
  position: relative;
}
.video-card .thumb .fa-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.video-card .body { padding: 12px 14px 14px; }
.video-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-card .card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  .header-row { gap: 12px; }
  .main-nav { order: 3; width: 100%; }
  .player-meta h1 { font-size: 1.3rem; }
}