/* ===== Reset & base ===== */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:root {
  --bg: #f4f8fb;
  --bg-2: #eef3f8;
  --surface: #ffffff;
  --surface-2: #e9f0f6;
  --line: #d9e3ec;
  --text: #1c2b3a;
  --muted: #5f7183;
  --accent: #0e7490;
  --accent-2: #1d6fb8;
  --accent-3: #e8590c;
  --gold: #e8a33d;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(20, 45, 70, 0.10);
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Menlo", "Consolas", monospace;
}
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1100px 700px at 15% -8%, #e6f0f7 0%, var(--bg) 55%) fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }

/* ===== Layout ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display);
  font-size: 21px; letter-spacing: 0.5px;
  color: var(--text); font-weight: 700;
}
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 800; color: #fff;
  box-shadow: 0 4px 14px rgba(29, 111, 184, 0.30);
}
.nav-links {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.nav-links a {
  color: var(--text);
  padding: 8px 13px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.2px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--accent-2); }
.nav-links a.active {
  background: var(--surface-2);
  color: var(--accent-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.lang-switch {
  display: flex; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.lang-switch button {
  background: transparent; border: 0;
  color: var(--muted);
  padding: 6px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.1px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-mono);
}
.lang-switch button.active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 74vh;
  display: grid; place-items: center;
  overflow: hidden;
  text-align: center;
  padding: 90px 24px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/hero.jpg") center/cover no-repeat;
  filter: brightness(1.0) saturate(1.05);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244,248,251,0.15) 0%, rgba(244,248,251,0.55) 55%, var(--bg) 100%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 4px;
  color: var(--accent-2);
  text-transform: uppercase;
  padding: 6px 15px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #152438;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.hero p.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: #33465a;
  max-width: 640px; margin: 0 auto 32px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 111, 184, 0.25);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(29, 111, 184, 0.34); }
.btn-ghost {
  background: rgba(255,255,255,0.7);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: #fff; color: var(--accent-2); }

/* ===== Sections ===== */
section.section { padding: 76px 0; }
section.section + section.section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 44px; }
.section-head .kicker {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px;
  line-height: 1.12;
  letter-spacing: -0.3px;
  color: var(--text);
}
.section-head p { color: var(--muted); max-width: 680px; margin: 0; }

/* ===== Category tiles (home) ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px;
}
.cat-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.cat-tile:hover { transform: translateY(-4px); border-color: #bcd2e4; box-shadow: var(--shadow); }
.cat-tile .thumb {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  position: relative;
}
.cat-tile .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(16,34,52,0.55));
}
.cat-tile .body { padding: 18px 20px 22px; }
.cat-tile h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
}
.cat-tile p { color: var(--muted); margin: 0; font-size: 14px; }
.cat-tile .arrow {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: grid; place-items: center;
  color: var(--accent-2); font-size: 18px;
  border: 1px solid var(--line);
}

/* ===== Page header ===== */
.page-header {
  padding: 84px 0 46px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(760px 280px at 50% 0%, rgba(29,111,184,0.07), transparent);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  margin: 0 0 12px;
  line-height: 1.1;
  color: var(--text);
}
.page-header p { color: var(--muted); max-width: 720px; margin: 0 auto; font-size: 17px; }
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 18px; text-transform: uppercase;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-2); }

