/* ============================================================
   TRACK-VIBES.COM — main.css
   Brutal/raw industrial dark theme. Accent: Track Amber #F5A623
   Fonts: Oswald (display) · Space Grotesk (body) · JetBrains Mono (mono)
   ============================================================ */

/* === VARIABLES === */
:root {
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --bg-base: #050507;
  --bg-raised: #0c0c10;
  --bg-surface: #141418;
  --bg-elevated: #1e1e24;

  --accent: #F5A623;
  --accent-rgb: 245, 166, 35;

  --text-primary: #EEEEE8;
  --text-secondary: #7A7A82;
  --text-muted: #484850;

  --border: #1e1e26;
  --border-thick: #2a2a34;

  --max-width: 1200px;
  --max-width-narrow: 760px;
  --max-width-article: 960px;
  --header-h: 64px;

  /* ── Aliases --tv-* (used by page inline styles) ── */
  --tv-accent:    var(--accent);
  --tv-font-head: var(--font-display);
  --tv-font-body: var(--font-body);
  --tv-font-mono: var(--font-mono);
  --tv-text:      var(--text-primary);
  --tv-text-muted:var(--text-secondary);
  --tv-border:    var(--border);
  --tv-bg:        var(--bg-base);
  --tv-bg-card:   var(--bg-raised);
  --tv-bg-alt:    var(--bg-elevated);
  --tv-danger:    #e53935;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

::selection {
  background-color: var(--accent);
  color: var(--bg-base);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  opacity: 0.8;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-secondary);
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

pre {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1rem;
  overflow-x: auto;
  color: var(--text-primary);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

button {
  font-family: var(--font-mono);
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* === LAYOUT === */
.tv-container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}

.tv-container--narrow {
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}

.tv-container--article {
  max-width: var(--max-width-article);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}

.tv-page-wrap {
  min-height: 100vh;
  padding-top: var(--header-h);
}

/* === SCROLL REVEAL === */
.tv-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.tv-reveal.tv-visible {
  opacity: 1;
  transform: translateY(0);
}

.tv-reveal--delay-1 {
  transition-delay: 0.1s;
}

.tv-reveal--delay-2 {
  transition-delay: 0.2s;
}

.tv-reveal--delay-3 {
  transition-delay: 0.3s;
}

/* === HEADER === */
.tv-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(5, 5, 7, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
  transition: border-color 0.3s ease;
}

.tv-header.scrolled {
  border-color: var(--accent);
}

.tv-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(16px, 3vw, 40px);
}

.tv-nav {
  display: flex;
  gap: 0;
  align-items: center;
}

.tv-nav__item {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
  border-left: 1px solid var(--border);
  line-height: 1;
  display: inline-block;
}

.tv-nav__item:first-child {
  border-left: none;
}

.tv-nav__item.active,
.tv-nav__item:hover {
  background: var(--accent);
  color: var(--bg-base);
  text-decoration: none;
}

.tv-nav__item--user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tv-nav__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* Burger button */
.tv-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.tv-nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile overlay */
.tv-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 7, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tv-mobile-overlay.open {
  display: flex;
}

.tv-mobile-overlay__item {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.1em;
  padding: 12px 0;
  transition: color 0.2s;
}

.tv-mobile-overlay__item:hover {
  color: var(--accent);
  text-decoration: none;
}

.tv-mobile-overlay__close {
  position: absolute;
  top: 20px;
  right: clamp(16px, 3vw, 40px);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.tv-mobile-overlay__close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* === LOGO === */
.tv-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  cursor: pointer;
}

.tv-logo:hover {
  text-decoration: none;
}

.tv-logo__track {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tv-logo__vibes {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 4px;
}

/* === HERO (HOME) === */
.tv-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.tv-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-base) 0%, rgba(5, 5, 7, 0.2) 100%);
}

.tv-hero__giant-num {
  position: absolute;
  right: clamp(-20px, 2vw, 40px);
  top: 12vh;
  font-family: var(--font-display);
  font-size: clamp(200px, 35vw, 500px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.03);
  pointer-events: none;
  user-select: none;
}

.tv-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(48px, 8vw, 100px);
}

.tv-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.tv-hero__logo-wrap {
  margin-top: 16px;
}

.tv-hero__desc {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.6;
  margin-top: 24px;
}

.tv-hero__cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-base);
  border: none;
  padding: 14px 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 36px;
  text-decoration: none;
}

.tv-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.4);
  text-decoration: none;
  color: var(--bg-base);
}

/* Two CTAs side by side (logged-in landing). */
.tv-hero__cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}
.tv-hero__cta-row .tv-hero__cta {
  margin-top: 0;
}

/* Secondary (ghost) hero CTA. */
.tv-hero__cta--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-thick);
}
.tv-hero__cta--ghost:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.tv-hero__circuits {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  padding: 0 clamp(24px, 5vw, 64px);
}

.tv-hero__circuits-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
  margin-right: 16px;
  flex-shrink: 0;
}

.tv-hero__circuits-list {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.tv-hero__circuit-pill {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}

.tv-hero__circuit-pill:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.tv-hero__accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

/* ── Cover hero (Home landing) ───────────────────────────────────────────── */
/* Cover: content flows from the top so the integrated panels stack below the
   branding inside the same dark band. */
.tv-hero--cover {
  justify-content: flex-start;
  padding-top: calc(var(--header-h, 64px) + 24px);
}

/* When a background image is set, darken the overlay so the branding and the
   integrated panels stay legible over any photo. */
.tv-hero--has-bg .tv-hero__overlay {
  background: linear-gradient(to top, var(--bg-base) 35%, rgba(5, 5, 7, 0.6) 100%);
}

/* Compact: short branding band for filtered / paginated views. */
.tv-hero--compact {
  min-height: auto;
  padding-top: calc(var(--header-h, 64px) + 24px);
}
.tv-hero--compact .tv-hero__content {
  padding-bottom: clamp(32px, 5vw, 56px);
}

/* Align the hero branding to the same width as .tv-container (panels + page),
   removing the extra horizontal padding that .tv-hero__content adds. */
.tv-hero--cover .tv-hero__content,
.tv-hero--compact .tv-hero__content {
  padding-left: clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}

/* Center the branding for a balanced cover (matches the centered stats below). */
.tv-hero--cover .tv-hero__content,
.tv-hero--compact .tv-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tv-hero--cover .tv-hero__desc,
.tv-hero--compact .tv-hero__desc {
  margin-left: auto;
  margin-right: auto;
}

/* Circuit pills now flow inside the hero content (no longer pinned bottom). */
.tv-hero__circuits {
  position: static;
  bottom: auto;
  left: auto;
  right: auto;
  padding: 0;
  margin-top: 28px;
  flex-wrap: wrap;
}
.tv-hero__circuits-list {
  flex-wrap: wrap;
}

/* Integrated panels container. */
.tv-hero__panels {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(48px, 8vw, 100px);
}

/* Stats row inside the cover. */
.tv-hero-stats {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.tv-hero-stat {
  flex: 1;
  min-width: 110px;
  text-align: center;
  position: relative;
  padding: 0 24px;
}
.tv-hero-stat + .tv-hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}
.tv-hero-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.tv-hero-stat__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .tv-hero-stat__num { font-size: 24px; }
  .tv-hero-stat { padding: 0 12px; min-width: 90px; }
}

