.detail-back:hover {
  color: var(--ink);
}

.detail > section {
  min-width: 0;
  padding-top: 4px;
}

.sub:empty {
  display: none;
}

.copy h2:first-child {
  margin-top: 0;
}

.copy p {
  margin: 0;
}

.copy ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.copy li + li {
  margin-top: 6px;
}

/* 작품 정보 칸(grid)에는 위 목록 간격을 주지 않습니다 — 같은 줄의 칸 높이가 어긋납니다. */
.copy .fact-item + .fact-item {
  margin-top: 0;
}

#booking-block h2 {
  margin-top: 0;
}

.official-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--seed-radius-r2);
  background: var(--ink);
  color: #fff;
  font-weight: var(--seed-font-weight-bold);
}

.copy .credit:empty {
  display: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ff8290;
  outline-offset: 3px;
}

#booking-block h2 {
  margin-bottom: 14px;
}

/* ===== 콘텐츠 상세 정보 밀도 개선 ===== */
.site-header + main.wrap#main {
  padding-top: 30px;
  padding-bottom: 64px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: var(--seed-font-weight-bold);
  line-height: 1.4;
  margin-bottom: 14px;
  font-size: 12px;
}

.detail {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: 34px;
}

.ey {
  display: block;
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: var(--seed-font-weight-bold);
  line-height: 1.4;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 1.3px;
}

h1 {
  margin: 0;
  overflow-wrap: anywhere;
  max-width: 760px;
  font-size: clamp(30px, 2.6vw, 39px);
  line-height: 1.19;
  letter-spacing: -1.6px;
}

.sub {
  margin: 18px 0 0;
  max-width: 760px;
  color: #465364;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  margin: 22px 0 0;
  gap: 6px;
  margin-top: 13px;
}

/* 상세 메타 칩은 모든 콘텐츠 타입에서 같은 컴포넌트를 사용합니다. */

.meta > span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4f5c6d;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 6px 9px;
  font-size: 11px;
}

.copy h2 {
  line-height: 1.4;
  letter-spacing: -0.4px;
  margin: 22px 0 8px;
  font-size: 17px;
}

.copy p,
.copy li {
  color: #5d6979;
  font-size: 13.5px;
  line-height: 1.65;
}

/* 애니 줄거리 원문은 문단이 나뉘어 옵니다. 그 줄바꿈을 살립니다. */

#synopsis {
  white-space: pre-line;
  max-width: 72ch;
}

/*
 * 모바일에서 줄거리가 5줄을 넘으면 접어 두고 "더보기"를 답니다.
 * 넘는지는 스크립트가 실제 높이를 재서 판단합니다(.is-clampable).
 */
.synopsis-more {
  display: none;
}

@media (max-width: 650px) {
  #synopsis.is-clampable.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
  }
  .synopsis-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0 0;
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }
  .synopsis-more[hidden] {
    display: none;
  }
  .synopsis-more::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg);
  }
  .synopsis-more[aria-expanded="true"]::after {
    margin-top: 3px;
    transform: rotate(-135deg);
  }
}

.fact-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}

.fact-value {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#booking-block:not(:empty),
#official-action:not(:empty) {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

#booking-block:not(:empty) {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
}

.watch-links {
  display: flex;
  flex-wrap: wrap;
  margin: 12px 0 0;
  gap: 7px;
  margin-top: 9px;
}

.watch-links > a,
.official-link {
  min-height: 40px;
  padding-left: 13px;
  padding-right: 13px;
  font-size: 12px;
}

.copy .credit {
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.6;
  margin-top: 20px;
  padding-top: 12px;
  font-size: 10.5px;
}

/* 상세 화면: 포스터의 존재감과 본문 가독성을 함께 유지합니다. */
.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(27, 34, 48, 0.11);
  border: 1px solid rgba(23, 32, 45, 0.08);
}

.copy {
  border: 1px solid #e6eaf0;
  background: #fff;
  margin-top: 20px;
  padding: 22px 24px;
  border-radius: 14px;
  border-color: #e3e7ee;
  box-shadow: 0 12px 34px rgba(23, 32, 45, 0.045);
}

