/* 올패밀리 홈페이지 — 레이싱 레드 · 블랙 · 골드 */
:root {
  --bg: #f8f5f1;
  --surface: #ffffff;
  --surface-2: #f1ece6;
  --ink: #17130f;
  --muted: #6d655d;
  --line: #e7dfd6;
  --red: #e10600;
  --red-deep: #b30500;
  --red-soft: #fdeceb;
  --gold: #c98a00;
  --gold-soft: #fff4d6;
  --on-red: #ffffff;
  --flag-a: #17130f;
  --flag-b: #ffffff;
  --shadow: 0 1px 2px rgba(23, 19, 15, .05), 0 10px 30px -12px rgba(23, 19, 15, .16);
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0d0c; --surface: #191715; --surface-2: #22201d; --ink: #f6f1eb; --muted: #a79e94;
    --line: #2d2925; --red: #ff3b30; --red-deep: #e10600; --red-soft: #33110f; --gold: #f2b632;
    --gold-soft: #33280d; --flag-a: #f6f1eb; --flag-b: #0e0d0c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0d0c; --surface: #191715; --surface-2: #22201d; --ink: #f6f1eb; --muted: #a79e94;
  --line: #2d2925; --red: #ff3b30; --red-deep: #e10600; --red-soft: #33110f; --gold: #f2b632;
  --gold-soft: #33280d; --flag-a: #f6f1eb; --flag-b: #0e0d0c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* 체커기 띠 */
.flag {
  height: 8px;
  background: repeating-conic-gradient(var(--flag-a) 0 25%, var(--flag-b) 0 50%) 0 0 / 8px 8px;
  opacity: .9;
}

/* 상단 */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 15px; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--on-red); background: var(--red-deep); }
.nav .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.nav a[aria-current="page"] .dot { background: #fff; }
.icon-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.icon-btn:hover { background: var(--surface-2); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}
.status { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.status-in { display: flex; align-items: center; gap: 8px; height: 36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.status-dot.on { background: var(--red); animation: pulse 1.6s infinite; }
.status b { font-weight: 700; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 55%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }

main { padding-top: 28px; padding-bottom: 72px; min-height: 60vh; outline: none; }
section + section { margin-top: 56px; }

/* 제목 */
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .22em; color: var(--red); font-style: italic; text-transform: uppercase; }
.page-head { margin: 12px 0 28px; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 6px; text-wrap: balance; }
.page-head p { margin-top: 10px; color: var(--muted); max-width: 60ch; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(22px, 3.4vw, 28px); font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.more { font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; padding: 6px 2px; }
.more:hover { color: var(--red); }
.count-pill { display: inline-flex; align-items: baseline; gap: 8px; margin-left: 12px; padding: 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); vertical-align: middle; }
.count-pill b { font-size: 18px; color: var(--red); letter-spacing: 0; }

/* 버튼 · 칩 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; border: 1px solid var(--line); background: var(--surface); }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--red-deep); color: var(--on-red); border-color: transparent; }
.btn.primary:hover { background: var(--red); }
.btn.dark { background: var(--ink); color: var(--bg); border-color: transparent; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; }
.chip small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .7; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.badge.live { background: var(--red-deep); color: #fff; }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.badge.soon { background: var(--gold-soft); color: var(--gold); }
.badge.off { background: var(--surface-2); color: var(--muted); }
.badge.rep { background: var(--gold-soft); color: var(--gold); }
.note { margin-bottom: 22px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--muted); font-size: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.note b { color: var(--ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* 홈: 대문 */
.hero { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #111; }
.hero img { width: 100%; aspect-ratio: 2048 / 423; object-fit: cover; }
.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 720px; margin: -34px auto 0; padding: 18px 8px; }
.stat { text-align: center; padding: 4px 10px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.stat b { display: block; font-size: clamp(22px, 4.4vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.stat b.red { color: var(--red); }
.stat a { display: block; border-radius: 12px; }

/* 소통방 */
.chat-cta { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: linear-gradient(100deg, #fee500, #ffd400); border-color: transparent; color: #191600; }
.chat-ic { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: #191600; color: #fee500; }
.chat-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.chat-txt b { font-size: 17px; font-weight: 800; }
.chat-txt span { font-size: 13.5px; opacity: .78; }
.chat-cta .btn.chat-btn { background: #191600; color: #fee500; border-color: transparent; white-space: nowrap; }
.chat-cta .btn.chat-btn[aria-disabled="true"] { opacity: .7; }

/* 검색 */
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.search .btn { height: 52px; border-radius: var(--r-md); padding: 0 22px; }
.hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
.results { margin-top: 14px; display: grid; gap: 8px; }
.result { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-align: left; width: 100%; }
.result:hover { border-color: var(--ink); }
.result img { width: 86px; height: 49px; object-fit: cover; border-radius: 8px; flex: none; background: var(--surface-2); }
.result img.round { width: 49px; object-position: 70% 12%; border-radius: 50%; }
.result .kind { font-size: 11.5px; font-weight: 800; color: var(--red); letter-spacing: .08em; }
.result .t { font-weight: 700; }
.result .p { margin-left: auto; font-weight: 800; white-space: nowrap; }

/* 방송 카드 */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.live-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; }
.live-main .thumb { position: relative; background: #111; aspect-ratio: 16 / 9; }
.live-main .thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.live-main .info { padding: 26px; display: flex; flex-direction: column; gap: 12px; justify-content: center; align-items: flex-start; }
.live-main h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.live-main .ep { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red-deep); font-size: 13px; font-weight: 700; }
.live-main .muted b, .up b { color: var(--red-deep); font-weight: 700; }
.countdown { font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.countdown small { font-size: .45em; font-weight: 700; color: var(--muted); margin-left: 3px; margin-right: 8px; letter-spacing: 0; }
.thumb .badge { position: absolute; left: 12px; top: 12px; z-index: 1; }
.sub-head { margin: 30px 0 12px; font-size: 15px; font-weight: 800; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sec-head + .sub-head { margin-top: 0; }
.sub-head .num { padding: 1px 9px; border-radius: 999px; background: var(--surface-2); font-size: 13px; }
.sub-head.on { color: var(--red); }
.sub-head.on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.sub-head.on .num { background: var(--red-soft); }
.mcard { overflow: hidden; display: flex; flex-direction: column; }
.mcard .thumb { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.mcard .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 14%; }
.mcard .thumb img.av { object-position: center 30%; }
.mcard:not(.is-off) .thumb { aspect-ratio: 16 / 9; }
.mcard:not(.is-off) .thumb img.av { object-position: center; }
.mcard.is-off .thumb img { filter: grayscale(.6) brightness(.85); }
.mcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.mcard .name { font-weight: 800; font-size: 17px; }
.mcard .sub { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .go { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mcard:hover .go { color: var(--red); }
.mcard:not(.is-off) { border-color: color-mix(in srgb, var(--red) 50%, var(--line)); }
.vod .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); margin-left: auto; }
.switch button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* 이번 주 */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day { padding: 12px 8px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-align: center; min-width: 0; }
.day .d { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.day .n { font-size: 20px; font-weight: 800; line-height: 1.3; }
.day .e { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.day.on { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); background: var(--red-soft); }
.day.on .e { color: var(--red); }
.day.today { outline: 2px solid var(--ink); outline-offset: -2px; }

/* 시그니처 */
.sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.sig { text-align: left; padding: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 18px; transition: transform .15s, box-shadow .15s; }
.sig:hover { transform: translateY(-3px); }
.sig .pic { aspect-ratio: 770 / 436; background: var(--surface-2); padding: 8px 8px 0; }
.sig .pic img { width: 100%; height: 100%; object-fit: contain; }
.sig .body { padding: 10px 14px 14px; }
.sig .price, .sig .name, .sig .pic, .sig .body, .mem .pic { display: block; }
.sig .pic { position: relative; }
.sig .pic video { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; display: block; }
.sig .badge.anim { position: absolute; left: 14px; top: 14px; }
.badge.anim { background: rgba(10, 8, 6, .72); color: #fff; }
.sig.vip { border-color: color-mix(in srgb, var(--gold) 65%, var(--line)); background: linear-gradient(180deg, var(--gold-soft), var(--surface) 60%); }
.sig.vip .pic { background: transparent; }
.sig.vip .price { color: var(--gold); }
.modal-body video { width: 100%; height: auto; border-radius: 12px; display: block; background: #000; }
.mem .name .mini { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.result img.round { object-position: center; }
.sig .price { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--red); }
.sig .price small { font-size: .7em; font-weight: 700; margin-left: 1px; }
.sig .name { font-weight: 700; font-size: 14.5px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 18px 0 14px; }
.toolbar select { height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 23%); gap: 16px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.row-scroll > * { scroll-snap-align: start; }

/* 멤버 */
.rep-card { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; overflow: hidden; margin-bottom: 22px; background: linear-gradient(120deg, var(--surface), var(--red-soft)); }
.rep-card .pic { aspect-ratio: 4 / 4.4; overflow: hidden; }
.rep-card .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rep-card .info { padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }
.rep-card h2 { font-size: clamp(32px, 6vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.mem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.mem { overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 0; transition: transform .15s; }
.mem:hover { transform: translateY(-3px); }
.mem .pic { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--surface-2); }
.mem .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mem .body { padding: 12px 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mem .name { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.mem .go { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.mem:hover .go { color: var(--red); }

/* 달력 */
.cal { overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 12px; }
.cal-head h2 { font-size: 22px; font-weight: 800; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { height: 38px; min-width: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-weight: 700; font-size: 14px; }
.cal-nav button:hover { border-color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); }
.cal-grid .wd { padding: 10px 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.cell { min-height: 96px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.cell:nth-child(7n) { border-right: 0; }
.cell.out { background: var(--surface-2); opacity: .5; }
.cell .n { font-weight: 700; font-size: 14px; }
.cell.today .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); }
.ev { margin-top: 6px; padding: 4px 7px; border-radius: 7px; background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 700; border-left: 3px solid var(--red); line-height: 1.3; }
.ev small { display: block; font-weight: 600; opacity: .85; }
.ev.ev-off { background: transparent; color: var(--muted); border-left-color: var(--line); font-weight: 600; }
.up-list { display: grid; gap: 8px; }
.up { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.up .when { font-weight: 800; min-width: 108px; }
.up .dd { margin-left: auto; font-weight: 800; color: var(--red); }

/* 다시보기 */
.vod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.vod { overflow: hidden; display: block; }
.vod .thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1b1512, #5a0b08 55%, #e10600); overflow: hidden; }
.vod .thumb img { width: 100%; height: 100%; object-fit: cover; }
.vod .thumb .wm { position: absolute; inset: 0; margin: auto; width: 62%; height: auto; opacity: .92; }
.vod .play { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: #17130f; }
.vod .body { padding: 14px 16px 16px; }
.vod .t { font-weight: 800; }
.vod .s { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* 아래 */
.foot { background: var(--surface); border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 20px; flex-wrap: wrap; align-items: center; }
.foot-logo { height: 56px; width: auto; margin-bottom: 8px; }
.foot-links { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-copy { padding-bottom: 28px; font-size: 13px; }

/* 팝업 */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(10, 8, 6, .72); }
.modal-box { position: relative; width: min(100%, 720px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.modal-box.narrow { width: min(100%, 460px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 18px; font-weight: 800; }
.modal-body { overflow: auto; padding: 16px; }
.modal-body img { width: 100%; border-radius: 12px; }
.modal-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.modal-meta .price { font-size: 28px; font-weight: 800; color: var(--red); }

/* 좁은 화면 */
/* 아래 탭 메뉴 (휴대폰에서만 보임) */
.tabbar { display: none; }

@media (max-width: 860px) {
  .live-main, .rep-card { grid-template-columns: 1fr; }
  .rep-card .pic { aspect-ratio: 16 / 11; }
  .row-scroll { grid-auto-columns: 42%; }
}

/* ===== 휴대폰 ===== */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  body { font-size: 15px; }

  /* 머리말: 로고 + 테마 버튼만, 얇게 */
  .top-in { height: 54px; gap: 10px; }
  .brand { margin-right: auto; }
  .brand img { height: 34px; }
  .top .nav { display: none; }
  .icon-btn { width: 36px; height: 36px; }
  .top > .flag { height: 6px; background-size: 6px 6px; }
  .status { font-size: 12.5px; }
  .status-in { height: 32px; }

  /* 아래 탭 메뉴 */
  .tabbar {
    display: grid; grid-template-columns: repeat(6, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 5px 0 3px; border-radius: 12px; color: var(--muted);
    font-size: 10.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar a[aria-current="page"] { color: var(--red); }
  .tabbar a[aria-current="page"] svg { stroke-width: 2.3; }
  .tabbar a:active { background: var(--surface-2); }
  .tab-dot { position: absolute; top: 3px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--surface); animation: pulse 1.6s infinite; }
  .tab-dot[hidden] { display: none; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }

  main { padding-top: 16px; padding-bottom: 40px; }
  section + section { margin-top: 36px; }
  .page-head { margin: 4px 0 18px; }
  .page-head h1 { font-size: 28px; }
  .page-head p { font-size: 14px; margin-top: 6px; }
  .sec-head { margin-bottom: 12px; }
  .sec-head h2 { font-size: 21px; }
  .eyebrow { font-size: 11px; }
  .note { font-size: 13px; padding: 10px 12px; margin-bottom: 16px; }

  /* 홈 */
  .hero { border-radius: 16px; }
  .hero img { aspect-ratio: 16 / 7; }
  .stats { margin: -20px 10px 0; padding: 10px 0; border-radius: 16px; }
  .stat { padding: 2px 4px; }
  .stat span { font-size: 11.5px; }
  .stat b { font-size: 21px; }
  .row-scroll { grid-auto-columns: 44%; gap: 10px; margin: 0 -16px; padding: 2px 16px 10px; scroll-padding: 0 16px; scrollbar-width: none; }
  .row-scroll::-webkit-scrollbar { display: none; }
  .week { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .week::-webkit-scrollbar { display: none; }
  .day { flex: 0 0 64px; padding: 10px 4px; }

  /* 본방 카드: 그림 위, 글 아래로 촘촘하게 */
  .card { border-radius: 18px; }
  .live-main .info { padding: 16px 16px 18px; gap: 8px; }
  .live-main h3 { font-size: 20px; }
  .countdown { font-size: 30px; }
  .live-main .btn { width: 100%; }

  .chat-cta { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .chat-txt span { font-size: 12.5px; }
  .chat-cta .btn.chat-btn { width: 100%; }

  /* 검색 */
  .search input { height: 48px; font-size: 16px; }
  .search .btn { height: 48px; padding: 0 16px; }
  .result img { width: 72px; height: 41px; }
  .result img.round { width: 41px; }

  /* 시그니처: 금액대 칸은 한 줄 가로 스크롤 */
  .toolbar { margin: 14px -16px 8px; gap: 8px; flex-wrap: nowrap; flex-direction: column; align-items: stretch; }
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px 16px 4px; scrollbar-width: none; scroll-behavior: smooth; }
  .toolbar .chips::-webkit-scrollbar { display: none; }
  .toolbar label { padding: 0 16px; align-self: flex-end; }
  .toolbar select { height: 36px; font-size: 13px; }
  .chip { padding: 7px 12px; font-size: 13.5px; }
  .sig-grid, .mem-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sig { border-radius: 14px; }
  .sig:hover, .mem:hover { transform: none; }
  .sig .pic { padding: 6px 6px 0; }
  .sig .body { padding: 8px 10px 11px; }
  .sig .price { font-size: 16px; }
  .sig .name { font-size: 13px; }
  .sig .badge.anim { left: 10px; top: 10px; font-size: 10px; padding: 2px 7px; }

  /* 멤버 */
  .rep-card .info { padding: 18px; gap: 10px; }
  .rep-card h2 { font-size: 34px; }
  .rep-card .chips { width: 100%; flex-wrap: nowrap; }
  .rep-card .chips .btn { flex: 1; white-space: nowrap; padding: 11px 12px; }
  .mem .body { padding: 10px 12px 12px; }
  .mem .name { font-size: 16px; }
  .mem .go { font-size: 12px; }
  .count-pill { margin-left: 8px; padding: 4px 10px; }
  .count-pill b { font-size: 15px; }

  /* LIVE */
  .live-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mcard .body { padding: 10px 12px 12px; }
  .mcard .name { font-size: 15px; }
  .mcard .sub, .mcard .go { font-size: 12px; }
  .sub-head { margin: 22px 0 10px; font-size: 14px; }
  .switch { margin-left: 0; }

  /* 일정: 칸 안에는 빨간 점만, 자세한 건 아래 목록 */
  .cal-head { padding: 12px 14px; }
  .cal-head h2 { font-size: 18px; }
  .cal-nav button { height: 34px; min-width: 34px; padding: 0 10px; font-size: 13px; }
  .cal-grid .wd { padding: 8px 0; font-size: 12px; }
  .cell { min-height: 54px; padding: 6px 0 4px; text-align: center; }
  .cell .n { font-size: 13.5px; }
  .cell.today .n { width: 24px; height: 24px; }
  .ev { width: 6px; height: 6px; margin: 5px auto 0; padding: 0; border: 0; border-radius: 50%; background: var(--red); overflow: hidden; color: transparent; font-size: 0; }
  .ev.ev-off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
  .up { padding: 12px 14px; gap: 10px; font-size: 14px; }
  .up .when { min-width: 88px; }

  /* 다시보기 */
  .vod-grid { grid-template-columns: 1fr; gap: 12px; }
  .vod { display: grid; grid-template-columns: 44% 1fr; align-items: center; }
  .vod .thumb { height: 100%; aspect-ratio: 16 / 10; }
  .vod .play { width: 32px; height: 32px; right: 8px; bottom: 8px; }
  .vod .play svg { width: 14px; height: 14px; }
  .vod .body { padding: 10px 12px; }
  .vod .t { font-size: 14px; line-height: 1.4; }
  .vod .s { font-size: 12px; }

  /* 아래 정보 */
  .foot-in { padding-top: 22px; gap: 14px; }
  .foot-logo { height: 44px; }
  .foot-links { width: 100%; }
  .foot-links li { flex: 1; }
  .foot-links .btn { width: 100%; padding: 10px 8px; font-size: 13px; }

  /* 팝업: 아래에서 올라오는 시트 */
  .modal { place-items: end stretch; padding: 0; }
  .modal-box, .modal-box.narrow { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sheet .22s ease-out; }
  .modal-head { position: relative; padding: 18px 12px 10px 18px; }
  .modal-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
  .modal-body { padding: 12px 14px 18px; }
  .modal-meta .price { font-size: 24px; }
  .modal-meta .btn { width: 100%; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
