:root {
  --bg: #f8fbff;
  --white: #ffffff;
  --text: #17213b;
  --muted: #65708a;

  --pink: #ff3da4;
  --purple: #7857ff;
  --cyan: #00cde8;
  --blue: #3b82f6;
  --yellow: #ffd84d;
  --green: #2fd39a;

  --border: #e6eaf2;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, "Noto Sans Hebrew", sans-serif;
  color: var(--text);

  background:
    radial-gradient(circle at 5% 8%, rgba(255,61,164,.13), transparent 22%),
    radial-gradient(circle at 95% 4%, rgba(0,205,232,.14), transparent 24%),
    linear-gradient(180deg,#ffffff 0%,#f7fbff 55%,#fff8fd 100%);
}

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

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

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);

  border-bottom: 1px solid #edf0f6;

  box-shadow:
    0 5px 25px rgba(45,60,100,.06);
}

.header-inner {
  max-width: var(--max);
  min-height: 76px;
  margin: auto;
  padding: 0 22px;

  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -1px;
  white-space: nowrap;
  color: #202943;
}

.logo span {
  background: linear-gradient(
    90deg,
    var(--purple),
    var(--pink),
    #ff7849
  );

  -webkit-background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  gap: 25px;
  flex: 1;
}

.main-nav a {
  font-weight: 750;
  color: #46516c;
  transition: .18s;
}

.main-nav a:hover {
  color: var(--pink);
}

.lang-button {
  border: 0;

  background: linear-gradient(
    135deg,
    var(--purple),
    var(--pink)
  );

  color: white;

  padding: 10px 17px;
  border-radius: 999px;

  font-weight: 800;
  cursor: pointer;

  box-shadow:
    0 8px 20px rgba(120,87,255,.20);
}

/* LAYOUT */

.container {
  max-width: var(--max);
  margin: auto;
  padding: 38px 22px 85px;
}

/* HERO */

.hero {
  position: relative;

  min-height: 480px;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  overflow: hidden;
}

.hero::before {
  content: "";

  position: absolute;

  width: 480px;
  height: 480px;

  left: -240px;
  top: -120px;

  border-radius: 50%;

  background: rgba(255,61,164,.10);

  filter: blur(2px);
}

.hero::after {
  content: "";

  position: absolute;

  width: 420px;
  height: 420px;

  right: -180px;
  bottom: -170px;

  border-radius: 50%;

  background: rgba(0,205,232,.12);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.hero-badge {
  display: inline-block;

  color: #7147e8;

  background:
    linear-gradient(
      90deg,
      #f3edff,
      #fff0f8
    );

  border: 1px solid #e5d9ff;

  padding: 9px 17px;
  border-radius: 999px;

  font-weight: 800;
}

.hero h1 {
  margin: 25px 0 22px;

  font-size: clamp(58px,9vw,100px);
  line-height: .93;

  letter-spacing: -5px;

  color: #18213a;
}

.hero h1 span {
  background:
    linear-gradient(
      90deg,
      #5f63ff 0%,
      #c044f4 40%,
      #ff3da4 72%,
      #ff754b 100%
    );

  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 750px;
  margin: auto;

  font-size: 21px;
  line-height: 1.7;

  color: #5c6780;
}

/* GRIDS */

.quick-grid,
.card-grid,
.stats-grid {
  display: grid;
  gap: 20px;
}

.quick-grid {
  grid-template-columns: repeat(4,1fr);
}

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

.stats-grid {
  grid-template-columns: repeat(4,1fr);
}

/* CARDS */

.quick-card,
.card,
.stat-card {
  position: relative;

  background: white;

  border: 1px solid var(--border);

  border-radius: 24px;

  padding: 26px;

  box-shadow:
    0 12px 35px rgba(45,60,100,.08);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.quick-card:hover,
.card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 20px 45px rgba(45,60,100,.14);
}

/* HOME CATEGORY CARDS */

.quick-card:nth-child(1) {
  background:
    linear-gradient(145deg,#fff 35%,#fff0f8);
  border-top: 5px solid var(--pink);
}

.quick-card:nth-child(2) {
  background:
    linear-gradient(145deg,#fff 35%,#ecfbff);
  border-top: 5px solid var(--cyan);
}

.quick-card:nth-child(3) {
  background:
    linear-gradient(145deg,#fff 35%,#fff9df);
  border-top: 5px solid var(--yellow);
}

.quick-card:nth-child(4) {
  background:
    linear-gradient(145deg,#fff 35%,#f2efff);
  border-top: 5px solid var(--purple);
}

.quick-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.quick-card h3,
.card h3 {
  margin: 0 0 9px;

  font-size: 22px;
  color: #1d2741;
}

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

/* PAGE TITLES */

.page-title {
  margin: 15px 0 32px;
}

.page-title h1 {
  margin: 0 0 10px;

  font-size: clamp(43px,6vw,68px);

  color: #19233d;

  letter-spacing: -2px;
}

/* SEARCH */

.search-box {
  width: 100%;

  padding: 16px 19px;

  margin-bottom: 27px;

  border-radius: 16px;

  border: 1px solid #dfe5ef;

  background: white;

  color: var(--text);

  outline: none;

  box-shadow:
    0 8px 25px rgba(45,60,100,.05);
}

.search-box:focus {
  border-color: #8b6cff;

  box-shadow:
    0 0 0 4px rgba(120,87,255,.10);
}

.search-box::placeholder {
  color: #929bb0;
}

/* LINKS */

.entity-link {
  color: #6453e8;
  font-weight: 750;
}

.entity-link:hover {
  color: var(--pink);
}

/* STATISTICS */

.stat-card {
  overflow: hidden;
}

.stat-card:nth-child(4n+1) {
  border-bottom: 4px solid var(--pink);
}

.stat-card:nth-child(4n+2) {
  border-bottom: 4px solid var(--cyan);
}

.stat-card:nth-child(4n+3) {
  border-bottom: 4px solid var(--purple);
}

.stat-card:nth-child(4n+4) {
  border-bottom: 4px solid var(--yellow);
}

.big-number {
  font-size: 40px;
  font-weight: 950;

  background:
    linear-gradient(
      90deg,
      var(--purple),
      var(--pink)
    );

  -webkit-background-clip: text;
  color: transparent;
}

/* DETAIL HERO */

.detail-hero {
  padding: 40px;

  margin-bottom: 30px;

  border-radius: 30px;

  background:
    radial-gradient(circle at 100% 0%,rgba(0,205,232,.15),transparent 30%),
    radial-gradient(circle at 0% 100%,rgba(255,61,164,.13),transparent 32%),
    linear-gradient(135deg,#ffffff,#faf8ff);

  border: 1px solid #e6e5f2;

  box-shadow:
    0 15px 40px rgba(60,70,110,.08);
}

.detail-hero h1 {
  margin: 0 0 13px;

  font-size: clamp(44px,6vw,72px);

  color: #17213b;
}

/* SECTIONS */

.section {
  margin-top: 45px;
}

.section-title {
  margin-bottom: 20px;

  font-size: 29px;

  color: #1b2540;
}

/* TABLES */

.table-wrap {
  overflow-x: auto;

  background: white;

  border: 1px solid #e5e9f1;

  border-radius: 20px;

  box-shadow:
    0 12px 35px rgba(45,60,100,.07);
}

table {
  width: 100%;

  border-collapse: collapse;

  background: white;
}

th,
td {
  padding: 16px 17px;

  border-bottom: 1px solid #edf0f5;

  text-align: start;
}

th {
  color: #4d5872;

  font-size: 13px;
  font-weight: 850;

  text-transform: uppercase;

  background:
    linear-gradient(
      90deg,
      #faf7ff,
      #fff7fb,
      #f5fcff
    );
}

tbody tr {
  transition: background .15s;
}

tbody tr:hover {
  background: #fafbff;
}

/* OTHER */

.empty {
  text-align: center;

  padding: 55px 20px;

  color: #788298;
}

.youtube-frame {
  width: 100%;

  aspect-ratio: 16/9;

  border: 0;
  border-radius: 24px;

  box-shadow:
    0 18px 45px rgba(40,50,90,.13);
}

.lyrics {
  white-space: pre-wrap;

  line-height: 2;

  background: white;

  border: 1px solid #e6eaf1;

  border-radius: 22px;

  padding: 27px;

  color: #303a53;

  box-shadow:
    0 10px 30px rgba(45,60,100,.06);
}

.site-footer {
  border-top: 1px solid #e9ecf3;

  color: #778198;

  text-align: center;

  padding: 32px 20px;

  background: white;
}

/* MOBILE */

@media(max-width:900px) {

  .quick-grid,
  .stats-grid {
    grid-template-columns: repeat(2,1fr);
  }

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

  .main-nav {
    display: none;
  }
}

@media(max-width:600px) {

  .quick-grid,
  .card-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 400px;
  }

  .hero h1 {
    letter-spacing: -3px;
  }

  .detail-hero {
    padding: 27px;
  }
}

/* =======================================================
   ESC LiBi ENTITY VISUALS
   ======================================================= */

.country-hero-grid,
.artist-hero-grid,
.year-hero-grid {
  display: flex;
  align-items: center;
  gap: 34px;
}

.country-visual {
  min-width: 160px;
  display: flex;
  justify-content: center;
}

.country-heart-large {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(50,60,100,.15));
}

.country-flag-large {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e2e7f0;
  box-shadow: 0 12px 30px rgba(50,60,100,.12);
}

.country-heart-small {
  width: 34px;
  height: 34px;
  object-fit: contain;
  vertical-align: middle;
}

.country-flag-small {
  width: 38px;
  height: 25px;
  object-fit: cover;
  border-radius: 5px;
  vertical-align: middle;
}

.country-subname {
  margin-top: -5px;
  margin-bottom: 12px;
  font-size: 20px;
  color: #7b8497;
}

.country-meta {
  color: #5d6780;
  font-size: 17px;
  font-weight: 650;
}

.artist-profile-image {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  border: 7px solid white;
  box-shadow:
    0 15px 38px rgba(45,60,100,.16);
}

.artist-profile-placeholder {
  width: 170px;
  height: 170px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 65px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      #f3edff,
      #fff0f8,
      #eefcff
    );
}

.year-logo {
  max-width: 220px;
  max-height: 130px;
  object-fit: contain;
}

@media(max-width:700px) {

  .country-hero-grid,
  .artist-hero-grid,
  .year-hero-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .country-heart-large {
    width: 120px;
    height: 120px;
  }

  .artist-profile-image,
  .artist-profile-placeholder {
    width: 135px;
    height: 135px;
  }
}

/* =====================================================
   COMPETITIONS
   ===================================================== */

.competition-tabs {
  display: flex;
  gap: 12px;
  margin: 0 0 28px;
  flex-wrap: wrap;
}

.competition-tab {
  border: 1px solid #dfe4ee;
  background: white;
  color: #566078;

  border-radius: 999px;

  padding: 11px 21px;

  font-weight: 800;
  font-size: 15px;

  cursor: pointer;

  transition: .2s;
}

.competition-tab:hover {
  border-color: #bdafff;
  color: #7459ec;
}

.competition-tab.active {
  color: white;
  border-color: transparent;

  background:
    linear-gradient(
      135deg,
      #7857ff,
      #ff3da4
    );

  box-shadow:
    0 8px 22px rgba(120,87,255,.20);
}

.artist-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.competition-badge {
  display: inline-flex;
  align-items: center;

  padding: 8px 14px;

  border-radius: 999px;

  font-size: 14px;
  font-weight: 800;
}

.esc-badge {
  color: #6646da;
  background: #f0ebff;
  border: 1px solid #e0d7ff;
}

.junior-badge {
  color: #d92b88;
  background: #ffedf7;
  border: 1px solid #ffd5ea;
}

.artist-competition-section + .artist-competition-section {
  margin-top: 55px;
}



/* ==========================================================
   YEAR RESULTS / RANKING
   ========================================================== */

.year-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.year-summary span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.80);
  border: 1px solid #e9e7f4;
  font-weight: 700;
  font-size: 13px;
}

.year-ranking-table td,
.year-ranking-table th {
  vertical-align: middle;
}

.finalist-row td:first-child strong {
  font-size: 17px;
}

.non-qualifier-row {
  background: #fafafd;
}

.non-qualifier-row td {
  opacity: .88;
}

.entry-card-grid {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fill,
      minmax(190px,1fr)
    );
  gap: 13px;
}

