@charset "utf-8";
/* =========================================================
   BLPick — 태국·대만·일본 BL 드라마 & CP 아카이브
   Shared stylesheet
   ========================================================= */

:root {
  --bg: #f7f6fc;
  --bg-deep: #efeef9;
  --surface: #ffffff;
  --text: #17172a;
  --text-soft: #34364d;
  --muted: #6b6d85;
  --line: #e6e3f4;
  --line-strong: #d6d2ec;
  --accent: #5741e8;
  --accent-dark: #3f2dd0;
  --accent-soft: #eeeafd;
  --pink: #e2467f;
  --pink-soft: #fdeaf2;
  --green-soft: #e6f6ec;
  --green: #14764a;
  --amber-soft: #fff4e2;
  --amber: #96601a;
  --shadow: 0 10px 28px rgba(23, 23, 42, 0.06);
  --shadow-lg: 0 22px 60px rgba(23, 23, 42, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1120px;
  --narrow: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.72;
  font-size: 16px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--narrow); margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: #fff; font-size: 13px; font-weight: 900;
  display: grid; place-items: center; letter-spacing: -0.04em;
}
.brand-badge {
  font-size: 11px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 3px 8px; border-radius: 999px;
  letter-spacing: 0;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--text-soft);
  padding: 8px 11px; border-radius: 9px; white-space: nowrap;
}
.nav-links a:hover { background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent-dark); background: var(--accent-soft); }
.nav-toggle {
  display: none; border: 1px solid var(--line-strong); background: #fff;
  border-radius: 9px; padding: 7px 11px; font-size: 13px; font-weight: 700; color: var(--text-soft);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 44px 0 26px; text-align: center; }
.hero .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--pink); background: var(--pink-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 12px; font-size: clamp(25px, 4.4vw, 38px); line-height: 1.3;
  font-weight: 800; letter-spacing: -0.035em;
}
.hero p { margin: 0 auto; max-width: 660px; color: var(--muted); font-size: 15.5px; }

.page-head { padding: 34px 0 10px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(23px, 3.6vw, 32px); letter-spacing: -0.03em; line-height: 1.32; }
.page-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Search ---------- */
.search-wrap { max-width: 700px; margin: 24px auto 12px; position: relative; }
.search-input {
  width: 100%; padding: 16px 96px 16px 20px;
  border: 2px solid var(--line-strong); border-radius: 15px;
  background: var(--surface); font-size: 15px; color: var(--text);
  outline: none; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.search-input::placeholder { color: #9a9cb2; }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(87, 65, 232, 0.1); }
.search-clear {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  border: 0; background: var(--accent-soft); color: var(--accent-dark);
  font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px;
  cursor: pointer; display: none; font-family: inherit;
}
.search-hint {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 11.5px; color: var(--muted); font-weight: 600; pointer-events: none;
}

.quick-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px auto 26px; max-width: 760px; }
.quick-label { font-size: 12px; color: var(--muted); font-weight: 700; align-self: center; margin-right: 2px; }
.chip {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-soft);
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .13s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Filters ---------- */
.filter-bar {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 17px; margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 11px; box-shadow: var(--shadow);
}
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.filter-title { font-size: 12px; font-weight: 800; color: var(--muted); min-width: 54px; letter-spacing: -0.01em; }
.pill {
  border: 1px solid var(--line-strong); background: #fff; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .13s;
}
.pill:hover { border-color: var(--accent); color: var(--accent-dark); }
.pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.result-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px; margin: 4px 2px 14px; font-size: 13.5px; color: var(--muted); font-weight: 600;
}

