* {
  box-sizing: border-box;
}

:root {
  --bg: #080b0a;
  --surface: #0d1110;
  --surface-2: #121715;
  --border: #202a25;
  --border-bright: #314039;
  --text: #edf3ef;
  --muted: #87938c;
  --green: #62f59a;
  --green-dim: #2d8f55;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(98,245,154,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98,245,154,.018) 1px, transparent 1px),
    radial-gradient(circle at 50% -20%, rgba(55,150,91,.12), transparent 42%),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto, auto;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

header {
  position: relative;
  max-width: 1380px;
  margin: 0 auto;
  padding: 64px 26px 38px;
  border-bottom: 1px solid var(--border);
}

header::before {
  content: "● SYSTEM ONLINE";
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font: 600 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 2px;
}

.jordan-nav {
  position: absolute;
  top: 64px;
  right: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .8px;
}

.jordan-nav a {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  transition: color .15s ease, border-color .15s ease;
}

.jordan-nav a:hover {
  color: var(--green);
  border-color: var(--green);
}

.brand {
  display: inline-block;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 750;
  letter-spacing: -4px;
  line-height: .95;
}

.brand::after {
  content: "_";
  color: var(--green);
  font-weight: 400;
}

.tag {
  max-width: 520px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

main {
  max-width: 1380px;
  margin: auto;
  padding: 28px 26px 80px;
}

.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.pills a,
.rating,
.pick {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(13,17,16,.86);
  font-size: 12px;
}

.pills a {
  color: #aab5af;
  transition:
    color .16s ease,
    border-color .16s ease,
    background .16s ease;
}

.pills a:hover {
  color: var(--green);
  border-color: var(--green-dim);
  background: rgba(98,245,154,.055);
}

.grid {
  columns: 4 260px;
  column-gap: 16px;
}

.card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-bright);
  box-shadow: 0 14px 40px rgba(0,0,0,.32);
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #050706;
  transition: opacity .18s ease;
}

.card:hover img {
  opacity: .94;
}

.pad {
  padding: 13px 14px 15px;
  border-top: 1px solid var(--border);
}

.pad h2 {
  margin: 0 0 11px;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -.2px;
}

.stats {
  margin-top: 12px;
  color: #78837d;
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pick {
  margin-left: 5px;
  color: #e5c96d;
  font-size: 9px;
  vertical-align: 2px;
}

.rating {
  display: inline-block;
  font-size: 10px;
  padding: 5px 7px;
}

.rating.everyone {
  color: #86dca4;
}

.rating.teen {
  color: #ddc46d;
}

.rating.adult {
  color: #df8585;
}

.panel {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, .65fr);
  gap: 28px;
  align-items: start;
}

.detail > img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #050706;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--muted);
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.back:hover {
  color: var(--green);
}

input,
textarea,
select,
button {
  width: 100%;
  margin: 6px 0;
  padding: 11px 12px;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  outline: none;
  background: #0b0f0d;
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green-dim);
  box-shadow: 0 0 0 2px rgba(98,245,154,.07);
}

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

button {
  cursor: pointer;
  background: #18221d;
  color: var(--green);
  font-weight: 650;
  transition: background .15s ease;
}

button:hover {
  background: #1d2c24;
}