.entry-mini-card {
  padding: 15px;
  background: white;
  border: 1px solid #e7e8ef;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.entry-mini-card span {
  color: #72798c;
}

.tba-public {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f0f1f5;
  color: #767d8d;
  font-size: 11px;
  font-weight: 800;
}


/* ==========================================================
   ADMIN RESULT EDITOR
   ========================================================== */

.song-result-editor {
  margin: 28px 0;
  padding: 20px;
  background: #faf9ff;
  border: 1px solid #e5e0ff;
  border-radius: 16px;
}

.song-result-editor h3 {
  margin-top: 0;
}

.result-field-hidden {
  display: none !important;
}



/* ==========================================================
   YEAR TABLE VIEW SWITCHER
   ========================================================== */

.results-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.results-section-header .section-title {
  margin-bottom: 0;
}

.year-table-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 5px;
  background: #f4f4f8;
  border-radius: 14px;
}

.year-table-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 9px 15px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: #656b7a;
  transition:
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease;
}

.year-table-tab:hover {
  background: rgba(255,255,255,.75);
}

.year-table-tab.active {
  background: white;
  color: #212433;
  box-shadow:
    0 2px 10px
    rgba(34,38,55,.09);
}


/* Main final result */

.final-result-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  white-space: nowrap;
}

.final-result-main strong {
  font-size: 17px;
  line-height: 1;
}

.final-result-main span {
  font-size: 14px;
  font-weight: 700;
}


/* Smaller semifinal result */

.semi-result-small {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 11px;
  color: #7b8190;
}

.semi-result-small strong {
  font-size: 12px;
  color: #5d6371;
}

.semi-result-small .semi-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  padding: 2px 5px;
  border-radius: 6px;
  background: #f1f1f6;
  font-size: 9px;
  font-weight: 800;
}

.result-empty {
  color: #b2b5be;
}

.qualification-status {
  font-size: 12px;
  color: #737988;
  white-space: nowrap;
}


/* Event-specific tables */

.event-ranking-table .event-place-cell strong {
  font-size: 20px;
}

.event-ranking-table .event-points-cell strong {
  font-size: 17px;
}

.country-symbol-cell {
  width: 42px;
}

.song-name-cell {
  font-weight: 700;
}

.overall-place-cell strong {
  font-size: 18px;
}


@media (max-width: 700px) {

  .results-section-header {
    align-items: stretch;
  }

  .year-table-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .year-table-tab {
    white-space: nowrap;
  }

}


/* ==========================================================
   PUBLIC COMPETITION SWITCH
   ========================================================== */

.public-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.public-page-heading h1 {
  margin-bottom: 5px;
}

.competition-switch {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: #f3f3f8;
}

.competition-switch-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  color: #686e7c;
  white-space: nowrap;
}

.competition-switch-button.active {
  background: #ffffff;
  color: #212331;
  box-shadow:
    0 3px 12px
    rgba(37,41,60,.09);
}

.public-list-tools {
  margin-bottom: 22px;
}

.public-search-input {
  width: min(460px,100%);
  padding: 13px 16px;
  border: 1px solid #e0e2e9;
  background: #fff;
  border-radius: 13px;
  font: inherit;
}

.public-search-input:focus {
  outline: none;
  border-color: #7659ff;
  box-shadow:
    0 0 0 3px
    rgba(118,89,255,.10);
}


/* ==========================================================
   YEARS LIST
   ========================================================== */

.years-public-grid {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fill,
      minmax(230px,1fr)
    );
  gap: 18px;
}

.year-public-card {
  overflow: hidden;
  min-height: 230px;
  border: 1px solid #e9e9f0;
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.year-public-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 34px
    rgba(38,42,64,.10);
}

.year-card-logo-wrap,
.year-card-logo-placeholder {
  height: 145px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      135deg,
      #f9f7ff,
      #eff9ff
    );
}

.year-card-logo {
  max-width: 78%;
  max-height: 105px;
  object-fit: contain;
}

