.films-page .site-header {
  background: transparent;
  transition: background-color 0.2s ease;
}

.films-page .site-header.is-scrolled {
  background: var(--black-100);
}

.films-page .nav-bar {
  max-width: 1440px;
  margin: 0 auto;
}

.films-logo-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.films-main {
  padding: 0 0 100px;
}

.films-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 96px;
}

.films-heading-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.films-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white-70);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: uppercase;
  width: fit-content;
}

.films-back-link:hover {
  color: var(--white-100);
}

.films-back-link svg {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

/* -- Theatre catalog page (theatre-and-performances.php) -------- */
.theatre-catalog-page .theatre-catalog-main {
  padding-bottom: 128px;
}

.theatre-catalog-page .theatre-catalog-layout {
  width: 1312px;
  max-width: calc(100vw - 128px);
  padding: 136px 0 0;
  gap: 0;
}

.theatre-catalog-page .theatre-heading-block {
  gap: 8px;
}

.theatre-catalog-page .theatre-title {
  font-size: 140px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.theatre-catalog-page .theatre-toolbar {
  padding: 24px 0;
}

.theatre-catalog-page .films-tabs,
.theatre-catalog-page .films-search {
  width: 304px;
}

.theatre-catalog-page .films-tab {
  flex: 1 1 0;
  min-height: 40px;
  padding: 10px 12px;
}

.theatre-catalog-page .films-search {
  min-width: 304px;
}

.theatre-catalog-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.theatre-catalog-panel[hidden] {
  display: none;
}

.theatre-stage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.theatre-stage-title {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding-top: 16px;
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.theatre-stage-label,
.theatre-stage-years {
  color: var(--white-40);
}

.theatre-stage-name {
  color: var(--white-100);
  white-space: nowrap;
}

.theatre-stage-years {
  flex: 1 1 auto;
}

.theatre-table-row {
  display: grid;
  grid-template-columns: 480px 320px minmax(0, 1fr) 96px;
  gap: 32px;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #353535;
}

.theatre-catalog-page .films-table-head {
  min-height: 56px;
}

.theatre-data-row {
  position: relative;
  min-height: 104px;
  padding: 32px 0;
  color: inherit;
  text-decoration: none;
}

.theatre-data-row:hover {
  color: inherit;
}

.theatre-cell-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  min-width: 0;
}

.theatre-mobile-title-row {
  display: contents;
}

.theatre-mobile-year,
.theatre-count-mobile {
  display: none;
}

.theatre-cell-title span {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.theatre-cell-title span {
  color: var(--white-100);
}

.theatre-cell-title small {
  color: var(--white-70);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.theatre-cell-year {
  color: rgba(237, 236, 226, 0.5);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.theatre-cell-format {
  color: var(--white-70);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.theatre-cell-preview {
  position: relative;
  height: 32px;
}

.theatre-cell-preview img {
  position: absolute;
  right: 0;
  top: 50%;
  width: 93px;
  height: 133px;
  object-fit: cover;
  opacity: 0;
  transform: translateY(-50%) rotate(6.5deg);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.theatre-data-row:hover .theatre-cell-title span {
  color: #d2b23d;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.theatre-data-row:hover .theatre-cell-preview img,
.theatre-data-row:focus-visible .theatre-cell-preview img {
  opacity: 1;
}

/* -- Texts catalog page (texts.php) ----------------------------- */
.texts-catalog-page .texts-main {
  padding-bottom: 128px;
}

.texts-catalog-page .texts-layout {
  width: 1312px;
  max-width: calc(100vw - 128px);
  gap: 24px;
  padding: 136px 0 0;
}

.texts-catalog-page .texts-title {
  font-size: 140px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.texts-catalog-page .texts-count {
  font-size: 60px;
  padding-top: 0;
  transform: translateY(-4px);
}

.texts-toolbar {
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.texts-tabs {
  width: 480px;
}

.texts-tabs .films-tab {
  flex: 1 1 0;
  min-height: 40px;
  padding: 10px 12px;
}

.texts-search {
  min-width: 304px;
}

.texts-table {
  width: 100%;
}

.texts-table[hidden] {
  display: none;
}

.texts-table-row {
  display: grid;
  grid-template-columns: 480px 320px minmax(0, 1fr) 96px;
  gap: 32px;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #353535;
}

.texts-table-head {
  min-height: 56px;
  color: var(--white-40);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.texts-data-row {
  min-height: 104px;
  padding: 32px 0;
}

.texts-cell-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  min-width: 0;
}

.texts-cell-title span,
.texts-cell-year {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.texts-title-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}

.texts-cell-title .texts-title-line > span {
  overflow: hidden;
  color: var(--white-100);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.texts-mobile-year {
  display: none;
  color: rgba(237, 236, 226, 0.5);
  font-family: var(--font-display);
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.texts-cell-title small {
  color: var(--white-70);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.texts-cell-year {
  color: rgba(237, 236, 226, 0.5);
}

.texts-cell-publisher {
  color: var(--white-70);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.texts-cell-preview {
  position: relative;
  height: 32px;
}

.texts-cell-preview img {
  position: absolute;
  right: 0;
  top: 50%;
  width: 93px;
  height: 133px;
  object-fit: cover;
  opacity: 0;
  transform: translateY(-50%) rotate(6.5deg);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.texts-data-row:hover .texts-title-line > span,
.texts-data-row:focus-visible .texts-title-line > span {
  color: #d2b23d;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.texts-data-row:hover .texts-cell-preview img,
.texts-data-row:focus-visible .texts-cell-preview img {
  opacity: 1;
}

@media (max-width: 1439px) {
  .theatre-catalog-page .theatre-catalog-layout {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 88px 32px 0;
  }

  .theatre-catalog-page .theatre-title {
    font-size: 80px;
    line-height: 1;
  }

  .theatre-catalog-page .theatre-heading-block {
    margin-bottom: 32px;
  }

  .theatre-catalog-page .films-count {
    font-size: 48px;
    padding-top: 0;
  }

  .theatre-catalog-page .theatre-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
    padding: 0;
  }

  .theatre-catalog-page .films-tabs,
  .theatre-catalog-page .films-search {
    width: 100%;
    min-width: 0;
  }

  .theatre-catalog-panel {
    margin-top: 24px;
  }

  .theatre-stage-title {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 48px;
  }

  .theatre-table-row {
    display: flex;
    gap: 16px;
    align-items: center;
  }

  .theatre-catalog-page .films-table-head {
    display: none;
  }

  .theatre-data-row {
    min-height: 140px;
    padding: 32px 0;
  }

  .theatre-cell-title {
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
  }

  .theatre-mobile-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 80px);
    white-space: nowrap;
  }

  .theatre-mobile-year {
    display: inline;
    color: rgba(237, 236, 226, 0.5);
    font-family: var(--font-display);
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }

  .theatre-cell-year,
  .theatre-cell-format {
    display: none;
  }

  .theatre-cell-preview {
    flex: 0 0 60px;
    height: 88px;
    margin-left: auto;
  }

  .theatre-cell-preview img {
    width: 60px;
    height: 88px;
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
  }

  .theatre-cell-title span {
    overflow: hidden;
    max-width: 100%;
    font-size: 40px;
    text-overflow: ellipsis;
  }

  .texts-catalog-page .texts-layout {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    gap: 32px;
    padding: 88px 32px 96px;
  }

  .texts-catalog-page .texts-title {
    font-size: 80px;
    line-height: 1;
  }

  .texts-catalog-page .texts-count {
    font-size: 48px;
    transform: translateY(-2px);
  }

  .texts-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 0;
  }

  .texts-search {
    order: 1;
    width: 100%;
    min-width: 0;
  }

  .texts-tabs {
    order: 2;
    width: 100%;
  }

  .texts-table-head.texts-table-row {
    display: none;
  }

  .texts-table-row {
    display: flex;
    gap: 32px;
    align-items: center;
  }

  .texts-data-row {
    min-height: 140px;
    padding: 32px 0;
  }

  .texts-cell-title {
    flex: 1 1 auto;
    min-width: 0;
  }

  .texts-cell-title .texts-title-line > span,
  .texts-cell-year {
    font-size: 40px;
  }

  .texts-cell-title .texts-title-line > span {
    white-space: nowrap;
  }

  .texts-mobile-year {
    display: inline;
  }

  .texts-cell-year,
  .texts-cell-publisher {
    display: none;
  }

  .texts-cell-preview {
    flex: 0 0 60px;
    height: 88px;
    margin-left: auto;
  }

  .texts-cell-preview img {
    position: static;
    width: 60px;
    height: 88px;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 767px) {
  .theatre-catalog-page .theatre-catalog-layout {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 88px 16px 0;
  }

  .theatre-catalog-page .films-title-row {
    align-items: flex-start;
  }

  .theatre-catalog-page .theatre-title {
    font-size: 80px;
  }

  .theatre-count-desktop {
    display: none;
  }

  .theatre-count-mobile {
    display: inline-block;
  }

  .theatre-catalog-page .films-count {
    font-size: 48px;
  }

  .theatre-stage-title {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    font-size: 40px;
  }

  .theatre-stage-name {
    white-space: normal;
  }

  .theatre-data-row {
    min-height: 118px;
    padding: 24px 0;
  }

  .theatre-mobile-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-width: none;
    white-space: normal;
  }

  .theatre-cell-title span {
    display: block;
    font-size: 28px;
  }

  .theatre-mobile-year {
    order: -1;
    font-size: 28px;
  }

  .theatre-cell-preview img {
    width: 48px;
    height: 70px;
  }

  .texts-catalog-page .texts-main {
    padding-bottom: 64px;
  }

  .texts-catalog-page .texts-layout {
    width: 100%;
    max-width: none;
    padding: 88px 16px 64px;
  }

  .texts-catalog-page .texts-title-row {
    gap: 4px;
  }

  .texts-catalog-page .texts-title {
    font-size: 80px;
  }

  .texts-catalog-page .texts-count {
    font-size: 48px;
  }

  .texts-toolbar {
    gap: 24px;
  }

  .texts-search,
  .texts-tabs {
    border-radius: 8px;
  }

  .texts-data-row {
    min-height: 152px;
    padding: 32px 0;
    gap: 16px;
  }

  .texts-cell-title {
    gap: 4px;
  }

  .texts-title-line {
    flex-direction: column;
    gap: 0;
  }

  .texts-mobile-year {
    order: -1;
    font-size: 28px;
  }

  .texts-cell-title .texts-title-line > span,
  .texts-cell-year {
    font-size: 28px;
  }

  .texts-cell-title .texts-title-line > span {
    white-space: normal;
  }

  .texts-cell-title small {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
  }

  .texts-cell-preview {
    flex-basis: 60px;
  }

  .texts-cell-preview img {
    width: 60px;
    height: 88px;
  }
}

.films-title-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.films-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(88px, 10vw, 140px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.films-count {
  padding-top: 2px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-40);
}

.films-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 8px;
}

.films-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #353535;
  border-radius: 14px;
}

.films-tab {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 20px;
  color: var(--white-70);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.films-tab.is-active {
  background: var(--white-100);
  color: var(--black-100);
}

.films-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 304px;
  padding: 12px 16px;
  background: #353535;
  border-radius: 14px;
  color: var(--white-40);
}

.films-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--white-70);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.films-search input::placeholder {
  color: var(--white-40);
}

/* Hide native browser search cancel button */
.films-search input[type="search"]::-webkit-search-cancel-button,
.films-search input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Custom clear button */
.films-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--white-40);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.films-search-clear:hover {
  color: var(--white-100);
  background: rgba(255, 255, 255, 0.08);
}

.films-table {
  width: 100%;
}

.films-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr) minmax(0, 1fr) 96px;
  gap: 32px;
  align-items: center;
  border-bottom: 1px solid #353535;
}

.films-table-head {
  min-height: 56px;
  color: var(--white-40);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.films-data-row {
  position: relative;
  min-height: 104px;
  padding: 24px 0;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.films-data-row:hover {
  color: inherit;
}

.films-concept-row {
  cursor: default;
}

.films-concepts-panel .films-table-body {
  width: 100%;
}

.films-data-row:hover .films-cell-title span,
.films-data-row:focus-visible .films-cell-title span {
  color: #d2b23d;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.films-cell-title span,
.films-cell-year {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.films-cell-title span {
  color: var(--white-100);
}

.films-cell-year {
  color: rgba(237, 236, 226, 0.5);
}

.films-cell-role {
  color: var(--white-70);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.films-cell-preview {
  position: relative;
  min-height: 32px;
}

.films-cell-preview img {
  position: absolute;
  right: -12px;
  top: 50%;
  width: 94px;
  height: auto;
  transform: translateY(-50%) rotate(6.5deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.films-data-row:hover .films-cell-preview img,
.films-data-row:focus-visible .films-cell-preview img {
  opacity: 1;
}

.films-empty-state,
.films-empty-placeholder {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid #353535;
  border-bottom: 1px solid #353535;
}

.films-empty-kicker {
  margin: 0;
  color: var(--white-40);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.films-empty-placeholder h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.films-empty-placeholder p,
.films-empty-state {
  color: var(--white-70);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.films-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
}

.films-empty-state[hidden] {
  display: none !important;
}

.films-concepts-panel .films-empty-state {
  border-top: 0;
}

.film-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 96px;
}

.film-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 48px;
  align-items: start;
}

.film-detail-title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.film-detail-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(72px, 8vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.film-detail-year {
  color: var(--white-40);
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.film-detail-summary {
  max-width: 780px;
  margin: 0 0 32px;
  color: var(--white-70);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.film-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.film-detail-meta-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--white-40);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.film-detail-meta-grid strong {
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.film-detail-poster-wrap {
  position: relative;
  padding: 28px;
  border: 1px solid #353535;
  background: linear-gradient(180deg, rgba(237, 236, 226, 0.04), rgba(237, 236, 226, 0.01));
}

.film-detail-poster {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: rotate(4deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.film-detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
}

.film-detail-paragraph {
  margin: 0 0 18px;
  color: var(--white-70);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.film-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.film-detail-gallery-card {
  min-height: 260px;
  border: 1px solid #353535;
  overflow: hidden;
  background: rgba(237, 236, 226, 0.03);
}

.film-detail-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-detail-related {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.film-detail-related-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.film-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.film-related-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid #353535;
  background: rgba(237, 236, 226, 0.02);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.film-related-card:hover {
  border-color: #d2b23d;
  transform: translateY(-3px);
}

.film-related-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.film-related-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.film-related-copy span {
  color: var(--white-40);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.film-related-copy strong {
  color: var(--white-100);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

.film-detail-node306 {
  padding-bottom: 96px;
}

.node306-layout {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-top: 48px;
}

.node306-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.node306-title-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.node306-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(84px, 10vw, 140px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-year {
  color: var(--white-40);
  font-family: var(--font-display);
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding-top: 2px;
}

.node306-hero-grid {
  display: grid;
  grid-template-columns: 416px minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
}

.node306-poster-wrap {
  border: 1px solid rgba(237, 236, 226, 0.2);
  min-height: 624px;
}

.node306-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.node306-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-start;
}

.node306-section-title {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-display);
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.node306-fact-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.node306-fact-row span {
  width: 160px;
  flex-shrink: 0;
  color: var(--white-40);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-fact-row strong {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-crew-values {
  display: none;
}

.node306-fact-row-cast {
  align-items: flex-start;
}

.node306-cast-list p {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: var(--white-100);
  color: var(--black-100);
  border: 0;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-button-light {
  margin-top: 8px;
}

.node306-watch-more-mobile {
  display: none;
}

.node306-content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 976px) minmax(220px, 1fr);
  gap: 64px;
}

.node306-content {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.node306-widget {
  max-width: 976px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.node306-watch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
}

.node306-watch-card {
  width: 245px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.node306-watch-image-wrap {
  position: relative;
  aspect-ratio: 304 / 172;
  overflow: hidden;
}

.node306-watch-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.node306-watch-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.72);
  color: var(--white-100);
  font-size: 26px;
  line-height: 56px;
  text-align: center;
}

.node306-watch-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.node306-watch-source {
  margin: 0;
  color: var(--white-40);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-watch-title {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-watch-link,
.node384-watch-link,
.node306-expand,
.node384-expand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d2b23d;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  width: fit-content;
}

.node306-watch-link-icon,
.node384-watch-link-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.node306-structure-intro {
  margin: 0;
  color: rgba(237, 236, 226, 0.8);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.04em;
}

.node306-structure-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 32px;
}

.node306-structure-list p {
  margin: 0;
  color: rgba(237, 236, 226, 0.8);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.04em;
}

.node306-subtitle {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.node306-article-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.node306-article-card img {
  width: 100%;
  aspect-ratio: 336 / 258;
  object-fit: cover;
}

.node306-article-copy {
  min-height: 182px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.node306-article-title {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-article-meta,
.node306-article-year {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-article-year {
  color: var(--white-70);
}

.node306-widget-note {
  margin: 0;
  color: var(--white-70);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-biblio-list {
  margin: 0;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.node306-biblio-list li {
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-doc-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.node306-doc-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-doc-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.node306-doc-copy {
  display: inline;
}

.node306-doc-author,
.node306-biblio-author,
.node384-biblio-author {
  color: var(--white-100);
  font-weight: 700;
  opacity: 1;
}

.node306-doc-source,
.node306-biblio-source,
.node384-biblio-source {
  color: rgba(237, 236, 226, 0.5);
  font-weight: 400;
  opacity: 1;
}

.node384-biblio-list {
  margin: 0;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.node384-biblio-list li {
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

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

.node306-material-albums {
  display: none;
}

.node306-album-card,
.node384-album-card {
  position: relative;
  overflow: hidden;
  border: 4px solid #0f0f0f;
  aspect-ratio: 1;
  cursor: pointer;
}

.node306-album-card:focus-visible,
.node384-album-card:focus-visible {
  outline: 2px solid #d2b23d;
  outline-offset: 2px;
}

.node306-album-card img,
.node384-album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.node306-album-card::after,
.node384-album-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 15, 15, 0.82), rgba(0, 0, 0, 0.2));
}

.node306-album-overlay,
.node384-album-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.node306-album-overlay p,
.node384-album-overlay p {
  margin: 0;
  color: var(--white-40);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-album-overlay strong,
.node384-album-overlay strong {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-transform: uppercase;
}

.node306-sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.node306-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white-70);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node306-sidebar-dot {
  width: 6px;
  height: 1px;
  border-radius: 0;
  border: 0;
  background: var(--white-40);
  display: inline-block;
  flex-shrink: 0;
  transition: width 0.2s, background 0.2s;
}

.node306-sidebar-link.is-active,
.node306-sidebar-link:hover {
  color: var(--white-100);
}

.node306-sidebar-link.is-active .node306-sidebar-dot,
.node306-sidebar-link:hover .node306-sidebar-dot {
  background: var(--white-100);
  width: 12px;
}

.film-detail-node384 {
  padding-bottom: 96px;
}

.node384-layout {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-top: 48px;
}

.node384-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.node384-title-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.node384-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(84px, 10vw, 140px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node384-year {
  color: var(--white-40);
  font-family: var(--font-display);
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding-top: 2px;
}

.node384-hero-grid {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  gap: 48px;
  align-items: flex-start;
}

.node384-poster-wrap {
  border: 1px solid rgba(237, 236, 226, 0.2);
  min-height: 440px;
}

.node384-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.node384-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.node384-section-title {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-display);
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node384-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.node384-fact-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.node384-fact-row span {
  width: 170px;
  flex-shrink: 0;
  color: var(--white-40);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node384-fact-row strong {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node384-content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 976px) minmax(220px, 1fr);
  gap: 64px;
}

.node384-content {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.node384-widget {
  max-width: 976px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.node384-list {
  margin: 0;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.node384-list li {
  color: rgba(237, 236, 226, 0.85);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.04em;
}

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

.node384-album-card {
  border: 4px solid #0f0f0f;
  overflow: hidden;
  aspect-ratio: 1;
}

.node384-album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.node384-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.node384-article-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.node384-article-card img {
  width: 100%;
  aspect-ratio: 336 / 258;
  object-fit: cover;
}

.node384-article-copy {
  min-height: 182px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.node384-article-title {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node384-article-meta,
.node384-article-year {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node384-article-year {
  color: var(--white-70);
}

.node384-sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.node384-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white-70);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.node384-sidebar-dot {
  width: 6px;
  height: 1px;
  border-radius: 0;
  border: 0;
  background: var(--white-40);
  display: inline-block;
  flex-shrink: 0;
  transition: width 0.2s, background 0.2s;
}

.node384-sidebar-link.is-active,
.node384-sidebar-link:hover {
  color: var(--white-100);
}

.node384-sidebar-link.is-active .node384-sidebar-dot,
.node384-sidebar-link:hover .node384-sidebar-dot {
  background: var(--white-100);
  width: 12px;
}

.film-detail-page {
  scrollbar-color: rgba(237, 236, 226, 0.35) rgba(15, 15, 15, 0.6);
  scrollbar-width: thin;
}

.film-detail-page::-webkit-scrollbar {
  width: 10px;
}

.film-detail-page::-webkit-scrollbar-thumb {
  background: rgba(237, 236, 226, 0.35);
  border-radius: 999px;
}

.film-detail-page::-webkit-scrollbar-track {
  background: rgba(15, 15, 15, 0.6);
}

.film-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(8px);
}

.film-photo-modal,
.film-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
}

.film-photo-modal[hidden],
.film-video-modal[hidden] {
  display: none;
}

.film-photo-modal-dialog,
.film-video-modal-dialog {
  position: relative;
  width: min(1280px, calc(100vw - 80px));
  margin: 80px auto 0;
  z-index: 1;
}

.film-modal-close {
  position: absolute;
  right: 0;
  top: -56px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(237, 236, 226, 0.12);
  cursor: pointer;
  z-index: 2;
}

.film-modal-close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--white-100);
}

.film-modal-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.film-modal-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.film-photo-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0;
  background: rgba(30, 27, 25, 0.92);
}

.film-photo-stage-wrap {
  padding: 0 0 16px;
  background: #0f0f0f;
}

.film-photo-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.film-photo-thumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 14px 0;
  scrollbar-width: thin;
}

.film-photo-thumb {
  width: 62px;
  height: 62px;
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
  flex: 0 0 auto;
  cursor: pointer;
}

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

.film-photo-thumb.is-active {
  border-color: var(--white-100);
}

.film-photo-meta {
  padding: 20px 16px;
  border-left: 1px solid rgba(237, 236, 226, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.film-photo-description {
  margin: 0;
  color: rgba(237, 236, 226, 0.8);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.film-photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.film-photo-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  background: rgba(237, 236, 226, 0.16);
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.film-photo-source {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(237, 236, 226, 0.62);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.film-photo-source[hidden] {
  display: none;
}

.film-photo-source span {
  color: rgba(237, 236, 226, 0.4);
}

.film-photo-source strong {
  color: rgba(237, 236, 226, 0.78);
  font-weight: 400;
}

.film-photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: rgba(237, 236, 226, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.film-photo-nav-prev {
  left: -78px;
}

.film-photo-nav-next {
  right: -78px;
}

.film-photo-nav span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #1f2220;
  border-right: 2px solid #1f2220;
}

.film-photo-nav-prev span {
  transform: rotate(-135deg);
}

.film-photo-nav-next span {
  transform: rotate(45deg);
}

.film-video-frame {
  position: relative;
  border: 1px solid rgba(237, 236, 226, 0.2);
  border-radius: 32px;
  overflow: hidden;
}

.film-video-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.film-video-shade {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.35);
}

.film-video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(to top, rgba(8, 9, 13, 0.9) 20%, rgba(8, 9, 13, 0) 100%);
}

.film-video-time-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white-100);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1;
}

.film-video-progress {
  flex: 1;
  height: 2px;
  background: rgba(217, 217, 217, 0.4);
  border-radius: 20px;
  overflow: hidden;
}

.film-video-progress span {
  display: block;
  width: 74%;
  height: 100%;
  background: #fff;
}

.film-video-buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.film-video-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.film-video-buttons button {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--white-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.film-video-buttons i {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.film-video-buttons .icon-play::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.film-video-buttons .icon-back::before,
.film-video-buttons .icon-forward::before {
  content: "15";
  position: absolute;
  inset: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.film-video-buttons .icon-back::after,
.film-video-buttons .icon-forward::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.film-video-buttons .icon-back::after {
  left: -3px;
  transform: rotate(-140deg);
}

.film-video-buttons .icon-forward::after {
  right: -3px;
  transform: rotate(45deg);
}

.film-video-buttons .icon-volume::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(0 35%, 30% 35%, 60% 0, 60% 100%, 30% 65%, 0 65%);
}

.film-video-buttons .icon-volume::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 4px;
  width: 8px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-radius: 0 50% 50% 0;
}

.film-video-buttons .icon-fullscreen::before,
.film-video-buttons .icon-fullscreen::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.film-video-buttons .icon-fullscreen::before {
  right: 0;
  top: 0;
}

.film-video-buttons .icon-fullscreen::after {
  left: 0;
  bottom: 0;
  transform: rotate(180deg);
}

.film-video-buttons .icon-more::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

.cinema-hub-main {
  padding-bottom: 72px;
}

.cinema-hub-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.cinema-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cinema-hub-kicker {
  margin: 0;
  color: rgba(237, 236, 226, 0.65);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cinema-hub-stage {
  position: relative;
  min-height: 700px;
  border: 1px solid rgba(237, 236, 226, 0.16);
  background:
    radial-gradient(70% 90% at 20% 10%, rgba(237, 236, 226, 0.08), rgba(15, 15, 15, 0) 55%),
    radial-gradient(60% 90% at 90% 90%, rgba(237, 236, 226, 0.1), rgba(15, 15, 15, 0) 58%),
    #131313;
  overflow: hidden;
}

.cinema-hub-image {
  position: absolute;
  border: 2px solid rgba(237, 236, 226, 0.18);
  object-fit: cover;
  filter: saturate(0.95);
}

.cinema-hub-image-1 {
  width: 178px;
  height: 238px;
  left: 60px;
  top: 74px;
  transform: rotate(-5deg);
}

.cinema-hub-image-2 {
  width: 214px;
  height: 146px;
  left: 474px;
  top: 84px;
  transform: rotate(2deg);
}

.cinema-hub-image-3 {
  width: 224px;
  height: 146px;
  right: 130px;
  top: 126px;
  transform: rotate(7deg);
}

.cinema-hub-image-4 {
  width: 236px;
  height: 158px;
  left: 212px;
  bottom: 112px;
  transform: rotate(-7deg);
}

.cinema-hub-image-5 {
  width: 204px;
  height: 136px;
  right: 286px;
  bottom: 108px;
  transform: rotate(5deg);
}

.cinema-hub-image-6 {
  width: 173px;
  height: 246px;
  right: 56px;
  bottom: 66px;
  transform: rotate(-8deg);
}

.cinema-hub-group {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: var(--white-100);
  text-decoration: none;
  text-transform: uppercase;
}

.cinema-hub-group:hover .cinema-hub-word {
  opacity: 0.75;
}

.cinema-hub-group-films {
  left: 335px;
  top: 188px;
}

.cinema-hub-group-concepts {
  right: 296px;
  top: 314px;
  align-items: flex-end;
  text-align: right;
}

.cinema-hub-count {
  color: var(--white-40);
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.cinema-hub-word {
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 124px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.cinema-hub-button {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  z-index: 1;
}

.cinema-hub-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.cinema-hub-progress-item {
  color: rgba(237, 236, 226, 0.45);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
}

.cinema-hub-progress-item.is-active {
  color: var(--white-100);
}

.cinema-hub-mobile-list {
  display: none;
}

@media (min-width: 1201px) {
  .films-layout {
    max-width: 1440px;
    gap: 48px;
    padding: 104px 64px 96px;
  }

  .film-detail-node306 {
    padding-bottom: 0;
  }

  .node306-layout {
    max-width: 1440px;
    gap: 128px;
    padding: 136px 64px 128px;
  }

  .node384-layout {
    max-width: 1440px;
    gap: 128px;
    padding: 136px 64px 128px;
  }

  .node306-hero {
    gap: 0;
  }

  .node384-hero {
    gap: 0;
  }

  .node306-hero .films-back-link,
  .node384-hero .films-back-link {
    gap: 8px;
    font-size: 20px;
    line-height: 28px;
  }

  .node306-hero .films-back-link svg,
  .node384-hero .films-back-link svg {
    width: 32px;
    height: 32px;
  }

  .node306-title-row,
  .node384-title-row {
    gap: 4px;
    margin-top: 8px;
    margin-bottom: 32px;
  }

  .node306-title,
  .node384-title {
    font-size: 140px;
    line-height: 1;
  }

  .node306-year,
  .node384-year {
    font-size: 60px;
    padding-top: 0;
    transform: translateY(-16px);
  }

  .node306-hero-grid {
    grid-template-columns: 416px 848px;
    gap: 48px;
    align-items: start;
  }

  .node384-hero-grid {
    grid-template-columns: 416px 848px;
    gap: 48px;
    align-items: start;
  }

  .node306-poster-wrap {
    min-height: 0;
    width: 416px;
    height: 624px;
    border: 0;
  }

  .node384-poster-wrap {
    min-height: 0;
    width: 416px;
    height: auto;
    border: 0;
  }

  .node384-poster {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .node306-info {
    width: 848px;
    gap: 24px;
  }

  .node306-section-title {
    font-size: 60px;
    line-height: 1;
  }

  .node306-facts {
    gap: 8px;
  }

  .node306-fact-row {
    gap: 32px;
  }

  .node306-fact-row span {
    width: 160px;
  }
}

@media (max-width: 1200px) {
  .cinema-hub-layout {
    padding-top: 32px;
  }

  .cinema-hub-header {
    align-items: flex-end;
  }

  .cinema-hub-stage {
    min-height: 600px;
  }

  .cinema-hub-image-1 {
    width: 136px;
    height: 186px;
    left: 24px;
    top: 72px;
  }

  .cinema-hub-image-2 {
    width: 164px;
    height: 114px;
    left: 278px;
    top: 86px;
  }

  .cinema-hub-image-3 {
    width: 178px;
    height: 118px;
    right: 54px;
    top: 88px;
  }

  .cinema-hub-image-4 {
    width: 160px;
    height: 112px;
    left: 90px;
    bottom: 128px;
  }

  .cinema-hub-image-5 {
    width: 170px;
    height: 114px;
    right: 220px;
    bottom: 104px;
  }

  .cinema-hub-image-6 {
    width: 138px;
    height: 198px;
    right: 30px;
    bottom: 74px;
  }

  .cinema-hub-group-films {
    left: 186px;
    top: 196px;
  }

  .cinema-hub-group-concepts {
    right: 168px;
    top: 300px;
  }

  .cinema-hub-count {
    font-size: 34px;
  }

  .cinema-hub-word {
    font-size: clamp(58px, 10vw, 88px);
  }

  .cinema-hub-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 14px;
  }

  .films-layout {
    gap: 32px;
    padding-top: 32px;
  }

  .films-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0;
  }

  .films-search {
    order: 1;
    width: 100%;
    min-width: 0;
    border-radius: 8px;
    padding: 10px 12px;
  }

  .films-tabs {
    order: 2;
    width: 100%;
    border-radius: 8px;
  }

  .films-tab {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
  }

  .films-back-link {
    gap: 6px;
    font-size: 16px;
    line-height: 22px;
  }

  .films-back-link svg {
    display: none;
  }

  .films-back-link span {
    position: relative;
    padding-left: 14px;
  }

  .films-back-link span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 1px;
    border-radius: 0;
    background: rgba(237, 236, 226, 0.45);
    transform: translateY(-50%);
  }

  .films-title {
    font-size: 80px;
  }

  .films-count {
    font-size: 48px;
    padding-top: 1px;
  }

  .films-table-head {
    display: none;
  }

  .films-table-row {
    grid-template-columns: minmax(0, 1fr) auto 60px;
    gap: 16px;
  }

  .films-cell-role {
    display: none;
  }

  .films-data-row {
    min-height: 140px;
    padding: 32px 0;
  }

  .films-cell-title span,
  .films-cell-year {
    font-size: 40px;
  }

  .films-cell-preview {
    min-height: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .films-cell-preview img {
    position: static;
    width: 60px;
    transform: none;
    opacity: 1;
  }

  .film-detail-hero,
  .film-detail-content-grid,
  .film-related-grid {
    grid-template-columns: 1fr;
  }

  .node306-hero-grid,
  .node306-content-wrap,
  .node306-articles-grid,
  .node306-album-grid,
  .node384-hero-grid,
  .node384-content-wrap,
  .node384-articles-grid,
  .node384-album-grid {
    grid-template-columns: 1fr;
  }

  .node306-content {
    gap: 72px;
  }

  .node306-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }

  .node384-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }

  .node306-watch-card {
    width: calc(50% - 16px);
  }

  .film-photo-modal-dialog,
  .film-video-modal-dialog {
    width: min(704px, calc(100vw - 48px));
    margin-top: 92px;
  }

  .film-photo-modal-layout {
    grid-template-columns: 1fr;
  }

  .film-photo-meta {
    border-left: 0;
    border-top: 1px solid rgba(237, 236, 226, 0.2);
  }

  .film-photo-nav {
    width: 48px;
    height: 48px;
  }

  .film-photo-nav-prev {
    left: -60px;
  }

  .film-photo-nav-next {
    right: -60px;
  }

  .film-video-frame {
    border-radius: 24px;
  }
}

@media (max-width: 768px) {
  .cinema-hub-main {
    padding-bottom: 64px;
  }

  .cinema-hub-layout {
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .cinema-hub-kicker {
    display: none;
  }

  .cinema-hub-stage,
  .cinema-hub-progress {
    display: none;
  }

  .cinema-hub-mobile-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(237, 236, 226, 0.16);
  }

  .cinema-hub-mobile-item {
    min-height: 68px;
    border-bottom: 1px solid rgba(237, 236, 226, 0.16);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white-100);
  }

  .cinema-hub-mobile-item.is-muted {
    color: rgba(237, 236, 226, 0.38);
  }

  .cinema-hub-mobile-title {
    font-family: var(--font-display);
    font-size: 44px;
    line-height: 0.95;
    letter-spacing: -0.02em;
  }

  .cinema-hub-mobile-count {
    color: rgba(237, 236, 226, 0.4);
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .films-main {
    padding-bottom: 64px;
  }

  .films-layout {
    width: 100%;
    max-width: 375px;
    gap: 32px;
    padding: 88px 16px 64px;
  }

  .films-title {
    font-size: 80px;
    line-height: 1;
  }

  .films-count {
    font-size: 48px;
    padding-top: 0;
  }

  .films-back-link {
    font-size: 16px;
    line-height: 22.4px;
  }

  .films-back-link svg {
    display: block;
    width: 32px;
    height: 32px;
  }

  .films-back-link span {
    padding-left: 0;
  }

  .films-back-link span::before {
    display: none;
  }

  .films-search input {
    font-size: 14px;
    line-height: 20px;
  }

  .films-tab {
    height: 40px;
    padding: 10px 8px;
    font-size: 14px;
    line-height: 20px;
  }

  .films-data-row {
    grid-template-columns: minmax(0, 1fr) 48px;
    grid-template-areas:
      "year preview"
      "title preview";
    align-items: center;
    min-height: 140px;
    gap: 0 16px;
    padding: 24px 0;
  }

  .films-cell-title {
    grid-area: title;
    line-height: 1;
  }

  .films-cell-year {
    grid-area: year;
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .films-cell-preview {
    grid-area: preview;
    align-self: center;
  }

  .films-cell-year {
    color: var(--white-40);
  }

  .films-cell-title span {
    font-size: 28px;
    line-height: 1;
  }

  .films-page .footer-section {
    min-height: 712px;
    overflow: hidden;
  }

  .films-page .footer-section .section-inner {
    position: relative;
    padding: 32px 16px 120px;
    overflow: hidden;
  }

  .films-page .footer-logo {
    margin-bottom: 24px;
  }

  .films-page .footer-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .films-page .footer-links > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .films-page .footer-links h5 {
    margin: 0;
    line-height: 20px;
  }

  .films-page .footer-links .d-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px 8px !important;
    line-height: 20px;
  }

  .films-page .footer-links .d-grid a {
    position: relative;
  }

  .films-page .footer-links .d-grid a + a::before {
    content: "•";
    color: rgba(15, 15, 15, 0.4);
    margin-right: 8px;
  }

  .films-page .footer-note {
    margin-top: 24px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 32px;
    line-height: 20px;
  }

  .films-page .footer-signature {
    position: absolute;
    left: 50%;
    bottom: -24px;
    transform: translateX(-50%);
    width: 375px;
    height: 105px;
    max-width: none;
    opacity: 0.2;
  }

  .films-cell-preview img {
    width: 48px;
    height: 70px;
    object-fit: cover;
  }

  .films-empty-placeholder {
    min-height: 220px;
  }

  .film-detail-layout {
    gap: 32px;
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .film-detail-title-row {
    gap: 10px;
  }

  .film-detail-summary,
  .film-detail-paragraph {
    font-size: 16px;
  }

  .film-detail-meta-grid,
  .film-detail-gallery {
    grid-template-columns: 1fr;
  }

  .film-detail-poster-wrap {
    max-width: 320px;
  }

  .film-related-copy strong {
    font-size: 28px;
  }

  .film-detail-node306 {
    padding-bottom: 64px;
  }

  .film-detail-node384 {
    padding-bottom: 64px;
  }

  .node306-layout {
    gap: 40px;
    padding-top: 24px;
  }

  .node306-title {
    font-size: 74px;
  }

  .node306-year {
    font-size: 34px;
  }

  .node306-hero-grid {
    gap: 24px;
  }

  .node306-poster-wrap {
    min-height: 0;
    max-width: 360px;
  }

  .node306-content {
    gap: 56px;
  }

  .node306-widget {
    gap: 24px;
  }

  .node306-fact-row {
    flex-direction: column;
    gap: 4px;
  }

  .node306-fact-row span {
    width: auto;
  }

  .node306-watch-grid {
    gap: 20px;
  }

  .node306-watch-card {
    width: 100%;
  }

  .node306-structure-list {
    padding-left: 0;
  }

  .node306-sidebar {
    grid-template-columns: 1fr;
  }

  .node384-layout {
    gap: 40px;
    padding-top: 24px;
  }

  .node384-title {
    font-size: 74px;
  }

  .node384-year {
    font-size: 34px;
  }

  .node384-hero-grid {
    gap: 24px;
  }

  .node384-poster-wrap {
    min-height: 0;
    max-width: 320px;
  }

  .node384-content {
    gap: 56px;
  }

  .node384-widget {
    gap: 24px;
  }

  .node384-fact-row {
    flex-direction: column;
    gap: 4px;
  }

  .node384-fact-row span {
    width: auto;
  }

  .node384-sidebar {
    grid-template-columns: 1fr;
  }

  .film-photo-modal-dialog,
  .film-video-modal-dialog {
    width: calc(100vw - 16px);
    margin-top: 72px;
  }

  .film-modal-close {
    right: 8px;
    top: -48px;
  }

  .film-photo-stage-wrap {
    padding-bottom: 0;
  }

  .film-photo-stage {
    aspect-ratio: auto;
    max-height: 46vh;
  }

  .film-photo-thumbs {
    padding: 12px 8px;
    gap: 8px;
  }

  .film-photo-thumb {
    width: 58px;
    height: 58px;
  }

  .film-photo-meta {
    padding: 16px;
  }

  .film-photo-description {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
  }

  .film-photo-tags span {
    font-size: 12px;
  }

  .film-photo-nav {
    display: none;
  }

  .film-video-frame {
    border: 0;
    border-radius: 0;
    height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0f0f;
  }

  .film-video-image {
    width: 100%;
    height: auto;
    max-height: 42vh;
    object-fit: cover;
  }

  .film-video-controls {
    padding: 16px 12px;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .film-video-time-row {
    gap: 10px;
  }

  .film-video-time-row span {
    font-size: 16px;
    line-height: 1;
  }

  .film-video-buttons {
    gap: 2px;
  }

  .film-video-buttons button {
    width: 44px;
    height: 44px;
  }

  .film-video-buttons-right .icon-fullscreen {
    display: none;
  }

}

@media (min-width: 768px) and (max-width: 1200px) {
  .films-layout {
    width: 100%;
    max-width: 768px;
    gap: 32px;
    padding: 88px 32px 96px;
  }

  .films-back-link {
    gap: 8px;
    font-size: 16px;
    line-height: 22.4px;
  }

  .films-back-link svg {
    display: block;
    width: 32px;
    height: 32px;
  }

  .films-back-link span {
    padding-left: 0;
  }

  .films-back-link span::before {
    display: none;
  }

  .films-title {
    font-size: 80px;
    line-height: 1;
  }

  .films-count {
    font-size: 48px;
    padding-top: 0;
  }

  .films-toolbar {
    gap: 24px;
  }

  .films-search {
    border-radius: 14px;
    padding: 12px 16px;
  }

  .films-tabs {
    border-radius: 14px;
    padding: 4px;
  }

  .films-tab {
    height: 40px;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 20px;
  }

  .films-table-row {
    grid-template-columns: minmax(0, 1fr) auto 60px;
    gap: 8px;
  }

  .films-data-row {
    min-height: 140px;
    padding: 32px 0;
  }

  .films-cell-title span,
  .films-cell-year {
    font-size: 40px;
    line-height: 1;
  }

  .films-cell-preview img {
    width: 60px;
    height: 88px;
    object-fit: cover;
  }
}

@media (min-width: 768px) and (max-width: 1440px) {
  .film-detail-page .film-detail-node306 {
    padding: 0;
  }

  .film-detail-page .film-detail-node384 {
    padding: 0;
  }

  .film-detail-page .film-detail-node306 .node306-layout {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 88px 32px 100px !important;
    gap: 0;
  }

  .film-detail-page .film-detail-node384 .node384-layout {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 88px 32px 100px !important;
    gap: 128px;
  }

  .node306-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .node384-hero {
    gap: 0;
  }

  .node306-hero .films-back-link {
    order: 1;
    gap: 8px;
    width: fit-content;
    height: 32px;
    margin-left: 0;
    font-size: 16px;
    line-height: 22.4px;
    color: var(--white-70);
  }

  .node384-hero .films-back-link {
    gap: 8px;
    width: fit-content;
    height: 32px;
    font-size: 16px;
    line-height: 22.4px;
    color: var(--white-70);
  }

  .node306-hero .films-back-link svg {
    display: block;
    width: 32px;
    height: 32px;
  }

  .node384-hero .films-back-link svg {
    display: block;
    width: 32px;
    height: 32px;
  }

  .node306-hero .films-back-link span {
    padding-left: 0;
  }

  .node384-hero .films-back-link span {
    padding-left: 0;
  }

  .node306-hero .films-back-link span::before {
    display: none;
  }

  .node384-hero .films-back-link span::before {
    display: none;
  }

  .node306-hero-grid {
    display: contents;
  }

  .node384-hero-grid {
    grid-template-columns: 416px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    width: 100%;
  }

  .node306-poster-wrap {
    order: 2;
    justify-self: center;
    align-self: center;
    width: 228px;
    height: 342px;
    min-height: 0;
    margin-top: 32px;
    border: 0;
  }

  .node306-title-row {
    order: 3;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0;
    width: 100%;
    margin-top: 16px;
    margin-bottom: 0;
    text-align: center;
  }

  .node384-title-row {
    gap: 4px;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 32px;
  }

  .node306-title {
    width: 100%;
    font-size: 80px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .node384-title {
    font-size: 140px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .node306-year {
    width: 100%;
    padding-top: 0;
    font-size: 48px;
    line-height: 1;
    transform: none;
  }

  .node384-year {
    padding-top: 0;
    font-size: 60px;
    line-height: 1;
    transform: translateY(-16px);
  }

  .node306-info {
    order: 4;
    width: 100%;
    max-width: none;
    margin-top: 100px;
    margin-left: 0;
    gap: 24px;
    transform: none;
  }

  .node384-poster-wrap {
    width: 416px;
    height: auto;
    min-height: 0;
    border: 0;
  }

  .node384-poster {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .node384-info {
    width: 100%;
    max-width: none;
  }

  .node306-section-title {
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .node306-facts {
    gap: 8px;
  }

  .node306-fact-row {
    flex-direction: row;
    gap: 32px;
  }

  .node306-fact-row span {
    width: 160px;
  }

  .node306-fact-row strong,
  .node306-cast-list p,
  .node306-structure-intro,
  .node306-structure-list p,
  .node306-widget-note,
  .node306-doc-list li,
  .node306-biblio-list li {
    font-size: 16px;
  }

  .node306-button {
    min-height: 48px;
    padding: 14px 24px;
    font-size: 16px;
    line-height: 1.4;
  }

  .node306-content-wrap {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 100px;
    margin-left: 0;
    transform: none;
  }

  .film-detail-page .node306-info,
  .film-detail-page .node306-content-wrap,
  .film-detail-page .node306-widget,
  .film-detail-page .node306-articles-grid,
  .film-detail-page .node306-album-grid {
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: flex-start !important;
    justify-items: start !important;
    align-items: flex-start !important;
  }

  .node306-content {
    gap: 100px;
  }

  .node306-widget {
    width: 100%;
    max-width: none;
    gap: 32px;
  }

  .node306-sidebar {
    display: none;
  }

  .node306-watch-grid {
    display: grid;
    grid-template-columns: repeat(2, 334px);
    gap: 32px 36px;
    width: 100%;
    justify-content: center !important;
  }

  .film-detail-page .node306-watch-grid {
    justify-content: center !important;
    justify-items: start !important;
  }

  .node306-watch-card {
    width: 334px;
  }

  .node306-articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .node306-article-title {
    font-size: 20px;
  }

  .node306-article-copy {
    min-height: 200px;
  }

  .node306-album-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    width: 100%;
  }

  .node306-album-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .film-detail-page .film-detail-node384 {
    padding: 0;
    overflow-x: hidden;
  }

  .film-detail-page .film-detail-node384 .node384-layout {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 104px 32px 100px !important;
    gap: 100px;
  }

  .film-detail-page .film-detail-node384 .node384-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .film-detail-page .film-detail-node384 .films-back-link {
    order: 1;
    gap: 8px;
    width: fit-content;
    height: 32px;
    color: var(--white-70);
    font-size: 16px;
    line-height: 22.4px;
  }

  .film-detail-page .film-detail-node384 .films-back-link span {
    padding-left: 0;
  }

  .film-detail-page .film-detail-node384 .films-back-link span::before {
    display: none;
  }

  .film-detail-page .film-detail-node384 .node384-hero-grid {
    display: contents;
  }

  .film-detail-page .film-detail-node384 .node384-poster-wrap {
    order: 2;
    align-self: center;
    width: 228px;
    height: 342px;
    min-height: 0;
    max-width: none;
    margin-top: 32px;
    border: 0;
    overflow: hidden;
  }

  .film-detail-page .film-detail-node384 .node384-poster {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .film-detail-page .film-detail-node384 .node384-title-row {
    order: 3;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0;
    width: 100%;
    margin: 16px 0 0;
    text-align: center;
  }

  .film-detail-page .film-detail-node384 .node384-year {
    width: 100%;
    padding: 0;
    font-size: 48px;
    line-height: 1;
    transform: none;
  }

  .film-detail-page .film-detail-node384 .node384-title {
    width: 100%;
    font-size: 80px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .film-detail-page .film-detail-node384 .node384-info {
    order: 4;
    width: 100%;
    max-width: none;
    margin-top: 100px;
    gap: 24px;
  }

  .film-detail-page .film-detail-node384 .node384-section-title {
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .film-detail-page .film-detail-node384 .node384-facts {
    gap: 8px;
  }

  .film-detail-page .film-detail-node384 .node384-fact-row {
    flex-direction: row;
    gap: 32px;
  }

  .film-detail-page .film-detail-node384 .node384-fact-row span {
    width: 160px;
  }

  .film-detail-page .film-detail-node384 .node384-fact-row strong,
  .film-detail-page .film-detail-node384 .node384-list li,
  .film-detail-page .film-detail-node384 .node384-biblio-list li {
    font-size: 16px;
  }

  .film-detail-page .film-detail-node384 .node384-content-wrap {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .film-detail-page .film-detail-node384 .node384-content {
    gap: 100px;
  }

  .film-detail-page .film-detail-node384 .node384-widget {
    width: 100%;
    max-width: none;
    gap: 32px;
  }

  .film-detail-page .film-detail-node384 #crew .node384-fact-row {
    flex-direction: column;
    gap: 8px;
  }

  .film-detail-page .film-detail-node384 #crew .node384-fact-row span,
  .film-detail-page .film-detail-node384 #crew .node384-fact-row strong {
    width: 100%;
  }

  .film-detail-page .film-detail-node384 .node384-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: 100%;
  }

  .film-detail-page .film-detail-node384 .node384-album-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .film-detail-page .film-detail-node384 .node384-articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
  }

  .film-detail-page .film-detail-node384 .node384-article-title {
    font-size: 20px;
  }

  .film-detail-page .film-detail-node384 .node384-sidebar {
    display: none;
  }
}

@media (max-width: 767px) {
  .film-detail-page .film-detail-node306 {
    padding: 0;
  }

  .film-detail-page .film-detail-node306 .node306-layout {
    width: 100vw;
    max-width: none;
    box-sizing: border-box;
    padding: 80px 16px 100px !important;
    gap: 0;
  }

  .film-detail-page .node306-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .film-detail-page .node306-hero .films-back-link {
    order: 1;
    display: inline-flex;
    gap: 8px;
    width: fit-content;
    height: 32px;
    color: var(--white-70);
    font-size: 16px;
    line-height: 22.4px;
  }

  .film-detail-page .node306-hero .films-back-link svg {
    display: block;
    width: 32px;
    height: 32px;
  }

  .film-detail-page .node306-hero .films-back-link span {
    padding-left: 0;
  }

  .film-detail-page .node306-hero .films-back-link span::before {
    display: none;
  }

  .film-detail-page .node306-hero-grid {
    display: contents;
  }

  .film-detail-page .node306-poster-wrap {
    order: 2;
    align-self: center;
    width: 228px;
    height: 342px;
    min-height: 0;
    max-width: none;
    margin-top: 32px;
    border: 0;
  }

  .film-detail-page .node306-title-row {
    order: 3;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0;
    width: 100%;
    margin-top: 16px;
    text-align: center;
  }

  .film-detail-page .node306-title {
    width: 100%;
    font-size: 60px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .film-detail-page .node306-year {
    width: 100%;
    padding: 0;
    font-size: 48px;
    line-height: 1;
    transform: none;
  }

  .film-detail-page .node306-info {
    order: 4;
    width: 100%;
    margin-top: 100px;
    gap: 24px;
  }

  .film-detail-page .node306-section-title {
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .film-detail-page .node306-facts {
    gap: 16px;
  }

  .film-detail-page .node306-fact-row {
    flex-direction: column;
    gap: 4px;
  }

  .film-detail-page .node306-fact-row span,
  .film-detail-page .node306-fact-row strong {
    width: 100%;
    font-size: 16px;
    line-height: 1.5;
  }

  .film-detail-page #crew.node306-widget {
    gap: 32px;
  }

  .film-detail-page #crew .node306-facts {
    gap: 16px;
    color: var(--white-100);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.32px;
    text-transform: uppercase;
  }

  .film-detail-page #crew .node306-fact-row {
    gap: 8px;
  }

  .film-detail-page #crew .node306-fact-row span {
    color: rgba(237, 236, 226, 0.5);
  }

  .film-detail-page #crew .node306-crew-value-text {
    display: none;
  }

  .film-detail-page #crew .node306-crew-values {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 0 0 24px;
    list-style: disc;
    color: var(--white-100);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.32px;
    text-transform: uppercase;
  }

  .film-detail-page #crew .node306-crew-values li {
    margin: 0;
    padding: 0;
  }

  .film-detail-page #crew .node306-fact-row-cast {
    gap: 8px;
  }

  .film-detail-page #crew .node306-cast-list {
    width: 100%;
  }

  .film-detail-page #crew .node306-cast-list p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.32px;
  }

  .film-detail-page #crew .node306-cast-list p:last-of-type {
    margin-bottom: 0;
  }

  .film-detail-page #crew .node306-expand {
    margin-top: 16px;
    color: #d2b23d;
  }

  .film-detail-page .node306-button {
    min-height: 48px;
    padding: 14px 24px;
    font-size: 16px;
    line-height: 1.4;
  }

  .film-detail-page .node306-content-wrap {
    display: block;
    width: 100%;
    margin-top: 100px;
  }

  .film-detail-page .node306-content {
    gap: 100px;
  }

  .film-detail-page .node306-sidebar {
    display: none;
  }

  .film-detail-page .node306-widget {
    width: calc(100vw - 32px);
    max-width: none;
    gap: 32px;
  }

  .film-detail-page .node306-watch-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 32px;
    width: 100%;
    align-items: flex-start;
  }

  .film-detail-page .node306-watch-card {
    width: 334px;
    max-width: 100%;
    gap: 12px;
  }

  .film-detail-page .node306-watch-card:nth-child(n + 4) {
    display: none;
  }

  .film-detail-page .node306-watch-image-wrap {
    width: 100%;
    aspect-ratio: 304 / 172;
  }

  .film-detail-page .node306-watch-source {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.28px;
  }

  .film-detail-page .node306-watch-title,
  .film-detail-page .node306-watch-link {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.32px;
  }

  .film-detail-page .node306-watch-more-mobile {
    display: inline-flex;
    margin-top: 0;
  }

  .film-detail-page .node306-articles-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .film-detail-page .node306-articles-grid::-webkit-scrollbar {
    display: none;
  }

  .film-detail-page .node306-article-card {
    flex: 0 0 320px;
    width: 320px;
  }

  .film-detail-page .node306-album-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    width: calc(100vw - 32px);
  }

  .film-detail-page #materials .node306-doc-list {
    display: none;
  }

  .film-detail-page #materials .node306-material-albums {
    display: grid;
  }

  .film-detail-page .node306-album-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .film-detail-page .node306-album-overlay {
    padding: 12px;
  }

  .film-detail-page .node306-album-overlay p {
    display: none;
  }

  .film-detail-page .node306-album-overlay strong {
    font-size: 16px;
    line-height: 1.5;
  }

  .film-detail-page .node306-doc-list li,
  .film-detail-page .node306-biblio-list li,
  .film-detail-page .node306-structure-intro,
  .film-detail-page .node306-structure-list p,
  .film-detail-page .node306-widget-note {
    font-size: 16px;
  }

  .film-detail-page #structure.node306-widget {
    gap: 32px;
  }

  .film-detail-page #structure .node306-structure-intro {
    color: rgba(237, 236, 226, 0.8);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -0.64px;
  }

  .film-detail-page #structure .node306-structure-list,
  .film-detail-page #structure .node306-subtitle,
  .film-detail-page #structure .node306-structure-intro:nth-of-type(n + 2) {
    display: none;
  }

  .film-detail-page #structure .node306-expand {
    color: #d2b23d;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.32px;
  }
}

@media (max-width: 767px) {
  .film-detail-page .film-detail-node384 {
    padding: 0;
    overflow-x: hidden;
  }

  .film-detail-page .film-detail-node384 .node384-layout {
    width: 100vw;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 80px 16px 100px !important;
    gap: 100px;
  }

  .film-detail-page .film-detail-node384 .node384-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .film-detail-page .film-detail-node384 .films-back-link {
    order: 1;
    display: inline-flex;
    gap: 8px;
    width: fit-content;
    height: 32px;
    color: var(--white-70);
    font-size: 16px;
    line-height: 22.4px;
  }

  .film-detail-page .film-detail-node384 .films-back-link svg {
    width: 32px;
    height: 32px;
  }

  .film-detail-page .film-detail-node384 .films-back-link span {
    padding-left: 0;
  }

  .film-detail-page .film-detail-node384 .films-back-link span::before {
    display: none;
  }

  .film-detail-page .film-detail-node384 .node384-hero-grid {
    display: contents;
  }

  .film-detail-page .film-detail-node384 .node384-poster-wrap {
    order: 2;
    align-self: center;
    width: 228px;
    height: 342px;
    min-height: 0;
    max-width: none;
    margin-top: 32px;
    border: 0;
    overflow: hidden;
  }

  .film-detail-page .film-detail-node384 .node384-poster {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .film-detail-page .film-detail-node384 .node384-title-row {
    order: 3;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0;
    width: 100%;
    margin: 16px 0 0;
    text-align: center;
  }

  .film-detail-page .film-detail-node384 .node384-year {
    width: 100%;
    padding: 0;
    font-size: 48px;
    line-height: 1;
    transform: none;
  }

  .film-detail-page .film-detail-node384 .node384-title {
    width: 100%;
    font-size: 60px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .film-detail-page .film-detail-node384 .node384-info {
    order: 4;
    width: 100%;
    max-width: none;
    margin-top: 100px;
    gap: 24px;
  }

  .film-detail-page .film-detail-node384 .node384-section-title {
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .film-detail-page .film-detail-node384 .node384-facts {
    gap: 16px;
  }

  .film-detail-page .film-detail-node384 .node384-fact-row {
    flex-direction: column;
    gap: 4px;
  }

  .film-detail-page .film-detail-node384 .node384-fact-row span,
  .film-detail-page .film-detail-node384 .node384-fact-row strong {
    width: 100%;
    font-size: 16px;
    line-height: 1.5;
  }

  .film-detail-page .film-detail-node384 #crew .node384-fact-row {
    gap: 8px;
  }

  .film-detail-page .film-detail-node384 .node384-content-wrap {
    display: block;
    width: 100%;
    margin: 0;
  }

  .film-detail-page .film-detail-node384 .node384-content {
    gap: 100px;
  }

  .film-detail-page .film-detail-node384 .node384-widget {
    width: calc(100vw - 32px);
    max-width: none;
    gap: 32px;
  }

  .film-detail-page .film-detail-node384 .node384-list {
    padding-left: 24px;
  }

  .film-detail-page .film-detail-node384 .node384-list li,
  .film-detail-page .film-detail-node384 .node384-biblio-list li {
    font-size: 16px;
  }

  .film-detail-page .film-detail-node384 .node384-album-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    width: calc(100vw - 32px);
  }

  .film-detail-page .film-detail-node384 .node384-album-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .film-detail-page .film-detail-node384 .node384-album-overlay {
    padding: 12px;
  }

  .film-detail-page .film-detail-node384 .node384-album-overlay p {
    font-size: 14px;
    line-height: 20px;
  }

  .film-detail-page .film-detail-node384 .node384-album-overlay strong {
    font-size: 16px;
    line-height: 1.5;
  }

  .film-detail-page .film-detail-node384 .node384-articles-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .film-detail-page .film-detail-node384 .node384-articles-grid::-webkit-scrollbar {
    display: none;
  }

  .film-detail-page .film-detail-node384 .node384-article-card {
    flex: 0 0 320px;
    width: 320px;
  }

  .film-detail-page .film-detail-node384 .node384-article-title {
    font-size: 20px;
  }

  .film-detail-page .film-detail-node384 .node384-sidebar {
    display: none;
  }
}

@media (max-width: 359px) {
  html,
  body.film-detail-page {
    overflow-x: hidden;
  }

  .film-detail-page .film-detail-node306 {
    overflow-x: hidden;
  }

  .film-detail-page .node306-widget {
    max-width: calc(100vw - 32px);
  }

  .film-detail-page .node306-article-card {
    flex-basis: calc(100vw - 32px);
    width: calc(100vw - 32px);
  }

  .film-detail-page .node306-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100vw - 32px);
  }

  .film-detail-page .node306-album-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}
/* -- Theatre stage headers -------------------------------------- */
.films-stage-header {
  padding: 16px 16px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  border-bottom: 1px solid currentColor;
  margin-top: 8px;
}

/* -- Theatre detail page (theatre-item.php) --------------------- */
.theatre-detail-page .node306-poster--placeholder {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.node306-description-text {
  overflow: hidden;
  max-height: 120px;
  transition: max-height 0.4s ease;
}

.node306-description-text.is-expanded {
  max-height: none;
}

.node306-expand,
.node384-expand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #d2b23d;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  opacity: 1;
  text-decoration: none;
  width: fit-content;
}

.node306-expand:hover,
.node384-expand:hover {
  opacity: 1;
  color: #d2b23d;
}

.theatre-participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.theatre-participant-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theatre-participant-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

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

.theatre-participant-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.theatre-participant-role {
  font-size: 12px;
  opacity: 0.55;
  font-family: 'JetBrains Mono', monospace;
}

.theatre-project-detail-page .node306-content {
  gap: 128px;
}

.theatre-project-detail-page .node306-widget {
  max-width: 800px;
}

.theatre-project-detail-page .node306-structure-intro {
  max-width: 100%;
}

.theatre-project-detail-page .node306-album-grid {
  grid-template-columns: repeat(4, 197px);
  gap: 4px;
  width: auto;
}

.theatre-project-detail-page .node306-album-card {
  width: 197px;
  height: 197px;
  aspect-ratio: auto;
}

.theatre-project-detail-page .node306-album-overlay {
  padding: 16px;
}

.theatre-project-more-button {
  margin-top: 0;
}

@media (min-width: 768px) and (max-width: 1439px) {
  .theatre-project-detail-page .film-detail-node306 .node306-layout {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  .theatre-project-detail-page .node306-content {
    width: 100%;
    max-width: none;
    gap: 100px;
  }

  .theatre-project-detail-page .node306-widget {
    width: 100%;
    max-width: none;
  }

  .theatre-project-detail-page .node306-album-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
  }

  .theatre-project-detail-page .node306-album-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

@media (max-width: 767px) {
  .theatre-project-detail-page .film-detail-node306 .node306-layout {
    width: 100%;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow-x: hidden;
  }

  .theatre-project-detail-page .node306-content {
    gap: 100px;
  }

  .theatre-project-detail-page .node306-widget {
    width: calc(100vw - 32px);
    max-width: none;
  }

  .theatre-project-detail-page .node306-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    width: calc(100vw - 32px);
  }

  .theatre-project-detail-page .node306-album-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

/* -- Theatre PLAY detail page (theatre-item.php?type=play) ------ */

/* Desktop: match project content gap */
.theatre-play-detail-page .node306-content {
  gap: 128px;
}

/* Desktop: constrain content widget width like project */
.theatre-play-detail-page .node306-widget {
  max-width: 800px;
}

.theatre-play-literary-grid {
  display: grid;
  grid-template-columns: repeat(3, 220px);
  gap: 24px;
  width: auto;
}

.theatre-play-literary-card {
  position: relative;
  display: block;
  width: 220px;
  height: 340px;
  overflow: hidden;
  border: 0;
  background: rgba(237, 236, 226, 0.06);
  color: var(--white-100);
  cursor: pointer;
}

.theatre-play-literary-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.theatre-play-literary-language {
  display: none;
}

.theatre-play-literary-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0) 42%, rgba(15, 15, 15, 0.75) 100%);
  pointer-events: none;
}

.theatre-play-literary-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theatre-play-literary-overlay p,
.theatre-play-literary-overlay strong {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.theatre-play-literary-overlay p {
  color: rgba(237, 236, 226, 0.5);
}

.theatre-play-literary-overlay strong {
  font-weight: 600;
  color: var(--white-100);
}

/* Desktop albums: 4 columns, square cards */
.theatre-play-detail-page .node306-album-grid {
  grid-template-columns: repeat(4, 197px);
  gap: 4px;
  width: auto;
}

.theatre-play-detail-page .node306-album-card {
  width: 197px;
  height: 197px;
  aspect-ratio: auto;
}

.theatre-play-detail-page .node306-album-overlay {
  padding: 16px;
}

.theatre-play-detail-page .theatre-participants-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  margin-top: 0;
}

.theatre-play-detail-page .theatre-participant-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.theatre-play-detail-page .theatre-participant-photo {
  width: 80px;
  height: 80px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(237, 236, 226, 0.1);
  border: 1px solid rgba(237, 236, 226, 0.2);
  overflow: hidden;
  flex-shrink: 0;
}

.theatre-play-detail-page .theatre-participant-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theatre-play-detail-page .theatre-participant-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 236, 226, 0.2);
}

.theatre-play-detail-page .theatre-participant-photo--placeholder::before {
  content: "Э";
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--white-100);
}

.theatre-play-detail-page .theatre-participant-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--white-100);
  text-align: left;
  margin: 0;
}

.theatre-play-detail-page .theatre-participant-role {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: rgba(237, 236, 226, 0.5);
  text-align: left;
  opacity: 1;
  margin: 0;
}

.theatre-play-location-card {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: visible;
  background: transparent;
}

.theatre-play-location-card img {
  width: 100%;
  height: 425px;
  display: block;
  object-fit: cover;
}

.theatre-play-location-copy {
  position: static;
  margin-top: 32px;
  max-width: 520px;
}

.theatre-play-location-copy h3,
.theatre-play-location-copy p {
  margin: 0;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.theatre-play-location-copy h3 {
  margin-bottom: 16px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--white-100);
}

.theatre-play-location-copy p {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(237, 236, 226, 0.72);
}

.theatre-play-quote-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.theatre-play-quote-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theatre-play-quote-text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--white-100);
}

.theatre-play-quote-source {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: rgba(237, 236, 226, 0.7);
}

.theatre-play-quotes-button {
  margin-top: 0;
  width: fit-content;
}

/* Tablet (768–1439px) */
@media (min-width: 768px) and (max-width: 1439px) {
  .theatre-play-detail-page .film-detail-node306 .node306-layout {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  .theatre-play-detail-page .node306-content {
    width: 100%;
    max-width: none;
    gap: 100px;
  }

  .theatre-play-detail-page .node306-widget {
    width: 100%;
    max-width: none;
  }

  .theatre-play-literary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
  }

  .theatre-play-literary-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
  }

  .theatre-play-literary-card::after {
    display: none;
  }

  .theatre-play-literary-card img {
    height: auto;
    aspect-ratio: 220 / 340;
  }

  .theatre-play-literary-language {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(15, 15, 15, 0.5);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }

  .theatre-play-literary-flag {
    display: flex;
    flex-direction: column;
    width: 20px;
    height: 14px;
    overflow: hidden;
    border: 1px solid rgba(245, 245, 245, 0.8);
    border-radius: 2px;
    flex-shrink: 0;
  }

  .theatre-play-literary-flag span {
    flex: 1;
  }

  .theatre-play-literary-flag span:nth-child(1) {
    background: #fff;
  }

  .theatre-play-literary-flag span:nth-child(2) {
    background: #2f65d9;
  }

  .theatre-play-literary-flag span:nth-child(3) {
    background: #e33131;
  }

  .theatre-play-literary-overlay {
    position: static;
    z-index: auto;
    gap: 2px;
  }

  .theatre-play-literary-overlay p {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.02em;
  }

  .theatre-play-literary-overlay strong {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    font-weight: 400;
  }

  .theatre-play-detail-page .node306-album-grid {
    display: grid;
    grid-template-columns: repeat(3, 234px);
    gap: 1px;
    width: 100%;
    overflow: hidden;
  }

  .theatre-play-detail-page .node306-album-card {
    width: 234px;
    height: 234px;
    aspect-ratio: auto;
    border: 4px solid var(--black-100);
  }

  .theatre-play-detail-page .node306-album-card:nth-child(n + 4) {
    display: none;
  }

  .theatre-play-detail-page .node306-album-overlay {
    padding: 16px;
  }

  .theatre-play-photos-button {
    margin-top: 32px;
    width: fit-content;
    min-height: 48px;
    padding: 14px 24px;
    font-size: 16px;
    line-height: 1.4;
  }

  .theatre-play-detail-page .theatre-participants-grid {
    grid-template-columns: repeat(2, 344px);
    gap: 24px 16px;
    width: 704px;
  }

  .theatre-play-detail-page .theatre-participant-card {
    width: 344px;
    gap: 16px;
  }

  .theatre-play-detail-page .theatre-participant-photo {
    width: 64px;
    height: 64px;
  }

  .theatre-play-detail-page .theatre-participant-name {
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.02em;
  }

  .theatre-play-detail-page .theatre-participant-role {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.02em;
  }

  .theatre-play-location-card,
  .theatre-play-location-card img {
    height: 425px;
    min-height: 425px;
  }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
  .theatre-play-detail-page .film-detail-node306 .node306-layout {
    width: 100%;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow-x: hidden;
  }

  .theatre-play-detail-page .node306-content {
    gap: 100px;
  }

  .theatre-play-detail-page .node306-widget {
    width: calc(100vw - 32px);
    max-width: none;
  }

  .theatre-play-literary-grid {
    display: flex;
    grid-template-columns: none;
    gap: 24px;
    width: calc(100vw - 32px);
    margin-left: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 0 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    transform: none;
  }

  .theatre-play-literary-grid::-webkit-scrollbar {
    display: none;
  }

  .theatre-play-literary-card {
    display: flex;
    flex: 0 0 220px;
    flex-direction: column;
    gap: 12px;
    width: 220px;
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
    scroll-snap-align: center;
  }

  .theatre-play-literary-card:not(:nth-child(2)) {
    opacity: 0.5;
  }

  .theatre-play-literary-card::after {
    display: none;
  }

  .theatre-play-literary-card img {
    height: auto;
    aspect-ratio: 220 / 340;
  }

  .theatre-play-literary-overlay {
    position: static;
    z-index: auto;
    gap: 2px;
  }

  .theatre-play-literary-overlay p,
  .theatre-play-literary-overlay strong {
    letter-spacing: -0.02em;
  }

  .theatre-play-literary-overlay p {
    font-size: 14px;
    line-height: 20px;
  }

  .theatre-play-literary-overlay strong {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
  }

  .theatre-play-literary-language {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(15, 15, 15, 0.5);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }

  .theatre-play-literary-flag {
    display: flex;
    flex-direction: column;
    width: 20px;
    height: 14px;
    overflow: hidden;
    border: 1px solid rgba(245, 245, 245, 0.8);
    border-radius: 2px;
    flex-shrink: 0;
  }

  .theatre-play-literary-flag span {
    flex: 1;
  }

  .theatre-play-literary-flag span:nth-child(1) {
    background: #fff;
  }

  .theatre-play-literary-flag span:nth-child(2) {
    background: #2f65d9;
  }

  .theatre-play-literary-flag span:nth-child(3) {
    background: #e33131;
  }

  .theatre-play-detail-page .node306-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    width: calc(100vw - 32px);
  }

  .theatre-play-detail-page .node306-album-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .theatre-play-detail-page .node306-album-overlay {
    padding: 12px;
  }

  .theatre-play-detail-page .node306-album-overlay p {
    display: none;
  }

  .theatre-play-detail-page .node306-album-overlay strong {
    font-size: 14px;
    line-height: 1.4;
  }

  .theatre-play-detail-page .theatre-participants-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
  }

  .theatre-play-detail-page .theatre-participant-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: none;
  }

  .theatre-play-detail-page .theatre-participant-photo {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
  }

  .theatre-play-detail-page .theatre-participant-photo--placeholder::before {
    font-size: 36px;
    line-height: 1;
  }

  .theatre-play-detail-page .theatre-participant-name {
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -0.02em;
  }

  .theatre-play-detail-page .theatre-participant-role {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.02em;
  }

  .theatre-play-detail-page .theatre-participant-name,
  .theatre-play-detail-page .theatre-participant-role {
    text-align: left;
  }

  .theatre-play-location-card {
    height: auto;
    min-height: 0;
    overflow: visible;
    background: transparent;
  }

  .theatre-play-location-card img {
    height: 425px;
    min-height: 425px;
    object-fit: cover;
  }

  .theatre-play-location-copy {
    position: static;
    max-width: none;
    margin-top: 32px;
  }

  .theatre-play-location-copy h3 {
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .theatre-play-location-copy p {
    font-size: 16px;
    line-height: 24px;
    color: var(--white-100);
    letter-spacing: -0.02em;
  }

  .theatre-play-quote-text {
    font-size: 16px;
    line-height: 24px;
  }

  .theatre-play-quote-source {
    font-size: 12px;
    line-height: 18px;
  }
}

/* Universal photo viewer. Used by film pages now and reusable across templates. */
.site-photo-viewer {
  color: #edece2;
}

.site-photo-viewer__backdrop {
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(10px);
}

.site-photo-viewer__dialog {
  isolation: isolate;
}

.site-photo-viewer__layout {
  background: #0f0f0f;
}

.site-photo-viewer__stage {
  background: #0f0f0f;
}

.site-photo-viewer__counter {
  margin: 0;
  color: rgba(237, 236, 226, 0.45);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.site-photo-viewer__title {
  margin: 0;
  color: #edece2;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

@media (min-width: 768px) and (max-width: 1439px) {
  .site-photo-viewer {
    background: #0f0f0f;
    overflow-y: auto;
  }

  .site-photo-viewer__backdrop {
    background: #0f0f0f;
    backdrop-filter: none;
  }

  .site-photo-viewer__dialog {
    width: 704px !important;
    max-width: calc(100vw - 64px) !important;
    margin: 112px auto 0 !important;
  }

  .site-photo-viewer__close {
    top: -40px !important;
    right: 0 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .site-photo-viewer__close span {
    width: 32px !important;
    height: 2px !important;
    background: #edece2 !important;
  }

  .site-photo-viewer__layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background: transparent !important;
  }

  .site-photo-viewer__stage-wrap {
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .site-photo-viewer__stage {
    width: 100% !important;
    height: 528px !important;
    max-height: calc(100vh - 260px) !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  .site-photo-viewer__thumbs {
    display: flex !important;
    gap: 8px !important;
    padding: 24px 0 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .site-photo-viewer__thumbs::-webkit-scrollbar {
    display: none;
  }

  .site-photo-viewer__thumbs .film-photo-thumb {
    width: 80px !important;
    height: 56px !important;
    border: 1px solid rgba(237, 236, 226, 0.24) !important;
    opacity: 0.45 !important;
  }

  .site-photo-viewer__thumbs .film-photo-thumb.is-active {
    border-color: #edece2 !important;
    opacity: 1 !important;
  }

  .site-photo-viewer__meta {
    width: 100% !important;
    padding: 32px 0 0 !important;
    border-left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .site-photo-viewer__title {
    max-width: 540px !important;
    font-size: 40px !important;
    line-height: 1 !important;
    letter-spacing: -0.8px !important;
  }

  .site-photo-viewer__description {
    max-width: 620px !important;
    color: rgba(237, 236, 226, 0.6) !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    letter-spacing: -0.32px !important;
  }

  .site-photo-viewer__tags span {
    min-height: 24px !important;
    padding: 2px 8px !important;
    background: rgba(237, 236, 226, 0.12) !important;
    color: rgba(237, 236, 226, 0.75) !important;
    font-size: 12px !important;
    line-height: 16px !important;
  }

  .site-photo-viewer__nav {
    top: 264px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .site-photo-viewer__nav--prev {
    left: -56px !important;
  }

  .site-photo-viewer__nav--next {
    right: -56px !important;
  }

  .site-photo-viewer__nav span {
    width: 16px !important;
    height: 16px !important;
    border-top: 2px solid #edece2 !important;
    border-right: 2px solid #edece2 !important;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .site-photo-viewer {
    background: #0f0f0f;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto;
    padding: 32px 0 !important;
  }

  .site-photo-viewer__backdrop {
    background: #0f0f0f;
    backdrop-filter: none;
  }

  .site-photo-viewer__dialog {
    width: calc(100vw - 64px) !important;
    max-width: 704px !important;
    max-height: calc(100vh - 64px) !important;
    margin: 0 auto !important;
  }

  .site-photo-viewer__close {
    top: -40px !important;
    right: 0 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .site-photo-viewer__close span {
    width: 32px !important;
    height: 2px !important;
    background: #edece2 !important;
  }

  .site-photo-viewer__layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background: transparent !important;
  }

  .site-photo-viewer__stage-wrap {
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .site-photo-viewer__stage {
    width: 100% !important;
    height: clamp(300px, 44vh, 360px) !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  .site-photo-viewer__thumbs {
    display: flex !important;
    gap: 8px !important;
    padding: 18px 0 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .site-photo-viewer__thumbs .film-photo-thumb {
    width: 80px !important;
    height: 56px !important;
    border: 1px solid rgba(237, 236, 226, 0.24) !important;
    opacity: 0.45 !important;
  }

  .site-photo-viewer__thumbs .film-photo-thumb.is-active {
    border-color: #edece2 !important;
    opacity: 1 !important;
  }

  .site-photo-viewer__meta {
    width: 100% !important;
    padding: 24px 0 0 !important;
    border-left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .site-photo-viewer__title {
    max-width: 540px !important;
    font-size: 40px !important;
    line-height: 1 !important;
    letter-spacing: -0.8px !important;
  }

  .site-photo-viewer__description {
    max-width: 620px !important;
    color: rgba(237, 236, 226, 0.6) !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    letter-spacing: -0.32px !important;
  }

  .site-photo-viewer__tags span {
    min-height: 24px !important;
    padding: 2px 8px !important;
    background: rgba(237, 236, 226, 0.12) !important;
    color: rgba(237, 236, 226, 0.75) !important;
    font-size: 12px !important;
    line-height: 16px !important;
  }

  .site-photo-viewer__nav {
    top: 180px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .site-photo-viewer__nav--prev {
    left: -56px !important;
  }

  .site-photo-viewer__nav--next {
    right: -56px !important;
  }

  .site-photo-viewer__nav span {
    width: 16px !important;
    height: 16px !important;
    border-top: 2px solid #edece2 !important;
    border-right: 2px solid #edece2 !important;
  }
}

@media (max-width: 639px) {
  .site-photo-viewer {
    background: #0f0f0f !important;
    overflow-y: auto !important;
    padding: 0 !important;
  }

  .site-photo-viewer__backdrop {
    background: #0f0f0f !important;
    backdrop-filter: none !important;
  }

  .site-photo-viewer__dialog {
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 72px 16px 32px !important;
    box-sizing: border-box !important;
  }

  .site-photo-viewer__close {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 0 !important;
    background: transparent !important;
    z-index: 3 !important;
  }

  .site-photo-viewer__close span {
    width: 28px !important;
    height: 2px !important;
    background: #edece2 !important;
  }

  .site-photo-viewer__layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background: transparent !important;
  }

  .site-photo-viewer__stage-wrap {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .site-photo-viewer__stage {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 42vh !important;
    margin: 0 auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    display: block !important;
    background: #0f0f0f !important;
  }

  .site-photo-viewer__thumbs {
    display: flex !important;
    gap: 8px !important;
    padding: 16px 0 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .site-photo-viewer__thumbs::-webkit-scrollbar {
    display: none;
  }

  .site-photo-viewer__thumbs .film-photo-thumb {
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 56px !important;
    border: 1px solid transparent !important;
    opacity: 0.45 !important;
  }

  .site-photo-viewer__thumbs .film-photo-thumb.is-active {
    border-color: #edece2 !important;
    opacity: 1 !important;
  }

  .site-photo-viewer__meta {
    width: 100% !important;
    padding: 24px 0 0 !important;
    border-left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .site-photo-viewer__counter {
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: -0.28px !important;
  }

  .site-photo-viewer__title {
    max-width: 100% !important;
    font-size: 32px !important;
    line-height: 1 !important;
    letter-spacing: -0.64px !important;
  }

  .site-photo-viewer__description {
    max-width: 100% !important;
    color: rgba(237, 236, 226, 0.68) !important;
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: -0.28px !important;
  }

  .site-photo-viewer__tags {
    gap: 8px !important;
  }

  .site-photo-viewer__tags span {
    min-height: 24px !important;
    padding: 2px 8px !important;
    background: rgba(237, 236, 226, 0.12) !important;
    color: rgba(237, 236, 226, 0.75) !important;
    font-size: 10px !important;
    line-height: 16px !important;
  }

  .site-photo-viewer__nav {
    display: none !important;
  }
}

.theatre-play-detail-page .theatre-participant-photo--placeholder::before {
  content: none !important;
}

.theatre-play-detail-page .theatre-participant-photo--placeholder .theatre-participant-placeholder-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* ============================================================
   BOOK DETAIL PAGE  (text-item.php)
   ============================================================ */

.book-detail-page .book-main {
  padding-bottom: 128px;
}

/* Layout container */
.book-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 136px 64px 0;
  box-sizing: border-box;
}

/* Back link + title */
.book-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-title-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.book-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-100);
}

.book-year {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(237, 236, 226, 0.4);
  padding-top: 8px;
}

/* Hero: cover + О книге */
.book-hero {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 48px;
}

.book-cover-wrap {
  flex: 0 0 416px;
}

/* Год + название под обложкой — скрыт на десктопе */
.book-hero-title {
  display: none;
}

.book-cover-img {
  width: 416px;
  height: 624px;
  object-fit: cover;
  display: block;
}

.book-about {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

.book-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-100);
}

.book-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-meta-row {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
}

.book-meta-label {
  flex: 0 0 160px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(237, 236, 226, 0.5);
}

.book-meta-value {
  flex: 1 1 auto;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-100);
}

/* Content + Sidebar row */
.book-content-wrap {
  display: flex;
  flex-direction: row;
  gap: 64px;
  align-items: flex-start;
}

.book-content {
  display: flex;
  flex-direction: column;
  gap: 128px;
  flex: 1 1 auto;
  min-width: 0;
}

.book-widget {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
}

/* Sidebar */
.book-sidebar {
  flex: 0 0 auto;
  position: sticky;
  top: 100px;
}

.node306-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* "Где почитать" cards */
.book-read-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
}

.book-read-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 384px;
  max-width: 100%;
}

.book-read-thumb {
  flex: 0 0 78px;
  width: 78px;
  height: 120px;
  overflow: hidden;
}

.book-read-thumb img {
  width: 78px;
  height: 120px;
  object-fit: cover;
  display: block;
}

.book-read-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.book-read-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.book-read-subtitle {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(237, 236, 226, 0.5);
}

.book-read-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-100);
}

.book-read-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #D2B23D;
  text-decoration: none;
}

.book-read-cta:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #D2B23D;
}

/* "Показать еще" button */
.book-show-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: var(--white-100);
  color: #0F0F0F;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.book-show-more:hover {
  opacity: 0.85;
}

/* Описание */
.book-description-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-description-text {
  margin: 0;
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.04em;
  color: rgba(237, 236, 226, 0.8);
}

.book-expand-link {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #D2B23D;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.book-expand-link:hover {
  color: #D2B23D;
}

/* "Воспоминания" article cards */
.book-article-grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.book-article-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 0;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.book-article-img {
  width: 100%;
  overflow: hidden;
}

.book-article-img img {
  width: 100%;
  height: 192px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.book-article-card:hover .book-article-img img {
  opacity: 0.8;
}

.book-article-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  gap: 8px;
}

.book-article-title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-100);
}

.book-article-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.book-article-type {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-100);
}

.book-article-date {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(237, 236, 226, 0.7);
}

/* Библиография */
.book-biblio-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: biblio;
}

