/* 영상맛집 — 휴대폰 먼저 */
:root {
  --bg: #fffaf5;
  --card: #ffffff;
  --text: #2b2118;
  --muted: #8a7a6c;
  --line: #f0e3d6;
  --brand: #e8590c;
  --brand-soft: #fff0e6;
  --gold: #b7791f;
  --gold-soft: #fff6dd;
  --warn: #c92a2a;
  --warn-soft: #fff0f0;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(80, 40, 10, .07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1612; --card: #26201b; --text: #f3ebe3; --muted: #b3a493; --line: #3a3029;
    --brand: #ff8a3d; --brand-soft: #3a2618; --gold: #f0c060; --gold-soft: #3a3018;
    --warn: #ff8787; --warn-soft: #3a1f1f; --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  /* 글씨체: Pretendard (모든 사이트 공통, 11월 15일) */
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 16px; line-height: 1.6; word-break: keep-all;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
small, .small { font-size: .85em; }
.muted { color: var(--muted); }

/* 머리·꼬리 */
.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; font-size: 1.1rem; color: var(--text); white-space: nowrap; }
.nav { display: flex; gap: 14px; font-size: .95rem; }
.nav a { color: var(--text); }
.site-footer { margin-top: 40px; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: center; }
.site-footer a { color: var(--muted); }
.foot-note { max-width: 640px; margin: 8px auto; }
.sample-banner { background: #fff3bf; color: #5c4400; padding: 8px 16px; font-size: .9rem; text-align: center; }

/* 본문 */
.container { max-width: 880px; margin: 0 auto; padding: 16px; }
.page-title { font-size: 1.5rem; line-height: 1.35; margin: 8px 0 12px; }
.page-title small { font-size: .65em; color: var(--muted); font-weight: 500; }
.lead { color: var(--muted); margin: 0 0 16px; }
.crumb { font-size: .85rem; color: var(--muted); margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; box-shadow: var(--shadow); }
.card h2 { font-size: 1.15rem; margin: 0 0 12px; }
.card h2 small { color: var(--muted); font-weight: 500; }
.content p, .content li { margin: 6px 0; }

/* 버튼·뱃지 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 9px 14px; margin: 3px 2px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text);
  font-size: .95rem; font-family: inherit; cursor: pointer; text-decoration: none !important;
}
.btn:hover { border-color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.btn-ghost { color: var(--muted); }
.btn-sm { padding: 6px 10px; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.btn-col { display: flex; flex-direction: column; gap: 8px; }
.btn-col .btn { justify-content: flex-start; border-radius: 12px; padding: 12px 14px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-warn, .badge-closed { background: var(--warn-soft); color: var(--warn); }
.warn-box { background: var(--warn-soft); color: var(--warn); padding: 10px 12px; border-radius: 10px; }
.badges { margin: 0 0 8px; }

/* 첫 화면 */
/* 첫 화면 색 (테마로 바꿀 수 있게 변수로) */
:root {
  --hero-bg: linear-gradient(135deg, #e8590c 0%, #f76707 55%, #ff922b 100%);
  --hero-text: #ffffff;
  --hero-chip: rgba(255,255,255,.2);
  --hero-chip-text: #ffffff;
  --hero-shadow: rgba(90, 30, 0, .35);
}
/* 후보 1: 연한 살구 (밝고 부드럽게) */
:root[data-theme="peach"] {
  --brand: #e8703a; --brand-soft: #fff1e8;
  --hero-bg: linear-gradient(135deg, #fff6ef 0%, #ffe8da 60%, #ffd9c2 100%);
  --hero-text: #4a2e1f; --hero-chip: rgba(232,112,58,.12); --hero-chip-text: #c4561f; --hero-shadow: rgba(160, 80, 30, .25);
}
/* 후보 2: 민트 (산뜻하게) */
:root[data-theme="mint"] {
  --brand: #0ca678; --brand-soft: #e6fcf5;
  --hero-bg: linear-gradient(135deg, #38c49a 0%, #4fd1b0 55%, #8ce3c8 100%);
  --hero-shadow: rgba(0, 70, 50, .3);
}
/* 후보 3: 커피·크림 (따뜻하고 차분하게) */
:root[data-theme="coffee"] {
  --brand: #a0613a; --brand-soft: #f8efe7;
  --hero-bg: linear-gradient(135deg, #7c4a2d 0%, #9c6340 55%, #c08a5c 100%);
  --hero-shadow: rgba(40, 20, 5, .4);
}
/* 후보 4: 하늘색 (여행 느낌) */
:root[data-theme="sky"] {
  --brand: #1c7ed6; --brand-soft: #e7f5ff;
  --hero-bg: linear-gradient(135deg, #4c9be8 0%, #5fb0f0 55%, #91d0fb 100%);
  --hero-shadow: rgba(10, 50, 100, .3);
}
/* 후보 6: 딸기우유 (연분홍) */
:root[data-theme="strawberry"] {
  --brand: #d6336c; --brand-soft: #fff0f4;
  --hero-bg: linear-gradient(135deg, #fff5f8 0%, #ffe3ec 60%, #ffd0de 100%);
  --hero-text: #4a2230; --hero-chip: rgba(214,51,108,.1); --hero-chip-text: #c2255c; --hero-shadow: rgba(150, 40, 80, .2);
}
/* 후보 7: 버터 노랑 (밝고 귀엽게) */
:root[data-theme="butter"] {
  --brand: #d08700; --brand-soft: #fff8e1;
  --hero-bg: linear-gradient(135deg, #fffdf2 0%, #fff3c4 60%, #ffe58f 100%);
  --hero-text: #4a3a10; --hero-chip: rgba(208,135,0,.12); --hero-chip-text: #a86b00; --hero-shadow: rgba(140, 100, 0, .22);
}
/* 후보 8: 깔끔한 흰 바탕 + 주황 포인트 */
:root[data-theme="white"] {
  --brand: #f76707; --brand-soft: #fff4e6;
  --hero-bg: #ffffff;
  --hero-text: #2b2118; --hero-chip: #fff0e3; --hero-chip-text: #e8590c; --hero-shadow: rgba(120, 60, 10, .2);
}
/* 후보 9: 말차 (차분한 초록) */
:root[data-theme="matcha"] {
  --brand: #5c7f2e; --brand-soft: #f1f7e6;
  --hero-bg: linear-gradient(135deg, #6f8f45 0%, #87a85a 55%, #a9c47e 100%);
  --hero-shadow: rgba(30, 50, 10, .35);
}
/* 후보 10: 라벤더 (보라) */
:root[data-theme="lavender"] {
  --brand: #7048e8; --brand-soft: #f3f0ff;
  --hero-bg: linear-gradient(135deg, #7b68ee 0%, #9381ff 55%, #b8a9ff 100%);
  --hero-shadow: rgba(40, 20, 100, .3);
}
/* 후보 11: 밤하늘 남색 (야식 느낌) */
:root[data-theme="navy"] {
  --brand: #3b5bdb; --brand-soft: #edf2ff;
  --hero-bg: linear-gradient(135deg, #1f2f5c 0%, #2f4a88 55%, #4a6cb3 100%);
  --hero-shadow: rgba(0, 0, 20, .45);
}
.hero { background: var(--hero-bg); color: var(--hero-text); padding: 40px 0 44px; }
.hero-inner { max-width: 880px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 28px; }
.hero-text { flex: 1 1 0; min-width: 0; }
.hero-badge { display: inline-block; background: var(--hero-chip); color: var(--hero-chip-text); padding: 5px 12px; border-radius: 999px; font-size: .88rem; font-weight: 700; }
.hero h1 { font-size: clamp(30px, 5.4vw, 44px); line-height: 1.2; letter-spacing: -.02em; margin: 12px 0 8px; }
.hero p { margin: 0 0 18px; opacity: .96; font-size: 1.05rem; }
.hero-art { flex: 0 0 340px; width: 340px; height: auto; filter: drop-shadow(0 16px 26px var(--hero-shadow)); }
.hero .chips { justify-content: flex-start; }
.hero .chip { background: var(--hero-chip); color: var(--hero-chip-text); }
.btn-white { background: #fff; border-color: #fff; color: var(--brand); font-weight: 800; padding: 12px 20px; box-shadow: 0 4px 12px var(--hero-shadow); }
/* 밝은 배경 후보는 그림 뒤에 은은한 동그라미 + 검색창 테두리 */
:root[data-theme="peach"], :root[data-theme="strawberry"], :root[data-theme="butter"], :root[data-theme="white"] { --light-hero: 1; }
:root[data-theme="peach"] .hero-art { background: radial-gradient(circle at 50% 55%, rgba(255,170,120,.55) 0, rgba(255,170,120,0) 68%); }
:root[data-theme="strawberry"] .hero-art { background: radial-gradient(circle at 50% 55%, rgba(255,140,170,.45) 0, rgba(255,140,170,0) 68%); }
:root[data-theme="butter"] .hero-art { background: radial-gradient(circle at 50% 55%, rgba(255,200,80,.5) 0, rgba(255,200,80,0) 68%); }
:root[data-theme="white"] .hero-art { background: radial-gradient(circle at 50% 55%, rgba(255,150,80,.35) 0, rgba(255,150,80,0) 68%); }
:root[data-theme="peach"] .search input, :root[data-theme="strawberry"] .search input,
:root[data-theme="butter"] .search input, :root[data-theme="white"] .search input { box-shadow: 0 4px 14px rgba(0, 0, 0, .08); border: 1px solid var(--line); }
:root[data-theme="white"] .hero { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .hero { padding: 24px 0 30px; }
  .hero-inner { flex-direction: column; gap: 4px; text-align: center; }
  .hero-art { order: -1; flex-basis: auto; width: 230px; }
  .hero .chips { justify-content: center; }
}
.search { position: relative; max-width: 520px; margin: 0 0 14px; }
@media (max-width: 760px) { .search { margin: 0 auto 14px; } }
.search input {
  width: 100%; padding: 14px 18px; font-size: 1.05rem; border-radius: 999px; border: 0;
  background: #fff; color: #2b2118; outline: none; font-family: inherit; box-shadow: 0 6px 18px rgba(90, 30, 0, .25);
}
.q-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); overflow: hidden;
}
.q-results a { display: block; padding: 10px 16px; color: var(--text); border-bottom: 1px solid var(--line); }
.q-results a:last-child { border-bottom: 0; }
.q-results small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0 16px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: .92rem; }
.chip small { opacity: .7; font-weight: 500; }
.creator-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.creator-tabs button { display: inline-flex; align-items: center; gap: 2px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-family: inherit; font-size: .92rem; cursor: pointer; }
.creator-tabs button small { color: var(--muted); margin-left: 3px; }
.creator-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.creator-tabs button.on small { color: #fff; opacity: .85; }
.creator-tabs button.on .pin-dot, .creator-tabs button.on .pin-face { box-shadow: 0 0 0 2px #fff; }
.page-title .pin-face { margin-right: 10px; vertical-align: -8px; }
.creator-more { margin: 12px 0 0; text-align: right; }
.sido-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.sido-grid a { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.sido-grid small { color: var(--muted); }

/* 가게 카드·표 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.store-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--card); }
.store-card:hover { border-color: var(--brand); text-decoration: none; }
.store-card .muted { font-size: .85rem; }
.table-wrap { overflow-x: auto; }
table.stores { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.stores th, table.stores td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.stores th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.region-row h3 { margin: 10px 0 2px; font-size: 1.05rem; }
.region-row p { margin: 0 0 8px; }
.region-list { columns: 2; padding-left: 18px; }
.summary p:first-child { margin-top: 0; }
.summary ul { padding-left: 18px; margin: 0; }

/* 가게 페이지 */
.video-item { margin: 0 0 18px; }
.video-item figcaption { font-size: .9rem; margin-top: 6px; }
.video { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 16/9; border-radius: 12px; background: #2b2118; color: #fff; font-size: 1.2rem; text-align: center; padding: 12px; }
.video-ph small { font-size: .8rem; opacity: .7; }
.info dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 6px 10px; margin: 0; }
.info dt { color: var(--muted); }
.info dd { margin: 0; }

/* 지도 */
.mini-map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--brand-soft); margin: 16px 0 4px; }
.map-more { text-align: right; margin: 0 0 8px; }
.map-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); font-size: .9rem; }
body.is-map .site-footer { display: none; }
.map-page { position: relative; height: calc(100dvh - 53px); display: flex; flex-direction: column; }
.map-bar { display: flex; gap: 6px; padding: 8px 10px 4px; background: var(--card); flex-wrap: wrap; align-items: center; }
.map-bar select { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-family: inherit; font-size: .9rem; }
.map-chips { display: flex; gap: 6px; padding: 4px 10px; overflow-x: auto; background: var(--card); scrollbar-width: none; }
.map-chips::-webkit-scrollbar { display: none; }
.map-chips button { flex: 0 0 auto; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-family: inherit; font-size: .85rem; cursor: pointer; }
.map-chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pin-dot { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 5px; border-radius: 50%;
  color: #fff; font-style: normal; font-size: 10px; font-weight: 800; vertical-align: -3px; }
.map-chips button.on .pin-dot { box-shadow: 0 0 0 2px #fff; }
.pin-face { width: 20px; height: 20px; margin-right: 5px; border-radius: 50%; vertical-align: -5px; object-fit: cover; }
.map-chips button.on .pin-face { box-shadow: 0 0 0 2px #fff; }
/* 지도 위 채널 사진 핀: 동그랗게 + 흰 테두리 */
.mini-map img[src^="https://yt3.ggpht.com"], #bigmap img[src^="https://yt3.ggpht.com"] {
  border-radius: 50% !important; box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0, 0, 0, .35) !important; }
.pin-legend { flex: 0 0 auto; display: inline-flex; align-items: center; font-size: .82rem; color: var(--muted); padding: 0 4px; }
.map-chips:last-of-type { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.map-area { position: relative; flex: 1; min-height: 260px; }
.big-map { position: absolute; inset: 0; background: var(--brand-soft); }
.list-panel { position: absolute; left: 0; right: 0; bottom: 0; top: 0; z-index: 15; overflow-y: auto; background: var(--bg); padding: 8px 12px 80px; }
.list-panel .store-card { margin-bottom: 8px; cursor: pointer; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; max-height: 78%; overflow-y: auto;
  background: var(--card); border-radius: 18px 18px 0 0; box-shadow: 0 -6px 24px rgba(0,0,0,.18); padding: 10px 16px 24px;
}
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 8px; }
.sheet h3 { margin: 4px 0; font-size: 1.15rem; }
.sheet .close { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; font-size: 1.4rem; color: var(--muted); cursor: pointer; }
.sheet .video, .sheet .video-ph { margin: 8px 0; }
.sheet p { margin: 4px 0; font-size: .92rem; }
.sheet-row { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 4px; }
.sheet-row .sheet-thumb { flex: 0 0 42%; max-width: 180px; margin: 0; }
.sheet-row .sheet-thumb .play { width: 40px; height: 28px; font-size: 14px; border-radius: 8px; }
.sheet-row .sheet-info { flex: 1; min-width: 0; }
.sheet-row .sheet-info p { margin: 0 0 4px; }
.sheet-thumb { position: relative; display: block; margin: 8px 0; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.sheet-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.sheet-thumb:hover img { transform: scale(1.03); }
.sheet-thumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 42px; border-radius: 12px;
  background: rgba(220, 38, 38, .92); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.btn-block { display: block; width: 100%; text-align: center; margin: 10px 0 6px; padding: 12px; font-size: 1rem; box-sizing: border-box; }

.ad-ph { margin-top: 20px; height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-weight: 700; text-align: center; }
/* 가게 페이지 PC 배치 시험: 왼쪽 영상, 오른쪽 가게 정보 */
@media (min-width: 900px) {
  .store-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .store-split > .card { margin: 0; }
  .store-split > .info { position: sticky; top: 72px; }
  .store-split .info .btn-row { flex-wrap: wrap; }
}
@media (min-width: 640px) {
  /* PC·태블릿: 작은 말풍선 (지도를 가리지 않게). 휴대폰은 아래에서 올라오는 카드 */
  .sheet { left: auto; right: 16px; bottom: 16px; width: 340px; border-radius: 16px; max-height: calc(100% - 32px); padding: 10px 14px 14px; }
  .sheet h3 { font-size: 1.1rem; margin-top: 4px; }
  .sheet p { font-size: .85rem; }
  .sheet .sheet-row .sheet-thumb { flex-basis: 120px; }
  .sheet .btn-block { padding: 9px; font-size: .92rem; margin: 8px 0 4px; }
  .sheet .btn-row .btn { padding: 6px 10px; font-size: .82rem; }
  .sheet .grab { display: none; }
}
@media (min-width: 900px) {
  .list-panel { right: auto; width: 380px; border-right: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .nav { gap: 10px; font-size: .9rem; }
  .page-title { font-size: 1.3rem; }
  .region-list { columns: 1; }
  table.stores td:nth-child(4), table.stores th:nth-child(4) { display: none; }
}