.year-card-logo-placeholder {
  font-size: 40px;
  font-weight: 900;
}

.year-card-content {
  padding: 16px;
}

.year-card-content h2 {
  margin: 4px 0;
  font-size: 25px;
}

.competition-mini-label {
  font-size: 11px;
  font-weight: 800;
  color: #7c668f;
}


/* ==========================================================
   SONGS LIST
   ========================================================== */

.songs-public-grid {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fill,
      minmax(330px,1fr)
    );
  gap: 16px;
}

.song-public-card {
  min-height: 130px;
  display: flex;
  overflow: hidden;
  border: 1px solid #e7e8ef;
  border-radius: 17px;
  background: white;
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.song-public-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px
    rgba(36,40,60,.09);
}

.song-image-side {
  width: 120px;
  min-width: 120px;
  min-height: 130px;
  background: #f2f2f7;
  text-decoration: none;
}

.song-first-artist-image,
.song-first-artist-placeholder {
  width: 100%;
  height: 100%;
  min-height: 130px;
}

.song-first-artist-image {
  display: block;
  object-fit: cover;
}

.song-first-artist-placeholder {
  display: grid;
  place-items: center;
  font-size: 38px;
}

.song-card-main {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
}

.song-card-country-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.song-country-heart,
.song-country-placeholder {
  width: 31px;
  height: 24px;
  flex: 0 0 31px;
}

.song-country-heart {
  object-fit: contain;
}

.song-country-placeholder {
  display: grid;
  place-items: center;
  font-size: 18px;
}

.song-country-name {
  color: inherit;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.song-year-link {
  margin-inline-start: auto;
  padding: 4px 8px;
  background: #f4f4f8;
  border-radius: 8px;
  color: #6c7281;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.song-card-title {
  margin: 12px 0 5px;
  line-height: 1.15;
  font-size: 21px;
}

.song-card-title a {
  color: inherit;
  text-decoration: none;
}

.song-card-artist {
  color: #686f7f;
  font-size: 14px;
}

.song-card-artist a {
  color: inherit;
  text-decoration: none;
}


/* ==========================================================
   ARTISTS LIST
   ========================================================== */

.artists-public-grid {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fill,
      minmax(220px,1fr)
    );
  gap: 18px;
}

.artist-public-card {
  overflow: hidden;
  border: 1px solid #e7e8ee;
  border-radius: 18px;
  background: white;
  text-decoration: none;
  color: inherit;
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.artist-public-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 30px
    rgba(34,38,55,.10);
}

.artist-public-image,
.artist-public-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.artist-public-image {
  display: block;
  object-fit: cover;
}

.artist-public-image-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      135deg,
      #f4f1ff,
      #edf8ff
    );
  font-size: 46px;
}

.artist-public-content {
  padding: 15px;
}

.artist-public-content h2 {
  margin: 0 0 5px;
  font-size: 19px;
}


@media (max-width: 700px) {

  .competition-switch {
    width: 100%;
    overflow-x: auto;
  }

  .competition-switch-button {
    flex: 1;
  }

  .songs-public-grid {
    grid-template-columns: 1fr;
  }

  .song-image-side {
    width: 100px;
    min-width: 100px;
  }

  .song-public-card {
    min-height: 120px;
  }

  .song-first-artist-image,
  .song-first-artist-placeholder {
    min-height: 120px;
  }

}


/* ==========================================================
   COUNTRIES PUBLIC LIST
   ========================================================== */

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

.country-public-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 145px;
  padding: 18px;
  border: 1px solid #e7e8ef;
  border-radius: 18px;
  background: white;
  text-decoration: none;
  color: inherit;
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.country-public-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 30px
    rgba(35,39,58,.10);
}

.country-public-heart-wrap {
  width: 92px;
  min-width: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.country-list-heart {
  width: 86px;
  height: 68px;
  object-fit: contain;
}

.country-list-heart-placeholder {
  width: 86px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f3f4f8;
  font-size: 31px;
}

.country-public-content {
  flex: 1;
  min-width: 0;
}

.country-public-content h2 {
  margin: 0;
  font-size: 21px;
}

.country-secondary-name {
  display: block;
  margin-top: 3px;
  color: #8a8f9e;
  font-size: 12px;
}

.country-public-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
}

.country-stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #747a89;
  font-size: 13px;
}

.country-stat-line strong {
  color: #272a35;
  font-size: 15px;
}


@media (max-width: 600px) {

  .countries-public-grid {
    grid-template-columns: 1fr;
  }

  .country-public-heart-wrap {
    width: 74px;
    min-width: 74px;
  }

  .country-list-heart,
  .country-list-heart-placeholder {
    width: 68px;
    height: 56px;
  }

}


/* ==========================================================
   SONG DETAIL - OFFICIAL STYLE
   ========================================================== */

.song-detail-hero {
  display: grid;
  grid-template-columns:
    minmax(220px, 310px)
    1fr;
  gap: 32px;
  padding: 34px;
  margin-bottom: 30px;
  background:
    linear-gradient(
      135deg,
      #ffffff,
      #f7f6ff 48%,
      #f1fbff
    );
  border: 1px solid #e8e7ef;
  border-radius: 24px;
  overflow: hidden;
}

.song-detail-hero-image {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f2f3f7;
}

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

.song-detail-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 64px;
}

.song-detail-hero-main {
  min-width: 0;
}

.song-detail-meta-top {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.song-country-identity {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
}

.douze-country-heart.large {
  width: 42px;
  height: 32px;
}

.song-year-pill {
  padding: 7px 11px;
  border-radius: 999px;
  background: white;
  border: 1px solid #e2e2eb;
  text-decoration: none;
  color: #666c7a;
  font-size: 12px;
  font-weight: 800;
}

.song-detail-hero-main h1 {
  margin: 0;
  font-size: clamp(
    34px,
    5vw,
    58px
  );
  line-height: 1;
  letter-spacing: -.03em;
}

.song-detail-artists {
  margin-top: 12px;
  font-size: 19px;
  color: #656b79;
}

.song-hero-artist-link {
  color: inherit;
  text-decoration: none;
}

.song-result-status {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f0f0f7;
  font-size: 12px;
  font-weight: 800;
}

.song-event-results {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.song-event-result-card {
  min-width: 145px;
  padding: 14px 16px;
  border-radius: 16px;
  background: white;
  border: 1px solid #e8e8ef;
}

.song-event-result-card.primary {
  box-shadow:
    0 10px 26px
    rgba(42,47,72,.08);
}

.song-event-result-card.secondary {
  opacity: .82;
}

.song-event-result-card .event-name {
  display: block;
  color: #777d8c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.song-event-result-card .event-place {
  margin-top: 5px;
  font-size: 28px;
  font-weight: 900;
}

.song-event-result-card .event-points {
  margin-top: 2px;
  font-weight: 800;
}

.song-event-result-card small {
  display: block;
  margin-top: 7px;
  color: #888e9b;
}


/* Main layout */

.song-content-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    270px;
  gap: 24px;
  align-items: start;
}

.song-main-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.song-side-column {
  position: sticky;
  top: 20px;
}

.song-section-card,
.song-info-card {
  background: white;
  border: 1px solid #e7e8ef;
  border-radius: 20px;
  padding: 22px;
}

.song-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.song-section-heading h2 {
  margin: 0;
  font-size: 22px;
}

.song-section-heading p {
  margin: 4px 0 0;
  color: #808695;
  font-size: 13px;
}


/* Smaller video */

.song-video-compact {
  width: min(100%, 620px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}

.song-video-compact iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* Song details */

.song-info-card h3 {
  margin-top: 0;
}

.song-info-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #ededf2;
  font-size: 13px;
}

.song-info-row:last-child {
  border-bottom: 0;
}

.song-info-row span {
  color: #858b99;
}

.song-info-row strong {
  text-align: end;
}


/* Voting tabs */

.song-voting-tabs {
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  margin-bottom: 18px;
  background: #f3f3f7;
  border-radius: 12px;
}

.song-voting-tab {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  color: #707684;
}

.song-voting-tab.active {
  background: white;
  color: #242735;
  box-shadow:
    0 2px 8px
    rgba(36,40,59,.08);
}


/* Voting summary */

.voting-summary-cards {
  display: grid;
  grid-template-columns:
    repeat(
      3,
      minmax(0,1fr)
    );
  gap: 10px;
  margin-bottom: 18px;
}

.voting-summary-card {
  padding: 14px;
  border-radius: 14px;
  background: #f7f7fa;
}

.voting-summary-card.highlight {
  background:
    linear-gradient(
      135deg,
      #faf2ff,
      #eff9ff
    );
}

.voting-summary-card span {
  display: block;
  color: #7a808f;
  font-size: 11px;
  font-weight: 700;
}

.voting-summary-card strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}


