:root {
  color-scheme: light;
  --bg: #e6d8c0;
  --surface: #fff2d8;
  --surface-2: #f4d7a5;
  --ink: #201817;
  --muted: #6f5947;
  --line: #9f8363;
  --accent: #0f7069;
  --accent-2: #b73f2d;
  --accent-3: #d7a73b;
  --shadow: 0 10px 0 rgba(32, 24, 23, 0.08);
  --hero-image: url("https://images.unsplash.com/photo-1516280440614-37939bbacd81?auto=format&fit=crop&w=1800&q=80");
  --hero-tint: rgba(255, 242, 216, 0.88);
  --hero-tint-2: rgba(255, 242, 216, 0.78);
  --panel-alpha: rgba(255, 242, 216, 0.92);
  --field-bg: #fff8ea;
  --thumb-filter: saturate(1);
  --card-radius: 6px;
  --title-case: none;
}

body[data-theme="archive"] {
  --bg: #d8dfd6;
  --surface: #edf2e7;
  --surface-2: #c7d5c4;
  --ink: #152026;
  --muted: #52645e;
  --line: #60736c;
  --accent: #c84636;
  --accent-2: #0d6f73;
  --accent-3: #e0b247;
  --shadow: 0 8px 0 rgba(21, 32, 38, 0.1);
  --hero-image: url("https://images.unsplash.com/photo-1485846234645-a62644f84728?auto=format&fit=crop&w=1800&q=80");
  --hero-tint: rgba(237, 242, 231, 0.88);
  --hero-tint-2: rgba(237, 242, 231, 0.74);
  --panel-alpha: rgba(237, 242, 231, 0.94);
  --field-bg: #f7faf0;
  --thumb-filter: saturate(1.16) contrast(1.04);
  --title-case: uppercase;
}

body[data-theme="catalog"] {
  --bg: #ded6c6;
  --surface: #f5efdf;
  --surface-2: #d8c9a7;
  --ink: #161614;
  --muted: #5c544a;
  --line: #24221f;
  --accent: #9e342c;
  --accent-2: #1f5f59;
  --accent-3: #c8a24a;
  --shadow: 0 6px 0 rgba(22, 22, 20, 0.14);
  --hero-image: url("https://images.unsplash.com/photo-1505686994434-e3cc5abf1330?auto=format&fit=crop&w=1800&q=80");
  --hero-tint: rgba(245, 239, 223, 0.91);
  --hero-tint-2: rgba(245, 239, 223, 0.8);
  --panel-alpha: rgba(245, 239, 223, 0.96);
  --field-bg: #fffaf0;
  --card-radius: 2px;
  --title-case: uppercase;
}

body[data-theme="vhs"] {
  color-scheme: dark;
  --bg: #17181d;
  --surface: #24262d;
  --surface-2: #333540;
  --ink: #f4eddf;
  --muted: #c3b9a7;
  --line: #69635f;
  --accent: #f0bc42;
  --accent-2: #e14c56;
  --accent-3: #3fc0b8;
  --shadow: 0 10px 0 rgba(0, 0, 0, 0.34);
  --hero-image: url("https://images.unsplash.com/photo-1522869635100-9f4c5e86aa37?auto=format&fit=crop&w=1800&q=80");
  --hero-tint: rgba(23, 24, 29, 0.72);
  --hero-tint-2: rgba(23, 24, 29, 0.86);
  --panel-alpha: rgba(36, 38, 45, 0.95);
  --field-bg: #17181d;
  --thumb-filter: saturate(1.35) contrast(1.12);
  --card-radius: 2px;
  --title-case: uppercase;
}

body[data-theme="museum"] {
  --bg: #ece9de;
  --surface: #fbfaf4;
  --surface-2: #dfd8c7;
  --ink: #202421;
  --muted: #646257;
  --line: #9b9585;
  --accent: #2e625d;
  --accent-2: #a23f37;
  --accent-3: #c1a35a;
  --shadow: 0 1px 0 rgba(32, 36, 33, 0.12);
  --hero-image: url("https://images.unsplash.com/photo-1566054757965-8c4085344c96?auto=format&fit=crop&w=1800&q=80");
  --hero-tint: rgba(251, 250, 244, 0.93);
  --hero-tint-2: rgba(251, 250, 244, 0.86);
  --panel-alpha: rgba(251, 250, 244, 0.97);
  --field-bg: #ffffff;
  --thumb-filter: saturate(0.92) contrast(0.98);
  --card-radius: 4px;
}

body[data-theme="zine"] {
  --bg: #f2ecdc;
  --surface: #fbf4e4;
  --surface-2: #eee3ca;
  --ink: #171615;
  --muted: #555047;
  --line: #1c1a18;
  --accent: #e5d908;
  --accent-2: #d9342d;
  --accent-3: #111111;
  --shadow: 0 0 0 rgba(0, 0, 0, 0);
  --hero-image: none;
  --hero-tint: rgba(251, 244, 228, 0.96);
  --hero-tint-2: rgba(251, 244, 228, 0.9);
  --panel-alpha: rgba(251, 244, 228, 0.96);
  --field-bg: #fff9ea;
  --thumb-filter: grayscale(0.72) contrast(1.18) saturate(0.88);
  --card-radius: 0;
  --title-case: uppercase;
}

body[data-theme="line"] {
  --bg: #f2ecdc;
  --surface: #fbf4e4;
  --surface-2: #eee3ca;
  --ink: #171615;
  --muted: #555047;
  --line: #1c1a18;
  --accent: #c83232;
  --accent-2: #d9342d;
  --accent-3: #111111;
  --shadow: 0 0 0 rgba(0, 0, 0, 0);
  --hero-image: none;
  --hero-tint: rgba(251, 244, 228, 0.96);
  --hero-tint-2: rgba(251, 244, 228, 0.9);
  --panel-alpha: rgba(251, 244, 228, 0.96);
  --field-bg: #fff9ea;
  --thumb-filter: grayscale(0.72) contrast(1.18) saturate(0.88);
  --card-radius: 0;
  --title-case: uppercase;
}

body[data-theme="mvd"] {
  --bg: #eee3d0;
  --surface: #f8edda;
  --surface-2: #ead9bd;
  --ink: #11100e;
  --muted: #655b50;
  --line: #26211c;
  --accent: #c82f2c;
  --accent-2: #c82f2c;
  --accent-3: #11100e;
  --shadow: none;
  --hero-image: none;
  --hero-tint: rgba(248, 237, 218, 0.96);
  --hero-tint-2: rgba(248, 237, 218, 0.9);
  --panel-alpha: rgba(248, 237, 218, 0.96);
  --field-bg: #fff8e9;
  --thumb-filter: grayscale(0.82) contrast(1.12);
  --card-radius: 0;
  --title-case: uppercase;
}




* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

body[data-theme="vhs"] {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px),
    var(--bg);
}

body[data-theme="zine"] {
  background:
    radial-gradient(circle at 5% 8%, rgba(217, 52, 45, 0.18) 0 2px, transparent 3px 100%),
    radial-gradient(circle at 92% 18%, rgba(28, 26, 24, 0.14) 0 1px, transparent 2px 100%),
    repeating-linear-gradient(0deg, rgba(28, 26, 24, 0.025) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(28, 26, 24, 0.018) 0 1px, transparent 1px 7px),
    var(--bg);
}

body[data-theme="line"] {
  background:
    repeating-linear-gradient(0deg, rgba(28, 26, 24, 0.025) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(28, 26, 24, 0.018) 0 1px, transparent 1px 7px),
    var(--bg);
}

.archive-nav,
.archive-hero-art {
  display: none;
}

.human-note,
.archive-description {
  display: none;
}



button,
input,
select {
  font: inherit;
}

.app-shell {
  position: relative;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}






.hero {
  position: relative;
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 16px;
  padding: 24px 28px;
  border: 2px solid var(--line);
  background:
    linear-gradient(var(--hero-tint), var(--hero-tint-2)),
    var(--hero-image) center/cover;
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}


body[data-theme="zine"] .hero {
  min-height: 320px;
  grid-template-columns: minmax(0, 0.62fr) minmax(260px, 0.38fr);
  justify-items: start;
  padding: 30px 42px;
  background:
    linear-gradient(var(--hero-tint), var(--hero-tint-2)),
    repeating-radial-gradient(circle at 76% 43%, rgba(23, 22, 21, 0.24) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(217, 52, 45, 0.12) 16px 17px, transparent 17px 28px),
    var(--surface);
  text-align: left;
}

body[data-theme="line"] .app-shell {
  width: min(1540px, calc(100% - 34px));
  padding-left: 78px;
}

body[data-theme="line"] .app-shell::before {
  content: "MUSIC VIDEO DIRECTOR ARCHIVE";
  position: fixed;
  left: 16px;
  top: 18px;
  bottom: 18px;
  z-index: 20;
  width: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #17120f;
  background: #0b0a09;
  color: white;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

body[data-theme="line"] .hero {
  min-height: 430px;
  grid-template-columns: minmax(560px, 0.52fr) minmax(520px, 0.48fr);
  justify-items: start;
  align-items: center;
  gap: 28px;
  padding: 96px 42px 36px;
  background:
    linear-gradient(var(--hero-tint), var(--hero-tint-2)),
    repeating-linear-gradient(18deg, transparent 0 42px, rgba(23, 18, 15, 0.035) 42px 44px, transparent 44px 84px);
  text-align: left;
}

body[data-theme="line"] .hero::before {
  content: "";
  position: absolute;
  right: 35%;
  top: 92px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #c83232 0 16%, #f6ead8 17% 21%, #0b0a09 22% 62%, rgba(11, 10, 9, 0.3) 63% 64%, #0b0a09 65% 100%),
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 5px);
  box-shadow: inset 0 0 0 22px rgba(255, 255, 255, 0.12);
  opacity: 0.92;
}

body[data-theme="line"] .hero::after {
  content: "MVD  ARCHIVE        DIRECTORS    VIDEOS    ARTISTS    ABOUT    JOURNAL    CONTACT                         DIRECTED BY PEOPLE, NOT ALGORITHMS\A\A♬     ♟     🎥     ▤     MTV     ▶\A━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\A SOUND BECOMES IMAGE.     ───────────────→     IMAGE BECOMES STORY.";
  position: absolute;
  inset: 24px 42px auto 120px;
  color: var(--ink);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 2.05;
  white-space: pre;
  pointer-events: none;
}




body[data-theme="zine"] .hero > div:first-child {
  position: relative;
  z-index: 2;
}

body[data-theme="line"] .hero > div:first-child,
body[data-theme="line"] .stats {
  position: relative;
  z-index: 2;
}


body[data-theme="zine"] .hero::before {
  content: "";
  position: absolute;
  right: 6%;
  top: 30px;
  width: min(360px, 32vw);
  height: 230px;
  border: 2px solid rgba(217, 52, 45, 0.58);
  background:
    radial-gradient(ellipse at 45% 38%, rgba(251, 244, 228, 0.72) 0 12%, transparent 13%),
    radial-gradient(ellipse at 48% 45%, rgba(23, 22, 21, 0.86) 0 9%, transparent 10%),
    radial-gradient(ellipse at 50% 58%, rgba(23, 22, 21, 0.72) 0 20%, transparent 21%),
    linear-gradient(90deg, transparent 0 58%, rgba(217, 52, 45, 0.82) 58% 78%, transparent 78%),
    repeating-radial-gradient(circle at 48% 50%, #171615 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
  opacity: 0.78;
  transform: rotate(1deg);
}

body[data-theme="zine"] .hero::after {
  content: "DIRECTED\A BY PEOPLE\A NOT ALGORITHMS";
  position: absolute;
  right: min(44vw, 520px);
  top: 110px;
  z-index: 1;
  color: var(--ink);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.35;
  white-space: pre;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body[data-theme="vhs"] .kicker,
body[data-theme="archive"] .kicker,
body[data-theme="catalog"] .kicker {
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 12px;
  font-size: 3.8rem;
  line-height: 1;
  letter-spacing: 0;
}


body[data-theme="zine"] h1 {
  max-width: 660px;
  margin-bottom: 12px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 4.35rem;
  line-height: 0.96;
  text-transform: uppercase;
}


.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.42;
}


body[data-theme="zine"] .lead,
body[data-theme="zine"] .kicker,
body[data-theme="zine"] label,
body[data-theme="zine"] button,
body[data-theme="zine"] input,
body[data-theme="zine"] .panel-heading span,
body[data-theme="zine"] .director-top-artists,
body[data-theme="zine"] .meta,
body[data-theme="zine"] .youtube-link {
  font-family: "Courier New", ui-monospace, monospace;
}


body[data-theme="zine"] .lead {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
}


.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(680px, 100%);
}