/* ===== Item grid (category pages) ===== */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.item-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.item-card:hover { transform: translateY(-3px); border-color: #bcd2e4; box-shadow: var(--shadow); }
.item-card .photo {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  position: relative;
  cursor: zoom-in;
  transition: transform 0.3s;
}
.item-card .photo:hover { transform: scale(1.02); }
.item-card .photo::after {
  content: "🔍";
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s;
}
.item-card .photo:hover::after { opacity: 1; }
.item-card .tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 1.5px;
  background: rgba(255,255,255,0.9);
  color: var(--accent-2);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-transform: uppercase;
}
.item-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.item-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
}
.item-card .meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3px;
  background: var(--bg-2);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.item-card .meta span {
  display: flex; align-items: baseline; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.item-card .meta span strong {
  color: var(--accent-2);
  font-weight: 600;
  flex-shrink: 0;
}
.item-card p { color: #46586b; margin: 0; font-size: 14.5px; }
.item-card .actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.item-card .actions .btn { flex: 1; justify-content: center; padding: 10px 14px; font-size: 13px; }

/* ===== Video placeholder ===== */
.video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #0d141c;
  border: 1px solid var(--line);
  margin: 40px 0;
}
.video .scene { position: absolute; inset: 0; }
.video .overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.45));
  text-align: center;
  padding: 20px;
}
.video .play {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-2);
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  cursor: pointer;
  border: 0;
  transition: transform 0.2s;
}
.video .play:hover { transform: scale(1.05); }
.video .caption { color: #e7edf3; font-size: 14px; max-width: 460px; }

/* Scene variants (CSS-only fallback) */
.scene.alpine {
  background: linear-gradient(180deg, #6fa8d8 0%, #b8d6ee 50%, #eef5fb 100%);
}
.scene.alpine .peak {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(180deg, #ffffff 0%, #aebfce 100%);
  clip-path: polygon(0% 100%, 0% 60%, 15% 30%, 30% 50%, 45% 15%, 60% 45%, 75% 25%, 90% 50%, 100% 35%, 100% 100%);
}
.scene.alpine .snow {
  position: absolute; bottom: 0; left: 0; right: 0; height: 25%;
  background: linear-gradient(180deg, #f7fafc, #d7e2ec);
  clip-path: polygon(0% 100%, 0% 50%, 20% 20%, 50% 0%, 80% 30%, 100% 15%, 100% 100%);
}
@keyframes aurora {
  0%, 100% { transform: translateX(0) scaleY(1); opacity: 0.4; }
  50% { transform: translateX(20px) scaleY(1.1); opacity: 0.6; }
}
.scene.alpine .aurora {
  position: absolute; top: 8%; left: 20%; width: 60%; height: 30%;
  background: linear-gradient(90deg, transparent, #9ef0c4 40%, #7cd4f2 60%, transparent);
  filter: blur(20px);
  border-radius: 50%;
  animation: aurora 6s ease-in-out infinite;
}

.scene.snowboard {
  background: linear-gradient(180deg, #415a77 0%, #778da9 50%, #e0e6ee 100%);
}
.scene.snowboard .ramp {
  position: absolute; bottom: 0; left: 20%; width: 60%; height: 35%;
  background: linear-gradient(180deg, #f2f5f9, #c0ccd8);
  clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
}
@keyframes fly {
  0% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(80px, -120px) rotate(20deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
.scene.snowboard .rider {
  position: absolute; bottom: 25%; left: 30%;
  width: 40px; height: 8px;
  background: linear-gradient(90deg, var(--accent-3), var(--gold));
  border-radius: 4px;
  animation: fly 4s ease-in-out infinite;
  box-shadow: 0 0 18px rgba(232, 89, 12, 0.5);
}
.scene.snowboard .rider::before {
  content: "";
  position: absolute; left: 50%; top: -10px;
  width: 8px; height: 12px;
  background: #1c2b3a; border-radius: 50% 50% 30% 30%;
  transform: translateX(-50%);
}
.scene.snowboard .sparkle {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 60% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 80% 50%, #fff, transparent),
    radial-gradient(1px 1px at 40% 70%, #fff, transparent);
  opacity: 0.7;
  animation: twinkle 2.5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.85; }
}

.scene.snowmobile {
  background: linear-gradient(180deg, #bcd7ee 0%, #dde9f5 50%, #f2f7fb 100%);
}
.scene.snowmobile .ground {
  position: absolute; bottom: 0; left: 0; right: 0; height: 35%;
  background: linear-gradient(180deg, #ffffff, #cdd9e6);
}
@keyframes trail {
  0% { transform: translateX(0); }
  100% { transform: translateX(-200px); }
}
.scene.snowmobile .tracks {
  position: absolute; bottom: 8%; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(0,0,0,0.28) 18px 28px);
  animation: trail 1.5s linear infinite;
}
.scene.snowmobile .machine {
  position: absolute; bottom: 12%; left: 60%;
  width: 110px; height: 40px;
  background: linear-gradient(135deg, #e8590c, #a63d05);
  border-radius: 8px 16px 6px 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}
.scene.snowmobile .machine::before {
  content: "";
  position: absolute; left: -16px; top: 8px;
  width: 30px; height: 24px;
  background: #33465a;
  border-radius: 4px 12px 4px 4px;
}
.scene.snowmobile .machine::after {
  content: "";
  position: absolute; right: 6px; top: -10px;
  width: 14px; height: 18px;
  background: #ffe27a;
  border-radius: 4px;
  box-shadow: 0 0 20px #ffe27a;
}
.scene.snowmobile .snow-plume {
  position: absolute; bottom: 8%; right: 30%;
  width: 100px; height: 50px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.95), transparent 70%);
  filter: blur(2px);
  animation: fly 1.8s ease-in-out infinite;
}

.scene.mountain {
  background: linear-gradient(180deg, #2b3a52 0%, #6a7f9c 50%, #c3d2e2 100%);
}
.scene.mountain .range {
  position: absolute; bottom: 0; left: 0; right: 0; height: 70%;
  background: linear-gradient(180deg, #9aa8ba 0%, #52627a 100%);
  clip-path: polygon(0% 100%, 0% 70%, 10% 40%, 22% 60%, 35% 20%, 50% 50%, 65% 25%, 78% 55%, 90% 35%, 100% 60%, 100% 100%);
}
.scene.mountain .range::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 35%;
  background: linear-gradient(180deg, #f7fafc, transparent);
  clip-path: polygon(0% 100%, 0% 50%, 10% 30%, 22% 60%, 35% 0%, 50% 50%, 65% 25%, 78% 55%, 90% 35%, 100% 60%, 100% 100%);
}
@keyframes climber {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -12px); }
}
.scene.mountain .climber {
  position: absolute; bottom: 35%; left: 45%;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold);
  animation: climber 2.5s ease-in-out infinite;
}
.scene.mountain .climber::before {
  content: "";
  position: absolute; top: 6px; left: 3px;
  width: 1px; height: 40px;
  background: rgba(232,163,61,0.45);
  transform: rotate(15deg);
}
.scene.mountain .stars {
  position: absolute; top: 0; left: 0; right: 0; height: 60%;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff, transparent),
    radial-gradient(1px 1px at 30% 40%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, #fff, transparent),
    radial-gradient(1px 1px at 70% 30%, #fff, transparent),
    radial-gradient(1px 1px at 90% 50%, #fff, transparent),
    radial-gradient(1px 1px at 20% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, #fff, transparent);
  opacity: 0.8;
}

/* ===== Forms ===== */
.contact-form, .vote-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 640px;
  box-shadow: var(--shadow);
}
.field { display: block; margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(29, 111, 184, 0.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-status {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14,116,144,0.12), rgba(29,111,184,0.12));
  border: 1px solid rgba(14, 116, 144, 0.35);
  color: var(--accent);
  font-size: 15px;
  display: none;
  animation: slideUp 0.4s ease-out;
}
.form-status.visible { display: block; }
.form-status::before { content: "✓ "; font-weight: 800; margin-right: 4px; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Vote page ===== */
.vote-options { display: grid; gap: 14px; margin-bottom: 28px; }
.vote-option {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
}
.vote-option:hover { border-color: #bcd2e4; }
.vote-option.selected {
  border-color: var(--accent-2);
  background: linear-gradient(135deg, rgba(29,111,184,0.06), rgba(14,116,144,0.06));
}
.vote-option input { display: none; }
.vote-option .check {
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.vote-option.selected .check {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent;
}
.vote-option .check::after {
  content: "✓"; color: #fff; font-weight: 800; font-size: 16px;
  opacity: 0; transition: opacity 0.15s;
}
.vote-option.selected .check::after { opacity: 1; }
.vote-option .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.vote-option .label { font-size: 16px; font-weight: 600; color: var(--text); }
.vote-option .desc { font-size: 13px; color: var(--muted); }

.vote-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 36px;
}
.count-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.count-card .icon { font-size: 28px; margin-bottom: 10px; }
.count-card .num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--accent-2);
  line-height: 1;
}
.count-card .name {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.vote-meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  letter-spacing: 1px;
  text-align: center;
}

/* ===== Footer ===== */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  margin-top: 60px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 14px;
}
.footer-grid p, .footer-grid a {
  color: var(--muted);
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}
.footer-grid a:hover { color: var(--accent-2); }
.copyright {
  text-align: center;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

@media (max-width: 760px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 8px; font-size: 13px; }
  .brand { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  section.section { padding: 56px 0; }
}

/* Mobile-friendly video */
video { background: #0d141c; }

/* History section on the home page */
.olympics-section { background: linear-gradient(180deg, transparent 0%, rgba(233,240,246,0.8) 100%); }
.olympics-section h2 { letter-spacing: -0.3px; }
.olympics-section .olympics-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
  color: var(--accent-2);
  font-weight: 700;
}

details.dl-helper > summary { list-style: none; }
details.dl-helper > summary::-webkit-details-marker { display: none; }
details.dl-helper[open] > summary { margin-bottom: 8px; }

/* Category history block on cat pages */
.cat-history {
  margin-bottom: 32px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
}
.cat-history::before {
  content: "";
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), transparent);
  opacity: 0.5;
}
.cat-history p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.2em;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
  color: var(--accent-2);
  font-weight: 700;
}

/* Manual video control buttons */
.video-controls {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px;
  background: rgba(13, 20, 28, 0.85);
  border: 1px solid #26323f;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  margin-top: -2px;
}
.vc-btn {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e7edf3;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, border-color 0.2s;
}
.vc-btn:hover, .vc-btn:active {
  background: rgba(255, 255, 255, 0.20);
  border-color: #7cd4f2;
}

/* ===== Gallery (home) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.gallery-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