/* Douze Points */

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

.douze-box {
  border: 1px solid #e9e9ef;
  border-radius: 16px;
  padding: 16px;
}

.douze-box.single {
  max-width: 560px;
}

.douze-box-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.douze-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      #f4eaff,
      #e8f7ff
    );
  font-size: 18px;
  font-weight: 900;
}

.douze-box-heading strong,
.douze-box-heading small {
  display: block;
}

.douze-box-heading small {
  margin-top: 2px;
  color: #8b909d;
}

.douze-countries-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.douze-country {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 13px;
}

.douze-country:hover {
  background: #f7f7fa;
}

.douze-country-heart.small {
  width: 28px;
  height: 22px;
  object-fit: contain;
}

.douze-heart-placeholder {
  width: 28px;
  text-align: center;
}

.douze-empty {
  color: #969ba7;
  font-size: 12px;
  padding: 6px 0;
}


/* Lyrics */

.lyrics-card {
  padding-bottom: 30px;
}

.song-lyrics {
  max-width: 760px;
  line-height: 1.9;
  color: #454a58;
  white-space: normal;
}


/* Responsive */

@media (max-width: 900px) {

  .song-detail-hero {
    grid-template-columns: 220px 1fr;
    padding: 24px;
  }

  .song-content-layout {
    grid-template-columns: 1fr;
  }

  .song-side-column {
    position: static;
  }

}


@media (max-width: 680px) {

  .song-detail-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .song-detail-hero-image {
    max-width: 100%;
  }

  .song-detail-hero-main h1 {
    font-size: 38px;
  }

  .song-event-results {
    display: grid;
    grid-template-columns:
      repeat(
        2,
        minmax(0,1fr)
      );
  }

  .voting-summary-cards {
    grid-template-columns: 1fr;
  }

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

  .song-video-compact {
    width: 100%;
  }

}


/* ==========================================================
   ARTIST DETAIL REDESIGN
   ========================================================== */

.artist-profile-hero {
  display: grid;
  grid-template-columns:
    260px 1fr;
  gap: 30px;
  align-items: center;
  padding: 30px;
  margin-bottom: 32px;
  border: 1px solid #e7e8ef;
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      #ffffff,
      #f7f4ff 52%,
      #eefaff
    );
}

.artist-profile-image-wrap {
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  background: #f1f2f6;
}

.artist-profile-main-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.artist-profile-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 62px;
}

.artist-profile-kicker {
  display: block;
  margin-bottom: 7px;
  color: #7b8190;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.artist-profile-main h1 {
  margin: 0;
  font-size: clamp(
    36px,
    5vw,
    58px
  );
  line-height: 1;
}

.artist-career-stats {
  display: grid;
  grid-template-columns:
    repeat(
      4,
      minmax(100px,1fr)
    );
  gap: 10px;
  margin-top: 26px;
}

.artist-career-stat {
  padding: 15px;
  border-radius: 15px;
  background: rgba(255,255,255,.86);
  border: 1px solid #e8e8ef;
}

.artist-career-stat span {
  display: block;
  color: #7a8090;
  font-size: 11px;
  font-weight: 700;
}

.artist-career-stat strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}


.artist-competition-section {
  margin-top: 32px;
}

.artist-competition-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}

.artist-competition-heading h2 {
  margin: 0;
}

.artist-competition-heading span {
  color: #7b8190;
  font-size: 13px;
}


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


.artist-entry-card {
  padding: 17px;
  border: 1px solid #e7e8ef;
  border-radius: 17px;
  background: white;
}

.artist-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.artist-entry-country {
  display: flex;
  align-items: center;
  gap: 8px;
}

.artist-entry-country a {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.artist-country-heart {
  width: 31px;
  height: 24px;
  object-fit: contain;
}

.artist-country-heart-placeholder {
  width: 31px;
  text-align: center;
}

.artist-entry-year {
  padding: 5px 8px;
  border-radius: 8px;
  background: #f4f4f8;
  color: #6c7281;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.artist-entry-card h3 {
  margin: 14px 0 6px;
  font-size: 20px;
}

.artist-entry-card h3 a {
  color: inherit;
  text-decoration: none;
}

.artist-entry-status {
  color: #858b99;
  font-size: 12px;
}

.artist-entry-results {
  display: flex;
  gap: 9px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.artist-result-box {
  min-width: 105px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ececf1;
}

.artist-result-box.primary {
  background: #fbfbff;
}

.artist-result-box.secondary {
  background: #f7f7f9;
  opacity: .78;
}

.artist-result-box span,
.artist-result-box strong,
.artist-result-box small {
  display: block;
}

.artist-result-box span {
  color: #7d8391;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.artist-result-box strong {
  margin-top: 4px;
  font-size: 20px;
}

.artist-result-box small {
  margin-top: 2px;
  color: #767c8a;
}


@media (max-width: 850px) {

  .artist-profile-hero {
    grid-template-columns:
      200px 1fr;
  }

  .artist-career-stats {
    grid-template-columns:
      repeat(2,1fr);
  }

}


@media (max-width: 620px) {

  .artist-profile-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .artist-profile-image-wrap {
    max-width: 100%;
  }

  .artist-career-stats {
    grid-template-columns:
      repeat(2,1fr);
  }

  .artist-entry-grid {
    grid-template-columns: 1fr;
  }

}


/* ==========================================================
   GLOBAL HEADER SEARCH
   ========================================================== */

.global-search {
  position: relative;
  width: min(330px, 30vw);
  min-width: 210px;
  margin-inline-start: auto;
  margin-inline-end: 12px;
  z-index: 1000;
}

.global-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.global-search-icon {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: #7b8190;
  pointer-events: none;
}

.global-search-field input {
  width: 100%;
  height: 40px;
  padding:
    0
    36px
    0
    38px;
  border: 1px solid #e1e2e9;
  border-radius: 12px;
  background: #f7f7fa;
  color: #262936;
  font: inherit;
  font-size: 13px;
  transition:
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

html[dir="rtl"]
.global-search-field input {
  padding:
    0
    38px
    0
    36px;
}

.global-search-field input:focus {
  outline: none;
  background: white;
  border-color: #b9b4db;
  box-shadow:
    0 0 0 3px
    rgba(102,83,180,.08);
}

.global-search-field input::placeholder {
  color: #969ba8;
}

.global-search-clear {
  position: absolute;
  inset-inline-end: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8b909d;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.global-search-clear.visible {
  display: flex;
}

.global-search-clear:hover {
  background: #ededf2;
}


/* Search dropdown */

.global-search-results {
  position: absolute;
  top: calc(100% + 9px);
  inset-inline-end: 0;
  width: min(520px, 90vw);
  max-height: min(
    620px,
    calc(100vh - 100px)
  );
  overflow-y: auto;
  display: none;
  padding: 8px;
  border: 1px solid #e3e4ea;
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow:
    0 22px 55px
    rgba(31,35,53,.16);
  backdrop-filter: blur(14px);
}

.global-search-results.open {
  display: block;
}


.global-search-section +
.global-search-section {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #ededf2;
}

.global-search-section-title {
  padding: 8px 10px 5px;
  color: #979ca8;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}


.global-search-result {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 7px 9px;
  border-radius: 11px;
  color: inherit;
  text-decoration: none;
  transition:
    background .14s ease;
}

.global-search-result:hover {
  background: #f5f5f9;
}


.global-search-result-image {
  width: 46px;
  height: 46px;
  min-width: 46px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f0f1f5;
}

.global-search-artist-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.global-search-country-image {
  width: 39px;
  height: 31px;
  object-fit: contain;
}

.global-search-year-image {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.global-search-fallback {
  font-size: 21px;
}

.global-search-year-fallback {
  font-size: 12px;
  font-weight: 900;
}


.global-search-result-text {
  min-width: 0;
  flex: 1;
}

.global-search-result-text strong {
  display: block;
  overflow: hidden;
  color: #272a35;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.global-search-result-text small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #858a98;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}


.global-search-no-results {
  padding: 23px 16px;
  text-align: center;
}

.global-search-no-results strong,
.global-search-no-results span {
  display: block;
}

.global-search-no-results strong {
  color: #3d414e;
}

.global-search-no-results span {
  margin-top: 5px;
  color: #969ba7;
  font-size: 12px;
}


/* ==========================================================
   MOBILE HEADER SEARCH
   ========================================================== */

@media (max-width: 900px) {

  .global-search {
    order: 20;
    width: 100%;
    min-width: 100%;
    margin:
      8px
      0
      0;
  }

  .global-search-field input {
    height: 42px;
  }

  .global-search-results {
    inset-inline-start: 0;
    inset-inline-end: auto;
    width: 100%;
  }

}


/* ==========================================================
   NEW HOMEPAGE
   ========================================================== */

.home-official-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    230px;
  gap: 30px;
  align-items: center;
  min-height: 400px;
  padding: 52px;
  margin-bottom: 22px;
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 80% 15%,
      rgba(98,210,255,.40),
      transparent 31%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(243,105,220,.25),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f6f3ff 52%,
      #edfaff 100%
    );
  border: 1px solid #e6e6ef;
}

.home-eyebrow,
.section-kicker,
.poll-kicker {
  display: block;
  color: #756b91;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.home-hero-content h1 {
  margin:
    8px
    0
    14px;
  font-size:
    clamp(
      55px,
      9vw,
      96px
    );
  line-height: .9;
  letter-spacing: -.055em;
}

.home-hero-content p {
  max-width: 620px;
  margin: 0;
  color: #686e7d;
  font-size: 18px;
  line-height: 1.6;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}

.home-primary-action,
.home-secondary-action {
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
}

.home-primary-action {
  color: white;
  background: #282633;
}

.home-secondary-action {
  color: #363947;
  background: white;
  border: 1px solid #dedfe7;
}

.home-hero-mark {
  width: 190px;
  height: 190px;
  display: grid;
  align-content: center;
  justify-items: center;
  margin-inline: auto;
  border-radius: 50%;
  background: white;
  box-shadow:
    0 25px 60px
    rgba(50,48,75,.10);
}

.home-hero-mark span {
  font-size: 78px;
  font-weight: 950;
  line-height: .9;
}

.home-hero-mark small {
  margin-top: 7px;
  font-weight: 900;
  letter-spacing: .15em;
  color: #858998;
}


.home-stat-grid {
  display: grid;
  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    );
  gap: 12px;
  margin-bottom: 34px;
}

.home-stat-card {
  padding: 18px 20px;
  border: 1px solid #e7e8ee;
  border-radius: 16px;
  background: white;
  color: inherit;
  text-decoration: none;
}

.home-stat-card strong {
  display: block;
  font-size: 28px;
}

.home-stat-card span {
  display: block;
  margin-top: 3px;
  color: #7c8291;
  font-size: 12px;
}


.home-main-grid {
  display: grid;
  grid-template-columns:
    minmax(0,1fr)
    minmax(310px,390px);
  gap: 26px;
  align-items: start;
}

.home-section-heading {
  margin-bottom: 17px;
}

.home-section-heading h2 {
  margin: 5px 0 0;
  font-size: 27px;
}

.home-navigation-grid {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0,1fr)
    );
  gap: 13px;
}

.home-navigation-card {
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px;
  border: 1px solid #e6e7ed;
  border-radius: 18px;
  background: white;
  color: inherit;
  text-decoration: none;
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.home-navigation-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 15px 34px
    rgba(39,43,61,.09);
}

.home-nav-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      #f2ecff,
      #eaf9ff
    );
  font-size: 23px;
  font-weight: 900;
}

