/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100vh;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background-color: #000;
  color: #f5f5f5;
  min-width: 360px;
  overflow-x: auto;
}

/* Smooth scrolling only when enabled via class */
html.smooth-scroll {
  scroll-behavior: smooth;
}

/* Register local Allstar display font used for headings */
@font-face {
  font-family: 'Allstar';
  src: url('/fonts/Allstar4.ttf') format('truetype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* Headings prefer Allstar, fall back to Oswald then Roboto */
h1, h2, h3, .notion-page-title, .hero h1 {
  font-family: 'Allstar', 'Oswald', 'Roboto', sans-serif;
  text-transform: uppercase;
}

/* Smaller headings / emphasis use Oswald */
h4, h5, h6 {
  font-family: 'Oswald', 'Roboto', sans-serif;
}

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

a:hover {
  text-decoration: none;
}

.notion-container a,
.notion-card a {
  color: #8fbcff;
  text-decoration: underline;
  text-decoration-color: rgba(143, 188, 255, 0.4);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.notion-container a:hover,
.notion-card a:hover {
  color: #b3d1ff;
  text-decoration-color: rgba(143, 188, 255, 0.8);
}

.notion-container a.notion-pill,
.notion-card a.notion-pill {
  color: inherit;
  text-decoration: none;
}

.notion-container a.notion-pill:hover,
.notion-card a.notion-pill:hover {
  color: inherit;
  text-decoration: none;
}

.home {
  background-color: #000;
  overflow: hidden;
}

.top-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 10;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 0 36px;
  height: 64px;  /* Fixed height for the header */
  align-items: center;
}

/* Navigation inner wrapper to contain toggle + links */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 8px;
  margin-right: 12px;
  cursor: pointer;
}

/* Ensure toggle is ordered after links so it appears on the right when shown */
.nav-toggle { order: 2; }
.nav-links { order: 1; }

.nav-toggle svg { display: block; }

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #f5f5f5;
  transition: color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #8fbcff;
}

/* Brand nav link styling */
.nav-links a.nav-link {
  font-family: 'Oswald', 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: 0 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.nav-links a.nav-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: #8fbcff;
  transition: width 160ms ease;
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
}

.nav-links a.nav-link:hover::after,
.nav-links a.nav-link:focus::after {
  width: 100%;
}

/* Remove hover effect for donate button */
.nav-links a.nav-link.donate-btn::after {
  display: none;
}

.nav-links a.nav-link.donate-btn {
  background-color: #FFD400;
  color: #000;
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: 600;
  height: auto;
  margin: auto 0;
}

.nav-links a.nav-link.donate-btn:hover,
.nav-links a.nav-link.donate-btn:focus {
  color: #000;
  background-color: #FFD400;
}

/* Hero section */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  padding-top: 72px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 1;
}

.hero .background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* Hero headline styling to match brand: big, display Allstar, uppercase */
.hero h1 {
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #f9fbff;
  text-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Page title (notion pages) */
.notion-page-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  color: #f5f8ff;
}

/* General headings */
h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 700;
}

h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

/* Logo in center */
.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.logo-container.konami-spinning {
  animation: konamiSpin 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.logo-container img {
  width: clamp(180px, 30vw, 420px);
  height: auto;
  opacity: 0;
  transform: translateY(32px) scale(0.88);
  animation: logoEntry 1.6s ease-out 0.4s forwards;
  animation-fill-mode: both;
}

@keyframes konamiSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  20% {
    transform: translate(-50%, -50%) rotate(-25deg) scale(1.05);
  }
  50% {
    transform: translate(-50%, -50%) rotate(360deg) scale(1.12);
  }
  75% {
    transform: translate(-50%, -50%) rotate(540deg) scale(0.92);
  }
  100% {
    transform: translate(-50%, -50%) rotate(720deg) scale(1);
  }
}