body[data-theme="zine"] .stats {
  position: relative;
  z-index: 2;
  grid-column: 1;
  width: min(680px, 100%);
  justify-self: start;
}


.stats div {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: var(--panel-alpha);
  border: 2px solid var(--line);
  text-align: center;
}






body[data-theme="zine"] .stats div {
  align-items: flex-start;
  min-height: 72px;
  border-width: 0 0 0 2px;
  background: transparent;
  box-shadow: none;
}


body[data-theme="zine"] .stats strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2rem;
}


body[data-theme="zine"] .stats span {
  display: inline-block;
  padding: 0 6px;
  background: var(--accent);
  color: var(--ink);
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-2deg);
}


.stats strong {
  font-size: 1.75rem;
  line-height: 1.05;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.2fr) auto;
  gap: 14px;
  margin: 18px 0;
  padding: 14px;
  border: 2px solid var(--line);
  background: var(--panel-alpha);
  backdrop-filter: blur(14px);
}

body[data-theme="zine"] .toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

/* Soft premium poster archive */
body[data-theme="zine"] {
  --bg: #f3eee5;
  --surface: #f8f3ea;
  --surface-2: #ede5d8;
  --ink: #181715;
  --muted: #777069;
  --line: rgba(35, 31, 27, 0.18);
  --accent: #e3c20a;
  --accent-2: #c93632;
  --accent-3: #181715;
  --panel-alpha: rgba(248, 243, 234, 0.96);
  --field-bg: #fbf7ef;
  --thumb-filter: grayscale(0.72) contrast(1.08) saturate(0.74);
  --card-radius: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(59, 45, 31, 0.045) 0 0.7px, transparent 0.9px),
    radial-gradient(circle at 72% 58%, rgba(59, 45, 31, 0.035) 0 0.7px, transparent 0.9px),
    repeating-linear-gradient(0deg, rgba(40, 31, 23, 0.012) 0 1px, transparent 1px 5px),
    var(--bg);
  background-size: 31px 29px, 43px 39px, auto, auto;
}

body[data-theme="zine"] .app-shell {
  width: min(1540px, calc(100% - 48px));
  padding-top: 20px;
}

body[data-theme="zine"] .hero {
  min-height: 338px;
  grid-template-columns: minmax(560px, 0.62fr) minmax(390px, 0.38fr);
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 18px 42px;
  padding: 30px 42px 26px;
  border: 1px solid var(--line);
  background: rgba(248, 243, 234, 0.55);
  text-align: left;
  overflow: hidden;
}

body[data-theme="zine"] .hero > div:first-child {
  grid-column: 1;
  align-self: end;
}

body[data-theme="zine"] .kicker {
  margin-bottom: 22px;
  color: var(--ink);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

body[data-theme="zine"] .kicker::first-letter {
  color: var(--accent-2);
}

body[data-theme="zine"] h1 {
  max-width: 820px;
  margin-bottom: 15px;
  font-size: clamp(4.2rem, 6vw, 6.7rem);
  line-height: 0.88;
}

body[data-theme="zine"] .lead {
  max-width: 680px;
  margin: 0;
  color: var(--ink);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

body[data-theme="zine"] .stats {
  grid-column: 1;
  grid-row: 2;
  width: min(700px, 100%);
  gap: 0;
}

body[data-theme="zine"] .stats div {
  min-height: 64px;
  padding: 0 28px;
  border: 0;
  border-left: 1px solid rgba(35, 31, 27, 0.36);
  background: transparent;
}

body[data-theme="zine"] .stats div:first-child {
  padding-left: 18px;
}

body[data-theme="zine"] .stats strong {
  color: var(--ink);
  font-size: 2.65rem;
}

body[data-theme="zine"] .stats span {
  margin-top: 6px;
  padding: 0 4px;
  background: transparent;
  color: #d4ad00;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  transform: none;
}

body[data-theme="zine"] .hero::before {
  right: 3%;
  top: 24px;
  width: min(410px, 31vw);
  height: 280px;
  border: 0;
  background:
    radial-gradient(circle at 52% 52%, rgba(243, 238, 229, 0.96) 0 10%, transparent 10.5%),
    radial-gradient(circle at 52% 52%, rgba(24, 23, 21, 0.74) 0 20%, transparent 20.5%),
    linear-gradient(90deg, transparent 0 57%, rgba(201, 54, 50, 0.82) 57% 77%, transparent 77%),
    repeating-radial-gradient(circle at 52% 52%, transparent 0 5px, rgba(35, 31, 27, 0.26) 5.5px 6.5px);
  mix-blend-mode: multiply;
  opacity: 0.88;
  transform: none;
}

body[data-theme="zine"] .hero::after {
  content: "DIRECTED\A BY PEOPLE,\A NOT ALGORITHMS";
  right: 31%;
  top: 88px;
  padding-top: 14px;
  border-top: 1px solid var(--accent-2);
  color: var(--ink);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.55;
}

body[data-theme="zine"] .toolbar {
  top: 10px;
  gap: 14px;
  margin: 10px 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: rgba(248, 243, 234, 0.94);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

body[data-theme="zine"] .search-field {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

body[data-theme="zine"] .search-field > span:first-child {
  width: 20px;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

body[data-theme="zine"] .search-field > span:first-child::before {
  content: "⌕";
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 1.3rem;
}

body[data-theme="zine"] .global-search-control {
  gap: 12px;
}

body[data-theme="zine"] .toolbar input {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
}

body[data-theme="zine"] .global-search-control #globalSearchButton {
  min-width: 126px;
  min-height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.72rem;
}

body[data-theme="zine"] .global-search-control #globalSearchButton:hover {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: white;
}

body[data-theme="zine"] #resetButton {
  min-height: 38px;
  border: 0;
  background: var(--ink);
  color: white;
  font-size: 0.7rem;
}

body[data-theme="zine"] #resetButton:hover {
  background: var(--accent-2);
}

body[data-theme="zine"] .content-grid {
  grid-template-columns: minmax(350px, 0.38fr) minmax(680px, 0.62fr);
  gap: 16px;
}

body[data-theme="zine"] .director-panel,
body[data-theme="zine"] .results-panel {
  top: 82px;
  border: 1px solid var(--line);
  background: rgba(248, 243, 234, 0.82);
}

body[data-theme="zine"] .panel-sticky {
  background: rgba(248, 243, 234, 0.96);
  backdrop-filter: blur(16px);
}

body[data-theme="zine"] .panel-heading {
  min-height: 54px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

body[data-theme="zine"] .panel-heading h2 {
  gap: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

body[data-theme="zine"] .panel-heading h2::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}

body[data-theme="zine"] .panel-heading span {
  color: var(--muted);
  font-size: 0.62rem;
}

body[data-theme="zine"] #randomVideoButton,
body[data-theme="zine"] #randomDirectorVideoButton,
body[data-theme="zine"] #backToDirectors {
  min-height: 30px;
  border: 0;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-theme="zine"] #randomVideoButton:hover,
body[data-theme="zine"] #randomDirectorVideoButton:hover,
body[data-theme="zine"] #backToDirectors:hover {
  background: var(--accent-2);
  color: white;
}

