:root {
  --bg: #efe2d3;
  --paper: #fffdf8;
  --panel: rgba(255, 253, 248, 0.86);
  --line: rgba(85, 66, 51, 0.18);
  --ink: #121b23;
  --muted: #5b534c;
  --accent: #e24d1f;
  --accent-dark: #8a2a09;
  --accent-2: #00808d;
  --soft: #f6d7c8;
  --soft-2: #efe0cf;
  --good: #10624a;
  --warn: #9b6a12;
  --bad: #9c4747;
  --shadow: 0 28px 70px rgba(27, 19, 11, 0.16);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(226, 77, 31, 0.24), transparent 26rem),
    radial-gradient(circle at 100% 0%, rgba(0, 128, 141, 0.18), transparent 22rem),
    radial-gradient(circle at 50% 100%, rgba(244, 176, 82, 0.18), transparent 30rem),
    linear-gradient(180deg, #fff9f2 0, rgba(255, 249, 242, 0.2) 18rem),
    var(--bg);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 35%),
    linear-gradient(300deg, rgba(226, 77, 31, 0.06), transparent 40%);
  mix-blend-mode: soft-light;
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 12rem;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 243, 232, 0.45));
}

a {
  color: var(--accent-dark);
}

.shell {
  max-width: 1700px;
  margin: 0 auto;
  padding: 24px;
}

.hero,
.metric,
.panel,
.featured-card,
.news-card,
.ranking-card,
.issue-card,
.watch-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 320px;
  gap: 18px;
  border-radius: 30px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(200, 77, 30, 0.16), rgba(11, 107, 115, 0.08) 52%, rgba(255, 253, 248, 0.9)),
    var(--panel);
}

.hero-copy,
.hero-side {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -6rem -10rem auto;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 77, 31, 0.26), transparent 68%);
  filter: blur(6px);
  animation: drift 11s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 1rem 1rem auto auto;
  width: 10rem;
  height: 10rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(0, 128, 141, 0.2), rgba(0, 128, 141, 0.04));
  transform: rotate(12deg);
  animation: drift 8s ease-in-out infinite alternate-reverse;
}

.eyebrow,
.mini-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 800;
}

.eyebrow {
  color: var(--accent);
}

.mini-label {
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  line-height: 0.95;
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.4rem, 2.3vw, 2.4rem);
  line-height: 1;
}

.intro,
.section-copy,
.hero-side-card p,
.featured-copy,
.news-card p,
.ranking-card p,
.issue-card p,
.watch-card p,
.metric p,
td,
li {
  color: var(--muted);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff7b31);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(226, 77, 31, 0.28);
}

.button.muted {
  background: linear-gradient(135deg, #f3e6d6, #e8dbca);
  color: var(--ink);
}

.hero-side {
  display: grid;
  gap: 12px;
}

.hero-side-card {
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(200, 77, 30, 0.11), rgba(11, 107, 115, 0.04)),
    var(--paper);
  border: 1px solid rgba(200, 77, 30, 0.16);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.metric {
  border-radius: 20px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.metric strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 6px;
}

.metric span {
  display: block;
  font-weight: 800;
}

.section {
  margin-top: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.section-copy {
  max-width: 50ch;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.priority-combi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.priority-combi-grid .featured-card {
  border-color: rgba(200, 77, 30, 0.32);
}

.priority-combi-grid .featured-media {
  aspect-ratio: 16 / 9;
}

.featured-card {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.featured-card:hover,
.news-card:hover,
.ranking-card:hover,
.issue-card:hover,
.watch-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(32, 25, 16, 0.18);
}

.featured-card:hover {
  border-color: rgba(200, 77, 30, 0.28);
}

.featured-media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(140deg, rgba(200, 77, 30, 0.15), rgba(11, 107, 115, 0.06)),
    var(--soft-2);
  position: relative;
}

.featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-media .fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background:
    linear-gradient(135deg, rgba(200, 77, 30, 0.08), rgba(11, 107, 115, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
}

.featured-media.image-missing .fallback,
.featured-media.image-failed .fallback {
  display: flex;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  background: rgba(255, 249, 242, 0.92);
  border-bottom: 1px solid var(--line);
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(98, 89, 79, 0.18);
  background: var(--soft-2);
}

.featured-body {
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 249, 242, 0.96));
}

.featured-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 8px;
}

.featured-facts div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 250, 244, 0.75);
}

.featured-facts span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 4px;
}

.featured-facts strong {
  color: var(--ink);
}

.featured-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 800;
}

.chip.good {
  background: rgba(16, 98, 74, 0.14);
  color: var(--good);
}