.fact-item {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
}

/* 작품 정보는 안쪽 카드 대신 같은 높이의 정보 행으로 표현합니다. */
.copy ul.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  grid-auto-rows: 1fr;
  column-gap: 22px;
  row-gap: 0;
  border-top: 1px solid #e6eaf0;
}

.copy .fact-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid #e6eaf0;
  border-radius: 0;
  background: transparent;
}

/* 정보 행의 마지막 밑줄이 다음 섹션 구분선과 겹쳐 보이지 않게 합니다. */
#points.fact-grid:not(:empty) + #booking-block:not(:empty),
#points.fact-grid:not(:empty)
  + #booking-block:empty
  + #official-action:not(:empty) {
  border-top: 0;
}

/* 출처 줄도 정보 행 바로 뒤에 오면 마지막 밑줄 하나만 남깁니다. */
#points.fact-grid:not(:empty)
  + #booking-block:empty
  + #official-action:empty
  + .credit {
  border-top: 0;
  margin-top: 0;
}
@media (max-width: 650px) {
  #booking-block h2 {
    margin-bottom: 12px;
  }
  .meta span {
    padding: 6px 9px;
    font-size: 11px;
  }
  .copy ul {
    margin-top: 8px;
    padding-left: 18px;
  }
  .site-header + main.wrap#main {
    padding-top: 14px;
    padding-bottom: 42px;
  }

  .detail-back {
    margin-bottom: 11px;
  }

  .detail > section {
    padding-top: 0;
    display: contents;
  }

  .ey,
  h1,
  .sub,
  .meta {
    grid-column: 2;
  }

  .meta {
    align-items: flex-start;
    grid-row: 4;
    align-self: end;
    gap: 4px;
    margin-top: 7px;
  }

  #booking-block:not(:empty),
  #official-action:not(:empty) {
    margin-top: 17px;
    padding-top: 14px;
  }

  .watch-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .watch-links > a {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }
  .detail {
    display: grid;
    row-gap: 0;
    align-items: start;
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 16px;
  }
  .detail-poster {
    grid-column: 1;
    grid-row: 1 / 5;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(27, 34, 48, 0.1);
    width: 104px;
  }
  .ey {
    grid-row: 1;
    align-self: start;
    margin: 1px 0 5px;
    font-size: 10.5px;
  }
  h1 {
    grid-row: 2;
    line-height: 1.2;
    letter-spacing: -0.9px;
    font-size: clamp(22px, 6.1vw, 27px);
  }
  .sub {
    grid-row: 3;
    margin-top: 6px;
    line-height: 1.45;
    font-size: 13px;
  }
  .meta > span {
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
    font-size: 11px;
    padding: 5px 8px;
  }
  .copy {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: 19px;
    padding: 19px 17px;
    border-radius: 13px;
  }
  .copy h2 {
    margin-bottom: 6px;
    font-size: 16px;
    margin-top: 21px;
  }
  .copy p,
  .copy li {
    font-size: 14px;
    line-height: 1.65;
  }
  .watch-links > a,
  .official-link {
    min-height: 44px;
    font-size: 13px;
  }
  .copy .credit {
    margin-top: 16px;
    padding-top: 10px;
    font-size: 11px;
  }
  .fact-item {
    border-radius: 8px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    min-height: 48px;
    padding: 9px 12px;
  }
  .fact-label {
    margin: 0;
    font-size: 12.5px;
  }
  .fact-value {
    line-height: 1.4;
    font-size: 14.5px;
  }
  /* 모바일도 두 칸: 항목 이름 위, 값 아래. */
  .copy ul.fact-grid {
    margin-top: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row dense;
    grid-auto-rows: auto;
    column-gap: 16px;
  }
  .copy .fact-item--wide {
    grid-column: 1 / -1;
  }
  .copy .fact-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 56px;
    padding: 9px 2px;
  }
  .copy .fact-label {
    margin: 0 0 3px;
  }
}
@media (max-width: 380px) {
  .watch-links {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  .detail {
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 12px;
  }
  .detail-poster {
    width: 88px;
  }
}

/*
 * 제휴 배너(온디스크·케이디스크 무작위).
 * 사이트 카드와 섞여 보이지 않도록 각 서비스 색과 굵은 글꼴을 쓰고
 * "광고" 표시를 붙입니다. PC 는 포스터 아래에 붙어 따라오고,
 * 모바일은 본문 카드 아래에 가로형으로 놓입니다.
 */
.detail {
  grid-template-rows: auto 1fr;
  row-gap: 0;
}

.detail-poster {
  grid-column: 1;
  grid-row: 1;
}

.detail > section {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.promo {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  position: sticky;
  top: 94px;
  margin-top: 18px;

  /* 온디스크: 밝은 하늘색 판 위에 컬러 로고 */
  --promo-bg:
    radial-gradient(90% 70% at 100% 100%, rgba(21, 131, 233, 0.16) 0%, rgba(21, 131, 233, 0) 70%),
    linear-gradient(165deg, #f5fbff 0%, #e2f1ff 100%);
  --promo-border: #cfe5fa;
  --promo-title: #0f2740;
  --promo-accent: #1583e9;
  --promo-text: #4d6680;
  --promo-cta-bg: #1583e9;
  --promo-cta-ink: #fff;
  --promo-ring: rgba(21, 131, 233, 0.2);
  --promo-shadow: 0 10px 26px rgba(21, 99, 170, 0.12);
}

.promo[hidden] {
  display: none;
}

/*
 * 그 밖의 웹하드: 흰 판에 서비스 색(--brand)을 옅게 깔고 강조·버튼에 씁니다.
 * 색은 content-detail.html 의 OTHERS 에서 서비스마다 넣습니다.
 */
.promo--brand {
  --brand: #1583e9;
  --promo-bg:
    radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--brand) 14%, transparent) 0%, transparent 70%),
    linear-gradient(165deg, #fff 0%, color-mix(in srgb, var(--brand) 7%, #fff) 100%);
  --promo-border: color-mix(in srgb, var(--brand) 22%, #fff);
  --promo-title: #17202d;
  --promo-accent: var(--brand);
  --promo-text: #5b6675;
  --promo-cta-bg: var(--brand);
  --promo-cta-ink: #fff;
  --promo-ring: color-mix(in srgb, var(--brand) 22%, transparent);
  --promo-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 12%, transparent);
}

.promo-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  padding: 18px 18px 20px;
  border: 1px solid var(--promo-border);
  border-radius: 8px;
  background: var(--promo-bg);
  color: var(--promo-title);
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  text-decoration: none;
  box-shadow: var(--promo-shadow);
  transition: transform 0.18s ease;
}