.book-biblio-item {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  counter-increment: biblio;
}

.book-biblio-item::before {
  content: counter(biblio) '. ';
  color: var(--white-100);
}

/* Tablet 768–1439px */
@media (min-width: 768px) and (max-width: 1439px) {
  .book-layout {
    padding: 88px 32px 0;
    gap: 100px;
    max-width: none;
  }

  /* Скрываем заголовок из шапки, показываем под обложкой */
  .book-title-row {
    display: none;
  }

  .book-hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
  }

  .book-hero-title .book-year {
    font-size: 48px;
    text-align: center;
    padding-top: 0;
  }

  .book-hero-title .book-title {
    font-size: 80px;
    text-align: center;
    margin: 0;
  }

  .book-hero {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .book-cover-wrap {
    flex: none;
  }

  .book-cover-img {
    width: 228px;
    height: 342px;
  }

  .book-about {
    width: 100%;
    gap: 24px;
    margin-top: 48px;
  }

  .book-section-title {
    font-size: 48px;
  }

  .book-content-wrap {
    flex-direction: column;
  }

  .book-sidebar {
    display: none;
  }

  .book-content {
    gap: 100px;
    width: 100%;
  }

  .book-widget {
    max-width: none;
    width: 100%;
  }

  .book-read-card {
    width: 340px;
  }

  .book-article-img img {
    height: 168px;
  }

  .book-show-more {
    min-height: 48px;
    font-size: 16px;
    line-height: 1.4;
    padding: 14px 24px;
  }
}

