
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --blue: #00b5e2;
  --red: #ef3340;
  --green: #3f9c35;
  --background: #020617;
  --surface: #0f172a;
  --muted: #94a3b8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--white);
  font-family: 'Inter', sans-serif;
}

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

.site-header {
  min-height: 76px;
  padding: 0 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2, 6, 23, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.site-header nav {
  display: flex;
  gap: 30px;
}

.site-header nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--white);
}

.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 20px;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,181,226,0.2), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(239,51,64,0.16), transparent 35%),
    var(--background);
}

.hero-content {
  max-width: 850px;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1,
.archive-heading h1 {
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
  margin: 20px 0;
}

.hero-subtitle {
  color: #cbd5e1;
  font-size: 1.15rem;
}

.hero-actions {
  margin-top: 35px;
}

.primary-button {
  display: inline-block;
  background: var(--blue);
  color: #001018;
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.2s, background 0.2s;
}

.primary-button:hover {
  background: #54d5f5;
  transform: translateY(-3px);
}

.intro-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 25px;
  text-align: center;
}

.intro-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
}

.intro-section p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--blue);
  font-weight: 700;
}

.archive-main {
  max-width: 1250px;
  margin: 0 auto;
  padding: 70px 25px 100px;
}

.archive-heading {
  margin-bottom: 45px;
}

.archive-heading h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
}

.archive-heading > p:last-child {
  color: var(--muted);
}

.archive-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.archive-controls input,
.archive-controls select {
  min-height: 48px;
  padding: 0 15px;
  color: white;
  background: var(--surface);
  border: 1px solid #334155;
  border-radius: 8px;
  font: inherit;
}

.archive-controls input {
  flex: 1;
  min-width: 230px;
}

.archive-controls select {
  min-width: 150px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.edition-card {
  background: var(--surface);
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.edition-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue);
}

.edition-number {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.edition-card h2 {
  margin: 12px 0;
  font-size: 1.6rem;
  font-weight: 800;
}

.edition-card p {
  color: var(--muted);
}

.card-button {
  margin-top: 15px;
  padding: 10px 15px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 7px;
  color: white;
  cursor: pointer;
  font-weight: 700;
}

.card-button:hover {
  background: var(--blue);
  color: #001018;
}

.archive-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}

.archive-table th,
.archive-table td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid #334155;
}

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

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