.chip.warn {
  background: rgba(155, 106, 18, 0.16);
  color: var(--warn);
}

.chip.bad {
  background: rgba(157, 64, 64, 0.14);
  color: var(--bad);
}

.chip.neutral {
  background: rgba(98, 89, 79, 0.11);
  color: var(--ink);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) 320px;
  gap: 16px;
  margin-top: 18px;
}

.main-stack,
.side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 252, 247, 0.96)),
    var(--panel);
}

.news-grid,
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.news-card,
.ranking-card,
.issue-card,
.watch-card {
  border-radius: 18px;
  padding: 16px;
}

.panel-top {
  margin-bottom: 12px;
}

.table-quick-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 8px;
}

.table-example {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(226, 77, 31, 0.08), rgba(0, 128, 141, 0.05));
}

.table-example strong {
  display: block;
  margin: 4px 0;
  font-size: 0.98rem;
  color: var(--ink);
}

.table-example span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.table-scroll-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.table-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 33, 43, 0.5) transparent;
}

.table-wrap.dragging {
  cursor: grabbing;
}

.table-wrap::-webkit-scrollbar {
  height: 12px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(24, 33, 43, 0.55);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

table {
  width: max-content;
  min-width: 1560px;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, #ffe8d5, #f5f1ea);
  color: var(--ink);
  z-index: 4;
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: linear-gradient(90deg, rgba(255, 245, 235, 0.98), rgba(255, 253, 248, 0.98));
  box-shadow: 14px 0 18px rgba(18, 27, 35, 0.06);
}

th:last-child,
td:last-child {
  position: sticky;
  right: 0;
  z-index: 3;
  background: linear-gradient(270deg, rgba(255, 245, 235, 0.98), rgba(255, 253, 248, 0.98));
  box-shadow: -14px 0 18px rgba(18, 27, 35, 0.06);
}

.model-cell {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.model-thumb {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft-2);
}

.model-thumb-fallback {
  display: none;
  width: 86px;
  min-height: 58px;
  padding: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(226, 77, 31, 0.14), rgba(0, 128, 141, 0.08));
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.model-cell.image-failed .model-thumb-fallback,
.model-cell.image-missing .model-thumb-fallback {
  display: flex;
}

.model-cell.image-failed .model-thumb,
.model-cell.image-missing .model-thumb {
  display: none;
}

.model-name {
  display: block;
  font-weight: 800;
  color: var(--ink);
}

.model-brand {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 3px;
}

.dealer-link,
.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #18212b, #0c141c);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}

.issue-list,
.watchlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.section {
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: -10px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 77, 31, 0.42), rgba(0, 128, 141, 0.32), transparent);
}

.section-head {
  padding: 4px 2px 0;
}

.section:nth-of-type(odd) .panel,
.section:nth-of-type(odd) .featured-card {
  box-shadow: 0 18px 40px rgba(32, 25, 16, 0.1);
}

.panel-top h2,
.section-head h2 {
  text-wrap: balance;
}

.all-model-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.model-card {
  display: grid;
  grid-template-columns: clamp(240px, 28vw, 380px) minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 236, 0.98));
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.model-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 77, 31, 0.28);
  box-shadow: 0 30px 70px rgba(27, 19, 11, 0.18);
}

.model-card-media {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(140deg, rgba(226, 77, 31, 0.12), rgba(0, 128, 141, 0.1)),
    #efe4d8;
}

.model-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 10px;
}

.model-card-media .fallback {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  height: 100%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.model-card-media.image-failed .fallback,
.model-card-media.image-missing .fallback {
  display: flex;
}

.model-card-body {
  padding: 16px 16px 16px 0;
}

.model-card .featured-facts {
  margin-top: 10px;
  margin-bottom: 10px;
}

.model-card .featured-actions {
  margin-top: 12px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.media-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 240, 0.98));
  box-shadow: var(--shadow);
}

.media-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.media-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18, 27, 35, 0.86);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-body {
  padding: 14px;
}

.media-body .dealer-link {
  margin-top: 10px;
}

.media-body h3 {
  margin-top: 4px;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-14px, 10px, 0) rotate(10deg);
  }
}

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

  .side-stack {
    order: -1;
  }
}

@media (max-width: 980px) {
  .featured-grid,
  .priority-combi-grid,
  .metric-grid,
  .news-grid,
  .ranking-grid,
  .all-model-grid,
  .media-grid,
  .table-quick-examples,
  .hero {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-copy {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 16px;
  }

  .hero,
  .panel {
    border-radius: 18px;
  }

  .hero {
    padding: 20px;
  }

  .model-card {
    grid-template-columns: 1fr;
  }

  .model-card-body {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
