/* ============================================
   CHILLI PICK — luxe modern 2026
   ============================================ */

:root {
  --bg: #0a0608;
  --bg-2: #110a0a;
  --surface: #181012;
  --surface-2: #1f1518;
  --border: #2a1c1e;
  --border-2: #3a2729;
  --text: #f4ece4;
  --text-muted: #b9a89e;
  --text-dim: #7a6660;
  --gold: #e8623a;
  --gold-bright: #ff7a4f;
  --gold-soft: rgba(232, 98, 58, 0.16);
  --accent: #e8623a;
  --heat: #ff5c2e;
  --heat-soft: rgba(255, 92, 46, 0.16);
  --danger: #d4574b;
  --card-text: rgba(255,255,255,0.96);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 8px 32px rgba(0,0,0,0.35);
  --shadow-strong: 0 24px 64px rgba(0,0,0,0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 800px at 10% -10%, rgba(232,98,58,0.05), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(180,40,40,0.04), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #000;
  padding: 8px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ============================================
   NAV
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  background: rgba(8,5,5,0.94);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  font-style: italic;
  box-shadow: 0 4px 16px rgba(232,98,58,0.25);
}
.brand__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.search {
  position: relative;
  flex: 1;
  max-width: 360px;
  margin: 0 8px;
}
.search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  transition: color 0.25s var(--ease);
}
.search input {
  width: 100%;
  padding: 9px 36px 9px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: all 0.25s var(--ease);
}
.search input::placeholder { color: var(--text-dim); }
.search input:focus {
  background: var(--surface-2);
  border-color: var(--gold);
}
.search input:focus ~ .search__icon { color: var(--gold); }
.search:focus-within .search__icon { color: var(--gold); }
.search__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.search__clear:hover { background: var(--surface-2); color: var(--text); }

.type-toggle {
  position: relative;
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.type-toggle__btn {
  position: relative;
  z-index: 2;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.4s var(--ease);
}
.type-toggle__btn.is-active { color: #1a1408; }
.type-toggle__pill {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-radius: 999px;
  transition: transform 0.5s var(--ease-spring);
  z-index: 1;
  box-shadow: 0 2px 12px rgba(232,98,58,0.35);
}
.type-toggle[data-type="paste"] .type-toggle__pill {
  transform: translateX(100%);
}

.watchlist-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: all 0.3s var(--ease);
}
.watchlist-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}
.watchlist-btn__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1408;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.3s var(--ease-spring);
}
.watchlist-btn__count.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  padding: 110px 32px 88px;
  overflow: hidden;
  max-height: 700px;
  transition: max-height 0.6s var(--ease), padding 0.5s var(--ease), opacity 0.4s var(--ease);
}
body.is-scrolled .hero {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orbFloat 18s ease-in-out infinite;
}
.hero__orb--1 {
  width: 540px; height: 540px;
  top: -140px; left: -80px;
  background: radial-gradient(circle, rgba(232,98,58,0.18), transparent 70%);
}
.hero__orb--2 {
  width: 440px; height: 440px;
  top: 60px; right: -120px;
  background: radial-gradient(circle, rgba(180,40,40,0.16), transparent 70%);
  animation-delay: -9s;
}
.hero__orb--3 {
  width: 320px; height: 320px;
  top: 140px; left: 42%;
  background: radial-gradient(circle, rgba(140,30,60,0.12), transparent 70%);
  animation-delay: -4s;
  filter: blur(80px);
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: orbFloat 18s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.08); }
}
.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 28px;
  padding: 7px 16px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  background: rgba(232,98,58,0.04);
}
.hero__stat::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: statPulse 2s ease-in-out infinite;
}
@keyframes statPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 auto 44px;
  max-width: 540px;
}
.hero__actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-secondary {
  font-size: 14px;
  color: var(--text-muted);
  padding: 14px 4px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: all 0.25s var(--ease);
}
.cta-secondary:hover {
  color: var(--text);
  border-bottom-color: var(--gold);
}

.cta-pick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 8px 28px rgba(232,98,58,0.28);
}
.cta-pick:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(232,98,58,0.4);
}
.cta-pick:active { transform: translateY(0); }
.cta-pick svg { transition: transform 0.3s var(--ease); }
.cta-pick:hover svg { transform: translateX(4px); }

/* ============================================
   FILTERS
   ============================================ */

.filters {
  position: sticky;
  top: 73px;
  z-index: 40;
  background:
    linear-gradient(180deg,
      rgba(15,8,8,0.85) 0%,
      rgba(12,7,7,0.6) 70%,
      rgba(10,6,6,0) 100%);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border-bottom: none;
  box-shadow: none;
}

.filters__bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  row-gap: 10px;
  box-sizing: border-box;
}
.filters__bar > * { align-self: center; line-height: 1; }
.filter-pop, .filter-trigger, .sort, .sort__trigger { flex-shrink: 0; }
.filter-trigger, .sort__trigger { height: 36px; box-sizing: border-box; }

