:root {
  --bg-0: #050914;
  --bg-1: #0b1230;
  --bg-2: #101a44;
  --ink: #e9f3ff;
  --muted: #9db2ce;
  --line: #223763;
  --card: rgba(10, 19, 42, 0.78);
  --card-2: rgba(12, 24, 54, 0.85);
  --brand: #2de2e6;
  --brand-2: #4fffb3;
  --warn: #ffb454;
  --danger: #ff6b8b;
  --ok: #6dffbf;
  --glow: 0 0 0 1px rgba(45, 226, 230, 0.18), 0 16px 40px rgba(5, 10, 28, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(1000px 600px at 10% 0%, rgba(46, 230, 231, 0.17), transparent 65%),
    radial-gradient(860px 620px at 100% 8%, rgba(109, 255, 191, 0.13), transparent 70%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 48%, var(--bg-2) 100%);
  color: var(--ink);
  font-family: "Bahnschrift", "Trebuchet MS", "Franklin Gothic Medium", sans-serif;
  min-height: 100vh;
  line-height: 1.4;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 226, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 226, 230, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 30%, #000 25%, transparent 85%);
  z-index: -2;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(50px);
  opacity: 0.65;
  animation: floatPulse 9s ease-in-out infinite;
}

.bg-shape-a {
  width: 440px;
  height: 440px;
  top: -130px;
  right: -90px;
  background: #33d6ff;
  border-radius: 42% 58% 38% 62% / 45% 48% 52% 55%;
}

.bg-shape-b {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: -100px;
  background: #34ffad;
  border-radius: 67% 33% 55% 45% / 44% 39% 61% 56%;
  animation-delay: -4s;
}

.topbar,
.page,
.footer {
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.topbar {
  padding-top: 24px;
  padding-bottom: 10px;
}

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

.brand h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  letter-spacing: 0.3px;
}

.brand-dot {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(45, 226, 230, 0.18), 0 0 20px rgba(79, 255, 179, 0.8);
}

.subtitle {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 1.02rem;
  max-width: 700px;
}

.mode-bar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-bar span {
  border: 1px solid #2a4f89;
  background: rgba(16, 34, 73, 0.65);
  color: #9ed6ff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
}

.page {
  padding-top: 8px;
  padding-bottom: 26px;
}

.card {
  background: linear-gradient(180deg, rgba(14, 27, 60, 0.88), rgba(10, 20, 46, 0.88));
  border: 1px solid rgba(57, 96, 160, 0.45);
  border-radius: 18px;
  box-shadow: var(--glow);
  backdrop-filter: blur(8px);
}

.hero {
  padding: 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  border: 1px solid #2b4577;
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(18, 35, 72, 0.85), rgba(12, 25, 52, 0.85));
}

.stat-label {
  font-size: 0.8rem;
  color: #9db3d2;
  margin: 0;
}

.stat-value {
  margin: 4px 0 0;
  font-size: 1.8rem;
  letter-spacing: 0.4px;
  font-weight: 700;
  color: #ffffff;
}

.search-row {
  margin-top: 12px;
}

.search-input {
  border: 1px solid #33558d;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  color: #edf6ff;
  background: rgba(11, 25, 55, 0.9);
  padding: 12px 13px;
  width: 100%;
}

.search-input::placeholder {
  color: #84a4ca;
}

.search-input:focus {
  border-color: #35dce7;
  box-shadow: 0 0 0 4px rgba(45, 226, 230, 0.2);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-btn {
  border: 1px solid #365d99;
  border-radius: 999px;
  background: rgba(11, 27, 61, 0.78);
  color: #dcecff;
  padding: 7px 11px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 180ms ease;
}

.filter-btn:hover {
  border-color: #4e7ac1;
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(45, 226, 230, 0.25), rgba(79, 255, 179, 0.22));
  border-color: #4cffd4;
  color: #d8fff5;
}

.updated-text {
  margin: 11px 2px 0;
  color: #a7bbd8;
  font-size: 0.84rem;
}

.ad-slot {
  margin-top: 12px;
  padding: 14px;
  border-style: dashed;
  border-color: #35588f;
  text-align: center;
  color: #a7c3e8;
  font-size: 0.9rem;
}

