:root {
  color-scheme: dark;
  --ink: #f2ecdf;
  --muted: #9f9a91;
  --soft: #6e6961;
  --line: rgba(242, 236, 223, 0.14);
  --panel: #1d1d1b;
  --panel-strong: #242421;
  --bg: #141413;
  --gold: #cb8e4b;
  --gold-light: #e3ad68;
  --sage: #92a688;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--sans); font-size: 14px; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { width: min(1440px, 100%); min-height: 100vh; margin: 0 auto; padding: 0 5.4vw; display: flex; flex-direction: column; }
.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(203, 142, 75, .75); color: var(--gold-light); border-radius: 50%; font-size: 21px; transform: rotate(-22deg); }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { font-size: 15px; letter-spacing: .08em; font-weight: 600; }
.brand-copy small { color: var(--soft); font-family: var(--serif); font-size: 12px; letter-spacing: .02em; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.search-box { width: min(330px, 34vw); height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--muted); transition: border-color .2s, background .2s; }
.search-box:focus-within { border-color: rgba(203, 142, 75, .75); background: rgba(203, 142, 75, .06); }
.search-box span, .dialog-search span { font-size: 22px; line-height: 1; color: var(--gold); transform: rotate(-15deg); }
.search-box input, .dialog-search input { min-width: 0; flex: 1; color: var(--ink); border: 0; outline: 0; background: transparent; }
.search-box input::placeholder, .dialog-search input::placeholder { color: #77736c; }
kbd { color: #77736c; font-size: 11px; border: 1px solid var(--line); padding: 2px 5px; }
.icon-button { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--gold-light); cursor: pointer; font-size: 22px; line-height: 1; text-decoration: none; transition: background .2s, border-color .2s; }
.icon-button:hover { background: rgba(203, 142, 75, .1); border-color: var(--gold); }
.icon-button.is-current { border-color: rgba(203,142,75,.65); background: rgba(203,142,75,.08); }
main { flex: 1; }
.intro-section { padding: 79px 0 58px; max-width: 760px; }
.eyebrow, .step-label, .dock-kicker { color: var(--gold-light); font-size: 10px; letter-spacing: .2em; font-weight: 600; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 24px; height: 1px; background: var(--gold); }
h1, h2, p { margin: 0; }
h1 { margin-top: 15px; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.03em; font-weight: 500; }
h1 em { color: var(--gold-light); font-family: var(--serif); font-style: italic; font-weight: 400; }
.intro-section p { margin-top: 22px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.workspace { padding-bottom: 46px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin-top: 7px; font-size: 20px; font-weight: 500; letter-spacing: .01em; }
.selection-count { color: var(--muted); font-size: 12px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 15px; }
.category-card { position: relative; display: flex; flex-direction: column; min-height: 170px; padding: 0; overflow: hidden; border: 1px solid var(--line); background: var(--panel); text-align: left; cursor: pointer; transition: border-color .22s, transform .22s, background .22s; }
.category-card:hover { border-color: rgba(203, 142, 75, .68); transform: translateY(-3px); }
.category-card.is-active { border-color: var(--gold); box-shadow: inset 0 2px 0 var(--gold); background: var(--panel-strong); }
.category-image { height: 98px; display: block; opacity: .76; background-size: cover; background-position: center; mix-blend-mode: screen; }
.base-image { background-image: linear-gradient(90deg, rgba(30,28,23,.5), rgba(30,28,23,.08)), url("https://images.unsplash.com/photo-1551024709-8f23befc6f87?auto=format&fit=crop&w=800&q=80"); }
.liqueur-image { background-image: linear-gradient(90deg, rgba(30,28,23,.5), rgba(30,28,23,.08)), url("https://images.unsplash.com/photo-1513558161293-cdaf765ed2fd?auto=format&fit=crop&w=800&q=80"); }
.wine-image { background-image: linear-gradient(90deg, rgba(30,28,23,.55), rgba(30,28,23,.12)), url("https://images.unsplash.com/photo-1510812431401-41d2bd2722f3?auto=format&fit=crop&w=800&q=80"); }
.beer-image { background-image: linear-gradient(90deg, rgba(30,28,23,.52), rgba(30,28,23,.08)), url("https://images.unsplash.com/photo-1515003197210-e0cd71810b5f?auto=format&fit=crop&w=800&q=80"); }
.chinese-image { background-image: linear-gradient(90deg, rgba(30,28,23,.52), rgba(30,28,23,.08)), url("https://images.unsplash.com/photo-1569529465841-dfecdab7503b?auto=format&fit=crop&w=800&q=80"); }
.mixer-image { background-image: linear-gradient(90deg, rgba(30,28,23,.5), rgba(30,28,23,.06)), url("https://images.unsplash.com/photo-1544145945-f90425340c7e?auto=format&fit=crop&w=800&q=80"); }
.category-content { display: flex; flex-direction: column; gap: 5px; padding: 13px 15px 14px; }
.category-content strong { font-size: 14px; font-weight: 500; }
.category-content small { color: var(--soft); font-family: var(--serif); font-size: 11px; }
.category-arrow { position: absolute; top: 109px; right: 14px; color: var(--gold-light); font-size: 18px; opacity: .6; }
.selection-dock { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border: 1px solid var(--line); background: rgba(203, 142, 75, .055); }
.dock-copy { display: flex; flex-direction: column; gap: 5px; }
.dock-copy strong { font-size: 16px; font-weight: 500; }
.dock-copy > span:last-child { color: var(--muted); font-size: 12px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 46px; padding: 0 20px; border: 1px solid var(--gold); background: var(--gold); color: #211a12; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.primary-button:hover { background: var(--gold-light); }
.site-footer { display: flex; justify-content: space-between; padding: 25px 0 28px; color: var(--soft); font-size: 11px; letter-spacing: .04em; }
.search-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; color: var(--ink); border: 1px solid rgba(203,142,75,.6); background: #20201d; box-shadow: 0 20px 80px rgba(0,0,0,.5); }
.search-dialog::backdrop { background: rgba(0,0,0,.7); }
.search-dialog-inner { position: relative; display: flex; flex-direction: column; padding: 36px; }
.dialog-close { position: absolute; top: 16px; right: 16px; border: 0; color: var(--muted); background: transparent; font-size: 24px; cursor: pointer; }
.search-dialog h2 { margin-top: 14px; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.search-dialog p { margin-top: 8px; color: var(--muted); line-height: 1.7; }
.dialog-search { display: flex; align-items: center; gap: 10px; margin-top: 27px; padding: 0 12px; height: 48px; border: 1px solid var(--line); }
.dialog-submit { margin-top: 12px; }
@media (max-width: 820px) {
  .app-shell { padding: 0 20px; }
  .site-header { height: 76px; }
  .header-actions { gap: 9px; }
  .search-box { width: 42px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .search-box input, .search-box kbd { display: none; }
  .intro-section { padding: 58px 0 45px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { min-height: 155px; }
  .category-image { height: 84px; }
  .category-arrow { top: 95px; }
  .selection-dock { align-items: flex-start; flex-direction: column; }
  .primary-button { width: 100%; }
}
@media (max-width: 480px) {
  h1 { font-size: 41px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 128px; display: grid; grid-template-columns: 118px 1fr; }
  .category-image { height: 100%; }
  .category-content { justify-content: center; padding: 15px 17px; }
  .category-arrow { top: 50%; right: 17px; transform: translateY(-50%); }
  .site-footer { flex-direction: column; gap: 7px; }
}

/* Material selection */
.materials-main { padding-top: 28px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--soft); font-size: 11px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb strong { color: var(--gold-light); font-weight: 500; }
.materials-intro { min-height: 220px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: stretch; margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.materials-intro > div:first-child { display: flex; flex-direction: column; justify-content: center; padding: 32px 5vw 32px 0; }
.materials-intro h1 { margin-top: 9px; font-size: clamp(34px, 4.2vw, 56px); }
.materials-intro p { margin-top: 14px; color: var(--muted); line-height: 1.7; }
.materials-photo { min-height: 220px; background-image: linear-gradient(90deg, var(--bg), rgba(20,20,19,.08)), url("https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&w=1000&q=82"); background-size: cover; background-position: center 58%; filter: saturate(.72); }
.materials-workspace { display: grid; grid-template-columns: 210px minmax(0, 1fr) 250px; gap: 0; margin-top: 26px; border: 1px solid var(--line); background: var(--panel); }
.category-sidebar { padding: 22px 14px; border-right: 1px solid var(--line); }
.sidebar-title { padding: 0 10px 12px; color: var(--soft); font-size: 10px; letter-spacing: .12em; }
.sidebar-category { width: 100%; min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; border: 0; border-left: 2px solid transparent; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.sidebar-category:hover { color: var(--ink); background: rgba(255,255,255,.025); }
.sidebar-category.is-active { color: var(--ink); border-left-color: var(--gold); background: rgba(203,142,75,.075); }
.sidebar-category small { color: var(--soft); }
.back-link { display: flex; align-items: center; gap: 7px; margin: 22px 10px 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--soft); font-size: 11px; text-decoration: none; }
.back-link:hover { color: var(--gold-light); }
.ingredient-panel { min-width: 0; padding: 24px; }
.ingredient-panel-heading, .summary-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.panel-kicker { color: var(--gold-light); font-size: 9px; letter-spacing: .17em; }
.ingredient-panel-heading h2, .summary-heading h2 { margin-top: 5px; font-size: 18px; font-weight: 500; }
.ingredient-search { width: min(220px, 42%); height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); color: var(--gold); }
.ingredient-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.ingredient-search input::placeholder { color: var(--soft); }
.ingredient-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding-top: 18px; }
.ingredient-item { position: relative; min-height: 72px; display: grid; grid-template-columns: 38px minmax(0,1fr) 20px; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.012); cursor: pointer; transition: border-color .18s, background .18s; }
.ingredient-item:hover { border-color: rgba(203,142,75,.55); }
.ingredient-item.is-selected { border-color: var(--gold); background: rgba(203,142,75,.075); }
.ingredient-symbol { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(203,142,75,.28); border-radius: 50%; color: var(--gold-light); font-family: var(--serif); font-size: 16px; }
.ingredient-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.ingredient-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; }
.ingredient-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--soft); font-family: var(--serif); font-size: 10px; }
.ingredient-check { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line); color: transparent; font-size: 11px; }
.ingredient-item.is-selected .ingredient-check { border-color: var(--gold); background: var(--gold); color: #211a12; }
.empty-state { padding: 34px 0; color: var(--soft); text-align: center; }
.selection-summary { display: flex; min-width: 0; flex-direction: column; padding: 24px 18px; border-left: 1px solid var(--line); background: #191917; }
.summary-heading strong { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(203,142,75,.45); color: var(--gold-light); font-family: var(--serif); font-size: 17px; font-weight: 400; }
.selected-list { flex: 1; min-height: 230px; max-height: 340px; overflow: auto; padding: 12px 0; }
.selected-empty { padding: 24px 0; color: var(--soft); font-size: 12px; text-align: center; }
.selected-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid rgba(242,236,223,.07); font-size: 12px; }
.selected-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remove-ingredient { border: 0; background: transparent; color: var(--soft); cursor: pointer; font-size: 17px; }
.remove-ingredient:hover { color: var(--gold-light); }
.summary-footer { padding-top: 14px; border-top: 1px solid var(--line); }
.clear-button { padding: 0 0 12px; border: 0; background: transparent; color: var(--soft); font-size: 11px; cursor: pointer; }
.clear-button:hover { color: var(--ink); }
.recommendation-button { width: 100%; }
.recommendation-button:disabled { border-color: #4b4740; background: #35332f; color: #77736c; cursor: not-allowed; }
.summary-footer p { margin-top: 9px; color: var(--soft); font-size: 10px; text-align: center; }
@media (max-width: 1050px) {
  .materials-workspace { grid-template-columns: 175px minmax(0, 1fr); }
  .selection-summary { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); border-left: 0; }
  .selected-list { min-height: 80px; max-height: 150px; }
  .summary-footer { align-self: end; }
}
@media (max-width: 720px) {
  .materials-intro { grid-template-columns: 1fr; }
  .materials-intro > div:first-child { padding-right: 0; }
  .materials-photo { min-height: 130px; }
  .materials-workspace { display: block; }
  .category-sidebar { display: flex; gap: 6px; overflow-x: auto; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-title, .back-link { display: none; }
  .sidebar-category { width: auto; min-width: max-content; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); }
  .sidebar-category.is-active { border-color: var(--gold); }
  .sidebar-category small { display: none; }
  .ingredient-grid { grid-template-columns: 1fr; }
  .ingredient-panel { padding: 19px 14px; }
  .ingredient-panel-heading { align-items: flex-start; flex-direction: column; }
  .ingredient-search { width: 100%; }
  .selection-summary { display: flex; padding: 20px 14px; }
}

.beverages-photo { min-height: 220px; background-image: linear-gradient(90deg, var(--bg), rgba(20,20,19,.08)), url("https://images.unsplash.com/photo-1621873495884-845a939892d1?auto=format&fit=crop&w=1000&q=82"); background-size: cover; background-position: center; filter: saturate(.78); }
.assumed-ice { min-height: 60px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; margin-top: 17px; padding: 10px 12px; border: 1px solid rgba(146,166,136,.36); background: rgba(146,166,136,.06); }
.assumed-ice > span:first-child { color: #b6c8ad; font-size: 18px; }
.assumed-ice > div { display: flex; flex-direction: column; gap: 3px; }
.assumed-ice strong { font-size: 12px; font-weight: 500; }
.assumed-ice small, .assumed-ice > span:last-child { color: var(--soft); font-size: 9px; }
.assumed-ice > span:last-child { padding: 4px 7px; border: 1px solid rgba(146,166,136,.3); color: #b6c8ad; }
.assumed-selected small { color: #b6c8ad; font-size: 9px; }
@media (max-width: 720px) {
  .beverages-photo { min-height: 130px; }
}

/* Recommendation results */
.results-main { padding-top: 28px; }
.results-intro { min-height: 210px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.results-intro h1 { margin-top: 10px; font-size: clamp(38px, 4.7vw, 64px); }
.results-intro p { margin-top: 16px; color: var(--muted); line-height: 1.7; }
.edit-bar-link { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; white-space: nowrap; }
.edit-bar-link:hover { border-color: var(--gold); color: var(--gold-light); }
.edit-bar-link > span:first-child { color: var(--gold); font-size: 19px; }
.filter-bar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 15px 18px; margin-top: 22px; border: 1px solid var(--line); background: var(--panel); }
.taste-filter, .abv-filter { display: flex; align-items: center; gap: 10px; }
.filter-label { margin-right: 4px; color: var(--soft); font-size: 10px; letter-spacing: .1em; white-space: nowrap; }
.taste-options { display: flex; align-items: center; gap: 5px; }
.filter-option { height: 34px; padding: 0 12px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.filter-option:hover { color: var(--ink); }
.filter-option.is-active { border-color: var(--gold); background: rgba(203,142,75,.09); color: var(--gold-light); }
.abv-filter label { width: 65px; height: 36px; display: flex; align-items: center; padding: 0 8px; border: 1px solid var(--line); }
.abv-filter input { width: 35px; border: 0; outline: 0; background: transparent; color: var(--ink); text-align: right; }
.abv-filter input::-webkit-inner-spin-button { appearance: none; }
.abv-filter label span, .range-divider { color: var(--soft); font-size: 11px; }
.result-section { padding: 48px 0 12px; }
.result-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.result-section-heading > div { display: flex; align-items: flex-start; gap: 11px; }
.status-dot { width: 7px; height: 7px; display: block; margin-top: 7px; border-radius: 50%; }
.status-dot.available { background: var(--sage); box-shadow: 0 0 0 4px rgba(146,166,136,.1); }
.status-dot.missing { background: #bd765e; box-shadow: 0 0 0 4px rgba(189,118,94,.1); }
.result-section-heading h2 { font-size: 19px; font-weight: 500; }
.result-section-heading p { margin-top: 4px; color: var(--soft); font-size: 11px; }
.result-count { color: var(--muted); font-family: var(--serif); font-size: 13px; }
.cocktail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 18px; }
.cocktail-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: transform .2s, border-color .2s; }
.cocktail-card:hover { transform: translateY(-3px); border-color: rgba(203,142,75,.52); }
.cocktail-photo-link { position: relative; display: block; height: 190px; overflow: hidden; color: inherit; text-decoration: none; background: #292824; }
.cocktail-photo-link::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, transparent 55%, rgba(10,10,9,.5)); pointer-events: none; }
.cocktail-photo-link img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.83) contrast(1.04); transition: transform .35s; }
.cocktail-card:hover img { transform: scale(1.025); }
.availability-badge, .abv-badge { position: absolute; z-index: 1; top: 12px; min-height: 26px; display: inline-flex; align-items: center; padding: 0 9px; font-size: 10px; backdrop-filter: blur(8px); }
.availability-badge { left: 12px; }
.available-badge { background: rgba(29,42,30,.86); color: #b6c8ad; border: 1px solid rgba(146,166,136,.5); }
.missing-badge { background: rgba(55,31,25,.88); color: #dc9d87; border: 1px solid rgba(189,118,94,.52); }
.abv-badge { right: 12px; background: rgba(16,16,15,.76); border: 1px solid rgba(242,236,223,.2); color: var(--ink); font-family: var(--serif); }
.online-source-badge { position: absolute; z-index: 1; left: 12px; bottom: 12px; min-height: 25px; display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid rgba(203,142,75,.45); background: rgba(24,22,18,.82); color: var(--gold-light); font-size: 9px; }
.cocktail-card-body { padding: 16px; }
.cocktail-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cocktail-card-title h3 { margin: 0; font-size: 16px; font-weight: 500; }
.cocktail-card-title > div > span { display: block; margin-top: 4px; color: var(--soft); font-family: var(--serif); font-size: 11px; }
.favorite-button { flex: 0 0 auto; width: 31px; height: 31px; border: 1px solid var(--line); background: transparent; color: var(--gold-light); cursor: pointer; font-size: 18px; }
.favorite-button.is-favorite { border-color: rgba(203,142,75,.6); background: rgba(203,142,75,.09); }
.taste-tags { min-height: 24px; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.taste-tags span { padding: 4px 7px; border: 1px solid rgba(242,236,223,.1); color: var(--muted); font-size: 9px; }
.card-footer { display: grid; grid-template-columns: auto minmax(0,1fr) 23px; align-items: center; gap: 8px; min-height: 37px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(242,236,223,.08); }
.match-percent { color: var(--gold-light); font-family: var(--serif); font-size: 11px; white-space: nowrap; }
.card-note { overflow: hidden; color: var(--soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.card-footer a { color: var(--gold-light); font-size: 16px; text-align: right; text-decoration: none; }
.result-empty { margin-top: 18px; padding: 28px; border: 1px dashed var(--line); color: var(--soft); text-align: center; }
@media (max-width: 960px) {
  .filter-bar { align-items: flex-start; flex-direction: column; }
  .taste-options { flex-wrap: wrap; }
  .cocktail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .results-intro { align-items: flex-start; flex-direction: column; justify-content: center; padding: 35px 0; }
  .filter-bar { padding: 14px; }
  .taste-filter { align-items: flex-start; flex-direction: column; }
  .cocktail-grid { grid-template-columns: 1fr; }
  .cocktail-photo-link { height: 210px; }
  .abv-filter { width: 100%; }
  .result-section { padding-top: 36px; }
}

/* Cocktail detail and search */
.detail-nav { height: 62px; display: flex; align-items: center; justify-content: space-between; color: var(--soft); border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .08em; }
.detail-nav a { display: flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.detail-nav a:hover { color: var(--gold-light); }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); min-height: 620px; border-bottom: 1px solid var(--line); }
.detail-photo-wrap { position: relative; min-height: 620px; overflow: hidden; background: #262521; }
.detail-photo-wrap::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, transparent 70%, rgba(10,10,9,.68)); pointer-events: none; }
.detail-photo-wrap img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); }
.detail-photo-caption { position: absolute; z-index: 1; left: 22px; bottom: 18px; color: rgba(242,236,223,.78); font-family: var(--serif); font-size: 11px; letter-spacing: .05em; }
.detail-copy { display: flex; flex-direction: column; justify-content: center; padding: 56px 0 56px 5.4vw; }
.detail-overline { display: flex; align-items: center; gap: 12px; color: #b6c8ad; font-size: 10px; letter-spacing: .08em; }
.detail-overline span { padding: 6px 8px; border: 1px solid rgba(146,166,136,.42); }
.detail-overline .has-missing { color: #dc9d87; border-color: rgba(189,118,94,.5); }
.detail-overline span:last-child { color: var(--gold-light); border-color: rgba(203,142,75,.4); font-family: var(--serif); }
.detail-copy h1 { margin-top: 25px; font-size: clamp(52px, 6.3vw, 88px); }
.detail-english { margin-top: 6px; color: var(--gold-light); font-family: var(--serif); font-size: 27px; font-style: italic; }
.detail-tastes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.detail-tastes span { padding: 5px 9px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.detail-intro { max-width: 490px; margin-top: 22px; color: var(--muted); line-height: 2; }
.detail-actions { display: flex; align-items: center; gap: 10px; margin-top: 35px; }
.detail-favorite { width: auto; }
.detail-favorite.is-favorite { background: var(--gold-light); }
.detail-information { display: grid; grid-template-columns: 280px minmax(0,1fr); border-bottom: 1px solid var(--line); }
.abv-display { padding: 48px 38px 48px 0; border-right: 1px solid var(--line); }
.abv-display > div { display: flex; align-items: flex-start; margin-top: 12px; }
.abv-display strong { font-family: var(--serif); font-size: 78px; font-weight: 400; line-height: 1; }
.abv-display > div span { margin: 8px 0 0 5px; color: var(--gold-light); font-family: var(--serif); font-size: 25px; }
.abv-display p { margin-top: 11px; color: var(--soft); }
.ingredient-detail-panel { padding: 48px 0 48px 5.4vw; }
.ingredient-detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.ingredient-detail-heading h2, .detail-more h2 { margin-top: 6px; font-size: 20px; font-weight: 500; }
.ingredient-detail-heading > span { color: var(--muted); font-size: 11px; }
.detail-ingredient-row { min-height: 58px; display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid rgba(242,236,223,.08); }
.detail-ingredient-row strong { font-size: 13px; font-weight: 500; }
.detail-ingredient-row strong small { display: block; margin-top: 3px; color: var(--soft); font-family: var(--serif); font-size: 9px; font-weight: 400; }
.detail-ingredient-row > span:last-child { color: var(--muted); font-family: var(--serif); }
.ingredient-state { min-height: 23px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 9px; }
.ingredient-state.owned { color: #b6c8ad; border-color: rgba(146,166,136,.45); }
.ingredient-state.needed { color: #dc9d87; border-color: rgba(189,118,94,.48); }
.ingredient-state.optional { color: var(--soft); }
.optional-note { margin-top: 13px; color: var(--soft); font-size: 10px; }
.detail-more { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 5.4vw; padding: 46px 0 52px; }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); }
.related-list a { position: relative; min-height: 94px; display: flex; flex-direction: column; justify-content: center; padding: 15px 36px 15px 17px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.related-list a:hover { background: rgba(203,142,75,.06); }
.related-list small { margin-top: 5px; color: var(--soft); font-family: var(--serif); }
.related-list b { position: absolute; top: 15px; right: 14px; color: var(--gold-light); font-weight: 400; }
.detail-not-found { flex: 1; padding: 15vh 0; text-align: center; }
.detail-not-found h1 { margin-top: 12px; }
.detail-not-found p { margin: 14px 0 30px; color: var(--muted); }
.search-results-main { flex: 1; padding-top: 28px; }
.search-results-heading { padding: 64px 0 36px; border-bottom: 1px solid var(--line); }
.search-results-heading h1 { margin-top: 10px; font-size: clamp(36px, 4.4vw, 58px); }
.search-results-heading h1 em { color: var(--gold-light); font-family: var(--serif); font-style: italic; font-weight: 400; }
.search-results-heading p { margin-top: 14px; color: var(--muted); }
.search-result-grid { padding: 22px 0 48px; }
.search-card-arrow { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold-light); text-decoration: none; }
.search-card-intro { display: -webkit-box; min-height: 43px; margin-top: 13px; overflow: hidden; color: var(--soft); font-size: 11px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.search-no-result { padding: 80px 0; text-align: center; }
.search-no-result h2 { font-size: 24px; font-weight: 500; }
.search-no-result p { margin: 12px 0 25px; color: var(--muted); }
@media (max-width: 900px) {
  .detail-hero { grid-template-columns: 1fr; }
  .detail-photo-wrap { min-height: 520px; }
  .detail-copy { padding: 48px 0; }
  .detail-information { grid-template-columns: 190px minmax(0,1fr); }
  .abv-display { padding-right: 20px; }
  .ingredient-detail-panel { padding-left: 32px; }
  .detail-more { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .detail-photo-wrap { min-height: 430px; }
  .detail-copy h1 { font-size: 52px; }
  .detail-actions { align-items: stretch; flex-direction: column; }
  .detail-information { grid-template-columns: 1fr; }
  .abv-display { padding: 35px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .ingredient-detail-panel { padding: 35px 0; }
  .ingredient-detail-heading { align-items: flex-start; flex-direction: column; }
  .related-list { grid-template-columns: 1fr; }
  .detail-nav > span { display: none; }
}

/* Favorites */
.favorites-main { flex: 1; padding-top: 28px; }
.favorites-heading { min-height: 224px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.favorites-heading h1 { margin-top: 10px; font-size: clamp(42px, 5vw, 66px); }
.favorites-heading p { margin-top: 15px; color: var(--muted); }
.favorites-filter { margin-bottom: 0; }
.favorite-content { padding: 42px 0 50px; }
.favorite-list-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.favorite-list-heading > div { display: flex; align-items: center; gap: 11px; }
.favorite-list-heading h2 { font-size: 19px; font-weight: 500; }
.favorite-list-heading > span { color: var(--muted); font-family: var(--serif); }
.favorite-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(242,236,223,.08); color: var(--soft); font-size: 10px; }
.favorite-card-footer a { color: var(--gold-light); text-decoration: none; }
.favorites-empty { padding: 95px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.empty-heart { display: block; color: var(--gold-light); font-family: var(--serif); font-size: 54px; line-height: 1; }
.favorites-empty h2 { margin-top: 18px; font-size: 24px; font-weight: 500; }
.favorites-empty p { margin: 11px auto 26px; color: var(--muted); }
.favorites-empty .primary-button { width: auto; text-decoration: none; }
.clear-filters-button { min-height: 39px; padding: 0 15px; border: 1px solid var(--gold); background: transparent; color: var(--gold-light); cursor: pointer; }
@media (max-width: 720px) {
  .favorites-heading { align-items: flex-start; flex-direction: column; justify-content: center; padding: 38px 0; }
}