.filter-pop {
  position: relative;
}

.filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease);
}
.filter-trigger:hover {
  border-color: var(--border-2);
  color: var(--text);
  background: var(--surface-2);
}
.filter-trigger[aria-expanded="true"] {
  background: var(--surface-2);
  border-color: var(--gold);
  color: var(--gold-bright);
}
.filter-trigger.has-active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-bright);
}
.filter-trigger svg {
  transition: transform 0.3s var(--ease);
}
.filter-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.filter-trigger__count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  background: var(--gold);
  color: #1a1408;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.filter-trigger__count[hidden] { display: none; }

.filter-pop__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 35;
  min-width: 280px;
  max-width: 420px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  animation: popIn 0.2s var(--ease);
}
.filter-pop__menu[hidden] { display: none; }
.filter-pop__menu--narrow {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.filter-pop__menu .chips {
  max-width: 100%;
}
.filter-pop__menu .range-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.filters__bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.select--compact select {
  padding: 7px 26px 7px 12px;
  font-size: 13px;
}
.btn--compact {
  padding: 7px 14px;
  font-size: 12px;
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-group--inline {
  gap: 16px;
}
.filter-group--right {
  justify-content: flex-end;
}
.filter-group__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  width: 70px;
  flex-shrink: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip:hover {
  border-color: var(--border-2);
  color: var(--text);
  transform: translateY(-1px);
}
.chip.is-active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-bright);
}
.chip--ghost {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-2);
}

.range-panel {
  width: 100%;
  margin-top: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.range-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.range-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.range-row input {
  width: 90px;
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  color: var(--text);
  outline: none;
}
.range-row input:focus {
  border-color: var(--gold);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.switch input {
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  position: relative;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.switch input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--text-muted);
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.switch input:checked {
  background: var(--gold-soft);
  border-color: var(--gold);
}
.switch input:checked::after {
  background: var(--gold);
  transform: translateX(16px);
}
.switch input:checked + span { color: var(--text); }

.select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: 7px 14px 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.select:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
}
.select__icon {
  color: var(--text-muted);
  flex-shrink: 0;
}
.select__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.select select {
  padding: 0 18px 0 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a95' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  cursor: pointer;
  outline: none;
}
.select--compact { padding: 7px 14px 7px 12px; }
.select--compact select { font-size: 13px; }

.btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-muted);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  font-weight: 600;
}
.btn--primary:hover { transform: translateY(-1px); }

/* ============================================
   RESULTS GRID
   ============================================ */

.results {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 32px 40px;
}
.results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.results__count {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.01em;
}
.results__hint {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s var(--ease);
  isolation: isolate;
  animation: cardIn 0.6s var(--ease) backwards;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.card__poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.card__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 35%,
    rgba(10,10,12,0.4) 65%,
    rgba(10,10,12,0.95) 100%);
  z-index: 2;
}

/* Typographic poster fallback */
.card__poster--typo {
  display: flex;
  align-items: flex-start;
  padding: 24px 22px;
  font-family: var(--serif);
  color: rgba(255,255,255,0.92);
}
.card__poster--typo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(120% 60% at 80% 0%, rgba(255,255,255,0.08), transparent 50%),
    radial-gradient(80% 60% at 20% 100%, rgba(0,0,0,0.4), transparent 50%);
  z-index: 1;
}
.card__poster-title {
  position: relative;
  z-index: 2;
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.01em;
  word-break: break-word;
  hyphens: auto;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Photo of the bottle — contain na gradientu regionu, jednotná velikost karet */
.card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 38%;
  padding: 22px 22px 110px;
  z-index: 2;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.55));
  transition: transform 0.5s var(--ease);
}
.card:hover .card__photo {
  transform: translateY(-4px) scale(1.03);
}

.card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(10,6,4,0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
}
.card__rating--top {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a0c08;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(232,98,58,0.4);
}

.card__heat-label {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
}

.card__brand {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 6px;
  font-weight: 600;
}

.card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

/* Výrazné označení vybrané karty (Chci ochutnat) */
.card.is-wish {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  box-shadow:
    0 0 0 5px rgba(232,98,58,0.16),
    0 14px 36px rgba(0,0,0,0.55),
    inset 0 0 60px rgba(232,98,58,0.15);
}
.card.is-wish:hover {
  box-shadow:
    0 0 0 5px rgba(232,98,58,0.28),
    0 22px 48px rgba(0,0,0,0.6),
    inset 0 0 60px rgba(232,98,58,0.22);
}