/* Hero logo */
.tv-hero-logo {
  display: block;
}

.tv-hero-logo__track {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  line-height: 0.85;
  text-transform: uppercase;
}

.tv-hero-logo__vibes {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 700;
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
  letter-spacing: 0.05em;
  line-height: 0.85;
  text-transform: uppercase;
}

/* === UPCOMING TRACKDAYS === */
.tv-upcoming {
  padding: 80px 0 32px;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}
.tv-upcoming__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.tv-upcoming__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
}
.tv-upcoming__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin: 0;
}
.tv-upcoming__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tv-upcoming-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 2px solid var(--border);
  background: rgba(20, 20, 24, 0.4);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.tv-upcoming-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.tv-upcoming-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 4px;
  border-right: 2px solid var(--border);
  text-align: center;
}
.tv-upcoming-card__day {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.tv-upcoming-card__mon {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  margin-top: 4px;
}
.tv-upcoming-card__year {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-top: 2px;
}
.tv-upcoming-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tv-upcoming-card__circuit {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.2;
}
.tv-upcoming-card__location {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tv-upcoming-card__notes {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0 0;
  line-height: 1.5;
}
.tv-upcoming-card__countdown {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-top: auto;
  padding-top: 6px;
}

/* Past / finished events */
.tv-upcoming-card--past {
  opacity: 0.6;
}
.tv-upcoming-card--past .tv-upcoming-card__countdown,
.tv-upcoming-card--past .tv-upcoming-card__day {
  color: var(--text-muted);
}

/* === POSTS SECTION === */
.tv-posts {
  padding: 80px 0 64px;
  background: var(--bg-base);
}

.tv-posts__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.tv-posts__title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin: 0;
}

.tv-posts__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-left: auto;
}

/* === FEATURED CARD === */
.tv-card-featured {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  margin-bottom: 56px;
  border: 2px solid var(--border);
  transition: border-color 0.3s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}

.tv-card-featured:hover {
  border-color: var(--accent);
  text-decoration: none;
  color: inherit;
}

.tv-card-featured__img {
  position: relative;
  overflow: hidden;
}

.tv-card-featured__img img,
.tv-card-featured__placeholder {
  width: 100%;
  aspect-ratio: 2.2 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.tv-card-featured__placeholder {
  aspect-ratio: 2.2 / 1;
}

.tv-card-featured:hover .tv-card-featured__img img {
  transform: scale(1.02);
}

.tv-card-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 7, 0.98) 0%, transparent 100%);
}

.tv-card-featured__num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.2);
  pointer-events: none;
  user-select: none;
}

.tv-card-featured__body {
  padding: clamp(20px, 3vw, 36px);
}

.tv-card-featured__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.tv-card-featured__sep {
  color: var(--text-muted);
}

.tv-card-featured__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
}

.tv-card-featured__excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 600px;
  line-height: 1.6;
}

.tv-card-featured__read-more {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  transition: transform 0.3s ease;
  text-transform: uppercase;
}

.tv-card-featured:hover .tv-card-featured__read-more {
  transform: translateX(8px);
}

/* === GRID CARDS === */
.tv-grid-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.tv-card {
  cursor: pointer;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  text-decoration: none;
  display: block;
  color: inherit;
  background: var(--bg-base);
}

.tv-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}

.tv-card__num {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  padding: 8px 12px;
  background: var(--bg-base);
  line-height: 0.8;
}

.tv-card__img {
  overflow: hidden;
}

.tv-card__img img,
.tv-card__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.tv-card__placeholder {
  aspect-ratio: 16 / 10;
}

.tv-card:hover .tv-card__img img {
  transform: scale(1.05);
}

.tv-card__body {
  padding: 16px 20px 20px;
}

.tv-card__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 8px;
}

.tv-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
}

.tv-card__excerpt {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 10px;
}

.tv-card__lap {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  letter-spacing: 0.06em;
}

/* === PAGINATION === */
.tv-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 56px;
}

.tv-pagination__list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tv-pagination__btn,
.tv-pagination__link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
  min-width: 44px;
  padding: 0 8px;
}

.tv-pagination__link--prev,
.tv-pagination__link--next {
  width: auto;
  min-width: 44px;
  padding: 0 12px;
}

.tv-pagination__btn.active,
.tv-pagination__btn:hover,
.tv-pagination__link--active,
.tv-pagination__link:hover:not(.tv-pagination__link--disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-base);
  text-decoration: none;
}

.tv-pagination__link--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tv-pagination__ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* === ARTICLE PAGE === */
.tv-article__hero {
  position: relative;
  margin-top: var(--header-h);
  overflow: hidden;
}

.tv-article__hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  min-height: 240px;
  max-height: 56vh;
}

.tv-article__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-base) 0%, rgba(5, 5, 7, 0.1) 100%);
}

.tv-article__hero-num {
  position: absolute;
  top: 20px;
  right: clamp(16px, 4vw, 60px);
  font-family: var(--font-display);
  font-size: clamp(100px, 18vw, 260px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.18);
  pointer-events: none;
  user-select: none;
}

.tv-article__hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.tv-article__intro {
  margin-top: -60px;
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}

/* No cover image: don't pull the title up under the fixed header. */
.tv-article__intro--flush {
  margin-top: 0;
  padding-top: 32px;
}

.tv-article__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  display: block;
}

.tv-article__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
}

.tv-article__divider {
  width: 56px;
  height: 4px;
  background: var(--accent);
  margin-top: 20px;
  display: block;
}

.tv-article__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 64px;
}

/* Wider content variant for chronicles */
.tv-article__body--wide {
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
}

/* News article: single full-width column (no sidebar) */
.tv-article__body--single {
  grid-template-columns: 1fr;
}

.tv-article__content p {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 28px;
}