/* Mobile ≤767px */
@media (max-width: 767px) {
  .book-layout {
    padding: 88px 16px 0;
    gap: 100px;
    max-width: none;
  }

  /* Скрываем заголовок из шапки, показываем под обложкой */
  .book-title-row {
    display: none;
  }

  .book-hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
  }

  .book-hero-title .book-year {
    font-size: 48px;
    text-align: center;
    padding-top: 0;
  }

  .book-hero-title .book-title {
    font-size: 80px;
    text-align: center;
    margin: 0;
  }

  .book-hero {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .book-cover-wrap {
    flex: none;
  }

  .book-cover-img {
    width: 228px;
    height: 342px;
  }

  .book-about {
    width: 100%;
    margin-top: 48px;
  }

  .book-section-title {
    font-size: 48px;
  }

  .book-meta-row {
    gap: 16px;
  }

  .book-meta-label {
    flex: 0 0 120px;
    font-size: 14px;
  }

  .book-meta-value {
    font-size: 14px;
  }

  .book-content-wrap {
    flex-direction: column;
  }

  .book-sidebar {
    display: none;
  }

  .book-content {
    gap: 100px;
    width: 100%;
  }

  .book-widget {
    max-width: none;
    width: 100%;
  }

  .book-read-grid {
    flex-direction: column;
    gap: 24px;
  }

  .book-read-card {
    width: 100%;
  }

  .book-article-grid {
    flex-direction: row;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 8px;
  }

  .book-article-card {
    flex: none;
    flex-direction: column;
    width: 320px;
  }

  .book-article-img {
    flex: none;
    width: 100%;
  }

  .book-article-img img {
    width: 100%;
    height: 246px;
  }

  .book-article-info {
    height: 200px;
    min-height: auto;
  }

  .book-show-more {
    min-height: 48px;
    font-size: 16px;
    line-height: 1.4;
    padding: 14px 24px;
  }
}

