/* Creatives page (персонажі + локації) */

.creatives-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.creatives-hero__lead {
  max-width: 40rem;
  margin: 0.85rem auto 0;
  color: var(--color-text-secondary, #b8a992);
  line-height: 1.6;
}

/* Equal chips — none permanently “primary/selected” unless hash matches */
.chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.35rem auto 0;
}

.chip-nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 115, 85, 0.4);
  background: rgba(0, 0, 0, 0.22);
  color: var(--color-text-secondary, #b8a992);
  font-size: 0.88rem;
  font-weight: 560;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.chip-nav__item:hover {
  color: var(--color-text-primary, #e8ddd0);
  border-color: rgba(196, 163, 90, 0.65);
  text-decoration: none;
}

.chip-nav__item.is-active {
  color: var(--color-bg-deep, #0d0907);
  background: var(--color-warning, #c4a35a);
  border-color: var(--color-warning, #c4a35a);
}

.chip-nav__item--ghost {
  border-style: dashed;
  opacity: 0.92;
}

.creatives-section {
  margin: 2.5rem 0 3rem;
  scroll-margin-top: 5.5rem;
}

.creatives-section__head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.creatives-section__head h2 {
  margin: 0 0 0.35rem;
}

.creatives-section__head p {
  margin: 0;
  color: var(--color-text-muted, #8b7d6b);
  font-size: 0.92rem;
}

/* Characters */
.creatives-char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.15rem;
}

.creatives-char {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(139, 115, 85, 0.35);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.creatives-char:hover {
  border-color: rgba(196, 163, 90, 0.55);
  transform: translateY(-2px);
}

.creatives-char__img {
  display: block;
  line-height: 0;
  background: #111;
  cursor: zoom-in;
}

.creatives-char__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.creatives-char__meta {
  padding: 0.7rem 0.8rem 0.9rem;
}

.creatives-char__meta h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.creatives-char__meta p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-accent-light, #6bb3c9);
  line-height: 1.35;
}

/* Locations */
.creatives-loc {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(139, 115, 85, 0.3);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1.35rem;
}

.creatives-loc__layout {
  display: grid;
  grid-template-columns: minmax(200px, 340px) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

@media (max-width: 720px) {
  .creatives-loc__layout {
    grid-template-columns: 1fr;
  }
}

.creatives-loc__master {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(139, 115, 85, 0.35);
  background: #111;
  line-height: 0;
  cursor: zoom-in;
}

.creatives-loc__master img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.creatives-loc__badge {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0e6d8;
  background: rgba(0, 0, 0, 0.65);
}

.creatives-loc__id {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-warning, #c4a35a);
}

.creatives-loc__info h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.creatives-loc__notes {
  margin: 0 0 0.5rem;
  color: var(--color-text-secondary, #b8a992);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 52ch;
}

.creatives-loc__scenes {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted, #8b7d6b);
}

.creatives-loc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn--sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
}

.creatives-loc__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.55rem;
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(139, 115, 85, 0.2);
}

.creatives-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(139, 115, 85, 0.3);
  background: #111;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
  cursor: zoom-in;
}

.creatives-thumb:hover {
  border-color: rgba(196, 163, 90, 0.6);
  text-decoration: none;
}

.creatives-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.creatives-thumb span {
  display: block;
  padding: 0.28rem 0.4rem;
  font-size: 0.68rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  color: var(--color-sepia-light, #d4c5a9);
  background: rgba(0, 0, 0, 0.55);
}

/* ---------- In-page shooting plan drawer ---------- */
body.plan-drawer-open {
  overflow: hidden;
}

.plan-drawer {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.plan-drawer[hidden] {
  display: none !important;
}

.plan-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.plan-drawer__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  height: min(92vh, 900px);
  max-height: 92vh;
  background: #1a1814;
  border: 1px solid rgba(139, 115, 85, 0.4);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: planDrawerIn 0.22s ease-out;
}

@keyframes planDrawerIn {
  from {
    transform: translateY(18px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 900px) {
  .plan-drawer {
    align-items: center;
    padding: 1.25rem;
  }

  .plan-drawer__panel {
    height: min(88vh, 860px);
    border-radius: 14px;
    border-bottom: 1px solid rgba(139, 115, 85, 0.4);
  }
}

.plan-drawer__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(139, 115, 85, 0.28);
  background: #242018;
  flex-shrink: 0;
}

.plan-drawer__kicker {
  margin: 0 0 0.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-warning, #c4a35a);
  font-weight: 600;
}

.plan-drawer__titles h2 {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.3;
  color: var(--color-sepia-light, #d4c5a9);
}

.plan-drawer__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.plan-drawer__open-tab {
  text-decoration: none;
  white-space: nowrap;
}

.plan-drawer__close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(139, 115, 85, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-text-primary, #e8ddd0);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.plan-drawer__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.plan-drawer__frame-wrap {
  flex: 1;
  min-height: 0;
  background: #12100e;
}

.plan-drawer__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #1a1814;
}

/* Keep optional external open subtle on small screens */
@media (max-width: 520px) {
  .plan-drawer__open-tab {
    display: none;
  }

  .plan-drawer__panel {
    height: 94vh;
    max-height: 94vh;
  }
}