.archive-table button {
  color: var(--blue);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.empty-message {
  color: var(--muted);
  padding: 30px 0;
  text-align: center;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

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

.modal-content {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 35px;
  background: var(--surface);
  border: 1px solid #334155;
  border-radius: 15px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  color: white;
  background: transparent;
  border: 0;
  font-size: 2rem;
  cursor: pointer;
}

.site-footer {
  padding: 30px 7%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 650px) {
  .site-header {
    padding: 20px;
    flex-direction: column;
    gap: 18px;
  }

  .site-header nav {
    gap: 22px;
  }

  .archive-main {
    padding: 45px 18px 70px;
  }

  .archive-controls {
    flex-direction: column;
  }

  .archive-controls input,
  .archive-controls select {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .archive-table {
    font-size: 0.8rem;
  }

  .archive-table th,
  .archive-table td {
    padding: 10px 7px;
  }
}

/* Shared Azerbaijani identity */

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.itv-logo-placeholder {
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  color: #101820;
  border-radius: 7px;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.itv-logo-placeholder span {
  font-size: 0.45rem;
  letter-spacing: 0.12em;
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name strong {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.brand-name span {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.13em;
}

/* Latest entry hero */

.latest-entry {
  min-height: 75vh;
  padding: 70px 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 45%, rgba(0,181,226,.2), transparent 35%),
    radial-gradient(circle at 15% 80%, rgba(239,51,64,.13), transparent 30%),
    var(--background);
}

.latest-entry-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.country-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .15em;
}

.flag {
  font-size: 2rem;
}

.latest-entry h1 {
  margin: 20px 0 5px;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
}

.latest-entry h2 {
  color: var(--blue);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
}

.entry-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.entry-details span {
  padding: 9px 13px;
  border: 1px solid #334155;
  border-radius: 30px;
  color: #cbd5e1;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.latest-entry-art {
  position: relative;
  width: min(35vw, 400px);
  aspect-ratio: 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.art-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--red), var(--green));
  opacity: .85;
  filter: blur(1px);
}

.art-label {
  position: relative;
  width: 75%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(2,6,23,.8);
  text-align: center;
}

.art-label strong {
  font-size: 6rem;
  font-weight: 900;
}

.art-label span {
  font-size: .7rem;
  letter-spacing: .2em;
}

/* Archive table */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #334155;
  border-radius: 12px;
}

.archive-table {
  min-width: 950px;
}

.archive-table th {
  white-space: nowrap;
}

.qualified {
  color: #4ade80;
  font-weight: 800;
}

.not-qualified {
  color: #f87171;
  font-weight: 800;
}

@media (max-width: 750px) {
  .latest-entry {
    flex-direction: column;
    align-items: flex-start;
    padding: 65px 25px;
  }

  .latest-entry-art {
    width: min(75vw, 320px);
    align-self: center;
  }

  .brand-name strong {
    font-size: .75rem;
  }
}

/* Azerbaijani header */

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.itv-logo-placeholder {
  width: 58px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  color: #101820;
  border-radius: 7px;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.itv-logo-placeholder span {
  font-size: .45rem;
  letter-spacing: .12em;
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name strong {
  font-size: .95rem;
  letter-spacing: .08em;
}

.brand-name span {
  color: var(--muted);
  font-size: .65rem;
  letter-spacing: .13em;
}

/* Homepage latest artist */

.latest-entry {
  min-height: 75vh;
  padding: 70px 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 55px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 45%, rgba(0,181,226,.2), transparent 35%),
    radial-gradient(circle at 15% 80%, rgba(239,51,64,.13), transparent 30%),
    var(--background);
}

.latest-entry-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.latest-label {
  margin-top: 35px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.country-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .15em;
}

.flag {
  font-size: 2rem;
}

.latest-entry h1 {
  margin: 18px 0 5px;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
}

.latest-entry h2 {
  color: var(--blue);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
}

.latest-description {
  margin-top: 15px;
  color: #cbd5e1;
  line-height: 1.7;
}

.entry-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.entry-details span {
  padding: 9px 13px;
  border: 1px solid #334155;
  border-radius: 30px;
  color: #cbd5e1;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
}

/* Artist picture placeholder */

.artist-image-placeholder {
  position: relative;
  width: min(35vw, 420px);
  min-width: 280px;
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 2px dashed rgba(255,255,255,.4);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(0,181,226,.2), transparent 55%),
    linear-gradient(35deg, rgba(239,51,64,.2), transparent 60%),
    #0f172a;
}

.image-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: #cbd5e1;
}

.placeholder-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #64748b;
  border-radius: 50%;
  font-size: 2rem;
}

.image-placeholder-content strong {
  color: white;
  font-size: 1.1rem;
  letter-spacing: .1em;
}

.image-placeholder-content span:last-child {
  font-size: .65rem;
  letter-spacing: .15em;
}

/* Archive summary cards */

.archive-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 40px 0 65px;
}

.summary-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid #1e293b;
  border-radius: 12px;
}

.summary-number {
  color: var(--blue);
  font-size: 2rem;
  font-weight: 900;
}

.summary-label {
  color: var(--muted);
  font-size: .8rem;
}

.archive-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.archive-section-heading h2,
.archive-information h2 {
  margin-top: 8px;
  font-size: 1.8rem;
  font-weight: 900;
}

.archive-count {
  color: var(--muted);
  font-size: .85rem;
}

.archive-table {
  min-width: 1250px;
}

.archive-table th {
  white-space: nowrap;
  text-align: center;
}

.archive-table td {
  vertical-align: middle;
}

