:root {
  color-scheme: light;
  --bg: #f4f7f3;
  --surface: #fff;
  --surface-2: #edf4ee;
  --hero: #e6f0e9;
  --text: #172f28;
  --muted: #4a6157;
  --accent: #13644e;
  --accent-hover: #0c4c3b;
  --on-accent: #fff;
  --line: #d3dfd6;
  --line-strong: #aac3b3;
  --control-line: #7e9a8b;
  --radius: 14px;
  --radius-lg: 20px;
  --card-shadow: 0 4px 16px rgb(23 53 38 / 7%);
  --header-height: 66px;
  --container: 1220px;
  --interny-font: Inter, system-ui, sans-serif;
  --player-bg: #142a24;
  --player-text: #f3fbf7;
  --player-muted: #c1d9cb;
  /* Retained names used by the shared player and publishing templates. */
  --gold: var(--accent);
  --gold-soft: var(--accent-hover);
}

body { font-family: var(--interny-font); }

.site-header {
  height: var(--header-height);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}

.site-header .brand { gap: 11px; }
.brand .brand-mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0;
}

.brand-mark::before {
  width: 20px;
  height: 20px;
  background: currentColor;
  clip-path: polygon(33% 0, 67% 0, 67% 33%, 100% 33%, 100% 67%, 67% 67%, 67% 100%, 33% 100%, 33% 67%, 0 67%, 0 33%, 33% 33%);
  content: "";
}

.brand .brand-text { font-size: 1.0625rem; font-weight: 810; letter-spacing: -.025em; }
.brand .brand-text small { display: none; }

.site-header .nav {
  gap: clamp(11px, 1.2vw, 18px);
  color: var(--text);
  font-weight: 630;
}

.site-header .nav a[aria-current="page"],
.site-header .nav .current-menu-item > a { color: var(--accent-hover); }
.site-header .search-btn,
.site-header .menu-btn,
.site-header .resume-link {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
}
.site-header :is(.search-btn, .menu-btn, .resume-link):is(:hover, [aria-expanded="true"]) {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.resume-link .resume-link-icon { background: var(--accent); color: var(--on-accent); }

.site-header .header-search,
.site-header .nav-dropdown .sub-menu { background: var(--surface); }

.site-header .nav-dropdown,
.site-header .nav-dropdown > summary { border: 0; background: transparent; color: var(--text); }

.site-header .nav-dropdown > summary {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
}

.nav-dropdown > summary::-webkit-details-marker { display: none; }

.nav-dropdown-arrow {
  width: .43rem;
  height: .43rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.nav-dropdown[open] .nav-dropdown-arrow { transform: translateY(2px) rotate(225deg); }

.site-header .nav-dropdown .sub-menu {
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  list-style: none;
}
.site-header .nav-dropdown .sub-menu a { padding-inline: 10px; }
.menu-backdrop { inset-block-start: var(--header-height); background: rgb(18 40 31 / 41%); }

body .btn,
body :is(.field select, .field input, .header-search input, .catalog-tools input, .catalog-tools select, .catalog-filter-toggle) {
  border-color: var(--control-line);
  border-radius: 9px;
  background-color: var(--surface);
  color: var(--text);
  font-size: .9375rem;
}

body .btn:not(.btn-primary):is(:hover, :focus-visible) {
  border-color: var(--accent);
  background: var(--surface-2);
}

body .btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
body .btn-primary:is(:hover, :focus-visible) { border-color: var(--accent-hover); background: var(--accent-hover); }
body .play-dot { flex-shrink: 0; background: #dceee0; color: var(--accent-hover); }
body .field select { font-size: 1rem; }
body :is(.field select, .catalog-tools select, .collection-controls select, .music-library-controls select) {
  appearance: none;
  padding-inline-end: 32px;
  background-image:
    linear-gradient(45deg, transparent calc(50% - .8px), var(--accent) calc(50% - .8px) calc(50% + .8px), transparent calc(50% + .8px)),
    linear-gradient(-45deg, transparent calc(50% - .8px), var(--accent) calc(50% - .8px) calc(50% + .8px), transparent calc(50% + .8px));
  background-position: right 19px center, right 14px center;
  background-size: 5px 6px;
  background-repeat: no-repeat;
}
body .field label { color: var(--muted); font-size: .8125rem; font-weight: 650; letter-spacing: 0; text-transform: none; }
body :is(a, input, select, textarea, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body .page-hero {
  padding-block: clamp(18px, 2.4vw, 34px) clamp(24px, 3.2vw, 44px);
  border-bottom: 1px solid var(--line);
  background: var(--hero);
}
body .page-title {
  max-width: 100%;
  color: var(--text);
  font-size: clamp(2.125rem, 4.7vw, 4rem);
  font-weight: 780;
  line-height: 1.05;
  letter-spacing: -.049em;
  text-transform: none;
  overflow-wrap: anywhere;
}
body .page-intro {
  max-width: 64ch;
  margin-block: 13px 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.125rem);
  line-height: 1.63;
  text-wrap: pretty;
}
body .breadcrumbs {
  gap: 3px 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .8125rem;
}
body .breadcrumbs [aria-current] { color: var(--text); font-weight: 630; }
body .eyebrow { color: var(--accent-hover); font-size: .8125rem; letter-spacing: .045em; }
body .eyebrow::before { width: 22px; background: var(--accent); }

body .section { padding-block: clamp(33px, 5vw, 66px); border-color: var(--line); }
body .section-sm { padding-block: clamp(24px, 3.3vw, 45px); }
body .section-head { align-items: center; gap: 10px 24px; margin-bottom: 20px; }

body .section-head h2,
body .prose h2,
body .seo-copy > h2 {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(1.625rem, 3.3vw, 2.5rem);
  font-weight: 750;
  line-height: 1.13;
  letter-spacing: -.037em;
}
body .prose h2:not(:first-child) { margin-top: 1.55em; }
body :is(.prose, .seo-copy, .character-profile-prose) { color: var(--text); }
body .prose :is(p, li) { font-size: 1rem; line-height: 1.72; }
body .prose a:not(.btn),
body .text-link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: .23em; }
body .text-link {
  gap: 8px;
  color: var(--accent-hover);
  font-size: .875rem;
  font-weight: 660;
  white-space: normal;
}
body .text-link:hover { gap: 8px; }

body :is(.stats, .stat, .fact-row, .cast-role, .music-row) { border-color: var(--line); color: var(--muted); }
body .stats .stat { background: var(--surface); }
body .context-navigation { background: var(--surface-2); }

body .site-header .nav a::after { background-color: var(--accent); }
body .footer { padding: clamp(26px, 4vw, 48px) 0 21px; background: var(--hero); color: var(--text); }
body .footer h3 { margin-bottom: 9px; color: var(--text); font-size: .875rem; letter-spacing: 0; text-transform: none; }
body .footer-top { padding-bottom: 20px; }
body .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
body .footer :is(p, a, .footer-bottom) { font-size: .875rem; }
body .footer :is(p, .footer-bottom span) { color: var(--muted); }
body .toast { background: var(--player-bg); color: var(--player-text); }

body .player-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: var(--player-bg);
}
body .player-stage iframe { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; }
.episode-stage-still,
.interny-trailer-trigger img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.83);
}
.interny-trailer-trigger { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: var(--player-text); }
.interny-trailer-trigger[hidden] { display: none; }
.interny-trailer-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 13px;
  border-radius: 8px;
  background: var(--player-bg);
  color: var(--player-text);
  font-weight: 650;
}
body .player-stage .official-player-link { position: absolute; z-index: 3; }
body .player-status-overlay { z-index: 5; color: var(--player-text); }
body .player-status-overlay p { color: var(--player-muted); }
body .player-status-icon { border-color: var(--player-muted); color: var(--player-text); }
body .player-bar { border-top: 1px solid var(--line); }
body .player-source-controls { padding: 0; background: var(--surface); }