/* ---------- Card grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px; margin-bottom: 46px;
}
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 19px 19px 16px;
  box-shadow: var(--shadow); color: var(--text);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-lg); text-decoration: none; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.country-tag {
  font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
}
.country-tag.th { background: #eaf3ff; color: #1b5fb8; }
.country-tag.tw { background: #e9f7f2; color: #157a5a; }
.country-tag.jp { background: #fdeaf2; color: #b63066; }
.year-tag { font-size: 12px; color: var(--muted); font-weight: 700; }
.card h2, .card h3 {
  margin: 0; font-size: 18px; line-height: 1.4; font-weight: 800; letter-spacing: -0.025em;
}
.cp-box {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  background: var(--pink-soft); color: #bc2f65;
  font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 8px;
}
.cast { font-size: 13px; color: var(--muted); font-weight: 600; }
.summary { font-size: 14px; color: var(--text-soft); margin: 0; }
.studio-line { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.studio-line b { color: var(--text-soft); font-weight: 700; }
.ott-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.ott-badge {
  font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 7px;
  background: #f1f2f8; color: #3a3c55; white-space: nowrap;
}
.ott-badge.free { background: var(--green-soft); color: var(--green); }
.ott-badge.paid { background: var(--amber-soft); color: var(--amber); }
.empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 18px;
  color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong);
  border-radius: var(--radius); font-size: 15px;
}

/* ---------- Section headings ---------- */
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px; margin: 44px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--line);
}
.section-head h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.section-head p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Guide cards ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 46px; }
.guide-card {
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(160deg, #ffffff 0%, #f6f4ff 100%);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); color: var(--text);
  transition: transform .16s ease, box-shadow .16s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.guide-card .kicker { font-size: 11.5px; font-weight: 800; color: var(--pink); letter-spacing: 0.04em; }
.guide-card h3 { margin: 0; font-size: 18.5px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.4; }
.guide-card p { margin: 0; font-size: 14px; color: var(--text-soft); }
.guide-card .more { margin-top: auto; font-size: 13px; font-weight: 800; color: var(--accent-dark); }

/* ---------- Country sections on home ---------- */
.country-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.country-link {
  flex: 1 1 200px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; color: var(--text); box-shadow: var(--shadow);
}
.country-link:hover { border-color: var(--accent); text-decoration: none; }
.country-link strong { display: block; font-size: 15px; letter-spacing: -0.02em; }
.country-link span { font-size: 12.5px; color: var(--muted); }

/* ---------- Article ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--muted); padding: 20px 0 4px;
}
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .sep { color: var(--line-strong); }
.breadcrumb [aria-current="page"] { color: var(--text-soft); font-weight: 700; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 38px; align-items: start; padding-bottom: 60px; }
.article-main { min-width: 0; }
.article-head { padding: 10px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.article-head h1 {
  margin: 0 0 10px; font-size: clamp(26px, 4vw, 36px); line-height: 1.28;
  font-weight: 800; letter-spacing: -0.04em;
}
.article-head .subtitle { margin: 0 0 14px; font-size: 16px; color: var(--muted); font-weight: 600; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }

.info-table { width: 100%; border-collapse: collapse; margin: 22px 0 26px; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.info-table th, .info-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 128px; background: #faf9ff; color: var(--muted); font-weight: 800; font-size: 13px; white-space: nowrap; }
.info-table td { color: var(--text-soft); }

.prose h2 {
  margin: 40px 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em;
  padding-top: 6px;
}
.prose h2::before {
  content: ""; display: inline-block; width: 5px; height: 17px; margin-right: 9px;
  border-radius: 3px; background: linear-gradient(180deg, var(--accent), var(--pink));
  vertical-align: -2px;
}
.prose h3 { margin: 26px 0 8px; font-size: 17.5px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.prose p { margin: 0 0 15px; font-size: 16px; color: var(--text-soft); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 7px; font-size: 15.5px; color: var(--text-soft); }
.prose strong { color: var(--text); font-weight: 800; }
.prose blockquote {
  margin: 20px 0; padding: 14px 18px; background: var(--accent-soft);
  border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0;
  font-size: 15px; color: var(--text-soft);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .callout {
  margin: 22px 0; padding: 16px 18px; border: 1px solid var(--line-strong);
  background: #fbfaff; border-radius: 12px; font-size: 14.5px; color: var(--text-soft);
}
.prose .callout strong { display: block; margin-bottom: 5px; font-size: 13px; color: var(--accent-dark); letter-spacing: 0.02em; }
.prose .note { font-size: 12.5px; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 14px; }
.prose table th, .prose table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose table th { background: #faf9ff; font-weight: 800; color: var(--text-soft); font-size: 13px; }
.prose table td { color: var(--text-soft); }

.watch-list { list-style: none; padding: 0; margin: 0 0 18px; }
.watch-list li {
  display: grid; grid-template-columns: 108px 1fr; gap: 12px; align-items: start;
  padding: 11px 0; border-bottom: 1px dashed var(--line-strong); font-size: 14.5px;
}
.watch-list li:last-child { border-bottom: 0; }
.watch-name { font-weight: 800; color: var(--text); font-size: 13.5px; }
.watch-status { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; display: inline-block; margin-top: 3px; }
.status-ok { background: var(--green-soft); color: var(--green); }
.status-check { background: var(--amber-soft); color: var(--amber); }

.disclaimer {
  margin: 26px 0 0; padding: 14px 16px; background: var(--bg-deep);
  border-radius: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.65;
}

/* ---------- TOC / sidebar ---------- */
.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.side-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 17px; box-shadow: var(--shadow); font-size: 13.5px;
}
.side-card h2, .side-card h3 {
  margin: 0 0 10px; font-size: 12.5px; font-weight: 800; color: var(--muted);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.toc { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 2px; }
.toc a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--text-soft); font-weight: 600; font-size: 13.5px; }
.toc a:hover { background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; }
.side-cp { font-size: 15px; font-weight: 800; color: var(--pink); }
.side-card dl { margin: 0; display: grid; grid-template-columns: 62px 1fr; gap: 6px 8px; font-size: 13px; }
.side-card dt { color: var(--muted); font-weight: 700; }
.side-card dd { margin: 0; color: var(--text-soft); font-weight: 600; }

