:root {
  --ink: #e9edf1;
  --muted: #aab3bf;
  --paper: #08090b;
  --line: rgba(233, 237, 241, 0.16);
  --red: #d83232;
  --cyan: #64d7e7;
  --panel: rgba(16, 18, 22, 0.72);
  --max: 1180px;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Archivo Black", "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 18%, rgba(100, 215, 231, 0.1), transparent 30%),
    radial-gradient(circle at 20% 0%, rgba(216, 50, 50, 0.06), transparent 26%),
    linear-gradient(135deg, #07090c 0%, #10141a 48%, #07080a 100%),
    var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 5px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  width: clamp(112px, 10vw, 168px);
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

nav a,
.logout {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover,
.logout:hover {
  color: var(--ink);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

.social-link:hover {
  color: var(--ink);
  transform: translateY(-1px);
  animation: logo-hover-glitch 720ms steps(2, end) infinite;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-facebook svg {
  fill: currentColor;
  stroke: none;
}

main {
  width: min(100%, 1500px);
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(54px, 7vw, 104px) clamp(18px, 5vw, 76px) 72px;
  overflow: hidden;
}

.release-section + .release-section {
  min-height: auto;
  border-top: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(24px, 3vw, 42px);
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(100, 215, 231, 0.92);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.08rem, 1.35vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6.1vw, 5.7rem);
  line-height: 1.03;
}

h1.scroll-glitch-title,
h2.scroll-glitch-title {
  position: relative;
  display: inline-block;
  overflow: visible;
  transition: text-shadow 240ms ease-out;
}

h1.scroll-glitch-title::before,
h1.scroll-glitch-title::after,
h2.scroll-glitch-title::before,
h2.scroll-glitch-title::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  pointer-events: none;
  opacity: 0;
}

body.is-scroll-glitch h1.scroll-glitch-title,
body.is-scroll-glitch h2.scroll-glitch-title {
  text-shadow:
    -7px 0 rgba(216, 50, 50, 0.9),
    7px 0 rgba(100, 215, 231, 0.86);
}

body.is-scroll-glitch h1.scroll-glitch-title::before,
body.is-scroll-glitch h2.scroll-glitch-title::before {
  color: rgba(216, 50, 50, 0.82);
  animation: scroll-title-red 260ms cubic-bezier(0.2, 0, 0.2, 1);
}

body.is-scroll-glitch h1.scroll-glitch-title::after,
body.is-scroll-glitch h2.scroll-glitch-title::after {
  color: rgba(100, 215, 231, 0.82);
  animation: scroll-title-cyan 260ms cubic-bezier(0.2, 0, 0.2, 1);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.7rem);
}

.release-date {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  background: transparent;
}

.release-meta {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

.platform-link.has-label {
  gap: 9px;
  width: auto;
  min-width: 32px;
}

.platform-link-label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.platform-link:hover {
  color: var(--cyan);
  transform: translateY(-1px);
  animation: logo-hover-glitch 720ms steps(2, end) infinite;
}

.platform-link svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 20px;
  border: 1px solid rgba(233, 237, 241, 0.24);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover {
  border-color: rgba(100, 215, 231, 0.62);
  background: rgba(100, 215, 231, 0.1);
}

.release-share-button {
  min-height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 400;
}

.release-share-button:hover {
  border-color: transparent;
  background: transparent;
}

.release-share-button svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.release-share {
  position: relative;
}

.share-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 8;
  display: grid;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(233, 237, 241, 0.18);
  background: rgba(8, 9, 11, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

.share-menu[hidden] {
  display: none;
}

.share-menu button {
  justify-content: flex-start;
  min-height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  text-transform: none;
}

.share-menu button:hover {
  color: var(--ink);
  background: rgba(100, 215, 231, 0.1);
}

.cover-stage {
  position: relative;
  z-index: 1;
  overflow: visible;
  width: min(100%, 700px);
  margin: 0;
  justify-self: end;
}

.cover-stage::before,
.cover-stage::after,
.tv-frame::before,
.tv-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  background-size: cover;
  background-position: center;
}

.cover-stage::before,
.cover-stage::after {
  background-image: var(--cover-url);
}

.cover-stage::before,
.tv-frame::before {
  mix-blend-mode: screen;
}

.cover-stage::after,
.tv-frame::after {
  mix-blend-mode: lighten;
}

body.is-scroll-glitch .cover-stage::before,
body.is-scroll-glitch .tv-frame::before {
  background-color: rgba(216, 50, 50, 0.72);
  background-blend-mode: multiply;
  animation: scroll-rgb-red 340ms cubic-bezier(0.2, 0, 0.2, 1);
}

body.is-scroll-glitch .cover-stage::after,
body.is-scroll-glitch .tv-frame::after {
  background-color: rgba(100, 215, 231, 0.78);
  background-blend-mode: multiply;
  animation: scroll-rgb-cyan 340ms cubic-bezier(0.2, 0, 0.2, 1);
}

.cover-stage img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.bio-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
  padding: clamp(62px, 8vw, 118px) clamp(18px, 5vw, 70px);
  border-top: 1px solid var(--line);
}

.bio-copy p,
.contact-section p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.03rem;
}