.home-navigation-card strong,
.home-navigation-card small {
  display: block;
}

.home-navigation-card strong {
  font-size: 16px;
}

.home-navigation-card small {
  margin-top: 4px;
  color: #858b98;
  line-height: 1.35;
}


/* ==========================================================
   HOMEPAGE POLL
   ========================================================== */

.home-poll-card {
  overflow: hidden;
  padding: 22px;
  border: 1px solid #e4e5ec;
  border-radius: 21px;
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #faf7ff
    );
  box-shadow:
    0 17px 40px
    rgba(44,48,69,.07);
}

.home-poll-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.poll-live-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eefff3;
  color: #238443;
  font-size: 9px;
  font-weight: 900;
}

.home-poll-card h2 {
  margin: 13px 0 6px;
  font-size: 23px;
  line-height: 1.2;
}

.home-poll-description {
  margin: 0 0 16px;
  color: #7a808d;
  font-size: 13px;
  line-height: 1.5;
}

.home-poll-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 17px;
}

.poll-vote-option {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e1e2e8;
  border-radius: 12px;
  background: white;
  color: #333641;
  font: inherit;
  font-weight: 750;
  text-align: start;
  cursor: pointer;
}

.poll-vote-option:hover {
  border-color: #aaa1cf;
  background: #fbfaff;
}

.poll-vote-option:disabled {
  opacity: .6;
  cursor: wait;
}

.poll-total {
  margin-top: 15px;
  color: #969ba7;
  font-size: 11px;
}

.previous-polls-link {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 13px 16px;
  border-radius: 13px;
  background: #f4f4f7;
  color: #606674;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}


.poll-result-option {
  padding: 10px 0;
}

.poll-result-option.selected {
  padding: 11px;
  border-radius: 12px;
  background: #faf8ff;
}

.poll-result-top,
.archive-result-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.poll-result-bar {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ececf1;
}

.poll-result-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #8962dd,
      #55bce9
    );
}

.poll-result-option small,
.archive-result small {
  display: block;
  margin-top: 5px;
  color: #9297a4;
}


/* ==========================================================
   PREVIOUS POLLS
   ========================================================== */

.polls-page-header {
  max-width: 700px;
  padding: 45px 0 28px;
}

.polls-page-header h1 {
  margin: 7px 0;
  font-size:
    clamp(
      38px,
      6vw,
      62px
    );
}

.polls-page-header p {
  color: #797f8d;
}

.previous-polls-grid {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fill,
      minmax(330px,1fr)
    );
  gap: 18px;
  padding-bottom: 50px;
}

.previous-poll-card {
  padding: 21px;
  border: 1px solid #e6e7ed;
  border-radius: 19px;
  background: white;
}

.previous-poll-heading {
  display: flex;
  justify-content: space-between;
  color: #8a8f9d;
  font-size: 10px;
  font-weight: 800;
}

.previous-poll-card h2 {
  margin: 12px 0 20px;
  font-size: 20px;
}

.previous-poll-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* Responsive */

@media (max-width: 900px) {

  .home-official-hero {
    grid-template-columns: 1fr;
  }

  .home-hero-mark {
    display: none;
  }

  .home-main-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 650px) {

  .home-official-hero {
    min-height: 0;
    padding: 27px 21px;
  }

  .home-stat-grid {
    grid-template-columns:
      repeat(2,1fr);
  }

  .home-navigation-grid {
    grid-template-columns: 1fr;
  }

  .previous-polls-grid {
    grid-template-columns: 1fr;
  }

}

/* ==========================================================
   GLOBAL SEARCH - COMPACT HEADER VERSION
   ========================================================== */

.global-search {
  position: relative;
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  margin-inline-start: 10px;
  margin-inline-end: 8px;
  flex: 0 0 190px;
  z-index: 1000;
}

