* {
  box-sizing: border-box;
}

:root {
  --bg: #0a0a08;
  --bg-deep: #050504;
  --panel: rgba(16, 14, 8, 0.92);
  --panel-border: rgba(118, 98, 26, 0.55);
  --text: #f5efc6;
  --muted: #c7b98a;
  --accent: #ffd84a;
  --accent-2: #f4b400;
  --accent-3: #ffe88a;
  --shadow: rgba(0, 0, 0, 0.55);
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-3);
  text-decoration: none;
}

a:hover {
  color: #fff4b8;
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  padding: 14px 24px;
  background-color: #100c03;
  color: #fff6cc;
  border-bottom: 1px solid rgba(137, 116, 46, 0.45);
  gap: 18px;
}

.brand {
  display: grid;
  gap: 6px;
}

.brand a {
  font-weight: 700;
  font-size: 20px;
  color: #fff6cc;
}

.brand-tag {
  font-size: 12px;
  color: #e5d8a2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(8, 6, 2, 0.8);
  border: 1px solid rgba(159, 128, 34, 0.7);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.search-form input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  width: 140px;
}

.search-form input::placeholder {
  color: rgba(233, 219, 172, 0.7);
}

.search-submit,
.search-clear {
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.search-submit {
  background: var(--accent);
  color: #1b1404;
  border: 1px solid rgba(199, 159, 40, 0.8);
}

.search-submit:hover {
  background: var(--accent-2);
}

.search-clear {
  background: rgba(34, 26, 6, 0.95);
  color: #ffe9a6;
  border: 1px solid rgba(159, 128, 34, 0.7);
}

.search-clear:hover {
  background: rgba(52, 40, 10, 0.98);
  border-color: rgba(199, 159, 40, 0.85);
}

.nav .nav-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 26, 6, 0.95);
  border: 1px solid rgba(159, 128, 34, 0.7);
  color: #ffe9a6;
}

.nav .nav-pill:hover {
  background: rgba(52, 40, 10, 0.98);
  border-color: rgba(199, 159, 40, 0.85);
  color: #fff4c2;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 6px 10px;
  background: rgba(255, 216, 74, 0.92);
  border-radius: 999px;
  border: 1px solid rgba(199, 159, 40, 0.8);
  color: #1b1404;
}

.content {
  padding: 24px 48px 48px;
  flex: 1;
  background-image: radial-gradient(circle at 20% 20%, rgba(130, 96, 18, 0.25), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(110, 82, 16, 0.35), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(64, 50, 12, 0.6), transparent 55%);
  background-attachment: fixed;
  background-repeat: repeat;
  background-position: center top;
}

.gallery-header {
  margin-bottom: 18px;
  display: grid;
  gap: 6px;
}

.gallery-header h1 {
  margin: 0;
  font-size: 24px;
  color: #fff1b0;
}

.gallery-header p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.filter-status {
  font-size: 12px;
  color: #ffe9a6;
  min-height: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.cover-card {
  --card-accent: var(--accent);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 24px var(--shadow);
  position: relative;
  overflow: hidden;
}

.cover-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 65%, transparent);
  pointer-events: none;
  opacity: 0.5;
}

.cover-art {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--card-accent) 55%, #181409);
  background: #0d0c07;
  width: 100%;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
}

.cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: #f5efc6;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: #000000;
}

.cover-info {
  display: grid;
  gap: 4px;
}

.cover-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff5c2;
}

.cover-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.year-link {
  background: none;
  border: none;
  color: #ffe88a;
  padding: 0;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.year-link:hover {
  color: #fff4b8;
}

.cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #1a1304;
  background: var(--card-accent);
  border: 1px solid color-mix(in srgb, var(--card-accent) 70%, #2a210a);
  border-radius: 999px;
  padding: 4px 8px;
  width: fit-content;
}

.cover-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.media-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: start;
}

.media-poster-stack {
  display: grid;
  gap: 16px;
  width: 300px;
}

.media-poster {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(159, 128, 34, 0.7);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
  background: rgba(8, 7, 4, 0.8);
  width: 300px;
  height: 400px;
  display: grid;
  place-items: center;
}

.media-poster-link {
  display: block;
  width: 100%;
  height: 100%;
}

.media-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-hero-info {
  display: grid;
  gap: 14px;
}

