:root {
  color-scheme: dark;
  --bg: #1a1a1a;
  --panel: rgba(43, 43, 43, 0.92);
  --panel-border: rgba(68, 68, 68, 0.8);
  --text: #f0f0f0;
  --muted: #888888;
  --accent: #ffb019;
  --accent-strong: #ffcf70;
  --card-shadow: 0 18px 30px rgba(0, 0, 0, 0.55);
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 16px 20px 28px;
  font-family: var(--font-stack);
  background: var(--bg);
  background-image: url("/assets/ror.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  color: var(--text);
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent-strong);
}

header {
  position: relative;
  text-align: center;
  padding: 28px 24px 8px;
}

header h1 {
  margin: 0;
  color: var(--accent);
  text-align: center;
}

header h1 .muted {
  color: var(--muted);
  font-size: inherit;
}

header h1 .muted a {
  color: var(--muted) !important;
  text-decoration: none;
}

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

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

header p {
  max-width: 860px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.top-nav {
  position: absolute;
  top: 8px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.top-nav a {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;
}

.top-nav a + a::before {
  content: "\00b7";
  color: rgba(255, 191, 73, 0.35);
  margin-right: 8px;
}

.top-nav a:hover {
  color: var(--accent-strong);
  opacity: 1;
}

.credit-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.credit-video {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 191, 73, 0.16);
  background: #000;
}

.credit-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.source-card,
.stats-panel {
  border-radius: 20px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
}

.source-card {
  margin: 12px auto 18px;
  max-width: 1200px;
  color: var(--muted);
  line-height: 1.5;
}

.source-card strong {
  color: var(--text);
}

.grid-nav {
  max-width: 1200px;
  margin: 0 auto 18px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 8px;
}

.grid-nav a {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  border-radius: 14px;
  background: rgba(32, 28, 22, 0.82);
  border: 1px solid rgba(255, 191, 73, 0.16);
  color: var(--text);
  font-size: 0.88rem;
}

.grid-nav span {
  color: var(--accent);
  font-weight: 800;
}

.grid-nav em {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

#content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 28px;
  display: grid;
  gap: 16px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 1.45rem;
}

.spot-meta {
  margin: 6px 0 0;
  color: var(--muted);
}

.spot-meta strong {
  color: var(--text);
}

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

figure {
  margin: 0;
}

.shot-grid a {
  display: block;
}

.spot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 191, 73, 0.16);
  background: #000;
  cursor: zoom-in;
}

figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  max-width: min(100%, 1400px);
}

.lightbox-image-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.lightbox img {
  display: block;
  max-width: min(100%, 1400px);
  max-height: calc(100vh - 110px);
  border-radius: 10px;
  border: 1px solid rgba(255, 191, 73, 0.24);
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
}

.lightbox figcaption {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
  text-align: center;
}

.lightbox-coords {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.lightbox-description {
  color: rgba(240, 240, 240, 0.88);
  font-size: 0.88rem;
}

.lightbox-nav {
  position: absolute;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 191, 73, 0.26);
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.62);
  color: rgba(240, 240, 240, 0.82);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  opacity: 1;
  color: var(--accent-strong);
  border-color: var(--accent);
  background: rgba(24, 24, 24, 0.88);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 191, 73, 0.3);
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.9);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
}

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

@media (max-width: 820px) {
  body {
    padding: 12px;
    background-attachment: scroll;
  }

  header {
    padding: 4px 0 6px;
    text-align: left;
  }

  header h1 {
    font-size: 1.3rem;
    line-height: 1.28;
    text-align: left;
  }

  header h1 .muted {
    display: block;
    margin-top: 4px;
    font-size: 0.9em;
  }

  header p {
    max-width: none;
  }

  .top-nav {
    position: static;
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
    margin-bottom: 6px;
  }
}

@media (max-width: 700px) {
  #content,
  .grid-nav {
    padding: 0 8px;
  }

  .lightbox-nav {
    width: 32px;
    height: 32px;
    bottom: 8px;
    font-size: 1.4rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}