.archive-table td:nth-child(3),
.archive-table td:nth-child(4) {
  font-weight: 600;
}

.archive-table .song-cell {
  color: #cbd5e1;
  font-style: italic;
}

.qualified {
  color: #4ade80;
  font-weight: 800;
}

.not-qualified {
  color: #f87171;
  font-weight: 800;
}

.table-note {
  margin-top: 15px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.6;
}

.archive-information {
  max-width: 800px;
  margin: 85px 0 20px;
  padding-top: 35px;
  border-top: 1px solid #334155;
}

.archive-information p:not(.eyebrow) {
  margin-top: 15px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: white;
}

/* Mobile layout */

@media (max-width: 850px) {
  .latest-entry {
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 25px;
  }

  .artist-image-placeholder {
    width: min(100%, 400px);
    align-self: center;
  }

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

@media (max-width: 650px) {
  .brand-name strong {
    font-size: .75rem;
  }

  .archive-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================
   PARTICIPATION ARCHIVE
========================================= */

.archive-page {
    max-width: 1450px;
    margin: 0 auto;
    padding: 85px 7% 110px;
}

/* Intro */

.archive-intro {
    max-width: 850px;
    margin-bottom: 65px;
}

.archive-intro h1 {
    margin: 18px 0 22px;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
    font-weight: 900;
}

.archive-intro h1 span {
    color: var(--blue);
}

.archive-description {
    max-width: 580px;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Statistics */

.archive-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 100px;
}

.archive-stat {
    min-height: 135px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid #1e293b;
    border-radius: 12px;
}

.stat-number {
    color: var(--blue);
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 900;
}

.stat-label {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Table heading */

.archive-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.archive-section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.archive-count {
    color: var(--muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Search and filters */

.archive-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 190px 170px;
    gap: 12px;
    margin-bottom: 20px;
}

.archive-toolbar input,
.archive-toolbar select {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    background: var(--surface);
    color: white;
    border: 1px solid #334155;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
}

.archive-toolbar input::placeholder {
    color: #64748b;
}

.archive-toolbar input:focus,
.archive-toolbar select:focus {
    border-color: var(--blue);
}

/* Table */

.archive-table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #263449;
    border-radius: 12px;
    background: var(--surface);
}

.archive-record-table {
    width: 100%;
    min-width: 950px;
    border-collapse: collapse;
    text-align: left;
}

.archive-record-table th {
    padding: 18px 16px;
    color: var(--muted);
    background: #111e33;
    border-bottom: 1px solid #334155;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.archive-record-table td {
    padding: 18px 16px;
    border-bottom: 1px solid #1e293b;
    color: #cbd5e1;
    font-size: 0.85rem;
    vertical-align: middle;
}

.archive-record-table tbody tr {
    transition: background 0.2s;
}

.archive-record-table tbody tr:hover {
    background: rgba(0, 181, 226, 0.045);
}

.archive-record-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table columns */

.edition-cell {
    color: var(--blue) !important;
    font-weight: 900;
    white-space: nowrap;
}

.city-cell {
    white-space: nowrap;
}

.entry-cell {
    min-width: 220px;
}

.song-title {
    display: block;
    color: white;
    font-weight: 700;
}

.artist-name {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.78rem;
}

.language-cell {
    color: var(--muted) !important;
    font-size: 0.78rem !important;
}

/* Results */

.result-points {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.75rem;
}

.status-qualified {
    color: #4ade80;
    font-weight: 700;
}

.status-not-qualified {
    color: #f87171;
    font-weight: 700;
}

.automatic-label {
    display: inline-block;
    padding: 6px 9px;
    border: 1px solid rgba(0, 181, 226, 0.3);
    border-radius: 5px;
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.nq-label {
    color: #f87171;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Empty search result */

.archive-empty {
    padding: 35px 15px;
    color: var(--muted);
    text-align: center;
}

.archive-table-note {
    max-width: 800px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

/* Accessibility */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive layout */

@media (max-width: 850px) {
    .archive-page {
        padding: 65px 5% 85px;
    }

    .archive-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 75px;
    }

    .archive-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .search-wrapper {
        grid-column: 1 / -1;
    }
}

@media (max-width: 550px) {
    .archive-page {
        padding: 50px 18px 70px;
    }

    .archive-intro {
        margin-bottom: 45px;
    }

    .archive-intro h1 {
        font-size: clamp(3.2rem, 15vw, 4.5rem);
    }

    .archive-stats {
        gap: 10px;
        margin-bottom: 65px;
    }

    .archive-stat {
        min-height: 115px;
        padding: 17px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .archive-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .archive-toolbar {
        grid-template-columns: 1fr;
    }

    .search-wrapper {
        grid-column: auto;
    }
}

/* Streaming buttons */

.streaming-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.streaming-button {
    min-height: 52px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.streaming-button:hover {
    transform: translateY(-3px);
}

.youtube-button {
    background: #ef3340;
    color: white;
    border: 1px solid #ef3340;
}

.youtube-button:hover {
    background: #d92330;
}

.spotify-button {
    background: #1db954;
    color: #061b0d;
    border: 1px solid #1db954;
}

.spotify-button:hover {
    background: #1ed760;
}

.streaming-icon {
    font-size: 1.1rem;
}

@media (max-width: 550px) {
    .streaming-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .streaming-button {
        width: 100%;
    }
}

/* =========================================
   SONG STREAMING DROPDOWNS
========================================= */

.song-actions {
    position: relative;
    display: inline-block;
}

.song-actions summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
}

.song-actions summary::-webkit-details-marker {
    display: none;
}

.song-actions .song-title {
    display: inline-block;
    color: white;
    font-weight: 700;
    transition: color 0.2s;
}

.song-actions .song-title:hover {
    color: var(--blue);
}

.song-actions .song-title::after {
    content: " ▾";
    color: var(--blue);
    font-size: 0.7rem;
}

.song-actions[open] .song-title::after {
    content: " ▴";
}

.song-action-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 50;
    min-width: 195px;
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #101d35;
    border: 1px solid #334155;
    border-radius: 9px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.song-action-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s;
}

.song-youtube {
    color: #ff5964;
}

.song-youtube:hover {
    background: rgba(239, 51, 64, 0.14);
}

.song-spotify {
    color: #1ed760;
}

.song-spotify:hover {
    background: rgba(29, 185, 84, 0.14);
}

.song-action-menu a span {
    font-size: 1rem;
}

/* =========================================
   IMAGE FILES
========================================= */

.itv-logo-image {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
    background: white;
    border-radius: 7px;
}

.artist-image-placeholder {
    border: 1px solid rgba(255,255,255,.15);
    padding: 0;
}

.artist-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* =========================================
   NATIONAL FINAL PAGE
========================================= */

.national-page {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 7% 100px;
}

.national-hero {
    min-height: 570px;
    padding: 95px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background:
        radial-gradient(circle at 80% 40%, rgba(0,181,226,.18), transparent 35%),
        radial-gradient(circle at 20% 85%, rgba(239,51,64,.12), transparent 35%);
}

.national-hero h1 {
    margin: 20px 0;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: .95;
    letter-spacing: -.07em;
    font-weight: 900;
}

.national-hero h1 span {
    color: var(--blue);
}

.national-description {
    max-width: 620px;
    margin: 10px 0 30px;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
}

.national-overview {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 80px 0;
    border-top: 1px solid #1e293b;
}

.national-overview-text h2 {
    margin: 15px 0 25px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.05em;
}

.national-overview-text p:not(.eyebrow) {
    max-width: 650px;
    color: var(--muted);
    line-height: 1.8;
    margin: 15px 0;
}

.national-highlight {
    min-height: 260px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface);
    border: 1px solid #263449;
    border-radius: 16px;
}

.national-highlight-number {
    color: var(--blue);
    font-size: 6rem;
    line-height: 1;
    font-weight: 900;
}

.national-highlight-label {
    margin-top: 12px;
    font-size: 1.1rem;
    font-weight: 800;
}

.national-highlight-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.6;
}

.national-history {
    padding: 80px 0;
    border-top: 1px solid #1e293b;
}

.national-section-heading {
    max-width: 650px;
    margin-bottom: 35px;
}

.national-section-heading h2,
.national-archive-preview h2 {
    margin: 12px 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -.05em;
}

.national-section-heading > p:last-child,
.national-archive-preview > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.8;
}

.selection-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.selection-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid #263449;
    border-radius: 14px;
    transition: transform .2s, border-color .2s;
}

.selection-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
}

