/* =============================================================================
   ByteZone — Frontend Design System (Phase 6.1)
   Založené na prototype v Claude Design.
   ========================================================================== */

@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/ProximaBlack.ttf') format('typeface');
  font-weight: 700;
  font-style: normal;
}

/* --- Tokens ------------------------------------------------------------ */
:root {
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 999px;

  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-logo: 'Proxima Nova', sans-serif;

  --accent: oklch(0.72 0.17 155);
  --accent-hover: oklch(0.78 0.17 155);
  --accent-soft: oklch(0.72 0.17 155/0.12);
  --accent-fg: oklch(0.18 0.04 155);

  --s-card-pad: var(--s-6);
  --s-stack: var(--s-4);
  --s-section: var(--s-20);
  --grid-gap: var(--s-4);
}

/* Dark (default) */
:root,
[data-theme='dark'] {
  --bg: oklch(0.16 0.005 240);
  --bg-elev: oklch(0.2 0.006 240);
  --bg-card: oklch(0.21 0.007 240);
  --bg-card-hover: oklch(0.235 0.008 240);
  --bg-inset: oklch(0.13 0.005 240);
  --border: oklch(0.28 0.008 240);
  --border-strong: oklch(0.38 0.01 240);
  --text: oklch(0.97 0.005 240);
  --text-muted: oklch(0.72 0.01 240);
  --text-subtle: oklch(0.55 0.01 240);
  --shadow-card: 0 1px 0 oklch(1 0 0/0.04) inset, 0 8px 24px oklch(0 0 0/0.3);
  --gradient-mesh:
    radial-gradient(at 20% 0%, oklch(0.72 0.17 155/0.18), transparent 50%),
    radial-gradient(at 80% 30%, oklch(0.65 0.18 280/0.15), transparent 60%);
}

[data-theme='light'] {
  --bg: oklch(0.985 0.002 240);
  --bg-elev: oklch(1 0 0);
  --bg-card: oklch(1 0 0);
  --bg-card-hover: oklch(0.985 0.003 240);
  --bg-inset: oklch(0.965 0.004 240);
  --border: oklch(0.92 0.004 240);
  --border-strong: oklch(0.84 0.006 240);
  --text: oklch(0.18 0.01 240);
  --text-muted: oklch(0.45 0.01 240);
  --text-subtle: oklch(0.62 0.008 240);
  --shadow-card: 0 1px 2px oklch(0 0 0/0.04), 0 8px 24px oklch(0 0 0/0.04);
  --gradient-mesh:
    radial-gradient(at 20% 0%, oklch(0.72 0.17 155/0.1), transparent 50%),
    radial-gradient(at 80% 30%, oklch(0.65 0.18 280/0.08), transparent 60%);
}

/* --- Reset ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
::selection {
  background: var(--accent);
  color: var(--accent-fg);
}

/* --- Animated background ---------------------------------------------- */
.page-home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}
.page-home-bg::before,
.page-home-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform, opacity;
  opacity: 0.55;
}
.page-home-bg::before {
  width: 60vw;
  height: 60vw;
  top: -20vh;
  left: -15vw;
  background: radial-gradient(circle, oklch(0.72 0.17 155/0.35), transparent 70%);
  animation: bg-drift-1 18s ease-in-out infinite;
}
.page-home-bg::after {
  width: 50vw;
  height: 50vw;
  bottom: -30vh;
  right: -10vw;
  background: radial-gradient(circle, oklch(0.55 0.2 280/0.3), transparent 70%);
  animation: bg-drift-2 22s ease-in-out infinite;
}
[data-theme='light'] .page-home-bg::before {
  opacity: 0.32;
}
[data-theme='light'] .page-home-bg::after {
  opacity: 0.28;
}
@keyframes bg-drift-1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(8vw, -4vh) scale(1.08);
  }
  66% {
    transform: translate(-4vw, 6vh) scale(0.95);
  }
}
@keyframes bg-drift-2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-6vw, -8vh) scale(1.1);
  }
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Layout ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--s-8);
}

/* --- Topnav ------------------------------------------------------------ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.topnav-inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 76px;
}
.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.bz-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.04em;
}
.bz-brand-name {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #f13223;
  font-weight: 700;
  color: #b22222;
  text-transform: uppercase;
}
.topnav-pill {
  display: flex;
  gap: 2px;
  margin: 0 auto;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-card);
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}
.topnav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.topnav-tab {
  padding: 7px 12px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}
.topnav-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}
.topnav-tab.active {
  background: var(--text);
  color: var(--bg);
}
@media (max-width: 1180px) {
  .topnav-pill {
    display: none;
  }
}

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 36px;
  padding: 0 var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--border);
}
.btn-sm {
  height: 30px;
  padding: 0 var(--s-3);
  font-size: 12px;
}
.btn-lg {
  height: 44px;
  padding: 0 var(--s-5);
  font-size: 14px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.12s ease;
}
.icon-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text);
  transform: translateY(-1px);
}

/* --- Nav dropdown ------------------------------------------------------ */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 4px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s;
}
.nav-dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.1s,
    color 0.1s;
  text-align: left;
}
.nav-dropdown-item:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}
.nav-dropdown-item--danger:hover {
  background: oklch(0.28 0.06 25);
  color: oklch(0.82 0.12 25);
}
.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.nav-dropdown-menu form {
  display: contents;
}

/* --- Typography -------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.h-1 {
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: -0.035em;
  line-height: 1.04;
  font-weight: 700;
}
.h-2 {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 700;
}
.h-3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-weight: 700;
}
.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  max-width: 520px;
}

/* --- Tags -------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.tag-accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

/* --- Avatar ------------------------------------------------------------ */
.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-inset);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

/* --- Cards base -------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.card-link {
  cursor: pointer;
}
.card-link:hover {
  transform: translateY(-2px);
}
.card-link a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* --- Image placeholders ------------------------------------------------ */
.ph {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-inset);
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph-1 {
  background: linear-gradient(135deg, #1a3d2e 0%, #0a1a14 50%, #2d5f44 100%);
}
.ph-2 {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f1b2d 50%, #3b6ea8 100%);
}
.ph-3 {
  background: linear-gradient(135deg, #4a2c5e 0%, #1a0f24 50%, #6b3f87 100%);
}
.ph-4 {
  background: linear-gradient(135deg, #5e3a1e 0%, #241509 50%, #a86838 100%);
}
.ph-5 {
  background: linear-gradient(135deg, #2c5e4a 0%, #0f241c 50%, #3f8770 100%);
}
.ph-6 {
  background: linear-gradient(135deg, #5e1e3a 0%, #240916 50%, #a8385f 100%);
}
.ph-7 {
  background: linear-gradient(135deg, #1e2c5e 0%, #09112c 50%, #3854a8 100%);
}
.ph-8 {
  background: linear-gradient(135deg, #3a5e1e 0%, #15240a 50%, #6ea838 100%);
}
.ph-9 {
  background: linear-gradient(135deg, #5e5e1e 0%, #24240a 50%, #a8a838 100%);
}

/* --- Section headers --------------------------------------------------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: var(--s-section) 0 var(--s-6);
  gap: var(--s-6);
}
.sec-head-l {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.sec-head h2 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
}
.sec-head-link {
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sec-head-link:hover {
  color: var(--text);
}

/* --- Search input ------------------------------------------------------ */
.search {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0 var(--s-3);
  height: 36px;
  min-width: 280px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 13px;
  transition:
    border-color 0.12s,
    background 0.12s;
}
.search:hover {
  border-color: var(--border-strong);
}
.search:focus-within {
  border-color: var(--text);
  background: var(--bg-elev);
}
.search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}

/* =======================================================================
   HERO BANNER / SLIDER
   ======================================================================= */
.hero-banner {
  position: relative;
  margin: var(--s-10) 0 var(--s-16);
  padding: var(--s-16) var(--s-12);
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  overflow: visible;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-height: 660px;
  max-height: 840px;
}
.hero-banner-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.hero-banner-glow {
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, oklch(0.72 0.17 155/0.25), transparent 60%);
  filter: blur(40px);
}
.hero-banner-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 100% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 50%, black 0%, transparent 70%);
  opacity: 0.5;
}

.hero-banner-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-12);
  align-items: center;
  min-height: 580px;
  max-height: 760px;
}

/* Slider logic */
.hero-slide {
  display: none;
}
.hero-slide--active {
  display: grid;
  animation: hero-fade-in 0.5s ease;
}
@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-banner-text {
  display: flex;
  flex-direction: column;
}
.hero-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-banner-title {
  margin: 0;
  font-size: 58px;
  max-width: 580px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  /*overflow: hidden;*/
}

.hero-banner-lead {
  max-width: 520px;
  margin-top: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-banner-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-author-info .avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.hero-author-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-author-name {
  font-size: 13px;
  font-weight: 500;
}
.hero-author-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
}

.hero-banner-visual {
  position: relative;
  aspect-ratio: 4/3;
  transform: perspective(1400px) rotateY(-12deg) rotateX(6deg);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-banner:hover .hero-banner-visual {
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg) translateY(-8px);
}
.hero-banner-img {
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: -6%;
  box-shadow:
    0 40px 80px -20px oklch(0 0 0/0.5),
    0 20px 40px -10px oklch(0.72 0.17 155/0.2),
    inset 0 1px 0 oklch(1 0 0/0.1);
}
.hero-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-banner-img .ph {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}
.hero-banner-shadow {
  position: absolute;
  inset: 30% 0 -10% 10%;
  background: radial-gradient(ellipse at center, oklch(0 0 0/0.5), transparent 60%);
  filter: blur(30px);
  z-index: -1;
}
.hero-banner-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, oklch(1 0 0/0.15) 50%, transparent 60%);
  pointer-events: none;
}