/* First paragraph as a lead: bigger, lighter color, more presence */
.tv-article__content p.tv-article__lead {
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

/* Drop cap on the lead paragraph */
.tv-article__content p.tv-article__lead::first-letter {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
}

.tv-article__content h2,
.tv-article__content h3,
.tv-article__content h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 40px;
  margin-bottom: 16px;
}

.tv-article__content h2 {
  font-size: 24px;
  font-weight: 700;
}

.tv-article__content h3 {
  font-size: 20px;
  font-weight: 600;
}

.tv-article__content h4 {
  font-size: 16px;
  font-weight: 600;
}

.tv-article__content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 32px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.tv-article__content strong,
.tv-article__content b {
  color: var(--text-primary);
  font-weight: 600;
}

.tv-article__content em,
.tv-article__content i {
  font-style: italic;
}

.tv-article__content ul,
.tv-article__content ol {
  padding-left: 24px;
  margin: 20px 0 28px;
  color: var(--text-secondary);
}

.tv-article__content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.tv-article__content li::marker {
  color: var(--accent);
}

.tv-article__content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}

.tv-article__content a:hover {
  opacity: .75;
}

.tv-article__content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent);
}

.tv-article__content pre {
  background: var(--bg-elevated);
  padding: 16px 20px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 24px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
}

.tv-article__content pre code {
  background: none;
  padding: 0;
  color: var(--text-secondary);
}

.tv-article__content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 40px 0;
}

.tv-article__sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}

/* Sidebar data block */
.tv-sidebar-data {
  border: 2px solid var(--border);
  padding: 20px;
}

.tv-sidebar-data__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.18em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.tv-sidebar-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.tv-sidebar-item:last-child {
  border-bottom: none;
}

.tv-sidebar-item__label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  text-transform: uppercase;
  display: block;
}

.tv-sidebar-item__value {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  display: block;
}

.tv-sidebar-item__value--accent {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  display: block;
}

/* Sidebar products */
.tv-sidebar-products {
  border: 2px solid var(--border);
  border-top: none;
  padding: 20px;
}

.tv-sidebar-products__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.tv-sidebar-disclaimer {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 8px;
  opacity: 0.6;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

/* === GUIDES LIST === */
.tv-guides-list {
  padding: 48px 0 80px;
}

.tv-guides-list__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.tv-guides-list__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tv-guides-list__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.tv-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.tv-guide-item:hover {
  text-decoration: none;
  color: inherit;
}

.tv-guide-item__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
  padding-top: 4px;
  opacity: 0.85;
}

.tv-guide-item__thumb {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 0.3s;
}

.tv-guide-item:hover .tv-guide-item__thumb {
  border-color: var(--accent);
}

.tv-guide-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.tv-guide-item:hover .tv-guide-item__thumb img {
  transform: scale(1.05);
}

.tv-guide-item__thumb .tv-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
}

.tv-guide-item__content {
  flex: 1;
  min-width: 0;
}

.tv-guide-item__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tv-guide-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: transparent;
}

.tv-guide-badge--difficulty {
  color: var(--text-primary);
  border-color: var(--border);
  background: var(--bg-elevated);
}

.tv-guide-item__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0 0 8px;
  transition: color 0.2s;
}

.tv-guide-item:hover .tv-guide-item__title {
  color: var(--accent);
}

.tv-guide-item__excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 12px;
}

.tv-guide-item__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.tv-guide-item:hover .tv-guide-item__cta {
  opacity: 0.7;
}

.tv-guide-item__divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

@media (max-width: 768px) {
  .tv-guide-item {
    flex-direction: column;
    gap: 16px;
  }

  .tv-guide-item__num {
    font-size: 32px;
    min-width: auto;
  }

  .tv-guide-item__thumb {
    width: 100%;
    height: 180px;
  }

  .tv-guide-item__title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .tv-guide-item__thumb {
    height: 140px;
  }

  .tv-guides-list__head {
    flex-wrap: wrap;
  }
}

/* === GALLERY === */
.tv-gallery {
  background: var(--bg-raised);
  padding: 56px 0;
  border-top: 2px solid var(--border);
}

.tv-gallery__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.tv-gallery__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

.tv-grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.tv-gallery__item {
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color 0.3s ease;
}

.tv-gallery__item:hover {
  border-color: var(--accent);
}

.tv-gallery__item img,
.tv-gallery__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.tv-gallery__item:hover img {
  transform: scale(1.05);
}

/* === PREV/NEXT NAV === */
.tv-prevnext {
  border-top: 2px solid var(--accent);
  background: var(--bg-base);
}

.tv-grid-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tv-prevnext__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
  text-decoration: none;
  transition: background 0.2s ease;
  color: inherit;
}

.tv-prevnext__item:hover {
  background: var(--bg-raised);
  text-decoration: none;
  color: inherit;
}

.tv-prevnext__item--prev {
  border-right: 2px solid var(--border);
}

.tv-prevnext__item--next {
  align-items: flex-end;
  text-align: right;
}

.tv-prevnext__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  text-transform: uppercase;
  display: block;
}

.tv-prevnext__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

/* === CAR PAGE === */
.tv-car__hero {
  position: relative;
  margin-top: var(--header-h);
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
}

.tv-car__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tv-car__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-base) 0%, rgba(5, 5, 7, 0.15) 100%);
}

.tv-car__hero-content {
  position: absolute;
  bottom: clamp(24px, 4vw, 56px);
  left: clamp(16px, 3vw, 40px);
  right: clamp(16px, 3vw, 40px);
}

.tv-car__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.25em;
  margin-bottom: 12px;
  display: block;
  text-transform: uppercase;
}

.tv-car__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
}

.tv-car__title-outline {
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
  display: block;
}

.tv-car__hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

/* Car stats */
.tv-stats {
  padding: 48px 0 32px;
}

.tv-grid-car-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.tv-stat-block {
  background: var(--bg-raised);
  border: 2px solid var(--border);
  padding: 20px 16px;
  text-align: center;
}

.tv-stat-block__label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  text-transform: uppercase;
  display: block;
}

.tv-stat-block__value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.12em;
  line-height: 1;
  display: block;
}

.tv-stat-block__value--accent {
  color: var(--accent);
}

.tv-stat-block__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.12em;
  display: block;
  text-transform: uppercase;
}

/* Car body */
.tv-car-intro {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 36px;
  max-width: 700px;
}

/* === CAR PAGE: TIMELINE === */
.tv-car-timeline {
  padding: 48px 0 80px;
}