.character-timeline-period {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-hover);
  font-size: .8125rem;
  font-weight: 650;
}
.character-timeline-position { margin-top: 3px; }

.interny-actor-profile {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 700px);
  align-items: start;
  gap: clamp(20px, 5vw, 70px);
  padding-block: 34px 50px;
}
.interny-actor-profile article { min-width: 0; }
.actor-profile-portrait { margin: 0 0 16px; }
.actor-profile-portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.actor-profile-portrait figcaption { margin-top: 7px; color: var(--muted); font-size: .8125rem; }
.actor-profile-contents { display: grid; gap: 6px; }
.actor-profile-contents a,
.actor-character-link { color: var(--accent-hover); text-decoration: underline; text-underline-offset: .2em; }
.actor-profile-copy h2[id] { scroll-margin-top: 90px; }
.actor-profile-copy > h2:first-child { margin-top: 0; }
.actor-profile-works { margin: 0; }
.actor-profile-works dt { color: var(--text); font-weight: 700; }
.actor-profile-works dd { margin: 4px 0 16px; }
.actor-profile-copy .actor-profile-scenes { margin: 0; padding: 0; list-style: none; }
.actor-profile-scenes li { padding: 14px 0; border-top: 1px solid var(--line); }
.actor-profile-scenes a { font-weight: 650; }
.actor-profile-scenes li p { margin: 5px 0 0; }

@media (min-width: 1181px) {
  .nav-dropdown { position: relative; }
  .site-header .nav-dropdown .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    margin: 0;
    box-shadow: var(--card-shadow);
  }
}

@media (max-width: 1180px) {
  .site-header .nav {
    top: calc(var(--header-height) + 10px);
    gap: 3px;
    border-color: var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 14px 40px rgb(18 40 31 / 16%);
  }
  .site-header .nav:not(.open) { visibility: hidden; }
  .site-header .nav a,
  .site-header .nav-dropdown > summary { color: var(--text); background: var(--surface); }
  .site-header .nav a:is(:hover, :focus-visible, [aria-current="page"]),
  .site-header .nav .current-menu-item > a { background: var(--surface-2); color: var(--accent-hover); }
  body .site-header .nav a::after { content: none; }
}

@media (max-width: 720px) {
  body .page-title { font-size: clamp(1.875rem, 7.7vw, 3.1rem); letter-spacing: -.036em; }
  body .section-head { display: flex; flex-wrap: wrap; margin-bottom: 14px; }
  body .section-head .text-link { margin: 0; }
  body .footer-top { gap: 22px; }
  body .footer-links a { min-height: 42px; }
  .interny-actor-profile { grid-template-columns: minmax(0, 1fr); padding-block: 22px 34px; }
  .actor-profile-portrait { max-width: 235px; }
  .actor-profile-contents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .interny-trailer-label { font-size: .875rem; }
  body .player-stage .official-player-link { bottom: 9px; left: 9px; min-height: 40px; font-size: .8125rem; }
  body :is(.catalog-tools input, .catalog-tools select, .header-search input) { font-size: 1rem; }
}
