body {
  font-family: Arial, sans-serif;
  background: #eef2f6;
  margin: 0;
}
.subsite-header { min-height: 64px; display: flex; align-items: center; padding: 10px max(20px, calc((100% - 1250px) / 2)); background: #002d59; }.subsite-logo { display: block; width: 155px; line-height: 0; }.subsite-logo img { display: block; width: 100%; height: auto; }

.container {
  width: min(1250px, calc(100% - 40px));
  margin: 40px auto;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #6b7280;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.control select {
  min-width: 210px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: #e5e7eb;
  color: #111827;
  font-weight: bold;
  cursor: pointer;
  outline: none;
}

.control select:hover,
.control select:focus {
  background: #dbeafe;
}

.statusBadge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.03em;
}

.title {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  margin: 0 0 8px;
}

.subtitle {
  text-align: center;
  color: #111;
  margin-bottom: 8px;
}

.marketMeta {
  min-height: 18px;
  text-align: center;
  color: #9aa3af;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 18px;
}

.emptyState {
  max-width: 620px;
  margin: 30px auto;
  padding: 22px;
  text-align: center;
  color: #6b7280;
  background: #e5e7eb;
  border-radius: 14px;
  font-weight: bold;
}

.hidden {
  display: none !important;
}

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

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

table.listOnlyMarket {
  width: min(900px, 100%);
  margin: 12px auto 0;
  table-layout: fixed;
}

table.listOnlyMarket thead {
  display: none;
}

table.listOnlyMarket .rankHeader {
  width: 48px;
}

table.listOnlyMarket .countryHeader,
table.listOnlyMarket td:nth-child(2) {
  width: 100%;
}

table.listOnlyMarket .countryCell {
  width: 100%;
  box-sizing: border-box;
}

thead th {
  font-size: 11px;
  text-transform: uppercase;
  color: #9aa3af;
  font-weight: bold;
  text-align: center;
}

.rankHeader {
  width: 30px;
}

.countryHeader {
  width: auto;
  min-width: 420px;
  text-align: left;
}

.chanceHeader {
  width: 120px;
}

.bookHeader {
  width: 95px;
}

tr {
  height: 42px;
}

td {
  padding: 6px;
  vertical-align: middle;
}

.rank {
  text-align: center;
  color: #9aa3af;
  font-size: 13px;
  white-space: nowrap;
}

.qualifierBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 5px;
  border-radius: 50%;
  background: #16a34a;
  color: white;
  font-size: 9px;
  font-weight: bold;
}

.countryCell {
  background: #e5e7eb;
  border-radius: 8px;
  padding: 6px 10px;
}

tr:hover .countryCell {
  background: #dbeafe;
}

.country {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.flagBox {
  width: 20px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flag {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.name {
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
}

.artist {
  min-width: 0;
  font-size: 11px;
  color: #6b7280;
  margin-left: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chanceCell {
  text-align: center;
  color: #9aa3af;
  font-size: 13px;
  font-weight: bold;
}

.change {
  width: 10px;
  flex-shrink: 0;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot.up {
  background: #16a34a;
}

.dot.down {
  background: #dc2626;
}

.oddsCell {
  text-align: center;
}

.oddsBox {
  display: inline-block;
  min-width: 55px;
  padding: 8px;
  background: #cfe3f5;
  border-radius: 8px;
  font-weight: bold;
}

tr.top .countryCell {
  background: #dbeafe;
}

tr.top .oddsBox {
  background: #bcd7f3;
}

tr.projectedQualifier .countryCell {
  box-shadow: inset 3px 0 0 #16a34a;
}

table.closedOdds .oddsBox {
  background: #e5e7eb;
  color: #6b7280;
}

table.closedOdds tr.top .oddsBox,
table.closedOdds tr.top .countryCell {
  background: #e5e7eb;
}

.resultBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 4px 7px;
  border-radius: 999px;
  color: white;
  font-size: 10px;
  font-weight: bold;
}

.resultQ {
  background: #16a34a;
}

.resultNQ {
  background: #9ca3af;
}

.nonQualifiedBlock {
  max-width: 980px;
  margin: 48px auto 0;
  padding: 28px 70px 26px;
  border-radius: 0 0 18px 18px;
  background: #e5e7eb;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.nonQualifiedTitle {
  margin: 0 0 14px;
  color: #334155;
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nonQualifiedHint {
  max-width: 680px;
  margin: -5px auto 14px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.nonQualifiedList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 80px;
  max-width: 860px;
  margin: 0 auto;
}

.nonQualifiedChip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 5px;
  background: #ffffff;
  color: #111827;
  overflow: hidden;
}

.nonQualifiedChip .flagBox {
  width: 18px;
  height: 12px;
}

.nonQualifiedText {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.nonQualifiedName {
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.nonQualifiedArtist {
  min-width: 0;
  color: #6b7280;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 20px, 1250px);
    margin: 24px auto;
  }

  .controls {
    align-items: stretch;
  }

  .control,
  .control select {
    width: 100%;
  }

  .title {
    font-size: 22px;
  }

  .countryHeader {
    min-width: 280px;
  }

  table:not(.listOnlyMarket) {
    min-width: 760px;
  }

  table.listOnlyMarket {
    min-width: 0;
  }

  .nonQualifiedBlock {
    padding: 22px 16px;
  }

  .nonQualifiedList {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}