.tv-car-timeline__item {
  position: relative;
  padding-left: 48px;
  padding-bottom: 56px;
}

/* Vertical timeline line — passes through center of node (18px / 2 = 9px) */
.tv-car-timeline__item::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9px;
  width: 3px;
  background: var(--accent);
  opacity: 0.3;
}

/* Hide line on last item */
.tv-car-timeline__item:last-child::before {
  display: none;
}

/* Timeline node (circle) — centered on the line */
.tv-car-timeline__node {
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-base);
  box-shadow: 0 0 0 2px var(--accent);
  z-index: 2;
}

.tv-car-timeline__item {
  position: relative;
  padding-left: 48px;
  padding-bottom: 56px;
}

.tv-car-timeline__item:last-child {
  padding-bottom: 0;
}

/* Timeline node (circle) */
.tv-car-timeline__node {
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-base);
  box-shadow: 0 0 0 2px var(--accent);
  z-index: 2;
}

/* Content area */
.tv-car-timeline__content {
  max-width: 860px;
}

.tv-car-timeline__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}

.tv-car-timeline__num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.tv-car-timeline__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

.tv-car-timeline__subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.18em;
  display: block;
  text-transform: uppercase;
}

/* Text content */
.tv-car-timeline__text {
  margin: 0 0 32px;
}

.tv-car-timeline__text p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 20px;
}

.tv-car-timeline__text p:last-child {
  margin-bottom: 0;
}

.tv-car-timeline__text strong,
.tv-car-timeline__text b {
  color: var(--text-primary);
  font-weight: 600;
}

.tv-car-timeline__text ul,
.tv-car-timeline__text ol {
  padding-left: 20px;
  margin: 16px 0 24px;
  color: var(--text-secondary);
}

.tv-car-timeline__text li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.tv-car-timeline__text li::marker {
  color: var(--accent);
}

.tv-car-timeline__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tv-car-timeline__text code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent);
}

.tv-car-timeline__text h2,
.tv-car-timeline__text h3,
.tv-car-timeline__text h4 {
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.tv-car-timeline__text hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 32px 0;
}

/* Products section within timeline */
.tv-car-timeline__products {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
}

.tv-car-timeline__products-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.tv-car-timeline__products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* Responsive: tablet */
@media (max-width: 900px) {
  .tv-car-timeline__item {
    padding-left: 44px;
  }

  .tv-car-timeline__node {
    width: 14px;
    height: 14px;
  }

  .tv-car-timeline__item::before {
    left: 7px;
  }

  .tv-car-timeline__products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Responsive: mobile — line becomes left border */
@media (max-width: 600px) {
  .tv-car-timeline__item::before {
    display: none;
  }

  .tv-car-timeline__item {
    padding-left: 0;
    padding-bottom: 40px;
    border-left: 3px solid var(--accent);
    border-left-color: rgba(var(--accent-rgb), 0.3);
    padding-left: 16px;
  }

  .tv-car-timeline__node {
    position: relative;
    left: auto;
    top: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    margin-bottom: 8px;
    width: 14px;
    height: 14px;
  }

  .tv-car-timeline__header {
    display: block;
  }

  .tv-car-timeline__num {
    font-size: 16px;
  }

  .tv-car-timeline__title {
    font-size: 22px;
  }

  .tv-car-timeline__products-grid {
    grid-template-columns: 1fr;
  }
}

/* === CAR PAGE: ENDING === */
.tv-car__ending {
  padding: 56px 0 72px;
  text-align: center;
  border-top: 2px solid var(--border);
}

.tv-car__ending-text {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

.tv-car__ending-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-top: 12px;
  display: block;
}

/* === EQUIPMENT PAGE === */
.tv-equipment__hero {
  padding: clamp(48px, 7vw, 88px) 0;
  border-bottom: 3px solid var(--accent);
}

.tv-equipment__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  display: block;
  text-transform: uppercase;
}

.tv-equipment__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.9;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.tv-equipment__desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 550px;
}

.tv-equipment__disclaimer {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 16px;
  opacity: 0.7;
  line-height: 1.5;
  letter-spacing: 0.06em;
  display: block;
}

/* Category section */
.tv-cat-section {
  padding: 48px 0;
  border-bottom: 2px solid var(--border);
}

.tv-cat-section:nth-child(even) {
  background: var(--bg-raised);
}

.tv-cat-section__head {
  margin-bottom: 24px;
}

.tv-cat-section__num-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.tv-cat-section__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.18em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.tv-cat-section__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  display: block;
}

/* === PRODUCT CARDS === */
.tv-grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.tv-product-card {
  background: var(--bg-base);
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.tv-product-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.tv-product-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.tv-product-card__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-block;
}

.tv-product-card__tag--featured {
  background: var(--accent);
  color: var(--bg-base);
}

.tv-product-card__price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}

.tv-product-card__img {
  height: 90px;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.tv-product-card__img-placeholder {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tv-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-product-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tv-product-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tv-product-card__desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 16px;
}

.tv-product-card__link {
  display: block;
  text-align: center;
  padding: 10px 0;
  margin-top: auto;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.tv-product-card__link:hover {
  background: var(--accent);
  color: var(--bg-base);
  text-decoration: none;
}

/* Compact product (sidebar) */
.tv-product-compact {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
  align-items: center;
}

.tv-product-compact:last-child {
  border-bottom: none;
}

.tv-product-compact:hover {
  text-decoration: none;
  opacity: 0.85;
}

.tv-product-compact__thumb {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-muted);
  overflow: hidden;
  flex-shrink: 0;
}

.tv-product-compact__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-product-compact__info {
  flex: 1;
  min-width: 0;
}

.tv-product-compact__name {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-product-compact__price {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  display: block;
}

.tv-product-compact__arrow {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  align-self: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.tv-product-compact:hover .tv-product-compact__arrow {
  color: var(--accent);
}

/* === THICK DIVIDER === */
.tv-divider {
  display: block;
  height: 4px;
  background: var(--accent);
  border: none;
}

/* === SECTION NUMBER === */
.tv-section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* === FOOTER === */
.tv-footer {
  border-top: 3px solid var(--accent);
  padding: 40px clamp(16px, 3vw, 40px);
  background: var(--bg-base);
}

.tv-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.tv-footer__brand {
  display: flex;
  flex-direction: column;
}

.tv-footer__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 10px;
  display: block;
}

.tv-footer__social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tv-footer__social-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tv-footer__social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.tv-footer__meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.tv-footer__copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.tv-footer__admin-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.2s;
  letter-spacing: 0.06em;
}

.tv-footer__admin-link:hover {
  opacity: 1;
  text-decoration: none;
}

/* === IMAGE PLACEHOLDER === */
.tv-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #08080a, #101014);
  width: 100%;
}

