:root {
  --blue: #0c67b7;
  --blue-dark: #064579;
  --cyan: #14a8e5;
  --green: #22a765;
  --red: #e44848;
  --ink: #172033;
  --muted: #667085;
  --line: #dbe4ef;
  --soft: #f3f7fb;
  --player-bg: #071d35;
  --white: #ffffff;
  --shadow: 0 14px 35px rgba(24, 48, 80, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--soft);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  padding-bottom: 92px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(20, 39, 70, 0.06);
}

.header-inner,
.section,
.site-footer,
.quick-tabs {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark,
.station-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  font-weight: 800;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.13);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 25px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a,
.login-button,
.text-link {
  color: var(--blue-dark);
  font-weight: 700;
}

.main-nav a,
.login-button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
}

.main-nav a:hover,
.login-button:hover {
  background: #eaf4fc;
}

.menu-toggle {
  display: none;
}

.icon-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--ink);
}

.hero {
  min-height: 420px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, var(--hero-start), var(--blue) 54%, var(--hero-end));
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  padding: 54px max(22px, calc((100vw - 1180px) / 2)) 46px;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
}

.hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #c9f0ff;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  gap: 10px;
  max-width: 900px;
  margin-top: 28px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  backdrop-filter: blur(12px);
}

.search-field,
.filter-field,
.modal-card label,
.admin-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-panel label {
  color: rgba(255, 255, 255, 0.84);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(20, 168, 229, 0.17);
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  border: 0;
  border-radius: 8px;
  padding: 12px 15px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  align-self: end;
  background: var(--green);
  color: var(--white);
}

.primary-button:disabled,
.round-button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.secondary-button {
  background: #e8f2fb;
  color: var(--blue-dark);
}

.danger-button {
  background: #ffe9e9;
  color: #ab2020;
}

.ghost-button {
  background: transparent;
  color: var(--blue-dark);
  border: 1px solid var(--line);
}

.hero-card,
.side-panel,
.favorites-box,
.admin-card,
.stats-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-card {
  color: var(--ink);
  padding: 22px;
}

.live-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(228, 72, 72, 0.16);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.store-buttons a,
.quick-tabs a,
.segment-chip {
  border-radius: 999px;
  background: #eaf4fc;
  color: var(--blue-dark);
  padding: 9px 13px;
  font-weight: 800;
}

.quick-tabs {
  display: flex;
  gap: 10px;
  padding: 18px 0 0;
  overflow-x: auto;
}

.section {
  padding: 34px 0;
}

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

.section-title h2 {
  margin: 0;
  font-size: 30px;
}

.section-title p:last-child {
  margin: 0;
  color: var(--muted);
}

.compact {
  align-items: center;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.radio-card {
  display: grid;
  gap: 10px;
  min-height: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 7px 18px rgba(31, 52, 86, 0.07);
}

.radio-card:hover {
  transform: translateY(-2px);
  transition: transform 0.18s ease;
}

.station-logo {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  font-size: 23px;
}

.station-logo.has-image {
  overflow: hidden;
  background: var(--white);
  padding: 0;
}

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

.radio-card h3 {
  margin: 0;
  font-size: 16px;
}

.radio-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.play-button,
.favorite-button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.play-button {
  flex: 1;
  background: var(--blue);
  color: var(--white);
}

.favorite-button {
  width: 42px;
  background: #f2f6fb;
  color: #9aa6b8;
  font-size: 18px;
}

.favorite-button.active {
  color: #f1a600;
  background: #fff5d6;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}

.match-list {
  display: grid;
  gap: 10px;
}

.match-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.match-card strong,
.live-match strong {
  display: block;
}

.league {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.match-time,
.live-match small {
  color: var(--muted);
}

.side-panel,
.favorites-box,
.admin-card,
.stats-card {
  padding: 18px;
}

.side-panel h3 {
  margin-top: 0;
}

.live-match {
  border-left: 4px solid var(--red);
  padding: 10px 0 10px 12px;
  margin-bottom: 14px;
  background: #fff7f7;
}

.segment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segment-chip {
  border: 0;
  cursor: pointer;
}

.suggested-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.mini-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.mini-radio-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.client-radio-share {
  align-items: stretch;
  flex-wrap: wrap;
}

.request-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.request-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfe;
}

.request-item .primary-button,
.request-item .secondary-button {
  justify-self: start;
}

.request-item span,
.request-item small {
  color: var(--muted);
}

.mini-radio .station-logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  font-size: 16px;
}

.share-player-main {
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 40px 14px 130px;
}

.share-player-card {
  width: min(720px, 100%);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.share-player-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 18px;
  font-size: 34px;
}

.share-player-card h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
}

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

.share-player-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.share-player-card .secondary-button,
.share-player-card .ghost-button {
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 120px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 14px;
  color: var(--blue-dark);
  font-weight: 800;
}

.player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 12px max(14px, calc((100vw - 1180px) / 2));
  background: var(--player-bg);
  color: var(--white);
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.26);
}

.now-playing,
.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.now-playing strong,
.now-playing span,
.now-playing small {
  display: block;
}

.now-playing span,
.now-playing small,
.volume-control label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.round-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.volume-control {
  display: grid;
  gap: 3px;
}

.volume-control input {
  width: 150px;
  padding: 0;
}

.login-modal {
  width: min(430px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 10px;
}

.login-modal::backdrop {
  background: rgba(10, 26, 44, 0.55);
}

.modal-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.modal-card h2,
.modal-card p {
  margin: 0;
}

.modal-close {
  justify-self: end;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef4fb;
  cursor: pointer;
  font-size: 22px;
}

.admin-main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 100px;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
}

.admin-hero h1 {
  margin: 0;
  font-size: 34px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.check-row input {
  width: auto;
}

.form-actions,
.admin-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: #eaf4fc;
  color: var(--blue-dark);
  font-size: 13px;
}

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

.admin-table .actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-radio-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.admin-radio-cell .station-logo {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  font-size: 15px;
}

.ticket-proof {
  width: 120px;
  max-height: 90px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

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

.stats-card span {
  color: var(--muted);
}

.settings-card {
  margin-bottom: 18px;
}

.settings-card h3 {
  margin: 8px 0 0;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.color-field input {
  height: 46px;
  padding: 4px;
}

.empty-state {
  color: var(--muted);
  padding: 20px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero,
  .two-column,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 480px;
  }

  .section-title,
  .admin-hero,
  .site-footer,
  .player-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .player-controls {
    justify-content: space-between;
  }

  .admin-row,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .radio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .radio-card {
    min-height: 235px;
  }

  .match-card {
    grid-template-columns: 1fr;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}
