/* =========================================================
   와작 — 매거진 스타일 테마
   ========================================================= */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --text: #1d1719;
  --text-2: #5f5457;
  --muted: #8e8286;
  --line: #e8e0d6;
  --accent: #6d1a33;        /* 버건디 */
  --accent-2: #8f2744;
  --accent-soft: #f4e7ea;
  --gold: #a8844f;
  --gold-soft: #f3ead9;
  --star: #c9962e;
  --shadow-sm: 0 1px 2px rgba(45, 20, 28, .06);
  --shadow: 0 10px 30px -12px rgba(45, 20, 28, .18);
  --radius: 14px;

  /* 종류별 배경 틴트 */
  --t-red: #f2e4e6;
  --t-white: #f3efdd;
  --t-sparkling: #f1ecde;
  --t-rose: #f8e6ea;
  --t-dessert: #f5ead6;
  --t-fortified: #eee2dc;

  --serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131012;
    --surface: #1c1719;
    --surface-2: #241e21;
    --text: #f3ecee;
    --text-2: #c8bcc0;
    --muted: #978a8f;
    --line: #342b2f;
    --accent: #e0839d;
    --accent-2: #eb9bb1;
    --accent-soft: #3a2029;
    --gold: #d2ae74;
    --gold-soft: #332a1d;
    --star: #e2b34e;
    --shadow-sm: none;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --t-red: #2b1b20;
    --t-white: #28261a;
    --t-sparkling: #29251a;
    --t-rose: #2e1d22;
    --t-dessert: #2d2518;
    --t-fortified: #2a1d19;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* .btn 등의 display 가 hidden 을 덮지 않도록 */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--sans); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.serif { font-family: var(--serif); }