.list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.item {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(10px);
  opacity: 0;
  animation: rise 420ms ease forwards;
}

.item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.chip {
  font-size: 0.74rem;
  border-radius: 999px;
  padding: 4px 9px;
  border: 1px solid #2f4d7f;
  color: #d3e6ff;
  background: rgba(13, 28, 61, 0.85);
}

.chip-status.status-danger {
  border-color: rgba(255, 107, 139, 0.45);
  background: rgba(255, 107, 139, 0.16);
  color: #ffc3d1;
}

.chip-status.status-warn {
  border-color: rgba(255, 180, 84, 0.5);
  background: rgba(255, 180, 84, 0.16);
  color: #ffdca5;
}

.chip-status.status-ok {
  border-color: rgba(109, 255, 191, 0.48);
  background: rgba(109, 255, 191, 0.15);
  color: #c7ffe5;
}

.item-title {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.35;
}

.item-note {
  margin: 0;
  color: #a4b8d3;
  font-size: 0.92rem;
  min-height: 42px;
}

.count-box {
  background: linear-gradient(180deg, rgba(23, 60, 92, 0.8), rgba(18, 44, 74, 0.82));
  border: 1px solid rgba(54, 234, 220, 0.45);
  border-radius: 12px;
  padding: 9px 10px;
  display: grid;
  gap: 2px;
}

.count-value {
  font-size: 1.34rem;
}

.count-label {
  font-size: 0.82rem;
  color: #9fe8f1;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 0.84rem;
  color: #9db3d2;
}

.source-link {
  color: #52f2d4;
  text-decoration: none;
  font-weight: 700;
}

.source-link:hover {
  text-decoration: underline;
}

.item-actions {
  display: flex;
  gap: 8px;
  margin-top: 3px;
}