/* ============================================================
   CONTENT DETAIL PAGES
   Shared primitives for article, interview, and program templates.
   Domain classes below stay as modifiers for page-specific Figma deltas.
   ============================================================ */

.content-detail-page .site-header {
  background: transparent;
  transition: background-color 0.2s ease;
}

.content-detail-page .site-header.is-scrolled {
  background: var(--black-100);
}

.content-detail-main {
  padding: 0 0 100px;
}

.content-detail-layout {
  display: flex;
  flex-direction: column;
  padding: 88px 16px 0;
}

.content-detail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.content-detail-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.02em;
  color: var(--white-40);
  text-transform: uppercase;
}

.content-detail-title {
  font-family: 'Sturkopf Grotesk', 'Bebas Neue', sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.02em;
  color: var(--white-100);
  text-align: center;
  text-transform: uppercase;
  margin: 0;
}

.content-detail-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.content-detail-text {
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 170%;
  letter-spacing: -0.04em;
  color: var(--white-80);
  margin: 0;
}

@media (min-width: 768px) {
  .content-detail-layout {
    padding: 88px 64px 0;
  }

  .content-detail-header {
    margin-bottom: 40px;
  }

  .content-detail-title {
    font-size: 80px;
  }
}

@media (min-width: 1440px) {
  .content-detail-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 136px 288px 0;
  }

  .content-detail-title {
    font-size: 100px;
  }
}

