:root {
  --ink: #17202a;
  --muted: #667085;
  --accent: #0d6efd;
  --paper: #f8fafc;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
}

body {
  color: var(--ink);
  background: #f7f9fc;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.site-nav {
  height: var(--header-height);
  min-height: var(--header-height);
  background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-nav > .container {
  height: 100%;
  display: flex;
  align-items: center;
}

.site-nav .navbar-brand {
  margin-right: 28px;
  text-decoration: none;
}

.site-nav .navbar-collapse {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.navbar .container,
.content-section > .container,
.hero-inner {
  max-width: 1120px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0;
  color: rgba(29,29,31,.92);
}

.brand-lockup img {
  width: auto;
  height: 28px;
  max-width: 108px;
  object-fit: contain;
  object-position: left center;
}

.brand-lockup span {
  font-weight: 600;
  font-size: 1rem;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: rgba(29,29,31,.76);
  font-size: .84rem;
  font-weight: 500;
  padding-inline: 12px;
  text-decoration: none;
}

.navbar .nav-link:hover {
  color: rgba(29,29,31,.96);
}

.account-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-toggler {
  display: none;
}

.account-name {
  color: rgba(29,29,31,.52);
  font-size: .82rem;
}

.admin-link,
.nav-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 560;
}

.admin-link {
  color: rgba(29,29,31,.62);
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.035);
}

.nav-auth-link {
  color: rgba(29,29,31,.68);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 500;
}

.nav-auth-button {
  color: rgba(29,29,31,.82);
  background: rgba(15,23,42,.045);
  border: 1px solid rgba(0,0,0,.06);
}

.logout-form button {
  border: 0;
  background: transparent;
  color: rgba(29,29,31,.48);
  font-size: .84rem;
  font-weight: 500;
  padding: 4px 0;
}

.logout-form button:hover,
.nav-auth-link:hover {
  color: rgba(29,29,31,.92);
}

.hero-band {
  min-height: calc(100svh - var(--header-height));
  color: #1d1d1f;
  background:
    radial-gradient(circle at 20% 18%, rgba(120,170,255,.1), transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(255,214,153,.1), transparent 28%),
    linear-gradient(135deg, #eef5ff 0%, #f8fbff 35%, #ffffff 62%, #fffaf0 100%);
  position: relative;
  overflow: hidden;
}

.hero-band::after {
  content: none;
}

.hero-inner {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 24px 126px;
  position: relative;
  z-index: 1;
}

.hero-copy {
  width: min(100%, 920px);
  padding: 0;
  animation: heroEntrance .68s ease-out both;
}

.hero-centered {
  text-align: center;
  margin-top: -36px;
}

.logo-plate {
  width: 280px;
  margin: 0 auto 26px;
  padding: 22px 30px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.92);
  transition: transform .28s ease, box-shadow .28s ease;
}

.logo-plate:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(15,23,42,.1), inset 0 1px 0 rgba(255,255,255,.92);
}

.logo-plate img {
  display: block;
  width: 88%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: rgba(29,29,31,.68);
  font-size: .8125rem;
  font-weight: 500;
}

