:root {
  color-scheme: light;
  --br-ink: #101820;
  --br-ink-soft: #34414c;
  --br-muted: #66727d;
  --br-bg: #f6f8fb;
  --br-bg-deep: #eaf0f5;
  --br-surface: #ffffff;
  --br-surface-soft: #f8fafc;
  --br-line: #dde4ea;
  --br-blue: #24506f;
  --br-blue-deep: #152838;
  --br-green: #16805a;
  --br-green-deep: #0f6043;
  --br-yellow: #ffd84d;
  --br-yellow-deep: #f2c230;
  --br-coral: #df6a4f;
  --br-danger: #b42318;
  --shadow-xs: 0 2px 8px rgba(16, 24, 32, 0.05);
  --shadow-sm: 0 12px 32px rgba(16, 24, 32, 0.08);
  --shadow-md: 0 20px 52px rgba(16, 24, 32, 0.11);
  --shadow-lg: 0 30px 78px rgba(16, 24, 32, 0.15);
  --br-tech-glow: 0 0 0 1px rgba(36, 80, 111, 0.08), 0 22px 58px rgba(16, 24, 32, 0.1);
  --radius: 8px;
  --header-height: 78px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 112px;
  background: linear-gradient(180deg, #ffffff 0%, var(--br-bg) 52%, var(--br-bg-deep) 100%);
  color: var(--br-ink);
  font-size: 15px;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.app-shell {
  position: relative;
  overflow: clip;
}

.app-shell::before {
  display: none;
  content: "";
}

.app-container {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
  padding-inline: 0;
}

.min-w-0 {
  min-width: 0;
}

.site-header {
  min-height: var(--header-height);
  border-bottom: 1px solid var(--br-line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(16, 24, 32, 0.07);
  backdrop-filter: blur(18px);
}

.navbar-toggler {
  border: 1px solid var(--br-line);
  background: var(--br-surface-soft);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 4px rgba(255, 216, 77, 0.22);
}

.navbar-toggler-icon {
  filter: none;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--br-ink);
}

.brand-link:hover,
.brand-link:focus {
  color: var(--br-ink);
}

.brand-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--br-yellow);
  color: var(--br-blue-deep);
  font-size: 1.14rem;
  box-shadow: inset 0 -3px 0 rgba(16, 24, 32, 0.08), var(--shadow-xs);
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 1.18rem;
  line-height: 1;
  font-weight: 900;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--br-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.site-header .nav-link {
  position: relative;
  margin: 0 0.18rem;
  color: var(--br-muted);
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 180ms var(--ease);
}

.site-header .nav-link::after {
  position: absolute;
  right: 0.75rem;
  bottom: 0.28rem;
  left: 0.75rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  border-radius: 999px;
  background: var(--br-green);
  content: "";
  transition: transform 180ms var(--ease);
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--br-ink);
}

.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  min-height: 42px;
  border-radius: var(--radius);
  font-weight: 900;
}

.btn-soft,
.btn-primary-depth,
.btn-brand-yellow,
.btn-outline-depth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.btn-soft {
  background: var(--br-surface-soft);
  color: var(--br-ink);
  border: 1px solid var(--br-line);
}

.btn-soft strong {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--br-yellow);
  color: var(--br-blue-deep);
  font-size: 0.75rem;
}

