/* 알토랩 아카이브. 바탕·글자·상단 바·바닥은 /blog/blog.css 를 그대로 쓰고, 여기는 아카이브 목록과 화면 크게 보기만 둔다.
   블루(--glow)는 쓰지 않는다(마크 가로대와 포커스 테두리는 blog.css 몫). 「종료」 표시는 회색 테두리 글자로만 한다. */

/* 블로그 목록(.index > *)은 본문 폭(--measure)이지만 아카이브는 포스터·화면을 넓게 보여 주려고 폭을 넓힌다 */
.archive .index > .index-head,
.archive .index > #arc {
  max-width: 64rem;
}
.archive .index-head p {
  max-width: 40rem;
}

.arc-list {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
}
.arc-item {
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--line);
}

/* 포스터 + 글 */
.arc-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
.arc-cover {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
}
.arc-cover img,
.arc-cover video {
  width: 100%;
  height: auto;
}
.arc-cover video {
  aspect-ratio: 2 / 1;
  background: #000;
}
.arc-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(12, 12, 13, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.arc-play:hover {
  background: rgba(30, 30, 33, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
}
.arc-play svg {
  width: 18px;
  height: 18px;
}

.arc-text {
  display: grid;
  align-content: start;
  gap: 10px;
}
.arc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.arc-ended {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.arc-live {
  border-color: rgba(120, 200, 150, 0.45);
  color: #9fdcb4;
}
.arc-facts a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.arc-item h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.arc-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.arc-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  margin: 8px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}
.arc-facts dt {
  color: var(--ink-3);
}
.arc-facts dd {
  margin: 0;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.arc-note {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-3);
}

/* 종료 전 화면 */
.arc-shots-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 12px;
}
.arc-shots-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}
.arc-shots-head p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.arc-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.arc-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-2);
  cursor: zoom-in;
}
.arc-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.arc-shot:hover img {
  opacity: 0.82;
}

@media (min-width: 720px) {
  .arc-shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (min-width: 960px) {
  .arc-top {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }
  .arc-shots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 크게 보기 */
.lb {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #080809;
  color: var(--ink);
}
.lb::backdrop {
  background: rgba(0, 0, 0, 0.7);
}
.lb[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px var(--gutter);
  padding-top: calc(8px + env(safe-area-inset-top));
}
.lb-count {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.8);
  color: var(--ink);
  cursor: pointer;
}
.lb-btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
}
.lb-btn svg {
  width: 18px;
  height: 18px;
}
.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 var(--gutter);
}
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lb-prev {
  left: 12px;
}
.lb-next {
  right: 12px;
}
.lb-cap {
  margin: 0;
  padding: 12px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  text-align: center;
}
@media (max-width: 720px) {
  .lb-stage {
    padding: 0 8px;
  }
  /* 휴대폰에서는 이전·다음 버튼을 화면 아래 설명 줄 양옆에 둔다 */
  .lb-prev,
  .lb-next {
    position: fixed;
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: none;
  }
  .lb-cap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(68px + env(safe-area-inset-bottom));
    padding: 8px 68px calc(10px + env(safe-area-inset-bottom));
  }
}