.hero-banner-floater {
  position: absolute;
  z-index: 3;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  box-shadow: 0 12px 32px oklch(0 0 0/0.25);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateZ(40px);
  animation: floaty 4s ease-in-out infinite;
}
.hero-banner-floater-1 {
  top: 12%;
  left: -8%;
}
.hero-banner-floater-2 {
  bottom: 14%;
  right: 4%;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  animation-delay: -2s;
}
.hero-floater-val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  padding: 0px 4px;
}
.hero-floater-stat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateZ(40px) translateY(0);
  }
  50% {
    transform: translateZ(40px) translateY(-8px);
  }
}

.hero-banner-controls {
  position: absolute;
  bottom: var(--s-6);
  left: var(--s-12);
  right: var(--s-12);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.hero-banner-controls > * {
  pointer-events: auto;
}
.hero-banner-dots {
  display: flex;
  gap: 8px;
}
.hero-banner-dot {
  width: 28px;
  height: 4px;
  border-radius: var(--r-full);
  background: var(--border);
  border: 0;
  cursor: pointer;
  transition:
    background 0.2s,
    width 0.3s;
}
.hero-banner-dot.active {
  background: var(--accent);
  width: 48px;
}
.hero-banner-arrows {
  display: flex;
  gap: 6px;
}

@media (max-width: 1100px) {
  .hero-banner-inner,
  .hero-slide--active {
    grid-template-columns: 1fr;
  }
  .hero-banner-visual {
    transform: none;
    max-width: 480px;
    margin: 0 auto;
  }
  .hero-banner:hover .hero-banner-visual {
    transform: translateY(-4px);
  }
  .hero-banner-floater {
    display: none;
  }
  .hero-banner-title {
    font-size: 44px;
  }
}
@media (max-width: 860px) {
  .hero-banner {
    padding: var(--s-10) var(--s-6);
  }
  .hero-banner-title {
    font-size: 36px;
  }
  .hero-banner-controls {
    left: var(--s-6);
    right: var(--s-6);
  }
  .h-1 {
    font-size: 40px;
  }
}

/* =======================================================================
   BENTO MOSAIC — Novinky
   ======================================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 260px 260px 260px;
  gap: var(--grid-gap);
}
.bento > article {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.bento > article a {
  display: flex;
  height: 100%;
}
.bento-a {
  grid-column: span 2;
  grid-row: span 2;
}
.bento-b {
  grid-column: span 2;
}
.bento-c,
.bento-d,
.bento-e {
  grid-column: span 1;
}
.bento .ph {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}
.bento .ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0 0 0/0.85) 0%,
    oklch(0 0 0/0.1) 55%,
    oklch(0 0 0/0) 75%
  );
}
.bento-overlay {
  position: relative;
  z-index: 2;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
}
.bento-main-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: auto 0 8px;
  color: oklch(1 0 0);
}
.bento-sub-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: auto 0 4px;
  color: oklch(1 0 0);
}
.bento-sm-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: auto 0 0;
  color: oklch(1 0 0);
}
.bento-meta-line {
  font-family: var(--font-mono);
  font-size: 11px;
  color: oklch(1 0 0/0.7);
}
.bento-tag-dark {
  align-self: flex-start;
  background: oklch(0 0 0/0.5);
  color: oklch(1 0 0);
  border-color: oklch(1 0 0/0.2);
}

.bento-text-card {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
}
.bento-text-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}
.bento-text-title-sm {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}
.bento-text-excerpt {
  margin: auto 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.bento > article .ph {
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.bento > article:hover .ph {
  transform: scale(1.05);
}
.bento > article .bento-overlay h3 {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bento > article:hover .bento-overlay h3 {
  transform: translateY(-4px);
}

@media (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 220px 200px 200px;
  }
  .bento-a {
    grid-column: span 2;
    grid-row: auto;
  }
  .bento-b {
    grid-column: span 2;
  }
}
@media (max-width: 540px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 200px);
  }
  .bento-a,
  .bento-b,
  .bento-c,
  .bento-d,
  .bento-e {
    grid-column: span 1;
  }
}

/* =======================================================================
   TRENDING LIST
   ======================================================================= */
.trending-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-card);
}
.trending-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-5);
  cursor: pointer;
  transition: background 0.15s;
  min-width: 0;
  position: relative;
  color: inherit;
  text-decoration: none;
}
.trending-item:not(:nth-child(-n + 2))::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--s-5);
  right: var(--s-5);
  height: 1px;
  background: var(--border);
}
.trending-item:nth-child(2n)::after {
  content: '';
  position: absolute;
  top: var(--s-3);
  bottom: var(--s-3);
  left: 0;
  width: 1px;
  background: var(--border);
}
.trending-item:hover {
  background: var(--bg-card-hover);
}
.trending-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-subtle);
  font-feature-settings: 'tnum';
  width: 56px;
  line-height: 1;
  transition:
    color 0.25s,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.trending-item:hover .trending-num {
  color: var(--accent);
  transform: translateX(4px);
}
.trending-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.trending-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trending-meta-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
}
.trending-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}
.trending-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}
.trending-views {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 1100px) {
  .trending-list {
    grid-template-columns: 1fr;
  }
}

/*========================================================================
   FEATURED TOPICS
   ======================================================================= */

/* --- Editorial split --------------------------------------------------- */
.editorial-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.editorial-split-img {
  position: relative;
  min-height: 440px;
  overflow: hidden;
}
.editorial-split-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.editorial-split-img .ph {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}
.editorial-split-img img,
.editorial-split-img .ph {
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.editorial-split:hover .editorial-split-img img,
.editorial-split:hover .editorial-split-img .ph {
  transform: scale(1.05);
}
.editorial-split-body {
  padding: var(--s-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.editorial-split-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.editorial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.editorial-author .avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.editorial-author-name {
  font-size: 13px;
  font-weight: 600;
}
.editorial-author-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
}
@media (max-width: 1100px) {
  .editorial-split {
    grid-template-columns: 1fr;
  }
  .editorial-split-img {
    min-height: 280px;
  }
  .editorial-split-body {
    padding: var(--s-8);
  }
}

/* --- Article card grid ------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.acard {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.acard .ph {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.acard .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.acard:hover .ph img {
  transform: scale(1.05);
}
.acard-body {
  padding: var(--s-card-pad);
  display: flex;
  flex-direction: column;
  gap: var(--s-stack);
  flex: 1;
}
.acard-meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 12px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.acard-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-subtle);
}
.acard-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}
.acard-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.acard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--s-2);
}
.acard-author {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Title-only card --------------------------------------------------- */
.title-only {
  text-decoration: none;
  color: inherit;
}
.title-only .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.title-only:hover .ph img {
  transform: scale(1.05);
}
.title-only-body {
  padding: var(--s-card-pad);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.title-only-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.title-only-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0;
}

/* --- Minimal review ---------------------------------------------------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--grid-gap);
}

.minimal-review {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  text-decoration: none;
  color: inherit;
}
.minimal-review .ph {
  position: relative;
  overflow: hidden;
}
.minimal-review .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.minimal-review:hover .ph img {
  transform: scale(1.05);
}
.minimal-review .ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, oklch(1 0 0/0.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.minimal-review:hover .ph::after {
  transform: translateX(100%);
}
.minimal-review-score {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-4);
  gap: 2px;
  background: linear-gradient(to top, oklch(0 0 0/0.75) 0%, oklch(0 0 0/0) 60%);
}
.minimal-review-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(1 0 0/0.7);
}
.minimal-review-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: oklch(1 0 0);
  line-height: 1;
}
.minimal-review-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
  padding: 0 var(--s-3) var(--s-3);
}
@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 860px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* --- Minimal text feed ------------------------------------------------- */
.minimal-feed {
  display: flex;
  flex-direction: column;
}
.minimal-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  align-items: center;
  transition: padding 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.minimal-item:hover {
  padding-left: var(--s-3);
}
.minimal-item:last-child {
  border-bottom: 1px solid var(--border);
}
.minimal-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}
.minimal-body {
  min-width: 0;
}
.minimal-item-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.minimal-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.minimal-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-subtle);
}
.minimal-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
}
.minimal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
  transition: color 0.15s;
}
.minimal-item:hover .minimal-title {
  color: var(--accent);
}
.minimal-excerpt {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 640px;
}

@supports (animation-timeline: view()) {
  .minimal-feed,
  .grid-4 {
    opacity: 0;
    animation: reveal-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

/* --- Review card score overlay ----------------------------------------- */
.review-card .ph {
  position: relative;
}
.review-card-score {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 8px 12px;
  background: oklch(0 0 0/0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-md);
  border: 1px solid oklch(1 0 0/0.12);
}
.review-card-score-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(1 0 0/0.7);
}
.review-card-score-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: oklch(1 0 0);
  line-height: 1;
}