.global-search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.global-search-field input {
  width: 100%;
  height: 36px;
  padding-inline-start: 34px;
  padding-inline-end: 30px;
  border: 1px solid #e4e5ea;
  border-radius: 999px;
  background: #f7f7f9;
  color: #2d303b;
  font: inherit;
  font-size: 12px;
  transition:
    width .18s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.global-search-field input:focus {
  background: #fff;
  border-color: #bbb7d1;
  box-shadow:
    0 0 0 3px
    rgba(104,87,177,.08);
}

.global-search-icon {
  inset-inline-start: 10px;
}

.global-search-clear {
  inset-inline-end: 7px;
}

.global-search-results {
  top: calc(100% + 8px);
  inset-inline-end: 0;
  inset-inline-start: auto;
  width: 420px;
  max-width: 80vw;
}


/* Keep header in one row */

.site-header .container,
header .container,
.site-header,
header {
  align-items: center;
}

.site-header .container {
  flex-wrap: nowrap;
}


/* Search sits neatly before language control */

.global-search + * {
  flex-shrink: 0;
}


/* ==========================================================
   MEDIUM SCREENS
   ========================================================== */

@media (max-width: 1050px) {

  .global-search {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    flex-basis: 150px;
  }

  .global-search-field input {
    font-size: 11px;
  }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 760px) {

  .global-search {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    flex-basis: 42px;
    margin-inline-start: 6px;
    margin-inline-end: 6px;
  }

  .global-search-field input {
    width: 42px;
    height: 36px;
    padding: 0;
    color: transparent;
    cursor: pointer;
    background: #f6f6f8;
  }

  .global-search-field input::placeholder {
    color: transparent;
  }

  .global-search-field input:focus {
    position: absolute;
    inset-inline-end: 0;
    width: min(260px, 76vw);
    padding-inline-start: 34px;
    padding-inline-end: 30px;
    color: #2d303b;
    cursor: text;
    z-index: 2;
  }

  .global-search-field input:focus::placeholder {
    color: #999eaa;
  }

  .global-search-results {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }

}



/* ==========================================================
   HEADER TOOLS - SEARCH + LANGUAGE IN SAME ROW
   ========================================================== */

.header-tools {
  display: flex !important;
  align-items: center !important;
  gap: 7px;
  margin-inline-start: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

.header-tools .global-search {
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  flex: 0 0 180px !important;
  margin: 0 !important;
}


/*
  Critical:
  header itself stays one single row.
*/

.site-header .container,
header .container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
}


/*
  Navigation is allowed to consume
  available middle space, but not force
  search onto another row.
*/

.site-header nav,
header nav {
  min-width: 0;
}


/*
  Search results can still open
  underneath without affecting layout.
*/

.header-tools .global-search-results {
  position: absolute;
  width: 430px;
  max-width: min(430px, 90vw);
}


/* Medium screens */

@media (max-width: 1100px) {

  .header-tools .global-search {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    flex-basis: 140px !important;
  }

}


/* Mobile */

@media (max-width: 760px) {

  .header-tools {
    margin-inline-start: auto;
  }

  .header-tools .global-search {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    flex-basis: 38px !important;
  }

}



/* ==========================================================
   ESC LiBi HOMEPAGE V2
   ========================================================== */

.esc-home-hero {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: grid;
  grid-template-columns:
    minmax(0,1fr)
    270px;
  align-items: center;
  gap: 50px;
  padding: 58px;
  margin-bottom: 18px;
  border-radius: 30px;
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(34,198,255,.38),
      transparent 27%
    ),
    radial-gradient(
      circle at 6% 92%,
      rgba(255,53,170,.24),
      transparent 31%
    ),
    radial-gradient(
      circle at 55% 120%,
      rgba(125,82,255,.18),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #fff,
      #f8f5ff 46%,
      #eefbff
    );
  border: 1px solid #e8e7ef;
}

.esc-home-hero::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  top: -210px;
  right: 30%;
  border: 50px solid
    rgba(255,255,255,.42);
  border-radius: 50%;
}

.esc-home-hero-content {
  position: relative;
  z-index: 1;
}

.esc-home-overline {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .20em;
  color: #767184;
}

.esc-home-hero h1 {
  margin: 12px 0 18px;
  font-size:
    clamp(
      65px,
      10vw,
      112px
    );
  line-height: .82;
  letter-spacing: -.075em;
}

.esc-home-hero h1 em {
  font-style: normal;
  font-weight: 400;
}

.esc-home-hero p {
  max-width: 650px;
  margin: 0;
  color: #666c7b;
  font-size: 18px;
  line-height: 1.65;
}

.esc-home-hero-buttons {
  display: flex;
  gap: 10px;
  margin-top: 29px;
  flex-wrap: wrap;
}

.esc-main-button,
.esc-light-button {
  padding: 13px 19px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.esc-main-button {
  background: #242530;
  color: white;
}

.esc-light-button {
  background: rgba(255,255,255,.78);
  border: 1px solid #dfdfe7;
  color: #3b3e4b;
}


.esc-home-scoreboard {
  position: relative;
  z-index: 1;
  width: 230px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
  border-radius: 28px;
  transform: rotate(4deg);
  background:
    rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow:
    0 35px 70px
    rgba(50,44,84,.13);
}

.scoreboard-word {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .25em;
}

.esc-home-scoreboard strong {
  display: block;
  margin-top: 8px;
  font-size: 100px;
  line-height: .8;
  letter-spacing: -.08em;
}

.esc-home-scoreboard span {
  margin-top: 11px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .20em;
}


.home-dashboard {
  display: grid;
  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    );
  gap: 10px;
  margin-bottom: 38px;
}

.home-dashboard a {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 17px 19px;
  border-radius: 15px;
  border: 1px solid #e7e7ed;
  background: white;
  text-decoration: none;
  color: inherit;
}

.home-dashboard span {
  font-size: 25px;
  font-weight: 900;
}

.home-dashboard small {
  color: #8b909c;
}


.esc-home-content-grid {
  display: grid;
  grid-template-columns:
    minmax(0,1fr)
    minmax(315px,390px);
  gap: 30px;
  align-items: start;
}

.esc-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 17px;
}

.esc-section-title > div > span {
  color: #8c829c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
}

.esc-section-title h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.esc-section-title > a {
  color: #777d8c;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}


.home-latest-songs {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0,1fr)
    );
  gap: 12px;
}

.home-latest-song {
  overflow: hidden;
  display: grid;
  grid-template-columns:
    95px
    minmax(0,1fr);
  min-height: 105px;
  border-radius: 16px;
  border: 1px solid #e5e6ec;
  background: white;
  color: inherit;
  text-decoration: none;
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.home-latest-song:hover {
  transform:
    translateY(-3px);
  box-shadow:
    0 15px 35px
    rgba(44,48,66,.09);
}

.home-latest-song-image {
  height: 100%;
  min-height: 105px;
  background:
    linear-gradient(
      135deg,
      #f1eff8,
      #edfaff
    );
}

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

.home-song-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 33px;
}

.home-latest-song-info {
  min-width: 0;
  padding: 13px;
}

.home-latest-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: #8c919e;
  font-size: 10px;
  white-space: nowrap;
}

.home-small-heart {
  width: 23px;
  height: 18px;
  display: inline-grid;
  place-items: center;
}

.home-small-heart img {
  width: 23px;
  height: 18px;
  object-fit: contain;
}

.home-latest-song-info strong {
  display: block;
  overflow: hidden;
  margin-top: 8px;
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-latest-song-info small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #7f8593;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}


.home-explore-categories {
  display: grid;
  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    );
  gap: 10px;
  margin-top: 30px;
}

.home-explore-categories > a {
  padding: 16px;
  border: 1px solid #e6e7ed;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.category-symbol {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 11px;
  background:
    linear-gradient(
      135deg,
      #f1ecff,
      #e9faff
    );
  font-size: 14px;
  font-weight: 900;
}

.home-explore-categories strong,
.home-explore-categories small {
  display: block;
}

.home-explore-categories small {
  margin-top: 4px;
  color: #8b909c;
  font-size: 10px;
  line-height: 1.35;
}


/* ==========================================================
   FEATURED POLL
   ========================================================== */

.esc-featured-poll {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 25px;
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(82,189,245,.22),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #282833,
      #3b354e
    );
  color: white;
  box-shadow:
    0 25px 50px
    rgba(43,39,62,.16);
}

.esc-featured-poll::after {
  content: "12";
  position: absolute;
  right: -9px;
  bottom: -38px;
  color: rgba(255,255,255,.035);
  font-size: 170px;
  font-weight: 950;
  line-height: 1;
}

