/* YADONGBOX — 와인빛 검정 바탕 + 선명한 크림슨 → 마젠타 포인트.
   큰 면은 단색(살짝 붉은 기 도는 검정), 그라데이션은 버튼 · 로고 · 선택 표시 같은 작은 곳에만, 맨 위에 은은한 빛.
   TOONBOX 디자인 시스템의 글꼴 · 간격 · 모서리를 따름 */
:root {
  --bg: #0d090b;
  --bg-2: #1b1317;
  --surface: #161013;
  --line: #2c2026;
  --line-2: #402e37;
  --text: #fbf5f7;
  --text-2: #c4b4bb;
  --muted: #8c7a82;
  --red: #ff2d5f;
  --red-text: #ff6189;
  --red-soft: rgba(255, 45, 95, .14);
  --red-line: rgba(255, 45, 95, .42);
  --grad: linear-gradient(120deg, #ff3358 0%, #e5177a 100%);
  --grad-soft: linear-gradient(150deg, rgba(255, 45, 95, .20) 0%, rgba(229, 23, 122, .06) 45%, rgba(229, 23, 122, 0) 70%), var(--surface);
  --glow: 0 8px 24px -8px rgba(255, 45, 95, .65);
  --hot: #ff2d5f;
  --like: #ff6189;
  --ad: #ffb020;
  --ok: #00d564;
  --danger: #ff6b6b;
  --radius: 8px;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 12% -140px, rgba(255, 45, 95, .18), rgba(255, 45, 95, 0) 70%),
    radial-gradient(820px 400px at 92% -160px, rgba(229, 23, 122, .14), rgba(229, 23, 122, 0) 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  min-height: 100vh;
}
a { color: var(--red-text); text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { letter-spacing: -0.03em; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 머리말 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(13, 9, 11, .78); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.hd-row { height: 64px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); flex: none; }
.logo:hover { color: var(--text); }
.wordmark { font-size: 22px; font-weight: 900; letter-spacing: -0.04em; }
.wordmark b { color: var(--red); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; }
.badge19 {
  flex: none; width: 28px; height: 28px; border-radius: 999px; border: 3px solid #e53935; background: #fff; color: #c62828;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1; font-weight: 900;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.search { flex: 1 1 280px; max-width: 480px; margin: 0; }
.search label { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--bg-2); color: var(--text-2); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: 14px; outline: none; }
.hd-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--text); display: none; align-items: center; justify-content: center; }
.nav { height: 48px; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { height: 48px; display: flex; align-items: center; color: var(--text-2); font-size: 16px; font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a.on { color: var(--text); border-image: var(--grad) 1; border-bottom-width: 3px; border-bottom-style: solid; }
.nav a:hover { color: var(--text); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px;
  border-radius: var(--radius); border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: border-color .15s, opacity .15s, box-shadow .15s, filter .15s;
}
.btn:hover { color: var(--text); border-color: var(--text); }
.btn-primary { background: var(--grad); border: 0; color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { color: #fff; filter: brightness(1.1); box-shadow: 0 10px 30px -8px rgba(255, 45, 95, .8); }
.btn-ghost { border-color: transparent; color: var(--text-2); }
.btn-light { background: var(--text); border-color: var(--text); color: #121212; }
.btn-light:hover { color: #121212; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 6px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-danger { color: var(--danger); }
.btn[disabled], .btn:disabled { opacity: .5; cursor: default; }
.pill { border-radius: 999px; }

/* ---------- 지역 · 세부 카테고리 ---------- */
.filters { display: flex; flex-direction: column; gap: 14px; }
.region-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.region-tabs::-webkit-scrollbar { display: none; }
.region-tabs a { height: 44px; display: flex; align-items: center; border-bottom: 3px solid transparent; color: var(--muted); font-size: 16px; font-weight: 800; white-space: nowrap; }
.region-tabs a.on { color: var(--text); border-image: var(--grad) 1; border-bottom-width: 3px; border-bottom-style: solid; }
.region-tabs a:hover { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2);
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.verified { padding: 1px 6px; border-radius: 999px; background: var(--red-soft); color: var(--red-text); font-size: 10px; font-weight: 800; }

/* ---------- 본문 ---------- */
main.page { padding-top: 24px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 48px; }
.section { display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.section-head h2 { font-size: 20px; font-weight: 800; }
.section-head .count { font-size: 20px; font-weight: 800; color: var(--red); }
.section-head .more { margin-left: auto; font-size: 13px; color: var(--text-2); }
.sort { margin-left: auto; display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.sort a { height: 32px; padding: 0 12px; border-radius: 6px; display: flex; align-items: center; color: var(--text-2); font-size: 13px; font-weight: 700; }
.sort a.on { background: var(--grad); color: #fff; }
.empty { padding: 48px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: center; color: var(--text-2); }

/* 대표 영상 */
.hero { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-main {
  flex: 999 1 640px; min-width: 0; position: relative; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--bg-2);
  overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  border: 1px solid var(--line); box-shadow: 0 30px 80px -36px rgba(255, 45, 95, .45);
}
.hero-main:hover { color: #fff; }
.hero-main > img, .hero-main > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-main .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,9,11,.95) 0%, rgba(40,6,22,.45) 45%, rgba(0,0,0,0) 80%); }
.hero-main .badges { position: absolute; right: 20px; top: 20px; display: flex; gap: 4px; }
.hero-body { position: relative; display: flex; flex-direction: column; gap: 10px; }
.hero-tags { display: flex; gap: 8px; font-size: 13px; font-weight: 700; color: var(--red-text); }
.hero-title { font-size: 40px; line-height: 1.2; font-weight: 900; letter-spacing: -0.03em; }
.hero-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #d6d6d6; }
.live-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--hot); display: inline-block; }
.hero-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.box { padding: 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.box h2 { font-size: 18px; font-weight: 800; }
.rising a { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 15px; font-weight: 700; }
.rising .n { width: 20px; font-style: italic; font-weight: 900; color: var(--red-text); }
.premium { background: var(--grad-soft); border: 1px solid var(--red-line); gap: 8px; }
.premium .eyebrow { font-size: 12px; font-weight: 800; color: var(--red-text); }
.premium .t { font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }
.premium .d { font-size: 13px; color: var(--text-2); }

/* 영상 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 16px; }
.grid.top { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 8px; color: var(--text); min-width: 0; }
.card:hover { color: var(--text); }
.thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--bg-2); overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; color: var(--line-2);
}
.thumb img, .thumb video.frame { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; pointer-events: none; background: var(--bg-2); }
.card:hover .thumb img, .card:hover .thumb video.frame { transform: scale(1.05); }
.thumb { transition: box-shadow .2s; }
.card:hover .thumb { box-shadow: 0 0 0 2px var(--red), 0 14px 32px -14px rgba(255, 45, 95, .7); }
.thumb .tl { position: absolute; left: 6px; top: 6px; display: flex; gap: 4px; }
.tag { padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.8); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.tag.up, .tag.hot { background: var(--hot); }
.tag.ad { background: var(--ad); color: #121212; }
.tag.dur { position: absolute; right: 6px; bottom: 6px; }
.tag .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--hot); }
.rank { position: absolute; left: 10px; bottom: 4px; font-size: 40px; line-height: 1; font-weight: 900; font-style: italic; letter-spacing: -0.05em; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.card-body { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--line); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--text-2); }
.card-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card-title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { font-size: 13px; color: var(--text-2); }
.card-meta { font-size: 12px; color: var(--muted); }

/* 광고 카드 · 배너 */
.adcard { color: var(--text); }
.adcard .thumb { border: 1px dashed var(--line-2); box-shadow: none; flex-direction: column; gap: 6px; color: var(--text); }
.adcard .thumb .house-t { font-size: 15px; font-weight: 800; }
.adcard .thumb .house-d { font-size: 12px; color: var(--muted); }
.adcard .card-body { align-items: center; }
.banner {
  align-self: center; width: 100%; max-width: 728px; height: 90px; border-radius: 6px; background: var(--bg-2);
  border: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--muted); font-size: 15px; overflow: hidden; position: relative;
}
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner.filled { border: 0; }
.banner .house-t { color: var(--text); font-weight: 800; }
.banner .house-cta { color: var(--red-text); font-weight: 700; }
.banner .tag.ad { position: static; }
.banner.filled .tag.ad { position: absolute; left: 6px; top: 6px; }
.banner.s320x50 { max-width: 320px; height: 50px; font-size: 12px; gap: 8px; }
.banner.s320x100 { max-width: 320px; height: 100px; font-size: 12px; gap: 8px; }
.banner.s300x250 { max-width: 300px; height: 250px; flex-direction: column; font-size: 13px; }
.only-mobile { display: none !important; }

/* 크리에이터 */
.creators { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.creator-card { padding: 20px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--text); }
.creator-card:hover { color: var(--text); border-color: var(--line-2); }
.creator-card .avatar { width: 64px; height: 64px; font-size: 22px; }

.pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--text-2); font-weight: 700; }
.pager .on { background: var(--grad); border-color: transparent; color: #fff; }

/* ---------- 꼬리말 ---------- */
.site-footer { background: linear-gradient(180deg, rgba(255, 45, 95, 0), rgba(255, 45, 95, .05)), #0a0709; border-top: 1px solid var(--line); }
.site-footer .container { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--text-2); }
.adcontact { margin-bottom: 12px; padding: 20px 24px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--red-line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.adcontact .txt { flex: 1 1 360px; display: flex; flex-direction: column; gap: 4px; }
.adcontact .t { font-size: 20px; font-weight: 900; letter-spacing: -0.03em; color: var(--text); }
.adcontact .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; }
.foot-links a { color: var(--text); }
.foot-links a.red { color: var(--red-text); }
.site-footer p { margin: 0; line-height: 1.6; }
.rta { padding: 4px 8px; border-radius: 4px; border: 1px solid var(--line-2); font-size: 11px; font-weight: 800; }

/* ---------- 영상 보기 ---------- */
.watch { padding-top: 24px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 32px; }
.watch-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.watch-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; overflow: hidden; }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player .ad-video { z-index: 2; display: none; }
.player.ad-on .ad-video { display: block; }
.player .ad-ui { position: absolute; inset: 0; z-index: 3; display: none; pointer-events: none; }
.player.ad-on .ad-ui { display: block; }
.ad-ui .ad-label { position: absolute; left: 16px; top: 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #f2f2f2; text-shadow: 0 1px 4px #000; }
.ad-ui .ad-visit { position: absolute; right: 16px; top: 14px; height: 32px; padding: 0 12px; border-radius: 6px; background: rgba(0,0,0,.6); color: #f2f2f2; font-size: 13px; font-weight: 700; display: flex; align-items: center; pointer-events: auto; }
.ad-ui .ad-skip { position: absolute; right: 16px; bottom: 64px; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.7); color: #f2f2f2; font-size: 14px; font-weight: 700; pointer-events: auto; cursor: pointer; }
.ad-ui .ad-skip:disabled { cursor: default; opacity: .8; }
.player .start {
  position: absolute; inset: 0; z-index: 4; border: 0; background: rgba(0,0,0,.35); color: #fff; display: flex; align-items: center;
  justify-content: center; cursor: pointer;
}
.player .start span { width: 72px; height: 72px; border-radius: 999px; background: var(--grad); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 36px rgba(255, 45, 95, .55); }
.player .start[hidden] { display: none; }
.watch-crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 700; color: var(--red-text); }
.watch-title { font-size: 26px; line-height: 1.4; font-weight: 900; }
.watch-meta { font-size: 13px; color: var(--text-2); }
.creator-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.creator-row .avatar { width: 48px; height: 48px; font-size: 18px; }
.creator-row .name { display: flex; flex-direction: column; }
.creator-row .name b { font-size: 15px; }
.creator-row .name span { font-size: 12px; color: var(--muted); }
.sns { display: flex; gap: 6px; }
.sns a { width: 38px; height: 38px; border-radius: 999px; background: var(--bg-2); color: var(--text); display: flex; align-items: center; justify-content: center; }
.actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.like.on svg { fill: var(--like); }
.desc { padding: 16px; border-radius: 10px; background: var(--bg-2); font-size: 14px; line-height: 1.6; color: var(--text-2); white-space: pre-line; }
.notice { padding: 12px 16px; border-radius: 8px; background: #0f2a1c; color: #9be8bd; font-size: 14px; }
.notice.warn { background: #33280a; color: #f0c040; }
.notice.err { background: #3a1616; color: #ff9b9b; }
details.report { border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
details.report summary { padding: 12px 16px; cursor: pointer; font-weight: 700; color: var(--danger); list-style: none; }
details.report form { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.next-head { display: flex; align-items: center; gap: 8px; }
.next-head h2 { font-size: 18px; font-weight: 800; }
.next-head label { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.next-item { display: flex; gap: 10px; color: var(--text); padding: 4px; border-radius: 8px; }
.next-item:hover { color: var(--text); background: var(--surface); }
.next-item .thumb { flex: none; width: 168px; border-radius: 6px; }
.next-item .card-title { white-space: normal; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.next-item.ad { background: var(--bg-2); border: 1px dashed var(--line-2); padding: 8px; }
.next-item.ad .thumb { width: 160px; border: 0; }
.side-cta { margin-top: 8px; padding: 16px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--red-line); display: flex; align-items: center; gap: 12px; color: var(--text); }
.side-cta:hover { color: var(--text); }
.side-cta .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.side-cta .txt b { font-size: 15px; }
.side-cta .txt span { font-size: 12px; color: var(--text-2); }

/* ---------- 폼 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--text-2); }
.input, .field input[type=text], .field input[type=url], .field input[type=password], .field input[type=search], .field input[type=datetime-local], .field select, .field textarea {
  height: 46px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 15px; width: 100%;
}
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { accent-color: var(--red); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px !important; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- 연령 확인 ---------- */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.6); }
.gate-box {
  width: 100%; max-width: 400px; padding: 40px; border-radius: 16px; background: var(--grad-soft); border: 1px solid var(--red-line);
  box-shadow: 0 0 80px -10px rgba(255, 45, 95, .3), 0 24px 64px rgba(0,0,0,.6); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
}
.gate-box .badge19 { width: 64px; height: 64px; border-width: 5px; font-size: 26px; }
.gate-box h1 { font-size: 26px; font-weight: 900; }
.gate-box form { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gate-box .wordmark { font-size: 20px; }

/* ---------- 배너 모음 (격자) ---------- */
.bgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.bgrid-item { position: relative; display: block; aspect-ratio: 300 / 80; border-radius: 4px; overflow: hidden; background: #111; border: 1px solid var(--line); transition: transform .12s, border-color .12s, box-shadow .12s; }
.bgrid-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bgrid-item:hover { transform: translateY(-1px); border-color: var(--red); box-shadow: 0 8px 22px -8px rgba(255, 45, 95, .6); }
.bgrid-item.house { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--grad-soft); border: 1px dashed var(--red-line); color: var(--text-2); text-align: center; }
.bgrid-item.house b { color: var(--red-text); font-size: 14px; font-weight: 800; }
.bgrid-item.house span { font-size: 11px; color: var(--muted); }
.bgrid-item.d-hide { display: none; }
.watch .bgrid { margin-top: 4px; }
@media (max-width: 1099px) {
  .bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bgrid-item.d-hide { display: flex; }
  .bgrid-item.t-hide { display: none; }
}

/* ---------- 팝업 광고 ---------- */
.popups { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.popups-dim { display: none; }
.popups-row { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; align-items: flex-start; pointer-events: auto; }
.popup { width: 360px; background: #000; border: 1px solid var(--red-line); border-radius: 6px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.75), 0 0 40px -10px rgba(255, 45, 95, .4); animation: pop-in .18s ease-out both; animation-delay: calc(var(--i) * 60ms); }
.popup-img { display: block; aspect-ratio: 400 / 500; background: #111; }
.popup-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.popup-bar { display: grid; grid-template-columns: 1fr auto; background: #111; border-top: 1px solid var(--line); }
.popup-bar button { appearance: none; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 13px; height: 38px; padding: 0 14px; cursor: pointer; text-align: left; }
.popup-bar button + button { border-left: 1px solid var(--line); color: var(--text); font-weight: 700; }
.popup-bar button:hover { color: #fff; background: var(--red-soft); }
@keyframes pop-in { from { scale: .96; } }

/* ---------- 연령 확인 뒤 인트로 (글자 떠오름 → BOX 쾅 → 두-둥 → 들어감, 2.6초) ---------- */
.intro { position: fixed; inset: 0; z-index: 200; background: #050304; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.intro[hidden] { display: none; }
body.intro-on { overflow: hidden; }
.intro-word { position: relative; display: flex; align-items: baseline; font-size: clamp(44px, 11vw, 132px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; animation: intro-shake .32s linear .85s, intro-punch .7s cubic-bezier(.2, .9, .2, 1) 1.25s, intro-grow .9s ease-in 1.75s forwards; }
.intro-head i { display: inline-block; font-style: normal; color: #fff; opacity: 0; filter: blur(14px); transform: translateY(.35em); animation: intro-letter .55s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--d) * 60ms + 80ms); }
.intro-tail { display: inline-block; margin-left: .02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0; transform: scale(2.6); filter: blur(10px); animation: intro-slam .3s cubic-bezier(.7, 0, .9, .4) .58s forwards; }
/* 쾅 · 둥 할 때 뒤에서 퍼지는 붉은 빛 */
.intro-pulse { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(circle, rgba(255, 45, 95, .55) 0%, rgba(229, 23, 122, .18) 35%, rgba(0, 0, 0, 0) 65%); opacity: 0; transform: scale(.3); animation: intro-pulse 1s ease-out .85s, intro-pulse2 1.3s ease-out 1.25s forwards; }
.intro-skip { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: 12px; color: rgba(255, 255, 255, .35); }
@keyframes intro-letter { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes intro-slam { 70% { opacity: 1; filter: blur(0); transform: scale(.94); } 100% { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes intro-shake { 0%, 100% { translate: 0 0; } 20% { translate: -6px 3px; } 40% { translate: 5px -4px; } 60% { translate: -3px 2px; } 80% { translate: 2px -1px; } }
@keyframes intro-punch { 0% { scale: 1; filter: none; } 18% { scale: 1.07; filter: brightness(1.35) drop-shadow(0 0 28px rgba(255, 45, 95, .85)); } 100% { scale: 1; filter: none; } }
@keyframes intro-grow { to { scale: 1.6; opacity: 0; filter: blur(6px); } }
@keyframes intro-pulse { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: .8; } 100% { opacity: 0; transform: scale(1.1); } }
@keyframes intro-pulse2 { 0% { opacity: 0; transform: scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }

/* ---------- 모바일 하단 ---------- */
.tabbar, .anchor-ad { display: none; }

@media (max-width: 767px) {

  .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .bgrid-item.t-hide { display: flex; }
  .bgrid-item.m-hide { display: none; }
  .popups { pointer-events: auto; }
  .popups-dim { display: block; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
  .popups-row { top: 50%; transform: translate(-50%, -50%); width: min(340px, calc(100vw - 32px)); display: grid; }
  .popup { width: 100%; grid-area: 1 / 1; z-index: calc(10 - var(--i)); }
  .container { padding: 0 16px; }
  .hd-row { height: 56px; gap: 6px; }
  .wordmark { font-size: 20px; }
  .badge19 { width: 24px; height: 24px; border-width: 2.5px; font-size: 10px; }
  .search, .hd-actions .btn, .hd-actions .hide-m { display: none; }
  .icon-btn { display: inline-flex; }
  .hd-actions { gap: 0; }
  .nav { display: none; }
  main.page { padding-top: 12px; gap: 32px; }
  .region-tabs { gap: 20px; margin: 0 -16px; padding: 0 16px; }
  .region-tabs a { font-size: 15px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { height: 34px; padding: 0 12px; flex: none; }
  .hero-main { flex-basis: 100%; padding: 16px; border-radius: 12px; }
  .hero-title { font-size: 20px; line-height: 1.3; }
  .hero-tags, .hero-main .btns { display: none; }
  .hero-side { display: none; }
  .section-head h2, .section-head .count { font-size: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .grid.top { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .grid.top .card { flex: none; width: 150px; }
  .grid.top .rank { font-size: 40px; -webkit-text-stroke: 2px #111; paint-order: stroke fill; text-shadow: none; bottom: -2px; left: 6px; }
  .grid.top .card-sub, .grid.top .tl { display: none; }
  .card-body .avatar { display: none; }
  .card-title { font-size: 13px; }
  .card-sub { display: none; }
  .card-meta { font-size: 11px; }
  .tag { font-size: 10px; padding: 1px 5px; }
  .adcard .thumb .house-d { display: none; }
  .adcard .card-body .btn { display: none; }
  .only-desktop { display: none !important; }
  .only-mobile { display: flex !important; }
  .sort { margin-left: 0; }
  .creators { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .adcontact { padding: 16px; }
  .adcontact .t { font-size: 17px; }
  body { padding-bottom: 130px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #121212; border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--text-2); }
  .tabbar a.on { color: var(--red); }
  .anchor-ad {
    display: flex; position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 49; height: 58px;
    align-items: center; justify-content: center; background: #121212; border-top: 1px solid var(--line);
  }
  .anchor-ad.closed { display: none; }
  .anchor-ad .close { position: absolute; right: 4px; top: -14px; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
  body.anchor-closed { padding-bottom: 72px; }

  .watch { padding-top: 0; gap: 20px; }
  .watch > .watch-main { gap: 14px; }
  .player { margin: 0 -16px; border-radius: 0; }
  .ad-ui .ad-skip { bottom: 16px; right: 10px; height: 36px; font-size: 13px; }
  .ad-ui .ad-label { left: 10px; top: 10px; font-size: 12px; }
  .ad-ui .ad-visit { right: 10px; top: 8px; height: 28px; font-size: 12px; }
  .watch-title { font-size: 18px; font-weight: 800; }
  .creator-row { padding-bottom: 0; border: 0; gap: 10px; }
  .creator-row .avatar { width: 40px; height: 40px; }
  .creator-row .name { flex: 1; min-width: 0; }
  .sns a { width: 44px; height: 44px; }
  .actions { margin: 0 -16px; padding: 0 16px; width: calc(100% + 32px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .actions .btn { flex: none; height: 36px; border: 0; background: var(--bg-2); border-radius: 999px; font-size: 13px; }
  .next-item .thumb { width: 160px; }
  .next-item.ad { flex-direction: column; padding: 0; background: transparent; }
  .next-item.ad .thumb { width: 100%; border: 1px dashed var(--line-2); }
  .gate-box { padding: 32px 24px; }
}