.selection-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 25px;
    border-radius: 10px;
    background: rgba(0,181,226,.12);
    color: var(--blue);
    font-size: 1.5rem;
}

.selection-card-number {
    color: var(--blue);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.selection-card h3 {
    margin: 12px 0;
    font-size: 1.7rem;
    font-weight: 900;
}

.selection-card > p:not(.selection-card-number) {
    min-height: 105px;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.8;
}

.selection-tag {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 12px;
    border: 1px solid rgba(0,181,226,.3);
    border-radius: 6px;
    color: var(--blue);
    font-size: .75rem;
    font-weight: 800;
}

.national-archive-preview {
    padding: 75px 0 20px;
    border-top: 1px solid #1e293b;
}

.national-archive-preview > p:not(.eyebrow) {
    max-width: 650px;
}

.national-coming-soon {
    max-width: 850px;
    margin: 35px 0 20px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--surface);
    border: 1px solid #263449;
    border-radius: 12px;
}

.coming-soon-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(0,181,226,.12);
    color: var(--blue);
    font-size: 1.5rem;
}

.national-coming-soon div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.national-coming-soon div strong {
    font-size: .95rem;
}

.national-coming-soon div span {
    color: var(--muted);
    font-size: .78rem;
}

.coming-soon-label {
    margin-left: auto;
    color: var(--blue);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .1em;
    white-space: nowrap;
}