body[data-theme="zine"] .section-search,
body[data-theme="zine"] .director-tabs {
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

body[data-theme="zine"] .director-search {
  padding-top: 8px;
}

body[data-theme="zine"] .section-search label {
  gap: 4px;
  font-size: 0.58rem;
}

body[data-theme="zine"] .section-search input {
  min-height: 38px;
  border: 1px solid var(--line);
  background: rgba(251, 247, 239, 0.82);
  font-size: 0.7rem;
}

body[data-theme="zine"] .director-tabs {
  gap: 6px;
}

body[data-theme="zine"] .director-tabs button {
  min-height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

body[data-theme="zine"] .director-tabs button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

body[data-theme="zine"] .director-index {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  padding: 10px;
  background: transparent;
}

body[data-theme="zine"] .director-card {
  min-height: 300px;
  display: grid;
  grid-template-rows: 178px minmax(120px, auto);
  border: 1px solid var(--line);
  background: rgba(251, 247, 239, 0.7);
  box-shadow: none;
  transform: none;
  overflow: hidden;
}

body[data-theme="zine"] .director-card:hover,
body[data-theme="zine"] .director-card.active {
  border-color: rgba(35, 31, 27, 0.38);
  background: rgba(251, 247, 239, 0.88);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(45, 35, 25, 0.09);
  transform: translateY(-2px);
}

body[data-theme="zine"] .director-card.active {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

body[data-theme="zine"] .thumb-collage {
  min-height: 178px;
  height: 178px;
  background: #1a1917;
}

body[data-theme="zine"] .thumb-collage::after {
  background:
    linear-gradient(180deg, transparent 68%, rgba(20, 18, 16, 0.2)),
    repeating-linear-gradient(0deg, rgba(251, 247, 239, 0.035) 0 1px, transparent 1px 5px);
}

body[data-theme="zine"] .director-card-info {
  position: static;
  height: auto;
  min-height: 120px;
  grid-template-rows: minmax(32px, auto) 22px minmax(30px, auto);
  align-items: start;
  gap: 5px;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  background: rgba(251, 247, 239, 0.9);
  color: var(--ink);
  backdrop-filter: none;
  transform: none;
}

body[data-theme="zine"] .director-name {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 0.98;
  text-align: left;
}

body[data-theme="zine"] .director-meta {
  justify-self: start;
  min-height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  transform: none;
}

body[data-theme="zine"] .director-top-artists {
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  text-shadow: none;
}

body[data-theme="zine"] .results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: transparent;
}

body[data-theme="zine"] .random-spotlight {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

body[data-theme="zine"] .spotlight-card,
body[data-theme="zine"] .director-random-spotlight {
  min-height: 190px;
  margin: 10px 16px;
  border: 1px solid var(--line);
  background: rgba(251, 247, 239, 0.72);
  color: var(--ink);
  box-shadow: none;
  transform: none;
}

body[data-theme="zine"] .spotlight-thumb,
body[data-theme="zine"] .director-random-spotlight .spotlight-thumb {
  min-height: 190px;
}

body[data-theme="zine"] .spotlight-body {
  justify-items: start;
  gap: 9px;
  padding: 18px;
  text-align: left;
}

body[data-theme="zine"] .spotlight-kicker {
  justify-self: start;
  padding: 3px 7px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.56rem;
  transform: none;
}

body[data-theme="zine"] .spotlight-body h3,
body[data-theme="zine"] .director-random-spotlight .spotlight-body h3 {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.2;
}

body[data-theme="zine"] .video-card {
  border: 1px solid var(--line);
  background: rgba(251, 247, 239, 0.72);
  box-shadow: none;
  transform: none;
}

body[data-theme="zine"] .video-card:nth-child(odd),
body[data-theme="zine"] .video-card:nth-child(even) {
  transform: none;
}

body[data-theme="zine"] .video-card:hover {
  border-color: rgba(35, 31, 27, 0.36);
  box-shadow: 0 8px 22px rgba(45, 35, 25, 0.08);
  transform: translateY(-2px);
}

body[data-theme="zine"] .video-thumb {
  border: 0;
  box-shadow: none;
}

body[data-theme="zine"] .video-thumb::after {
  background: linear-gradient(180deg, transparent 58%, rgba(20, 18, 16, 0.28));
}

body[data-theme="zine"] .play-mark {
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(248, 243, 234, 0.92);
  box-shadow: 0 4px 14px rgba(20, 18, 16, 0.18);
  clip-path: none;
}

body[data-theme="zine"] .play-mark::before {
  left: 13px;
  top: 10px;
  display: block;
  border-top-width: 7px;
  border-bottom-width: 7px;
  border-left: 10px solid var(--accent-2);
}

body[data-theme="zine"] .video-card-body {
  gap: 7px;
  padding: 10px 11px;
  text-align: left;
}

body[data-theme="zine"] .video-card h3 {
  min-height: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.22;
  text-transform: none;
}

body[data-theme="zine"] .meta {
  justify-items: start;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.4;
}

body[data-theme="zine"] .inline-filter {
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

body[data-theme="zine"] .youtube-link {
  min-height: 30px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.62rem;
}

body[data-theme="zine"] .youtube-link:hover {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: white;
}

body[data-theme="zine"] .director-detail-intro,
body[data-theme="zine"] .empty {
  border: 1px solid var(--line);
  background: rgba(251, 247, 239, 0.68);
}

body[data-theme="zine"] .show-more {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

body[data-theme="zine"] .show-more:hover {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: white;
}

body[data-theme="zine"] .director-alpha-rail {
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(248, 243, 234, 0.94);
}

@media (max-width: 1180px) {
  body[data-theme="zine"] .hero {
    grid-template-columns: minmax(500px, 0.65fr) minmax(300px, 0.35fr);
  }

  body[data-theme="zine"] .hero::before {
    width: min(330px, 29vw);
  }

  body[data-theme="zine"] .hero::after {
    display: none;
  }

  body[data-theme="zine"] .director-index {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 980px) {
  body[data-theme="zine"] .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 30px;
  }

  body[data-theme="zine"] .hero::before,
  body[data-theme="zine"] .hero::after {
    display: none;
  }

  body[data-theme="zine"] .toolbar,
  body[data-theme="zine"] .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body[data-theme="zine"] .app-shell {
    width: min(100% - 20px, 1540px);
  }

  body[data-theme="zine"] .hero {
    padding: 22px 18px;
  }

  body[data-theme="zine"] h1 {
    font-size: 3.1rem;
  }

  body[data-theme="zine"] .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-theme="zine"] .stats div,
  body[data-theme="zine"] .stats div:first-child {
    min-height: 54px;
    padding: 0 7px;
  }

  body[data-theme="zine"] .stats strong {
    font-size: 1.9rem;
  }

  body[data-theme="zine"] .global-search-control,
  body[data-theme="zine"] .results,
  body[data-theme="zine"] .director-index {
    grid-template-columns: 1fr;
  }
}

.search-field {
  position: relative;
}

.search-palette {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: min(760px, calc(100vw - 64px));
  max-height: min(620px, calc(100vh - 150px));
  display: none;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(248, 243, 234, 0.98);
  box-shadow: 0 18px 45px rgba(38, 29, 20, 0.16);
  backdrop-filter: blur(20px);
}

.search-palette.visible {
  display: grid;
  gap: 10px;
}

.search-palette section {
  display: grid;
  gap: 2px;
}

.search-palette h3 {
  margin: 0;
  padding: 5px 8px;
  color: var(--muted);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.search-palette-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.search-palette-item:hover,
.search-palette-item.active {
  background: rgba(227, 194, 10, 0.18);
  color: var(--ink);
  transform: none;
}

.search-palette-item img,
.search-palette-symbol {
  width: 74px;
  height: 44px;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: #dfd7ca;
  filter: grayscale(0.72) contrast(1.08);
}

.search-palette-symbol {
  color: var(--accent-2);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.35rem;
}

.search-palette-item > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.search-palette-item strong {
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-palette-item small {
  overflow: hidden;
  color: var(--muted);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-palette mark {
  padding: 0 1px;
  background: var(--accent);
  color: inherit;
}

.search-palette-all {
  min-height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.66rem;
}

.search-palette-all:hover {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: white;
  transform: none;
}

.search-palette-empty {
  padding: 18px 10px;
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 640px) {
  .search-palette {
    width: calc(100vw - 40px);
  }

  .search-palette-item {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .search-palette-item img,
  .search-palette-symbol {
    width: 60px;
    height: 40px;
  }
}






body[data-theme="zine"] .toolbar,
body[data-theme="zine"] .director-panel,
body[data-theme="zine"] .results-panel {
  box-shadow: none;
}








.theme-switcher {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 6px;
}

.theme-options button {
  min-height: 44px;
  padding: 0 8px;
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

input,
select,
button {
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--field-bg);
  color: var(--ink);
}

input,
select {
  width: 100%;
  padding: 0 12px;
}

button {
  cursor: pointer;
  padding: 0 14px;
  font-weight: 800;
}

button:hover,
button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

body[data-theme="zine"] button:hover,
body[data-theme="zine"] button.active {
  border-color: var(--line);
  background: var(--accent);
  color: var(--ink);
}



#resetButton {
  align-self: end;
  background: #161616;
  color: white;
}

body[data-theme="zine"] #resetButton,
body[data-theme="zine"] #backToDirectors,
body[data-theme="zine"] #randomVideoButton {
  border-color: var(--line);
  background: var(--accent);
  color: var(--ink);
}


.content-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.34fr) minmax(560px, 0.66fr);
  gap: 18px;
  align-items: start;
}


.director-panel,
.results-panel {
  border: 2px solid var(--line);
  background: var(--panel-alpha);
}



.director-panel {
  position: relative;
}

.director-panel,
.results-panel {
  position: sticky;
  top: 102px;
  max-height: calc(100vh - 122px);
  overflow: auto;
}


.panel-heading {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 2px solid var(--line);
  background: var(--surface);
}




.panel-sticky {
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--panel-alpha);
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.06rem;
}

body[data-theme="zine"] .panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 1.06rem;
  font-weight: 900;
  text-transform: uppercase;
}




body[data-theme="zine"] .panel-heading h2::before {
  content: "*";
  color: var(--accent-2);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.8rem;
  line-height: 0.8;
}

.panel-heading span {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#backToDirectors {
  display: none;
  min-height: 34px;
  padding: 0 12px;
  border-color: #161616;
  background: #161616;
  color: white;
  font-size: 0.86rem;
}

#backToDirectors.visible,
#randomDirectorVideoButton.visible {
  display: inline-flex;
  align-items: center;
}

#randomDirectorVideoButton {
  display: none;
  min-height: 34px;
  padding: 0 12px;
  border-color: var(--line);
  background: var(--accent);
  color: var(--ink);
  font-size: 0.76rem;
}

#randomVideoButton {
  min-height: 34px;
  padding: 0 12px;
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  font-size: 0.86rem;
}


.section-search {
  padding: 12px 16px;
  border-bottom: 2px solid var(--line);
  background: rgba(244, 215, 165, 0.42);
}




body[data-theme="zine"] .section-search {
  background:
    linear-gradient(90deg, rgba(229, 217, 8, 0.18), transparent 42%),
    var(--surface);
}


body[data-theme="archive"] .section-search,
body[data-theme="archive"] .director-tabs {
  background: rgba(199, 213, 196, 0.62);
}

body[data-theme="catalog"] .section-search,
body[data-theme="catalog"] .director-tabs {
  background: rgba(216, 201, 167, 0.54);
}

body[data-theme="vhs"] .section-search,
body[data-theme="vhs"] .director-tabs {
  background: rgba(51, 53, 64, 0.82);
}

body[data-theme="museum"] .section-search,
body[data-theme="museum"] .director-tabs {
  background: rgba(223, 216, 199, 0.46);
}

.director-search {
  padding-top: 0;
}

.director-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 2px solid var(--line);
  background: rgba(244, 215, 165, 0.42);
}




body[data-theme="zine"] .director-tabs {
  background: var(--surface);
}




.director-tabs.hidden {
  display: none;
}

.reshuffle-directors {
  display: none;
  width: calc(100% - 32px);
  min-height: 34px;
  margin: 10px 16px 0;
  border-color: var(--line);
  background: var(--accent);
  color: var(--ink);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.reshuffle-directors.visible {
  display: block;
}

.director-tabs button {
  flex: 1;
  min-height: 36px;
  padding: 0 12px;
  background: var(--field-bg);
}

.director-alpha-rail {
  position: sticky;
  top: 206px;
  width: 36px;
  max-width: 36px;
  margin-left: auto;
  margin-right: 8px;
  margin-bottom: -540px;
  right: 8px;
  z-index: 3;
  display: none;
  flex-direction: column;
  gap: 3px;
  max-height: min(520px, calc(100vh - 330px));
  padding: 6px 4px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--panel-alpha);
  backdrop-filter: blur(10px);
}

.director-alpha-rail.visible {
  display: flex;
}

.director-alpha-rail button {
  width: 24px;
  max-width: 24px;
  min-height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

body[data-theme="zine"] .director-alpha-rail {
  background: rgba(251, 244, 228, 0.92);
}

.director-alpha-rail button:hover {
  background: var(--accent);
  color: white;
}

.director-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 10px;
  overflow: visible;
  padding: 10px;
  background: var(--surface);
}


.director-index.director-detail-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.director-detail-intro {
  grid-column: 1 / -1;
  padding: 16px;
  border: 2px solid var(--line);
  background: var(--field-bg);
}

.director-random-spotlight {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.44fr) minmax(0, 0.56fr);
  min-height: 190px;
  border: 2px solid var(--line);
  background: #050505;
  color: white;
  overflow: hidden;
}

.director-random-spotlight .spotlight-thumb {
  min-height: 190px;
}

.director-random-spotlight .spotlight-body {
  justify-items: start;
  text-align: left;
}

.director-random-spotlight .spotlight-body h3 {
  color: white;
}

.director-detail-intro h3 {
  margin: 0 0 6px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.director-detail-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.director-card {
  position: relative;
  width: 100%;
  min-height: 288px;
  display: block;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--card-radius);
  background: #25211d;
  color: var(--ink);
  text-align: center;
  overflow: hidden;
}



body[data-theme="zine"] .director-card {
  min-height: 304px;
  border-width: 2px;
  background: var(--surface);
  box-shadow: none;
}


body[data-theme="museum"] .director-card,
body[data-theme="catalog"] .director-card {
  min-height: 304px;
}

body[data-theme="vhs"] .director-card {
  box-shadow: inset 0 0 0 1px rgba(240, 188, 66, 0.14);
}

.director-card:hover,
.director-card.active {
  background: #25211d;
  color: white;
}

.director-card.active {
  outline: 4px solid var(--accent);
  outline-offset: -6px;
}

.director-card:hover img {
  transform: scale(1.04);
}

.thumb-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  min-height: 288px;
  background: #25211d;
}


body[data-theme="zine"] .thumb-collage {
  min-height: 304px;
  background:
    repeating-radial-gradient(circle, rgba(23, 22, 21, 0.14) 0 1px, transparent 1px 4px),
    #171615;
}


body[data-theme="museum"] .thumb-collage,
body[data-theme="catalog"] .thumb-collage {
  min-height: 304px;
}

.thumb-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
}

body[data-theme="zine"] .thumb-collage::after {
  background:
    linear-gradient(180deg, rgba(23, 22, 21, 0.02) 0%, rgba(23, 22, 21, 0.2) 50%, rgba(23, 22, 21, 0.78) 100%),
    repeating-linear-gradient(0deg, rgba(251, 244, 228, 0.06) 0 1px, transparent 1px 5px);
}

