/* ============================================================
   TVAwardshows.com — Shared Award Show Year Page Stylesheet
   Dark theme, consistent with firth.com / tvawardshows.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Lato:wght@300;400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: #000;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .5em 1em;
  z-index: 999;
  border-radius: 0 0 3px 3px;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

:root {
  --gold:       #c9a84c;
  --gold-lt:    #e8d08a;
  --dark:       #0c1018;
  --dark-mid:   #141b26;
  --navy:       #0a1628;
  --text:       #edf2f7;
  --muted:      #9ab0c4;
  --accent:     #a8cddd;
  --border:     rgba(201,168,76,.18);
  --winner-bg:  rgba(201,168,76,.1);
  --winner-bdr: rgba(201,168,76,.5);
  --max-w:      1100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── YEAR NAV (kept here — nav base is in /nav.css) ──── */
.top-nav .year-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}
.top-nav .year-nav a {
  color: var(--accent);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.top-nav .year-nav .current-year {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: var(--gold);
  font-style: normal;
}

/* ── YEAR BROWSE BAR ────────────────────────────────── */
.year-browse {
  background: var(--dark-mid);
  border-bottom: 1px solid var(--border);
  padding: .5rem 1.6rem;
  text-align: center;
}
.year-browse-inner {
  max-width: var(--max-w, 1080px);
  margin: 0 auto;
}
.year-browse-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem .4rem;
}
.year-browse a {
  font-size: .7rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: .2rem .45rem;
  border-radius: 3px;
  transition: background .15s, color .15s;
  line-height: 1.4;
}
.year-browse a:hover {
  background: rgba(201,168,76,.1);
  color: var(--text);
}
.year-browse a.yb-current {
  background: rgba(201,168,76,.18);
  color: var(--gold);
  font-weight: 700;
}
.year-browse-more {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.year-browse-more.open {
  max-height: 600px;
}
.year-browse-toggle {
  display: inline-block;
  font-family: inherit;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 3px;
  padding: .25rem .7rem;
  margin-top: .4rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.year-browse-toggle:hover {
  background: rgba(201,168,76,.08);
  border-color: rgba(201,168,76,.4);
}
html.light .year-browse {
  background: #f0ece2;
}

/* ── SHOW HEADER ─────────────────────────────────────── */
.show-header {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 3rem 2rem;
  overflow: hidden;
}
.show-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,22,40,.97) 0%, rgba(12,16,24,.7) 60%, rgba(10,22,40,.98) 100%);
}
.show-header::before,
.show-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 24px);
  opacity: .3;
  z-index: 3;
}
.show-header::before { top: 0; }
.show-header::after  { bottom: 0; }

.show-header-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 2.5rem;
}
.trophy-display {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  opacity: .85;
  filter: drop-shadow(0 0 18px rgba(201,168,76,.5));
}
.trophy-display svg {
  width: 100%;
  height: auto;
}
.show-header-text {}
.show-header-text .show-label {
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.show-header-text h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: .4rem;
}
.show-header-text .show-meta {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .05em;
}
.show-header-text .show-meta span {
  color: var(--accent);
}

/* ── CEREMONY STATS BAR ──────────────────────────────── */
.stats-bar {
  background: var(--dark-mid);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}
.stats-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}
.stat-lbl {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .15rem;
}
.top-winners {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-winner-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--winner-bg);
  border: 1px solid var(--winner-bdr);
  padding: .3em .9em;
  font-size: .68rem;
  letter-spacing: .1em;
}
.top-winner-pill strong { color: var(--gold); }

/* ── CATEGORIES MAIN ─────────────────────────────────── */
.categories-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.section-rule {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 3rem 0 2rem;
}
.section-rule::before, .section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-rule-text {
  font-size: .62rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.categories-grid.wide {
  grid-template-columns: 1fr;
}
.categories-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

/* ── CATEGORY CARD ───────────────────────────────────── */
.cat-card {
  background: var(--dark-mid);
  border: 1px solid rgba(168,205,221,.07);
  padding: 1.5rem 1.4rem;
  position: relative;
  transition: border-color .25s;
}
.cat-card:hover { border-color: rgba(201,168,76,.3); }
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--border);
}
.cat-card.major::before {
  background: linear-gradient(180deg, var(--gold), var(--gold-lt));
}

.cat-name {
  font-size: .6rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
}

/* Category analysis blurb */
.cat-analysis {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
  padding: .6rem 0 .85rem;
  border-bottom: 1px solid rgba(201,168,76,.07);
  margin-bottom: .75rem;
}
.cat-analysis strong { color: var(--text); }
.cat-analysis em { color: var(--gold-lt); font-style: italic; }
.cat-analysis .pick {
  display: inline-block;
  font-size: .54rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.25);
  padding: .15em .55em;
  border-radius: 2px;
  margin-right: .4em;
  vertical-align: middle;
}

/* Winner entry */
.winner-entry {
  background: var(--winner-bg);
  border: 1px solid var(--winner-bdr);
  padding: .9rem 1rem;
  margin-bottom: .75rem;
  position: relative;
}
.winner-badge {
  display: inline-block;
  font-size: .55rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--gold);
  padding: .15em .55em;
  margin-bottom: .45rem;
  font-weight: 700;
}
.winner-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.25;
}
.winner-sub {
  font-size: .78rem;
  color: var(--gold-lt);
  margin-top: .2rem;
}