/* National Final responsive layout */

@media (max-width: 750px) {
    .national-page {
        padding: 0 25px 75px;
    }

    .national-hero {
        min-height: 480px;
        padding: 70px 0;
    }

    .national-overview {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 60px 0;
    }

    .national-highlight {
        min-height: 210px;
    }

    .national-history {
        padding: 60px 0;
    }

    .selection-methods {
        grid-template-columns: 1fr;
    }

    .selection-card > p:not(.selection-card-number) {
        min-height: 0;
    }
}

@media (max-width: 550px) {
    .national-page {
        padding-right: 18px;
        padding-left: 18px;
    }

    .national-hero h1 {
        font-size: clamp(3.8rem, 18vw, 5rem);
    }

    .national-coming-soon {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .coming-soon-label {
        width: 100%;
        margin-left: 66px;
    }
}


/* VOTING PAGE */

.vote-form {
    width: 100%;
    max-width: 650px;
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vote-form > label,
.vote-form h2 {
    font-weight: 800;
}

.vote-form > input {
    width: 100%;
    padding: 16px;
    color: white;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    font: inherit;
}

.vote-form > input:focus {
    outline: 2px solid var(--blue);
    border-color: var(--blue);
}

.vote-hint {
    margin-top: -7px;
    color: var(--muted);
    font-size: .8rem;
}

.vote-form h2 {
    margin-top: 25px;
    font-size: 1.3rem;
}

.vote-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vote-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid #263449;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.vote-option:hover {
    border-color: var(--blue);
}

.vote-option:has(input:checked) {
    border-color: var(--blue);
    background: rgba(0,181,226,.08);
}

.vote-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
}

.vote-option span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vote-option small {
    color: var(--muted);
}

.vote-submit {
    margin-top: 15px;
    cursor: pointer;
}

.vote-message {
    display: none;
    padding: 15px;
    border-radius: 8px;
    background: var(--surface);
    line-height: 1.6;
}

.vote-message.visible {
    display: block;
}