.card__bookmark {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(10,10,12,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s var(--ease);
}
.card:hover .card__bookmark {
  opacity: 1;
  transform: translateY(0);
}
.card__bookmark.is-saved {
  opacity: 1;
  background: var(--gold);
  color: #1a1408;
  border-color: transparent;
}
.card__bookmark:hover { transform: scale(1.08); }

.card__watched {
  position: absolute;
  top: 12px;
  left: 52px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(10,10,12,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s var(--ease);
}
.card:hover .card__watched {
  opacity: 1;
  transform: translateY(0);
}
.card__watched:hover { transform: scale(1.08); }

.card.is-owned {
  filter: grayscale(0.6) brightness(0.85);
  transition: filter 0.4s var(--ease);
}
.card.is-owned:hover {
  filter: grayscale(0.3) brightness(0.95);
}
.card.is-owned .card__watched {
  opacity: 1;
  background: #2d8a4a;
  color: #fff;
  border-color: transparent;
}

.card__stamp {
  position: absolute;
  top: 92px;
  right: 12px;
  z-index: 6;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
  transform: rotate(-4deg);
  transform-origin: 100% 50%;
  animation: stampIn 0.4s var(--ease-spring);
}
@keyframes stampIn {
  0%   { opacity: 0; transform: rotate(-14deg) scale(1.5); }
  60%  { opacity: 1; transform: rotate(-1deg) scale(0.95); }
  100% { opacity: 1; transform: rotate(-4deg) scale(1); }
}
.card__stamp--want {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  box-shadow: 0 4px 16px rgba(232,98,58,0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}
.card__stamp--watched {
  background: rgba(20,20,26,0.92);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.btn.is-watched {
  background: rgba(45,138,74,0.18);
  border-color: #2d8a4a;
  color: #5fc585;
}

.card__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 18px 18px 16px;
  color: var(--card-text);
  transition: transform 0.5s var(--ease);
}
.card__info .card__title { color: var(--card-text); }
.card:hover .card__info {
  transform: translateY(-4px);
}
.card__synopsis {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease) 0.05s, margin-top 0.4s var(--ease);
  margin-top: 0;
}
.card:hover .card__synopsis {
  max-height: 80px;
  opacity: 1;
  margin-top: 8px;
}
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.card__meta {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  display: flex;
  gap: 8px;
  align-items: center;
}
.card__meta span + span::before {
  content: '·';
  margin-right: 8px;
  opacity: 0.5;
}

.empty {
  text-align: center;
  padding: 64px 16px;
  color: var(--text-muted);
}

/* ============================================
   COLLECTIONS
   ============================================ */

.collection-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.collection-strip__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  flex-shrink: 0;
}
.collection-strip__rail {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 4px 0;
}
.collection-strip__rail::-webkit-scrollbar { display: none; }

.collection {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.collection:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.collection.is-active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-bright);
}
.collection__count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 1px 6px;
  background: var(--bg-2);
  border-radius: 999px;
}
.collection.is-active .collection__count {
  background: rgba(232,98,58,0.18);
  color: var(--gold-bright);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px 36px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.footer__line {
  margin: 0;
}
.footer__links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__link {
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 4px 2px;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.18);
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.footer__link:hover {
  color: var(--gold-bright);
  text-decoration-color: var(--gold);
}
.footer__sep { color: rgba(255,255,255,0.25); }

/* Contact / Suggest modal */
.modal__card--form {
  max-width: 460px;
  padding-bottom: 24px;
}
.form-body {
  padding: 4px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.form-intro {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  font-size: 14px;
}
.form-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--gold);
  color: #1a0c08;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
}
.form-cta:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}
.form-hint {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  font-style: italic;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(232,98,58,0.35);
  transition: all 0.3s var(--ease);
  opacity: 0;
  transform: translateY(8px);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(232,98,58,0.5);
}
.back-to-top[hidden] { display: none; }

.grid.is-loading {
  opacity: 0.4;
  transition: opacity 0.15s var(--ease);
  pointer-events: none;
}
.grid {
  transition: opacity 0.25s var(--ease);
}

/* ============================================
   MODAL
   ============================================ */

.modal[hidden] {
  display: none !important;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: modalIn 0.3s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal__card {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  box-shadow: var(--shadow-strong);
  animation: modalCardIn 0.4s var(--ease-spring);
}
@keyframes modalCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal__card--list, .modal__card--pick { max-width: 540px; }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 0;
}
.modal__head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
}
.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  transition: all 0.25s var(--ease);
}
.modal__close:hover {
  background: var(--surface-2);
  color: var(--text);
}
.modal__foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 26px 26px;
  border-top: 1px solid var(--border);
}

/* Detail card */
.detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 28px;
}
.detail__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.detail__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.5));
}
.detail__body { min-width: 0; }
.detail__eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 8px;
}
.detail__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0 0 6px;
}
.detail__original {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 18px;
}
.detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.detail__meta strong { color: var(--text); font-weight: 500; }
.detail__ratings {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.detail__rating {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 80px;
}
.detail__rating-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.detail__rating-value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  margin-top: 4px;
}
.detail__rating-value small {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 2px;
  letter-spacing: 0.04em;
}
.detail__rating--gold .detail__rating-value { color: var(--gold-bright); }
.detail__synopsis {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 20px;
}
.detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.detail__tag {
  font-size: 12px;
  padding: 5px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}