.thumb {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, transparent), color-mix(in srgb, var(--accent-2) 70%, transparent));
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: var(--thumb-filter);
  transition: transform 180ms ease;
}

.director-card-info {
  position: absolute;
  inset: auto 12px 12px;
  z-index: 1;
  height: 108px;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(32px, 1fr) 24px minmax(24px, 1fr);
  align-items: center;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 242, 216, 0.48);
  border-radius: var(--card-radius);
  background: rgba(32, 24, 23, 0.38);
  color: white;
  backdrop-filter: blur(3px);
}


body[data-theme="catalog"] .director-card-info,
body[data-theme="museum"] .director-card-info {
  background: rgba(251, 250, 244, 0.9);
  color: var(--ink);
  text-shadow: none;
}

body[data-theme="catalog"] .director-card-info {
  border-color: rgba(22, 22, 20, 0.35);
}

body[data-theme="museum"] .director-card-info {
  height: 108px;
  border-color: rgba(32, 36, 33, 0.18);
  backdrop-filter: blur(7px);
}

body[data-theme="vhs"] .director-card-info {
  border-color: rgba(240, 188, 66, 0.36);
  background: rgba(23, 24, 29, 0.72);
}

body[data-theme="zine"] .director-card-info {
  height: 112px;
  inset: auto 10px 10px;
  border: 2px solid var(--line);
  background: rgba(251, 244, 228, 0.9);
  color: var(--ink);
  backdrop-filter: none;
  transform: rotate(-0.4deg);
}


.director-name {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 0;
  font-size: 0.88rem;
  line-height: 1.08;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
  text-transform: var(--title-case);
  overflow-wrap: anywhere;
}


body[data-theme="catalog"] .director-name,
body[data-theme="museum"] .director-name {
  text-shadow: none;
}

body[data-theme="zine"] .director-name {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.06rem;
  line-height: 1;
  text-shadow: none;
}


.director-meta {
  justify-self: center;
  max-width: 100%;
  min-width: 0;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 8px;
  border: 1px solid rgba(32, 24, 23, 0.22);
  border-radius: 999px;
  background: rgba(255, 242, 216, 0.94);
  color: #161616;
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}


body[data-theme="catalog"] .director-meta,
body[data-theme="museum"] .director-meta {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

body[data-theme="vhs"] .director-meta {
  background: rgba(240, 188, 66, 0.95);
  color: #17181d;
}

body[data-theme="zine"] .director-meta {
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--ink);
  transform: rotate(-1deg);
}




.director-top-artists {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.68rem;
  line-height: 1.12;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  overflow-wrap: anywhere;
}


body[data-theme="catalog"] .director-top-artists,
body[data-theme="museum"] .director-top-artists {
  color: var(--muted);
  text-shadow: none;
}

body[data-theme="zine"] .director-top-artists {
  color: var(--ink);
  font-weight: 900;
  text-shadow: none;
  text-transform: uppercase;
}


.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  padding: 10px;
  background: var(--surface);
}


.random-spotlight {
  border-bottom: 2px solid var(--line);
  background: var(--surface);
}


.panel-sticky .random-spotlight {
  background: var(--panel-alpha);
}

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.44fr) minmax(0, 0.56fr);
  min-height: 170px;
  margin: 10px;
  border: 2px solid var(--line);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--field-bg);
}


body[data-theme="zine"] .spotlight-card {
  border-width: 2px;
  background: transparent;
  transform: rotate(-0.2deg);
}





.spotlight-thumb {
  position: relative;
  display: block;
  width: 100%;
  min-height: 170px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #25211d;
  overflow: hidden;
  cursor: pointer;
}


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

.spotlight-body {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
}


.spotlight-kicker {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}


body[data-theme="zine"] .spotlight-kicker {
  display: inline-block;
  justify-self: center;
  padding: 0 6px;
  background: var(--accent);
  color: var(--ink);
  transform: rotate(-2deg);
}

.spotlight-body h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.24;
}


.video-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--field-bg);
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(32, 24, 23, 0.08);
}


body[data-theme="zine"] .video-card {
  border-width: 2px;
  background: var(--field-bg);
  overflow: hidden;
}



body[data-theme="catalog"] .video-card,
body[data-theme="museum"] .video-card {
  box-shadow: none;
}

body[data-theme="archive"] .video-card {
  border-left-width: 8px;
  border-left-color: var(--accent-2);
}

body[data-theme="vhs"] .video-card {
  box-shadow: inset 0 0 0 1px rgba(63, 192, 184, 0.14);
}

body[data-theme="zine"] .video-card:nth-child(odd) {
  transform: rotate(-0.35deg);
}

body[data-theme="zine"] .video-card:nth-child(even) {
  transform: rotate(0.3deg);
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: 16 / 9;
  background: #25211d;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}


body[data-theme="zine"] .video-thumb {
  border: 2px solid var(--line);
  background: #171615;
  box-shadow: 8px 8px 0 rgba(23, 22, 21, 0.08);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: var(--thumb-filter);
  transition: transform 180ms ease, filter 180ms ease;
}

.video-thumb:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  background: #000;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.34));
}

body[data-theme="zine"] .video-thumb::after {
  background:
    linear-gradient(180deg, transparent 42%, rgba(23, 22, 21, 0.4)),
    repeating-linear-gradient(0deg, rgba(251, 244, 228, 0.08) 0 1px, transparent 1px 5px);
}

.play-mark {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  width: 42px;
  height: 30px;
  border: 1px solid rgba(255, 242, 216, 0.42);
  border-radius: 4px;
  background: rgba(200, 66, 47, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}



body[data-theme="zine"] .play-mark {
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: var(--accent-2);
  box-shadow: none;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}


body[data-theme="zine"] .play-mark::before {
  display: none;
}

.play-mark::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 8px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid white;
}

.video-card-body {
  min-height: 132px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  text-align: center;
}


body[data-theme="zine"] .video-card-body {
  gap: 7px;
  padding: 10px;
  text-align: left;
}

body[data-theme="catalog"] .video-card-body,
body[data-theme="museum"] .video-card-body {
  text-align: left;
}

body[data-theme="catalog"] .meta,
body[data-theme="museum"] .meta {
  justify-items: start;
}

.video-card h3 {
  margin: 0;
  min-height: 40px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.98rem;
  line-height: 1.28;
}


body[data-theme="zine"] .video-card h3 {
  min-height: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.18rem;
  line-height: 1;
  text-transform: uppercase;
}


.meta {
  display: grid;
  gap: 4px;
  justify-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}



body[data-theme="zine"] .meta {
  justify-items: start;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}


body[data-theme="zine"] .inline-filter {
  display: inline;
  padding: 0 4px;
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
}

.meta strong {
  color: var(--ink);
}

.inline-filter {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.inline-filter:hover {
  background: transparent;
  color: var(--accent);
}

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

.card-actions {
  margin-top: 2px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.youtube-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: var(--card-radius);
  background: var(--accent-2);
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}


.video-card .youtube-link {
  width: 100%;
}

body[data-theme="museum"] .youtube-link,
body[data-theme="catalog"] .youtube-link {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--accent-2);
  color: var(--accent-2);
}

.empty {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 38px;
  color: var(--muted);
  background: var(--surface);
}

.empty strong {
  color: var(--ink);
  font-size: 1rem;
}

.empty button,
.show-more {
  min-height: 38px;
  border-color: var(--line);
  background: var(--accent);
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.show-more {
  grid-column: 1 / -1;
  width: 100%;
}

@media (max-width: 980px) {
  .hero,
  .content-grid,
  .toolbar {
    grid-template-columns: 1fr;
  }

  body[data-theme="zine"] .hero {
    grid-template-columns: 1fr;
  }

  body[data-theme="zine"] .hero::before,
  body[data-theme="zine"] .hero::after,

  .toolbar,
  .director-panel,
  .results-panel {
    position: static;
  }

  .director-panel,
  .director-index,
  .results-panel {
    max-height: none;
  }

  .director-index {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 20px, 1480px);
    padding-top: 10px;
  }


  .hero {
    min-height: 0;
    padding: 18px;
  }

  h1,
  body[data-theme="zine"] h1,

  .lead {
    font-size: 0.9rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stats div,
  body[data-theme="zine"] .stats div {
    min-height: 58px;
  }

  .results {
    grid-template-columns: 1fr;
  }

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

  .spotlight-thumb {
    aspect-ratio: 16 / 9;
  }

  .director-index {
    grid-template-columns: 1fr 1fr;
  }

  .director-card {
    min-height: 250px;
  }

  .thumb-collage {
    min-height: 250px;
  }

  .director-card-info {
    height: 110px;
    inset: auto 8px 8px;
    padding: 8px;
    grid-template-rows: minmax(34px, 1fr) 24px minmax(24px, 1fr);
  }
}


body[data-theme="line"] .lead,
body[data-theme="line"] .kicker,
body[data-theme="line"] label,
body[data-theme="line"] button,
body[data-theme="line"] input,
body[data-theme="line"] .panel-heading span,
body[data-theme="line"] .director-top-artists,
body[data-theme="line"] .meta,
body[data-theme="line"] .youtube-link {
  font-family: "Courier New", ui-monospace, monospace;
}

body[data-theme="line"] h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 5rem;
  line-height: 0.92;
  text-transform: uppercase;
}

body[data-theme="line"] .lead {
  max-width: 640px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
}

body[data-theme="line"] .stats {
  width: min(680px, 100%);
  justify-self: start;
}

body[data-theme="line"] .stats div {
  align-items: flex-start;
  min-height: 72px;
  border-width: 0 0 0 1px;
  background: transparent;
  box-shadow: none;
}

body[data-theme="line"] .stats strong {
  color: var(--accent);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 3.25rem;
}

body[data-theme="line"] .stats span {
  color: var(--ink);
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

body[data-theme="line"] .toolbar,
body[data-theme="line"] .director-panel,
body[data-theme="line"] .results-panel {
  box-shadow: none;
}

body[data-theme="line"] button:hover,
body[data-theme="line"] button.active,
body[data-theme="line"] #resetButton,
body[data-theme="line"] #backToDirectors,
body[data-theme="line"] #randomVideoButton,
body[data-theme="line"] #randomDirectorVideoButton,
body[data-theme="line"] .theme-options button.active {
  border-color: var(--line);
  background: var(--accent);
  color: white;
}

body[data-theme="line"] .section-search,
body[data-theme="line"] .director-tabs {
  background: var(--surface);
}

body[data-theme="line"] .panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 1.06rem;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-theme="line"] .panel-heading h2::before {
  content: "*";
  color: var(--accent);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.8rem;
  line-height: 0.8;
}

body[data-theme="line"] .director-card {
  min-height: 304px;
  border-width: 2px;
  background: var(--surface);
  box-shadow: none;
}

body[data-theme="line"] .thumb-collage {
  min-height: 304px;
  background:
    repeating-radial-gradient(circle, rgba(23, 22, 21, 0.14) 0 1px, transparent 1px 4px),
    #171615;
}

body[data-theme="line"] .thumb-collage::after {
  background:
    linear-gradient(180deg, rgba(23, 22, 21, 0.02) 0%, rgba(23, 22, 21, 0.2) 50%, rgba(23, 22, 21, 0.78) 100%),
    repeating-linear-gradient(0deg, rgba(251, 244, 228, 0.06) 0 1px, transparent 1px 5px);
}

body[data-theme="line"] .director-card-info {
  height: 112px;
  inset: auto 10px 10px;
  border: 2px solid var(--line);
  background: rgba(251, 244, 228, 0.9);
  color: var(--ink);
  backdrop-filter: none;
  transform: rotate(-0.4deg);
}

body[data-theme="line"] .director-name,
body[data-theme="line"] .video-card h3 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-shadow: none;
  text-transform: uppercase;
}

body[data-theme="line"] .director-meta,
body[data-theme="line"] .inline-filter {
  background: var(--accent);
  color: white;
  text-decoration: none;
}