/* ---------------------------------------------------------- 헤더 */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 1280px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo .emblem { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 2px 4px rgba(60, 10, 25, .25)); transition: transform .3s; }
.logo:hover .emblem { transform: rotate(-8deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-family: var(--serif); font-size: 23px; font-weight: 700; color: var(--text); letter-spacing: .06em; }
.logo-text small { font-size: 9px; color: var(--gold); letter-spacing: .24em; margin-top: 4px; font-weight: 600; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 7px 12px; border-radius: 999px; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--accent); background: var(--accent-soft); }
.search {
  flex: 1; max-width: 460px; margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px; height: 40px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { width: 17px; height: 17px; flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: none; color: var(--text); min-width: 0; }
.top-actions { display: flex; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); font-weight: 500; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--text-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.danger { color: #c0392b; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }

main { max-width: 1280px; margin: 0 auto; padding: 28px 24px 80px; }
.foot { max-width: 1280px; margin: 0 auto; padding: 24px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------- 공통 요소 */
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 10px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.section-head h2 { font-family: var(--serif); font-size: 22px; margin: 0; }
.muted { color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2);
}
.badge.kr { background: var(--accent-soft); color: var(--accent); }
.badge.rk { background: var(--text); color: var(--bg); }
.rank-line { margin: -8px 0 16px; font-size: 14px; color: var(--text-2); }
.rank-line b { color: var(--accent); }
.rank-line span { font-size: 12px; color: var(--muted); margin-left: 4px; }
.badge.wz { background: var(--gold-soft); color: var(--gold); }
.badge.ok { background: #e3f1e7; color: #2f7a4b; }
@media (prefers-color-scheme: dark) { .badge.ok { background: #1d3325; color: #7fcf9b; } }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-size: 14px; color: var(--text-2); white-space: nowrap;
}
.chip:hover { border-color: var(--text-2); color: var(--text); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--surface-2); font-size: 13.5px; color: var(--text-2);
}
a.tag { color: var(--accent); background: var(--accent-soft); font-weight: 500; }
a.tag:hover { filter: brightness(.97); }
.stars { position: relative; display: inline-block; color: var(--line); letter-spacing: 1px; white-space: nowrap; line-height: 1; }
.stars span { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--star); }
.empty { text-align: center; color: var(--muted); padding: 80px 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* ---------------------------------------------------------- 홈 히어로 */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px;
  padding: 48px 56px; border-radius: 24px; margin-bottom: 28px;
  background:
    radial-gradient(circle at 85% 20%, rgba(168, 132, 79, .28), transparent 45%),
    linear-gradient(135deg, #4a0f22 0%, #6d1a33 55%, #3b0b1b 100%);
  color: #f7eef0;
}
.hero h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero .lead { color: rgba(247, 238, 240, .78); max-width: 480px; margin: 0 0 26px; }
.hero .eyebrow { color: #d9b77f; }
.stats { display: flex; gap: 32px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.stats span { font-size: 12.5px; color: rgba(247, 238, 240, .7); }
.hero-art { display: flex; justify-content: center; align-items: end; gap: 6px; height: 240px; }
.hero-art svg { height: 100%; width: auto; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .35)); }
.hero-art svg:nth-child(1) { height: 82%; }
.hero-art svg:nth-child(3) { height: 88%; }

/* 컬렉션 타일 */
.collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 36px; }
.coll {
  position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 120px;
  padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; text-align: left; transition: transform .15s, box-shadow .15s, border-color .15s; overflow: hidden;
}
.coll:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.coll.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.coll .ico { position: absolute; top: 14px; right: 16px; font-size: 26px; opacity: .9; }
.coll b { font-family: var(--serif); font-size: 17px; }
.coll span { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------- 탐색 레이아웃 */
.browse { display: grid; grid-template-columns: 232px 1fr; gap: 32px; align-items: start; }
.side { position: sticky; top: 88px; }
.side-toggle { display: none; }
.fgroup { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; margin: 0 -10px;
  border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; color: var(--text-2);
}
.opt:hover { background: var(--surface-2); color: var(--text); }
.opt.on { color: var(--accent); font-weight: 600; background: var(--accent-soft); }
.opt .n { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }
.side select {
  width: 100%; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
}
.reset { font-size: 13px; color: var(--accent); background: none; border: 0; cursor: pointer; padding: 0; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.toolbar .count { color: var(--text-2); font-size: 14px; }
.toolbar .count b { color: var(--text); }
.toolbar select { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filters button {
  height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 12.5px; cursor: pointer; color: var(--text-2);
}

/* ---------------------------------------------------------- 와인 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; height: 210px; display: flex; align-items: end; justify-content: center; padding-top: 18px; }
.card-media .bottle { height: 180px; }
.card-media .bottle svg { height: 100%; width: auto; filter: drop-shadow(0 10px 10px rgba(40, 10, 20, .22)); transition: transform .25s; }
.card:hover .card-media .bottle svg { transform: translateY(-4px) rotate(-2deg); }
.card-media .photo { position: absolute; inset: 12px 12px 0; }
.card-media .photo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; }
.card-media .flags { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 1; }
.card-media .flags .badge { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(4px); }
.card-media .flags .badge.kr { color: var(--accent); }
.card-media .flags .badge.wz { color: var(--gold); }
.card-media .flags .badge.rk { background: var(--accent); color: #fff; }
.card-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; flex: 1; }
.card .winery { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .name { font-family: var(--serif); font-size: 16.5px; line-height: 1.35; margin: 0; font-weight: 600; }
.card .orig { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .origin { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.price { font-weight: 700; font-size: 15.5px; }
.price.none { font-weight: 400; font-size: 13px; color: var(--muted); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; }
.rating i { font-style: normal; color: var(--star); }
.rating small { color: var(--muted); font-weight: 400; }

.more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.more-wrap .btn { height: 44px; padding: 0 28px; }

/* 즐겨찾기 */
.fav {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; font-size: 17px; line-height: 1;
  background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--muted); backdrop-filter: blur(4px);
  transition: transform .15s, color .15s;
}
.fav:hover { transform: scale(1.1); color: var(--accent); }
.fav.on { color: #d6335c; }
.fav:disabled { cursor: default; transform: none; }
.fav.big {
  position: static; width: auto; height: 36px; padding: 0 14px; border-radius: 999px; gap: 6px; display: inline-flex;
  align-items: center; font-size: 16px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 14px;
}
.fav.big span { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.fav.big.on span { color: #d6335c; }

/* 종류별 틴트 */
.t-red { background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--t-red) 60%, #fff0) , var(--t-red)); }
.t-white { background: var(--t-white); }
.t-sparkling { background: var(--t-sparkling); }
.t-rose { background: var(--t-rose); }
.t-dessert { background: var(--t-dessert); }
.t-fortified { background: var(--t-fortified); }

/* ---------------------------------------------------------- 상세 */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.d-hero {
  display: grid; grid-template-columns: 380px 1fr; gap: 44px;
  padding: 0; margin-bottom: 36px;
}
.d-media {
  position: relative; border-radius: 24px; min-height: 460px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.d-media .bottle { height: 380px; }
.d-media .bottle svg { height: 100%; width: auto; filter: drop-shadow(0 22px 22px rgba(40, 10, 20, .28)); }
.d-media .photo { position: absolute; inset: 20px; display: block; }
.d-media .photo img { width: 100%; height: 100%; object-fit: contain; }
.credit { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: var(--muted); background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 2px 8px; border-radius: 999px; }
.credit a { text-decoration: underline; }
@media (prefers-color-scheme: dark) { .card-media .photo img { mix-blend-mode: normal; border-radius: 8px; } }
.d-info { padding-top: 8px; }
.d-info .tagsrow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.d-info .winery { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.d-info h1 { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; margin: 6px 0 6px; letter-spacing: -0.02em; }
.d-info .orig { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.facts-inline { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0 0 24px; list-style: none; color: var(--text-2); font-size: 14.5px; }
.facts-inline li { display: flex; align-items: center; gap: 6px; }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; }
.stat {
  padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.stat h5 { margin: 0 0 6px; font-size: 12px; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.stat .big { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.15; }
.stat .big.range { font-size: 22px; }
.viv-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.viv-line b { font-size: 13.5px; }
.viv-line .stars { font-size: 12px; margin: 0; }
.viv-line span:last-child { color: var(--muted); font-size: 12px; }
.rating.viv { color: var(--text-2); font-weight: 600; }
.rating.viv i { color: var(--muted); }
.stat .big.sm { font-size: 18px; font-family: var(--sans); font-weight: 500; color: var(--muted); }
.stat .note { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.stat .stars { font-size: 16px; margin-top: 4px; }
.admin-row { display: flex; gap: 8px; margin-top: 20px; }

.d-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-family: var(--serif); font-size: 19px; margin: 0 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel p { margin: 0; }
.panel .desc { font-size: 15.5px; line-height: 1.8; color: var(--text-2); }
.sub { font-size: 12px; letter-spacing: .12em; color: var(--muted); margin: 22px 0 10px; font-weight: 600; }
.d-aside { position: sticky; top: 88px; }

/* 맛 프로필 */
.taste { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; gap: 14px; margin: 14px 0; font-size: 13.5px; color: var(--text-2); }
.taste span:last-child { text-align: right; }
.track { position: relative; height: 10px; border-radius: 5px; background: var(--surface-2); }
.track i {
  position: absolute; top: 0; height: 100%; width: 24%; border-radius: 5px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

/* 당도 설명 */
.sweet-box { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--gold-soft); }
.sweet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sweet-head b { font-family: var(--serif); font-size: 16px; }
.sweet-dots { display: inline-flex; gap: 4px; margin-left: auto; }
.sweet-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.sweet-dots i.on { background: var(--gold); }
.sweet-box p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-2); }
.sweet-box p + p { margin-top: 8px; font-size: 13px; }

.more-link { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--accent); font-weight: 600; }

/* 당도 사전 */
.sweet-scale { display: flex; flex-direction: column; }
.sweet-row { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.sweet-row:first-child { border-top: 0; padding-top: 4px; }
.sweet-lv { display: flex; flex-direction: column; gap: 8px; }
.sweet-lv .sweet-dots { margin: 0; }
.sweet-lv b { font-family: var(--serif); font-size: 18px; }
.sweet-row p { margin: 0; color: var(--text-2); line-height: 1.7; }
.sweet-row .sub { margin-top: 12px; }
button.tag.more { border: 1px dashed var(--line); background: none; cursor: pointer; color: var(--accent); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.cols2 .panel + .panel { margin-top: 0; }
.panel + .cols2, .cols2 + .panel { margin-top: 20px; }
.facts.gloss th { width: 150px; }
.facts.gloss th b { display: block; color: var(--text); font-weight: 600; }
.facts.gloss th small { font-size: 11.5px; color: var(--muted); }
.facts.gloss .gl { display: inline-block; min-width: 76px; margin-right: 8px; font-size: 12px; font-weight: 600; color: var(--gold); }
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.method { padding: 16px 18px; border-radius: 12px; background: var(--surface-2); }
.method b { font-family: var(--serif); font-size: 16px; }
.method p { margin: 8px 0; font-size: 14px; line-height: 1.65; color: var(--text-2); }
.method small { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.tips { margin: 0; padding-left: 18px; line-height: 1.8; color: var(--text-2); }
.tips li + li { margin-top: 6px; }
.tips b { color: var(--text); }
@media (max-width: 860px) {
  .sweet-row { grid-template-columns: 1fr; gap: 10px; }
  .cols2 { grid-template-columns: 1fr; }
  .facts.gloss th { width: 120px; }
}

/* 정보 표 */
.facts { width: 100%; border-collapse: collapse; font-size: 14px; }
.facts th { text-align: left; font-weight: 500; color: var(--muted); padding: 10px 0; width: 84px; vertical-align: top; }
.facts td { padding: 10px 0; color: var(--text); }
.facts tr + tr th, .facts tr + tr td { border-top: 1px solid var(--line); }
.facts .tags { gap: 4px; }
.facts a.tag { height: 26px; font-size: 12.5px; }

/* 출처 */
.src { font-size: 13.5px; }
.src li { margin: 6px 0; }
.src a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.src ul { padding-left: 18px; margin: 8px 0 0; }
.warn { font-size: 13px; color: var(--text-2); background: var(--gold-soft); padding: 12px 14px; border-radius: 10px; line-height: 1.55; }

/* 영상 */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.video { display: flex; flex-direction: column; gap: 8px; }
.video .thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.video:hover .thumb img { transform: scale(1.04); }
.video .thumb::after {
  content: "▶"; position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; color: #fff; background: rgba(0, 0, 0, .55);
}
.video span { font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.video small { font-size: 12px; color: var(--gold); font-weight: 600; }

/* 노트 */
.note { padding: 18px 0; border-top: 1px solid var(--line); }
.note:first-of-type { border-top: 0; padding-top: 4px; }
.note-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13.5px; color: var(--muted); }
.note-head b { color: var(--text); font-size: 15px; }
.note-head .del { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.note p { margin: 8px 0 0; white-space: pre-wrap; line-height: 1.7; }

/* ---------------------------------------------------------- 산지 */
.country-sec { margin-bottom: 36px; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.rcard {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; text-align: left; cursor: pointer;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform .15s, box-shadow .15s;
}
.rcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rcard b { font-family: var(--serif); font-size: 17px; }
.rtypes { display: flex; gap: 4px; margin-bottom: 4px; }
.rmeta { font-size: 13px; color: var(--text-2); }
.rgr { font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------- 품종 */
.page-head { margin: 8px 0 26px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 8px; letter-spacing: -0.02em; }
.page-head p { color: var(--text-2); margin: 0; max-width: 620px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gcard {
  display: flex; gap: 16px; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: transform .18s, box-shadow .18s;
}
.gcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gcard svg { width: 46px; height: 56px; flex: none; }
.gcard h3 { font-family: var(--serif); font-size: 18px; margin: 0; }
.gcard .en { font-size: 12.5px; color: var(--muted); }
.gcard .origin { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.gcard .cnt { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 8px; }
.g-hero { display: flex; gap: 26px; align-items: center; padding: 34px 38px; border-radius: 24px; margin-bottom: 26px; }
.g-hero svg { width: 90px; height: 110px; flex: none; }
.g-hero h1 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); margin: 0; }
.g-hero .en { color: var(--text-2); }
.g-red { background: var(--t-red); }
.g-white { background: var(--t-white); }

/* ---------------------------------------------------------- 모달/폼 */
dialog {
  width: min(680px, calc(100% - 32px)); max-height: calc(100% - 40px);
  border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(20, 8, 12, .5); backdrop-filter: blur(3px); }
dialog h2 { font-family: var(--serif); margin: 0 0 20px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
/* 입력칸은 종류와 브라우저에 상관없이 같은 높이·모양 */
.form input:not([type=range]):not([type=checkbox]):not([type=file]), .form select, .form textarea {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0;
  padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
  background-color: var(--bg); color: var(--text); font-size: 15px; font-weight: 400; line-height: 1.4;
}
.form textarea { height: auto; padding: 12px 14px; }
.form select {
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23998d91' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form input[type=number] { -moz-appearance: textfield; }
.form input[type=number]::-webkit-inner-spin-button, .form input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.form input[type=date] { display: flex; align-items: center; }
.form input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.form label.check { gap: 10px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form textarea { min-height: 96px; resize: vertical; }
.form .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.form label.check { flex-direction: row; align-items: center; color: var(--text); }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input { flex: 1; accent-color: var(--accent); padding: 0; }
.range-row output { width: 30px; text-align: right; color: var(--text); font-weight: 600; }
.img-field { display: flex; flex-direction: column; gap: 8px; }
.img-field .lbl { font-size: 13px; color: var(--text-2); font-weight: 500; }
.img-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.img-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.form label.btn { display: inline-flex; flex-direction: row; color: var(--text); font-size: 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.error { color: #c0392b; font-size: 14px; min-height: 1em; margin-top: 8px; }

/* ---------------------------------------------------------- 반응형 */
@media (max-width: 1080px) {
  .d-grid { grid-template-columns: 1fr; }
  .d-aside { position: static; }
  .collections { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .top-inner { flex-wrap: wrap; gap: 10px 14px; padding: 10px 16px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .top-actions { margin-left: auto; }
  .logo-text small { display: none; }
  .logo-text b { font-size: 17px; }
}
@media (max-width: 640px) {
  .logo-text { display: none; }
  .nav a { padding: 6px 8px; font-size: 14px; }
  .nav a { padding: 6px 10px; }
  .top-actions { gap: 6px; }
  .top-actions .btn { height: 34px; padding: 0 12px; font-size: 14px; }
  .top-actions .lg { display: none; }
  main { padding: 20px 16px 60px; }
  .hero { grid-template-columns: 1fr; padding: 32px 24px; }
  .hero-art { display: none; }
  .stats { gap: 22px; }
  .browse { grid-template-columns: 1fr; gap: 0; }
  .side { position: static; margin-bottom: 18px; }
  .side-toggle { display: inline-flex; margin-bottom: 12px; }
  .side-body { display: none; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .side.open .side-body { display: block; }
  .d-hero { grid-template-columns: 1fr; gap: 24px; }
  .d-media { min-height: 340px; }
  .d-media .bottle { height: 290px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; }
  .g-hero { padding: 26px 22px; }
}
@media (max-width: 520px) {
  .stat { padding: 14px 16px; }
  .stat .big.range { font-size: 17px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-media { height: 170px; }
  .card-media .bottle { height: 145px; }
  .card-body { padding: 12px; }
  .card .name { font-size: 15px; }
  .collections { gap: 10px; }
  .coll { min-height: 100px; padding: 14px; }
  .panel { padding: 20px 18px; }
  .taste { grid-template-columns: 58px 1fr 58px; gap: 10px; }
}