.featured-poll-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.poll-mini-title {
  display: block;
  color: #bdb7cb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}

.featured-poll-top small {
  display: block;
  margin-top: 3px;
  color: #85808f;
  font-size: 9px;
}

.featured-poll-live {
  align-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  background: #dffff0;
  color: #1c7a4b;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .08em;
}

.esc-featured-poll h2 {
  position: relative;
  z-index: 1;
  margin: 22px 0 7px;
  font-size: 25px;
  line-height: 1.2;
}

.esc-featured-poll > p {
  position: relative;
  z-index: 1;
  color: #aaa5b4;
  font-size: 12px;
  line-height: 1.5;
}

.featured-poll-options {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 20px;
}

.featured-poll-option {
  width: 100%;
  min-height: 43px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 13px;
  border: 1px solid
    rgba(255,255,255,.10);
  border-radius: 10px;
  background:
    rgba(255,255,255,.065);
  color: white;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.featured-poll-option:hover {
  background:
    rgba(255,255,255,.12);
}

.featured-poll-option b {
  color: #9adfff;
  font-size: 18px;
}

.featured-poll-footer {
  position: relative;
  z-index: 1;
  margin-top: 17px;
  color: #858190;
  font-size: 10px;
}

.featured-poll-result {
  padding: 7px 0;
}

.featured-poll-result > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.featured-result-bar {
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background:
    rgba(255,255,255,.08);
}

.featured-result-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #b787ff,
      #63d7ff
    );
}

.featured-poll-result.my-choice {
  color: #d7c9ff;
}

.home-poll-archive-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 15px 17px;
  border: 1px solid #e4e5eb;
  border-radius: 14px;
  background: white;
  color: #565c6b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.poll-empty-public {
  position: relative;
  z-index: 1;
}

.poll-big-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-top: 27px;
  border-radius: 50%;
  background:
    rgba(255,255,255,.08);
  font-size: 34px;
  font-weight: 900;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1000px) {

  .esc-home-content-grid {
    grid-template-columns: 1fr;
  }

  .home-explore-categories {
    grid-template-columns:
      repeat(2,1fr);
  }

}

@media (max-width: 800px) {

  .esc-home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 35px 27px;
  }

  .esc-home-scoreboard {
    display: none;
  }

  .home-dashboard {
    grid-template-columns:
      repeat(2,1fr);
  }

}

@media (max-width: 600px) {

  .home-latest-songs {
    grid-template-columns: 1fr;
  }

  .home-explore-categories {
    grid-template-columns:
      repeat(2,1fr);
  }

}


/* ==========================================================
   FOOTER LANGUAGE SWITCH
   ========================================================== */

.site-footer,
footer {
  margin-top: 56px;
}

.footer-tools {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-language-switch {
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  z-index: auto !important;
}

/*
  Neutral compact appearance in footer.
  Existing buttons/links inside the language
  component retain their own behavior.
*/

.footer-language-switch {
  font-size: 12px;
}

.footer-language-switch button,
.footer-language-switch a {
  min-width: auto;
}

/*
  Prevent an old header placement rule from
  reserving space after moving the switch.
*/

header .footer-language-switch,
.site-header .footer-language-switch {
  display: none !important;
}


@media (max-width: 700px) {
  .site-footer,
  footer {
    margin-top: 38px;
  }

  .footer-tools {
    padding: 18px 0 22px;
  }
}



/* ==========================================================
   FOOTER LANGUAGE SWITCH
   ========================================================== */

.site-footer,
footer {
  margin-top: 56px;
}

.footer-tools {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-language-switch {
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  z-index: auto !important;
}

/*
  Neutral compact appearance in footer.
  Existing buttons/links inside the language
  component retain their own behavior.
*/

.footer-language-switch {
  font-size: 12px;
}

.footer-language-switch button,
.footer-language-switch a {
  min-width: auto;
}

/*
  Prevent an old header placement rule from
  reserving space after moving the switch.
*/

header .footer-language-switch,
.site-header .footer-language-switch {
  display: none !important;
}


@media (max-width: 700px) {
  .site-footer,
  footer {
    margin-top: 38px;
  }

  .footer-tools {
    padding: 18px 0 22px;
  }
}



/* ==========================================================
   FOOTER LANGUAGE CONTROL V2
   ========================================================== */

.footer-bottom {
  width: min(
    1180px,
    calc(100% - 32px)
  );
  margin: 0 auto;
  padding: 22px 0 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-language-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  direction: ltr;
  font-size: 12px;
}

.footer-lang-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 5px;
  color: #888b95;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.footer-lang-button:hover {
  color: #30323d;
}

.footer-lang-button.active {
  color: #30323d;
  font-weight: 900;
}

.footer-lang-divider {
  color: #c4c6cc;
}


/* Hide any old header language control */

header .language-switch,
header .lang-switch,
header .language-toggle,
header .lang-toggle,
.site-header .language-switch,
.site-header .lang-switch,
.site-header .language-toggle,
.site-header .lang-toggle {
  display: none !important;
}


@media (max-width: 700px) {

  .footer-bottom {
    padding:
      18px
      0
      22px;
  }

}



/* ==========================================================
   REMOVE LANGUAGE CONTROL FROM PUBLIC HEADER
   ========================================================== */

header #languageButton,
.site-header #languageButton,

header .language-switch,
.site-header .language-switch,

header .lang-switch,
.site-header .lang-switch,

header .language-toggle,
.site-header .language-toggle,

header .lang-toggle,
.site-header .lang-toggle {
  display: none !important;
}



/* ==========================================================
   ESC LIBI - MULTILINGUAL FOOTER SELECTOR
   ========================================================== */

.footer-language-selector {
  position: relative;

  width: max-content;
  max-width: 100%;

  margin:
    24px auto
    8px;

  z-index: 30;
}


.footer-language-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  min-height: 42px;

  padding:
    9px
    14px;

  border:
    1px solid
    rgba(100, 110, 160, 0.18);

  border-radius:
    999px;

  background:
    rgba(255,255,255,0.95);

  color:
    #363654;

  font:
    inherit;

  font-weight:
    700;

  cursor:
    pointer;

  box-shadow:
    0 8px 24px
    rgba(40, 48, 90, 0.08);
}


.footer-language-button:hover {
  transform:
    translateY(-1px);

  box-shadow:
    0 12px 30px
    rgba(40, 48, 90, 0.12);
}


.language-chevron {
  opacity:
    0.6;
}


.footer-language-menu {
  position:
    absolute;

  bottom:
    calc(100% + 10px);

  left:
    50%;

  transform:
    translateX(-50%);

  width:
    220px;

  max-height:
    340px;

  overflow-y:
    auto;

  padding:
    8px;

  background:
    #fff;

  border:
    1px solid
    rgba(80, 90, 145, 0.15);

  border-radius:
    16px;

  box-shadow:
    0 18px 55px
    rgba(35, 42, 82, 0.18);
}


.footer-language-option {
  width:
    100%;

  display:
    block;

  padding:
    10px
    12px;

  border:
    0;

  border-radius:
    10px;

  background:
    transparent;

  color:
    #393853;

  text-align:
    left;

  font:
    inherit;

  font-weight:
    650;

  cursor:
    pointer;
}


html[dir="rtl"]
.footer-language-option {
  text-align:
    right;
}


.footer-language-option:hover {
  background:
    #f4f3ff;
}


.footer-language-option.active {
  background:
    linear-gradient(
      135deg,
      #ede9ff,
      #eef9ff
    );

  color:
    #654bd7;

  font-weight:
    800;
}


@media (max-width: 600px) {

  .footer-language-menu {
    width:
      min(
        90vw,
        260px
      );
  }

}



/* ==========================================================
   ESC LIBI LANGUAGE SELECTOR V2
   ========================================================== */

#escLibiLanguageSelectorV2 {
  position: relative !important;

  display: block !important;

  width: max-content !important;
  max-width: calc(100% - 30px) !important;

  margin: 30px auto 18px !important;

  visibility: visible !important;
  opacity: 1 !important;

  z-index: 9999 !important;
}