/* --- Carousel ---------------------------------------------------------- */
.carousel-track {
  display: flex;
  gap: var(--grid-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s-3);
  scrollbar-width: thin;
  max-width: 100%;
  scroll-behavior: smooth;
}
.carousel-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.carousel-card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.carousel-card:hover .ph img {
  transform: scale(1.05);
}
.carousel-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
@media (max-width: 540px) {
  .carousel-card {
    flex: 0 0 220px;
  }
}

/* --- Compact list ------------------------------------------------------ */
.compact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
}
.compact-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-4);
  padding: var(--s-3);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 0.15s;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.compact-item:hover {
  background: var(--bg-card);
}
.compact-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-inset);
}
.compact-body {
  min-width: 0;
}
.compact-title {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.compact-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
}
@media (max-width: 1100px) {
  .compact-list {
    grid-template-columns: 1fr;
  }
}

/* --- Promo brand banner ------------------------------------------------ */
.promo-brand {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-12);
  align-items: center;
  min-height: 320px;
  padding: var(--s-16) var(--s-12);
}
.promo-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, oklch(0.55 0.18 240/0.7), transparent 50%),
    radial-gradient(circle at 80% 70%, oklch(0.65 0.18 280/0.6), transparent 55%),
    linear-gradient(135deg, oklch(0.18 0.02 260), oklch(0.12 0.02 260));
  pointer-events: none;
}
.promo-banner-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}
.promo-banner-product {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-xl);
  border: 1px solid oklch(1 0 0/0.15);
  box-shadow: 0 24px 60px oklch(0 0 0/0.4);
  animation: float-soft 4s ease-in-out infinite;
}
@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@media (max-width: 1100px) {
  .promo-brand {
    grid-template-columns: 1fr;
  }
}

/* --- Promo app --------------------------------------------------------- */
.promo-app {
  background: linear-gradient(135deg, oklch(0.22 0.04 155) 0%, oklch(0.16 0.02 220) 100%);
  border-color: oklch(1 0 0/0.08);
  color: oklch(1 0 0);
}
.promo-app-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 100% 0%, oklch(0.72 0.17 155/0.3), transparent 40%),
    radial-gradient(circle at 0% 100%, oklch(0.55 0.2 280/0.25), transparent 50%);
  pointer-events: none;
}
.promo-app-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-12);
  align-items: center;
}
.promo-app-stats {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  border-left: 1px solid oklch(1 0 0/0.15);
  padding-left: var(--s-8);
}
.promo-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.promo-stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, oklch(1 0 0) 30%, oklch(0.72 0.17 155) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.promo-stat:hover .promo-stat-num {
  transform: translateY(-2px);
}
.promo-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: oklch(1 0 0/0.6);
  letter-spacing: 0.03em;
}
@media (max-width: 1100px) {
  .promo-app-content {
    grid-template-columns: 1fr;
  }
  .promo-app-stats {
    flex-direction: row;
    border-left: 0;
    border-top: 1px solid oklch(1 0 0/0.15);
    padding-left: 0;
    padding-top: var(--s-6);
    flex-wrap: wrap;
  }
}

/* --- Scroll reveal for new sections ------------------------------------ */
@supports (animation-timeline: view()) {
  .editorial-split,
  .grid-3,
  .carousel-track,
  .compact-list {
    opacity: 0;
    animation: reveal-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

/* --- Responsive grids -------------------------------------------------- */
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* =======================================================================
   PROMO BANNERS
   ======================================================================= */
.promo-banner {
  position: relative;
  margin: var(--s-section) 0 0;
  padding: var(--s-12);
  border-radius: var(--r-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.promo-banner:hover {
  transform: translateY(-2px);
}
.promo-banner::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -40%;
  background: linear-gradient(115deg, transparent, oklch(1 0 0/0.08), transparent);
  transition: left 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}
.promo-banner:hover::after {
  left: 110%;
}
.promo-cross {
  background: var(--bg-elev);
  padding: var(--s-12);
}
.promo-cross-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 90% 50%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 90% 50%, black 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.promo-meta-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =======================================================================
   NEWSLETTER
   ======================================================================= */
.newsletter-section {
  margin: var(--s-section) 0 0;
  padding: var(--s-16) var(--s-12);
  border-radius: var(--r-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.newsletter-mesh {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}
.newsletter-content {
  position: relative;
  z-index: 1;
}
.newsletter-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.newsletter-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  text-align: center;
}
@media (max-width: 860px) {
  .newsletter-section {
    grid-template-columns: 1fr;
  }
}

/* =======================================================================
   FOOTER
   ======================================================================= */
.footer {
  margin-top: var(--s-section);
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  z-index: 1000;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--s-12);
  padding: var(--s-16) 0 var(--s-12);
}
.footer-col h6 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin: 0 0 var(--s-4) 0;
  font-weight: 500;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px 0;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 0 16px;
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  letter-spacing: 0.06em;
}
.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 340;
}
.footer-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--s-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
  }
}

/* =======================================================================
   SCROLL-DRIVEN ANIMATIONS
   ======================================================================= */
@supports (animation-timeline: view()) {
  .sec-head,
  .trending-list,
  .bento,
  .promo-banner,
  .newsletter-section {
    opacity: 0;
    animation: reveal-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  .sec-head h2 {
    animation: sec-title linear;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }
  @keyframes sec-title {
    from {
      transform: translateX(-12px);
      opacity: 0.4;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  .bento > article {
    animation: bento-in linear forwards;
    animation-timeline: view(--bento-timeline);
    animation-range: entry 0% entry 70%;
  }
  .bento {
    view-timeline-name: --bento-timeline;
  }
  .bento > article:nth-child(1) {
    animation-delay: 0s;
  }
  .bento > article:nth-child(2) {
    animation-delay: 0.05s;
  }
  .bento > article:nth-child(3) {
    animation-delay: 0.1s;
  }
  .bento > article:nth-child(4) {
    animation-delay: 0.15s;
  }
  .bento > article:nth-child(5) {
    animation-delay: 0.2s;
  }
  @keyframes bento-in {
    from {
      opacity: 0;
      transform: translateY(28px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  .trending-list .trending-item {
    animation: trend-in linear forwards;
    animation-timeline: view(--trend-timeline);
    animation-range: entry 0% entry 60%;
  }
  .trending-list {
    view-timeline-name: --trend-timeline;
  }
  @keyframes trend-in {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
}

/* --- Scrollbar --------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--r-full);
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* =======================================================================
   ARTICLE DETAIL PAGE  (Phase 6.2)
   ======================================================================= */

/* Breadcrumb */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--s-6) 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.article-breadcrumb a {
  cursor: pointer;
  transition: color 0.15s;
}
.article-breadcrumb a:hover {
  color: var(--text);
}
.bc-sep {
  display: flex;
  color: var(--text-subtle);
}
.bc-current {
  color: var(--text);
}

/* Article header */
.article-header {
  padding: var(--s-6) 0 var(--s-10);
}
.article-header-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.article-header .h-1 {
  margin: 0 0 24px;
}
.article-header-lead {
  max-width: 1280px;
}

/* Cover */
.article-cover {
  margin: 0 0 var(--s-8);
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 21/9;
  position: relative;
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Authorbar */
.article-authorbar {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-10);
}
.article-avatar {
  width: 40px;
  height: 40px;
  font-size: 13px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.article-authorbar-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.article-authorbar-meta strong {
  font-size: 14px;
  font-weight: 600;
}
.article-authorbar-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}
.article-authorbar-actions {
  display: flex;
  gap: var(--s-2);
}

/* Content + sidebar layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s-12);
  align-items: start;
}

/* Prose */
.article-prose {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  letter-spacing: -0.005em;
  min-width: 0;
}
.article-prose p {
  margin: 0 0 var(--s-5);
}
.article-prose h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: var(--s-10) 0 var(--s-4);
  letter-spacing: -0.025em;
  font-weight: 700;
  scroll-margin-top: 100px;
}
.article-prose h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: var(--s-8) 0 var(--s-3);
  letter-spacing: -0.02em;
  font-weight: 600;
  scroll-margin-top: 100px;
}
.article-prose blockquote {
  margin: var(--s-8) 0;
  padding: 0 0 0 var(--s-6);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.article-prose blockquote p {
  margin: 0;
}
.article-prose blockquote cite {
  display: block;
  margin-top: var(--s-3);
  font-size: 14px;
  font-style: normal;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.article-prose ul,
.article-prose ol {
  margin: var(--s-4) 0 var(--s-6);
  padding: 0 0 0 var(--s-5);
}
.article-prose li {
  margin-bottom: var(--s-2);
}
.article-prose figure {
  margin: var(--s-8) 0;
}
.article-prose figure img {
  border-radius: var(--r-xl);
  width: 100%;
  display: block;
}
.article-prose figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: var(--s-3);
  letter-spacing: 0.02em;
  text-align: center;
}
.article-prose hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: var(--s-8) 0;
}
.article-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-prose a:hover {
  color: var(--accent-hover);
}

/* Video embed */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Gallery */
.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-3);
  margin: var(--s-8) 0;
}
.article-gallery-item {
  margin: 0;
}
.article-gallery-item img {
  border-radius: var(--r-md);
  width: 100%;
  display: block;
}
.article-gallery-item figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: var(--s-2);
}

/* --- Sidebar ----------------------------------------------------------- */
.article-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.sidebar-card {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.sidebar-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  font-weight: 500;
  margin: 0 0 var(--s-4);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* TOC */
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-link {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-muted);
  transition:
    background 0.15s,
    color 0.15s;
  line-height: 1.35;
}
.toc-link:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}
.toc-link--sub {
  padding-left: 24px;
  font-size: 12px;
}