.tv-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.018) 10px,
    rgba(255, 255, 255, 0.018) 20px
  );
}

.tv-placeholder::after {
  content: '';
  width: 40%;
  height: 3px;
  background: var(--accent);
  opacity: 0.3;
  position: absolute;
  bottom: 0;
  left: 0;
}

.tv-placeholder__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* === ADMIN PANEL === */
.tv-admin-wrap {
  min-height: 100vh;
  background: var(--bg-base);
  padding-top: var(--header-h);
}

.tv-admin-bar {
  height: 48px;
  background: var(--bg-raised);
  border-bottom: 2px solid var(--border);
  padding: 0 clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tv-admin-nav {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
}

.tv-admin-nav__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.18em;
  padding: 0 16px 0 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.tv-admin-nav__item {
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: none;
  padding: 6px 14px;
  border-left: 1px solid var(--border);
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.06em;
  white-space: nowrap;
  display: inline-block;
}

.tv-admin-nav__item.active {
  background: var(--accent);
  color: var(--bg-base);
  font-weight: 700;
}

.tv-admin-nav__item:hover:not(.active) {
  color: var(--text-primary);
  background: var(--bg-elevated);
  text-decoration: none;
}

.tv-admin-back {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.12em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}

.tv-admin-back:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.tv-admin-content {
  padding: clamp(24px, 3vw, 40px);
}

.tv-admin-section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.18em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

/* Admin stats */
.tv-admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.tv-stat-card {
  background: var(--bg-raised);
  border: 2px solid var(--border);
  padding: 16px;
}

.tv-stat-card__label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  display: block;
}

.tv-stat-card__value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  line-height: 1;
  display: block;
}

.tv-stat-card__value--accent {
  color: var(--accent);
}

/* Admin layout */
.tv-admin-main-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
}

.tv-admin-panel {
  background: var(--bg-raised);
  border: 2px solid var(--border);
  overflow: hidden;
}

.tv-admin-panel__title {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
}

.tv-admin-panel__body {
  padding: 20px;
}

/* Quick grid */
.tv-admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.tv-quick-card {
  background: var(--bg-raised);
  border: 2px solid var(--border);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.tv-quick-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  color: inherit;
}

.tv-quick-card__icon {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.tv-quick-card__label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  display: block;
}

.tv-quick-card__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
  display: block;
}

/* Admin tables */
.tv-table-header {
  display: grid;
  padding: 10px 0;
  border-bottom: 2px solid var(--border);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
}

.tv-table-row {
  display: grid;
  padding: 12px 0;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.tv-table-row:last-child {
  border-bottom: none;
}

.tv-table-row:hover {
  background: var(--bg-surface);
}

/* Badges */
.tv-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  display: inline-block;
}

.tv-badge--subtle {
  background: var(--bg-surface);
  color: var(--text-muted);
}

.tv-badge--danger {
  background: rgba(200, 0, 0, 0.15);
  color: #ee5555;
}

/* Buttons */
.tv-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  border: none;
  text-transform: uppercase;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.tv-btn--accent {
  background: var(--accent);
  color: var(--bg-base);
}

.tv-btn--accent:hover {
  opacity: 0.85;
  text-decoration: none;
  color: var(--bg-base);
}

.tv-btn--ghost {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-secondary);
}

.tv-btn--ghost:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  text-decoration: none;
}

.tv-btn--danger-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: #cc4444;
  font-size: 9px;
}

.tv-btn--danger-ghost:hover {
  border-color: #cc4444;
  color: #ee5555;
  text-decoration: none;
}

.tv-btn--small {
  padding: 4px 10px;
  font-size: 9px;
  letter-spacing: 0.06em;
}

/* Forms */
.tv-form-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.tv-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  display: block;
}

.tv-input:focus {
  border-color: var(--accent);
}

.tv-input::placeholder {
  color: var(--text-muted);
}

.tv-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  resize: vertical;
  line-height: 1.7;
  display: block;
}

.tv-textarea:focus {
  border-color: var(--accent);
}

.tv-textarea::placeholder {
  color: var(--text-muted);
}

.tv-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  display: block;
  cursor: pointer;
}

.tv-select:focus {
  border-color: var(--accent);
}

/* Upload area */
.tv-upload-area {
  border: 2px dashed var(--border);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.tv-upload-area:hover {
  border-color: var(--accent);
}

.tv-upload-area__text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}

.tv-upload-area__hint {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  opacity: 0.5;
  margin-top: 4px;
  letter-spacing: 0.06em;
  display: block;
}

/* Form footer */
.tv-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 2px solid var(--border);
  margin-top: 8px;
}

.tv-form-status {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Chart */
.tv-chart-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
}

.tv-chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.tv-chart-bar-value {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  display: block;
}

.tv-chart-bar {
  width: 100%;
  max-width: 44px;
  background: linear-gradient(to top, var(--accent), rgba(var(--accent-rgb), 0.5));
  transition: height 0.4s ease;
  min-height: 2px;
}

.tv-chart-bar-label {
  text-align: center;
  width: 100%;
}

.tv-chart-circuit {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  display: block;
}

.tv-chart-date {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  opacity: 0.5;
  display: block;
}

/* Calendar */
.tv-calendar-month {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  display: block;
}

.tv-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.tv-calendar-day-name {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  padding: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tv-calendar-day {
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  padding: 5px 2px;
  color: var(--text-secondary);
}

.tv-calendar-day--event {
  background: var(--accent);
  color: var(--bg-base);
  font-weight: 700;
  cursor: pointer;
}

.tv-calendar-events {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tv-calendar-event {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tv-calendar-event__dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  flex-shrink: 0;
  border-radius: 50%;
}

.tv-calendar-event__date {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.tv-calendar-event__name {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-primary);
}

/* Admin search */
.tv-admin-search {
  width: 100%;
  margin-bottom: 16px;
}

.tv-admin-search input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.tv-admin-search input:focus {
  border-color: var(--accent);
}

.tv-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Recent rows */
.tv-recent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.tv-recent-row:last-child {
  border-bottom: none;
}

.tv-recent-row__title {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
  display: block;
}

.tv-recent-row__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.06em;
  display: block;
}

/* Admin login */
.tv-admin-login-wrap {
  min-height: 100vh;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-admin-login-box {
  width: 380px;
  border: 2px solid var(--border);
  padding: 40px;
}

.tv-admin-login-head {
  text-align: center;
  margin-bottom: 32px;
}

.tv-admin-login-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.12em;
  display: block;
  text-align: center;
}

/* Admin form grids */
.tv-admin-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tv-admin-form-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Breadcrumb */
.tv-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.tv-breadcrumb__link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.12em;
  transition: color 0.2s;
  text-transform: uppercase;
}