.track-btn,
.cal-btn {
  border: 1px solid #345a94;
  background: rgba(11, 27, 61, 0.78);
  color: #e2efff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

.track-btn:hover,
.cal-btn:hover {
  border-color: #4f7cc2;
}

.track-btn.active {
  border-color: #52f2d4;
  background: rgba(45, 226, 230, 0.2);
  color: #cffff5;
  font-weight: 700;
}

.empty {
  padding: 18px;
  text-align: center;
  color: #a9bfdc;
}

.footer {
  margin-top: 14px;
  margin-bottom: 22px;
  color: #9fb5d4;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 14px;
}

.footer-nav a {
  color: #73ffd8;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.radio-dock {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 430px;
  padding: 12px;
  z-index: 1200;
  border-radius: 20px;
  border: 1px solid rgba(95, 150, 235, 0.55);
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(58, 218, 255, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(10, 23, 53, 0.94), rgba(7, 16, 38, 0.96));
  box-shadow: 0 18px 36px rgba(1, 6, 20, 0.74), 0 0 0 1px rgba(47, 226, 232, 0.2);
}

.radio-dock-head {
  margin-bottom: 7px;
}

.radio-dock-kicker {
  margin: 0;
  color: #6dffe8;
  font-size: 0.74rem;
  letter-spacing: 0.8px;
  font-weight: 700;
  text-transform: uppercase;
}

.radio-dock-title {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: #d9e9ff;
  line-height: 1.3;
  min-height: 2.2em;
}

.radio-dock-eq {
  display: flex;
  gap: 4px;
  align-items: end;
  margin-bottom: 8px;
  height: 16px;
}

.radio-dock-eq span {
  width: 4px;
  border-radius: 6px;
  background: linear-gradient(180deg, #72fff6, #3f7dff);
  height: 40%;
  animation: eqBounce 1200ms ease-in-out infinite;
}

.radio-dock-eq span:nth-child(2) { animation-delay: 120ms; }
.radio-dock-eq span:nth-child(3) { animation-delay: 240ms; }
.radio-dock-eq span:nth-child(4) { animation-delay: 360ms; }
.radio-dock-eq span:nth-child(5) { animation-delay: 500ms; }
.radio-dock-eq span:nth-child(6) { animation-delay: 640ms; }
.radio-dock-eq span:nth-child(7) { animation-delay: 760ms; }

.radio-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 48%;
  border-radius: 12px;
  overflow: hidden;
  background: #020611;
  border: 1px solid #2f4f84;
}

.mini-yt-player {
  position: absolute;
  inset: 0;
}

.mini-yt-player iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.radio-dock-controls {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.radio-dock-controls button {
  border: 1px solid #325992;
  background: rgba(12, 29, 64, 0.9);
  color: #dcecff;
  border-radius: 9px;
  padding: 7px 6px;
  font-size: 0.73rem;
  cursor: pointer;
}

.radio-dock-controls button:hover {
  border-color: #4e7dc8;
}

.radio-dock-controls button.active {
  border-color: #52f2d4;
  background: rgba(45, 226, 230, 0.2);
  color: #c8fff1;
  font-weight: 700;
}

.radio-dock-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-dock-link {
  color: #6effcf;
  font-size: 0.78rem;
  text-decoration: none;
  font-weight: 700;
}

.radio-dock-link:hover {
  text-decoration: underline;
}

.dock-panels {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.dock-panel {
  border: 1px solid #2f568f;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(12, 27, 61, 0.84), rgba(9, 20, 44, 0.86));
  padding: 10px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.panel-logo {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  flex: 0 0 auto;
}

.zodiac-strip {
  margin-top: 0;
}

.zodiac-strip-head {
  color: #b7cfff;
  font-size: 0.72rem;
  margin-bottom: 0;
}

.zodiac-strip-head strong {
  color: #7dfff0;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.zodiac-marquee {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

.zodiac-marquee::-webkit-scrollbar {
  display: none;
}

.zodiac-track {
  display: flex;
  gap: 8px;
  min-width: max-content;
  animation: zodiacScroll 56s linear infinite;
}

.zodiac-track:nth-child(2) {
  animation-delay: -28s;
}

.zodiac-chip {
  min-width: 220px;
  max-width: 220px;
  border: 1px solid #355b98;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(17, 34, 72, 0.86), rgba(11, 23, 48, 0.9));
  padding: 7px;
}

.zodiac-chip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.zodiac-sign-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.zodiac-glyph {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(125, 255, 240, 0.5);
  background: rgba(125, 255, 240, 0.12);
  color: #bffcf7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex: 0 0 auto;
}

.zodiac-sign {
  color: #dff3ff;
  font-size: 0.76rem;
  font-weight: 700;
}

.zodiac-badge {
  border: 1px solid rgba(109, 255, 191, 0.45);
  color: #87ffd4;
  background: rgba(109, 255, 191, 0.12);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.62rem;
}

.zodiac-text {
  margin: 0;
  color: #aac0de;
  font-size: 0.72rem;
  line-height: 1.3;
  min-height: 6.2em;
  display: block;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.zodiac-title {
  margin: 0 0 4px;
  color: #8ef7ec;
  font-size: 0.63rem;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.dock-module-title {
  margin: 0;
  color: #9dd5ff;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.dock-module-note {
  margin: 4px 0 0;
  color: #93a9c8;
  font-size: 0.72rem;
  line-height: 1.35;
}

.dock-module-subtitle {
  margin: 8px 0 6px;
  color: #9dd5ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.market-marquee {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

.market-marquee::-webkit-scrollbar {
  display: none;
}

.scores-marquee {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: none;
  cursor: grab;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

.scores-marquee::-webkit-scrollbar {
  display: none;
}

.zodiac-marquee.dragging,
.market-marquee.dragging,
.scores-marquee.dragging {
  cursor: grabbing;
  user-select: none;
}

.zodiac-marquee.manual .zodiac-track,
.zodiac-marquee.dragging .zodiac-track,
.market-marquee.manual .market-track,
.market-marquee.dragging .market-track,
.scores-marquee.manual .scores-track,
.scores-marquee.dragging .scores-track {
  animation-play-state: paused;
}

.market-track,
.scores-track {
  display: flex;
  gap: 6px;
  min-width: max-content;
}

.market-track {
  animation: marketScroll 40s linear infinite;
}

.scores-track {
  animation: scoreScroll 56s linear infinite;
}

.market-track:nth-child(2) {
  animation-delay: -20s;
}

.scores-track:nth-child(2) {
  animation-delay: -28s;
}

.scores-nav {
  margin: 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.scores-nav button {
  border: 1px solid #3b62a3;
  background: rgba(13, 29, 64, 0.9);
  color: #bde9ff;
  border-radius: 7px;
  width: 30px;
  height: 26px;
  cursor: pointer;
  font-size: 0.78rem;
}

.scores-nav button:hover {
  border-color: #56dbe6;
}

.market-chip {
  min-width: 132px;
  max-width: 132px;
  border: 1px solid #31578f;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(16, 31, 66, 0.9), rgba(10, 22, 47, 0.9));
  padding: 6px;
  display: grid;
  gap: 2px;
}

.market-chip-head {
  display: flex;
  align-items: center;
  gap: 4px;
}

.market-chip-logo {
  min-width: 20px;
  height: 17px;
  border-radius: 999px;
  border: 1px solid rgba(125, 255, 240, 0.5);
  background: rgba(125, 255, 240, 0.14);
  color: #cbfff8;
  font-size: 0.58rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-weight: 700;
}

.market-chip-name {
  color: #a7c5ea;
  font-size: 0.62rem;
  letter-spacing: 0.35px;
  white-space: nowrap;
}

.market-chip-value {
  color: #dff7ff;
  font-size: 0.88rem;
}

.score-card {
  min-width: 262px;
  max-width: 262px;
  border: 1px solid #345b99;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(17, 35, 73, 0.88), rgba(11, 23, 48, 0.9));
  padding: 7px;
  scroll-snap-align: start;
}

.score-card.loading {
  color: #9ab2d4;
  font-size: 0.72rem;
}

.score-head {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  align-items: center;
  margin-bottom: 3px;
}

.score-country {
  color: #8fffe3;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.35px;
}

.score-league {
  color: #8fffe3;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.score-line {
  margin: 0;
  color: #dcecff;
  font-size: 0.72rem;
  line-height: 1.35;
}

.score-date {
  margin-top: 4px;
  display: block;
  color: #87a4ca;
  font-size: 0.62rem;
}

.score-teams {
  display: grid;
  gap: 4px;
  margin: 4px 0;
}

.team-line {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 5px;
}

.team-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(18, 39, 75, 0.95);
  border: 1px solid #4168a8;
}

.team-name {
  color: #dcecff;
  font-size: 0.69rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-score {
  color: #f1f7ff;
  font-size: 0.79rem;
  font-weight: 700;
}

.form-bars {
  margin-top: 5px;
  display: flex;
  gap: 3px;
}

.form-bar {
  width: 11px;
  height: 5px;
  border-radius: 999px;
  background: #334f82;
}

.form-bar.win {
  background: #2bff9d;
}

.form-bar.draw {
  background: #9ec4ff;
}

.form-bar.loss {
  background: #ff5d7c;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.04); }
}

@keyframes eqBounce {
  0%, 100% { height: 28%; }
  35% { height: 100%; }
  65% { height: 50%; }
}

@keyframes zodiacScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 8px)); }
}

@keyframes marketScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 6px)); }
}

@keyframes scoreScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 6px)); }
}

@media (min-width: 1300px) {
  .topbar,
  .page,
  .footer {
    padding-right: 462px;
  }
}

@media (max-width: 980px) {
  .topbar,
  .page,
  .footer {
    padding-right: 18px;
  }

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

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

  .radio-dock {
    position: static;
    width: min(1220px, calc(100vw - 20px));
    margin: 8px auto 12px;
    right: auto;
    top: auto;
    bottom: auto;
  }
}

@media (max-width: 680px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .item-actions {
    flex-wrap: wrap;
  }

  .radio-dock {
    position: static;
    margin: 8px auto 12px;
    right: auto;
    top: auto;
    bottom: auto;
    width: calc(100vw - 16px);
    padding: 8px;
  }

  .radio-dock-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .zodiac-chip {
    min-width: 188px;
    max-width: 188px;
  }

  .zodiac-text {
    min-height: 7.2em;
  }

  .market-chip {
    min-width: 120px;
    max-width: 120px;
  }

  .score-card {
    min-width: 196px;
    max-width: 196px;
  }
}