/* Author */
.sidebar-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-author-avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.sidebar-author-name {
  font-size: 14px;
  font-weight: 600;
}
.sidebar-author-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
}

/* Tags */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Related */
.sidebar-related {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.sidebar-related-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-3);
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: var(--r-sm);
  padding: 4px;
  transition: background 0.15s;
}
.sidebar-related-item:hover {
  background: var(--bg-card-hover);
}
.sidebar-related-thumb {
  width: 64px;
  height: 48px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--bg-inset);
}
.sidebar-related-body h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.sidebar-related-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
}

/* Responsive */
@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
  .article-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--s-4);
  }
  .article-sidebar .sidebar-card {
    flex: 1;
    min-width: 280px;
  }
}
@media (max-width: 860px) {
  .article-cover {
    aspect-ratio: 16/9;
  }
  .article-header .h-1 {
    font-size: 36px;
  }
  .article-authorbar {
    flex-wrap: wrap;
  }
  .article-authorbar-actions {
    width: 100%;
    margin-left: 0;
  }
}

/* =======================================================================
   COMMENTS SECTION  (Phase 6.2 — placeholder pre Phase 7)
   ======================================================================= */
.article-comments {
  margin-top: var(--s-16);
  padding: var(--s-12) 0;
  border-top: 1px solid var(--border);
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-8);
}
.comments-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.comments-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

/* Comment form */
.comment-form {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}
.comment-form-avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.comment-form-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.comment-textarea {
  width: 100%;
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.15s;
}
.comment-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.comment-textarea::placeholder {
  color: var(--text-subtle);
}
.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.comment-form-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
}

/* Login prompt */
.comment-login-prompt {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.comment-login-prompt strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}
.comment-login-prompt p {
  margin: 4px 0 0;
  font-size: 13px;
}

/* Empty state */
.comments-empty {
  text-align: center;
  padding: var(--s-12) var(--s-8);
  border: 1px dashed var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  margin-top: var(--s-6);
}
.comments-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--s-4);
  border-radius: var(--r-lg);
  background: var(--bg-inset);
  display: grid;
  place-items: center;
  color: var(--text-subtle);
}
.comments-empty h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.comments-empty p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .comments-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .comment-login-prompt {
    flex-wrap: wrap;
  }
}

/* =======================================================================
   LISTING PAGES  (Phase 6.3)
   ======================================================================= */

/* Header */
.listing-header {
  padding: var(--s-6) 0 var(--s-8);
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.listing-header-left {
  flex: 1;
  min-width: 0;
}
.listing-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 400px;
}
.listing-header-stats {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.listing-stat {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

/* Filter bar */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.filterbar-types {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.filterbar-spacer {
  flex: 1;
}

/* Featured banner */
.listing-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  min-height: 280px;
  margin: var(--s-8) 0;
  text-decoration: none;
  color: inherit;
}
.listing-featured-content {
  padding: var(--s-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.listing-featured-img {
  position: relative;
  overflow: hidden;
}
.listing-featured-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.listing-featured-img .ph {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}
.listing-featured:hover .listing-featured-img img {
  transform: scale(1.05);
}

/* Empty */
.listing-empty {
  text-align: center;
  padding: var(--s-16) var(--s-8);
  border: 1px dashed var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  margin: var(--s-8) 0;
}
.listing-empty h4 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.listing-empty p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Pagination */
.listing-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: var(--s-12) 0;
}

/* Taxonomy overview grid */
.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-8);
}
.taxonomy-card {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s,
    background 0.15s;
}
.taxonomy-card:hover {
  transform: translateX(4px);
}
.taxonomy-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--bg-inset);
  display: grid;
  place-items: center;
  color: var(--text-subtle);
  flex-shrink: 0;
}
.taxonomy-card-body {
  flex: 1;
  min-width: 0;
}
.taxonomy-card-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.taxonomy-card-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}
.taxonomy-card-arrow {
  color: var(--text-subtle);
  transition:
    transform 0.2s,
    color 0.2s;
  flex-shrink: 0;
}
.taxonomy-card:hover .taxonomy-card-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

@media (max-width: 1100px) {
  .listing-featured {
    grid-template-columns: 1fr;
  }
  .listing-featured-img {
    min-height: 240px;
  }
}
@media (max-width: 860px) {
  .listing-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .listing-header-tags {
    justify-content: flex-start;
    max-width: none;
  }
}

/* =======================================================================
   BROWSE PAGE — bento article grid (Phase 6.3 update)
   ======================================================================= */

/* Category chips row */
.browse-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--s-6) 0 var(--s-4);
}
.browse-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s;
  text-decoration: none;
}
.browse-cat-chip:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.browse-cat-name {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.browse-cat-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  background: var(--bg-inset);
  padding: 2px 8px;
  border-radius: var(--r-full);
}

/* Bento grid — repeating 4-article pattern */
.browse-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  margin-top: var(--s-8);
}

.browse-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.browse-item a {
  display: flex;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.browse-item .ph {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.browse-item:hover .ph {
  transform: scale(1.05);
}
.browse-item .ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0 0 0/0.85) 0%,
    oklch(0 0 0/0.1) 55%,
    oklch(0 0 0/0) 75%
  );
}
.browse-item .bento-overlay h3 {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.browse-item:hover .bento-overlay h3 {
  transform: translateY(-4px);
}

/* Pattern: A = big (2col, 2row) */
.browse-item-a {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 440px;
}

/* Pattern: B = wide (2col) */
.browse-item-b {
  grid-column: span 2;
  min-height: 220px;
}

/* Pattern: C = text only (1col) */
.browse-item-c {
  grid-column: span 1;
  min-height: 220px;
}

/* Pattern: D = small image (1col) */
.browse-item-d {
  grid-column: span 1;
  min-height: 220px;
}

/* Reverse pattern for even groups (vizuálna variácia) */
.browse-item:nth-child(8n + 5) {
  grid-column: span 1;
  min-height: 220px;
} /* 5th = d-like */
.browse-item:nth-child(8n + 6) {
  grid-column: span 1;
  min-height: 220px;
} /* 6th = c-like */
.browse-item:nth-child(8n + 7) {
  grid-column: span 2;
  min-height: 220px;
} /* 7th = b-like */
.browse-item:nth-child(8n + 8) {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 440px;
} /* 8th = a-like */
.browse-item:nth-child(8n + 9) {
  grid-column: span 1;
  min-height: 220px;
} /* 8th = a-like */
.browse-item:nth-child(8n + 10) {
  grid-column: span 1;
  min-height: 220px;
} /* 8th = a-like */
.browse-item:nth-child(8n + 11) {
  grid-column: span 2;
  min-height: 220px;
} /* 8th = a-like */
.browse-item:nth-child(8n + 12) {
  grid-column: span 1;
  min-height: 220px;
} /* 8th = a-like */
.browse-item:nth-child(8n + 13) {
  grid-column: span 1;
  min-height: 220px;
} /* 8th = a-like */

@supports (animation-timeline: view()) {
  .browse-bento {
    opacity: 0;
    animation: reveal-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

@media (max-width: 1100px) {
  .browse-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .browse-item-a,
  .browse-item:nth-child(8n + 8) {
    grid-column: span 2;
    grid-row: auto;
    min-height: 300px;
  }
  .browse-item-b,
  .browse-item:nth-child(8n + 7) {
    grid-column: span 2;
  }
  .browse-item-c,
  .browse-item-d,
  .browse-item:nth-child(8n + 5),
  .browse-item:nth-child(8n + 6) {
    grid-column: span 1;
  }
}
@media (max-width: 540px) {
  .browse-bento {
    grid-template-columns: 1fr;
  }
  .browse-item-a,
  .browse-item-b,
  .browse-item-c,
  .browse-item-d,
  .browse-item:nth-child(8n + 5),
  .browse-item:nth-child(8n + 6),
  .browse-item:nth-child(8n + 7),
  .browse-item:nth-child(8n + 8) {
    grid-column: span 1;
    grid-row: auto;
    min-height: 200px;
  }
}

/* =======================================================================
   RANKING PAGES  (Phase 6.4)
   ======================================================================= */

/* Header */
.rank-header {
  padding: var(--s-6) 0 var(--s-12);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
.rank-header-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
@media (max-width: 1100px) {
  .rank-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .rank-header-actions {
    align-items: flex-start;
  }
}

/* =========================== PODIUM ================================= */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: var(--s-12);
}
.podium-card {
  padding: 0;
  overflow: hidden;
}
.podium-card--first {
  transform: translateY(-12px);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 24px 48px oklch(0.72 0.17 155/0.15);
}
.podium-body {
  padding: var(--s-6);
}
.podium-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.podium-rank {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--text-subtle);
  line-height: 1;
  font-feature-settings: 'tnum';
}
.podium-rank--gold {
  font-size: 96px;
  background: linear-gradient(180deg, var(--accent) 20%, oklch(0.55 0.1 155) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.podium-rank--silver {
  font-size: 64px;
  background: linear-gradient(180deg, oklch(0.7 0.01 240) 0%, oklch(0.4 0.01 240) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.podium-score-big {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.podium-score-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.podium-score-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.podium-brand {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 500;
}
.podium-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
}
.podium-name--first {
  font-size: 26px;
}
.podium-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.podium-score-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  font-size: 12px;
}
.podium-score-item-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  letter-spacing: 0.03em;
}
.podium-score-item-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.podium-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
@media (max-width: 1100px) {
  .podium {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .podium-card--first {
    transform: none;
    order: -1;
  }
}

/* =========================== TOP 4-10 LIST ========================== */
.rlist {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-card);
}
.ritem {
  display: grid;
  grid-template-columns: 80px 120px 1fr auto;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-5) var(--s-6);
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.ritem:last-child {
  border-bottom: 0;
}
.ritem:hover {
  background: var(--bg-card-hover);
}
.ritem-rank {
  display: flex;
  align-items: center;
}
.rank-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-subtle);
  line-height: 1;
  font-feature-settings: 'tnum';
  transition: color 0.2s;
}
.ritem:hover .rank-num {
  color: var(--accent);
}
.ritem-img {
  width: 120px;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}
.ritem-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ritem-body {
  min-width: 0;
}
.ritem-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 6px 0 10px;
}
.ritem-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ritem-score-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  font-size: 11px;
}
.ritem-score-chip-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}
.ritem-score-chip-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.ritem-score-chip--sm {
  padding: 2px 8px;
  font-size: 10px;
}
.ritem-score-chip--sm .ritem-score-chip-label {
  font-size: 9px;
}
.ritem-score-chip--sm .ritem-score-chip-val {
  font-size: 10px;
}
.ritem-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.ritem-final-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.ritem-final-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.ritem-final-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.ritem-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}
@media (max-width: 860px) {
  .ritem {
    grid-template-columns: 60px 80px 1fr auto;
    gap: var(--s-3);
  }
  .ritem-img {
    width: 80px;
  }
  .rank-num {
    font-size: 36px;
  }
  .ritem-name {
    font-size: 16px;
  }
  .ritem-final-num {
    font-size: 24px;
  }
}