.tv-breadcrumb__link:hover {
  color: var(--accent);
  text-decoration: none;
}

.tv-breadcrumb__sep {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.tv-breadcrumb__current {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Alerts */
.tv-alert {
  padding: 12px 16px;
  border: 1px solid;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.tv-alert--error {
  border-color: #cc4444;
  color: #ee8888;
  background: rgba(200, 0, 0, 0.08);
}

.tv-alert--success {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .tv-article__body {
    grid-template-columns: 1fr;
  }

  .tv-article__sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .tv-nav {
    display: none;
  }

  .tv-nav__burger {
    display: flex;
  }

  .tv-grid-posts {
    grid-template-columns: 1fr;
  }

  .tv-grid-car-stats {
    grid-template-columns: 1fr;
  }

  .tv-grid-prevnext {
    grid-template-columns: 1fr;
  }

  .tv-prevnext__item--prev {
    border-right: none;
    border-bottom: 2px solid var(--border);
  }

  .tv-prevnext__item--next {
    text-align: left;
    align-items: flex-start;
  }

  .tv-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tv-admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tv-admin-main-grid {
    grid-template-columns: 1fr;
  }

  .tv-admin-quick-grid {
    grid-template-columns: 1fr;
  }

  .tv-admin-form-2col {
    grid-template-columns: 1fr;
  }

  .tv-admin-form-3col {
    grid-template-columns: 1fr;
  }

  .tv-table-header {
    display: none;
  }

  .tv-table-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }

  .tv-article__sidebar {
    position: static;
  }
}

/* === FLASH MESSAGES === */
.tv-flash {
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: 2px;
  border-left: 3px solid;
}

.tv-flash--success {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.tv-flash--error {
  background: rgba(229, 57, 53, 0.1);
  border-color: var(--tv-danger);
  color: #e53935;
}

.tv-flash--info {
  background: rgba(122, 122, 130, 0.1);
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

/* === NOTIFICATION BELL (HEADER) === */
.tv-notif-dropdown {
  position: relative;
  display: inline-block;
}

.tv-nav__item--bell {
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  cursor: pointer;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.tv-nav__item--bell:hover,
.tv-nav__item--bell[aria-expanded="true"] {
  background: var(--accent);
  color: var(--bg-base);
}

.tv-notif-bell-icon {
  font-size: 14px;
  line-height: 1;
}

.tv-notif-badge {
  background: var(--bg-base);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 1px;
  min-width: 14px;
  text-align: center;
  line-height: 1.3;
}

.tv-notif-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  max-height: 440px;
  overflow-y: auto;
  background: var(--bg-raised);
  border: 1px solid var(--border-thick);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
}

.tv-notif-menu[aria-hidden="false"] {
  display: block;
}

.tv-notif-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.tv-notif-menu-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.tv-notif-menu-item--unread {
  border-left: 2px solid var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
}

.tv-notif-menu-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.tv-notif-menu-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tv-notif-menu-msg {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-notif-menu-time {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.tv-notif-menu-empty {
  padding: 28px 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.tv-notif-menu-footer {
  display: block;
  padding: 10px 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-top: 1px solid var(--border-thick);
  transition: background 0.15s;
}

.tv-notif-menu-footer:hover {
  background: rgba(var(--accent-rgb), 0.1);
}

/* === NOTIFICATIONS PANEL === */
.tv-notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-thick);
}

.tv-notif-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border-thick);
}

.tv-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-raised);
  border-left: 2px solid transparent;
  transition: background 0.15s;
}

.tv-notif-item--unread {
  border-left-color: var(--accent);
  background: var(--bg-surface);
}

.tv-notif-item:hover {
  background: var(--bg-elevated);
}

.tv-notif-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.tv-notif-content {
  flex: 1;
  min-width: 0;
}

.tv-notif-message {
  font-size: 13px;
  color: var(--text-primary);
  margin: 0 0 4px;
  line-height: 1.5;
}

.tv-notif-time {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.tv-notif-actions {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-shrink: 0;
}

.tv-notif-form {
  margin: 0;
  padding: 0;
}

.tv-empty {
  text-align: center;
  padding: 80px 24px;
  border: 1px solid var(--border-thick);
  background: var(--bg-raised);
}

.tv-empty__icon {
  font-size: 36px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.tv-empty__text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.tv-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* === FORM GROUPS === */
.tv-form-group {
  margin-bottom: 1.5rem;
}

.tv-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.tv-form-row {
  display: flex;
  gap: 16px;
}

.tv-input-hint {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.tv-file-input {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.tv-file-input::file-selector-button {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  margin-right: 12px;
  transition: border-color 0.2s;
}

.tv-file-input::file-selector-button:hover {
  border-color: var(--accent);
}

/* === BADGES === */
.tv-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid;
}

.tv-badge--accent {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

/* === CAR CARD === */
.tv-car-card {
  border: 2px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.tv-car-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tv-car-card__img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.tv-car-card__placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-car-card__placeholder span {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-muted);
}

.tv-car-card__body {
  padding: 16px;
}

.tv-car-card__body .tv-badge {
  margin-bottom: 8px;
}

.tv-car-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

.tv-car-card__title a {
  color: var(--text-primary);
  text-decoration: none;
}

.tv-car-card__title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.tv-car-card__specs {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.tv-car-card__spec {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.tv-car-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.tv-car-card-wrapper {
  display: flex;
  flex-direction: column;
}

/* === USER CARD === */
.tv-user-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border: 2px solid var(--border);
  background: var(--bg-raised);
}

.tv-user-card__avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-user-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-user-card__avatar span {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.tv-user-card__info {
  flex: 1;
  min-width: 0;
}

.tv-user-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.tv-user-card__name a {
  color: var(--text-primary);
  text-decoration: none;
}

.tv-user-card__name a:hover {
  color: var(--accent);
  text-decoration: none;
}

.tv-user-card__bio {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 12px;
}

.tv-user-card__stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tv-user-card__stat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.tv-user-card__stat strong {
  color: var(--accent);
  font-weight: 700;
}

/* === PROFILE PAGE === */
.tv-profile-header {
  display: flex;
  gap: 32px;
  padding: 32px;
  border: 2px solid var(--border);
  background: var(--bg-raised);
}

.tv-profile-avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-profile-avatar span {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
}

.tv-profile-info {
  flex: 1;
  min-width: 0;
}

.tv-profile-bio {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 600px;
}

.tv-profile-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.tv-profile-stat {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.tv-profile-stat strong {
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}

/* === CAR DETAIL PAGE === */
.tv-car-hero {
  overflow: hidden;
  border: 2px solid var(--border);
}

.tv-car-hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.tv-car-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2px;
}

.tv-car-spec {
  background: var(--bg-raised);
  border: 2px solid var(--border);
  padding: 20px 16px;
  text-align: center;
}

.tv-car-spec__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tv-car-spec__value {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  line-height: 1;
}

.tv-car-spec__value--accent {
  color: var(--accent);
}

.tv-car-mods {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-wrap;
}

/* === AVATAR PREVIEW === */
.tv-avatar-preview {
  margin-bottom: 12px;
}

.tv-avatar-preview img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
}

.tv-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-avatar-placeholder span {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}

/* === RESPONSIVE: Phase 1 components === */
@media (max-width: 768px) {
  .tv-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tv-profile-stats {
    justify-content: center;
  }

  .tv-profile-info > div:last-child {
    justify-content: center;
  }

  .tv-form-row {
    flex-direction: column;
    gap: 0;
  }

  .tv-user-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tv-user-card__stats {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .tv-car-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tv-profile-avatar {
    width: 96px;
    height: 96px;
  }

  .tv-profile-avatar span {
    font-size: 36px;
  }
}

/* === CHRONICLE CARD === */
.tv-chronicle-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-top-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.tv-chronicle-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.tv-chronicle-card:hover {
  border-top-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  text-decoration: none;
  color: inherit;
}

.tv-chronicle-card:hover::after {
  width: 100%;
}

.tv-chronicle-card__img img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.tv-chronicle-card:hover .tv-chronicle-card__img img {
  transform: scale(1.03);
}

.tv-chronicle-card__placeholder {
  width: 100%;
  aspect-ratio: 16/7;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-chronicle-card__placeholder span {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-muted);
}

.tv-chronicle-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 20px;
  background: var(--bg-raised);
  transition: background 0.25s;
}

.tv-chronicle-card:hover .tv-chronicle-card__body {
  background: var(--bg-elevated);
}

.tv-chronicle-card__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tv-chronicle-card__date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.tv-chronicle-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.2;
  transition: color 0.2s;
}

.tv-chronicle-card:hover .tv-chronicle-card__title {
  color: var(--accent);
}

.tv-chronicle-card__author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
}

.tv-chronicle-card__author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.tv-chronicle-card__excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 8px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-chronicle-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.tv-chronicle-card__lap {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  padding: 2px 6px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  letter-spacing: 0.04em;
}

.tv-chronicle-card__read {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.tv-chronicle-card:hover .tv-chronicle-card__read {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

/* === BADGE VARIANTS === */
.tv-badge--muted {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text-muted);
}

.tv-badge--success {
  background: rgba(76, 175, 80, 0.12);
  border-color: #4caf50;
  color: #4caf50;
}

.tv-badge--danger {
  background: rgba(229, 57, 53, 0.12);
  border-color: #e53935;
  color: #e53935;
}

.tv-badge--circuit {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.3);
  color: var(--accent);
}

/* === STATS GRID (Mi Panel) === */
.tv-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 2px;
}

.tv-stat-card {
  background: var(--bg-raised);
  border: 2px solid var(--border);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tv-stat-card__value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  line-height: 1;
}

.tv-stat-card__label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* === PANEL LIST === */
.tv-panel-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tv-panel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-raised);
  border: 2px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.tv-panel-item__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.tv-panel-item__title:hover {
  color: var(--accent);
  text-decoration: none;
}

.tv-panel-item__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.tv-panel-item__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* === LIKE BUTTON === */
.tv-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.tv-like-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.tv-like-btn--active {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.tv-like-btn--guest {
  color: var(--text-muted);
  border-color: var(--border);
}

.tv-like-btn--guest:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.tv-like-btn span {
  font-size: 13px;
}

.tv-like-form {
  display: inline;
}

/* === COMMENTS === */
.tv-comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tv-comment {
  padding: 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
}

.tv-comment__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tv-comment__author {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
}

.tv-comment__author:hover {
  color: var(--accent);
  text-decoration: none;
}

.tv-comment__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.tv-comment__avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.tv-comment__name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
}

.tv-comment__date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.tv-comment__delete-form {
  margin-left: auto;
}

.tv-comment__delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.2s;
}

.tv-comment__delete-btn:hover {
  color: var(--tv-danger);
}

.tv-comment__content {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  word-wrap: break-word;
}

.tv-comment-form {
  padding: 16px;
  background: var(--bg-raised);
  border: 2px solid var(--border);
}

.tv-comment-login-prompt {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  border: 2px dashed var(--border);
  margin-bottom: 24px;
  font-size: 14px;
}

.tv-comment-login-prompt a {
  color: var(--accent);
  text-decoration: underline;
}

/* === FOLLOWS === */
.tv-follows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.tv-follows-section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}