/* ============================================================
   ARTICLE DETAIL PAGE
   ============================================================ */

.article-detail-page .site-header {
  background: transparent;
  transition: background-color 0.2s ease;
}

.article-detail-page .site-header.is-scrolled {
  background: var(--black-100);
}

.article-main {
  padding: 0 0 100px;
}

/* ---- Mobile base ---- */
.article-layout {
  display: flex;
  flex-direction: column;
  padding: 88px 16px 0;
}

.article-back-wrap {
  margin-bottom: 40px;
}

.article-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
}

.article-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(237, 236, 226, 0.5);
  text-align: center;
}

.article-title {
  font-family: 'Sturkopf Grotesk', 'Bebas Neue', sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-100, #EDECE2);
  text-align: center;
  margin: 0;
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-bottom: 100px;
}

.article-body-text {
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 170%;
  letter-spacing: -0.04em;
  color: rgba(237, 236, 226, 0.8);
  margin: 0;
}

.article-comments {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.article-comments-title {
  font-family: 'Sturkopf Grotesk', 'Bebas Neue', sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-100, #EDECE2);
  margin: 0;
}

.article-editorial-note {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- Tablet (768px+) ---- */
@media (min-width: 768px) {
  .article-layout {
    padding: 88px 64px 0;
  }

  .article-header {
    margin-bottom: 40px;
  }

  .article-title {
    font-size: 80px;
  }

  .article-body {
    width: 100%;
    margin-bottom: 100px;
  }

  .article-comments {
    width: 100%;
  }

  .article-comments-title {
    font-size: 60px;
  }
}

/* ---- Desktop (1440px+) ---- */
@media (min-width: 1440px) {
  .article-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 136px 288px 0;
  }

  .article-title {
    font-size: 100px;
  }

  .article-body {
    margin-bottom: 128px;
  }
}

/* ---- Figma article template: Naum Kleiman interview/article ---- */
.article-figma-layout {
  align-items: center;
  gap: 32px;
  padding-top: 80px;
}

.article-figma-back {
  display: none;
}

.article-figma-header {
  width: 100%;
  gap: 8px;
  margin-bottom: 0;
}

.article-figma-label {
  width: 100%;
  max-width: 640px;
}

.article-figma-title {
  width: 100%;
}

.article-figma-figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0;
}

.article-figma-figure img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.article-figma-figure figcaption {
  width: 100%;
  max-width: 640px;
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: -0.02em;
  color: rgba(237, 236, 226, 0.5);
}

.article-figma-figure--hero img {
  height: 192px;
}

.article-figma-figure--second img {
  height: 236px;
}

.article-figma-lead,
.article-figma-body,
.article-figma-quote {
  width: 100%;
  margin: 0;
}

.article-figma-lead {
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: -0.04em;
  color: var(--white-100);
}

.article-figma-body {
  gap: 16px;
  margin-bottom: 0;
}

.article-figma-question {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 170%;
  letter-spacing: -0.02em;
  color: var(--white-100);
}

.article-figma-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  color: var(--white-100);
}

.article-figma-quote-mark {
  display: block;
  width: 39px;
  height: 48px;
  flex: none;
}

.article-figma-quote-mark img {
  display: block;
  width: 39px;
  height: 48px;
  max-width: none;
}