.detail__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Modal tabs */
.modal__tabs {
  display: flex;
  gap: 4px;
  padding: 8px 22px 0;
  border-bottom: 1px solid var(--border);
}
.modal__tab {
  padding: 10px 16px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.modal__tab span {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  background: var(--bg-2);
  border-radius: 999px;
  color: var(--text-dim);
}
.modal__tab:hover { color: var(--text); }
.modal__tab.is-active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}
.modal__tab.is-active span {
  background: var(--gold-soft);
  color: var(--gold-bright);
}

.watchlist-row__action {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--text-dim);
  transition: all 0.2s;
}
.watchlist-row__action:hover {
  background: rgba(45,138,74,0.18);
  color: #5fc585;
}

/* Watchlist modal */
.watchlist-list {
  padding: 8px 14px 22px;
}
.watchlist-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.watchlist-row:hover { background: var(--surface-2); }
.watchlist-row__poster {
  width: 50px;
  height: 75px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.watchlist-row__body { flex: 1; min-width: 0; }
.watchlist-row__title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 3px;
}
.watchlist-row__meta {
  font-size: 12px;
  color: var(--text-muted);
}
.watchlist-row__remove {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.watchlist-row__remove:hover { color: var(--danger); }

.watchlist-empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
}

/* Pick card */
.pick-content {
  padding: 6px 26px 24px;
}
.pick-poster {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-2);
  position: relative;
}
.pick-poster__title {
  position: absolute;
  inset: auto 20px 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 28px;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.pick-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.pick-synopsis {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .nav__inner { padding: 14px 18px; gap: 10px; }
  .brand__name { display: none; }
  .search { max-width: none; margin: 0 4px; }
  .search input { font-size: 14px; padding: 9px 32px 9px 34px; }
  .search__icon { left: 12px; }
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
  .hero { padding: 56px 18px 48px; }
  .filters__bar { padding: 12px 18px; gap: 8px; }
  .filters__panel { padding: 8px 18px 16px; }
  .filter-group { gap: 6px; }
  .filter-group__label { width: 100%; margin-bottom: 4px; }
  .filter-group--inline { flex-direction: column; align-items: flex-start; }
  .filter-group--right { align-items: stretch; }
  .results { padding: 32px 18px 24px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .card__poster-title { font-size: 20px; }
  .card__title { font-size: 15px; }
  .collections { padding: 32px 18px 48px; }
  .detail { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .detail__poster { max-width: 200px; margin: 0 auto; width: 100%; }
  .filters { top: 65px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   CHILLI PICK — light theme + new components
   ============================================ */

/* Brand mark — emoji on warm orange pill */
.brand__mark {
  font-size: 22px;
  line-height: 1;
  font-style: normal;
  font-weight: 400;
  background: linear-gradient(135deg, #ffb98a, #ff8a4a);
  color: #2a1408;
  box-shadow: 0 4px 16px rgba(232,98,58,0.28), inset 0 0 0 1px rgba(255,255,255,0.4);
}

.nav__spacer { flex: 1; }

/* Search — collapsed by default to icon, expands on click */
.search {
  position: relative;
  width: 42px;
  margin: 0;
  flex: 0 0 auto;
  transition: width 0.35s var(--ease);
}
.search.is-open {
  width: 280px;
  flex: 0 0 280px;
}
.search__toggle {
  position: absolute;
  inset: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  z-index: 2;
  transition: all 0.3s var(--ease);
}
.search__toggle:hover { border-color: var(--gold); color: var(--gold); }
.search.is-open .search__toggle {
  background: transparent;
  border-color: transparent;
  pointer-events: auto;
}
.search input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all 0.3s var(--ease);
  opacity: 0;
  pointer-events: none;
}
.search.is-open input {
  opacity: 1;
  pointer-events: auto;
  border-color: var(--gold);
  background: var(--surface);
}
.search input::placeholder { color: var(--text-dim); }

/* Sort — custom dropdown (replaces native <select>) */
.sort {
  position: relative;
  z-index: 41;
}
.sort__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  transition: all 0.25s var(--ease);
}
.sort__trigger:hover { border-color: var(--border-2); background: var(--surface-2); }
.sort__trigger[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.sort__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.sort__trigger > span:nth-of-type(2) { font-weight: 500; }
.sort__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 200px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(80,40,10,0.18);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: popIn 0.2s var(--ease);
}
.sort__menu[hidden] { display: none; }
.sort__item {
  text-align: left;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all 0.18s var(--ease);
  cursor: pointer;
}
.sort__item:hover { background: var(--bg-2); color: var(--text); }
.sort__item.is-active {
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 600;
}

/* (Card heat chip top-right — odstraněno; heat label je v info area dole) */
.card__heat-chip { display: none !important; }
.card__selected-badge { display: none !important; }
.chip__dot { display: none !important; }
.detail__heat-dot { display: none !important; }
.card__meta { display: none; }

/* Detail — ingredients box (lighter look) */
.detail__ingredients {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.detail__ingredients strong {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 11px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
}

.detail__tag--flavor {
  background: var(--gold-soft);
  border-color: rgba(232,98,58,0.35);
  color: var(--gold);
}

/* Modal backdrop — dark */
.modal__backdrop {
  background: rgba(0,0,0,0.72);
}
.search__clear {
  background: var(--bg-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.search__clear:hover { background: var(--surface); color: var(--text); }

/* Watchlist row */
.watchlist-row__poster { position: relative; }
.watchlist-row {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.watchlist-row:hover { background: var(--surface-2); }
.watchlist-row__title { color: var(--text); }
.watchlist-row__meta { color: var(--text-muted); }

.filters__bar-right { gap: 10px; }
.footer { color: var(--text-dim); }
.empty {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 48px 16px;
}

/* Hide legacy controls that we don't render */
.range-row, .range-panel, .range-hint, .switch, .modal__tabs, .type-toggle, .filter-pop__menu--narrow {
  display: none !important;
}

/* ============================================
   CARD — dark layout v4 (jednotné boxy, foto contain na region gradientu)
   ============================================ */

.card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  transition: transform 0.4s var(--ease);
  isolation: isolate;
  animation: cardIn 0.6s var(--ease) backwards;
  box-shadow: none;
}
.card__link {
  position: absolute;
  inset: 0;
  z-index: 4;
  text-indent: -9999px;
  overflow: hidden;
  font-size: 0;
  color: transparent;
  border-radius: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.card__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 8px;
}
/* Bookmark needs to stay clickable above link */
.card__bookmark { position: relative; z-index: 5; }

.card:hover {
  transform: translateY(-3px);
  box-shadow: none;
  border-color: transparent;
}

.card.is-wish {
  border-color: transparent;
  box-shadow: none;
}
.card.is-wish:hover {
  box-shadow: none;
}
.card.is-wish .card__title {
  color: var(--gold-bright);
}

/* Poster — portrait, transparent + subtle radial backdrop to ground the bottle and mask any halo */
.card__poster {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 2 / 3;
  display: grid;
  /* Anchor to bottom-center so every product stands on the same baseline */
  place-items: end center;
  padding: 0;
  flex: 0 0 auto;
  z-index: 1;
  overflow: visible;
  background: transparent !important;
  border-radius: 0;
}
.card__poster::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 8%;
  top: auto;
  transform: translateX(-50%);
  width: 92%;
  height: 70%;
  background:
    radial-gradient(ellipse 55% 60% at 50% 60%, rgba(255,160,100,0.42) 0%, rgba(255,120,70,0.22) 30%, rgba(255,90,40,0.08) 55%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(14px);
  transition: opacity 0.4s var(--ease);
  opacity: 0.95;
}
.card:hover .card__poster::before {
  opacity: 1;
  background:
    radial-gradient(ellipse 60% 65% at 50% 60%, rgba(255,180,120,0.55) 0%, rgba(255,130,80,0.28) 30%, rgba(255,90,40,0.10) 55%, transparent 75%);
}
.card__poster::after { display: none !important; }

.card__photo {
  position: relative;
  inset: auto;
  /* Cap both dimensions — even square jars (Fly By Jing, Harissa) now render
     at similar visual weight as tall bottles. */
  width: 72%;
  height: 80%;
  max-width: 72%;
  max-height: 80%;
  object-fit: contain;
  object-position: center bottom;
  margin-bottom: 6%;
  padding: 0;
  z-index: 1;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,0.6)) contrast(1.08) saturate(1.06);
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
  /* Stronger radial fade — much more of the perimeter dissolves into the dark
     background, so any white halo from bg-removal is gone. Anchored bottom-ish
     to match the bottle baseline. */
  -webkit-mask-image: radial-gradient(ellipse 56% 78% at 50% 60%, #000 0%, #000 60%, rgba(0,0,0,0.8) 78%, rgba(0,0,0,0.4) 90%, transparent 100%);
          mask-image: radial-gradient(ellipse 56% 78% at 50% 60%, #000 0%, #000 60%, rgba(0,0,0,0.8) 78%, rgba(0,0,0,0.4) 90%, transparent 100%);
}
.card:hover .card__photo {
  filter: drop-shadow(0 26px 36px rgba(0,0,0,0.7)) contrast(1.1) saturate(1.1);
}
.card:hover .card__photo {
  transform: scale(1.04);
}

/* Typografický fallback (no photoUrl) */
.card__poster--typo {
  align-items: flex-end !important;
  padding: 22px !important;
  color: rgba(255,255,255,0.95);
}
.card__poster--typo .card__poster-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* Bookmark — inline in bottom row, ghost icon */
.card__bookmark {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  z-index: 1;
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255,255,255,0.16);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.6);
  opacity: 1;
  transform: none;
  transition: all 0.25s var(--ease);
  flex: 0 0 auto;
}
.card__bookmark:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: scale(1.06);
}
.card__bookmark.is-saved {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(232,98,58,0.45);
}

/* Stamp prelep — V seznamu (rotovaný overlay přes poster) */
.card__stamp {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 6;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
  transform: rotate(-6deg);
  transform-origin: 0 50%;
  animation: stampIn 0.4s var(--ease-spring);
}
.card__stamp--want {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a0c08;
  box-shadow:
    0 4px 16px rgba(232,98,58,0.5),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Info — pod posterem, dark surface */
.card__info {
  position: static;
  inset: auto;
  z-index: 1;
  padding: 6px 4px 4px;
  background: transparent;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  transform: none !important;
  transition: none;
  min-height: auto;
}
.card__brand {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__info .card__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: none;
}
.card__bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

/* Prominent star row — the unique selling point of Chili Pick */
.card__stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 4px;
}
.card__stars-row {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--gold-bright);
}
.card__stars-row .card__star.is-empty {
  color: rgba(255,255,255,0.22);
}
.card__stars-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: -0.01em;
}
.card__stars-count {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}
.card__stars-empty {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 0.01em;
}
.card__heat-label {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.86);
  white-space: nowrap;
}
.card__bottom .card__rating {
  position: static;
  background: var(--gold-soft);
  border: 1px solid rgba(232,98,58,0.32);
  color: var(--gold-bright);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: none;
}
.card__bottom .card__rating--top {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a0c08;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(232,98,58,0.4);
}

/* "No ratings yet" — quiet placeholder, signals: be the first */
.card__rating-empty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.18);
  white-space: nowrap;
}
.card__rating-empty svg { opacity: 0.6; }

