:root {
  --bg: #eef2f8;
  --panel: #ffffff;
  --ink: #101729;
  --muted: #5b667a;
  --line: #cbd3e1;
  --blue: #243765;
  --blue-soft: #e7edf8;
  --dark: #080d18;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.client-downloads a {
  min-height: 42px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

button.secondary {
  background: #ffffff;
  color: var(--blue);
}

button img {
  pointer-events: none;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

.client-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--dark);
  color: #ffffff;
  padding: 14px 24px;
}

.client-brand img,
.client-login-card img {
  display: block;
  width: 230px;
  height: 66px;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
}

.client-header-title {
  display: grid;
  gap: 6px;
}

.client-header-title strong {
  font-size: 22px;
  line-height: 1.1;
}

.client-header-title span {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.client-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.client-shell {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.client-city-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, #ffffff 0%, #f7f9fe 48%, #ffffff 100%);
  padding: 14px 20px;
}

.client-city-band span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 900;
}

.client-city-band img {
  width: 58px;
  height: 44px;
  object-fit: contain;
}

.client-city-band strong {
  justify-self: center;
  color: var(--ink);
  font-size: 18px;
  text-align: center;
}

.search-panel,
.results-head,
.client-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.search-panel {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.panel-title {
  display: grid;
  gap: 6px;
}

.panel-title p,
.results-head p {
  margin: 0;
  color: #4d66a1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-title h1,
.results-head h2,
.client-card h3 {
  margin: 0;
}

.panel-title span,
.results-head span,
.client-card p,
.client-card dd {
  color: var(--muted);
  line-height: 1.5;
}

.client-help {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--blue-soft);
  color: var(--ink);
  line-height: 1.55;
}

.client-help a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.filters .wide {
  grid-column: span 2;
}

.city-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.city-shortcuts button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  border-color: #d3dbe9;
  background: #f7f9fe;
  color: var(--ink);
  padding: 0 10px;
  font-size: 13px;
}

.city-shortcuts button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.city-shortcuts img {
  width: 34px;
  height: 28px;
  object-fit: contain;
}

.filter-actions {
  display: flex;
  align-items: end;
}

.filter-actions button {
  background: #ffffff;
  color: var(--blue);
}

.results-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
}

.client-grid {
  display: grid;
  gap: 18px;
}

.client-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
}

.client-card-media {
  display: grid;
  align-content: start;
  gap: 10px;
  background: #dfe6f2;
  padding: 10px;
}

.client-main-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 0;
  border: 0;
  background: #dfe6f2;
  padding: 0;
  overflow: hidden;
}

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

.client-main-photo span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 0;
  background: rgba(8, 13, 24, 0.78);
  color: #ffffff;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
}

.client-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.client-thumbs button {
  aspect-ratio: 1;
  min-height: 0;
  border: 2px solid transparent;
  background: #ffffff;
  padding: 0;
  overflow: hidden;
}

.client-thumbs button.is-active {
  border-color: var(--blue);
}

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

.client-card-media > span,
.empty-result {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-weight: 800;
}

.client-card-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.client-card-title {
  display: grid;
  gap: 5px;
}

.client-card-title p {
  margin: 0;
  font-weight: 800;
}

.client-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.client-card dl div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.client-card dt {
  color: #4d66a1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-card dd {
  margin: 4px 0 0;
}