.tv-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(233, 237, 241, 0.18);
  background: #050608;
  box-shadow: inset 0 0 44px rgba(0, 0, 0, 0.9), 0 28px 80px rgba(0, 0, 0, 0.38);
}

.tv-frame::before,
.tv-frame::after {
  background-image: var(--portrait-url);
}

.tv-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  filter: grayscale(0.12) contrast(1.12) saturate(0.96);
}

.contact-section {
  grid-template-columns: minmax(0, 760px);
  align-items: start;
  justify-content: start;
}

.admin-login,
.editor-form section {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.contact-email {
  display: inline-flex;
  margin-top: 20px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 700;
  text-decoration: none;
}

.contact-email:hover {
  color: var(--cyan);
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(233, 237, 241, 0.22);
  border-radius: 0;
  padding: 12px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.34);
  font: inherit;
  font-family: var(--font-body);
}

textarea {
  resize: vertical;
}

.title-nav-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.section-head .title-nav-field {
  flex: 1;
  margin-bottom: 0;
}

.title-nav-field .title-input-field {
  margin-bottom: 0;
}

.nav-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 45px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  white-space: nowrap;
  text-transform: none;
}

.nav-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--cyan);
}

.nav-checkbox input[type="hidden"] {
  display: none;
}

.inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -6px 0 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  white-space: nowrap;
  text-transform: none;
}

.inline-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--cyan);
}

.inline-checkbox input[type="hidden"] {
  display: none;
}

.image-field {
  display: grid;
  gap: 10px;
  max-width: 360px;
  margin-bottom: 16px;
}