/* Editor's pick badge — small ribbon top-left */
.card__pick-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(10,6,4,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold-bright);
  border: 1px solid rgba(232,98,58,0.35);
  pointer-events: none;
}
/* Stamp ("On your list") wins over pick badge when both exist */
.card.is-wish .card__pick-badge { display: none; }

/* ============================================
   RATING WIDGET (detail) — placeholder for user reviews
   ============================================ */
.detail__rating-block {
  margin: 4px 0 18px;
}
.rating-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.rating-summary--empty {
  background: transparent;
  border-style: dashed;
}
.rating-summary__avg {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  color: var(--gold-bright);
}
.rating-summary__avg small {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-dim);
  margin-left: 4px;
}
.rating-summary__count {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.rating-summary__empty-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.rating-summary__hint {
  font-size: 12px;
  color: var(--text-dim);
}
.rating-stars {
  display: inline-flex;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 4px 0;
  cursor: not-allowed;
}
.rating-stars--placeholder { cursor: pointer; }
.rating-star {
  font-size: 18px;
  line-height: 1;
  color: rgba(255,255,255,0.18);
  transition: color 0.2s var(--ease);
}
.rating-star.is-filled { color: var(--gold-bright); }
.rating-stars--placeholder:hover .rating-star { color: var(--gold-bright); }

/* Hide leftover synopsis from old layout */
.card__synopsis,
.card .card__meta { display: none; }

/* ============================================
   DETAIL — photo on dark region gradient, contain
   ============================================ */
.detail__poster {
  display: grid;
  place-items: center;
  padding: 22px;
}
.detail__poster--typo {
  background: var(--bg-2) !important;
  padding: 18px !important;
}
.detail__photo {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.55));
}