/* =========================== TOP 11+ COMPACT ======================== */
.rlist-compact {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-card);
}
.ritem-compact {
  display: grid;
  grid-template-columns: 56px 1fr auto auto 80px;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.ritem-compact:last-child {
  border-bottom: 0;
}
.ritem-compact:hover {
  background: var(--bg-card-hover);
}
.ritem-compact-rank {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: -0.04em;
  font-feature-settings: 'tnum';
}
.ritem-compact-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ritem-compact-brand {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ritem-compact-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.ritem-compact-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ritem-compact-final {
  display: flex;
  align-items: center;
}
.ritem-compact-price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  color: var(--text-muted);
}
@media (max-width: 860px) {
  .ritem-compact {
    grid-template-columns: 40px 1fr auto 60px;
    gap: var(--s-2);
  }
  .ritem-compact-scores {
    display: none;
  }
}

/* Method box */
.rank-method {
  margin-top: var(--s-12);
  padding: var(--s-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

/* =========================== TABLE PAGE ============================= */
.rtable-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: var(--s-6);
}
.rtable-filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  margin-right: 8px;
}

.rtable-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  scrollbar-width: thin;
}

.rtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 900px;
}
.rtable-th {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  background: var(--bg-inset);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
}
.rtable-th:hover {
  color: var(--text);
}
.rtable-th--rank {
  width: 60px;
  text-align: center;
}
.rtable-th--name {
  min-width: 200px;
}
.rtable-th--score {
  width: 80px;
  text-align: center;
}
.rtable-th--total {
  width: 80px;
  text-align: center;
}
.rtable-th--price {
  width: 100px;
}
.rtable-th--date {
  width: 100px;
}
.sort-icon {
  font-size: 10px;
  opacity: 0.5;
  margin-left: 2px;
}

.rtable-row {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.rtable-row:last-child {
  border-bottom: 0;
}
.rtable-row:hover {
  background: var(--bg-card-hover);
}
.rtable td {
  padding: 10px 14px;
  vertical-align: middle;
}

.rtable-rank {
  text-align: center;
}
.rtable-rank-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-subtle);
}
.rtable-product {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rtable-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.rtable-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rtable-brand {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rtable-name {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

.rtable-score-cell {
  text-align: center;
}
.rtable-score-val {
  display: inline-block;
  min-width: 36px;
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.rtable-score--great {
  background: oklch(0.72 0.17 155/0.15);
  color: oklch(0.72 0.17 155);
}
.rtable-score--good {
  background: oklch(0.7 0.14 200/0.15);
  color: oklch(0.7 0.14 200);
}
.rtable-score--mid {
  background: oklch(0.75 0.14 80/0.15);
  color: oklch(0.75 0.14 80);
}
.rtable-score--low {
  background: oklch(0.65 0.2 25/0.15);
  color: oklch(0.65 0.2 25);
}

.rtable-total-cell {
  text-align: center;
}
.rtable-total {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.rtable-price-cell {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
.rtable-date-cell {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
}

.rtable-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-6);
  background: var(--bg-inset);
  border-radius: var(--r-lg);
}
.rtable-legend-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}
.rtable-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Ranking index page --- */
.ranking-group {
  padding: var(--s-12) 0;
  border-bottom: 1px solid var(--border);
}
.ranking-group:last-of-type {
  border-bottom: 0;
}
.ranking-group-header {
  margin-bottom: var(--s-8);
}
.ranking-group-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--s-6);
  flex-wrap: wrap;
}

/* Mini podium cards */
.ranking-mini-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.mini-podium-card {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  gap: var(--s-4);
  align-items: center;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.mini-podium-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.mini-podium-card--first {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 8px 24px oklch(0.72 0.17 155/0.1);
}
.mini-podium-rank-wrap {
  flex-shrink: 0;
}
.mini-podium-rank {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  font-feature-settings: 'tnum';
}
.mini-podium-rank--gold {
  background: linear-gradient(180deg, var(--accent) 20%, oklch(0.55 0.1 155) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.mini-podium-rank--silver {
  background: linear-gradient(180deg, oklch(0.7 0.01 240) 0%, oklch(0.4 0.01 240) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.mini-podium-body {
  flex: 1;
  min-width: 0;
}
.mini-podium-brand {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mini-podium-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 4px 0 10px;
}
.mini-podium-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mini-podium-score {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.mini-podium-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
@media (max-width: 860px) {
  .ranking-mini-podium {
    grid-template-columns: 1fr;
  }
}

/* Table filters extended */
.rtable-filters-wrap {
  margin-bottom: var(--s-6);
  padding: var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.rtable-range-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rtable-range-input {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-inset);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  width: 100px;
}
.rtable-range-input:focus {
  outline: none;
  border-color: var(--accent);
}
.rtable-range-sep {
  color: var(--text-subtle);
  font-size: 12px;
}
@media (max-width: 860px) {
  .rtable-filters {
    flex-wrap: wrap;
  }
  .rtable-range-group {
    width: 100%;
  }
}

/* =======================================================================
   RANKING INDEX V2 — nahraď predošlé .ranking-group* a .mini-podium*
   a pridaj nové štýly. Pridať NA KONIEC site.css.
   ======================================================================= */

/* Hero */
.rank-index-hero {
  position: relative;
  padding: var(--s-16) var(--s-12);
  border-radius: var(--r-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: var(--s-12);
}
.rank-index-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.rank-index-glow-1 {
  position: absolute;
  width: 50%;
  height: 120%;
  top: -30%;
  right: -10%;
  background: radial-gradient(circle, oklch(0.72 0.17 155/0.25), transparent 60%);
  filter: blur(60px);
  animation: bg-drift-1 16s ease-in-out infinite;
}
.rank-index-glow-2 {
  position: absolute;
  width: 40%;
  height: 100%;
  bottom: -20%;
  left: 5%;
  background: radial-gradient(circle, oklch(0.55 0.2 280/0.2), transparent 60%);
  filter: blur(50px);
  animation: bg-drift-2 20s ease-in-out infinite;
}
.rank-index-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 80% 50%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 50%, black 0%, transparent 60%);
  opacity: 0.4;
}
.rank-index-hero-content {
  position: relative;
  z-index: 1;
}
.rank-index-hero-stats {
  display: flex;
  gap: var(--s-10);
  margin-top: var(--s-8);
}
.rank-index-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rank-index-stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.rank-index-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.03em;
}
@media (max-width: 860px) {
  .rank-index-hero {
    padding: var(--s-10) var(--s-6);
  }
  .rank-index-hero-stats {
    gap: var(--s-6);
    flex-wrap: wrap;
  }
  .rank-index-stat-num {
    font-size: 32px;
  }
}

/* Group sections */
.rank-group {
  padding: var(--s-10) 0;
  border-bottom: 1px solid var(--border);
}
.rank-group:last-of-type {
  border-bottom: 0;
}
.rank-group-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}
.rank-group-header-left {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
.rank-group-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  background: oklch(0.72 0.17 var(--rg-hue) / 0.12);
  border: 1px solid oklch(0.72 0.17 var(--rg-hue) / 0.25);
  display: grid;
  place-items: center;
  color: oklch(0.72 0.17 var(--rg-hue));
  flex-shrink: 0;
}
.rank-group-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 8px 0 6px;
}
.rank-group-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
  max-width: 420px;
}
.rank-group-header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
@media (max-width: 860px) {
  .rank-group-header {
    flex-direction: column;
  }
  .rank-group-header-actions {
    width: 100%;
  }
}

/* Lite podium — simplified TOP3 */
.rank-lite-podium {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: var(--s-4);
  align-items: end;
}
.rank-lite-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.2s,
    box-shadow 0.2s;
}
.rank-lite-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px oklch(0 0 0/0.2);
}
.rank-lite-card--first {
  border-color: oklch(0.72 0.17 var(--rg-hue) / 0.5);
  box-shadow:
    0 0 0 1px oklch(0.72 0.17 var(--rg-hue) / 0.3),
    0 12px 32px oklch(0.72 0.17 var(--rg-hue) / 0.12);
  transform: translateY(-8px);
}
.rank-lite-card--first:hover {
  transform: translateY(-12px);
  box-shadow:
    0 0 0 1px oklch(0.72 0.17 var(--rg-hue) / 0.5),
    0 24px 48px oklch(0.72 0.17 var(--rg-hue) / 0.18);
}