.image-field-label {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.image-dropzone {
  display: grid;
  gap: 12px;
  min-height: 190px;
  margin: 0;
  padding: 16px;
  border: 1px dashed rgba(233, 237, 241, 0.32);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.image-dropzone:hover,
.image-dropzone.is-dragging {
  border-color: rgba(100, 215, 231, 0.72);
  background: rgba(100, 215, 231, 0.08);
}

.image-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.image-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  border: 1px solid rgba(233, 237, 241, 0.12);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.image-field-cover .image-preview,
.image-field-cover .image-preview img {
  aspect-ratio: 1;
}

.image-field-portrait .image-preview,
.image-field-portrait .image-preview img {
  aspect-ratio: 1 / 1.08;
}

.image-field-logo .image-preview {
  aspect-ratio: 4 / 1;
}

.image-field-logo .image-preview img {
  aspect-ratio: 4 / 1;
  object-fit: contain;
  padding: 18px;
}

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

.image-copy {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: none;
}

.image-delete-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(233, 237, 241, 0.36);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(8, 9, 11, 0.78);
  backdrop-filter: blur(12px);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  text-transform: none;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.image-delete-button:hover {
  border-color: rgba(216, 50, 50, 0.82);
  background: rgba(216, 50, 50, 0.82);
  transform: scale(1.04);
}

.notice,
.form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(100, 215, 231, 0.55);
  color: var(--ink);
  background: rgba(100, 215, 231, 0.08);
}

.form-error {
  border-color: rgba(216, 50, 50, 0.7);
  background: rgba(216, 50, 50, 0.12);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 70px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.admin-wrap,
.editor-wrap {
  width: min(920px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0;
}

.admin-login {
  width: min(430px, 100%);
  margin: 10vh auto 0;
}

.admin-brand {
  display: inline-flex;
  margin-bottom: 24px;
}

.admin-login h1 {
  margin-bottom: 20px;
  font-size: 2.2rem;
}

.admin-hint {
  color: var(--muted);
  font-size: 0.86rem;
}

.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.editor-form {
  display: grid;
  gap: 18px;
}

.editor-form h1,
.editor-form h2 {
  margin-bottom: 18px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.section-head,
.release-card-head,
.release-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head,
.release-card-head {
  justify-content: space-between;
}

.release-list {
  display: grid;
  gap: 18px;
}

.release-editor-card {
  padding: 18px;
  border: 1px solid rgba(233, 237, 241, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.release-editor-card h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1rem;
}

.release-actions button,
.icon-text-button {
  min-height: 34px;
  margin: 0;
  padding: 0 12px;
  font-size: 0.82rem;
}

.release-actions button {
  width: 34px;
  padding: 0;
}

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

code {
  color: var(--cyan);
}

@keyframes scroll-rgb-red {
  0% { opacity: 0; transform: translate(0, 0); }
  18% { opacity: 0.72; transform: translate(-16px, 4px); }
  42% { opacity: 0.24; transform: translate(-5px, -2px); }
  70% { opacity: 0.62; transform: translate(-22px, 1px); }
  86% { opacity: 0.22; transform: translate(-8px, 1px); }
  100% { opacity: 0; transform: translate(0, 0); }
}

@keyframes scroll-rgb-cyan {
  0% { opacity: 0; transform: translate(0, 0); }
  16% { opacity: 0.68; transform: translate(15px, -4px); }
  48% { opacity: 0.22; transform: translate(4px, 2px); }
  74% { opacity: 0.66; transform: translate(21px, -1px); }
  88% { opacity: 0.2; transform: translate(7px, -1px); }
  100% { opacity: 0; transform: translate(0, 0); }
}

@keyframes scroll-title-red {
  0% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  14% { opacity: 0.88; transform: translate(-13px, 2px); clip-path: inset(5% 0 72% 0); }
  36% { opacity: 0.42; transform: translate(-6px, -1px); clip-path: inset(44% 0 38% 0); }
  68% { opacity: 0.78; transform: translate(-18px, 1px); clip-path: inset(70% 0 8% 0); }
  86% { opacity: 0.22; transform: translate(-7px, 0); clip-path: inset(72% 0 10% 0); }
  100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
}

@keyframes scroll-title-cyan {
  0% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  18% { opacity: 0.82; transform: translate(12px, -2px); clip-path: inset(18% 0 58% 0); }
  46% { opacity: 0.36; transform: translate(5px, 1px); clip-path: inset(50% 0 28% 0); }
  76% { opacity: 0.8; transform: translate(17px, -1px); clip-path: inset(82% 0 2% 0); }
  90% { opacity: 0.18; transform: translate(6px, 0); clip-path: inset(80% 0 4% 0); }
  100% { opacity: 0; transform: translate(0, 0); }
}

@keyframes logo-hover-glitch {
  0% {
    filter:
      drop-shadow(-2px 0 rgba(216, 50, 50, 0.72))
      drop-shadow(2px 0 rgba(100, 215, 231, 0.68));
    transform: translate(0, -1px);
  }
  22% {
    filter:
      drop-shadow(2px -1px rgba(216, 50, 50, 0.64))
      drop-shadow(-2px 1px rgba(100, 215, 231, 0.62));
    transform: translate(1px, -2px);
  }
  46% {
    filter:
      drop-shadow(-1px 1px rgba(216, 50, 50, 0.5))
      drop-shadow(1px -1px rgba(100, 215, 231, 0.56));
    transform: translate(-1px, -1px);
  }
  70% {
    filter:
      drop-shadow(2px 0 rgba(216, 50, 50, 0.58))
      drop-shadow(-2px 0 rgba(100, 215, 231, 0.6));
    transform: translate(1px, 0);
  }
  100% {
    filter:
      drop-shadow(-2px 0 rgba(216, 50, 50, 0.72))
      drop-shadow(2px 0 rgba(100, 215, 231, 0.68));
    transform: translate(0, -1px);
  }
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero,
  .bio-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .cover-stage {
    justify-self: start;
  }

  .bio-section {
    padding-top: 30px;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 3rem;
  }

  nav {
    gap: 10px 14px;
  }

  .admin-login,
  .editor-form section {
    padding: 18px;
  }

  .section-head,
  .release-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .platform-fields {
    grid-template-columns: 1fr;
  }
}