/* ============================================
   BRAND MARK — SVG icon, orange pill
   ============================================ */
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffb98a, #ff7a4f);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(232,98,58,0.32), inset 0 1px 0 rgba(255,255,255,0.35);
}
.brand__mark svg { display: block; }
.brand__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.005em;
  color: var(--text-dim);
  margin-left: 12px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.14);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .brand__tagline { display: none; }
}

/* ============================================
   MOBILE SWEEP — < 640px polish
   ============================================ */
@media (max-width: 900px) {
  .filters__bar { padding: 12px 16px; gap: 8px; }
  .results { padding: 0 16px 32px; }
  .results__head { padding: 18px 0 12px; }
  .nav__inner { padding: 12px 16px; }
  .hero__inner { padding: 70px 16px 50px; }
}

@media (max-width: 640px) {
  /* Filter bar: stop being sticky on mobile so it doesn't bleed over cards */
  .filters {
    position: relative;
    top: auto;
    background: var(--bg);
  }
  .filters__bar {
    padding: 10px 14px;
    gap: 6px;
    row-gap: 8px;
    justify-content: flex-start;
  }
  .filter-trigger, .sort__trigger {
    height: 32px;
    font-size: 12px;
    padding: 0 12px;
  }
  .filters__bar-right { gap: 6px; flex-wrap: wrap; margin-left: 0; }

  /* Filter dropdowns full-width on mobile so they never clip */
  .filter-pop { position: static; }
  .filter-pop__menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 16px;
    min-width: 0;
    max-width: none;
    width: auto;
    max-height: 60vh;
    overflow-y: auto;
    padding: 18px;
    border-radius: 16px;
    z-index: 70;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.7);
  }
  .filter-pop__menu .chips {
    gap: 8px;
    justify-content: flex-start;
  }
  .sort__menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 16px;
    min-width: 0;
    width: auto;
    z-index: 70;
    border-radius: 16px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.7);
  }
  /* Hide the helper "click a card for details" — wastes mobile space */
  .results__hint { display: none; }

  /* Cards: shorter aspect-ratio on mobile (less wasted screen height),
     2 cols with tight gaps */
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .card__poster { aspect-ratio: 3 / 4; }
  .card__photo { padding: 8% 6%; }
  .card__info { padding: 8px 4px 4px; gap: 4px; }
  .card__brand { font-size: 9px; letter-spacing: 0.14em; }
  .card__info .card__title { font-size: 14px; line-height: 1.18; }
  .card__stars { gap: 6px; margin: 2px 0; }
  .card__star { width: 11px; height: 11px; }
  .card__stars-num { font-size: 12px; }
  .card__stars-count, .card__stars-empty { font-size: 10px; }
  .card__heat-label { font-size: 9px; padding: 3px 8px; }
  .card__bookmark { width: 26px; height: 26px; }

  /* Hero: tighter on mobile */
  .hero { padding: 0; }
  .hero__inner { padding: 50px 16px 36px; }
  .hero__title { font-size: clamp(34px, 9vw, 52px); }
  .hero__sub { font-size: 14px; }
  .hero__stat { font-size: 11px; }

  .results { padding: 0 14px 32px; }
  .results__head {
    padding: 14px 0 10px;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: space-between;
  }
  .results__count { font-size: 20px; }
  .results__hint { font-size: 10px; letter-spacing: 0.06em; }

  .nav__inner { padding: 12px 14px; gap: 8px; }
  .brand__name { font-size: 18px; }
  .brand__mark { width: 30px; height: 30px; }

  .footer { padding: 22px 16px 28px; }
  .footer__inner { gap: 8px; }

  .modal__card { width: calc(100% - 24px); max-width: 600px; max-height: 90vh; }
  .modal__card--form { padding-bottom: 18px; }
  .form-body { padding: 4px 18px 8px; }

  /* Back-to-top: smaller, less prominent */
  .back-to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}