.media-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: #f9e29a;
}

.media-title {
  font-size: 36px;
  margin: 0;
  color: #fff6cc;
}

.media-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 26, 6, 0.95);
  border: 1px solid rgba(159, 128, 34, 0.7);
  color: #ffe9a6;
  font-size: 12px;
}

.media-pill-accent {
  background: var(--accent);
  color: #1b1404;
  border-color: rgba(199, 159, 40, 0.9);
}

.media-pill-accent:hover {
  background: var(--accent-2);
}

.media-pill-genre {
  background: rgba(255, 216, 74, 0.18);
  border-color: rgba(255, 216, 74, 0.6);
  color: #fff1b0;
}

.media-summary {
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(22, 17, 8, 0.95), rgba(14, 11, 5, 0.85));
  border: 1px solid rgba(159, 128, 34, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.media-summary h2 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #ffd84a;
}

.media-summary p {
  margin: 0;
  color: #f3e6b8;
  font-size: 14px;
  line-height: 1.6;
}

.media-block {
  margin-bottom: 24px;
}

.media-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.media-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px var(--shadow);
}

.media-card h2 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fff1b0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.media-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.media-bullets {
  list-style: disc;
  padding-left: 20px;
}

.media-bullets li {
  line-height: 1.35;
  margin: 0;
}

.media-list strong {
  color: #fff3b8;
}

.media-desc {
  margin: 0;
  color: #f0e3b6;
  font-size: 14px;
  line-height: 1.6;
}

.media-meta {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.media-meta span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(14, 11, 5, 0.8);
  border: 1px solid rgba(118, 98, 26, 0.4);
}

.media-card-seasons {
  grid-column: 1 / -1;
}

.season-tabs {
  margin-bottom: 10px;
}

.media-pill-season {
  cursor: pointer;
}

.season-panels {
  border: 1px solid rgba(118, 98, 26, 0.38);
  border-radius: 12px;
  background: rgba(10, 8, 4, 0.55);
  padding: 10px 12px;
}

.season-panel {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.season-panel .media-bullets {
  gap: 7px;
}

.season-panel .media-bullets li a {
  font-weight: 600;
}

.media-card-people .media-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.media-card-people-inline .media-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-card-details .media-meta {
  grid-template-columns: 1fr;
}

.media-trailer .plyr {
  border-radius: 12px;
  overflow: hidden;
  width: 740px;
  height: 400px;
}

.plyr--fullscreen-enabled .plyr__video-wrapper,
.plyr--fullscreen-enabled video,
.plyr--fullscreen-fallback .plyr__video-wrapper,
.plyr--fullscreen-fallback video {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

.media-hero .media-trailer {
  margin-top: 18px;
}

@media (max-width: 900px) {
.media-hero {
    grid-template-columns: 1fr;
  }

.media-layout {
    grid-template-columns: 1fr;
  }

.media-card-seasons {
    grid-column: auto;
  }

.media-card-people .media-grid {
    grid-template-columns: 1fr;
  }

.media-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

.media-poster-stack {
    width: 100%;
  }

.media-trailer .plyr {
    width: 100%;
    height: auto;
  }
}

.load-status {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sentinel {
  height: 1px;
}

.site-footer {
  text-align: center;
  padding: 16px;
  color: #e9dbac;
  display: grid;
  gap: 6px;
  font-size: 13px;
  margin-top: auto;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(137, 116, 46, 0.5);
  margin: 0;
}

@media (max-width: 900px) {
.content {
    padding: 20px;
  }

.site-header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 10px;
  }

.header-actions {
    width: 100%;
    justify-content: flex-start;
  }

.search-form {
    width: 100%;
    justify-content: space-between;
  }

.search-form input {
    width: 100%;
  }
}

:root {
  --bg: #080908;
  --panel: #111310;
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f6f4e9;
  --muted: #a8a99f;
  --accent: #f5c518;
  --accent-2: #ffd84d;
  --shadow: rgba(0, 0, 0, 0.38);
  --ui-border: rgba(255, 255, 255, 0.10);
}

body {
  background: var(--bg);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 20;
  top: 0;
  display: block;
  height: auto;
  padding: 0;
  background: rgba(8, 9, 8, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.header-bar,
.search-wrap {
  width: min(1500px, calc(100% - 48px));
  margin-inline: auto;
}

.header-bar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  min-width: 0;
}

.brand:hover { text-decoration: none; color: white; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--accent);
  color: #171500;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(245, 197, 24, 0.18);
}

.brand-copy { display: grid; line-height: 1.1; }

.brand-copy strong { font-size: 18px; letter-spacing: -0.02em; }

.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }

.nav .nav-pill {
  height: auto;
  padding: 9px 13px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #d6d6cf;
  font-size: 13px;
  font-weight: 650;
}

.nav .nav-pill:hover { background: rgba(255,255,255,.07); color: white; text-decoration: none; }

.search-wrap { padding-bottom: 14px; }

.search-form {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(90px, .65fr)) auto auto;
  gap: 8px;
  width: 100%;
  padding: 7px;
  border-radius: 12px;
  background: #141613;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: none;
}