/* ---------- Related ---------- */
.related { margin: 46px 0 0; }
.related h2 { font-size: 19px; font-weight: 800; margin: 0 0 14px; letter-spacing: -0.03em; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.related-card {
  display: block; padding: 15px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 13px; color: var(--text);
}
.related-card:hover { border-color: var(--accent); text-decoration: none; }
.related-card .rc-country { font-size: 11px; font-weight: 800; color: var(--accent-dark); }
.related-card strong { display: block; font-size: 14.5px; margin: 4px 0 3px; letter-spacing: -0.02em; }
.related-card span { font-size: 12px; color: var(--muted); }

/* ---------- Policy pages ---------- */
.policy { padding: 10px 0 60px; }
.policy h1 { font-size: clamp(24px, 3.6vw, 32px); letter-spacing: -0.03em; margin: 0 0 10px; }
.policy h2 { font-size: 19px; margin: 34px 0 10px; letter-spacing: -0.02em; }
.policy h3 { font-size: 16px; margin: 22px 0 8px; }
.policy p, .policy li { font-size: 15px; color: var(--text-soft); }
.policy ul { padding-left: 20px; }
.policy .lead { font-size: 16px; color: var(--muted); }
.policy .updated { font-size: 12.5px; color: var(--muted); margin-bottom: 26px; }
.policy table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0 22px; }
.policy table th, .policy table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.policy table th { background: #faf9ff; font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: #fff;
  padding: 30px 0 38px; color: var(--muted); font-size: 13px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-start; }
.footer-brand { font-weight: 800; color: var(--text); font-size: 15px; margin-bottom: 6px; }
.footer-desc { max-width: 420px; line-height: 1.65; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 700; }
.footer-links a { color: var(--text-soft); }
.footer-bottom { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.badge-soft { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .sidebar { position: static; order: 2; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .nav { height: 58px; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 12px; right: 12px; top: 60px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 8px; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: 15px; }
  .brand-badge { display: none; }
  .hero { padding: 30px 0 18px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .search-input { padding: 15px 82px 15px 16px; font-size: 15px; }
  .search-clear { right: 10px; }
  .search-hint { display: none; }
  .filter-bar { padding: 13px 14px; }
  .filter-title { min-width: 100%; }
  .article-head h1 { font-size: 26px; }
  .prose h2 { font-size: 20px; }
  .info-table th { width: 96px; font-size: 12.5px; padding: 10px; }
  .info-table td { font-size: 13.5px; padding: 10px; }
  .watch-list li { grid-template-columns: 1fr; gap: 3px; }
  .footer-inner { flex-direction: column; }
}

@media print {
  .site-header, .sidebar, .site-footer, .related, .breadcrumb { display: none; }
  body { background: #fff; }
}