.rank-lite-card-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.rank-lite-card--first .rank-lite-card-bg {
  background: linear-gradient(135deg, oklch(0.72 0.17 var(--rg-hue) / 0.08) 0%, transparent 60%);
}

.rank-lite-card-content {
  position: relative;
  z-index: 1;
  padding: var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.rank-lite-rank {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  font-feature-settings: 'tnum';
  flex-shrink: 0;
}
.rank-lite-rank--gold {
  font-size: 72px;
  background: linear-gradient(
    180deg,
    oklch(0.72 0.17 var(--rg-hue)) 20%,
    oklch(0.45 0.1 var(--rg-hue)) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.rank-lite-rank--silver {
  font-size: 52px;
  background: linear-gradient(180deg, oklch(0.7 0.01 240) 0%, oklch(0.35 0.01 240) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.rank-lite-card--first .rank-lite-rank--gold {
  font-size: 80px;
}

.rank-lite-info {
  flex: 1;
  min-width: 0;
}
.rank-lite-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.rank-lite-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
  line-height: 1.2;
}
.rank-lite-card--first .rank-lite-name {
  font-size: 22px;
}

.rank-lite-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.rank-lite-score {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: oklch(0.72 0.17 var(--rg-hue));
}
.rank-lite-card--first .rank-lite-score {
  font-size: 40px;
}
.rank-lite-score-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

@media (max-width: 860px) {
  .rank-lite-podium {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
  .rank-lite-card--first {
    transform: none;
    order: -1;
  }
  .rank-lite-card--first:hover {
    transform: translateY(-4px);
  }
  .rank-lite-rank--gold,
  .rank-lite-card--first .rank-lite-rank--gold {
    font-size: 56px;
  }
  .rank-lite-rank--silver {
    font-size: 44px;
  }
}

/* Method icon */
.rank-method-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* Scroll reveal */
@supports (animation-timeline: view()) {
  .rank-group,
  .rank-index-hero {
    opacity: 0;
    animation: reveal-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

/* --- Auth doplnky --- */
.auth-section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: var(--s-4) 0;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-section-divider::before,
.auth-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-field--checkbox {
  flex-direction: row;
  align-items: center;
}
.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}
.auth-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.auth-info-card {
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--bg-inset);
  border: 1px solid var(--border);
}
.auth-info-card-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
}
.auth-info-card-row + .auth-info-card-row {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 10px;
}
.auth-info-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.auth-info-card-value {
  font-size: 15px;
  font-weight: 500;
}

/* --- Profile doplnky --- */
.profile-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  margin-bottom: var(--s-8);
  width: fit-content;
}
.profile-nav-tab {
  padding: 7px 16px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.profile-nav-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}
.profile-nav-tab.active {
  background: var(--text);
  color: var(--bg);
}

.profile-meta-row {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.profile-meta-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
}

.profile-public-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  margin-top: var(--s-6);
}

.profile-avatar-section {
  display: flex;
  gap: var(--s-6);
  align-items: flex-start;
}
.profile-avatar-current {
  flex-shrink: 0;
}
.profile-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--r-lg);
  background: var(--bg-inset);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-subtle);
  font-family: var(--font-mono);
}
.profile-avatar-forms {
  flex: 1;
}
.profile-avatar-upload {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.profile-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.profile-social-link:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.profile-social-platform {
  font-family: var(--font-mono);
  font-size: 12px;
}

@media (max-width: 860px) {
  .profile-row {
    grid-template-columns: 1fr;
  }
  .profile-avatar-section {
    flex-direction: column;
  }
  .profile-avatar-upload {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =======================================================================
   REVIEW PAGE  (Phase 6 — recenzia detail)
   ======================================================================= */

/* Header split */
.review-header {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  padding: var(--s-8) 0 var(--s-12);
  align-items: center;
}
.review-header-text {
  display: flex;
  flex-direction: column;
}
.review-header-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.review-header-img {
  border-radius: var(--r-2xl);
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.review-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 1100px) {
  .review-header {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .review-header-img {
    max-height: 400px;
  }
}

/* Verdict */
.verdict {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-10);
  padding: var(--s-10);
  border-radius: var(--r-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: var(--s-12);
  align-items: center;
}
.verdict-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 var(--s-8);
}
.verdict-score-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.verdict-score-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(180deg, var(--text) 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.verdict-stars {
  display: flex;
  gap: 2px;
  color: oklch(0.8 0.15 80);
}
.verdict-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  border: 1px solid oklch(0.72 0.17 155/0.2);
}
.verdict-text {
  padding-left: var(--s-8);
  border-left: 1px solid var(--border);
}
@media (max-width: 860px) {
  .verdict {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .verdict-score {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }
  .verdict-score-num {
    font-size: 56px;
  }
  .verdict-text {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-top: var(--s-6);
  }
}

/* Breakdown + Specs grid */
.review-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 0 0 var(--s-12);
}
@media (max-width: 860px) {
  .review-details {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Score breakdown bars */
.score-bd {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.score-bd-row {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.score-bd-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.score-bar {
  height: 8px;
  border-radius: var(--r-full);
  background: var(--bg-inset);
  overflow: hidden;
  position: relative;
}
.score-bar i {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--accent), oklch(0.65 0.18 280));
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.score-bd-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table tr {
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  text-align: left;
  padding: 10px 16px 10px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
  white-space: nowrap;
  width: 120px;
}
.spec-table td {
  padding: 10px 0;
  color: var(--text);
}

/* Pros / Cons */
.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-12);
}
.proscons-col {
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.proscons-col--pros {
  border-color: oklch(0.72 0.17 155/0.3);
}
.proscons-col--cons {
  border-color: oklch(0.65 0.2 25/0.3);
}
.proscons-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 var(--s-4);
  font-weight: 600;
}
.proscons-title--pros {
  color: oklch(0.72 0.17 155);
}
.proscons-title--cons {
  color: oklch(0.65 0.2 25);
}
.proscons-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proscons-col li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.proscons-col--pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: oklch(0.72 0.17 155);
  font-weight: 700;
}
.proscons-col--cons li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: oklch(0.65 0.2 25);
  font-weight: 700;
}
@media (max-width: 860px) {
  .proscons {
    grid-template-columns: 1fr;
  }
}

/* Body wrap */
.review-body-wrap {
  max-width: 780px;
  margin: 0 auto var(--s-12);
}

/* Tags */
.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border);
  margin-bottom: var(--s-8);
}

/* Scroll reveal */
@supports (animation-timeline: view()) {
  .verdict,
  .review-details,
  .proscons {
    opacity: 0;
    animation: reveal-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

.minimal-review-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: oklch(1 0 0/0.6);
  letter-spacing: 0.03em;
}

/* =======================================================================
   CONTENT SECTIONS  (cs-*)
   Reusable layout bloky pre články, recenzie, stránky.
   ======================================================================= */

/* Base */
.cs {
  margin: var(--s-12) 0;
}
.cs-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

.cs-text p {
  margin: 0 0 var(--s-4);
}
.cs-text p:last-child {
  margin-bottom: 0;
}
.cs-divider {
  height: 1px;
  background: var(--border);
  margin: var(--s-4) 0 var(--s-6);
}

/* --- Title variants --------------------------------------------------- */
.cs-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 var(--s-5);
}

/* Numbered */
.cs-title--numbered {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.cs-num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-subtle);
  font-feature-settings: 'tnum';
  line-height: 1;
  flex-shrink: 0;
}