.hero-copy h1 {
  font-size: clamp(3.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 820;
  letter-spacing: -.04em;
  color: #111827;
  margin: 0;
}

.hero-copy h1 span {
  display: inline;
  white-space: nowrap;
}

.hero-copy .lead {
  max-width: 620px;
  color: rgba(17,24,39,.55);
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 18px auto 0;
}

.lead-mobile {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 600;
  transition: transform .16s ease, filter .16s ease, background .16s ease, border-color .16s ease;
}

.hero-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.hero-button.primary {
  color: #fff;
  background: #0a7cff;
  box-shadow: none;
}

.hero-button.primary:hover {
  background: #0071e3;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #06c;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 500;
  transition: color .16s ease, filter .16s ease;
}

.hero-link:hover {
  color: #0a7cff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-link span {
  font-size: 1.28em;
  line-height: 1;
  margin-left: 4px;
}

.mobile-quick-links {
  display: none;
}

.eyebrow {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: rgba(255,255,255,.72);
  margin-bottom: .75rem;
}

.content-section {
  padding: 72px 0;
}

.home-feature-section {
  background: transparent;
  padding: 0 20px 72px;
  margin-top: -96px;
  position: relative;
  z-index: 2;
}

.section-soft {
  background: var(--paper);
}

.section-header {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-header h1,
.section-header h2,
.form-shell h1,
.narrow h1 {
  font-weight: 760;
  letter-spacing: 0;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: transparent;
  border: 0;
}

.feature-card {
  min-height: 0;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(15,23,42,.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .16s ease, box-shadow .16s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(15,23,42,.08);
}

.feature-card h2 {
  margin: 0;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 720;
}

.feature-card p {
  margin: 10px 0 20px;
  color: rgba(17,24,39,.58);
  font-size: .9rem;
  line-height: 1.55;
}

.feature-card a {
  color: #06c;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 560;
}

.feature-card a:hover {
  color: #0a7cff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-info {
  max-width: 960px;
  margin: 0 auto;
}

.broadcast-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
  padding: 8px 16px;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  font-size: .875rem;
  color: rgba(17,24,39,.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-transition {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 34px;
}

.contact-note {
  margin: 0 auto;
  text-align: center;
  font-size: .875rem;
  color: rgba(17,24,39,.45);
}

.contact-note strong {
  font-weight: 600;
  color: rgba(17,24,39,.58);
}

.issue-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr) auto;
  gap: 28px;
  align-items: start;
  border-top: 1px solid #d8dee8;
  padding-top: 28px;
}

.song-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.song-list li {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid #e7ebf0;
}

.song-list small,
.song-list em {
  color: var(--muted);
  font-style: normal;
}

.song-list.detail li {
  grid-template-columns: 1fr auto;
}

.song-list.detail em {
  grid-column: 1 / -1;
}

.form-section {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: start center;
  padding: 56px 16px;
  background: var(--paper);
}

.form-section.wide .form-shell {
  max-width: 760px;
}

.form-shell {
  width: min(100%, 520px);
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: clamp(22px, 5vw, 36px);
}

.form-control,
.form-select {
  min-height: 46px;
}

textarea.form-control {
  min-height: 180px;
}

.upload-progress {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.upload-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .88rem;
}

.upload-progress-top strong {
  color: var(--ink);
  font-weight: 700;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: #d8dee8;
  border: 1px solid #d8dee8;
}

.issue-link {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 24px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}

.issue-link:hover {
  background: #f6f9ff;
  transform: translateY(-2px);
}

.issue-link span,
.issue-link small {
  color: var(--muted);
}

.narrow {
  max-width: 820px;
}

.rule-list {
  display: grid;
  gap: 12px;
  padding-left: 1.2rem;
}

.featured-list {
  display: grid;
  gap: 16px;
}

.featured-list article {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.submission-history {
  display: grid;
  gap: 14px;
}

.submission-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 20px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  background: #fff;
}

.submission-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: .86rem;
}

.submission-main h2 {
  margin: 8px 0 0;
  font-size: 1.08rem;
  line-height: 1.45;
}

.reject-reason {
  margin: 10px 0 0;
  color: #b42318;
}

.status-badge {
  min-width: 76px;
  padding: 6px 10px;
  border-radius: 999px;
  text-align: center;
  font-size: .84rem;
  font-weight: 800;
}

.status-pending {
  color: #8a4b00;
  background: #fff4d8;
}

.status-approved {
  color: #067647;
  background: #dcfae6;
}

.status-rejected {
  color: #b42318;
  background: #fee4e2;
}

.status-deleted {
  color: #475467;
  background: #eef2f6;
}

.empty-state {
  padding: 32px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(0,0,0,.05);
  background: #f7f9fc;
  color: rgba(17,24,39,.45);
  font-size: .8125rem;
  text-align: center;
}


@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  :root {
    --header-height: 48px;
  }

  .site-nav {
    height: var(--header-height);
    min-height: var(--header-height);
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid rgba(0,0,0,.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .brand-lockup img {
    height: 23px;
    max-width: 86px;
  }

  .brand-lockup span {
    font-size: .94rem;
  }

  .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.06);
    background: rgba(0,0,0,.04);
    box-shadow: none;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(0,0,0,.08);
  }

  .navbar-toggler-icon {
    width: 18px;
    height: 18px;
    opacity: .72;
  }

  .navbar-collapse {
    position: absolute;
    top: calc(var(--header-height) + 8px);
    left: 16px;
    right: 16px;
    padding: 12px;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .navbar-collapse:not(.show) {
    display: none;
  }

  .navbar .nav-link {
    padding: 14px 18px;
    font-size: .96rem;
    color: rgba(29,29,31,.82);
    border-bottom: 1px solid rgba(0,0,0,.05);
  }

  .navbar .nav-item:last-child .nav-link {
    border-bottom: 0;
  }

  .account-actions {
    align-items: flex-start;
    padding: 8px 10px 2px;
    flex-wrap: wrap;
  }

  .hero-band {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 42px 20px 112px;
  }

  .hero-band::after {
    width: 98vw;
    height: 98vw;
    inset: auto -44vw -14vw auto;
    opacity: .03;
  }

  .content-section {
    padding: 48px 0;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-centered {
    margin-top: 0;
  }

  .logo-plate {
    width: min(230px, 72vw);
    padding: 18px 22px;
    border-radius: 22px;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.92);
  }

  .logo-plate img {
    width: 88%;
  }

  .hero-pill {
    min-height: 28px;
    padding: 5px 10px;
    margin-bottom: 18px;
    font-size: .75rem;
    color: rgba(29,29,31,.62);
  }

  .hero-copy h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 360px;
    margin: 0 auto;
    font-size: clamp(2.375rem, 10vw, 2.75rem);
    line-height: 1.08;
    font-weight: 780;
    letter-spacing: -.05em;
  }

  .hero-copy .lead {
    max-width: 330px;
    font-size: 1rem;
    line-height: 1.55;
    margin-top: 16px;
  }

  .lead-desktop {
    display: none;
  }

  .lead-mobile {
    display: block;
  }

  .hero-actions {
    margin-top: 30px;
    gap: 20px;
  }

  .mobile-quick-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
  }

  .hero-transition {
    margin-top: 26px;
  }

  .contact-note {
    max-width: 330px;
    font-size: .8125rem;
    line-height: 1.5;
  }

  .mobile-quick-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: rgba(17,24,39,.68);
    text-decoration: none;
    font-size: .86rem;
    font-weight: 560;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .hero-button,
  .hero-link {
    min-height: 44px;
    font-size: .94rem;
  }

  .hero-info {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  .home-feature-section {
    margin-top: -78px;
    padding-bottom: 56px;
  }

  .broadcast-pill {
    max-width: 350px;
    margin-bottom: 14px;
    white-space: normal;
    font-size: .78rem;
    line-height: 1.45;
  }

  .feature-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 20px;
    border-radius: 22px;
  }

  .feature-card p {
    margin-bottom: 14px;
  }

  .issue-preview {
    grid-template-columns: 1fr;
  }

  .song-list.detail li {
    grid-template-columns: 1fr;
  }

  .submission-row {
    grid-template-columns: 1fr;
  }

  .status-badge {
    width: fit-content;
  }
}