.tv-follows-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tv-follow-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s;
}

.tv-follow-item:hover {
  border-color: var(--accent);
  background: var(--bg-surface);
  text-decoration: none;
  color: var(--text-primary);
}

.tv-follow-item__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.tv-follow-item__avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.tv-follow-item__name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}

.tv-follow-form {
  display: inline;
}

/* === RESPONSIVE: Phase 3 components === */
@media (max-width: 768px) {
  .tv-follows-grid {
    grid-template-columns: 1fr;
  }

  .tv-comment__header {
    flex-wrap: wrap;
  }

  .tv-comment__delete-form {
    margin-left: 0;
    margin-top: 4px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tv-like-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .tv-follow-item {
    padding: 8px 10px;
  }
}

/* === RESPONSIVE: Phase 2 components === */
@media (max-width: 768px) {
  .tv-panel-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .tv-panel-item__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .tv-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .tv-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tv-chronicle-card__title {
    font-size: 16px;
  }
}

/* === FOOTER (additional responsive) === */
@media (max-width: 480px) {
  .tv-admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .tv-grid-products {
    grid-template-columns: 1fr;
  }

  .tv-grid-gallery {
    grid-template-columns: 1fr;
  }
}

/* === PHASE 6: HOME & CIRCUITOS === */

/* Sections */
.tv-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.tv-section--alt {
  background: var(--bg-raised);
  border-top: none;
  border-bottom: 1px solid var(--border);
}

.tv-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tv-section-title__accent {
  color: var(--accent);
  font-size: 18px;
}

/* Filters */
.tv-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tv-filter-select {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border-thick);
  color: var(--text-primary);
  outline: none;
  min-width: 0;
}

