:root {
  color-scheme: dark;
  --ink: #0b0a09;
  --coal: #141313;
  --charcoal: #202020;
  --smoke: #302d2a;
  --paper: #f4ead7;
  --muted: #cbbfa8;
  --red: #b73627;
  --red-dark: #7e1f18;
  --orange: #e16d28;
  --yellow: #f0b83a;
  --green: #6da062;
  --line: rgba(244, 234, 215, 0.16);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(circle at 20% 8%, rgba(183, 54, 39, 0.28), transparent 34rem),
    radial-gradient(circle at 86% 14%, rgba(240, 184, 58, 0.14), transparent 26rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px),
    var(--ink);
  font-family: var(--body);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.18;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, transparent 0 47%, rgba(255, 255, 255, 0.04) 48% 49%, transparent 50% 100%);
  mix-blend-mode: overlay;
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 99;
  padding: 0.7rem 1rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 10, 9, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-symbol {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--red);
  font-family: var(--display);
  font-size: 1.05rem;
  transform: rotate(-4deg);
  box-shadow: 5px 5px 0 var(--red-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.nav-links a {
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  color: var(--muted);
  border-radius: 4px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
}

#main {
  min-height: 72vh;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section-tight {
  padding-top: 2.5rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(11, 10, 9, 0.4), rgba(11, 10, 9, 0.72)),
    radial-gradient(circle at 72% 20%, rgba(225, 109, 40, 0.28), transparent 26rem),
    linear-gradient(135deg, rgba(183, 54, 39, 0.42), transparent 48%),
    var(--coal);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background:
    repeating-linear-gradient(-8deg, transparent 0 16px, rgba(244, 234, 215, 0.08) 17px 18px),
    radial-gradient(circle at 35% 60%, rgba(240, 184, 58, 0.22), transparent 18rem);
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 5rem;
}

.hero-inner > * {
  min-width: 0;
}

.eyebrow,
.kicker {
  margin: 0 0 0.75rem;
  color: var(--yellow);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.hero h1,
.page-title,
.section-title,
.poster-title {
  margin: 0;
  font-family: var(--display);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 8.8ch;
  font-size: clamp(4rem, 10vw, 7.8rem);
  overflow-wrap: normal;
  text-shadow: 5px 5px 0 var(--red-dark), 10px 10px 0 rgba(0, 0, 0, 0.42);
}

.hero-copy {
  max-width: 58rem;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--muted);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button,
.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 2px solid var(--paper);
  border-radius: 4px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.button.primary,
.admin-button.primary {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 5px 5px 0 var(--red);
}

.button.danger,
.admin-button.danger {
  background: var(--red);
  border-color: var(--red);
}

.button:hover,
.admin-button:hover {
  transform: translateY(-1px);
}

.poster-panel {
  position: relative;
  padding: 1rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.poster-panel::after {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border: 3px solid var(--ink);
  pointer-events: none;
}

.poster-content {
  position: relative;
  z-index: 1;
  min-height: 470px;
  padding: 1.4rem;
  background:
    linear-gradient(rgba(11, 10, 9, 0.12), rgba(11, 10, 9, 0.7)),
    radial-gradient(circle at 58% 18%, rgba(240, 184, 58, 0.75), transparent 9rem),
    linear-gradient(145deg, var(--red), var(--ink) 72%);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poster-title {
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  text-shadow: 4px 4px 0 var(--ink);
}

.poster-meta {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.poster-strip {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.5rem;
  color: var(--ink);
  background: var(--yellow);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(2.4rem, 7vw, 5.3rem);
}

.section-note {
  max-width: 40rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
}

.card:hover {
  border-color: rgba(240, 184, 58, 0.55);
}

.card-media,
.detail-media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(183, 54, 39, 0.78), rgba(11, 10, 9, 0.86)),
    var(--smoke);
  overflow: hidden;
}

.card-media img,
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 4px 4px 0 var(--ink);
}

.detail-media .image-fallback {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem;
}

.card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.93rem;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.15rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.18rem 0.5rem;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge.red {
  color: var(--paper);
  background: var(--red);
}

.badge.muted {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
}

.split-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.page-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: clamp(3.2rem, 10vw, 7rem);
  text-shadow: 4px 4px 0 var(--red-dark);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 1.8rem;
}

.filter-button {
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.filter-button.active {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 2rem;
  align-items: start;
}

.content-body {
  color: var(--paper);
  font-size: 1.08rem;
}

.content-body p {
  margin: 0 0 1.1rem;
}

.content-body h2,
.content-body h3 {
  margin: 2rem 0 0.7rem;
  font-family: var(--display);
  line-height: 1;
  text-transform: uppercase;
}

.content-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 6px solid var(--yellow);
  background: rgba(255, 255, 255, 0.06);
}

.info-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.045);
}

.info-panel h2,
.info-panel h3 {
  margin-top: 0;
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1;
  text-transform: uppercase;
}

.info-table {
  display: grid;
  gap: 0.75rem;
}

.info-table div {
  display: grid;
  gap: 0.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.info-table dt {
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.info-table dd {
  margin: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.admin-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1.25rem;
}

.admin-sidebar,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-sidebar {
  padding: 1rem;
  height: fit-content;
}

.admin-sidebar nav {
  display: grid;
  gap: 0.35rem;
}

.admin-sidebar a,
.admin-tab {
  width: 100%;
  text-align: left;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-radius: 4px;
  padding: 0.65rem 0.7rem;
  text-decoration: none;
  cursor: pointer;
}

.admin-sidebar a.active,
.admin-tab.active {
  color: var(--ink);
  background: var(--yellow);
  font-weight: 900;
}

.admin-panel {
  padding: 1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.admin-table th {
  color: var(--yellow);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-button {
  min-height: 36px;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.65rem;
}

textarea {
  min-height: 190px;
  resize: vertical;
}

.form-error {
  color: #ffd1c9;
  background: rgba(183, 54, 39, 0.24);
  border: 1px solid rgba(183, 54, 39, 0.7);
  border-radius: 4px;
  padding: 0.7rem;
  margin-bottom: 1rem;
}

.image-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 170px;
  gap: 0.8rem;
  align-items: end;
}

.image-preview {
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--muted);
  overflow: hidden;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-box {
  max-width: 440px;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.empty-state {
  padding: 2rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 6px;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    padding: 0.8rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1rem 1rem;
    background: rgba(11, 10, 9, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-inner,
  .split-band,
  .detail-layout,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: clamp(3.6rem, 13.5vw, 6.2rem);
    text-shadow: 4px 4px 0 var(--red-dark), 8px 8px 0 rgba(0, 0, 0, 0.42);
  }

  .poster-panel {
    transform: none;
  }

  .poster-content {
    min-height: 340px;
  }

  .grid.three,
  .grid.two,
  .stat-grid,
  .form-grid,
  .image-upload {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 520px) {
  .brand-mark span:last-child {
    display: none;
  }

  .section {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 13.5vw, 4.5rem);
    text-shadow: 3px 3px 0 var(--red-dark), 6px 6px 0 rgba(0, 0, 0, 0.42);
  }
}