#escLibiLanguageSelectorV2
.esc-language-main {

  appearance: none;

  display: flex !important;
  align-items: center;
  justify-content: center;

  gap: 9px;

  min-width: 145px;

  min-height: 44px;

  padding: 10px 16px;

  border: 1px solid
    rgba(101, 75, 215, 0.20);

  border-radius: 999px;

  background: #ffffff;

  color: #34344d;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 14px;

  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 7px 24px
    rgba(63, 53, 118, 0.12);

  visibility: visible !important;
  opacity: 1 !important;
}


#escLibiLanguageSelectorV2
.esc-language-main:hover {

  transform:
    translateY(-1px);

  box-shadow:
    0 10px 28px
    rgba(63, 53, 118, 0.17);
}


#escLibiLanguageSelectorV2
.esc-language-globe {

  font-size: 17px;
}


#escLibiLanguageSelectorV2
.esc-language-arrow {

  font-size: 11px;

  opacity: .55;
}


#escLibiLanguageSelectorV2
.esc-language-menu {

  position: absolute;

  bottom:
    calc(100% + 10px);

  left: 50%;

  transform:
    translateX(-50%);

  width: 230px;

  max-height: 350px;

  overflow-y: auto;

  padding: 8px;

  background: #ffffff;

  border: 1px solid
    rgba(83, 70, 150, 0.13);

  border-radius: 15px;

  box-shadow:
    0 16px 48px
    rgba(45, 38, 94, 0.22);

  z-index: 10000;
}


#escLibiLanguageSelectorV2
.esc-language-menu[hidden] {

  display: none !important;
}


#escLibiLanguageSelectorV2
.esc-language-option {

  appearance: none;

  display: block;

  width: 100%;

  padding:
    10px 12px;

  border: 0;

  border-radius: 9px;

  background:
    transparent;

  color:
    #34344d;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size:
    14px;

  font-weight:
    600;

  text-align:
    left;

  cursor:
    pointer;
}


html[dir="rtl"]
#escLibiLanguageSelectorV2
.esc-language-option {

  text-align:
    right;
}


#escLibiLanguageSelectorV2
.esc-language-option:hover {

  background:
    #f4f1ff;
}


#escLibiLanguageSelectorV2
.esc-language-option.active {

  background:
    linear-gradient(
      135deg,
      #eee9ff,
      #edf9ff
    );

  color:
    #644bd5;

  font-weight:
    800;
}


@media
(max-width: 600px) {

  #escLibiLanguageSelectorV2
  .esc-language-menu {

    width:
      min(
        86vw,
        250px
      );
  }

}



/* ==========================================================
   PARTICIPATIONS BEFORE SONG
   ========================================================== */

.pending-participation-row {
  background:
    linear-gradient(
      90deg,
      rgba(122, 92, 255, .045),
      rgba(0, 190, 255, .035)
    );
}


.pending-participation-row td {
  vertical-align: middle;
}


.pending-participation-details {
  margin-top: 5px;

  font-size: .82rem;

  opacity: .72;
}


.tba-value {
  opacity: .62;

  font-style: italic;
}


.artist-pending-participations {
  margin-top: 34px;
}


.pending-section-heading {
  margin-bottom: 16px;
}


.pending-section-heading h2 {
  margin-bottom: 5px;
}


.pending-section-heading p {
  margin: 0;

  opacity: .68;
}


.pending-participation-cards {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(220px, 1fr)
    );

  gap: 14px;
}


.pending-participation-card {
  padding: 18px;

  border: 1px solid
    rgba(110, 90, 190, .12);

  border-radius: 16px;

  background: #fff;

  box-shadow:
    0 8px 28px
    rgba(35, 35, 80, .07);
}


.pending-participation-year {
  font-weight: 800;

  margin-bottom: 8px;
}


.pending-participation-country {
  font-size: 1.05rem;

  margin-bottom: 15px;
}


.pending-participation-song {
  display: flex;

  justify-content:
    space-between;

  gap: 12px;

  padding-top: 11px;

  border-top: 1px solid
    rgba(80, 80, 120, .09);
}


.pending-participation-song span {
  opacity: .62;
}




/* ==========================================================
   YEAR RESULTS / PARTICIPATIONS MASTER
   ========================================================== */

.participation-tba-row {
  background:
    linear-gradient(
      90deg,
      rgba(115, 80, 230, .035),
      rgba(0, 180, 240, .025)
    );
}


.participation-tba-row td,
.participation-artist-cell {
  vertical-align:
    middle;
}


.participation-artist-link {
  font-weight:
    650;
}


.tba-value {
  opacity:
    .52;

  font-style:
    italic;
}


/* WINNER */

tr.result-gold > td {
  background:
    linear-gradient(
      90deg,
      rgba(255, 215, 0, .22),
      rgba(255, 244, 186, .10)
    ) !important;
}


tr.result-gold > td:first-child {
  box-shadow:
    inset 4px 0 0 #d6a900;
}


/* SECOND */

tr.result-silver > td {
  background:
    linear-gradient(
      90deg,
      rgba(192, 192, 192, .23),
      rgba(240, 240, 240, .10)
    ) !important;
}


tr.result-silver > td:first-child {
  box-shadow:
    inset 4px 0 0 #a8a8a8;
}


/* THIRD */

tr.result-bronze > td {
  background:
    linear-gradient(
      90deg,
      rgba(205, 127, 50, .20),
      rgba(239, 207, 173, .10)
    ) !important;
}


tr.result-bronze > td:first-child {
  box-shadow:
    inset 4px 0 0 #b87333;
}


.withdrawn-countries-section {
  margin-top:
    34px;

  padding:
    22px;

  border-radius:
    18px;

  background:
    #fff;

  border:
    1px solid
    rgba(100, 80, 170, .10);

  box-shadow:
    0 9px 28px
    rgba(40, 40, 80, .055);
}


.withdrawn-countries-section h2 {
  margin:
    0 0 15px;
}


.withdrawn-country-list {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    8px;
}


.withdrawn-country-item {
  display:
    inline-flex;

  align-items:
    center;

  padding:
    7px 11px;

  border-radius:
    999px;

  background:
    rgba(110, 100, 140, .07);

  text-decoration:
    none;
}


/*
 RTL podium marker should appear on right side.
*/

html[dir="rtl"]
tr.result-gold > td:first-child,
html[dir="rtl"]
tr.result-silver > td:first-child,
html[dir="rtl"]
tr.result-bronze > td:first-child {
  box-shadow:
    none;
}


html[dir="rtl"]
tr.result-gold > td:last-child {
  box-shadow:
    inset -4px 0 0 #d6a900;
}


html[dir="rtl"]
tr.result-silver > td:last-child {
  box-shadow:
    inset -4px 0 0 #a8a8a8;
}


html[dir="rtl"]
tr.result-bronze > td:last-child {
  box-shadow:
    inset -4px 0 0 #b87333;
}



/* ==========================================================
   YEAR PAGE - WITHDRAWN COUNTRIES
   ========================================================== */

.withdrawn-countries-section {
  margin-top: 30px;
}

.withdrawn-countries-card {
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
}

.withdrawn-countries-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.withdrawn-countries-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.withdrawn-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .07);
  font-size: .85rem;
  font-weight: 700;
}

.withdrawn-country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.withdrawn-country-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.withdrawn-country-item:hover {
  transform: translateY(-1px);
}

.withdrawn-country-symbol {
  display: inline-flex;
  align-items: center;
}

.withdrawn-country-symbol img {
  max-width: 30px;
  max-height: 24px;
  object-fit: contain;
}

.withdrawn-country-name {
  font-weight: 700;
}

.withdrawn-country-status {
  opacity: .55;
  font-size: .8rem;
}

@media (max-width: 650px) {
  .withdrawn-country-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .withdrawn-country-item {
    width: 100%;
  }
}


/* Country page - future participation */

.future-participation-row {
  background:
    rgba(255, 255, 255, .55);
}

.country-entry-tba {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .055);
  font-size: .82rem;
  font-weight: 700;
  opacity: .7;
}


/* ==========================================================
   ARTIST PAGE - FUTURE PARTICIPATIONS
   ========================================================== */

.artist-future-entry-card {
  position: relative;
}

.artist-future-entry-card::after {
  content: "TBA";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .055);
  font-size: .76rem;
  font-weight: 700;
  opacity: .65;
}