.search-form input {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border-right: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
}

.search-submit,
.search-clear { padding: 9px 16px; border-radius: 8px; }

.search-clear { background: transparent; border-color: rgba(255,255,255,.12); color: #c5c5bd; }

.content {
  width: 100%;
  padding: 40px max(24px, calc((100% - 1500px) / 2)) 64px;
  background: radial-gradient(circle at 50% -10%, rgba(245,197,24,.08), transparent 32%);
  background-attachment: scroll;
}

.gallery-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.gallery-eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 800; }

.gallery-header h1 { margin-top: 5px; color: var(--text); font-size: clamp(25px, 3vw, 38px); letter-spacing: -.04em; }

.filter-status { min-height: 0; color: var(--muted); text-align: right; }

.gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: clamp(15px, 1.5vw, 24px);
}

.cover-card {
  min-width: 0;
  padding: 0;
  gap: 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  content-visibility: auto;
  contain-intrinsic-size: 220px 360px;
}

.cover-card::after { display: none; }

.cover-art {
  position: relative;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--ui-border);
  border-radius: 11px;
  box-shadow: 0 12px 28px rgba(0,0,0,.32);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cover-link:hover { text-decoration: none; }

.cover-link:hover .cover-art {
  transform: translateY(-4px);
  border-color: var(--ui-border);
  box-shadow: 0 18px 38px rgba(0,0,0,.48);
}

.cover-art img { transition: transform .3s ease; }

.cover-link:hover img { transform: scale(1.025); }

.cover-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  background: rgba(8,9,8,.82);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cover-info { padding: 0 2px; gap: 5px; }

.cover-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cover-title a { color: #f2f1e9; font-size: 14px; font-weight: 700; }

.cover-title a:hover { color: var(--accent); text-decoration: none; }

.cover-meta { gap: 4px; color: #85877f; font-size: 11px; }

.cover-meta a { color: #aeb0a7; text-decoration: none; }

.cover-meta a:hover { color: var(--accent); }

.year-link { font-size: 11px; }

.load-status { text-align: center; padding: 20px 0; }

.site-footer { border-top: 1px solid rgba(255,255,255,.07); background: #090a09; color: #777970; }

@media (min-width: 1300px) {
.gallery-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

@media (max-width: 800px) {

.header-bar,
.search-wrap { width: min(100% - 28px, 1500px); }

.brand-copy small { display: none; }

.search-form { grid-template-columns: 1fr 1fr; }

.search-form input:first-child { grid-column: 1 / -1; }

.content { padding: 28px 14px 48px; }

.gallery-header { align-items: start; flex-direction: column; gap: 8px; }

.filter-status { text-align: left; }
}

@media (max-width: 480px) {
.header-bar { min-height: 60px; }

.nav { gap: 0; }

.nav .nav-pill { padding: 8px; }

.search-form { grid-template-columns: 1fr 1fr; }

.search-form #search-year,
.search-form #search-genre,
.search-form #search-language { grid-column: span 1; }

.gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 11px; }
}

@media (prefers-reduced-motion: reduce) {
.cover-art,
.cover-art img { transition: none; }
}

.search-form,
.search-clear,
.media-poster,
.media-summary,
.media-card,
.season-panels {
  border-color: var(--ui-border);
}

body { padding-top: var(--site-header-height, 150px); }
html { scroll-padding-top: calc(var(--site-header-height, 150px) + 16px); }