.btn-soft:hover,
.btn-soft:focus-visible,
.btn-soft.active {
  background: #ffffff;
  color: var(--br-green-deep);
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.btn-primary-depth {
  background: var(--br-green);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}

.btn-primary-depth:hover,
.btn-primary-depth:focus-visible {
  background: var(--br-green-deep);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-brand-yellow {
  background: var(--br-yellow);
  color: var(--br-blue-deep);
  box-shadow: var(--shadow-xs);
}

.btn-brand-yellow:hover,
.btn-brand-yellow:focus-visible {
  background: var(--br-yellow-deep);
  color: var(--br-blue-deep);
  transform: translateY(-1px);
}

.btn-outline-depth {
  border: 1px solid rgba(17, 63, 103, 0.16);
  background: #ffffff;
  color: var(--br-blue);
  box-shadow: var(--shadow-xs);
}

.btn-outline-depth:hover,
.btn-outline-depth:focus-visible {
  border-color: rgba(28, 140, 85, 0.42);
  background: var(--br-surface-soft);
  color: var(--br-green-deep);
  transform: translateY(-1px);
}

.hero-section {
  padding: 48px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  align-content: center;
  min-height: 404px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--br-line);
  border-radius: var(--radius);
  background: var(--br-surface);
  box-shadow: var(--br-tech-glow);
}

.hero-title {
  max-width: 850px;
  margin: 0;
  color: var(--br-blue-deep);
  font-size: clamp(2.25rem, 4.7vw, 4.35rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--br-ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.75;
}

.search-box {
  max-width: 780px;
  margin-top: 32px;
}

.search-box .input-group {
  padding: 8px;
  border: 1px solid rgba(17, 63, 103, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.search-box .input-group:focus-within {
  border-color: rgba(28, 140, 85, 0.45);
  box-shadow: var(--shadow-sm), 0 0 0 4px rgba(28, 140, 85, 0.1);
  transform: translateY(-1px);
}

.search-box .input-group-text,
.search-box .form-control {
  border: 0;
  background: transparent;
  color: var(--br-ink);
}

.search-box .input-group-text {
  color: var(--br-green);
}

.search-box .form-control {
  min-width: 0;
  font-size: 1rem;
}

.search-box .form-control:focus {
  box-shadow: none;
}

.search-box .btn {
  padding-inline: 24px;
}

.quick-filters,
.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-filters {
  margin-top: 22px;
}

.quick-filter,
.region-tab {
  min-height: 40px;
  border: 1px solid rgba(17, 63, 103, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--br-blue);
  padding: 0 14px;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: var(--shadow-xs);
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.quick-filter:hover,
.quick-filter.active,
.region-tab:hover,
.region-tab[aria-selected="true"] {
  border-color: rgba(255, 216, 77, 0.72);
  background: var(--br-yellow);
  color: var(--br-blue-deep);
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.quick-filter:focus-visible,
.region-tab:focus-visible,
.category-button:focus-visible,
.station-card button:focus-visible,
.ranking-item:focus-visible,
.player-icon-btn:focus-visible,
.player-main-btn:focus-visible,
.play-button:focus-visible,
.panel-action-btn:focus-visible,
.feature-pill:focus-visible {
  outline: 3px solid rgba(17, 63, 103, 0.24);
  outline-offset: 2px;
}

.now-playing-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 404px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--br-line);
  border-radius: var(--radius);
  background: var(--br-surface);
  color: var(--br-ink);
  box-shadow: var(--br-tech-glow);
}

.now-playing-card::before {
  display: none;
}

.now-playing-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--br-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.now-playing-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 44px;
}

.station-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 950;
}

.station-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.station-logo-large {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  background: var(--br-yellow);
  color: var(--br-blue-deep);
  font-size: 1.7rem;
  box-shadow: inset 0 -6px 0 rgba(16, 24, 32, 0.08), var(--shadow-sm);
}

.now-playing-main h2 {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--br-ink);
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  font-weight: 950;
  line-height: 1.04;
}

.now-playing-main p {
  margin: 10px 0 0;
  color: var(--br-muted);
  line-height: 1.45;
}

.section-kicker {
  color: var(--br-green);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.now-playing-card .section-kicker {
  color: var(--br-green);
}

.wave-bars {
  position: relative;
  z-index: 1;
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 34px;
}

.wave-bars span {
  width: 5px;
  border-radius: 999px;
  background: var(--br-green);
  animation: wave 1.2s ease-in-out infinite;
}

.wave-bars span:nth-child(1) { height: 16px; animation-delay: 0s; }
.wave-bars span:nth-child(2) { height: 30px; animation-delay: 0.05s; }
.wave-bars span:nth-child(3) { height: 44px; animation-delay: 0.1s; }
.wave-bars span:nth-child(4) { height: 24px; animation-delay: 0.15s; }
.wave-bars span:nth-child(5) { height: 38px; animation-delay: 0.2s; }
.wave-bars span:nth-child(6) { height: 50px; animation-delay: 0.25s; }
.wave-bars span:nth-child(7) { height: 28px; animation-delay: 0.3s; }
.wave-bars span:nth-child(8) { height: 42px; animation-delay: 0.35s; }
.wave-bars span:nth-child(9) { height: 22px; animation-delay: 0.4s; }
.wave-bars span:nth-child(10) { height: 36px; animation-delay: 0.45s; }
.wave-bars span:nth-child(11) { height: 48px; animation-delay: 0.5s; }
.wave-bars span:nth-child(12) { height: 26px; animation-delay: 0.55s; }
.wave-bars span:nth-child(13) { height: 18px; animation-delay: 0.6s; }
.wave-bars span:nth-child(14) { height: 40px; animation-delay: 0.65s; }
.wave-bars span:nth-child(15) { height: 30px; animation-delay: 0.7s; }

@keyframes wave {
  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.55);
  }
}

