:root {
  --bg: #000;
  --fg: #fff;
  --muted: #8e8e8e;
  --line: rgba(255, 255, 255, 0.22);
  --line-soft: rgba(255, 255, 255, 0.12);
  --shell: 1280px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  overflow-x: hidden;
}

html {
  background: var(--bg);
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.11;
  background-image:
    repeating-radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 5px);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  color: inherit;
  font: inherit;
}

.site-header {
  height: 72px;
  border-bottom: 1px solid var(--line);
}

.header-inner,
.directory-wrap,
.page,
.legal-page,
.site-footer-inner {
  width: min(100% - 48px, var(--shell));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.nav a,
.back-link,
.actor-frame {
  text-decoration: none;
}

.nav a:hover,
.back-link:hover,
.legal-page a:hover {
  color: var(--fg);
}

main {
  flex: 1;
}

.masthead {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(340px, 46vh, 560px);
  border-bottom: 1px solid var(--line);
}

.masthead > * {
  width: min(100% - 48px, var(--shell));
  margin-right: auto;
  margin-left: auto;
}

.masthead-kicker,
.masthead-caption {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: clamp(12px, 1.2vw, 15px);
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.masthead-kicker {
  margin-top: 0;
  margin-bottom: 18px;
}

.masthead h1 {
  margin-top: 0;
  margin-bottom: 18px;
  max-width: 100%;
  color: var(--fg);
  font-family: "Arial Black", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(72px, 17.2vw, 220px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.86;
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead-caption {
  max-width: min(100% - 48px, 840px);
  margin-top: 0;
  margin-bottom: 0;
  color: var(--fg);
  letter-spacing: 0.02em;
  text-transform: none;
}

.directory-wrap {
  padding-bottom: clamp(48px, 7vw, 88px);
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 520px) auto;
  gap: 32px;
  align-items: end;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-control {
  width: 100%;
}

.search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#actor-search {
  width: 100%;
  min-height: 42px;
  padding: 0 0 9px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  color: var(--fg);
  font-family: "Courier New", monospace;
  font-size: 18px;
  text-transform: uppercase;
}

#actor-search::placeholder {
  color: var(--muted);
}

#actor-search:focus {
  border-color: var(--fg);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.filter-button {
  min-height: 42px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button.active,
.filter-button:focus {
  border-color: var(--fg);
  color: var(--fg);
  outline: 0;
}

.directory-section {
  min-height: 320px;
}

.actor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-top: 28px;
}

.actor-card {
  position: relative;
  background: transparent;
}

.actor-frame {
  display: block;
}

.actor-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  filter: grayscale(1) contrast(1.22);
  transition: border-color 160ms ease, filter 160ms ease;
}

.actor-card:hover img,
.actor-card:focus-within img {
  border-color: var(--fg);
  filter: grayscale(1) contrast(1.42) brightness(1.16);
}

.card-text {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding-top: 10px;
}

.card-text strong {
  color: var(--fg);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.actor-card:hover .card-text strong,
.actor-card:focus-within .card-text strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.card-text small {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.actor-card:hover .card-actions,
.actor-card:focus-within .card-actions {
  opacity: 1;
  transform: translateY(0);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover,
.button:focus {
  border-color: var(--fg);
  outline: 0;
}

.button[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.status-message {
  margin: 0;
  padding: 32px 0 0;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-message:empty {
  display: none;
}

.page {
  padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 8vw, 96px);
}

.profile {
  min-height: calc(100vh - 170px);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(1.28);
}

.profile-info {
  min-width: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: clamp(36px, 7vw, 84px);
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.type-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-info h1 {
  margin: 0;
  max-width: 100%;
  color: var(--fg);
  font-family: "Arial Black", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(48px, 9vw, 132px);
  letter-spacing: -0.08em;
  line-height: 0.9;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.agency-line {
  margin: 20px 0 0;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agency-line strong {
  color: var(--fg);
  font-weight: 400;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 0;
}

.disclaimer {
  max-width: 680px;
  margin: clamp(36px, 6vw, 64px) 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.65;
  text-transform: uppercase;
}

.legal-page {
  max-width: 880px;
  padding: clamp(48px, 8vw, 96px) 0;
}

.legal-page h1 {
  margin: 0 0 32px;
  color: var(--fg);
  font-family: "Arial Black", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(64px, 12vw, 148px);
  letter-spacing: -0.08em;
  line-height: 0.9;
  text-transform: uppercase;
}

.legal-page p {
  max-width: 700px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.75;
}

.legal-page a {
  color: var(--fg);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .actor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .header-inner,
  .directory-wrap,
  .page,
  .legal-page,
  .site-footer-inner,
  .masthead > * {
    width: min(100% - 32px, var(--shell));
  }

  .site-header {
    height: auto;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 72px;
    padding: 14px 0;
  }

  .nav,
  .filter-group {
    justify-content: flex-start;
  }

  .masthead {
    min-height: 330px;
  }

  .masthead h1 {
    font-size: clamp(56px, 20vw, 136px);
    letter-spacing: -0.075em;
    white-space: normal;
  }

  .controls {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .card-text {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }
}

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

.admin-page {
  display: grid;
  place-items: start center;
  width: min(100% - 48px, 760px);
  margin: 0 auto;
  padding: 48px 0;
}

.admin-panel {
  width: 100%;
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 40px);
}

.admin-head p,
.admin-head span,
.admin-message,
.admin-form label {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-head h1 {
  margin: 8px 0 12px;
  font-family: "Arial Black", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(48px, 12vw, 112px);
  letter-spacing: -0.08em;
  line-height: 0.9;
  text-transform: uppercase;
}

.admin-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.admin-form label {
  display: grid;
  gap: 8px;
}

.admin-form input,
.admin-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--fg);
}

.admin-checkbox {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
}

.admin-checkbox input {
  width: auto;
  min-height: auto;
}

.admin-button,
.admin-link-button {
  min-height: 44px;
  padding: 10px 14px;
  background: var(--fg);
  border: 1px solid var(--fg);
  color: var(--bg);
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-link-button {
  margin-top: 16px;
  background: transparent;
  color: var(--fg);
}

.admin-button:hover,
.admin-button:focus,
.admin-link-button:hover,
.admin-link-button:focus {
  background: var(--bg);
  color: var(--fg);
  outline: 0;
}

.admin-message {
  min-height: 20px;
  margin: 20px 0 0;
  color: var(--fg);
}

.admin-message.is-error {
  color: #ff7777;
}