/* ============================================
   DETAIL SUBPAGE — /sauces/{slug}/
   Server-rendered for SEO, uses .title-page__* classes
   ============================================ */
.page-detail {
  background: var(--bg);
  color: var(--text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold-bright); }

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 32px 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.breadcrumbs a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--gold-bright); }
.breadcrumbs span[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* Two-column hero: bottle photo + facts */
.title-page {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.title-page__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: end center;
  background: transparent !important;
  border-radius: 0;
  overflow: visible;
  width: 100%;
}
.title-page__poster::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 90%;
  background:
    radial-gradient(ellipse 55% 60% at 50% 50%, rgba(255,170,110,0.50) 0%, rgba(255,130,80,0.25) 30%, rgba(255,90,40,0.10) 55%, transparent 75%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}
.title-page__poster .detail__photo {
  position: relative;
  width: 75%;
  height: 82%;
  max-width: 75%;
  max-height: 82%;
  object-fit: contain;
  object-position: center bottom;
  margin-bottom: 5%;
  padding: 0;
  z-index: 1;
  filter: drop-shadow(0 24px 36px rgba(0,0,0,0.65)) contrast(1.08) saturate(1.06);
  -webkit-mask-image: radial-gradient(ellipse 58% 80% at 50% 60%, #000 0%, #000 62%, rgba(0,0,0,0.8) 80%, rgba(0,0,0,0.4) 92%, transparent 100%);
          mask-image: radial-gradient(ellipse 58% 80% at 50% 60%, #000 0%, #000 62%, rgba(0,0,0,0.8) 80%, rgba(0,0,0,0.4) 92%, transparent 100%);
}

.title-page__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.title-page__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.title-page__h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
}

.title-page__original {
  margin: 0;
  color: var(--text-dim);
  font-style: italic;
  font-size: 15px;
}

.title-page__rating-empty {
  margin: 6px 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(255,255,255,0.2);
  align-self: flex-start;
}

.title-page__facts {
  list-style: none;
  margin: 14px 0 8px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px 24px;
}
.title-page__facts li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.title-page__facts li span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.title-page__facts li strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.title-page__save {
  align-self: flex-start;
  margin-top: 10px;
}

/* Body sections */
.title-section {
  margin: 36px 0;
}
.title-section h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.title-section p {
  margin: 0 0 12px;
  line-height: 1.65;
  color: var(--text);
  max-width: 68ch;
}
.title-section p.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}

.title-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.title-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
}
.title-tag--mood {
  background: rgba(232,98,58,0.12);
  border-color: rgba(232,98,58,0.32);
  color: var(--gold-bright);
}