.play-button {
  position: relative;
  z-index: 1;
  display: flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border: 0;
  border-radius: 999px;
  background: var(--br-yellow);
  color: var(--br-blue-deep);
  font-size: 2rem;
  box-shadow: var(--shadow-sm), inset 0 -5px 0 rgba(16, 24, 32, 0.08);
  transition: box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.play-button:hover {
  box-shadow: var(--shadow-md), inset 0 -5px 0 rgba(16, 24, 32, 0.08);
  transform: translateY(-2px);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat-card {
  min-height: 104px;
  padding: 22px;
  border: 1px solid rgba(17, 63, 103, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-card strong,
.stat-card span {
  display: block;
}

.stat-card strong {
  color: var(--br-blue);
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
}

.stat-card span {
  margin-top: 10px;
  color: var(--br-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.content-section {
  padding: 44px 0 26px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.station-heading h2 {
  margin: 0;
  color: var(--br-blue-deep);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 950;
  line-height: 1.04;
}

.section-heading p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--br-muted);
  line-height: 1.65;
}

.explore-grid {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(280px, 330px);
  gap: 18px;
  align-items: start;
}

.browse-panel,
.stations-panel,
.ranking-card {
  border: 1px solid var(--br-line);
  border-radius: var(--radius);
  background: var(--br-surface);
  box-shadow: var(--br-tech-glow);
}

.browse-panel,
.ranking-card {
  position: sticky;
  top: calc(var(--header-height) + 18px);
}

.browse-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.panel-block + .panel-block {
  padding-top: 12px;
  border-top: 1px solid var(--br-line);
}

.panel-block h3,
.panel-heading-inline h3 {
  margin: 0 0 10px;
  color: var(--br-ink);
  font-size: 0.95rem;
  font-weight: 950;
}

.panel-heading-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-heading-inline span {
  color: var(--br-muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.region-tabs {
  max-height: 206px;
  overflow: auto;
  padding-right: 2px;
}

.category-grid {
  display: grid;
  gap: 6px;
}

.category-button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(17, 63, 103, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--br-blue);
  padding: 6px 10px;
  box-shadow: var(--shadow-xs);
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.category-button:hover,
.category-button.active {
  border-color: rgba(28, 140, 85, 0.42);
  background: var(--br-surface-soft);
  color: var(--br-green-deep);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.category-button.active {
  border-color: rgba(255, 216, 77, 0.72);
  background: var(--br-yellow);
  color: var(--br-blue-deep);
}

.category-button-main {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  font-weight: 950;
}

.category-button-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-button i {
  font-size: 1rem;
  flex: 0 0 auto;
}

.category-button strong {
  display: inline-grid;
  min-width: 30px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(36, 80, 111, 0.08);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 950;
}

.stations-panel {
  min-width: 0;
  padding: 20px;
}

.station-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.station-heading .section-kicker {
  margin: 0 0 8px;
}

.station-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.station-tools .form-select {
  min-width: 154px;
  min-height: 42px;
  border-color: rgba(17, 63, 103, 0.14);
  border-radius: var(--radius);
  color: var(--br-ink);
  font-weight: 800;
  box-shadow: var(--shadow-xs);
}

.station-tools .form-select:focus {
  border-color: rgba(28, 140, 85, 0.48);
  box-shadow: 0 0 0 4px rgba(28, 140, 85, 0.1), var(--shadow-sm);
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.station-grid > [class*="col-"] {
  width: 100%;
}

.station-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--br-line);
}

.station-pagination p {
  margin: 0;
  color: var(--br-muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pagination-action,
.pagination-page {
  display: inline-grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(17, 63, 103, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--br-blue);
  font-size: 0.86rem;
  font-weight: 950;
  box-shadow: var(--shadow-xs);
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.pagination-action:hover,
.pagination-page:hover,
.pagination-page[aria-current="page"] {
  border-color: rgba(255, 216, 77, 0.72);
  background: var(--br-yellow);
  color: var(--br-blue-deep);
  transform: translateY(-1px);
}

.pagination-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.pagination-gap {
  display: inline-grid;
  min-width: 22px;
  height: 38px;
  place-items: center;
  color: var(--br-muted);
  font-weight: 900;
}

.station-card {
  height: 100%;
  padding: 17px;
  border: 1px solid rgba(17, 63, 103, 0.1);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.station-card:hover,
.station-card.active {
  border-color: var(--station-color, var(--br-green));
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.station-card-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.12), var(--shadow-xs);
}

.station-card h3 {
  overflow: hidden;
  margin: 0 0 5px;
  color: var(--br-ink);
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-meta,
.station-listeners,
.station-description {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 0.8rem;
}

.station-meta {
  color: var(--br-muted);
}

.station-listeners {
  margin-top: 7px;
  color: var(--br-green-deep);
  font-weight: 900;
}

.station-description {
  display: block;
  overflow: hidden;
  margin-top: 12px;
  color: var(--br-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.station-actions .btn-brand-blue {
  min-height: 36px;
  border: 0;
  border-radius: var(--radius) !important;
  background: var(--br-blue);
  color: #ffffff;
  font-size: 0.82rem;
  box-shadow: var(--shadow-xs);
  transition: background 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.station-actions .btn-brand-blue:hover,
.station-actions .btn-brand-blue:focus-visible {
  background: var(--br-blue-deep);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.favorite-btn {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--br-green);
  font-size: 1.05rem;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

.favorite-btn:hover {
  background: rgba(28, 140, 85, 0.08);
  transform: translateY(-1px);
}

.favorite-btn.active {
  color: var(--br-coral);
}

.ranking-card {
  overflow: hidden;
}

.ranking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--br-line);
  background: var(--br-surface-soft);
  color: var(--br-ink);
}

.ranking-header h2,
.ranking-header p {
  margin: 0;
}

.ranking-header h2 {
  font-size: 1.45rem;
  font-weight: 950;
}

.ranking-header p {
  margin-top: 5px;
  color: var(--br-muted);
  font-weight: 700;
}

.ranking-header i {
  color: var(--br-yellow);
  font-size: 1.15rem;
}

.ranking-list {
  padding: 14px;
}

.ranking-empty {
  padding: 22px 12px;
  color: var(--br-muted);
  font-weight: 800;
  text-align: center;
}

.ranking-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 13px 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  transition: background 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.ranking-item:hover,
.ranking-item.active {
  background: var(--br-surface-soft);
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.ranking-number {
  width: 32px;
  color: #9aa9ae;
  font-size: 0.92rem;
  font-weight: 950;
}

.ranking-item:first-child .ranking-number {
  color: var(--br-green);
}

.ranking-title {
  display: block;
  overflow: hidden;
  color: var(--br-ink);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-meta {
  color: var(--br-muted);
  font-size: 0.76rem;
}

.ranking-listeners {
  margin-left: auto;
  color: var(--br-green-deep);
  font-size: 0.8rem;
  font-weight: 950;
}

.product-section {
  padding: 56px 0 60px;
}

.product-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--br-line);
  border-radius: var(--radius);
  background: var(--br-surface);
  color: var(--br-ink);
  box-shadow: var(--br-tech-glow);
}

.product-box h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 950;
}

.product-box p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--br-muted);
  line-height: 1.7;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature-pill {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--br-blue-deep);
  font-weight: 950;
  box-shadow: var(--shadow-xs);
  transition: background 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.feature-pill:hover {
  background: #ffffff;
  color: var(--br-green-deep);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.empty-state,
.loading-state,
.error-state {
  margin-top: 20px;
  padding: 38px;
  border: 1px dashed var(--br-line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--br-muted);
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.empty-state i,
.loading-state i {
  color: var(--br-green);
  font-size: 2rem;
}

.empty-state h3,
.loading-state h3 {
  margin-top: 14px;
  color: var(--br-ink);
  font-weight: 950;
}

.empty-state p,
.loading-state p,
.error-state p {
  margin-bottom: 0;
  color: var(--br-muted);
}

.error-state {
  color: var(--br-danger);
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 16px;
  border: 4px solid rgba(28, 140, 85, 0.16);
  border-top-color: var(--br-green);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.floating-player {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 1080;
  width: min(440px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--br-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--br-ink);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  transition: width 220ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}

.floating-player:hover {
  box-shadow: 0 30px 72px rgba(16, 24, 32, 0.16);
}

.floating-player.is-expanded {
  width: min(520px, calc(100vw - 28px));
}

.mini-player-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.player-station {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.player-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--br-yellow);
  color: var(--br-blue-deep);
  box-shadow: inset 0 -4px 0 rgba(16, 24, 32, 0.08);
}

.player-station strong,
.player-station span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-station strong {
  color: var(--br-ink);
  font-size: 0.98rem;
  line-height: 1.16;
  font-weight: 950;
}

.player-station span {
  margin-top: 6px;
  color: var(--br-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-icon-btn,
.player-main-btn,
.panel-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  transition: background 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.player-icon-btn {
  width: 40px;
  height: 40px;
  background: var(--br-surface-soft);
  color: var(--br-muted);
  font-size: 0.98rem;
}

.player-icon-btn:hover {
  background: #ffffff;
  color: var(--br-green-deep);
  transform: translateY(-1px);
}

.player-main-btn {
  width: 52px;
  height: 52px;
  background: var(--br-yellow);
  color: var(--br-blue-deep);
  font-size: 1.35rem;
  box-shadow: var(--shadow-sm), inset 0 -4px 0 rgba(16, 24, 32, 0.08);
}

.player-main-btn:hover {
  background: #ffe173;
  transform: translateY(-2px);
}

.player-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  height: 0;
  max-height: 0;
  padding: 0 12px;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: height 220ms var(--ease), padding 220ms var(--ease), border-color 220ms var(--ease);
}

.floating-player.is-expanded .player-panel,
.player-panel.is-open {
  height: 53px !important;
  max-height: none !important;
  padding: 0 12px 12px !important;
  border-top-color: var(--br-line) !important;
}

.panel-action-btn {
  min-height: 40px;
  gap: 8px;
  padding: 0 14px;
  background: var(--br-surface-soft);
  color: var(--br-ink);
  font-weight: 900;
}

.panel-action-btn:hover {
  background: #ffffff;
  color: var(--br-green-deep);
}

.player-volume {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  margin: 0;
  color: var(--br-muted);
}

.player-volume input {
  width: 100%;
  accent-color: var(--br-yellow);
}

.player-volume span {
  font-size: 0.82rem;
  font-weight: 950;
}

.floating-player.is-expanded #playerExpandButton i {
  transform: rotate(180deg);
}

#playerExpandButton i {
  transition: transform 180ms var(--ease);
}

@media (max-width: 1160px) {
  .hero-grid,
  .explore-grid,
  .product-box {
    grid-template-columns: 1fr;
  }

  .browse-panel,
  .ranking-card {
    position: static;
  }

  .browse-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-block + .panel-block {
    padding-top: 0;
    border-top: 0;
  }

  .region-tabs {
    max-height: 212px;
  }
}

@media (max-width: 820px) {
  .app-container {
    width: min(100% - 24px, 1240px);
  }

  .site-header .navbar-collapse {
    padding: 14px 0 4px;
  }

  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-section {
    padding-top: 46px;
  }

  .hero-copy,
  .now-playing-card {
    min-height: auto;
  }

  .stats-strip,
  .browse-panel,
  .station-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .station-heading,
  .station-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .station-tools {
    width: 100%;
  }

  .region-tabs {
    max-height: none;
  }

  .station-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  body {
    padding-bottom: 104px;
  }

  .hero-copy,
  .now-playing-card,
  .stations-panel,
  .product-box {
    padding: 22px;
  }

  .search-box .input-group {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .search-box .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .now-playing-main {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .station-logo-large {
    width: 76px;
    height: 76px;
    font-size: 1.25rem;
  }

  .floating-player {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
  }

  .floating-player.is-expanded {
    width: auto;
  }

  .mini-player-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
  }

  .player-station {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .player-logo {
    width: 44px;
    height: 44px;
  }

  .optional-control {
    display: none;
  }

  .player-main-btn {
    width: 48px;
    height: 48px;
  }

  .player-icon-btn {
    width: 38px;
    height: 38px;
  }

  .player-panel {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
