/* 주말24 — Apple 공식 사이트·스토어 톤 */
:root {
  --bg: #F5F5F7;
  --card: #FFFFFF;
  --text: #1D1D1F;
  --text2: #6E6E73;
  --text3: #86868B;
  --line: #E8E8ED;
  --line2: #D2D2D7;
  --link: #0066CC;
  --btn: #0071E3;
  --orange: #B64400;
  --blue: #0066CC;
  --purple: #8944AB;
  --radius: 18px;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
img { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.dot { margin: 0 6px; color: var(--text3); }
.muted { color: var(--text2); }

/* 상단 내비 */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 245, 247, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-in { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); height: 48px; display: flex; align-items: center; gap: 24px; }
.logo { font-weight: 700; font-size: 19px; color: var(--text); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo b { color: var(--orange); font-weight: 700; }
.nav .logo img { height: 28px; width: auto; display: block; }
/* 안내 페이지 위쪽 줄 오른쪽: 처음으로 + 검색창 */
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.nav-tools .search { width: 280px; min-width: 0; }
.nav-tools .home-btn, .nav-tools .search { height: 34px; }
@media (max-width: 767px) {
  .nav-in { gap: 12px; }
  .nav-tools { flex: 1; }
  .nav-tools .search { width: auto; flex: 1; }
  .nav-tools .home-btn { padding: 0 10px 0 6px; }
}

/* 첫 화면 머리 */
.hero { padding: 36px 0 20px; }
.hero h1 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.hero h1 span { color: var(--text2); }
.hero-s h1 { font-size: 34px; }
/* 첫 화면: 큰 로고 + 제목 */
.hero-home { display: flex; align-items: center; gap: 20px; }
.hero-logo { flex: none; display: flex; align-items: center; color: var(--text); font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.hero-logo:hover { text-decoration: none; }
.hero-logo b { color: var(--orange); font-weight: 800; }
.hero-logo img { height: 60px; width: auto; display: block; }
.hero-text { min-width: 0; }
/* 휴대폰: 로고를 제목 위에, 제목은 한 줄에 들어가게 */
@media (max-width: 767px) {
  .hero-home { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-logo img { height: 44px; }
  .hero-home h1 { font-size: 30px; white-space: nowrap; }
}
.when { margin: 14px 0 0; font-size: 15px; color: var(--text2); }

/* 조작 */
.controls { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 8px; }
.seg { display: flex; background: #E3E3E8; border-radius: 10px; padding: 2px; width: 100%; max-width: 420px; }
/* 모든 선택 묶음(날짜 .seg, 필터·지도 보기 .seg-in): 바깥 37px, 버튼 33px, 글자 14px 로 통일 (지도 보기 버튼 기준) */
.seg button { flex: 1; white-space: nowrap; border: 0; background: transparent; height: 33px; padding: 0; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); font-weight: 600; }
/* 날짜 칸 항목 사이 세로줄 (필터 묶음 .seg-in 과 같은 방식). 고른 버튼 양옆은 지운다 */
.seg button { position: relative; }
.seg button + button::before { content: ''; position: absolute; left: 0; top: 30%; height: 40%; width: 1px; background: #C2C2C8; }
.seg button[aria-pressed="true"]::before, .seg button[aria-pressed="true"] + button::before { display: none; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; border: 0; background: #fff; border-radius: 980px; padding: 7px 15px; font-size: 14px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.pill[aria-pressed="true"] { background: var(--text); color: #fff; box-shadow: none; }
.pill-o[aria-pressed="true"] { background: var(--blue); }
.pill-age[aria-pressed="true"] { background: var(--purple); }
.pill-with[aria-pressed="true"] { background: var(--orange); }
.pill-label { flex: none; align-self: center; font-size: 13px; color: var(--text2); margin-left: 6px; }
/* 지역 · 아이와 함께 · 누구와: 한 줄씩, 이름 칸 너비를 맞춰 버튼이 세로로 줄 서게 */
.pills-line { flex-basis: 100%; }
.pills-line .pill-label { margin-left: 0; min-width: 68px; font-size: 14px; font-weight: 700; color: var(--text); }
/* 버튼 묶음: 날짜 칸(.seg)처럼 회색 바탕 하나에 담는다. 맨 앞 이름(지역·아이와·누구와)은 흰 칸, 고른 버튼은 색으로 */
.seg-in { flex: none; display: flex; background: #E3E3E8; border-radius: 10px; padding: 2px; }
.seg-label { flex: none; display: flex; align-items: center; background: #fff; border-radius: 8px; padding: 0 12px; margin-right: 2px; font-size: 14px; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.seg-in .pill { position: relative; height: 33px; background: transparent; box-shadow: none; border-radius: 8px; padding: 0 13px; font-size: 14px; font-weight: 500; color: var(--text); }
/* 항목 사이 세로줄. 고른 버튼 양옆은 지운다 */
.seg-in .pill + .pill::before { content: ''; position: absolute; left: 0; top: 30%; height: 40%; width: 1px; background: #C2C2C8; }
.seg-in .pill[aria-pressed="true"]::before, .seg-in .pill[aria-pressed="true"] + .pill::before { display: none; }
/* 고른 버튼: 색 칸을 버튼보다 한 둘레 작게 (회색 테를 안쪽에 둘러 80% 정도로) */
.seg-in .pill[aria-pressed="true"] { background: var(--text); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 3px #E3E3E8; border-radius: 9px; }
.seg-in .pill-o[aria-pressed="true"] { background: var(--blue); }
.seg-in .pill-age[aria-pressed="true"] { background: var(--purple); }
.seg-in .pill-with[aria-pressed="true"] { background: var(--orange); }
.controls-br { display: none; }
/* PC: '아이와 · 누구와'를 한 줄로 (검색창은 그다음 줄) */
@media (min-width: 768px) {
  .pills-kids, .pills-with { flex-basis: auto; }
  .pills-with { margin-left: 8px; }
  /* PC: 이름 칸 너비 맞추기를 풀어 '지역 전체'처럼 바로 붙인다 */
  .pills-line .pill-label { min-width: 0; margin-right: 2px; }
  /* 종류 줄 다음, 검색창 앞에서 줄을 바꾼다 */
  .controls-br { display: block; flex-basis: 100%; height: 0; }
}
/* 필터 틀: 좁은 화면에서는 틀이 없는 것처럼 흐른다 */
.filters, .frow { display: contents; }
/* 넓은 PC: 두 줄을 한 틀에 넣고, 둘째 줄(지역·무료·아이와·누구와)을 첫 줄 너비에 맞춰 고르게 벌린다 (약 1000px 필요) */
@media (min-width: 1100px) {
  .filters { display: grid; width: max-content; max-width: 100%; row-gap: 12px; }
  .frow { display: flex; align-items: center; gap: 8px; }
  .frow2 { justify-content: space-between; }
  .frow2 .pills[aria-label="지역"] { display: contents; }
  .filters .controls-br { display: none; }
  .pills-with { margin-left: 0; }
}
/* 휴대폰·태블릿: 목록 상자 안 스크롤을 없애고 '더 보기' 버튼으로 펼친다 (static/app.js 의 cut) */
.more { display: none; }
.cut { display: none !important; }
@media (max-width: 1023px) {
  .home .tlist, .home .secs:not(.secs-one) .list { height: auto; overflow: visible; }
  .more:not([hidden]) { display: block; width: 100%; margin-top: 8px; padding: 13px; border: 0; border-radius: var(--radius); background: var(--card); color: var(--link); font-size: 15px; font-weight: 600; cursor: pointer; }
}
/* 휴대폰: 한 줄에 다 들어가게 (지역 줄의 '무료'까지) */
@media (max-width: 767px) {
  .pills-line { gap: 6px; }
  /* 휴대폰: 글자 크기·높이는 그대로 두고 좌우 여백만 줄여 한 줄에 넣는다 */
  .pills-line .seg-label { padding: 0 8px; }
  .pills-line .pill { padding: 0 8px; }
}
.logo { flex: none; white-space: nowrap; }
/* 검색창도 선택 묶음과 같은 높이(37px)·글자 크기(14px) */
.search { display: flex; align-items: center; gap: 8px; height: 37px; background: #fff; border-radius: 10px; padding: 0 12px; box-shadow: inset 0 0 0 1px var(--line); max-width: 420px; }
.search svg { width: 16px; height: 16px; color: var(--text3); flex: none; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; padding: 0; height: 100%; width: 100%; color: var(--text); }

/* 섹션 */
.sec { margin-top: 32px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.sec-head a { font-size: 14px; white-space: nowrap; }
.empty-sec { margin: 0; background: var(--card); border-radius: var(--radius); padding: 20px; color: var(--text2); font-size: 15px; }
.no-result { text-align: center; color: var(--text2); padding: 40px 0; }

/* 목록 */
.list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.row + .row { border-top: 1px solid var(--line); }
.row.extra, .row[hidden] { display: none; }
.filtering .row.extra:not([hidden]) { display: block; }
/* display 를 지정한 요소(탭 줄 등)도 hidden 이면 숨긴다 */
[hidden] { display: none !important; }

/* 첫 화면 세 묶음(인기·마지막·새로 시작): 휴대폰은 탭으로 하나씩, PC 는 나란히. 칸 안에서만 세로 스크롤 */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 28px calc(var(--gutter) * -1) 12px; padding: 0 var(--gutter); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: transparent; padding: 8px 4px; margin-right: 12px; font-size: 17px; font-weight: 600; color: var(--text3); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.tabs-cat { margin-top: 32px; }
.tabs-cat button { font-size: 15px; }
.tcol .sec-head { margin-bottom: 10px; }
.tcol .cnt { font-size: 14px; color: var(--text2); }
.tlist { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--radius); height: 640px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.trow + .trow { border-top: 1px solid var(--line); }
.trow a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; color: inherit; }
.trow a:hover { text-decoration: none; background: #FAFAFC; }
.trow .poster { width: 72px; height: 96px; flex: none; border-radius: 6px; overflow: hidden; background: var(--line); }
.trow .title { font-size: 15px; -webkit-line-clamp: 1; }
.trow .meta.strong { font-weight: 600; color: var(--orange); }
.trow .strong-popular { color: var(--text); }
.trow .strong-opening { color: var(--blue); }
.tempty { padding: 20px; color: var(--text2); font-size: 14px; }

/* 지도 (static/map.js) */
/* 지도 위 줄: 보기 버튼(필터 묶음과 같은 모양) + 검색창 */
.map-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 10px; }
.map-modes { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.map-modes::-webkit-scrollbar { display: none; }
.map-bar .search { flex: 1 1 260px; max-width: 420px; }
@media (max-width: 767px) {
  .map-bar .search { max-width: none; }
}
.map { height: 320px; border-radius: var(--radius); overflow: hidden; background: #E9E9EE; }
.map-note { margin: 8px 2px 0; font-size: 12px; color: var(--text3); }
.map-failed .map { display: flex; align-items: center; justify-content: center; }
.map-failed .map::after { content: '지도를 불러오지 못했어요.'; color: var(--text2); font-size: 14px; }
/* 지도 영역 위아래 연한 구분선 */
.map-zone { margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.map-zone .map-bar { margin-top: 0; }
/* 지도 위에 뜨는 버튼 (크게 보기 · 닫기) */
.map-wrap { position: relative; }
.map-btn { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 33px; padding: 0 12px; border: 0; border-radius: 9px; background: #fff; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.map-btn svg { width: 16px; height: 16px; flex: none; }
.map-expand { top: 10px; left: 10px; }
.map-close { top: 12px; right: 12px; width: 37px; height: 37px; padding: 0; justify-content: center; display: none; }
.map-full-bar { display: none; }
/* 크게 보기: 화면 가득 */
.mapbox.full { position: fixed; inset: 0; z-index: 1000; margin: 0; background: var(--bg); }
.mapbox.full .map-wrap, .mapbox.full .map { height: 100%; border-radius: 0; }
.mapbox.full .map-note, .mapbox.full .map-expand { display: none; }
.mapbox.full .map-close { display: inline-flex; }
.mapbox.full .map-full-bar { display: flex; position: absolute; z-index: 3; top: 12px; left: 12px; right: 60px; overflow-x: auto; scrollbar-width: none; }
.mapbox.full .map-full-bar .seg-in { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
html.no-scroll, html.no-scroll body { overflow: hidden; }
/* 처음으로: 걸러진 결과를 볼 때 검색창 왼쪽 (app.js 가 hidden 을 푼다) */
.home-btn { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 37px; padding: 0 12px 0 8px; border-radius: 10px; background: #fff; color: var(--text); font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.home-btn:hover { text-decoration: none; background: #FAFAFC; }
.home-btn svg { width: 16px; height: 16px; }
/* 카테고리 페이지: 처음으로 + 검색창 한 줄 */
.search-row { display: flex; gap: 10px; align-items: center; }
.search-row .search { flex: 1; min-width: 0; }
@media (min-width: 768px) { .search-row { flex: 0 1 520px; } }
/* 걸러진 결과(필터·검색·종류 하나)에서는 '○개 모두 보기'를 숨긴다 (고른 조건의 나머지로 오해하지 않게) */
.home.filtering .sec-head a, .home.one-cat .sec-head a { display: none; }
.mp { position: relative; display: block; width: 40px; height: 54px; padding: 0; border: 2px solid #fff; border-radius: 7px; overflow: visible; background: var(--line); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25); cursor: pointer; }
.mp img, .mp .mp-ph { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.mp .mp-ph { display: flex; align-items: center; justify-content: center; background: var(--text); color: #fff; font-size: 12px; font-weight: 700; }
.mp-n { position: absolute; top: -8px; right: -10px; min-width: 22px; padding: 2px 6px; border-radius: 980px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.4; }
.mb { position: relative; width: 260px; max-height: 300px; overflow-y: auto; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.mb-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 20px; color: var(--text3); cursor: pointer; }
.mb-row { display: flex; gap: 10px; padding: 8px; border-radius: 10px; color: inherit; }
.mb-row:hover { background: var(--bg); text-decoration: none; }
.mb-thumb { width: 36px; height: 48px; flex: none; border-radius: 5px; overflow: hidden; background: var(--line); }
.mb-thumb img, .mb-thumb .mp-ph { width: 100%; height: 100%; object-fit: cover; }
.mb-text { min-width: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.mb-text b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 14px; }
.mb-text small { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-more { margin: 4px 8px; font-size: 12px; color: var(--text2); }
@media (min-width: 1024px) { .map { height: 440px; } .mapbox.full .map { height: 100%; } }

/* 카테고리 상자: 정해진 개수(PC_LIMIT)까지 담고 상자 안에서 스크롤. 휴대폰은 탭으로 하나씩 */
/* 휴대폰은 다섯 줄 남짓(다음 줄이 살짝 보여 스크롤된다는 걸 알 수 있게) */
/* 상자 안 스크롤은 PC 만 (휴대폰은 '더 보기'). 높이는 아래 1024px 이상 규칙에서 */
@media (min-width: 1024px) {
  .home .secs:not(.secs-one) .list { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
.home .secs:not(.secs-one) .row.extra:not(.extra-pc):not([hidden]) { display: block; }
@media (max-width: 1023px) {
  .trio .tcol:not(.on) { display: none; }
  .trio .tcol .sec-head { display: none; }
  /* 필터·검색 중이 아니면 고른 카테고리 하나만 */
  .home:not(.filtering) .secs:not(.secs-one) > .sec:not(.on) { display: none; }
  .home:not(.filtering) .secs:not(.secs-one) > .sec { margin-top: 0; }
  /* 카테고리 탭이 종류 버튼을 대신한다 */
  .home .pills[aria-label="종류"] { display: none; }
}
.row a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: inherit; }
.row a:hover { text-decoration: none; background: #FAFAFC; }
.row .poster { width: 60px; height: 80px; flex: none; border-radius: 8px; overflow: hidden; background: var(--line); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
/* 첫 화면 카테고리 상자: 포스터를 위 세 묶음과 같은 크기로, 휴대폰에서 다섯 줄이 보이게 */
.home .secs:not(.secs-one) .row .poster { width: 72px; height: 96px; }
.rb { min-width: 0; flex: 1; }
.rt { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; line-height: 1.3; }
.type { color: var(--text2); font-weight: 500; }
.bd { font-weight: 600; }
.bd-orange { color: var(--orange); }
.bd-blue { color: var(--blue); }
.bd-purple { color: var(--purple); }
.bd-gray { color: var(--text2); }
.bd-dark { color: var(--text); }
.title { margin-top: 3px; font-size: 16px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { margin-top: 3px; font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta .dot { margin: 0 4px; }
.sub { margin-top: 4px; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-k { color: var(--orange); font-weight: 600; margin-right: 4px; }
.chev { width: 8px; height: 14px; color: var(--line2); flex: none; }

/* 이번 주가 마지막 */
.cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.card { flex: none; width: 168px; scroll-snap-align: start; background: var(--card); border-radius: var(--radius); overflow: hidden; color: inherit; }
.card:hover { text-decoration: none; }
.card .poster { width: 100%; aspect-ratio: 3 / 4; background: var(--line); }
.cb { padding: 12px 14px 14px; }
.card .meta.strong { color: var(--orange); font-weight: 600; }
.card-popular .meta.strong { color: var(--text); }
.card-opening .meta.strong { color: var(--blue); }
.sec-row { margin-top: 28px; }
.sec-row + .sec-row { margin-top: 24px; }

/* 임시 포스터 */
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 6px; overflow: hidden; }
.ph-tag { font-size: 7px; font-weight: 700; letter-spacing: 0.12em; opacity: 0.8; }
.ph-title { font-size: 10px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .ph, .ph-big { padding: 14px; }
.card .ph-tag, .ph-big .ph-tag { font-size: 10px; }
.card .ph-title { font-size: 17px; }
.ph-big .ph-title { font-size: 26px; -webkit-line-clamp: 6; }

/* 안내 페이지 */
.detail { padding-top: 28px; padding-bottom: 20px; }
.d-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "side" "body"; gap: 16px; }
.d-head { grid-area: head; }
.d-head h1 { margin: 6px 0 0; font-size: 32px; line-height: 1.15; letter-spacing: -0.03em; }
.d-head p { margin: 8px 0 0; color: var(--text2); font-size: 16px; }
.d-side { grid-area: side; display: flex; flex-direction: column; gap: 16px; }
.d-body { grid-area: body; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* 포스터 칸은 포스터 비율을 그대로 따른다 (검은 여백 없이). 포스터가 없을 때의 임시 포스터만 3:4 */
.d-poster { width: 220px; align-self: center; border-radius: 14px; overflow: hidden; background: var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); }
.d-poster img { width: 100%; height: auto; }
.d-poster .ph { aspect-ratio: 3 / 4; height: auto; }
.box-admit .admit-head { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.box-admit .btn { margin-top: 8px; }
.kv dt { white-space: nowrap; }
.box-admit .kv { grid-template-columns: 72px minmax(0, 1fr); }
.box { background: var(--card); border-radius: var(--radius); padding: 20px; }
.box h2 { margin: 0 0 12px; font-size: 19px; letter-spacing: -0.02em; }
.box p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; }
.box p:last-child { margin-bottom: 0; }
.box dl { margin: 0; }
.kv { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; padding: 9px 0; font-size: 14px; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv dt { color: var(--text2); }
.kv dd { margin: 0; white-space: pre-line; }
.links { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.links li { padding: 8px 0; display: flex; justify-content: space-between; gap: 12px; }
.links li + li { border-top: 1px solid var(--line); }
.links span { color: var(--text3); white-space: nowrap; font-size: 12px; }
.chips { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: block; background: var(--bg); border-radius: 980px; padding: 6px 12px; font-size: 14px; color: var(--text); }
.note { color: var(--text2); font-size: 13px !important; }
.btn { display: inline-block; background: var(--btn); color: #fff; border-radius: 980px; padding: 9px 18px; font-size: 14px; }
.btn:hover { text-decoration: none; background: #0077ED; }
.intro-imgs summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.intro-imgs summary::-webkit-details-marker { display: none; }
.intro-imgs summary h2 { margin: 0; }
.intro-imgs summary h2 span { color: var(--text2); font-weight: 400; font-size: 15px; margin-left: 4px; }
.intro-imgs summary::after { content: '펼치기'; color: var(--link); font-size: 14px; }
.intro-imgs[open] summary::after { content: '접기'; }
.intro-imgs[open] summary { margin-bottom: 14px; }
.intro-imgs img { width: 100%; height: auto; border-radius: 10px; background: var(--bg); }
.intro-imgs img + img { margin-top: 10px; }
.g-head { font-size: 18px !important; font-weight: 600; line-height: 1.5 !important; margin-bottom: 12px !important; }
.glist { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.65; }
.glist li + li { margin-top: 6px; }
.ai-note { color: var(--text3); font-size: 12px; margin: 4px 4px 0; }
/* 오시는 길 지도 (static/place-map.js): 카카오맵 버튼은 지도 왼쪽 위 구석에 (왼쪽 아래는 카카오 로고 자리) */
.place-wrap { position: relative; margin-top: 4px; }
.place-map { height: 220px; border-radius: 12px; overflow: hidden; background: #E9E9EE; }
.place-wrap .btn { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 7px 14px; font-size: 13px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.place-failed .place-map { display: none; }
.place-failed .btn { position: static; box-shadow: none; }
/* 휴대폰: 포스터·기본 정보·티켓 판매처 다음에 바로 본문(공식 이미지 또는 소개), 나머지 왼쪽 칸 정보는 그 아래 */
@media (max-width: 767px) {
  .d-layout { display: flex; flex-direction: column; }
  .d-side { display: contents; }
  .d-side > * { order: 3; }
  .d-poster, .d-side > .d-intro, .d-info, .d-ticket { order: 1; }
  .d-body { order: 2; }
}

/* 바닥글 */
.foot { margin-top: 56px; border-top: 1px solid var(--line2); padding: 20px 0 40px; font-size: 12px; color: var(--text2); }
.foot p { margin: 0 0 8px; }
.foot-fam span { color: var(--orange); font-weight: 600; margin-right: 6px; }

@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .hero { padding: 56px 0 24px; }
  .hero h1 { font-size: 56px; }
  .hero-home { gap: 36px; }
  .hero-logo { font-size: 72px; }
  /* 로고 그림의 주황 알약은 그림 높이의 84%. 제목+날짜 줄(약 90px)과 같은 높이로 보이게 */
  .hero-logo img { height: 112px; }
  .controls { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .seg { width: auto; }
  .seg button { padding: 0 18px; }
  .pills { margin: 0; padding: 0; }
  .search { flex: 1; min-width: 240px; }
  .card { width: 200px; }
  .d-layout { grid-template-columns: 240px minmax(0, 1fr); grid-template-areas: "head head" "side body"; column-gap: 28px; }
  .d-poster { width: 100%; }
}
@media (min-width: 1024px) {
  /* 두 칸 신문식 배치: 한 칸의 목록이 끝나면 바로 아래에 다음 목록이 붙어 빈 공간이 생기지 않는다 */
  /* PC: 세 묶음을 나란히 */
  .tabs { display: none; }
  .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
  /* 다섯 줄(한 줄 약 120px) + 여섯째 줄이 살짝 보이게 */
  .tlist { height: 624px; }
  /* PC: 카테고리 상자를 바둑판으로 */
  .home .secs:not(.secs-one) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; margin-top: 36px; align-items: start; }
  .home .secs:not(.secs-one) > .sec { margin: 0; }
  .home .secs:not(.secs-one) .list,
  .home .secs:not(.secs-one) .empty-sec { height: 644px; } /* 다섯 줄(한 줄 약 124px) + 여섯째 줄 조금 */
  .home .secs:not(.secs-one) .row .poster { width: 72px; height: 96px; }
  /* 제목은 한 줄로 (줄 높이가 같아야 상자에 다섯 줄이 꼭 맞는다) */
  .home .secs:not(.secs-one) .row .title { font-size: 15px; -webkit-line-clamp: 1; }
  .secs-one { display: block; }
  /* 종류 하나만 볼 때(첫 화면에서 종류 버튼, 또는 카테고리 페이지): 상자 안 스크롤 없이 3분할로 쭉 */
  .home.one-cat .secs:not(.secs-one) { display: block; }
  .home.one-cat .secs .list, .secs-one .list { height: auto; overflow: visible; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; background: none; border-radius: 0; }
  .home.one-cat .secs .row, .secs-one .row { background: var(--card); border-radius: 14px; overflow: hidden; border-top: 0; }
  .home.one-cat .secs .row a, .secs-one .row a { height: 100%; }
  .home.one-cat .secs .row.extra:not([hidden]) { display: block; }
  .d-layout { grid-template-columns: 340px minmax(0, 1fr); grid-template-areas: "side head" "side body"; grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 20px; align-items: start; }
  .d-head h1 { font-size: 44px; }
  .d-head p { font-size: 20px; }
}

@media (min-width: 1280px) {
  .home { max-width: 1400px; }
  .home .secs:not(.secs-one) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
