/*
Theme Name: VelaVideo
Theme URI:
Author: VelaVideo
Description: A dark, cinema-marquee-inspired theme for VelaVideo, built to pair with the VelaVideo Archive.org video plugin.
Version: 1.0
Text Domain: velavideo
*/

:root {
  --bg: #12181f;
  --surface: #1a222b;
  --line: #2a3540;
  --text: #eef1f4;
  --muted: #7e94a6;
  --accent: #e8a33d;
  --accent-deep: #a8641c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Masthead */
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.masthead-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.masthead-nav a { font-size: 14px; color: var(--muted); }
.masthead-nav a:hover { color: var(--text); }

.site-main { max-width: 1180px; margin: 0 auto; padding: 32px 24px 64px; }

/* Section labels */
.section-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.page-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 24px;
  max-width: 34ch;
}

/* Hero (homepage: featured + up next) */
.hero {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.hero-feature { display: block; }
.hero-thumb {
  display: block;
  max-width: 200px;
  aspect-ratio: 9 / 16;
  background: #05080b;
  border-radius: 10px;
  overflow: hidden;
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; transition: filter .15s ease; }
.hero-feature:hover .hero-thumb img { filter: brightness(1.08); }
.hero-title {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  margin-top: 14px;
  max-width: 34ch;
}

.hero-upnext h2 { margin-top: 0; }
.hero-upnext ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-upnext li a { display: flex; gap: 12px; align-items: center; }
.upnext-thumb {
  flex: 0 0 96px;
  aspect-ratio: 9 / 16;
  background: #05080b;
  border-radius: 6px;
  overflow: hidden;
}
.upnext-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upnext-title { font-size: 14px; color: var(--text); }
.hero-upnext li a:hover .upnext-title { color: var(--accent); }

/* Grid + cards */
.v-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px 18px;
}
.v-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.v-row .v-card { flex: 0 0 220px; }

.v-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: var(--surface);
}
.v-thumb { display: block; aspect-ratio: 9 / 16; background: #05080b; border-radius: 6px; overflow: hidden; }
.v-thumb img { width: 100%; height: 100%; object-fit: cover; transition: filter .15s ease; }
.v-card:hover .v-thumb img { filter: brightness(1.1); }
.v-thumb-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 22px; }
.v-title { display: block; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--text); }

/* Single video page */
.single-video { max-width: 420px; margin: 0 auto 40px; }
.player iframe { width: 100%; aspect-ratio: 9 / 16; height: auto; border-radius: 10px; border: none; }
.video-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  margin: 18px 0 8px;
  max-width: 34ch;
}
.video-meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.video-meta a { color: var(--accent); }
.video-description { color: #d7dde3; max-width: 70ch; }

.more-like-this { max-width: 1180px; margin: 0 auto; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  color: var(--muted);
  font-size: 13px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
  .masthead-inner { flex-direction: column; align-items: flex-start; }
}