body[data-theme="line"] .director-top-artists,
body[data-theme="line"] .meta {
  color: var(--ink);
  font-weight: 900;
  text-shadow: none;
  text-transform: uppercase;
}

body[data-theme="line"] .spotlight-card {
  border-width: 2px;
  background: transparent;
  transform: rotate(-0.2deg);
}

body[data-theme="line"] .spotlight-kicker {
  display: inline-block;
  justify-self: center;
  padding: 0 6px;
  background: var(--accent);
  color: white;
  transform: rotate(-2deg);
}

body[data-theme="line"] .video-card {
  border-width: 2px;
  background: var(--field-bg);
  overflow: hidden;
}

body[data-theme="line"] .video-card:nth-child(odd) {
  transform: rotate(-0.35deg);
}

body[data-theme="line"] .video-card:nth-child(even) {
  transform: rotate(0.3deg);
}

body[data-theme="line"] .video-thumb {
  border: 2px solid var(--line);
  background: #171615;
  box-shadow: 8px 8px 0 rgba(23, 22, 21, 0.08);
}

body[data-theme="line"] .video-thumb::after {
  background:
    linear-gradient(180deg, transparent 42%, rgba(23, 22, 21, 0.4)),
    repeating-linear-gradient(0deg, rgba(251, 244, 228, 0.08) 0 1px, transparent 1px 5px);
}

body[data-theme="line"] .play-mark {
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  box-shadow: none;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

body[data-theme="line"] .play-mark::before {
  display: none;
}

body[data-theme="line"] .video-card-body {
  gap: 7px;
  padding: 10px;
  text-align: left;
}

body[data-theme="line"] .director-random-spotlight {
  background: #050505;
  color: white;
}

@media (max-width: 980px) {
  body[data-theme="line"] .hero {
    grid-template-columns: 1fr;
  }

  body[data-theme="line"] .hero::before,
  body[data-theme="line"] .hero::after {
    display: none;
  }
}

@media (max-width: 640px) {
  body[data-theme="line"] .app-shell {
    width: min(100% - 20px, 1480px);
    padding-left: 0;
  }

  body[data-theme="line"] .app-shell::before {
    display: none;
  }

  body[data-theme="line"] h1 {
    font-size: 2.35rem;
  }
}

/* MVD Archive: full visual route based on the supplied vinyl archive reference. */
body[data-theme="mvd"] {
  background:
    radial-gradient(circle at 12% 9%, rgba(87, 56, 31, 0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 42%, rgba(87, 56, 31, 0.06) 0 1px, transparent 2px),
    repeating-linear-gradient(0deg, rgba(73, 51, 33, 0.018) 0 1px, transparent 1px 4px),
    #eee3d0;
  background-size: 31px 29px, 43px 37px, auto, auto;
}

body[data-theme="mvd"] .app-shell {
  width: min(1680px, calc(100% - 104px));
  margin-left: 88px;
  padding: 0 0 42px;
  border-left: 1px solid var(--line);
}

body[data-theme="mvd"] .app-shell::before {
  content: "MUSIC VIDEO DIRECTOR ARCHIVE";
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 34px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px),
    #10100f;
  color: #f8edda;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 6px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

body[data-theme="mvd"] .archive-nav {
  height: 96px;
  display: grid;
  grid-template-columns: 230px 1fr 250px;
  align-items: center;
  gap: 26px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 237, 218, 0.72);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
}

body[data-theme="mvd"] .archive-nav strong {
  display: grid;
  width: max-content;
  color: var(--accent);
  font-size: 1.45rem;
  line-height: 0.82;
}

body[data-theme="mvd"] .archive-nav strong span {
  color: var(--ink);
  font-size: 3rem;
}

body[data-theme="mvd"] .archive-nav nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 54px);
  font-size: 0.92rem;
}

body[data-theme="mvd"] .archive-nav b {
  justify-self: end;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  letter-spacing: 1px;
  line-height: 1.1;
}

body[data-theme="mvd"] .hero {
  min-height: 520px;
  grid-template-columns: minmax(540px, 0.51fr) minmax(520px, 0.49fr);
  grid-template-rows: 1fr auto;
  justify-items: start;
  align-items: end;
  gap: 10px 22px;
  padding: 34px 38px 22px;
  border-width: 0 0 1px;
  background: transparent;
  text-align: left;
  overflow: visible;
}

body[data-theme="mvd"] .hero > div:first-child,
body[data-theme="mvd"] .stats {
  position: relative;
  z-index: 3;
  grid-column: 1;
}

body[data-theme="mvd"] .kicker {
  display: none;
}

body[data-theme="mvd"] h1 {
  max-width: 790px;
  margin: 0 0 18px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4.4rem, 6.4vw, 7.3rem);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
}

body[data-theme="mvd"] .lead {
  max-width: 630px;
  color: var(--accent);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 5px;
  line-height: 1.75;
  text-transform: uppercase;
}

body[data-theme="mvd"] .stats {
  width: min(660px, 100%);
  gap: 0;
}

body[data-theme="mvd"] .stats div {
  min-height: 76px;
  align-items: flex-start;
  padding: 0 30px;
  border-width: 0 0 0 1px;
  background: transparent;
  text-align: left;
}

body[data-theme="mvd"] .stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

body[data-theme="mvd"] .stats strong {
  color: var(--accent);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 3.45rem;
  line-height: 0.9;
}

body[data-theme="mvd"] .stats span {
  color: var(--ink);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

body[data-theme="mvd"] .archive-hero-art {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  width: 100%;
  display: block;
}

body[data-theme="mvd"] .archive-record {
  position: absolute;
  left: -110px;
  top: 4px;
  width: 350px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--accent) 0 14%, #151412 14.5% 17%, transparent 17.5%),
    repeating-radial-gradient(circle, #151412 0 3px, #302e2b 4px 5px, #151412 6px 8px);
  box-shadow: inset 0 0 0 1px #111, 8px 9px 18px rgba(25, 19, 13, 0.2);
}

body[data-theme="mvd"] .archive-record::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  border-radius: 350px 0 0 350px;
  background: rgba(248, 237, 218, 0.88);
  mix-blend-mode: screen;
}

body[data-theme="mvd"] .archive-record::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 0;
  top: 50%;
  height: 28px;
  background:
    linear-gradient(transparent 47%, #141311 47% 53%, transparent 53%),
    repeating-linear-gradient(90deg, transparent 0 14px, #141311 14px 16px, transparent 16px 25px);
  clip-path: polygon(0 48%, 2% 43%, 4% 56%, 7% 29%, 10% 70%, 13% 45%, 18% 55%, 22% 37%, 26% 63%, 30% 47%, 36% 53%, 41% 34%, 46% 66%, 50% 45%, 56% 55%, 61% 39%, 66% 61%, 72% 47%, 78% 53%, 84% 42%, 90% 58%, 96% 47%, 100% 52%, 100% 55%, 96% 50%, 90% 61%, 84% 45%, 78% 56%, 72% 50%, 66% 64%, 61% 42%, 56% 58%, 50% 48%, 46% 69%, 41% 37%, 36% 56%, 30% 50%, 26% 66%, 22% 40%, 18% 58%, 13% 48%, 10% 73%, 7% 32%, 4% 59%, 2% 46%, 0 52%);
}

body[data-theme="mvd"] .archive-record i {
  position: relative;
  z-index: 2;
  color: white;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2rem;
  font-style: normal;
  line-height: 0.75;
  text-align: center;
  text-transform: uppercase;
}

body[data-theme="mvd"] .archive-record small {
  font-size: 0.62rem;
}

body[data-theme="mvd"] .archive-timeline {
  position: absolute;
  top: 108px;
  right: 6px;
  left: 245px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
}

body[data-theme="mvd"] .archive-timeline i {
  position: relative;
  z-index: 2;
  width: 64px;
  display: grid;
  place-items: center;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 3.2rem;
  font-style: normal;
}

body[data-theme="mvd"] .archive-timeline i::after {
  content: "";
  position: absolute;
  bottom: -32px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px #111;
}

body[data-theme="mvd"] .archive-slogan {
  position: absolute;
  right: 0;
  bottom: 48px;
  left: 210px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
}

body[data-theme="mvd"] .archive-slogan em {
  height: 1px;
  background: var(--line);
}

body[data-theme="mvd"] .archive-slogan strong {
  color: var(--accent);
}

body[data-theme="mvd"] .toolbar {
  top: 0;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 0.7fr) auto;
  margin: 0;
  padding: 14px 38px;
  border-width: 0 0 1px;
  background: rgba(20, 18, 16, 0.96);
  color: white;
  backdrop-filter: blur(12px);
}

body[data-theme="mvd"] .toolbar label,
body[data-theme="mvd"] .toolbar .theme-switcher {
  color: #f8edda;
  font-family: "Courier New", ui-monospace, monospace;
  text-transform: uppercase;
}

body[data-theme="mvd"] .toolbar input {
  border-color: #f8edda;
  background: #11100e;
  color: white;
}

body[data-theme="mvd"] button,
body[data-theme="mvd"] input,
body[data-theme="mvd"] label,
body[data-theme="mvd"] .meta,
body[data-theme="mvd"] .youtube-link,
body[data-theme="mvd"] .director-top-artists {
  font-family: "Courier New", ui-monospace, monospace;
}

body[data-theme="mvd"] button:hover,
body[data-theme="mvd"] button.active,
body[data-theme="mvd"] #resetButton,
body[data-theme="mvd"] #randomVideoButton,
body[data-theme="mvd"] #randomDirectorVideoButton {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

body[data-theme="mvd"] .content-grid {
  grid-template-columns: minmax(390px, 0.46fr) minmax(620px, 0.54fr);
  gap: 26px;
  padding: 26px 38px 0;
}

body[data-theme="mvd"] .director-panel,
body[data-theme="mvd"] .results-panel {
  top: 102px;
  border-width: 1px;
  background: rgba(248, 237, 218, 0.84);
}

body[data-theme="mvd"] .panel-heading {
  min-height: 56px;
  padding: 10px 14px;
  border-bottom-width: 1px;
  background: transparent;
}

body[data-theme="mvd"] .panel-heading h2 {
  padding: 7px 12px;
  background: #11100e;
  color: white;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.92rem;
  text-transform: uppercase;
}

body[data-theme="mvd"] .section-search,
body[data-theme="mvd"] .director-tabs {
  padding: 10px 14px;
  border-bottom-width: 1px;
  background: transparent;
}

body[data-theme="mvd"] .director-tabs {
  gap: 0;
}

body[data-theme="mvd"] .director-tabs button {
  min-height: 31px;
  border-width: 1px;
  font-size: 0.72rem;
  text-transform: uppercase;
}

body[data-theme="mvd"] .director-index {
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 12px;
  padding: 14px;
  background: transparent;
}

body[data-theme="mvd"] .director-card {
  min-height: 244px;
  display: grid;
  grid-template-rows: 132px 1fr;
  border-width: 1px;
  background: transparent;
  text-align: left;
  overflow: hidden;
}

body[data-theme="mvd"] .thumb-collage {
  min-height: 132px;
  height: 132px;
  display: block;
  background: #11100e;
}

body[data-theme="mvd"] .thumb-collage .thumb {
  width: 100%;
  height: 100%;
  display: none;
}

body[data-theme="mvd"] .thumb-collage .thumb:first-child {
  display: block;
}

body[data-theme="mvd"] .thumb-collage::after {
  background: repeating-linear-gradient(0deg, rgba(248, 237, 218, 0.08) 0 1px, transparent 1px 4px);
}

body[data-theme="mvd"] .director-card-info {
  position: static;
  height: auto;
  min-height: 110px;
  grid-template-rows: minmax(34px, auto) 22px minmax(30px, auto);
  align-items: start;
  gap: 3px;
  padding: 10px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  backdrop-filter: none;
}