@keyframes logoEntry {
  0% {
    opacity: 0;
    transform: translateY(32px) scale(0.88);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Footer */
.site-footer {
  padding: 48px 24px;
  background: linear-gradient(180deg, rgba(10, 14, 24, 0.92), rgba(6, 9, 16, 0.95));
  border-top: 1px solid rgba(143, 188, 255, 0.14);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 32px;
}

.footer-meta {
  display: grid;
  gap: 8px;
  color: rgba(219, 228, 255, 0.92);
  justify-items: center;
}

.footer-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(166, 187, 226, 0.82);
}

.footer-icons {
  flex: 1;
  display: flex;
  justify-content: center;
}

.icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.icons a,
.icons .icon-wrapper {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  animation: iconEntry 0.8s ease-out forwards;
}

.icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes iconEntry {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.icons > *:nth-child(1) {
  animation-delay: 0.4s;
}

.icons > *:nth-child(2) {
  animation-delay: 0.52s;
}

.icons > *:nth-child(3) {
  animation-delay: 0.64s;
}

.icons > *:nth-child(4) {
  animation-delay: 0.76s;
}

.icons > *:nth-child(5) {
  animation-delay: 0.88s;
}

.icons > *:nth-child(6) {
  animation-delay: 1s;
}

.icons > *:nth-child(7) {
  animation-delay: 1.12s;
}

.home .site-footer {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  z-index: 2;
}

.home .footer-inner {
  justify-content: center;
  gap: 40px;
}

.home .footer-meta {
  display: none;
}

.home .footer-icons {
  flex: unset;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 64px;
  }

  /* Mobile nav: hide the full link list behind a toggle */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-inner {
    justify-content: flex-end;
    padding: 8px 16px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(18,18,18,0.96);
    height: auto;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 260ms ease, opacity 200ms ease;
    opacity: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  .nav-links[data-visible="true"] {
    display: flex;
    max-height: 500px; /* enough to show the links */
    opacity: 1;
    padding: 12px 0;
  }

  .nav-links a.nav-link {
    height: auto;
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.02);
    justify-content: center;
  }

  .nav-links a.nav-link::after {
    display: none;
  }
  
  .nav-links a.nav-link.donate-btn {
    margin: 8px 16px;
    border: none;
  }

  .logo-container {
    width: auto;
    padding: 0;
  }

  .logo-container img {
    width: clamp(220px, 60vw, 420px);
    max-width: calc(100vw - 48px);
  }

  .home .site-footer {
    bottom: 20px;
  }

  .icons {
    gap: clamp(16px, 6vw, 28px);
    padding: 0 24px;
  }

  .icons a,
  .icons .icon-wrapper {
    width: clamp(40px, 12vw, 56px);
    height: clamp(40px, 12vw, 56px);
  }

  /* Footer styles */
  .footer-icons {
    width: 100%;
  }
  .site-footer {
    padding: 48px 4px;
  }

  /* Content page styles */
  .nav-links {
    gap: 16px;
    padding: 16px 20px;
    font-size: 0.9rem;
  }

  body.notion {
    padding-top: 64px;
  }

  .notion-container {
    margin: 0 auto 24px;
    padding: 24px 20px;
  }

  .notion-page-title {
    font-size: 2rem;
  }

  .notion-card {
    padding: 20px;
  }

  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .robot-overview {
    text-align: left;
    align-items: flex-start;
  }

  .robot-title {
    font-size: 1.9rem;
  }

  .robot-season {
    font-size: 0.85rem;
  }

  .robot-meta {
    grid-template-columns: 1fr;
  }
}


.home:not(.animations-ready) .hero .background {
  opacity: 0;
}

.home:not(.animations-ready) .logo-container img,
.home:not(.animations-ready) .icons a,
.home:not(.animations-ready) .icons .icon-wrapper {
  animation-play-state: paused;
}

/* Notion-style content pages */
body.notion {
  background-color: #191919;
  color: #e3e5e5;
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.notion .top-nav {
  background: rgba(24, 25, 26, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.notion-container {
  max-width: 920px;
  margin: 0 auto 26px;
  padding: 32px 32px;
}

body.notion .notion-container {
  flex: 1 0 auto;
  width: 100%;
}

.notion-page-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.notion-page-subtitle {
  font-size: 1.05rem;
  color: #a6adbb;
  margin-bottom: 32px;
}

.notion-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.robot-card + .robot-card {
  margin-top: 32px;
}

/* Animations for robots page - subtle scroll reveal */
.robot-card {
  opacity: 0;
  transform: translateY(20px);
  scroll-margin-top: 80px;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.robot-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* All event-blocks should have subtle reveal animation */
.event-block {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.event-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.robot-photo {
  transition: transform 360ms cubic-bezier(.22,.9,.26,1), box-shadow 360ms ease;
  will-change: transform;
}

.robot-photo:hover,
.robot-photo:focus {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 22px 44px rgba(0,0,0,0.44);
}

/* Small reveal helper for when JS is not available: make everything visible */
html.no-js .robot-card,
html.no-js .event-grid .event-block { opacity: 1; transform: none; }

.robot-header {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
}

.robot-media {
  margin: 0;
  width: min(100%, 360px);
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, rgba(143, 188, 255, 0.22), rgba(143, 188, 255, 0.04) 68%, rgba(17, 21, 30, 0.8));
  border: 1px solid rgba(143, 188, 255, 0.28);
  padding: 14px;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 48px rgba(9, 13, 24, 0.55);
}

.robot-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.robot-overview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.robot-reveal-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.robot-reveal-link:hover,
.robot-reveal-link:focus {
  transform: translateY(-1px);
}

.robot-reveal-link:focus-visible {
  outline: 2px solid rgba(143, 188, 255, 0.8);
  outline-offset: 2px;
}

.robot-season-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(143, 188, 255, 0.68);
}

.robot-title {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0;
}

.robot-season {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(143, 188, 255, 0.16);
  border: 1px solid rgba(143, 188, 255, 0.24);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d7e5ff;
}

.robot-name {
  font-style: italic;
  color: #f5f8ff;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.robot-nickname {
  font-style: normal;
  font-weight: 500;
  color: rgba(211, 219, 235, 0.9);
  margin-left: 6px;
  font-size: 0.9em;
}

.robot-summary {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #b8c2d4;
  max-width: 52ch;
}

.robot-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.robot-meta-group {
  padding: 16px 18px;
  background: rgba(17, 21, 30, 0.66);
  border: 1px solid rgba(143, 188, 255, 0.12);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.robot-meta h3 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(143, 188, 255, 0.78);
  margin-bottom: 10px;
}

.robot-meta ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.robot-meta li {
  font-size: 0.95rem;
  color: #e4e8f3;
}

.robot-meta li + li {
  border-top: 1px solid rgba(143, 188, 255, 0.08);
  padding-top: 4px;
}

.robot-card > .event-grid,
.robot-card > .event-block,
.robot-card > .match-table {
  margin-top: 20px;
}

.event-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.event-block {
  background: rgba(14, 18, 26, 0.72);
  border: 1px solid rgba(143, 188, 255, 0.12);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 14px 32px rgba(7, 10, 18, 0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-block h3 {
  font-size: 1.1rem;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.event-block h3 span {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(143, 188, 255, 0.75);
  background: rgba(143, 188, 255, 0.18);
  border: 1px solid rgba(143, 188, 255, 0.28);
  border-radius: 999px;
  padding: 2px 12px;
}

.event-table,
.match-table {
  width: 100%;
  border-collapse: collapse;
}

.event-table th,
.event-table td,
.match-table th,
.match-table td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  font-size: 0.95rem;
  color: #d7dbe7;
}

.match-table th {
  text-align: left;
}

.event-table th {
  width: 140px;
  font-weight: 600;
  color: rgba(176, 197, 231, 0.92);
  padding-right: 12px;
}

.event-table tr:last-child th,
.event-table tr:last-child td,
.match-table tr:last-child td,
.match-table tr:last-child th {
  border-bottom: none;
}

.match-table {
  margin-top: 8px;
}

.match-table thead th {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #8f9db7;
}

.match-table .group-heading {
  text-align: center;
}

.match-table tbody tr td:first-child {
  font-weight: 600;
  color: #b7c4df;
}

.match-table tbody td {
  font-family: 'Fira Code', 'Roboto Mono', monospace;
  font-size: 0.9rem;
  word-break: break-word;
}

.match-table .match-score {
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Mobile-friendly accordion for match tables */
/* Hide JS-generated accordion by default on desktop */
.table-accordion { display: none; }

@media (max-width: 830px) {
  /* Show the accordion container and hide the original table when mobile transformation is active */
  .table-accordion { display: block; }

  /* Only hide the original table when the mobile accordion is active (within the collapse breakpoint) */
  .match-table.mobile-hidden { display: none; }

  .table-accordion .accordion-item {
    background: rgba(14,18,26,0.72);
    border: 1px solid rgba(143,188,255,0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
  }

  .table-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #e6ecff;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  }

  .table-accordion summary::-webkit-details-marker { display: none; }

  .table-accordion .accordion-content {
    padding: 12px 16px 18px 16px;
    color: #d7dbe7;
    font-size: 0.95rem;
    line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.03);
  }

  /* Use a 2-column grid for meta rows so the right-hand values align vertically
     The left column is fixed width so multi-line values align under the same start point */
  .table-accordion .meta-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 10px;
  }

  .table-accordion .meta-row .label {
    font-weight: 700;
    color: #bcd3ff;
  }

  .table-accordion .meta-row .value {
    /* ensure values wrap within the available space */
    overflow-wrap: anywhere;
  }
}

.event-block + .event-block {
  margin-top: 0;
}

.notion-card h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.notion-card p,
.notion-card li {
  font-size: 1rem;
  line-height: 1.7;
  color: #d3d7e0;
}

/* Sponsors grid: two banners side-by-side on wide screens, stacked on small screens */
.sponsors-card {
  padding: 20px;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: center;
  justify-items: center;
}

.sponsor-item {
  display: block;
  width: 100%;
  max-width: 720px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.6);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sponsor-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.sponsor-item:hover,
.sponsor-item:focus {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.7);
}

.notion-card ul {
  margin-left: 20px;
  list-style: disc;
}

.notion-card ol {
  margin-left: 20px;
  list-style: decimal;
}

.notion-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  margin: 32px 0;
}

.notion-links {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0px;
}

.notion-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
  transition: background 0.2s ease, border 0.2s ease;
}

.notion-pill:hover,
.notion-pill:focus {
  background: rgba(143, 188, 255, 0.18);
  border-color: rgba(143, 188, 255, 0.32);
}

@media (max-width: 1024px) {
  .robot-header {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .robot-media {
    justify-self: center;
  }

  .robot-overview {
    text-align: center;
    align-items: center;
    margin: 0 auto;
  }

  .robot-summary {
    max-width: 60ch;
  }
}

/* Year Navigation */
.year-nav {
  position: fixed;
  left: calc(50% - 460px - 100px); /* Position to the left of the main container */
  top: 346px;
  transform: translateY(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.year-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.year-nav-link {
  display: block;
  padding: 12px 20px;
  color: #f5f5f5;
  text-decoration: none;
  font-family: 'Allstar', 'Oswald', 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.year-nav-link:hover {
  color: #8fbcff;
  border-left-color: #8fbcff;
  background: rgba(143, 188, 255, 0.1);
}

.year-nav-link.active {
  color: #8fbcff;
  border-left-color: #8fbcff;
  background: rgba(143, 188, 255, 0.15);
}

/* Hide navigation on smaller screens */
@media (max-width: 1200px) {
  .year-nav {
    display: none;
  }
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.show {
  opacity: 1;
  visibility: visible;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: radial-gradient(circle at 30% 20%, rgba(143, 188, 255, 0.22), rgba(143, 188, 255, 0.04) 68%, rgba(17, 21, 30, 0.8));
  border: 1px solid rgba(143, 188, 255, 0.28);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(9, 13, 24, 0.55);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.video-modal.show .video-modal-content {
  transform: scale(1) translateY(0);
}

.video-modal-header {
  position: relative;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
}

.video-modal-title {
  color: #f5f5f5;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  font-family: 'Allstar', 'Oswald', 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.video-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #f5f5f5;
  padding: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.video-modal-body {
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive modal */
@media (max-width: 768px) {
  .video-modal-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .video-modal-header {
    padding: 15px;
  }
}