.article-figma-quote p {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: -0.04em;
  color: var(--white-100);
}

@media (min-width: 768px) {
  .article-figma-layout {
    width: 100%;
    max-width: 768px;
    padding: 88px 32px 0;
    gap: 40px;
  }

  .article-figma-header {
    width: 704px;
    max-width: 100%;
  }

  .article-figma-title {
    font-size: 80px;
  }

  .article-figma-figure--hero {
    width: 704px;
    max-width: 100%;
  }

  .article-figma-figure--hero img {
    height: auto;
    aspect-ratio: 704 / 396;
  }

  .article-figma-lead,
  .article-figma-body,
  .article-figma-quote {
    width: 640px;
    max-width: 100%;
  }

  .article-figma-figure--second {
    width: 640px;
    max-width: 100%;
  }

  .article-figma-figure--second img {
    height: auto;
    aspect-ratio: 704 / 486;
  }
}

@media (min-width: 1440px) {
  .article-figma-layout {
    width: 1440px;
    max-width: 1440px;
    padding: 128px 288px 0;
    gap: 40px;
  }

  .article-figma-header {
    width: 864px;
  }

  .article-figma-title {
    font-size: 100px;
  }

  .article-figma-figure--hero {
    width: 1088px;
    max-width: none;
  }

  .article-figma-figure--hero img {
    height: 612px;
    aspect-ratio: auto;
  }

  .article-figma-figure figcaption,
  .article-figma-lead,
  .article-figma-body,
  .article-figma-quote {
    width: 640px;
    max-width: 640px;
  }

  .article-figma-figure--second {
    width: 864px;
    max-width: none;
  }

  .article-figma-figure--second img {
    height: 486px;
    aspect-ratio: auto;
  }

  .article-figma-quote-mark {
    position: absolute;
    left: -55px;
    top: 16px;
  }
}

/* ============================================================
   MEMORIES CATALOG
   ============================================================ */

.memories-main {
  padding: 136px 0 128px;
}

.memories-layout {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

.memories-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.memories-back-link {
  align-self: flex-start;
}

.memories-title {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.memories-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  padding: 24px 0;
}

.memories-tabs {
  display: flex;
  gap: 4px;
  width: 304px;
  padding: 4px;
  border-radius: 14px;
  background: #353535;
}

.memories-tab {
  flex: 1 1 0;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(237, 236, 226, 0.7);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.memories-tab.is-active {
  background: var(--white-100);
  color: var(--black-100);
}

.memories-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 304px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #353535;
  color: rgba(237, 236, 226, 0.7);
}

.memories-search svg {
  flex: none;
}

.memories-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--white-100);
  outline: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.memories-search input::placeholder {
  color: rgba(237, 236, 226, 0.7);
}

.memories-table-head,
.memories-row {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr) 96px;
  gap: 32px;
  align-items: center;
  width: 100%;
}

.memories-table-head {
  height: 56px;
  padding: 12px 0;
  border-bottom: 1px solid #353535;
  color: rgba(237, 236, 226, 0.5);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.memories-row {
  position: relative;
  min-height: 104px;
  padding: 32px 0;
  border-bottom: 1px solid #353535;
  color: inherit;
  text-decoration: none;
}

.memories-row-author {
  color: var(--white-100);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.memories-row:hover .memories-row-author {
  color: #D2B23D;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.memories-row-role {
  color: rgba(237, 236, 226, 0.7);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.memories-row-preview {
  position: relative;
  width: 96px;
  height: 32px;
}

.memories-row-preview img {
  position: absolute;
  right: 0;
  top: 50%;
  width: 93px;
  height: 133px;
  object-fit: cover;
  transform: translateY(-50%) rotate(6.48deg);
  transform-origin: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.memories-row:hover .memories-row-preview img {
  opacity: 1;
}

/* ── Memories search-active state ──────────────────────────── */
.memories-results-count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(237, 236, 226, 0.5);
}

.memories-search-clear {
  margin-left: auto;
}

/* When search active — hide tabs, show results count */
.memories-layout.is-search-active .memories-tabs {
  display: none;
}

.memories-layout.is-search-active .memories-search {
  flex: 1;
}

/* ============================================================
   MEMORY DETAIL PAGE
   ============================================================ */

.memory-detail-main {
  padding: 136px 0 128px;
}

.memory-detail-layout {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

.memory-detail-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 32px;
}

.memory-detail-back {
  align-self: flex-start;
}

.memory-detail-title {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.memory-person-hero {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
  margin-bottom: 128px;
}

.memory-person-photo {
  width: 416px;
  height: 624px;
  border: 1px solid rgba(237, 236, 226, 0.2);
  flex: none;
}

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

.memory-person-info {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  min-height: 624px;
  text-transform: uppercase;
}

.memory-person-info h2,
.memory-widget h2 {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.memory-person-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.memory-person-meta-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.memory-person-meta-row span {
  flex: 0 0 160px;
  color: rgba(237, 236, 226, 0.5);
  font-weight: 400;
}

.memory-person-meta-row strong {
  flex: 1 1 0;
  min-width: 0;
  color: var(--white-100);
  font-weight: 400;
}

.memory-detail-content-wrap {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.memory-detail-content {
  display: flex;
  width: 976px;
  flex: none;
  flex-direction: column;
  gap: 100px;
}

.memory-widget {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 800px;
  max-width: 800px;
}

.memory-widget h2 {
  font-size: 60px;
}

.memory-text-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.memory-text-block h3 {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.memory-text-block p {
  margin: 0;
  color: rgba(237, 236, 226, 0.8);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.04em;
}

.memory-detail-sidebar {
  position: sticky;
  top: 128px;
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 1439px) {
  .memories-main,
  .memory-detail-main {
    padding-top: 88px;
  }

  .memories-layout,
  .memory-detail-layout {
    padding: 0 32px;
  }

  .memories-title,
  .memory-detail-title {
    font-size: 80px;
    white-space: normal;
  }

  .memories-table-head,
  .memories-row {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 72px;
    gap: 24px;
  }

  .memories-row-author {
    font-size: 32px;
  }

  .memories-row-role {
    font-size: 14px;
  }

  .memories-row-preview {
    width: 72px;
  }

  .memories-row-preview img {
    width: 72px;
    height: 103px;
  }

  .memory-person-hero,
  .memory-detail-content-wrap {
    flex-direction: column;
  }

  .memory-person-info {
    min-height: auto;
    width: 100%;
  }

  .memory-detail-content,
  .memory-widget {
    width: 100%;
    max-width: none;
  }

  .memory-detail-sidebar {
    display: none;
  }
}

@media (max-width: 767px) {
  .memories-layout,
  .memory-detail-layout {
    padding: 0 16px;
  }

  .memories-title,
  .memory-detail-title {
    font-size: 48px;
  }

  .memories-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .memories-tabs,
  .memories-search {
    width: 100%;
  }

  .memories-table-head {
    display: none;
  }

  .memories-row {
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 16px;
    min-height: 96px;
    padding: 24px 0;
  }

  .memories-row-author {
    font-size: 28px;
  }

  .memories-row-role {
    grid-column: 1;
    font-size: 13px;
  }

  .memories-row-preview {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 56px;
  }

  .memories-row-preview img {
    width: 56px;
    height: 80px;
  }

  .memory-person-hero {
    gap: 32px;
    margin-bottom: 100px;
  }

  .memory-person-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 416 / 624;
  }

  .memory-person-meta-row {
    gap: 16px;
  }

  .memory-person-meta-row span {
    flex-basis: 120px;
    font-size: 14px;
  }

  .memory-person-meta-row strong {
    font-size: 14px;
  }

  .memory-widget h2 {
    font-size: 48px;
  }
}

/* ============================================================
   INTERVIEW DETAIL PAGE
   ============================================================ */

.interview-detail-page .site-header {
  background: transparent;
  transition: background-color 0.2s ease;
}

.interview-detail-page .site-header.is-scrolled {
  background: var(--black-100);
}

.interview-main {
  padding: 0 0 100px;
}

/* ---- Mobile base ---- */
.interview-layout {
  display: flex;
  flex-direction: column;
  padding: 88px 16px 0;
}

.interview-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.interview-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(237, 236, 226, 0.5);
  text-align: center;
}

.interview-title {
  font-family: 'Sturkopf Grotesk', 'Bebas Neue', sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-100, #EDECE2);
  text-align: center;
  margin: 0;
}

.interview-image {
  width: 100%;
  height: 192px;
  overflow: hidden;
  margin-bottom: 32px;
}

.interview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.interview-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.interview-body-text {
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 170%;
  letter-spacing: -0.04em;
  color: rgba(237, 236, 226, 0.8);
  margin: 0;
}

.interview-body-bold {
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 170%;
  letter-spacing: -0.02em;
  color: var(--white-100, #EDECE2);
  margin: 0;
}

/* ---- Tablet (768px+) ---- */
@media (min-width: 768px) {
  .interview-layout {
    padding: 88px 64px 0;
  }

  .interview-header {
    margin-bottom: 40px;
  }

  .interview-title {
    font-size: 80px;
  }

  .interview-image {
    height: 396px;
    margin-bottom: 40px;
  }

  .interview-body {
    width: 100%;
  }
}

/* ---- Desktop (1440px+) ---- */
@media (min-width: 1440px) {
  .interview-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 136px 288px 0;
  }

  .interview-layout .article-back-wrap {
    margin-left: -112px;
  }

  .interview-title {
    font-size: 100px;
  }

  .interview-image {
    width: 1088px;
    height: 612px;
    align-self: center;
    margin-bottom: 40px;
  }

  .interview-body {
    margin-bottom: 128px;
  }
}

/* ============================================================
   ALBUM DETAIL PAGE
   ============================================================ */

.photoalbums-page .site-header,
.photoalbum-detail-page .site-header {
  background: transparent;
  transition: background-color 0.2s ease;
}

.photoalbums-page .site-header.is-scrolled,
.photoalbum-detail-page .site-header.is-scrolled {
  background: var(--black-100);
}

.photoalbums-main,
.photoalbum-main {
  padding: 136px 0 128px;
}

.photoalbums-layout,
.photoalbum-layout {
  display: flex;
  flex-direction: column;
  width: 1312px;
  max-width: calc(100vw - 128px);
  margin: 0 auto;
}

.photoalbums-header,
.photoalbum-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.photoalbums-header h1,
.photoalbum-header h1 {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.photoalbums-grid {
  display: grid;
  grid-template-columns: repeat(4, 326px);
  gap: 0;
  width: 100%;
  padding-top: 100px;
}

.photoalbums-card {
  position: relative;
  display: block;
  width: 326px;
  height: 326px;
  overflow: hidden;
  border: 4px solid var(--black-100);
  color: var(--white-100);
  text-decoration: none;
}

.photoalbums-card img,
.photoalbum-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photoalbums-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.photoalbums-card-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 200px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(15, 15, 15, 0.8) 100%);
  pointer-events: none;
}

.photoalbums-card-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 20px;
  font-family: var(--font-mono);
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.photoalbums-card-period {
  color: rgba(237, 236, 226, 0.5);
  font-size: 16px;
}

.photoalbums-card-title {
  color: var(--white-100);
  font-size: 20px;
}

.photoalbums-card:hover img,
.photoalbums-card:focus-visible img {
  transform: scale(1.04);
}

.photoalbums-card img,
.photoalbum-photo img {
  transition: transform 0.2s ease;
}

.photoalbum-mosaic {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding-top: 100px;
}

.photoalbum-photo {
  display: block;
  width: var(--photoalbum-photo-width);
  height: 200px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.photoalbum-photo:hover img,
.photoalbum-photo:focus-visible img {
  transform: scale(1.04);
}

.photoalbum-photo:focus-visible,
.photoalbums-card:focus-visible {
  outline: 2px solid var(--white-100);
  outline-offset: 2px;
}

/* ============================================================
   AUDIOVISUAL ARCHIVE PAGE
   ============================================================ */

.audiovisual-archive-page .site-header {
  background: transparent;
  transition: background-color 0.2s ease;
}

.audiovisual-archive-page .site-header.is-scrolled {
  background: var(--black-100);
}

.av-main {
  padding: 136px 0 0;
}

.av-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 1312px;
  max-width: calc(100vw - 128px);
  margin: 0 auto;
}

.av-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.av-header h1 {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.av-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
}

.av-tabs {
  display: flex;
  gap: 4px;
  width: 480px;
  padding: 4px;
  border-radius: 14px;
  background: #353535;
}

.av-tab {
  flex: 1 1 0;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(237, 236, 226, 0.7);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
}

.av-tab.is-active {
  background: var(--white-100);
  color: var(--black-100);
}

.av-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 304px;
  height: 48px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: #353535;
}

.av-search span {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.av-search span::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 13px;
  height: 13px;
  border: 1.5px solid rgba(237, 236, 226, 0.7);
  border-radius: 50%;
}

.av-search span::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 15px;
  width: 7px;
  height: 1.5px;
  background: rgba(237, 236, 226, 0.7);
  transform: rotate(45deg);
  transform-origin: left center;
}

.av-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.av-search input::placeholder {
  color: rgba(237, 236, 226, 0.7);
  opacity: 1;
}

.av-search input::-webkit-search-cancel-button {
  display: none;
}

.av-grid {
  display: grid;
  grid-template-columns: repeat(4, 310px);
  gap: 48px 24px;
  width: 100%;
}

.av-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 310px;
  min-height: 315px;
  cursor: pointer;
}

.av-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 304 / 172;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
}

.av-thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.av-card:hover .av-thumb > img,
.av-card:focus-within .av-thumb > img {
  opacity: 0.86;
  transform: scale(1.03);
}

.av-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(237, 236, 226, 0.85);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.av-play::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 17px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid var(--black-100);
}

.av-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.av-source,
.av-title {
  margin: 0;
  width: 100%;
  letter-spacing: -0.02em;
}

.av-source {
  color: rgba(237, 236, 226, 0.5);
  font-size: 14px;
  line-height: 20px;
}

.av-title {
  color: var(--white-100);
  font-size: 16px;
  line-height: 1.5;
}

.av-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 0;
  color: #d2b23d;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.av-link svg {
  flex: 0 0 24px;
}

.av-divider {
  padding-top: 200px;
}

.album-detail-page .site-header {
  background: transparent;
  transition: background-color 0.2s ease;
}

.album-detail-page .site-header.is-scrolled {
  background: var(--black-100);
}

.album-main {
  padding-bottom: 100px;
}

.album-layout {
  display: flex;
  flex-direction: column;
  gap: 100px;
  width: 100%;
  padding: 80px 16px 0;
}

.album-hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.album-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}

.album-title-row {
  display: none;
}

.album-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.album-cover-wrap {
  width: 228px;
  height: 342px;
  flex: none;
}

.album-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-mobile-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
}

.album-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-100);
}

.album-year {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(237, 236, 226, 0.4);
}

.album-about {
  display: none;
}

.album-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-100);
}

.album-photos {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.album-photo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
}

.album-photo-card {
  display: block;
  flex: none;
  width: var(--album-photo-w-mobile);
  height: 88px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

.album-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.album-photo-card:hover img,
.album-photo-card:focus-visible img {
  opacity: 0.82;
  transform: scale(1.025);
}

@media (max-width: 767px) {
  .av-main {
    padding-top: 88px;
  }

  .av-layout {
    max-width: calc(100vw - 32px);
    gap: 24px;
  }

  .av-header h1 {
    font-size: 56px;
  }

  .av-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 0 8px;
  }

  .av-tabs,
  .av-search {
    width: 100%;
  }

  .av-tab {
    font-size: 11px;
  }

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

  .av-card {
    width: 100%;
    min-height: 0;
  }

  .av-source {
    font-size: 12px;
    line-height: 18px;
  }

  .av-title,
  .av-link {
    font-size: 13px;
  }

  .av-play {
    width: 40px;
    height: 40px;
  }

  .av-divider {
    padding-top: 96px;
  }

  .photoalbums-main,
  .photoalbum-main {
    padding: 88px 0 96px;
  }

  .photoalbums-layout,
  .photoalbum-layout {
    max-width: calc(100vw - 32px);
  }

  .photoalbums-header h1,
  .photoalbum-header h1 {
    font-size: 56px;
  }

  .photoalbums-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 56px;
  }

  .photoalbums-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .photoalbums-card-text {
    padding: 16px 12px;
  }

  .photoalbums-card-period {
    font-size: 12px;
  }

  .photoalbums-card-title {
    font-size: 14px;
  }

  .photoalbum-mosaic {
    justify-content: flex-start;
    gap: 2px;
    padding-top: 56px;
  }

  .photoalbum-photo {
    width: calc(var(--photoalbum-photo-width) * 0.44);
    height: 88px;
  }

  .album-photo-grid {
    align-self: flex-start;
    width: calc(100vw - 32px);
  }

  .album-photo-card {
    order: var(--album-photo-order-mobile);
  }

  .album-detail-page .site-photo-viewer__dialog {
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 96px 42px 32px !important;
  }

  .album-detail-page .site-photo-viewer__close {
    position: fixed !important;
    top: 56px !important;
    right: 18px !important;
    width: 48px !important;
    height: 48px !important;
    z-index: 1601 !important;
  }

  .album-detail-page .site-photo-viewer__close span {
    width: 32px !important;
    height: 2px !important;
  }

  .album-detail-page .site-photo-viewer__stage-wrap {
    align-items: center !important;
  }

  .album-detail-page .site-photo-viewer__stage {
    width: 228px !important;
    height: 342px !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    margin: 0 auto !important;
  }

  .album-detail-page .site-photo-viewer__thumbs {
    width: 100% !important;
    gap: 8px !important;
    padding: 16px 0 0 !important;
  }

  .album-detail-page .site-photo-viewer__thumbs .film-photo-thumb {
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 56px !important;
  }

  .album-detail-page .site-photo-viewer__meta {
    padding-top: 24px !important;
    gap: 14px !important;
  }

  .album-detail-page .site-photo-viewer__title {
    font-size: 32px !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
  }
}