.comment {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.narrow {
  max-width: 440px;
  margin: 30px auto;
}

.upload {
  max-width: 650px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.row > *:first-child {
  flex: 1;
}

.row form {
  width: auto;
}

.row button {
  width: auto;
  margin: 0;
}

.adminhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flash,
.empty {
  padding: 18px;
  margin-bottom: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: #aeb9b3;
}

.empty::before {
  content: "> ";
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

footer {
  max-width: 1380px;
  margin: auto;
  padding: 26px;
  border-top: 1px solid var(--border);
  color: #56605b;
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .grid {
    columns: 2 240px;
  }

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

@media (max-width: 600px) {
  header {
    padding: 44px 18px 28px;
  }

  .jordan-nav {
    position: static;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 12px 0 18px;
  }

  .brand {
    letter-spacing: -2.5px;
  }

  .tag {
    font-size: 14px;
  }

  main {
    padding: 20px 14px 60px;
  }

  .pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .pills a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .grid {
    columns: 1;
  }

  .row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  footer {
    padding: 22px 16px;
  }
}

/* Admin artwork management */
.admin-art-row {
  align-items: flex-start;
}

.admin-thumb {
  flex: 0 0 72px !important;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #050706;
}

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

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.admin-pagination a {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.admin-pagination a:hover {
  color: var(--green);
  border-color: var(--green-dim);
}

.art-date {
  color: var(--muted);
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* Phase 4 — image-first gallery */

.filter-pills .active {
  color: var(--green);
  border-color: var(--green-dim);
  background: rgba(98,245,154,.09);
  box-shadow: inset 0 0 0 1px rgba(98,245,154,.05);
}

.pill-divider {
  width: 1px;
  align-self: stretch;
  margin: 2px 3px;
  background: var(--border);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 6px 0 18px;
}

.section-heading h1 {
  margin: 3px 0 0;
  font-size: clamp(26px,4vw,40px);
  letter-spacing: -1.5px;
}

.section-heading > span {
  color: var(--muted);
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.eyebrow {
  color: var(--green);
  font: 600 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 2px;
}

.picks-section {
  margin: 8px 0 42px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--border);
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 16px;
}

.pick-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  max-height: 520px;
  background: #050706;
  border: 1px solid var(--border-bright);
  border-radius: 9px;
}

.pick-card a {
  display: block;
  height: 100%;
}

.pick-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 520px;
  object-fit: cover;
  transition: transform .25s ease, opacity .25s ease;
}

.pick-card:hover img {
  transform: scale(1.015);
  opacity: .9;
}

.pick-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 50px 18px 17px;
  background: linear-gradient(transparent,rgba(0,0,0,.82));
}

.pick-overlay span {
  display: block;
  margin-bottom: 5px;
  color: #e5c96d;
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pick-overlay strong {
  font-size: 17px;
}

.gallery-heading {
  margin-top: 0;
}

.card-image {
  display: block;
  background: #050706;
}

.card-image img {
  aspect-ratio: auto;
}

.detail-image-link {
  position: relative;
  display: block;
}

.detail-image-link > img {
  display: block;
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  background: #050706;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 5px;
  background: rgba(0,0,0,.68);
  color: #dbe3de;
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  opacity: .75;
}

.detail-image-link:hover .zoom-hint {
  color: var(--green);
  opacity: 1;
}

.detail-info h1 {
  margin-top: 0;
  font-size: clamp(30px,4vw,48px);
  letter-spacing: -1.7px;
}

.detail-stats {
  color: #aab5af;
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lightbox:target {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.94);
}

.lightbox img {
  position: relative;
  z-index: 1;
  max-width: 94vw;
  max-height: 94vh;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,.55);
}

.lightbox-close {
  position: fixed;
  z-index: 2;
  top: 18px;
  right: 24px;
  color: white;
  font-size: 38px;
  line-height: 1;
}

.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

@media (max-width: 600px) {
  .pill-divider {
    display: none;
  }

  .section-heading {
    align-items: center;
  }

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

  .zoom-hint {
    display: none;
  }

  .lightbox {
    padding: 10px;
  }
}


/* Phase 4 — metadata/error-page polish */

.error-page {
  max-width: 720px;
  min-height: 48vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 0;
}

.error-code {
  color: var(--green);
  font: 600 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 3px;
}

.error-page h1 {
  margin: 8px 0 10px;
  font-size: clamp(42px,8vw,78px);
  letter-spacing: -3px;
  line-height: .95;
}

.error-page p {
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.error-home {
  align-self: flex-start;
  margin-top: 18px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #b8c3bd;
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.error-home:hover {
  color: var(--green);
  border-color: var(--green-dim);
}


/* Phase 5 — Adult content confirmation */

.adult-confirm {
  max-width: 560px;
  margin: 55px auto;
  padding: 32px;
}

.adult-confirm h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px,6vw,52px);
  letter-spacing: -2px;
}

.adult-confirm p {
  color: var(--muted);
  line-height: 1.7;
}

.adult-confirm form {
  margin-top: 22px;
}

.adult-back {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.adult-back:hover {
  color: var(--green);
}

/* Private admin analytics */
.analytics-panel {
  margin-bottom: 20px;
}

.analytics-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.analytics-heading h2,
.analytics-heading p {
  margin-top: 0;
}

.analytics-heading > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin: 20px 0 14px;
}

.analytics-metrics article {
  min-width: 0;
  padding: 15px;
  background: #0d120f;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.analytics-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.analytics-metrics strong {
  display: block;
  margin-top: 7px;
  color: var(--green);
  font: 700 27px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.analytics-note {
  color: var(--muted);
  font-size: 12px;
}

.analytics-columns {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px;
  margin: 24px 0;
}

.analytics-columns h3,
.analytics-panel > h3 {
  margin-bottom: 10px;
}

.analytics-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.analytics-table th,
.analytics-table td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  white-space: nowrap;
}

.analytics-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.analytics-table th:first-child,
.analytics-table td:first-child {
  text-align: left;
}

.analytics-table tbody tr:last-child td {
  border-bottom: 0;
}

.analytics-table a {
  color: var(--green);
}

@media (max-width: 800px) {
  .analytics-metrics {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

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

@media (max-width: 480px) {
  .analytics-heading {
    display: block;
  }

  .analytics-heading > span {
    display: inline-block;
    margin-bottom: 10px;
  }

  .analytics-metrics {
    grid-template-columns: 1fr;
  }
}