/* Related grid uses card layout from main */
.grid--related {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 22px 18px;
}

/* Override card link inside detail page so the entire <a class="card"> is clickable.
   The detail page emits cards as <a class="card"> directly (no overlay link), so
   undo the transparent-with-overlay rules here. */
.page-detail .card {
  text-decoration: none;
  color: inherit;
}
.page-detail .card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Mobile detail */
@media (max-width: 760px) {
  .title-page {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .title-page__poster { max-width: 240px; margin: 0 auto; }
  .page { padding: 22px 16px 48px; }
  .breadcrumbs { font-size: 10px; margin-bottom: 18px; }
  .title-section { margin: 28px 0; }
  .title-section p.lead { font-size: 16px; }
}

/* ============================================
   AUTH — Sign in button, user menu, auth modal
   ============================================ */
.auth-slot { display: inline-flex; align-items: center; position: relative; }

.signin-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a0c08;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.signin-btn:hover { background: var(--gold-bright); transform: translateY(-1px); }

.user-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border: none;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.user-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232,98,58,0.4); }
.user-btn__avatar { font-weight: 700; font-size: 14px; color: #1a0c08; }

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 220px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
  animation: popIn 0.18s var(--ease);
}
.user-menu[hidden] { display: none; }
.user-menu__email {
  margin: 0 0 8px;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--text-dim);
  word-break: break-all;
  border-bottom: 1px solid var(--border);
}
.user-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 8px;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
}
.user-menu__item:hover { background: rgba(232,98,58,0.12); color: var(--gold-bright); }

.modal__card--auth { max-width: 420px; padding-bottom: 24px; }
.auth-body { padding: 4px 24px 8px; display: flex; flex-direction: column; gap: 14px; }
.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}
.auth-tab {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font: inherit;
  font-weight: 500;
  font-size: 13px;
  border-radius: 999px;
  cursor: pointer;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.auth-google:hover { background: #f5f5f5; transform: translateY(-1px); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.auth-label input {
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.auth-label input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.06);
}
.auth-error {
  margin: 0;
  padding: 8px 12px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ff8e8e;
  border-radius: 8px;
  font-size: 12px;
}
.auth-info {
  margin: 0;
  padding: 8px 12px;
  background: rgba(232,98,58,0.12);
  border: 1px solid rgba(232,98,58,0.3);
  color: var(--gold-bright);
  border-radius: 8px;
  font-size: 12px;
}
.auth-submit {
  margin-top: 6px;
  height: 42px;
  background: var(--gold);
  color: #1a0c08;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.auth-submit:hover:not(:disabled) { background: var(--gold-bright); transform: translateY(-1px); }
.auth-submit:disabled { opacity: 0.6; cursor: wait; }

@media (max-width: 640px) {
  .signin-btn { height: 32px; font-size: 12px; padding: 0 12px; }
  .user-btn { width: 32px; height: 32px; }
  .user-btn__avatar { font-size: 12px; }
}

/* ============================================
   INTERACTIVE RATING WIDGET — on detail subpage
   ============================================ */
.rate-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 6px 0 10px;
  align-self: flex-start;
  max-width: 360px;
}
.rate-box__label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.rate-box__stars { display: inline-flex; gap: 4px; }
.rate-star {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: rgba(255,255,255,0.22);
  transition: color 0.15s, transform 0.15s;
}
.rate-star:hover { transform: scale(1.1); }
.rate-star.is-on { color: var(--gold-bright); }
.rate-star:disabled { cursor: not-allowed; }
.rate-box__hint { margin: 0; font-size: 12px; color: var(--text-dim); }
.rate-box__signin {
  color: var(--gold-bright);
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rate-box__signin:hover { color: var(--gold); }
.rate-box__textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  resize: vertical;
  outline: none;
}
.rate-box__textarea:focus { border-color: var(--gold); }
.rate-box__submit {
  align-self: flex-start;
  padding: 8px 18px;
  background: var(--gold);
  color: #1a0c08;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.rate-box__submit:hover { background: var(--gold-bright); transform: translateY(-1px); }
.rate-box__submit:disabled { opacity: 0.6; cursor: wait; }
.rate-box__remove {
  align-self: flex-start;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.rate-box__remove:hover { border-color: rgba(239,68,68,0.5); color: #ff8e8e; }
.rate-box__error { margin: 0; font-size: 12px; color: #ff8e8e; }

.title-page__rating-real {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(232,98,58,0.1);
  border: 1px solid rgba(232,98,58,0.32);
  border-radius: 999px;
  font-size: 13px;
  color: var(--gold-bright);
  font-weight: 600;
  align-self: flex-start;
}

/* Toast — short confirmation messages (sign-in, email confirmed, errors) */
.cp-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 100;
  padding: 12px 22px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid rgba(232,98,58,0.4);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.cp-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