/* Nominee entries */
.nominees-list {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.nom-entry {
  padding: .45rem .5rem;
  font-size: .82rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(168,205,221,.05);
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.nom-entry:last-child { border-bottom: none; }
.nom-entry::before {
  content: '·';
  color: var(--border);
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}
.nom-title { color: var(--text); font-weight: 400; }
.nom-detail { color: var(--muted); font-size: .77rem; }

/* Upcoming / no-winner state */
.nominees-only .winner-entry {
  background: rgba(168,205,221,.04);
  border-color: rgba(168,205,221,.15);
}
.nominees-only .winner-badge {
  background: var(--muted);
  color: var(--dark);
}
.nominees-only .winner-title { color: var(--accent); }

/* ── FILM LINKS ──────────────────────────────────────── */
.film-links {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .6rem;
  padding-top: .5rem;
  border-top: 1px solid rgba(201,168,76,.12);
}
.film-link {
  display: inline-block;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .25em .7em;
  background: rgba(122,146,168,.15);
  color: var(--muted);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.film-link:hover { background: var(--gold); color: var(--dark); }
.film-link.trailer { background: rgba(201,168,76,.2); color: var(--gold-lt); }
.film-link.trailer:hover { background: var(--gold); color: var(--dark); }
.film-link.watch { background: rgba(168,205,221,.15); color: var(--accent); }
.film-link.watch:hover { background: var(--accent); color: var(--dark); }
.film-link.imdb { background: rgba(245,197,24,.15); color: #c9a800; }
.film-link.imdb:hover { background: #F5C518; color: var(--dark); }

/* Nominee inline links */
.nom-links-inline {
  display: inline-flex;
  gap: .25rem;
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}
.nom-link {
  display: inline-block;
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2em .5em;
  background: rgba(122,146,168,.12);
  color: var(--muted);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nom-link:hover { background: var(--gold); color: var(--dark); }
.nom-link.imdb { background: rgba(245,197,24,.12); color: #c9a800; }
.nom-link.imdb:hover { background: #F5C518; color: var(--dark); }
.nom-link.x-link { background: rgba(168,205,221,.1); color: var(--accent); }
.nom-link.x-link:hover { background: var(--accent); color: var(--dark); }

/* ── FOOTER ──────────────────────────────────────────── */
footer, .site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .78rem;
  padding: 0;
}
.footer-inner {
  max-width: var(--max-w, 1080px);
  margin: 0 auto;
  padding: 2.5rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem 2.5rem;
}
.footer-brand {
  padding-right: 1rem;
}
.footer-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: .4rem;
}
.footer-brand-name em { color: var(--gold); font-style: italic; }
.footer-brand p {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: .4rem;
}
.footer-col h4 {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .7rem;
}
.footer-col a {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  text-decoration: none;
  padding: .22rem 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-w, 1080px);
  margin: 0 auto;
  padding: 1.2rem 2rem;
  border-top: 1px solid rgba(201,168,76,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .68rem;
  color: rgba(122,146,168,.5);
}
.footer-bottom a { color: rgba(122,146,168,.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }
.back-to-top {
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color .15s;
}
.back-to-top:hover { color: var(--gold-lt); }
@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Legacy footer support */
.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: .3rem;
}
.footer-logo em { color: var(--gold); font-style: italic; }

/* ── LIGHT MODE ──────────────────────────────────────── */
html.light {
  --dark:       #f5f0e8;
  --dark-mid:   #ece6d8;
  --navy:       #e5ddd0;
  --text:       #1a1612;
  --muted:      #6b5f52;
  --accent:     #1e6080;
  --border:     rgba(120,90,20,.2);
  --winner-bg:  rgba(201,168,76,.12);
  --winner-bdr: rgba(160,110,20,.4);
}
html.light .show-header-bg {
  background: linear-gradient(160deg, rgba(245,240,232,.92) 0%, rgba(235,225,210,.6) 60%, rgba(245,240,232,.95) 100%);
}
html.light .show-header-text h1 { color: #1a1612; }
html.light .winner-title         { color: #1a1612; }
html.light .winner-badge         { color: #f5f0e8; }
html.light .nominees-only .winner-badge { color: #f5f0e8; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 700px) {
  .categories-grid { grid-template-columns: 1fr; }
  .categories-grid.two-col { grid-template-columns: 1fr; }
  .show-header-content { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .stats-bar-inner { gap: 1.5rem; }
  .top-winners { margin-left: 0; }
}

/* ── ALSO WON cross-links ────────────────────────────── */
.also-won {
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: .6rem;
  padding-top: .55rem;
  border-top: 1px solid rgba(201,168,76,.15);
}
.also-won a {
  color: var(--gold-lt);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,.3);
  padding-bottom: 1px;
}
.also-won a:hover { color: var(--gold); border-color: var(--gold); }

/* ── NAV SEARCH BUTTON & MODAL (year pages) ──────────── */
.nav-search-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: .3rem .2rem; line-height: 0;
  transition: color .15s; flex-shrink: 0;
}
.nav-search-btn:hover { color: var(--gold); }
.nav-search-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.75);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
}
.nav-search-overlay[hidden] { display: none; }
.nav-search-box {
  width: min(640px, 92vw);
  background: var(--dark-mid);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.nav-search-input-wrap {
  display: flex; align-items: center; gap: .5rem;
  padding: 0 .75rem; border-bottom: 1px solid var(--border);
}
.nav-search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: 'Lato', sans-serif;
  font-size: 1rem; padding: .9rem .5rem;
}
.nav-search-input::placeholder { color: var(--muted); }
.nav-search-winners {
  font-size: .55rem; letter-spacing: .16em; text-transform: uppercase;
  background: none; border: 1px solid rgba(201,168,76,.3);
  color: var(--muted); padding: .25em .6em; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap; flex-shrink: 0;
}
.nav-search-close {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 1.2rem; padding: .25rem .4rem;
  transition: color .15s; line-height: 1; flex-shrink: 0;
}
.nav-search-close:hover { color: var(--text); }
.nav-search-results { max-height: 55vh; overflow-y: auto; }