/* Accent */
.cs-title--accent {
  color: var(--accent);
}

/* Gradient */
.cs-title--gradient {
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 60%, oklch(0.65 0.18 280) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

/* XL */
.cs-title--xl {
  font-size: 48px;
  letter-spacing: -0.04em;
}

/* --- Media (image/video below) ---------------------------------------- */
.cs-media {
  margin: var(--s-8) 0 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
}
.cs-media img {
  width: 100%;
  display: block;
}
.cs-media figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: var(--s-3);
  letter-spacing: 0.02em;
}

.cs figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: var(--s-3);
  letter-spacing: 0.02em;
  display: flex;
  justify-content: center;
}

/* Video overlay */
.cs-media--video {
  position: relative;
}
.cs-video-link {
  display: block;
  position: relative;
}
.cs-video-link img {
  width: 100%;
  display: block;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cs-video-link:hover img {
  transform: scale(1.03);
}
.cs-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: oklch(0 0 0/0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid oklch(1 0 0/0.25);
  display: grid;
  place-items: center;
  color: oklch(1 0 0);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.2s;
}
.cs-video-link:hover .cs-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent);
}
.cs-play-btn svg {
  margin-left: 3px;
}

/* --- Split layout (text + media side by side) ------------------------- */
.cs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: center;
}
.cs-split--reverse {
  direction: rtl;
}
.cs-split--reverse > * {
  direction: ltr;
}
.cs-split-text {
  display: flex;
  flex-direction: column;
}

.cs-split-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  margin-right: 0;
}
.cs-split-media img {
  width: 100%;
  display: block;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cs-split-media:hover img {
  transform: scale(1.03);
}

/* Tilt (3D perspective like hero slider) */
.cs-split-media--tilt {
  overflow: visible;
  border-radius: 0;
  transform: perspective(1200px) rotateY(-10deg) rotateX(5deg);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cs:hover .cs-split-media--tilt {
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg) translateY(-6px);
}
.cs-tilt-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow:
    0 32px 64px -16px oklch(0 0 0/0.45),
    0 16px 32px -8px oklch(0.72 0.17 155/0.15),
    inset 0 1px 0 oklch(1 0 0/0.1);
}
.cs-tilt-img img {
  width: 100%;
  display: block;
}
.cs-tilt-shadow {
  position: absolute;
  inset: 30% 0 -15% 10%;
  background: radial-gradient(ellipse, oklch(0 0 0/0.4), transparent 60%);
  filter: blur(24px);
  z-index: -1;
}
.cs-tilt-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, oklch(1 0 0/0.12) 50%, transparent 60%);
  pointer-events: none;
}

/* Reverse tilt */
.cs-split--reverse .cs-split-media--tilt {
  transform: perspective(1200px) rotateY(10deg) rotateX(5deg);
}
.cs-split--reverse:hover .cs-split-media--tilt {
  transform: perspective(1200px) rotateY(7deg) rotateX(3deg) translateY(-6px);
}

@media (max-width: 1100px) {
  .cs-split {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
  .cs-split--reverse {
    direction: ltr;
  }
  .cs-split-media--tilt {
    transform: none;
  }
  .cs:hover .cs-split-media--tilt,
  .cs-split--reverse:hover .cs-split-media--tilt {
    transform: translateY(-4px);
  }
}

/* --- Grid layout (title right, text left, media full below) ----------- */
.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--s-6) var(--s-12);
}
.cs-grid-text {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
}
.cs-grid-title {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}
.cs-grid-title .cs-title {
  margin-bottom: 0;
}
.cs-grid-media {
  grid-column: 1/-1;
  grid-row: 2;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  margin: 0;
}
.cs-grid-media img {
  width: 100%;
  display: block;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cs-grid-media:hover img {
  transform: scale(1.02);
}
.cs-grid-figcaption {
  grid-column: 1/-1;
  grid-row: 3;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: var(--s-3);
}
.cs-grid--title-left .cs-grid-title {
  grid-column: 1;
  justify-content: flex-start;
  text-align: left;
}

.cs-grid--title-left .cs-grid-text {
  grid-column: 2;
}

@media (max-width: 860px) {
  .cs-grid {
    display: flex;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    flex-direction: column;
  }
  .cs-grid-title {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    text-align: left;
  }
  .cs-grid-text {
    grid-column: 1;
    grid-row: 2;
  }
  .cs-grid-media {
    grid-column: 1;
    grid-row: 3;
  }
  .cs-title--xl {
    font-size: 36px;
  }
}

/* --- Scroll reveal ---------------------------------------------------- */
@supports (animation-timeline: view()) {
  .cs {
    opacity: 0;
    animation: reveal-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

/* =======================================================================
   ERROR PAGES (404, 500)
   ======================================================================= */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: var(--s-16) var(--s-6);
  position: relative;
}
.error-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.72 0.17 155/0.2), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
}
.error-glow--red {
  background: radial-gradient(circle, oklch(0.65 0.2 25/0.2), transparent 60%);
}
.error-code {
  font-family: var(--font-display);
  font-size: 160px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(180deg, var(--text) 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
  padding: 0.05em 0.05em 0.1em;
  margin: -0.05em -0.05em -0.1em;
}
.error-code--red {
  background: linear-gradient(180deg, var(--text) 20%, oklch(0.65 0.2 25) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.05em 0.05em 0.1em;
  margin: -0.05em -0.05em -0.1em;
}
.error-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: var(--s-4) 0;
  position: relative;
  z-index: 1;
}
.error-desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 0 var(--s-8);
  position: relative;
  z-index: 1;
}
.error-actions {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}
.error-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--s-10);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}
.error-links-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}
.error-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.error-links a:hover {
  color: var(--accent);
}
@media (max-width: 540px) {
  .error-code {
    font-size: 100px;
  }
}

/* =======================================================================
   SEARCH PAGE
   ======================================================================= */
.search-hero {
  max-width: 760px;
  margin: 0 auto var(--s-8);
}
.search-form {
  margin-bottom: var(--s-5);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 64px;
  padding: 0 var(--s-5);
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--r-xl);
  font-size: 16px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.search-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.72 0.17 155/0.12);
}
.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}
.search-input-wrap input::placeholder {
  color: var(--text-subtle);
}
.search-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Suggestions */
.search-suggestions {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.search-suggest-col {
}
.search-suggest-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-suggest-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 14px;
  transition:
    background 0.12s,
    color 0.12s;
  cursor: pointer;
}
.search-suggest-item:hover {
  background: var(--bg-card);
  color: var(--text);
}

/* Results */
.search-results-meta {
  max-width: 760px;
  margin: 0 auto var(--s-6);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}