@media (min-width: 768px) and (max-width: 1439px) {
  .album-detail-page .site-photo-viewer__dialog {
    width: 704px !important;
    max-width: calc(100vw - 64px) !important;
    margin-top: 0 !important;
    padding: 88px 0 48px !important;
  }

  .album-detail-page .site-photo-viewer__close {
    position: fixed !important;
    top: 56px !important;
    right: 32px !important;
    width: 56px !important;
    height: 56px !important;
    z-index: 1601 !important;
  }

  .album-detail-page .site-photo-viewer__close span {
    width: 36px !important;
    height: 2px !important;
  }

  .album-detail-page .site-photo-viewer__stage {
    width: 342px !important;
    height: 513px !important;
    max-height: none !important;
    object-fit: cover !important;
    margin: 0 auto !important;
  }

  .album-detail-page .site-photo-viewer__meta {
    padding-top: 24px !important;
    gap: 14px !important;
  }
}

@media (min-width: 768px) {
  .av-main {
    padding-top: 112px;
  }

  .av-layout {
    max-width: calc(100vw - 64px);
  }

  .av-header h1 {
    font-size: 96px;
  }

  .av-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .av-card {
    width: 100%;
  }

  .av-divider {
    padding-top: 160px;
  }

  .photoalbums-main,
  .photoalbum-main {
    padding: 112px 0 128px;
  }

  .photoalbums-layout,
  .photoalbum-layout {
    max-width: calc(100vw - 64px);
  }

  .photoalbums-header h1,
  .photoalbum-header h1 {
    font-size: 96px;
  }

  .photoalbums-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 72px;
  }

  .photoalbums-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .photoalbum-mosaic {
    justify-content: flex-start;
    padding-top: 72px;
  }

  .photoalbum-photo {
    width: calc(var(--photoalbum-photo-width) * 0.72);
    height: 144px;
  }

  .album-layout {
    gap: 100px;
    padding: 104px 32px 0;
  }

  .album-hero {
    gap: 32px;
  }

  .album-title {
    font-size: 80px;
  }

  .album-photo-grid {
    gap: 2px;
  }

  .album-photo-card {
    width: var(--album-photo-w-tablet);
    height: 118px;
  }
}

@media (min-width: 1440px) {
  .av-main {
    padding-top: 136px;
  }

  .av-layout {
    max-width: calc(100vw - 128px);
  }

  .av-header h1 {
    font-size: 140px;
  }

  .av-grid {
    grid-template-columns: repeat(4, 310px);
  }

  .av-card {
    width: 310px;
  }

  .av-divider {
    padding-top: 200px;
  }

  .photoalbums-main,
  .photoalbum-main {
    padding-top: 136px;
  }

  .photoalbums-layout,
  .photoalbum-layout {
    max-width: calc(100vw - 128px);
  }

  .photoalbums-header h1,
  .photoalbum-header h1 {
    font-size: 140px;
  }

  .photoalbums-grid {
    grid-template-columns: repeat(4, 326px);
    padding-top: 100px;
  }

  .photoalbums-card {
    width: 326px;
    height: 326px;
  }

  .photoalbum-mosaic {
    justify-content: center;
    padding-top: 100px;
  }

  .photoalbum-photo {
    width: var(--photoalbum-photo-width);
    height: 200px;
  }

  .album-detail-page .site-photo-viewer__close {
    position: absolute !important;
    top: 0 !important;
    right: -72px !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 0 !important;
    background: transparent !important;
    z-index: 1601 !important;
  }

  .album-detail-page .site-photo-viewer__close span {
    width: 36px !important;
    height: 2px !important;
    background: #edece2 !important;
  }

  .album-main {
    padding-bottom: 128px;
  }

  .album-layout {
    max-width: 1440px;
    margin: 0 auto;
    gap: 128px;
    padding: 136px 0 0;
  }

  .album-hero {
    gap: 32px;
    padding: 0 64px;
  }

  .album-heading {
    gap: 8px;
  }

  .album-title-row {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  .album-title {
    font-size: 140px;
    white-space: nowrap;
  }

  .album-year {
    font-size: 60px;
  }

  .album-year-desktop {
    padding-top: 8px;
    white-space: nowrap;
  }

  .album-details {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .album-cover-wrap {
    width: 416px;
    height: 624px;
  }

  .album-mobile-title {
    display: none;
  }

  .album-about {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    min-height: 624px;
    text-transform: uppercase;
  }

  .album-section-title {
    font-size: 60px;
  }

  .album-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .album-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }

  .album-meta-label {
    flex: 0 0 160px;
    color: rgba(237, 236, 226, 0.5);
  }

  .album-meta-value {
    flex: 1 1 auto;
    color: var(--white-100);
  }

  .album-photos {
    gap: 32px;
  }

  .album-photos .album-section-title {
    max-width: 800px;
    padding: 0 64px;
  }

  .album-photo-grid {
    gap: 4px;
    padding: 0 64px;
  }

  .album-photo-card {
    width: var(--album-photo-w-desktop);
    height: 200px;
  }
}

/* ============================================================
   EXHIBITION DETAIL PAGE
   ============================================================ */

.exhibition-detail-page .site-header {
  background: transparent;
  transition: background-color 0.2s ease;
}

.exhibition-detail-page .site-header.is-scrolled {
  background: var(--black-100);
}

.exhibition-main {
  padding-bottom: 100px;
}

.exhibition-layout {
  display: flex;
  flex-direction: column;
  gap: 100px;
  width: 100%;
  padding: 80px 16px 0;
}

.exhibition-hero,
.exhibition-heading,
.exhibition-content,
.exhibition-widget,
.exhibition-about {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.exhibition-hero {
  gap: 32px;
}

.exhibition-heading {
  align-items: flex-start;
  gap: 0;
}

.exhibition-title-row {
  display: none;
}

.exhibition-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.exhibition-cover-wrap {
  width: 228px;
  height: 342px;
  flex: none;
}

.exhibition-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exhibition-mobile-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
}

.exhibition-title,
.exhibition-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-100);
}

.exhibition-title {
  font-size: 60px;
}

.exhibition-year {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(237, 236, 226, 0.4);
}

.exhibition-about-desktop {
  display: none;
}

.exhibition-content-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.exhibition-content {
  gap: 100px;
}

.exhibition-widget,
.exhibition-about-mobile {
  gap: 32px;
}

.exhibition-section-title {
  font-size: 48px;
}

.exhibition-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  text-transform: uppercase;
}

.exhibition-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.exhibition-meta-label {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: rgba(237, 236, 226, 0.5);
}

.exhibition-meta-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--white-100);
}

.exhibition-description-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exhibition-description-text:not(.is-expanded) p:nth-child(n+2) {
  display: none;
}

.exhibition-description-text p {
  margin: 0;
  max-width: 800px;
  color: rgba(237, 236, 226, 0.8);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.04em;
}

.exhibition-expand-link {
  display: inline-flex;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d2b23d;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-transform: uppercase;
  cursor: pointer;
}

.exhibition-expand-link:hover,
.exhibition-expand-link:focus-visible {
  color: var(--white-100);
}

.exhibition-albums {
  align-items: flex-start;
}

.exhibition-album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  width: calc(100vw - 32px);
}

.exhibition-album-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 4px solid #0f0f0f;
  border-radius: 0;
  background: transparent;
  color: var(--white-100);
  text-align: left;
  cursor: pointer;
}

.exhibition-album-card img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.exhibition-album-card:hover img,
.exhibition-album-card:focus-visible img {
  opacity: 0.9;
  transform: scale(1.025);
}

.exhibition-album-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0) 36%, rgba(15, 15, 15, 0.86) 100%);
  pointer-events: none;
}

.exhibition-album-text {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  pointer-events: none;
}

.exhibition-album-count {
  display: none;
  color: rgba(237, 236, 226, 0.7);
  font-size: 14px;
}

.exhibition-album-title {
  font-size: 14px;
}

.exhibition-more-button {
  margin-top: 0;
}

.exhibition-sidebar {
  display: none;
}

@media (min-width: 768px) {
  .exhibition-layout {
    gap: 100px;
    padding: 104px 32px 0;
  }

  .exhibition-title {
    font-size: 80px;
  }

  .exhibition-content {
    gap: 100px;
    width: 100%;
  }

  .exhibition-widget,
  .exhibition-about-mobile {
    gap: 32px;
    width: 100%;
    max-width: none;
  }

  .exhibition-description-text,
  .exhibition-description-text p {
    width: 100%;
    max-width: none;
  }

  .exhibition-meta {
    gap: 8px;
  }

  .exhibition-meta-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  .exhibition-meta-label {
    flex: 0 0 160px;
  }

  .exhibition-meta-value {
    flex: 1 1 auto;
  }

  .exhibition-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: 100%;
  }

  .exhibition-album-card:nth-child(n+4) {
    display: none;
  }

  .exhibition-album-count {
    display: block;
  }

  .exhibition-album-title {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .exhibition-detail-page .site-photo-viewer__close {
    position: fixed !important;
    top: 88px !important;
    right: 18px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 0 !important;
    background: transparent !important;
    z-index: 1601 !important;
    pointer-events: auto !important;
  }

  .exhibition-detail-page .site-photo-viewer__close span {
    width: 32px !important;
    height: 2px !important;
    background: #edece2 !important;
  }

  .exhibition-detail-page .site-photo-viewer__stage {
    width: 100% !important;
    max-width: 100% !important;
    height: 300px !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 72px auto 0 !important;
  }
}

@media (min-width: 1440px) {
  .exhibition-detail-page .site-photo-viewer__close {
    position: absolute !important;
    top: 0 !important;
    right: -72px !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 0 !important;
    background: transparent !important;
    z-index: 1601 !important;
  }

  .exhibition-detail-page .site-photo-viewer__close span {
    width: 36px !important;
    height: 2px !important;
    background: #edece2 !important;
  }

  .exhibition-main {
    padding-bottom: 128px;
  }

  .exhibition-layout {
    max-width: 1440px;
    margin: 0 auto;
    gap: 128px;
    padding: 136px 0 0;
  }

  .exhibition-hero {
    gap: 32px;
    padding: 0 64px;
  }

  .exhibition-heading {
    gap: 8px;
  }

  .exhibition-title-row {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  .exhibition-title {
    font-size: 140px;
    white-space: nowrap;
  }

  .exhibition-year {
    font-size: 60px;
  }

  .exhibition-year-desktop {
    padding-top: 8px;
    white-space: nowrap;
  }

  .exhibition-details {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .exhibition-cover-wrap {
    width: 416px;
    height: 624px;
  }

  .exhibition-mobile-title,
  .exhibition-about-mobile {
    display: none;
  }

  .exhibition-about-desktop {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 24px;
    min-height: 624px;
    text-transform: uppercase;
  }

  .exhibition-section-title {
    font-size: 60px;
  }

  .exhibition-content-wrap {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
    padding: 0 64px;
  }

  .exhibition-content {
    flex: 0 0 976px;
    gap: 128px;
    width: 976px;
  }

  .exhibition-widget {
    gap: 32px;
    max-width: 800px;
  }

  .exhibition-album-grid {
    grid-template-columns: repeat(4, 197px);
    gap: 4px;
    width: 800px;
  }

  .exhibition-album-card:nth-child(n+4) {
    display: block;
  }

  .exhibition-album-text {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .exhibition-album-title {
    font-size: 16px;
  }

  .exhibition-sidebar {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-start;
  }
}

/* -- Pedagogy catalog page (pedagogy.php) ---------------------- */
.pedagogy-catalog-page .pedagogy-layout {
  width: 1312px;
  max-width: calc(100vw - 128px);
  gap: 24px;
  padding: 136px 0 0;
}

.pedagogy-heading-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}

.pedagogy-title-row {
  flex: 1 1 auto;
  min-width: 0;
}

.pedagogy-heading-copy {
  width: 640px;
  margin: 0;
  padding: 32px 0;
  color: var(--white-70);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.pedagogy-tabs,
.pedagogy-search {
  width: 304px;
  min-width: 304px;
}

.pedagogy-tabs .films-tab {
  flex: 1 1 0;
  min-height: 40px;
  padding: 10px 12px;
}

.pedagogy-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pedagogy-table[hidden] {
  display: none;
}

.pedagogy-section-title {
  margin: 0;
  padding-top: 16px;
  color: var(--white-100);
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.pedagogy-catalog-page .texts-table-row {
  grid-template-columns: 480px 320px minmax(0, 1fr);
}

.pedagogy-catalog-page .texts-cell-preview {
  display: none;
}

.pedagogy-data-row.is-featured .texts-title-line > span {
  color: #d2b23d;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.pedagogy-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  padding: 32px 0 0;
}

.pedagogy-notes p {
  margin: 0;
  color: var(--white-70);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

@media (max-width: 1439px) {
  .pedagogy-catalog-page .pedagogy-layout {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    gap: 32px;
    padding: 88px 32px 96px;
  }

  .pedagogy-heading-content {
    flex-direction: column;
    gap: 4px;
  }

  .pedagogy-catalog-page .texts-title {
    font-size: 80px;
    line-height: 1;
  }

  .pedagogy-catalog-page .texts-count {
    font-size: 48px;
    transform: translateY(-2px);
  }

  .pedagogy-heading-copy {
    width: 100%;
    padding: 0;
  }

  .pedagogy-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 0;
  }

  .pedagogy-search {
    order: 1;
  }

  .pedagogy-tabs {
    order: 2;
  }

  .pedagogy-tabs,
  .pedagogy-search {
    width: 100%;
    min-width: 0;
  }

  .pedagogy-section-title {
    padding-top: 16px;
    font-size: 48px;
  }

  .pedagogy-catalog-page .texts-table-head.texts-table-row {
    display: none;
  }

  .pedagogy-catalog-page .texts-table-row {
    display: flex;
    gap: 32px;
    align-items: center;
  }

  .pedagogy-catalog-page .texts-data-row {
    min-height: 140px;
    padding: 32px 0;
  }

  .pedagogy-catalog-page .texts-cell-title {
    flex: 1 1 auto;
    min-width: 0;
  }

  .pedagogy-catalog-page .texts-cell-title .texts-title-line > span {
    white-space: nowrap;
  }

  .pedagogy-catalog-page .texts-mobile-year {
    display: inline;
  }

  .pedagogy-catalog-page .texts-cell-year,
  .pedagogy-catalog-page .texts-cell-publisher {
    display: none;
  }

  .pedagogy-notes {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .pedagogy-catalog-page .pedagogy-main {
    padding-bottom: 64px;
  }

  .pedagogy-catalog-page .pedagogy-layout {
    width: 100%;
    max-width: none;
    padding: 88px 16px 64px;
  }

  .pedagogy-title-row {
    gap: 4px;
  }

  .pedagogy-catalog-page .texts-title {
    font-size: 80px;
  }

  .pedagogy-catalog-page .texts-count {
    font-size: 48px;
  }

  .pedagogy-search,
  .pedagogy-tabs {
    border-radius: 8px;
  }

  .pedagogy-section-title {
    font-size: 40px;
  }

  .pedagogy-catalog-page .texts-data-row {
    min-height: 152px;
    padding: 24px 0;
    gap: 16px;
  }

  .pedagogy-catalog-page .texts-title-line {
    flex-direction: column;
    gap: 0;
  }

  .pedagogy-catalog-page .texts-mobile-year {
    order: -1;
    font-size: 28px;
  }

  .pedagogy-catalog-page .texts-cell-title .texts-title-line > span {
    font-size: 28px;
    white-space: normal;
  }

  .pedagogy-catalog-page .texts-cell-title small {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
  }
}

/* -- Program detail page (program-item.php) -------------------- */
.program-detail-page .program-back-wrap {
  display: block;
  align-self: center;
  width: 640px;
  max-width: 100%;
  margin-bottom: 40px;
}

.program-detail-page .program-layout {
  align-items: center;
  gap: 0;
}

.program-detail-page .program-header {
  width: 100%;
}

.program-detail-page .program-label {
  width: 100%;
}

.program-outline {
  width: 100%;
  margin: 0 0 40px;
  padding: 16px;
  border: 1px solid rgba(237, 236, 226, 0.2);
  color: var(--white-100);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.04em;
}

.program-outline ol {
  margin: 0;
  padding-left: 24px;
}

.program-outline ol ol {
  margin-top: 4px;
  padding-left: 32px;
}

.program-outline li + li,
.program-outline ol ol li + li {
  margin-top: 4px;
}

.program-detail-page .program-body {
  margin-bottom: 0;
}

.program-detail-page .program-note,
.program-detail-page .program-widget,
.program-detail-page .program-comments {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.program-detail-page .program-note {
  gap: 8px;
  margin: 0 0 100px;
}

.program-detail-page .program-widget,
.program-detail-page .program-comments {
  gap: 32px;
  margin: 0 0 100px;
}

.program-subtitle {
  margin: 0;
  color: var(--white-100);
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: -0.02em;
}

.program-note-title {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .program-detail-page .program-layout {
    width: 704px;
    max-width: calc(100vw - 64px);
    margin: 0 auto;
    padding: 88px 0 0;
  }

  .program-detail-page .program-header {
    margin-bottom: 40px;
  }

  .program-outline,
  .program-detail-page .program-body,
  .program-detail-page .program-note,
  .program-detail-page .program-widget,
  .program-detail-page .program-comments {
    width: 640px;
    max-width: 100%;
  }

  .program-outline {
    padding: 24px;
  }

  .program-detail-page .program-note,
  .program-detail-page .program-widget,
  .program-detail-page .program-comments {
    margin-bottom: 100px;
  }
}

@media (min-width: 1440px) {
  .program-detail-page .program-main {
    padding-bottom: 290px;
  }

  .program-detail-page .program-layout {
    width: 864px;
    max-width: none;
    padding: 128px 0 0;
  }

  .program-detail-page .program-title {
    font-size: 100px;
  }

  .program-detail-page .program-note,
  .program-detail-page .program-widget,
  .program-detail-page .program-comments {
    margin-bottom: 128px;
  }

  .program-detail-page .program-comments {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .program-detail-page .program-layout {
    width: 100%;
    max-width: none;
    padding: 80px 16px 0;
  }

  .program-detail-page .program-header {
    margin-bottom: 32px;
  }

  .program-detail-page .program-title {
    font-size: 48px;
  }

  .program-outline {
    padding: 16px;
    margin-bottom: 32px;
  }

  .program-outline ol ol {
    padding-left: 24px;
  }

  .program-detail-page .program-note,
  .program-detail-page .program-widget,
  .program-detail-page .program-comments {
    margin-bottom: 100px;
  }

  .program-detail-page .program-section-title {
    font-size: 48px;
  }
}


/* ====================================================
   EXPANDED SEARCH + FILTER PANEL
   ==================================================== */

/* ---------- Results count ---------- */
.films-results-count {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(237, 236, 226, 0.5);
  margin: 0;
  padding: 0;
}

/* ---------- Date range slider ---------- */
.films-date-slider {
  position: relative;
  height: 24px;
  margin-top: 4px;
  user-select: none;
}

.films-range-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  background: rgba(237, 236, 226, 0.2);
  border-radius: 2px;
  pointer-events: none;
}

.films-range-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(237, 236, 226, 0.7);
  border-radius: 2px;
}

/* Both range inputs overlap the same track */
.films-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
  margin: 0;
  padding: 0;
  z-index: 2;
}

/* WebKit thumb */
.films-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white-100);
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 2px rgba(237, 236, 226, 0.15);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.films-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(237, 236, 226, 0.2);
}

.films-range-input::-webkit-slider-thumb:active {
  transform: scale(1.1);
}

/* Firefox thumb */
.films-range-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: var(--white-100);
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 0 0 2px rgba(237, 236, 226, 0.15);
  transition: transform 0.1s ease;
}

.films-range-input::-moz-range-thumb:hover {
  transform: scale(1.15);
}

/* Remove Firefox track styling */
.films-range-input::-moz-range-track {
  background: transparent;
  height: 0;
}

.films-range-input::-moz-range-progress {
  background: transparent;
}

/* ---------- Chips row (tablet + mobile) ---------- */
.films-sf-chips {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.films-sf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 1024px;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.films-sf-chip:hover {
  background: rgba(255, 255, 255, 0.14);
}

.films-sf-chip.is-active {
  background: var(--white-100);
  color: var(--black-100);
}

.films-sf-chip.is-active svg path {
  stroke: var(--black-100);
}

/* ---------- Filter aside (desktop sidebar) ---------- */
.films-filter-aside {
  display: none;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 120px;
  align-self: start;
}

.films-filter-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.films-filter-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-40);
}