/*
 * 광고용 장식 — 사이트 카드에는 없는 무늬.
 *   ::before 오른쪽 아래로 갈수록 짙어지는 점 격자
 *   ::after  오른쪽 위에서 비스듬히 내려오는 옅은 띠
 */
.promo-link::before,
.promo-link::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.promo-link::before {
  right: 0;
  bottom: 0;
  width: 62%;
  height: 70%;
  background-image: radial-gradient(var(--promo-ring) 1.3px, transparent 1.7px);
  background-size: 11px 11px;
  -webkit-mask-image: linear-gradient(315deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(315deg, #000 0%, transparent 72%);
}

.promo-link::after {
  top: -40%;
  right: 14%;
  width: 34px;
  height: 180%;
  background: var(--promo-ring);
  opacity: 0.55;
  transform: rotate(28deg);
}

/* ── 배경 장식 변주 (content-detail.html 의 deco) ── */

/* rings: 오른쪽 아래 겹친 두 원 */
.promo--deco-rings .promo-link::before,
.promo--deco-rings .promo-link::after {
  width: 170px;
  height: 170px;
  top: auto;
  right: -70px;
  bottom: -70px;
  border: 1px solid var(--promo-ring);
  border-radius: 50%;
  background: none;
  opacity: 1;
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.promo--deco-rings .promo-link::after {
  width: 110px;
  height: 110px;
  right: -40px;
  bottom: -40px;
}

/* squares: 비스듬히 겹친 두 네모 테두리 */
.promo--deco-squares .promo-link::before,
.promo--deco-squares .promo-link::after {
  width: 120px;
  height: 120px;
  top: auto;
  right: -34px;
  bottom: -44px;
  border: 1.5px solid var(--promo-ring);
  border-radius: 18px;
  background: none;
  opacity: 1;
  transform: rotate(24deg);
  -webkit-mask-image: none;
  mask-image: none;
}
.promo--deco-squares .promo-link::after {
  width: 70px;
  height: 70px;
  right: 58px;
  bottom: -22px;
  transform: rotate(-12deg);
}

/* blob: 옅게 채운 큰 원 + 작은 원 */
.promo--deco-blob .promo-link::before,
.promo--deco-blob .promo-link::after {
  width: 190px;
  height: 190px;
  top: auto;
  right: -80px;
  bottom: -90px;
  border-radius: 50%;
  background: var(--promo-ring);
  opacity: 0.55;
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.promo--deco-blob .promo-link::after {
  width: 26px;
  height: 26px;
  right: 22px;
  bottom: 118px;
  opacity: 0.7;
}

/* stripes: 오른쪽 아래 모서리의 가는 사선 줄무늬 */
.promo--deco-stripes .promo-link::before {
  width: 70%;
  height: 65%;
  background: repeating-linear-gradient(135deg, var(--promo-ring) 0 2px, transparent 2px 10px);
  -webkit-mask-image: linear-gradient(315deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(315deg, #000 0%, transparent 70%);
}
.promo--deco-stripes .promo-link::after {
  display: none;
}

/* triangle: 오른쪽 아래 옅은 삼각형 두 겹 */
.promo--deco-triangle .promo-link::before,
.promo--deco-triangle .promo-link::after {
  top: auto;
  right: 0;
  bottom: 0;
  width: 150px;
  height: 130px;
  background: var(--promo-ring);
  opacity: 0.45;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.promo--deco-triangle .promo-link::after {
  width: 90px;
  height: 78px;
  opacity: 0.6;
}

.promo-link:hover {
  transform: translateY(-2px);
}

.promo-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/*
 * 로고는 여백을 깎은 파일(assets/logos/<id>.png)입니다.
 * 랭킹 엔진의 logoK(=1/√비율)를 --k 로 넣어, 로고마다 눈에 보이는
 * 면적이 같도록 높이를 정합니다. 넓은 워드마크는 낮게, 네모난 아이콘은 높게.
 */
.promo-logo {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
}

.promo-logo img {
  display: block;
  width: auto;
  height: min(36px, calc(var(--k, 0.55) * 56px));
  max-width: 140px;
  object-fit: contain;
}

.promo-body {
  position: relative;
  display: grid;
  gap: 7px;
}

.promo-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.promo-title em {
  color: var(--promo-accent);
  font-style: normal;
}

.promo-text {
  color: var(--promo-text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.promo-cta {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--promo-cta-bg);
  color: var(--promo-cta-ink);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/*
 * 온디스크·케이디스크(promo--featured): 누르고 싶게.
 *   - 흰 버튼을 폭에 꽉 채우고(모바일은 '바로가기' 글자가 보이는 버튼), 화살표가 살짝 움직입니다.
 * 딱지·밑줄·빛 효과는 쓰지 않습니다. 움직임 줄이기 설정이면 움직이지 않습니다.
 */
.promo--featured .promo-cta {
  align-self: stretch;
  justify-content: center;
  overflow: hidden;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 800;
}

.promo--featured .promo-cta > .promo-arrow {
  animation: promo-nudge 1.6s ease-in-out infinite;
}

/* 버튼 글자: '온디스크 바로가기' 는 한 칸, 화살표 앞은 6px 띄웁니다. */
.promo-cta-name {
  margin-right: 0.28em;
}

.promo-arrow {
  display: inline-flex;
  margin-left: 6px;
  line-height: 0;
}

.promo-arrow svg {
  display: block;
}

.promo--featured .promo-link:hover .promo-cta {
  filter: brightness(1.06);
}

@keyframes promo-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .promo--featured .promo-cta > .promo-arrow {
    animation: none;
  }
}

/* 모바일 전용 문구(titleMobile)는 좁은 화면에서만 보입니다. */
.promo-title-mo {
  display: none;
}

/* 설명은 두 줄 자리를 잡아 두어 배너 높이가 모두 같게 합니다. */
.promo .promo-text {
  min-height: 2.9em;
}

.promo .promo-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.32;
}


@keyframes promo-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .promo--featured .promo-cta > .promo-arrow {
    animation: none;
  }
}

@media (max-width: 650px) {
  .detail {
    grid-template-rows: none;
  }
  .detail > section {
    grid-column: auto;
    grid-row: auto;
  }
  .detail-poster {
    grid-row: 1 / 5;
  }
  .promo {
    grid-column: 1 / -1;
    grid-row: 6;
    position: static;
    margin-top: 14px;
  }
  /* 로고 · 문구 · 버튼을 한 줄로 둡니다. */
  .promo-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 32px;
    grid-template-areas: "logo body cta";
    align-items: center;
    align-content: center;
    column-gap: 12px;
    row-gap: 4px;
    padding: 8px 10px 8px 12px;
    border-radius: 8px;
  }
  .promo-logo {
    grid-area: logo;
  }
  .promo-body {
    grid-area: body;
  }
  .promo-logo {
    height: 28px;
  }
  .promo-logo img {
    height: min(28px, calc(var(--k, 0.55) * 40px));
    max-width: 92px;
  }
  .promo-body {
    gap: 3px;
  }
  .promo-title {
    font-size: 15px;
  }
  .promo-title br {
    display: none;
  }
  .promo-text {
    font-size: 11.5px;
  }
  /* 모바일: 제목 최대 두 줄, 설명 한 줄, 배너 높이는 모두 같게. */
  .promo .promo-title {
    font-size: 14.5px;
  }
  .promo-title-pc {
    display: none;
  }
  .promo-title-mo {
    display: inline;
  }
  /* 설명이 잘려 "…"로 끝나지 않게, 긴 설명은 모바일에서 빼고 제목(두 줄까지)만 둡니다. */
  .promo .promo-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    min-height: 0;
  }
  .promo .promo-text {
    display: none;
  }
  .promo-link {
    min-height: 66px;
  }
  .promo-cta,
  .promo--featured .promo-cta {
    grid-area: cta;
    justify-self: center;
    align-self: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    justify-content: center;
    border-radius: 6px;
    font-size: 0;
  }
  /* 글자는 숨기고 화살표만: 숨긴 글자 몫의 간격·움직임을 없애야 화살표가 정가운데에 옵니다. */
  /*
   * 화살표를 버튼 자신의 배경으로 그립니다. 버튼이 소수점 위치에 놓여도
   * 버튼과 화살표가 같은 픽셀로 맞춰져 늘 정가운데에 옵니다.
   */
  .promo-arrow {
    display: none;
  }
  .promo-cta,
  .promo--featured .promo-cta {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8h9M9 4.5 12.5 8 9 11.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
  }
  .promo-cta,
  .promo--featured .promo-cta {
    gap: 0;
    align-items: center;
  }
  .promo--featured .promo-cta > .promo-arrow {
    animation: none;
  }
  /* 강조 배너: 화살표만이 아니라 '바로가기' 글자가 보이는 흰 버튼 */
  .promo--featured .promo-link {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .promo--featured .promo-cta {
    justify-self: end;
    width: auto;
    height: 28px;
    padding: 0 10px 0 12px;
    gap: 0;
    background-image: none;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
  }
  .promo--featured .promo-cta .promo-arrow {
    display: inline-flex;
    margin-left: 4px;
  }
  /* 모바일에서는 이름을 빼고 '바로가기'만 — 제목 자리를 넉넉히 둡니다. */
  .promo--featured .promo-cta-name {
    display: none;
  }
  .promo--featured .promo-cta .promo-arrow svg {
    width: 12px;
    height: 12px;
  }
}

/*
 * 좁은 휴대폰(폭 380px 이하)에서는 로고와 제목을 한 단계 줄여
 * 강조 배너의 '바로가기' 버튼이 있어도 제목이 "…"으로 잘리지 않게 합니다.
 */
@media (max-width: 380px) {
  .promo-link {
    column-gap: 10px;
  }
  .promo-logo {
    height: 24px;
  }
  .promo-logo img {
    height: min(24px, calc(var(--k, 0.55) * 33px));
    max-width: 74px;
  }
  .promo .promo-title {
    font-size: 13.5px;
  }
}

/*
 * 예매: 극장마다 같은 크기의 타일에 공식 컬러 로고와 그 옆 극장 이름을 둡니다.
 * 흰 바탕에 각 극장 브랜드 색 테두리(고스트)이고, 올리면 테두리가 진해지며
 * 브랜드 색이 아주 옅게 깔립니다. 모바일은 로고만 둡니다.
 * 로고가 없는 곳은 이름 글자로 둡니다.
 */
.cinema-tiles {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: 14px;
  max-width: calc(var(--n, 3) * 180px);
  margin-top: 10px;
}

.cinema-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 20px 0 12px;
  --brand: #8a94a3;
  border: 1.5px solid #dfe3ea;
  border-color: color-mix(in srgb, var(--brand) 22%, #fff);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cinema-tile:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 5%, #fff);
  box-shadow: 0 6px 18px rgba(23, 32, 45, 0.07);
  transform: translateY(-1px);
}

.cinema-tile:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.cinema-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 18px;
  object-fit: contain;
}

/* 로고마다 모양이 달라 같은 높이면 크기가 달라 보입니다. 눈으로 맞춘 값입니다. */
/* CGV 는 오른쪽 위 별 때문에 글자가 이미지 아래쪽에 있어, 가운데 맞춤이면
   글자가 약 2px 내려가 보입니다. 글자 중심을 타일 가운데로 올립니다. */
.cinema-logo--cgv {
  height: 22px;
  transform: translateY(-2px);
}

.cinema-logo--megabox {
  height: 16px;
}

/* 롯데시네마는 옆에 이름이 붙으므로 워드마크 대신 심벌(L)만 씁니다. */
.cinema-logo--lotte {
  height: 21px;
}

.cinema-mark {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  height: 26px;
}

.cinema-name {
  flex: 0 0 auto;
  color: var(--muted);
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.cinema-tile:hover .cinema-name {
  color: var(--ink);
}

/* 새 창으로 열린다는 작은 표시 */
.cinema-go {
  position: absolute;
  top: 6px;
  right: 8px;
  color: #a3acb9;
  font-size: 11px;
  line-height: 1;
  transition: color 0.15s ease;
}

.cinema-tile:hover .cinema-go {
  color: var(--brand);
}

@media (max-width: 650px) {
  /* 좁은 화면에서는 이름을 빼고 로고만 세 칸에 둡니다(이름은 스크린리더 라벨에 남음). */
  .cinema-tiles {
    max-width: none;
    gap: 7px;
  }
  .cinema-tile {
    height: 52px;
    padding: 0 10px;
    border-radius: 10px;
  }
  .cinema-mark {
    height: 20px;
  }
  .cinema-name {
    display: none;
  }
  .cinema-go {
    top: 5px;
    right: 7px;
    font-size: 10px;
  }
  .cinema-logo {
    height: 16px;
  }
  .cinema-logo--cgv {
    height: 20px;
  }
  .cinema-logo--megabox {
    height: 15px;
  }
  .cinema-logo--lotte {
    height: 22px;
  }
}