.search-results {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-result {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: var(--s-card-pad);
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.search-result-thumb {
  width: 100px;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-inset);
  position: relative;
}
.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.search-result-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.search-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
}
.search-result-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}
.search-result-excerpt {
  color: var(--text-muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result-views {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  flex-shrink: 0;
}

.search-empty {
  text-align: center;
  max-width: 560px;
  margin: var(--s-12) auto;
  padding: var(--s-12) var(--s-8);
  border: 1px dashed var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-card);
}

@media (max-width: 860px) {
  .search-suggestions {
    grid-template-columns: 1fr;
  }
  .search-result {
    grid-template-columns: 80px 1fr auto;
  }
}
@media (max-width: 540px) {
  .search-result {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .search-result-thumb {
    width: 100%;
    aspect-ratio: 16/9;
  }
}

/* =============================================
   PATCH 6: Pridaj na KONIEC site.css
   (color variant cards z review šablóny)
   ============================================= */

/* Color variants showcase */
.rv-colors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3);
  margin: var(--s-8) 0;
}
.rv-color-card {
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.4s;
}
.rv-color-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px oklch(0 0 0 / 0.4);
}
.rv-color-swatch {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--swatch);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.rv-color-phone {
  width: 56%;
  aspect-ratio: 9/19;
  border-radius: 22px;
  background: linear-gradient(
    160deg,
    oklch(from var(--swatch) calc(l + 0.08) c h),
    var(--swatch) 50%,
    oklch(from var(--swatch) calc(l - 0.06) c h)
  );
  border: 2px solid oklch(from var(--swatch) calc(l - 0.1) c h / 0.6);
  box-shadow:
    inset 0 0 0 4px oklch(from var(--swatch) calc(l - 0.04) c h / 0.5),
    0 30px 60px -20px oklch(0 0 0 / 0.5);
  position: relative;
  transform: rotate(-6deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rv-color-phone::after {
  content: '';
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 5%;
  border-radius: 99px;
  background: oklch(from var(--swatch) calc(l - 0.2) c h / 0.6);
}
.rv-color-card:hover .rv-color-phone {
  transform: rotate(0deg) scale(1.06);
}
.rv-color-code {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--swatch-text);
  opacity: 0.65;
  text-transform: uppercase;
}
.rv-color-meta {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rv-color-meta h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.rv-color-meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
}

@media (max-width: 1100px) {
  .rv-colors {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .rv-colors {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Article content — plná šírka ---- */
.article-content {
  margin: 0 auto var(--s-12);
}
.article-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-4);
}
.article-content p:last-child {
  margin-bottom: 0;
}

/* ---- review-half: vedľa seba ---- */
.review-half {
  display: inline-block;
  vertical-align: top;
  width: calc(50% - 24px);
}
.review-half:nth-child(odd) {
  margin-right: 24px;
}
@media (max-width: 768px) {
  .review-half {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}

/* ---- Quote (blockquote) full width, normal weight ---- */
.article-content blockquote {
  margin: var(--s-8) 0;
  padding: 0 0 0 var(--s-6);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.article-content blockquote p {
  margin: 0;
  font-weight: 400;
}
.article-content blockquote cite {
  display: block;
  margin-top: var(--s-3);
  font-size: 14px;
  font-style: normal;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ---- Verdict padding fix ---- */
.verdict {
  padding: 40px;
  border-radius: var(--r-2xl);
  margin: var(--s-12) 0;
}

/* =======================================================================
   COMMENTS — rendered items  (Phase 7)
   ======================================================================= */

/* Single comment */
.cmt-item {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4) 0;
}
.cmt-item + .cmt-item {
  border-top: 1px solid var(--border);
}
.cmt-avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.cmt-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}
.cmt-body {
  flex: 1;
  min-width: 0;
}

/* Header */
.cmt-header {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.cmt-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.cmt-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}
.cmt-edited {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding: 1px 6px;
  background: var(--border);
  border-radius: var(--r-sm);
}

/* Content */
.cmt-content {
  margin: 0 0 var(--s-2);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.cmt-content--deleted {
  font-style: italic;
  color: var(--text-muted);
}

/* Actions */
.cmt-actions {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  flex-wrap: wrap;
}
.cmt-action-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  cursor: pointer;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition:
    background 0.15s,
    color 0.15s;
  letter-spacing: 0.02em;
}
.cmt-action-btn:hover {
  background: var(--bg-inset);
  color: var(--text);
}
.cmt-action-danger:hover {
  color: var(--red, #ef4444);
}
.cmt-action-save {
  color: var(--accent);
  font-weight: 600;
}

/* Like button */
.cmt-like-btn {
  gap: 3px;
}
.cmt-like-btn.cmt-liked {
  color: var(--red, #ef4444);
}

/* Replies */
.cmt-replies {
  margin-left: 48px;
  border-left: 2px solid var(--border);
  padding-left: var(--s-4);
}
.cmt-reply .cmt-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
  object-fit: cover;
  border-radius: 50%;
}

/* Reply mode hint */
.cmt-reply-hint {
  font-size: 13px;
  color: var(--text-muted);
  padding: var(--s-2) var(--s-3);
  background: var(--bg-inset);
  border-radius: var(--r-sm);
  margin-bottom: var(--s-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cmt-cancel-reply {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-subtle);
  cursor: pointer;
  text-decoration: underline;
}
.cmt-cancel-reply:hover {
  color: var(--text);
}

/* Edit textarea */
.cmt-edit-textarea {
  min-height: 80px;
  font-size: 14px;
}

/* Pagination */
.cmt-pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: var(--s-6) 0 var(--s-2);
}
.cmt-page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.cmt-page-btn:hover {
  background: var(--bg-inset);
  color: var(--text);
}
.cmt-page-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Responsive */
@media (max-width: 640px) {
  .cmt-replies {
    margin-left: 24px;
    padding-left: var(--s-3);
  }
}

/* =======================================================================
   NOTIFICATIONS BELL + DROPDOWN  (Phase 7 — notifikácie)
   ======================================================================= */

.notif-wrap {
  position: relative;
}
.notif-bell:hover {
  color: var(--text);
}
.notif-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--red, #ef4444);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  font-family: var(--font-mono);
}

/* Dropdown */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  z-index: 1000;
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.notif-dropdown.notif-open {
  display: flex;
}

.notif-dropdown-header {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.notif-dropdown-body {
  overflow-y: auto;
  flex: 1;
}

/* Single notification item */
.notif-item {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: var(--bg-inset);
}
.notif-unread {
  background: rgba(59, 130, 246, 0.06);
}
.notif-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-inset);
  display: grid;
  place-items: center;
  color: var(--text-subtle);
  margin-top: 2px;
}
.notif-unread .notif-icon {
  background: var(--accent);
  color: #fff;
}
.notif-body {
  flex: 1;
  min-width: 0;
}
.notif-message {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}
.notif-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

/* Empty / loading states */
.notif-empty,
.notif-loading {
  text-align: center;
  padding: var(--s-8) var(--s-4);
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 480px) {
  .notif-dropdown {
    width: calc(100vw - 32px);
    right: -60px;
  }
}

/* === Logo (wordmark + mark) === */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s;
  user-select: none;
}
.logo:hover {
  opacity: 0.85;
}
.logo-mark {
  display: block;
  height: 1em;
  width: auto;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.logo:hover .logo-mark {
  transform: scale(1.05) rotate(-2deg);
}
.logo-word {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}
.logo-word-main {
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.logo-word-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px oklch(from var(--accent) l c h / 0.6);
  animation: logo-dot-pulse 2.4s ease-in-out infinite;
}
.logo-word-sub {
  font-family: var(--font-mono);
  font-size: 0.42em;
  font-weight: 400;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
@keyframes logo-dot-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}
.logo-sm {
  font-size: 14px;
}
.logo-sm .logo-mark {
  height: 18px;
}
.logo-sm .logo-word-dot {
  right: -10px;
  bottom: 3px;
}
.logo-md {
  font-size: 19px;
}
.logo-md .logo-mark {
  height: 22px;
}
.logo-md .logo-word-dot {
  right: -12px;
  bottom: 3px;
}
.logo-lg {
  font-size: 24px;
}
.logo-lg .logo-mark {
  height: 26px;
}
.logo-lg .logo-word-dot {
  right: -14px;
  bottom: 4px;
  width: 6px;
  height: 6px;
}

.rail-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.04em;
}

.rail-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.rail-section {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  padding: var(--s-4) var(--s-2) var(--s-2);
}

.rail-link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}
.rail-link:hover {
  background: var(--bg-card);
  color: var(--text);
}
.rail-link.active {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.rail-link .rail-icon {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: var(--text-subtle);
}
.rail-link.active .rail-icon {
  color: var(--accent);
}

.rail-foot {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

/* === Cookie consent banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  padding: 16px 0;
}
.cookie-banner-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--s-8);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 240px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-banner-text strong {
  color: var(--text);
  font-size: 14px;
  flex-shrink: 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Banner v sidebar článku — bez marginu */
.article-sidebar .sidebar-card .promo-banner,
.article-sidebar .sidebar-card .newsletter-section {
  margin: 0;
}

/* Banner v sidebar článku — bez marginu */
.article-prose .promo-banner,
.article-prose .newsletter-section {
  margin: 0;
  margin-bottom: var(--s-8);
}

.container .category-banner .promo-banner {
  margin-top: var(--s-8);
}

.notif-item-wrap {
  display: flex;
  align-items: stretch;
  position: relative;
}
.notif-item-wrap .notif-item {
  flex: 1;
  min-width: 0;
}
.notif-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  flex-shrink: 0;
  border: none;
  background: none;
  color: var(--text-subtle);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.notif-item-wrap:hover .notif-dismiss {
  opacity: 1;
}
.notif-dismiss:hover {
  color: var(--text);
}

/* ---- Mobile menu -------------------------------------------------------- */
.topnav-burger {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100dvh;
  background: var(--bg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
  flex-direction: column;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu .container {
  padding-top: 20px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: none;
  color: var(--text);
  cursor: pointer;
}
.mobile-menu-close:hover {
  background: var(--bg-card-hover);
}
.mobile-menu-overlay {
  display: none;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.mobile-menu-link:hover,
.mobile-menu-link.active {
  background: var(--bg-card-hover);
  color: var(--text);
}
.mobile-menu-link--danger {
  color: oklch(0.7 0.18 25);
}
.mobile-menu-link--danger:hover {
  background: oklch(0.3 0.08 25);
}
.mobile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}
.mobile-menu-user {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.mobile-menu-spacer {
  flex: 1;
}

@media (max-width: 1180px) {
  .topnav-burger {
    display: flex;
    justify-content: center;
  }
  .topnav-pill {
    display: none;
  }
  .topnav-desktop-only {
    display: none !important;
  }
  .topnav-inner {
    height: 56px;
  }
  .topnav-brand {
    margin-right: auto;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (max-width: 480px) {
  .logo-word-main {
    font-size: 16px;
  }
}

.btn-bookmarked {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* Bookmarks page */
.bookmarks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bookmark-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.15s,
    background 0.15s;
  position: relative;
}
.bookmark-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.bookmark-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
}
.bookmark-body {
  flex: 1;
  min-width: 0;
}
.bookmark-type {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bookmark-title {
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bookmark-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bookmark-meta {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-subtle);
}
.bookmark-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--text-subtle);
  cursor: pointer;
  border-radius: var(--r-md);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.bookmark-card:hover .bookmark-remove {
  opacity: 1;
}
.bookmark-remove:hover {
  color: oklch(0.7 0.18 25);
  background: oklch(0.3 0.08 25);
}