.client-experience {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.client-experience p {
  margin: 6px 0 0;
}

.client-note {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.client-note strong {
  color: #4d66a1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-note p {
  margin: 6px 0 0;
}

.client-reel {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.client-video-player {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: min(920px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background: #080d18;
}

.client-video-player > video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080d18;
}

.client-video-player > video::-webkit-media-controls,
.client-video-player > video::-webkit-media-controls-enclosure,
.client-video-player > video::-webkit-media-controls-panel,
.client-video-player > video::-webkit-media-controls-play-button,
.client-video-player > video::-webkit-media-controls-timeline,
.client-video-player > video::-webkit-media-controls-current-time-display,
.client-video-player > video::-webkit-media-controls-time-remaining-display,
.client-video-player > video::-webkit-media-controls-mute-button,
.client-video-player > video::-webkit-media-controls-volume-slider,
.client-video-player > video::-webkit-media-controls-fullscreen-button {
  display: none !important;
  opacity: 0 !important;
}

.client-video-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 42px auto minmax(120px, 1fr) auto 42px 42px;
  gap: 10px;
  align-items: center;
  background: linear-gradient(180deg, rgba(8, 13, 24, 0), rgba(8, 13, 24, 0.94) 34%, #080d18);
  padding: 10px 12px;
}

.client-video-controls button {
  display: grid;
  place-items: center;
  min-height: 36px;
  width: 36px;
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 0;
  font-size: 18px;
}

.client-video-time {
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.client-video-track {
  position: relative;
  display: grid;
  align-items: center;
}

.client-video-track input[type="range"] {
  width: 100%;
  accent-color: #ffffff;
  cursor: pointer;
}

.client-video-preview {
  position: absolute;
  bottom: 34px;
  left: 0;
  z-index: 2;
  width: 150px;
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080d18;
  box-shadow: 0 12px 28px rgba(8, 13, 24, 0.22);
  pointer-events: none;
}

.client-video-preview[hidden] {
  display: none;
}

.client-video-preview video {
  display: block;
  width: 150px;
  height: 84px;
  object-fit: cover;
  background: #080d18;
}

.client-video-preview span {
  display: block;
  padding: 5px 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.client-audition {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.client-audition-toggle {
  width: 100%;
  background: #ffffff;
  color: var(--blue);
}

.audition-form {
  display: grid;
  gap: 12px;
  border: 1px dashed var(--line);
  background: #f7f9fe;
  padding: 12px;
}

.audition-form[hidden] {
  display: none;
}

.audition-form p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.audition-form span {
  min-height: 20px;
  color: #1d6b39;
  font-weight: 800;
}

.audition-form span[data-error="true"] {
  color: #9f2635;
}

.audition-form button {
  width: 100%;
}

.client-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-downloads a {
  display: inline-flex;
  align-items: center;
}

.client-login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
  background: var(--dark);
}

.client-login-card {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #ffffff;
  padding: 28px;
}

.client-login-card h1,
.client-login-card p {
  margin: 0;
}

.client-login-card p {
  color: #4d66a1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-login-card form {
  display: grid;
  gap: 14px;
}

.back-home-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  border: 1px solid #c8d2e7;
  background: #ffffff;
  color: #24396f;
  font-weight: 900;
  text-decoration: none;
}

.back-home-link:hover {
  border-color: #24396f;
  background: #eef4ff;
  text-decoration: none;
}

.client-login-card span {
  color: #9f2635;
  min-height: 20px;
}

.has-client-lightbox {
  overflow: hidden;
}

.client-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: rgba(8, 13, 24, 0.92);
  padding: 22px;
}

.client-lightbox[hidden] {
  display: none;
}

.client-lightbox img {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.client-lightbox-close {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.client-lightbox-nav {
  grid-row: 2;
}

.client-lightbox-nav.prev {
  grid-column: 1;
}

.client-lightbox-nav.next {
  grid-column: 3;
}

.client-lightbox span {
  grid-column: 2;
  grid-row: 3;
  justify-self: center;
  color: #ffffff;
  font-weight: 800;
}

.password-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(8, 13, 24, 0.72);
}

.password-modal[hidden] {
  display: none;
}

.password-dialog {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 30px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
}

.password-dialog h2,
.password-dialog p {
  margin: 0;
}

.password-dialog > div {
  display: grid;
  gap: 6px;
  padding-right: 44px;
}

.password-dialog > div p {
  color: #4d66a1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.password-dialog > div span {
  color: var(--muted);
  line-height: 1.45;
}

.password-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  min-height: 42px;
  padding: 0;
  background: #ffffff;
  color: var(--ink);
}

.password-warning {
  color: #a52235;
  font-weight: 900;
  line-height: 1.45;
}

.password-message {
  min-height: 22px;
  color: #1d6b39;
  font-weight: 900;
}

.password-message[data-error="true"] {
  color: #a52235;
}

.client-top-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-height: 48px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  padding: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 14px 32px rgba(15, 35, 75, 0.25);
}

.client-top-button[hidden] {
  display: none;
}

@media (max-width: 980px) {
  .client-header,
  .client-card,
  .filters {
    grid-template-columns: 1fr;
  }

  .client-header-actions {
    justify-content: flex-start;
  }

  .client-city-band {
    grid-template-columns: 1fr 1fr;
  }

  .client-city-band strong {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .client-city-band span {
    justify-content: center;
  }

  .filters .wide {
    grid-column: auto;
  }

  .results-head {
    display: grid;
  }
}

@media (max-width: 640px) {
  .client-shell,
  .client-header {
    padding: 16px;
  }

  .client-city-band {
    gap: 12px;
    padding: 14px;
  }

  .client-city-band strong {
    font-size: 15px;
  }

  .client-city-band img {
    width: 46px;
    height: 36px;
  }

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

  .client-video-controls {
    grid-template-columns: 36px auto 1fr auto;
    gap: 8px;
  }

  .client-video-mute,
  .client-video-fullscreen {
    display: none;
  }

  .client-video-preview {
    width: 120px;
  }

  .client-video-preview video {
    width: 120px;
    height: 68px;
  }

  .client-top-button {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    font-size: 22px;
  }

  .client-lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }

  .client-lightbox img {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .client-lightbox-close {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .client-lightbox-nav.prev {
    grid-column: 1;
    grid-row: 3;
  }

  .client-lightbox-nav.next {
    grid-column: 2;
    grid-row: 3;
  }

  .client-lightbox span {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}