body[data-theme="mvd"] .director-name,
body[data-theme="mvd"] .video-card h3 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1rem;
  line-height: 0.94;
  text-shadow: none;
  text-transform: uppercase;
}

body[data-theme="mvd"] .director-meta {
  justify-self: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.58rem;
  text-transform: uppercase;
}

body[data-theme="mvd"] .director-top-artists {
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1.35;
  text-shadow: none;
  text-transform: uppercase;
}

body[data-theme="mvd"] .results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

body[data-theme="mvd"] .video-card,
body[data-theme="mvd"] .spotlight-card,
body[data-theme="mvd"] .director-random-spotlight {
  border-width: 1px;
  background: transparent;
}

body[data-theme="mvd"] .video-card-body {
  text-align: left;
}

body[data-theme="mvd"] .youtube-link {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-transform: uppercase;
}

body[data-theme="mvd"] .play-mark {
  border-color: white;
  background: rgba(200, 47, 44, 0.88);
}

body[data-theme="mvd"] .director-alpha-rail {
  border-radius: 0;
  background: var(--surface);
}

@media (max-width: 1280px) {
  body[data-theme="mvd"] .archive-nav nav {
    gap: 18px;
  }

  body[data-theme="mvd"] .archive-hero-art {
    opacity: 0.5;
  }

  body[data-theme="mvd"] .director-index {
    grid-template-columns: repeat(3, minmax(145px, 1fr));
  }
}

@media (max-width: 980px) {
  body[data-theme="mvd"] .app-shell {
    width: 100%;
    margin-left: 0;
    border-left: 0;
  }

  body[data-theme="mvd"] .app-shell::before,
  body[data-theme="mvd"] .archive-nav nav,
  body[data-theme="mvd"] .archive-nav b,
  body[data-theme="mvd"] .archive-hero-art {
    display: none;
  }

  body[data-theme="mvd"] .archive-nav {
    height: 76px;
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  body[data-theme="mvd"] .hero {
    min-height: 420px;
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  body[data-theme="mvd"] .toolbar,
  body[data-theme="mvd"] .content-grid {
    grid-template-columns: 1fr;
    padding-right: 20px;
    padding-left: 20px;
  }

  body[data-theme="mvd"] .director-index {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
}

@media (max-width: 640px) {
  body[data-theme="mvd"] h1 {
    font-size: 3.1rem;
  }

  body[data-theme="mvd"] .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-theme="mvd"] .stats div {
    padding: 0 7px;
  }

  body[data-theme="mvd"] .stats strong {
    font-size: 2rem;
  }

  body[data-theme="mvd"] .stats span {
    font-size: 0.55rem;
    letter-spacing: 0;
  }

  body[data-theme="mvd"] .director-index {
    grid-template-columns: 1fr 1fr;
  }
}

/* Poster Line 4 inherits Poster Line below the hero and replaces only its palette and header. */
body.theme-line4 {
  --bg: #eee3d0;
  --surface: #f8edda;
  --surface-2: #ead9bd;
  --ink: #11100e;
  --muted: #655b50;
  --line: #342e28;
  --accent: #c82f2c;
  --accent-2: #c82f2c;
  --accent-3: #11100e;
  --hero-tint: rgba(248, 237, 218, 0.98);
  --hero-tint-2: rgba(248, 237, 218, 0.92);
  --panel-alpha: rgba(255, 250, 240, 0.86);
  --field-bg: #fffaf1;
  --thumb-filter: grayscale(0.38) contrast(1.06);
  --card-radius: 8px;
  background:
    radial-gradient(circle at 12% 9%, rgba(87, 56, 31, 0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 42%, rgba(87, 56, 31, 0.06) 0 1px, transparent 2px),
    repeating-linear-gradient(0deg, rgba(73, 51, 33, 0.018) 0 1px, transparent 1px 4px),
    var(--bg);
  background-size: 31px 29px, 43px 37px, auto, auto;
}

body.theme-line4 .app-shell {
  width: min(1640px, calc(100% - 34px));
}

body.theme-line4 .app-shell::before {
  left: 0;
  top: 0;
  bottom: 0;
  width: 72px;
  border: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px),
    #10100f;
  color: #f8edda;
}

body.theme-line4 .archive-nav {
  display: none;
}

body.theme-line4 .hero {
  min-height: 312px;
  grid-template-columns: minmax(500px, 0.5fr) minmax(500px, 0.5fr);
  grid-template-rows: minmax(190px, 1fr) auto;
  align-items: end;
  gap: 8px 30px;
  padding: 18px 38px 14px;
  border-width: 1px;
  background: transparent;
  overflow: hidden;
}

body.theme-line4 .hero::before,
body.theme-line4 .hero::after {
  display: none;
  content: none;
}

body.theme-line4 .hero > div:first-child {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  width: 100%;
  min-width: 0;
}

body.theme-line4 .kicker {
  width: max-content;
  max-width: 100%;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 0.82rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

body.theme-line4 h1 {
  max-width: 760px;
  margin-bottom: 9px;
  font-size: clamp(3rem, 4.4vw, 4.9rem);
  line-height: 0.9;
}

body.theme-line4 .lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 3px;
  line-height: 1.4;
}

body.theme-line4 .stats {
  grid-column: 1;
  grid-row: 2;
  width: min(660px, 100%);
  gap: 0;
}

body.theme-line4 .stats div {
  min-height: 50px;
  padding: 0 28px;
}

body.theme-line4 .stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

body.theme-line4 .stats strong {
  font-size: 2.4rem;
}

body.theme-line4 .stats span {
  font-size: 0.65rem;
  letter-spacing: 1px;
}

body.theme-line4 .archive-hero-art {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  display: block;
}

body.theme-line4 .archive-record {
  position: absolute;
  left: 4%;
  top: 2px;
  width: min(218px, 38%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--accent) 0 14%, #151412 14.5% 17%, transparent 17.5%),
    repeating-radial-gradient(circle, #151412 0 3px, #302e2b 4px 5px, #151412 6px 8px);
  box-shadow: inset 0 0 0 1px #111, 8px 9px 18px rgba(25, 19, 13, 0.2);
}

body.theme-line4 .archive-record::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  border-radius: 350px 0 0 350px;
  background: rgba(248, 237, 218, 0.88);
  mix-blend-mode: screen;
}

body.theme-line4 .archive-record::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% - 1px);
  width: 50%;
  height: 2px;
  background: white;
}

body.theme-line4 .archive-record i {
  position: relative;
  z-index: 2;
  color: white;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.35rem;
  font-style: normal;
  line-height: 0.75;
  text-align: center;
  text-transform: uppercase;
}

body.theme-line4 .archive-record small {
  font-size: 0.62rem;
}

body.theme-line4 .archive-timeline {
  position: absolute;
  top: 50px;
  right: 0;
  left: 49%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
}

body.theme-line4 .archive-timeline::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -22px;
  height: 1px;
  background: var(--line);
}

body.theme-line4 .archive-timeline i {
  position: relative;
  z-index: 2;
  width: 54px;
  display: grid;
  place-items: center;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0;
  font-style: normal;
}

body.theme-line4 .archive-timeline svg {
  width: 44px;
  height: 44px;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.theme-line4 .archive-timeline svg circle {
  fill: currentColor;
  stroke: none;
}

body.theme-line4 .archive-timeline i::after {
  content: "";
  position: absolute;
  bottom: -26px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--ink);
}

body.theme-line4 .archive-slogan {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 22%;
  display: grid;
  grid-template-columns: max-content minmax(30px, 1fr) max-content;
  align-items: center;
  gap: 14px;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

body.theme-line4 .archive-slogan em {
  height: 1px;
  background: var(--line);
}

body.theme-line4 .archive-slogan strong {
  color: var(--accent);
}

body.theme-line4 .toolbar {
  border-color: var(--line);
  background: rgba(17, 16, 14, 0.96);
}

body.theme-line4 .toolbar label,
body.theme-line4 .toolbar .theme-switcher {
  color: #f8edda;
}

body.theme-line4 .toolbar input {
  border-color: #f8edda;
  background: #11100e;
  color: white;
}

body.theme-line4 label,
body.theme-line4 button,
body.theme-line4 input,
body.theme-line4 .panel-heading span,
body.theme-line4 .director-top-artists,
body.theme-line4 .meta,
body.theme-line4 .youtube-link {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.theme-line4 .director-meta,
body.theme-line4 .inline-filter {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(200, 47, 44, 0.55);
  text-underline-offset: 3px;
  transform: none;
}

body.theme-line4 .director-meta {
  text-decoration: none;
}

body.theme-line4 .inline-filter:hover {
  background: transparent;
  color: var(--accent);
}

body.theme-line4 .toolbar {
  gap: 12px;
  margin: 12px 0 18px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(42, 31, 22, 0.12);
}

body.theme-line4 input,
body.theme-line4 select,
body.theme-line4 button {
  border-width: 1px;
  border-color: rgba(52, 46, 40, 0.22);
  border-radius: 6px;
}

body.theme-line4 button {
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

body.theme-line4 button:hover {
  transform: translateY(-1px);
}

body.theme-line4 .theme-options {
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

body.theme-line4 .theme-options button {
  border: 0;
  background: transparent;
  color: #f8edda;
}

body.theme-line4 .theme-options button.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 3px 10px rgba(200, 47, 44, 0.28);
}

body.theme-line4 #resetButton {
  border: 1px solid rgba(248, 237, 218, 0.28);
  background: transparent;
  color: #f8edda;
}

body.theme-line4 #resetButton:hover {
  border-color: var(--accent);
  background: var(--accent);
}

body.theme-line4 .content-grid {
  gap: 24px;
}

body.theme-line4 .director-panel,
body.theme-line4 .results-panel {
  border: 0;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 14px 36px rgba(57, 43, 29, 0.1);
  scrollbar-color: rgba(101, 91, 80, 0.35) transparent;
}

body.theme-line4 .panel-sticky {
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(18px);
}

body.theme-line4 .panel-heading {
  min-height: 58px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(52, 46, 40, 0.12);
  background: transparent;
}

body.theme-line4 .panel-heading h2 {
  gap: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0;
  text-transform: none;
}

body.theme-line4 .panel-heading h2::before {
  display: none;
}

body.theme-line4 .panel-heading span {
  color: var(--muted);
  font-size: 0.76rem;
}

body.theme-line4 .panel-actions {
  gap: 6px;
}

body.theme-line4 #randomVideoButton,
body.theme-line4 #randomDirectorVideoButton,
body.theme-line4 #backToDirectors {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: rgba(52, 46, 40, 0.08);
  color: var(--ink);
  box-shadow: none;
}

body.theme-line4 #randomVideoButton:hover,
body.theme-line4 #randomDirectorVideoButton:hover,
body.theme-line4 #backToDirectors:hover {
  background: var(--accent);
  color: white;
}

body.theme-line4 .section-search,
body.theme-line4 .director-tabs {
  border-bottom: 1px solid rgba(52, 46, 40, 0.1);
  background: transparent;
}

body.theme-line4 .director-search {
  padding-top: 10px;
}

body.theme-line4 .section-search input {
  border: 1px solid rgba(52, 46, 40, 0.14);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 2px rgba(52, 46, 40, 0.04);
}

body.theme-line4 .director-tabs {
  gap: 4px;
  padding: 8px 12px;
}

body.theme-line4 .director-tabs button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

body.theme-line4 .director-tabs button.active {
  background: rgba(200, 47, 44, 0.1);
  color: var(--accent);
  box-shadow: none;
}

body.theme-line4 .director-index,
body.theme-line4 .results,
body.theme-line4 .random-spotlight {
  background: transparent;
}

body.theme-line4 .director-index,
body.theme-line4 .results {
  gap: 14px;
  padding: 14px;
}