.tv-filter-select:focus {
  border-color: var(--accent);
}

.tv-filter-select--sm {
  max-width: 120px;
}

/* Featured grid */
.tv-grid-posts--featured {
  grid-template-columns: repeat(3, 1fr);
}

/* CTA section */
.tv-cta {
  text-align: center;
  padding: 64px 0;
}

.tv-cta__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.tv-cta__desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.tv-page-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  margin: -16px 0 32px;
}

.tv-circuit-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin: 4px 0 0;
}

/* Pagination dots */
.tv-pagination__dots {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 4px;
}

/* Responsive: Phase 6 */
@media (max-width: 900px) {
  .tv-grid-posts--featured {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tv-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .tv-filter-select {
    width: 100%;
  }

  .tv-filter-select--sm {
    max-width: none;
  }

  .tv-cta__title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .tv-grid-posts--featured {
    grid-template-columns: 1fr;
  }

  .tv-section {
    padding: 32px 0;
  }

  .tv-section-title {
    font-size: 18px;
  }
}

/* ── Featured chronicle card ─────────────────────────────────────────────── */
.tv-chronicle-card--featured {
  border-top-width: 4px;
}

.tv-chronicle-card--featured .tv-chronicle-card__img img {
  aspect-ratio: 16/6;
}

.tv-chronicle-card--featured .tv-chronicle-card__body {
  padding: 24px 28px 28px;
}

.tv-chronicle-card--featured .tv-chronicle-card__title {
  font-size: 28px;
}

.tv-chronicle-card--featured .tv-chronicle-card__excerpt {
  -webkit-line-clamp: 4;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ── Sort bar (cronicas hub) ─────────────────────────────────────────────── */
.tv-sort-bar {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
}
.tv-sort-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.tv-sort-link:hover {
  color: var(--text-primary);
  text-decoration: none;
}
.tv-sort-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Circuit pills ────────────────────────────────────────────────────────── */
.tv-circuit-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tv-circuit-pill {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}

.tv-circuit-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.tv-circuit-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 60, 0, 0.08);
}

/* ── Circuits page head ───────────────────────────────────────────────────── */
.tv-circuits-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.tv-circuits-page-head__count {
  font-family: var(--font-mono);
  font-size: 80px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.12;
  line-height: 1;
  user-select: none;
}

/* ── Circuit individual stats header ─────────────────────────────────────── */
.tv-circuit-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 8px 0 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.tv-circuit-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 28px;
  position: relative;
}

.tv-circuit-stat:first-child {
  padding-left: 0;
}

.tv-circuit-stat + .tv-circuit-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}

.tv-circuit-stat__value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

/* Fechas y textos largos: mismo tamaño de caja, fuente algo más pequeña */
.tv-circuit-stat__value--date {
  font-size: 15px;
  line-height: 1.4;
}

.tv-circuit-stat__label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Circuit accordion (consolidated circuits page) ──────────────────────── */
.tv-circuits-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.tv-circuit-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tv-circuit-accordion {
  background: var(--bg-raised);
  border: 1px solid var(--border-thick);
  border-left: 3px solid transparent;
  transition: border-left-color 0.2s, background 0.2s;
}

.tv-circuit-accordion.open,
.tv-circuit-accordion:hover {
  border-left-color: var(--accent);
}

.tv-circuit-accordion__trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.tv-circuit-accordion__num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.45;
  line-height: 1;
  min-width: 44px;
}

.tv-circuit-accordion__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.tv-circuit-accordion__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  transition: color 0.2s;
}

.tv-circuit-accordion.open .tv-circuit-accordion__name,
.tv-circuit-accordion__trigger:hover .tv-circuit-accordion__name {
  color: var(--accent);
}

.tv-circuit-accordion__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tv-circuit-accordion__chevron {
  font-size: 18px;
  color: var(--text-secondary);
  transition: transform 0.25s ease, color 0.2s;
  flex-shrink: 0;
}

.tv-circuit-accordion.open .tv-circuit-accordion__chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.tv-circuit-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.tv-circuit-accordion.open .tv-circuit-accordion__panel {
  max-height: 2400px;
}

.tv-circuit-accordion__panel-inner {
  padding: 0 20px 24px;
}

.tv-circuit-accordion__more {
  margin-top: 20px;
}

/* ── Event participants ──────────────────────────────────────────────────── */
.tv-participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.tv-participant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.tv-participant:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
  text-decoration: none;
}

.tv-participant__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.tv-participant__avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.tv-participant__name {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Featured pilots (home) ──────────────────────────────────────────────── */
.tv-pilots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.tv-pilot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px 16px 18px;
  border: 1px solid var(--border-thick);
  background: var(--bg-raised);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.25s, background 0.2s;
}

.tv-pilot-card:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
  transform: translateY(-3px);
  text-decoration: none;
}

.tv-pilot-card__rank {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
}

.tv-pilot-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.tv-pilot-card__avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
}

.tv-pilot-card__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-pilot-card__count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tv-pilot-card__count + .tv-pilot-card__count {
  margin-top: -4px;
}

/* ── How it works steps (home) ───────────────────────────────────────────── */
.tv-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.tv-step {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: var(--bg-raised);
}

.tv-step__num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
}

.tv-step__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  margin: 12px 0 8px;
  line-height: 1.2;
}

.tv-step__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── Cover image position adjuster ─────────────────────────────────────── */
.tv-cover-positioner {
  display: none;
  margin-top: 12px;
}

.tv-cover-positioner.is-visible {
  display: block;
}

.tv-cover-positioner__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.tv-cover-positioner__wrap {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: crosshair;
  user-select: none;
  touch-action: none;
  transition: border-color .15s;
}

.tv-cover-positioner__wrap:hover {
  border-color: var(--accent);
}

.tv-cover-positioner__img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  pointer-events: none;
}

.tv-cover-positioner__crosshair {
  position: absolute;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.tv-cover-positioner__crosshair::before,
.tv-cover-positioner__crosshair::after {
  content: '';
  position: absolute;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 4px rgba(0,0,0,.4);
}

.tv-cover-positioner__crosshair::before {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.tv-cover-positioner__crosshair::after {
  height: 2px;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.tv-cover-positioner__hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.55);
  padding: 4px 12px;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
}