/* ---------- Sort radio options ---------- */
.films-sort-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.films-sort-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.films-sort-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.films-sort-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease, border-width 0.15s ease;
}

.films-sort-option input[type="radio"]:checked {
  border-color: var(--white-100);
  border-width: 6px;
}

.films-sort-option span {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-70);
  transition: color 0.15s ease;
}

.films-sort-option input[type="radio"]:checked ~ span {
  color: var(--white-100);
}

/* ---------- Category pills ---------- */
.films-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.films-cat-pill {
  padding: 8px 16px;
  border: 0;
  border-radius: 1024px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.films-cat-pill.is-active {
  background: var(--white-100);
  color: var(--black-100);
}

.films-cat-pill:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- Date range ---------- */
.films-date-range {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

/* Individual date field: label + text input */
.films-date-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 14px 12px;
  background: rgba(237, 236, 226, 0.08);
  border-radius: 10px;
  transition: background 0.15s ease;
  cursor: text;
}

.films-date-field:focus-within {
  background: rgba(237, 236, 226, 0.12);
}

.films-date-field-label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(237, 236, 226, 0.5);
  pointer-events: none;
  user-select: none;
}

.films-date-field-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 0;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  width: 100%;
}

.films-date-field-input::placeholder {
  color: rgba(237, 236, 226, 0.3);
  text-transform: uppercase;
}

/* ---------- Modal overlay ---------- */
.films-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.films-modal-overlay.is-open {
  display: block;
}

/* ---------- Modal panel ---------- */
.films-modal-panel {
  display: none;
  position: fixed;
  z-index: 901;
  background: #1e1b19;
  flex-direction: column;
}

.films-modal-panel.is-open {
  display: flex;
}

.films-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.films-modal-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white-100);
}

.films-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  color: var(--white-70);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.films-modal-close:hover {
  color: var(--white-100);
  background: rgba(255, 255, 255, 0.08);
}

.films-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.films-modal-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  margin-top: 24px;
  background: var(--white-100);
  color: var(--black-100);
  border: 0;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.films-modal-apply:hover {
  opacity: 0.88;
}

/* ---------- Tablet modals (768px–1200px) ---------- */
@media (min-width: 768px) and (max-width: 1200px) {
  .films-modal-panel {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 375px;
    max-height: 90vh;
    border-radius: 20px;
    padding: 24px;
  }
}

/* ---------- Mobile modals — bottom sheet (<768px) ---------- */
@media (max-width: 767px) {
  .films-modal-panel {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px 20px 0 0;
    padding: 20px 16px 24px;
    max-height: 85vh;
  }
}

/* ---------- Desktop: grid layout when active (≥1201px) ---------- */
@media (min-width: 1201px) {
  .films-layout.is-search-active {
    display: grid;
    grid-template-columns: 1fr 360px;
    column-gap: 88px;
  }

  /* Heading block spans full width */
  .films-layout.is-search-active .films-heading-block {
    grid-column: 1 / -1;
  }

  /* Toolbar in left column, search stretches */
  .films-layout.is-search-active .films-toolbar {
    grid-column: 1;
  }

  .films-layout.is-search-active .films-search {
    flex: 1;
    min-width: 0;
  }

  /* Results count in left column */
  .films-layout.is-search-active .films-results-count {
    grid-column: 1;
  }

  /* All data panels in left column */
  .films-layout.is-search-active [data-panel] {
    grid-column: 1;
  }

  /* Filter aside in right column, spanning toolbar + all panels */
  .films-layout.is-search-active .films-filter-aside {
    display: flex;
    grid-column: 2;
    grid-row: 2 / 999;
  }

  /* Chips never shown on desktop */
  .films-layout.is-search-active .films-sf-chips {
    display: none !important;
  }
}

/* ---------- Tablet: chips row when active (768px–1200px) ---------- */
@media (min-width: 768px) and (max-width: 1200px) {
  .films-layout.is-search-active .films-sf-chips {
    display: flex;
  }

  .films-layout.is-search-active .films-tabs {
    display: none;
  }

  .films-layout.is-search-active .films-toolbar {
    flex-wrap: wrap;
  }

  .films-layout.is-search-active .films-search {
    flex: 1;
    min-width: 0;
  }
}

/* ---------- Mobile: chips row when active (<768px) ---------- */
@media (max-width: 767px) {
  .films-layout.is-search-active .films-sf-chips {
    display: flex;
  }

  .films-layout.is-search-active .films-tabs {
    display: none;
  }

  .films-layout.is-search-active .films-toolbar {
    flex-wrap: wrap;
  }

  .films-layout.is-search-active .films-search {
    flex: 1;
    min-width: 0;
  }
}

/* -- Full chronicle page (chronicle.php) ------------------------ */
.chronicle-page .site-header {
  background: transparent;
  transition: background-color 0.2s ease;
}

.chronicle-page .site-header.is-scrolled {
  background: var(--black-100);
}

.chronicle-main {
  padding: 136px 0 0;
}

.chronicle-layout {
  display: flex;
  flex-direction: column;
  gap: 100px;
  width: 1312px;
  max-width: calc(100vw - 128px);
  margin: 0 auto;
}

.chronicle-heading-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chronicle-title {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.chronicle-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}

.chronicle-entry {
  display: flex;
  align-items: center;
  gap: 100px;
  width: 1090px;
  max-width: 100%;
}

.chronicle-entry--reverse {
  flex-direction: row-reverse;
}

.chronicle-entry-image {
  position: relative;
  display: block;
  flex: 0 0 540px;
  width: 540px;
  height: 480px;
  overflow: hidden;
  border: 0;
  color: inherit;
  text-decoration: none;
  -webkit-mask-image: url("../assets/chronicle-mask.svg");
  mask-image: url("../assets/chronicle-mask.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
}

.chronicle-entry-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.chronicle-entry-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chronicle-entry-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  min-width: 0;
}

.chronicle-entry-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.chronicle-entry-text:hover .chronicle-entry-title,
.chronicle-entry-text:focus-visible .chronicle-entry-title {
  color: var(--white-100);
}

.chronicle-entry-period,
.chronicle-entry-title,
.chronicle-entry-description {
  margin: 0;
}

.chronicle-entry-period {
  color: rgba(237, 236, 226, 0.5);
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.chronicle-entry-title {
  color: var(--white-100);
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.chronicle-entry-description {
  color: var(--white-70);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.04em;
}

.chronicle-entry-link {
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em;
}

.chronicle-divider {
  padding-top: 200px;
}

.chronicle-page .s5-section--news {
  padding-top: 0;
}

/* -- Chronicle period detail page (chronicle-period.php) -------- */
.chronicle-period-main {
  padding: 136px 0 0;
}

.chronicle-period-layout {
  display: flex;
  flex-direction: column;
  gap: 96px;
  width: 1312px;
  max-width: calc(100vw - 128px);
  margin: 0 auto;
}

.chronicle-period-back {
  width: fit-content;
}

.chronicle-period-header {
  display: grid;
  grid-template-columns: 540px minmax(0, 1fr);
  gap: 100px;
  align-items: center;
  width: 1090px;
  max-width: 100%;
  margin: 0 auto;
}

.chronicle-period-media {
  position: relative;
  width: 540px;
  height: 480px;
  overflow: hidden;
  -webkit-mask-image: url("../assets/chronicle-mask.svg");
  mask-image: url("../assets/chronicle-mask.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
}

.chronicle-period-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.chronicle-period-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chronicle-period-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.chronicle-period-heading h1,
.chronicle-period-heading p,
.chronicle-period-kicker {
  margin: 0;
}

.chronicle-period-kicker {
  color: rgba(237, 236, 226, 0.5);
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.chronicle-period-heading h1 {
  color: var(--white-100);
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.chronicle-period-heading p:not(.chronicle-period-kicker) {
  color: var(--white-70);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.04em;
}

.chronicle-period-article {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 640px;
  max-width: 100%;
  margin: 0 auto;
  color: var(--white-70);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: -0.04em;
}

.chronicle-period-article p {
  margin: 0;
}

.chronicle-term {
  position: relative;
  display: inline-block;
  color: var(--white-100);
  border-bottom: 1px dashed rgba(237, 236, 226, 0.7);
  cursor: help;
  outline: none;
}

.chronicle-term::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 20;
  width: 320px;
  padding: 16px;
  background: var(--white-100);
  color: var(--black-100);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  pointer-events: none;
}

.chronicle-term::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  z-index: 21;
  width: 14px;
  height: 14px;
  background: var(--white-100);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px) rotate(45deg);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  pointer-events: none;
}

.chronicle-term:hover::after,
.chronicle-term:hover::before,
.chronicle-term:focus-visible::after,
.chronicle-term:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.chronicle-term:focus-visible {
  outline: 1px solid var(--white-100);
  outline-offset: 3px;
}

.chronicle-term:focus-visible::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.chronicle-period-divider {
  padding-top: 160px;
}

/* -- Chronicle date detail page (chronicle-period.php, node 526:19763) */
.chronicle-date-main {
  padding: 136px 0 0;
}

.chronicle-date-layout {
  display: flex;
  flex-direction: column;
  gap: 100px;
  width: 1312px;
  max-width: calc(100vw - 128px);
  margin: 0 auto;
}

.chronicle-date-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.chronicle-date-heading h1 {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.chronicle-date-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 100px;
  width: 100%;
}

.chronicle-date-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 100px;
  min-width: 0;
  color: var(--white-100);
}

.chronicle-date-year,
.chronicle-date-month,
.chronicle-date-events {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.chronicle-date-year {
  gap: 50px;
}

.chronicle-date-year h2,
.chronicle-date-month h3,
.chronicle-date-event time,
.chronicle-date-event p {
  margin: 0;
}

.chronicle-date-year h2 {
  width: 100%;
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.chronicle-date-month {
  gap: 50px;
}

.chronicle-date-year .chronicle-date-month + .chronicle-date-month {
  margin-top: 100px;
}

.chronicle-date-month h3 {
  width: 100%;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.chronicle-date-events {
  gap: 40px;
}

.chronicle-date-event {
  display: grid;
  grid-template-columns: 100px 528px;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.chronicle-date-event time {
  color: var(--white-100);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.chronicle-date-event p {
  width: 528px;
  max-width: 100%;
  color: var(--white-100);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.04em;
}

.chronicle-date-term {
  position: relative;
  display: inline;
  color: #d2b23d;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: help;
  outline: none;
}

.chronicle-date-tooltip {
  position: fixed;
  left: 599px;
  top: 170px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 300px;
  padding: 16px;
  background: #1e1b19;
  color: var(--white-100);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  pointer-events: none;
}

.chronicle-date-term:hover .chronicle-date-tooltip,
.chronicle-date-term:focus-visible .chronicle-date-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chronicle-date-tooltip-image {
  display: block;
  width: 150px;
  height: 225px;
  overflow: hidden;
  border: 1px solid rgba(237, 236, 226, 0.2);
}

.chronicle-date-tooltip-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chronicle-date-tooltip-title {
  display: block;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.chronicle-date-tooltip-text {
  display: block;
  color: rgba(237, 236, 226, 0.8);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.04em;
  text-transform: none;
}

.chronicle-date-aside {
  position: sticky;
  top: 112px;
  display: flex;
  flex: 0 0 360px;
  flex-direction: column;
  gap: 12px;
  width: 360px;
  align-self: flex-start;
}

.chronicle-date-aside p {
  margin: 0;
  color: var(--white-100);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.chronicle-date-field {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  min-height: 48px;
  margin: 0;
  padding: 14px 12px;
  background: rgba(237, 236, 226, 0.08);
  cursor: text;
}

.chronicle-date-field::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(237, 236, 226, 0.7);
  border-bottom: 1px solid rgba(237, 236, 226, 0.7);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.chronicle-date-select {
  width: 100%;
  min-height: 20px;
  padding: 0 28px 0 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  appearance: none;
  color: rgba(237, 236, 226, 0.5);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

.chronicle-date-select:focus-visible {
  color: var(--white-100);
}

.chronicle-date-select option {
  color: #0f0f0f;
  background: #edece2;
}

.chronicle-date-divider {
  padding-top: 100px;
}

@media (max-width: 1199.98px) {
  .chronicle-main {
    padding-top: 112px;
  }

  .chronicle-layout {
    gap: 72px;
    max-width: calc(100vw - 64px);
  }

  .chronicle-title {
    font-size: 96px;
  }

  .chronicle-entry,
  .chronicle-entry--reverse {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .chronicle-entry-image {
    flex-basis: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 540 / 480;
  }

  .chronicle-entry-title {
    font-size: 72px;
  }

  .chronicle-entry-period {
    font-size: 44px;
  }

  .chronicle-divider {
    padding-top: 128px;
  }

  .chronicle-period-main {
    padding-top: 112px;
  }

  .chronicle-period-layout {
    gap: 72px;
    max-width: calc(100vw - 64px);
  }

  .chronicle-period-header {
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
  }

  .chronicle-period-media {
    width: 100%;
    height: auto;
    aspect-ratio: 540 / 480;
  }

  .chronicle-period-heading h1 {
    font-size: 72px;
  }

  .chronicle-period-kicker {
    font-size: 44px;
  }

  .chronicle-date-main {
    padding-top: 112px;
  }

  .chronicle-date-layout {
    gap: 72px;
    max-width: calc(100vw - 64px);
  }

  .chronicle-date-heading h1 {
    font-size: 96px;
  }

  .chronicle-date-content {
    flex-direction: column;
    gap: 64px;
  }

  .chronicle-date-event {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .chronicle-date-aside {
    position: static;
    order: -1;
    width: 100%;
    flex-basis: auto;
    align-self: auto;
  }

  .chronicle-date-field {
    width: 100%;
  }

  .chronicle-date-tooltip {
    left: 50%;
    top: 160px;
    transform: translate(-50%, 8px);
  }

  .chronicle-date-term:hover .chronicle-date-tooltip,
  .chronicle-date-term:focus-visible .chronicle-date-tooltip {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 767.98px) {
  .chronicle-main {
    padding-top: 88px;
  }

  .chronicle-layout {
    max-width: calc(100vw - 32px);
    gap: 56px;
  }

  .chronicle-title {
    font-size: 56px;
  }

  .chronicle-timeline {
    gap: 64px;
  }

  .chronicle-entry-title {
    font-size: 48px;
  }

  .chronicle-entry-period {
    font-size: 32px;
  }

  .chronicle-entry-link {
    font-size: 16px;
  }

  .chronicle-divider {
    padding-top: 96px;
  }

  .chronicle-period-main {
    padding-top: 88px;
  }

  .chronicle-period-layout {
    max-width: calc(100vw - 32px);
    gap: 56px;
  }

  .chronicle-period-heading h1 {
    font-size: 48px;
  }

  .chronicle-period-kicker {
    font-size: 32px;
  }

  .chronicle-period-article {
    font-size: 16px;
  }

  .chronicle-term::after {
    left: 0;
    width: min(320px, calc(100vw - 32px));
    transform: translate(0, 8px);
  }

  .chronicle-term::before {
    left: 16px;
    transform: translate(0, 8px) rotate(45deg);
  }

  .chronicle-term:hover::after,
  .chronicle-term:focus-visible::after {
    transform: translate(0, 0);
  }

  .chronicle-term:hover::before,
  .chronicle-term:focus-visible::before {
    transform: translate(0, 0) rotate(45deg);
  }

  .chronicle-date-main {
    padding-top: 88px;
  }

  .chronicle-date-layout {
    max-width: calc(100vw - 32px);
    gap: 56px;
  }

  .chronicle-date-content {
    gap: 48px;
  }

  .chronicle-date-aside {
    gap: 10px;
  }

  .chronicle-date-field {
    min-height: 44px;
    padding: 12px;
  }

  .chronicle-date-heading h1 {
    font-size: 56px;
  }

  .chronicle-date-year h2 {
    font-size: 64px;
  }

  .chronicle-date-month h3 {
    font-size: 48px;
  }

  .chronicle-date-event {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .chronicle-date-event time {
    font-size: 32px;
  }

  .chronicle-date-event p {
    width: auto;
  }

  .chronicle-date-tooltip {
    left: 16px;
    right: 16px;
    top: 96px;
    width: auto;
    max-height: calc(100vh - 128px);
    overflow: auto;
    transform: translateY(8px);
  }

  .chronicle-date-term:hover .chronicle-date-tooltip,
  .chronicle-date-term:focus-visible .chronicle-date-tooltip {
    transform: translateY(0);
  }
}