body.theme-line4 .director-card {
  min-height: 304px;
  border: 1px solid rgba(52, 46, 40, 0.1);
  border-radius: 8px;
  background: var(--field-bg);
  box-shadow: 0 7px 20px rgba(57, 43, 29, 0.1);
  transform: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.theme-line4 .director-card:hover,
body.theme-line4 .director-card.active {
  border-color: rgba(200, 47, 44, 0.42);
  background: var(--field-bg);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(57, 43, 29, 0.16);
  transform: translateY(-3px);
}

body.theme-line4 .director-card.active {
  outline: 0;
  box-shadow: 0 0 0 2px var(--accent), 0 14px 30px rgba(57, 43, 29, 0.16);
}

body.theme-line4 .thumb-collage {
  min-height: 304px;
  border-radius: 7px;
  background: #211f1c;
}

body.theme-line4 .thumb-collage::after {
  background: linear-gradient(180deg, transparent 30%, rgba(17, 16, 14, 0.78) 100%);
}

body.theme-line4 .director-card-info {
  height: 112px;
  inset: auto 8px 8px;
  gap: 4px;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(28, 22, 17, 0.16);
  backdrop-filter: blur(12px);
  transform: none;
}

body.theme-line4 .director-name,
body.theme-line4 .video-card h3 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: none;
}

body.theme-line4 .director-name {
  font-size: 1rem;
  line-height: 1.1;
}

body.theme-line4 .director-meta {
  justify-self: start;
  min-height: 20px;
  padding: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 650;
}

body.theme-line4 .director-top-artists {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.25;
  text-shadow: none;
  text-transform: none;
}

body.theme-line4 .video-card {
  border: 1px solid rgba(52, 46, 40, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 6px 18px rgba(57, 43, 29, 0.09);
  transform: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body.theme-line4 .video-card:nth-child(odd),
body.theme-line4 .video-card:nth-child(even) {
  transform: none;
}

body.theme-line4 .video-card:hover {
  box-shadow: 0 12px 26px rgba(57, 43, 29, 0.14);
  transform: translateY(-2px);
}

body.theme-line4 .video-thumb {
  border: 0;
  border-radius: 7px 7px 0 0;
  box-shadow: none;
}

body.theme-line4 .video-thumb::after {
  background: linear-gradient(180deg, transparent 58%, rgba(17, 16, 14, 0.26));
}

body.theme-line4 .play-mark {
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 6px 18px rgba(17, 16, 14, 0.24);
  clip-path: none;
}

body.theme-line4 .play-mark::before {
  left: 14px;
  top: 11px;
  display: block;
  border-top-width: 7px;
  border-bottom-width: 7px;
  border-left: 10px solid var(--accent);
}

body.theme-line4 .video-card-body {
  gap: 7px;
  padding: 12px;
  text-align: left;
}

body.theme-line4 .video-card h3 {
  min-height: 0;
  font-size: 0.98rem;
  line-height: 1.25;
}

body.theme-line4 .meta {
  justify-items: start;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: none;
}

body.theme-line4 .inline-filter {
  font-weight: 650;
  text-decoration: none;
}

body.theme-line4 .youtube-link {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: rgba(52, 46, 40, 0.07);
  color: var(--ink);
  font-size: 0.72rem;
}

body.theme-line4 .youtube-link:hover {
  background: var(--accent);
  color: white;
}

body.theme-line4 .spotlight-card,
body.theme-line4 .director-random-spotlight {
  border: 1px solid rgba(52, 46, 40, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 7px 20px rgba(57, 43, 29, 0.09);
  color: var(--ink);
  transform: none;
}

body.theme-line4 .spotlight-thumb {
  border-radius: 7px 0 0 7px;
}

body.theme-line4 .spotlight-kicker {
  justify-self: start;
  padding: 0;
  background: transparent;
  color: var(--accent);
  transform: none;
}

body.theme-line4 .spotlight-body {
  justify-items: start;
  text-align: left;
}

body.theme-line4 .director-random-spotlight .spotlight-body h3 {
  color: var(--ink);
}

body.theme-line4 .director-detail-intro,
body.theme-line4 .empty {
  border: 0;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
}

body.theme-line4 .show-more {
  border: 0;
  border-radius: 6px;
  background: rgba(52, 46, 40, 0.08);
  color: var(--ink);
}

body.theme-line4 .show-more:hover {
  background: var(--accent);
  color: white;
}

body.theme-line4 .director-alpha-rail {
  border: 1px solid rgba(52, 46, 40, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 8px 24px rgba(57, 43, 29, 0.1);
}

@media (max-width: 1280px) {
  body.theme-line4 .hero {
    grid-template-columns: minmax(440px, 0.56fr) minmax(340px, 0.44fr);
  }

  body.theme-line4 .archive-record {
    display: none;
  }

  body.theme-line4 .archive-timeline {
    top: 34px;
    left: 0;
  }

  body.theme-line4 .archive-slogan {
    right: 0;
    bottom: 8px;
    left: 0;
    grid-template-columns: auto;
    gap: 5px;
    white-space: normal;
  }

  body.theme-line4 .archive-slogan em {
    display: none;
  }
}

@media (max-width: 980px) {
  body.theme-line4 .app-shell {
    width: min(100% - 20px, 1480px);
    padding-left: 0;
  }

  body.theme-line4 .app-shell::before,
  body.theme-line4 .archive-hero-art {
    display: none;
  }

  body.theme-line4 .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 28px;
  }

  body.theme-line4 .hero > div:first-child,
  body.theme-line4 .stats {
    grid-column: 1;
  }

  body.theme-line4 h1 {
    font-size: clamp(3.5rem, 10vw, 5.2rem);
  }
}

@media (max-width: 640px) {
  body.theme-line4 .hero {
    padding: 20px;
  }

  body.theme-line4 h1 {
    font-size: 2.75rem;
  }

  body.theme-line4 .lead {
    letter-spacing: 2px;
  }

  body.theme-line4 .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.theme-line4 .stats div {
    padding: 0 6px;
  }

  body.theme-line4 .stats strong {
    font-size: 2rem;
  }

  body.theme-line4 .stats span {
    font-size: 0.55rem;
    letter-spacing: 0;
  }
}

/* Clean Archive / Dirty Culture */
body.theme-line4 {
  --color-paper: #f2eadc;
  --color-black: #171513;
  --color-red: #b92e2a;
  --color-muted: #756b60;
  --color-line: rgba(23, 21, 19, 0.2);
  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Courier New", ui-monospace, monospace;
  --bg: var(--color-paper);
  --surface: #f8f2e7;
  --surface-2: #e7dccb;
  --ink: var(--color-black);
  --muted: var(--color-muted);
  --line: var(--color-black);
  --accent: var(--color-red);
  --accent-2: var(--color-red);
  --accent-3: var(--color-black);
  --panel-alpha: rgba(248, 242, 231, 0.94);
  --field-bg: #fbf7ef;
  --thumb-filter: grayscale(0.78) contrast(1.12) saturate(0.72);
  --card-radius: 6px;
  background:
    radial-gradient(circle at 18% 12%, rgba(70, 48, 29, 0.055) 0 0.7px, transparent 0.9px),
    radial-gradient(circle at 73% 48%, rgba(70, 48, 29, 0.04) 0 0.7px, transparent 0.9px),
    repeating-linear-gradient(0deg, rgba(48, 35, 24, 0.014) 0 1px, transparent 1px 5px),
    var(--color-paper);
  background-size: 27px 31px, 39px 43px, auto, auto;
  font-family: var(--font-ui);
}

body.theme-line4 .app-shell {
  width: min(1600px, calc(100% - 48px));
  padding-left: 0;
}

body.theme-line4 .app-shell::before {
  display: none;
}

body.theme-line4 .hero {
  min-height: 410px;
  grid-template-columns: minmax(540px, 0.52fr) minmax(500px, 0.48fr);
  grid-template-rows: 1fr auto;
  gap: 24px 56px;
  padding: 46px 48px 34px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background:
    linear-gradient(112deg, rgba(255, 252, 246, 0.52), transparent 58%),
    rgba(248, 242, 231, 0.56);
  box-shadow: none;
  overflow: hidden;
}

body.theme-line4 .hero > div:first-child {
  position: relative;
  z-index: 3;
  align-self: end;
}

body.theme-line4 .kicker {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  color: var(--color-red);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}

body.theme-line4 h1 {
  max-width: 790px;
  margin: 0 0 20px;
  color: var(--color-black);
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 6.4vw, 7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.86;
  text-transform: uppercase;
}

body.theme-line4 .human-note {
  display: block;
  position: static;
  width: max-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-black);
  color: var(--color-black);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
}

body.theme-line4 .lead {
  max-width: 650px;
  margin: 0 0 8px;
  color: var(--color-red);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

body.theme-line4 .archive-description {
  display: block;
  max-width: 650px;
  margin: 0;
  color: var(--color-muted);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.45;
}

body.theme-line4 .stats {
  grid-column: 1;
  grid-row: 2;
  width: min(700px, 100%);
  align-self: end;
  gap: 0;
}

body.theme-line4 .stats div {
  min-height: 66px;
  align-items: flex-start;
  padding: 0 30px;
  border: 0;
  border-left: 1px solid var(--color-line);
  background: transparent;
  text-align: left;
}

body.theme-line4 .stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

body.theme-line4 .stats strong {
  color: var(--color-black);
  font-family: var(--font-display);
  font-size: 3.1rem;
  line-height: 0.9;
}

body.theme-line4 .stats span {
  margin-top: 7px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.theme-line4 .archive-hero-art {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  width: 100%;
  display: block;
}

body.theme-line4 .archive-record {
  left: 0;
  top: 50%;
  width: min(300px, 46%);
  transform: translateY(-55%);
  box-shadow: inset 0 0 0 1px rgba(23, 21, 19, 0.72);
}

body.theme-line4 .archive-record::after {
  left: 50%;
  top: calc(50% - 1px);
  width: 155%;
  height: 2px;
  background: var(--color-black);
}

body.theme-line4 .archive-timeline {
  top: 50%;
  right: 0;
  left: 45%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  transform: translateY(-50%);
}

body.theme-line4 .archive-timeline::before {
  right: 0;
  left: -12px;
  bottom: -30px;
  background: var(--color-black);
}

body.theme-line4 .archive-timeline i {
  width: auto;
  color: var(--color-black);
}

body.theme-line4 .archive-timeline svg {
  width: 56px;
  height: 56px;
  stroke-width: 2.4;
}

body.theme-line4 .archive-timeline i::after {
  bottom: -35px;
  width: 8px;
  height: 8px;
  border: 0;
  background: var(--color-red);
  box-shadow: 0 0 0 2px var(--color-paper);
}

body.theme-line4 .archive-slogan {
  right: 0;
  bottom: 34px;
  left: 20%;
  gap: 16px;
  color: var(--color-black);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

body.theme-line4 .archive-slogan strong {
  color: var(--color-red);
}

.global-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.global-search-control #globalSearchButton {
  min-width: 112px;
}

body.theme-line4 label,
body.theme-line4 button,
body.theme-line4 input,
body.theme-line4 .meta,
body.theme-line4 .youtube-link,
body.theme-line4 .panel-heading span,
body.theme-line4 .director-top-artists {
  font-family: var(--font-ui);
}

body.theme-line4 .toolbar {
  top: 12px;
  grid-template-columns: minmax(420px, 1.35fr) minmax(360px, 0.65fr) auto;
  gap: 14px;
  margin: 18px 0 24px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: rgba(248, 242, 231, 0.94);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

body.theme-line4 .toolbar label,
body.theme-line4 .toolbar .theme-switcher {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.theme-line4 input,
body.theme-line4 select,
body.theme-line4 button {
  border: 1px solid var(--color-line);
  border-radius: 4px;
}

body.theme-line4 .toolbar input {
  min-height: 52px;
  border-color: var(--color-line);
  background: rgba(255, 252, 246, 0.78);
  color: var(--color-black);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

body.theme-line4 .global-search-control #globalSearchButton {
  min-height: 52px;
  border-color: var(--color-red);
  background: var(--color-red);
  color: white;
  font-family: var(--font-ui);
  font-size: 0.78rem;
}

body.theme-line4 .global-search-control #globalSearchButton:hover {
  border-color: var(--color-black);
  background: var(--color-black);
}

body.theme-line4 .theme-options {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: rgba(255, 252, 246, 0.62);
}

body.theme-line4 .theme-options button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-ui);
  font-size: 0.7rem;
}

body.theme-line4 .theme-options button.active {
  background: var(--color-black);
  color: white;
  box-shadow: none;
}

body.theme-line4 #resetButton {
  min-height: 52px;
  border-color: var(--color-black);
  background: transparent;
  color: var(--color-black);
  font-family: var(--font-ui);
  font-size: 0.72rem;
}

body.theme-line4 #resetButton:hover {
  background: var(--color-black);
  color: white;
}

body.theme-line4 .content-grid {
  grid-template-columns: minmax(350px, 0.35fr) minmax(680px, 0.65fr);
  gap: 26px;
}

body.theme-line4 .director-panel,
body.theme-line4 .results-panel {
  top: 110px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: rgba(248, 242, 231, 0.82);
  box-shadow: none;
}

body.theme-line4 .panel-sticky {
  background: rgba(248, 242, 231, 0.96);
  backdrop-filter: blur(18px);
}

body.theme-line4 .panel-heading {
  min-height: 62px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-line);
  background: transparent;
}

body.theme-line4 .panel-heading h2 {
  gap: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.theme-line4 .panel-heading h2::before {
  display: none;
}

body.theme-line4 .panel-heading span {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

body.theme-line4 .panel-actions {
  gap: 8px;
}

body.theme-line4 #randomVideoButton,
body.theme-line4 #randomDirectorVideoButton,
body.theme-line4 #backToDirectors {
  min-height: 34px;
  border-color: var(--color-line);
  background: transparent;
  color: var(--color-black);
  font-family: var(--font-ui);
  font-size: 0.67rem;
}

body.theme-line4 #randomVideoButton:hover,
body.theme-line4 #randomDirectorVideoButton:hover,
body.theme-line4 #backToDirectors:hover {
  border-color: var(--color-black);
  background: var(--color-black);
  color: white;
}

body.theme-line4 .section-search,
body.theme-line4 .director-tabs {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-line);
  background: transparent;
}

body.theme-line4 .director-search {
  padding-top: 12px;
}

body.theme-line4 .section-search input {
  min-height: 42px;
  border-color: rgba(23, 21, 19, 0.15);
  background: rgba(255, 252, 246, 0.72);
  font-size: 0.78rem;
}

body.theme-line4 .director-tabs {
  gap: 0;
}

body.theme-line4 .director-tabs button {
  min-height: 36px;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 0.67rem;
}

body.theme-line4 .director-tabs button.active {
  border-bottom: 2px solid var(--color-red);
  background: transparent;
  color: var(--color-black);
}

body.theme-line4 .director-index,
body.theme-line4 .results,
body.theme-line4 .random-spotlight {
  background: transparent;
}

body.theme-line4 .director-index {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  padding: 18px;
}

body.theme-line4 .results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

body.theme-line4 .director-card {
  min-height: 340px;
  border: 0;
  border-radius: 5px;
  background: #151412;
  box-shadow: none;
  transform: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body.theme-line4 .director-card:hover,
body.theme-line4 .director-card.active {
  border: 0;
  background: #151412;
  color: white;
  box-shadow: 0 14px 30px rgba(32, 25, 18, 0.18);
  transform: translateY(-3px);
}

body.theme-line4 .director-card.active {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

body.theme-line4 .thumb-collage {
  min-height: 340px;
  border-radius: 5px;
  background: #151412;
}

body.theme-line4 .thumb-collage::after {
  background: linear-gradient(180deg, transparent 34%, rgba(17, 16, 14, 0.86) 100%);
}

body.theme-line4 .director-card-info {
  height: 124px;
  inset: auto 14px 12px;
  grid-template-rows: minmax(36px, auto) 22px minmax(30px, auto);
  align-items: start;
  gap: 5px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  background: transparent;
  color: white;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
}

body.theme-line4 .director-name,
body.theme-line4 .video-card h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
  text-transform: uppercase;
}

body.theme-line4 .director-name {
  color: white;
  font-size: 1.45rem;
  line-height: 0.95;
  text-align: left;
}

body.theme-line4 .director-meta {
  justify-self: start;
  min-height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-decoration: none;
}

body.theme-line4 .director-top-artists {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  text-shadow: none;
  text-transform: uppercase;
}

body.theme-line4 .video-card {
  border: 1px solid rgba(23, 21, 19, 0.14);
  border-radius: 5px;
  background: rgba(255, 252, 246, 0.82);
  box-shadow: none;
  transform: none;
}

body.theme-line4 .video-card:nth-child(odd),
body.theme-line4 .video-card:nth-child(even) {
  transform: none;
}

body.theme-line4 .video-card:hover {
  border-color: rgba(23, 21, 19, 0.34);
  box-shadow: 0 10px 24px rgba(32, 25, 18, 0.1);
  transform: translateY(-2px);
}

body.theme-line4 .video-thumb {
  border: 0;
  border-radius: 4px 4px 0 0;
  box-shadow: none;
}

body.theme-line4 .video-thumb::after {
  background: linear-gradient(180deg, transparent 58%, rgba(17, 16, 14, 0.28));
}

body.theme-line4 .play-mark {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: none;
  clip-path: none;
}

body.theme-line4 .play-mark::before {
  left: 15px;
  top: 12px;
  display: block;
  border-top-width: 7px;
  border-bottom-width: 7px;
  border-left: 10px solid white;
}

body.theme-line4 .video-card-body {
  gap: 8px;
  padding: 13px;
  text-align: left;
}

body.theme-line4 .video-card h3 {
  min-height: 0;
  font-size: 1.08rem;
  line-height: 1;
}

body.theme-line4 .meta {
  justify-items: start;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

body.theme-line4 .inline-filter {
  background: transparent;
  color: var(--color-black);
  font-family: var(--font-mono);
  font-weight: 900;
  text-decoration: none;
}

body.theme-line4 .inline-filter:hover {
  color: var(--color-red);
}

body.theme-line4 .youtube-link {
  min-height: 34px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: transparent;
  color: var(--color-black);
  font-size: 0.68rem;
  text-transform: uppercase;
}

body.theme-line4 .youtube-link:hover {
  border-color: var(--color-red);
  background: var(--color-red);
  color: white;
}

body.theme-line4 .spotlight-card,
body.theme-line4 .director-random-spotlight {
  min-height: 220px;
  margin: 16px;
  border: 1px solid var(--color-line);
  border-radius: 5px;
  background: rgba(255, 252, 246, 0.82);
  color: var(--color-black);
  box-shadow: none;
  transform: none;
}

body.theme-line4 .spotlight-thumb,
body.theme-line4 .director-random-spotlight .spotlight-thumb {
  min-height: 220px;
  border-radius: 4px 0 0 4px;
}

body.theme-line4 .spotlight-body {
  justify-items: start;
  gap: 10px;
  padding: 20px;
  text-align: left;
}

body.theme-line4 .spotlight-kicker {
  justify-self: start;
  padding: 0;
  background: transparent;
  color: var(--color-red);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  transform: none;
}

body.theme-line4 .spotlight-body h3,
body.theme-line4 .director-random-spotlight .spotlight-body h3 {
  color: var(--color-black);
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 0.98;
  text-transform: uppercase;
}

body.theme-line4 .director-detail-intro,
body.theme-line4 .empty {
  border: 1px solid var(--color-line);
  border-radius: 5px;
  background: rgba(255, 252, 246, 0.64);
}

body.theme-line4 .show-more {
  border: 1px solid var(--color-black);
  border-radius: 4px;
  background: transparent;
  color: var(--color-black);
}

body.theme-line4 .show-more:hover {
  background: var(--color-black);
  color: white;
}

body.theme-line4 .director-alpha-rail {
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: rgba(248, 242, 231, 0.96);
  box-shadow: none;
}

@media (max-width: 1280px) {
  body.theme-line4 .hero {
    grid-template-columns: minmax(500px, 0.58fr) minmax(360px, 0.42fr);
    gap: 30px;
  }

  body.theme-line4 .archive-record {
    display: grid;
    width: min(220px, 48%);
  }

  body.theme-line4 .archive-timeline {
    top: 47%;
    left: 42%;
    gap: 10px;
  }

  body.theme-line4 .archive-timeline svg {
    width: 42px;
    height: 42px;
  }

  body.theme-line4 .archive-slogan {
    bottom: 30px;
    left: 0;
    grid-template-columns: auto;
  }

  body.theme-line4 .archive-slogan em {
    display: none;
  }

  body.theme-line4 .director-index {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 980px) {
  body.theme-line4 .app-shell {
    width: min(100% - 24px, 1600px);
    padding-left: 0;
  }

  body.theme-line4 .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 32px;
  }

  body.theme-line4 .human-note {
    position: static;
    width: max-content;
    margin-bottom: 22px;
    text-align: left;
  }

  body.theme-line4 .archive-hero-art {
    display: none;
  }

  body.theme-line4 .toolbar,
  body.theme-line4 .content-grid {
    grid-template-columns: 1fr;
  }

  body.theme-line4 .toolbar,
  body.theme-line4 .director-panel,
  body.theme-line4 .results-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  body.theme-line4 .hero {
    padding: 24px 20px;
  }

  body.theme-line4 h1 {
    font-size: 3.35rem;
  }

  body.theme-line4 .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.theme-line4 .stats div {
    min-height: 56px;
    padding: 0 7px;
  }

  body.theme-line4 .stats strong {
    font-size: 1.9rem;
  }

  body.theme-line4 .stats span {
    font-size: 0.5rem;
    letter-spacing: 0;
  }

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

  body.theme-line4 .global-search-control #globalSearchButton {
    width: 100%;
  }

  body.theme-line4 .director-index,
  body.theme-line4 .results {
    grid-template-columns: 1fr;
  }
}

/* Compact editorial hero refinement. */
body.theme-line4 .hero {
  min-height: 300px;
  grid-template-rows: 1fr auto;
  gap: 12px 48px;
  padding: 28px 40px 22px;
}

body.theme-line4 .kicker {
  margin-bottom: 14px;
  font-size: 1rem;
}

body.theme-line4 h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(3.65rem, 5.1vw, 5.5rem);
  line-height: 0.88;
}

body.theme-line4 .human-note {
  margin-bottom: 11px;
  padding-bottom: 4px;
  font-size: 0.56rem;
}

body.theme-line4 .lead {
  width: max-content;
  max-width: 100%;
  margin-bottom: 7px;
  padding: 5px 8px;
  border-left: 3px solid var(--color-red);
  background: rgba(185, 46, 42, 0.07);
  color: var(--color-black);
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

body.theme-line4 .archive-description {
  max-width: 600px;
  padding-left: 11px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.45;
  text-transform: uppercase;
}

body.theme-line4 .stats div {
  min-height: 50px;
}

body.theme-line4 .stats strong {
  font-size: 2.45rem;
}

body.theme-line4 .archive-record {
  width: min(225px, 42%);
}

body.theme-line4 .archive-timeline svg {
  width: 46px;
  height: 46px;
}

body.theme-line4 .archive-slogan {
  bottom: 18px;
}

@media (max-width: 980px) {
  body.theme-line4 .hero {
    padding: 26px;
  }
}

@media (max-width: 640px) {
  body.theme-line4 .hero {
    padding: 22px 18px;
  }

  body.theme-line4 h1 {
    font-size: 3rem;
  }

  body.theme-line4 .lead {
    width: auto;
    font-size: 0.94rem;
  }
}
