:root {
  --background: #031014;
  --background-deep: #01090d;
  --surface: #061b22;
  --surface-strong: #082a34;
  --surface-soft: #0b3039;
  --foreground: #f8fbfc;
  --muted-foreground: #a7b2b7;
  --teal: #14d9e6;
  --teal-soft: #0a7d88;
  --teal-dark: #06343d;
  --gold: #f3c34e;
  --gold-dark: #b87918;
  --green: #35d081;
  --red: #ff5d5d;
  --border: rgba(20, 217, 230, 0.34);
  --border-strong: rgba(20, 217, 230, 0.68);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color-scheme: dark;
  background: var(--background-deep);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -18%, rgba(20, 217, 230, 0.16), transparent 28rem),
    linear-gradient(180deg, #031116 0%, #020d11 46%, #02151a 100%);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.5;
}

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

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

button {
  color: inherit;
}

img,
iframe,
svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(20, 217, 230, 0.12);
  background: rgba(2, 13, 18, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(430px, auto) minmax(260px, 390px) auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  width: 100%;
  padding: 0 30px;
}

.header-main,
.desktop-nav,
.header-actions {
  display: flex;
  align-items: center;
}

.header-main {
  min-width: 0;
}

.desktop-nav {
  gap: 12px;
  color: rgba(248, 251, 252, 0.76);
  font-size: 18px;
  font-weight: 700;
}

.desktop-nav a,
.mobile-panel a {
  border-radius: 8px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.desktop-nav a {
  padding: 12px 17px;
}

.desktop-nav a:hover,
.desktop-nav .active {
  border: 1px solid rgba(20, 217, 230, 0.45);
  background: linear-gradient(180deg, rgba(20, 217, 230, 0.25), rgba(8, 65, 76, 0.72));
  color: var(--foreground);
}

.desktop-nav a:not(.active) {
  border: 1px solid transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 18px;
  color: var(--foreground);
}

.brand-logo {
  display: block;
  width: 224px;
  max-width: 28vw;
  height: 44px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 12px rgba(20, 217, 230, 0.18));
}

.brand-mark {
  display: none;
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 13px rgba(20, 217, 230, 0.38));
}

.brand-icon {
  width: 31px;
  height: 31px;
  color: var(--teal);
  background: currentColor;
  filter: drop-shadow(0 0 10px rgba(20, 217, 230, 0.45));
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15'/%3E%3Cpath d='M11 12 5.12 2.2'/%3E%3Cpath d='m13 12 5.88-9.8'/%3E%3Cpath d='M8 7h8'/%3E%3Ccircle cx='12' cy='17' r='5'/%3E%3Cpath d='M12 18v-2h-.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.header-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
  height: 50px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(6, 39, 48, 0.84), rgba(2, 17, 23, 0.92));
  color: rgba(248, 251, 252, 0.9);
  padding: 0 20px;
  cursor: pointer;
  box-shadow: inset 0 0 18px rgba(20, 217, 230, 0.08);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.header-search span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 650;
}

.header-search:hover,
.header-search:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 217, 230, 0.12), inset 0 0 18px rgba(20, 217, 230, 0.12);
  outline: none;
}

.header-actions {
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.button,
.icon-button,
.ghost-button,
.chip,
.select,
.link-button {
  border: 1px solid rgba(20, 217, 230, 0.36);
  border-radius: var(--radius);
  background: rgba(4, 24, 31, 0.78);
  color: var(--foreground);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  font-weight: 850;
}

.accent-button {
  border-color: rgba(243, 195, 78, 0.88);
  color: #ffdf75;
  background: rgba(30, 23, 7, 0.58);
  box-shadow: inset 0 0 16px rgba(243, 195, 78, 0.09);
}

.button:hover,
.icon-button:hover,
.ghost-button:hover,
.chip:hover,
.select:hover,
.link-button:hover {
  border-color: var(--teal);
  background: rgba(9, 54, 64, 0.92);
  color: var(--foreground);
}

.accent-button:hover {
  border-color: var(--gold);
  background: rgba(62, 45, 12, 0.72);
  color: #ffe492;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  padding: 0;
  cursor: pointer;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.icon {
  width: 22px;
  height: 22px;
  background: currentColor;
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.icon-menu {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
}

.icon-telegram {
  mask-image: url("data:image/svg+xml,%3Csvg role='img' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.78 15.66 9.4 20.9c.54 0 .78-.23 1.06-.51l2.55-2.44 5.28 3.86c.97.54 1.66.26 1.92-.9l3.49-16.35c.31-1.45-.52-2.02-1.46-1.67L1.72 10.8c-1.4.54-1.38 1.31-.24 1.66l5.25 1.64L18.94 6.45c.57-.38 1.1-.17.67.21z'/%3E%3C/svg%3E");
}

.icon-search {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}

.mobile-only {
  display: none;
}

.mobile-panel {
  position: fixed;
  right: 24px;
  top: 80px;
  z-index: 80;
  display: grid;
  gap: 8px;
  min-width: 240px;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(2, 17, 23, 0.98);
  box-shadow: var(--shadow);
}

.mobile-panel[hidden],
[hidden] {
  display: none !important;
}

.mobile-panel a {
  padding: 11px 12px;
  border-radius: calc(var(--radius) - 2px);
  color: rgba(248, 251, 252, 0.78);
  font-weight: 750;
}

.mobile-panel a:hover,
.mobile-panel .active {
  background: rgba(20, 217, 230, 0.14);
  color: var(--foreground);
}

.page-shell {
  width: 100%;
  min-height: calc(100vh - 72px);
  padding: 8px 84px 48px;
  overflow: hidden;
}

.section {
  margin-top: 10px;
}

.section + .section {
  margin-top: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 10px;
}

.section-title {
  margin: 0;
  color: var(--foreground);
  font-size: 31px;
  line-height: 1.12;
  font-weight: 900;
}

.section-kicker {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 16px;
  font-weight: 650;
}

.carousel-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.carousel-controls .icon-button {
  width: 43px;
  height: 39px;
  border-color: rgba(243, 195, 78, 0.62);
  color: var(--foreground);
  background: rgba(3, 25, 31, 0.82);
}

.carousel,
.event-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.carousel::-webkit-scrollbar,
.event-row::-webkit-scrollbar,
.search-results::-webkit-scrollbar {
  display: none;
}

.sport-card {
  display: block;
  flex: 0 0 200px;
  min-width: 0;
}

.sport-tile {
  display: grid;
  grid-template-rows: 58px auto;
  place-items: center;
  width: 200px;
  height: 148px;
  border: 1px solid rgba(243, 195, 78, 0.55);
  border-radius: 11px;
  background: linear-gradient(145deg, #ffffff 0%, #f3fbfb 60%, #eef8f8 100%);
  color: #0b7380;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(20, 217, 230, 0.35), inset 0 0 38px rgba(20, 217, 230, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sport-card:hover .sport-tile {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(20, 217, 230, 0.55);
}

.sport-icon {
  display: grid;
  place-items: center;
  align-self: end;
  width: 54px;
  height: 54px;
  color: #0c7480;
}

.sport-icon svg {
  width: 54px;
  height: 54px;
  stroke: currentColor;
  fill: none;
}

.sport-tile h3 {
  max-width: 176px;
  margin: 0;
  color: #061820;
  font-size: 24px;
  line-height: 1.14;
  font-weight: 900;
  text-align: center;
}

.sport-name {
  min-height: 52px;
  padding: 9px 2px 0;
  color: var(--foreground);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 850;
}

.sports-section {
  position: relative;
  width: calc(100% + 168px);
  margin: 0 -84px 18px;
  padding: 38px 84px 44px;
  background:
    radial-gradient(circle at 11% 26%, rgba(34, 150, 255, 0.18), transparent 22rem),
    radial-gradient(circle at 88% 35%, rgba(34, 150, 255, 0.10), transparent 19rem),
    linear-gradient(110deg, #031a2b 0%, #020d18 48%, #010811 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.sports-section .section-header {
  align-items: flex-start;
  margin-bottom: 22px;
}

.sports-section .section-title {
  position: relative;
  padding-bottom: 15px;
  font-size: 36px;
  letter-spacing: 0;
}

.sports-section .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 62px;
  height: 4px;
  border-radius: 999px;
  background: #159cff;
  box-shadow: 0 0 16px rgba(21, 156, 255, 0.72);
}

.sports-section .carousel-controls {
  gap: 12px;
  padding-top: 4px;
}

.sports-section .carousel-controls .icon-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border-color: rgba(92, 131, 171, 0.34);
  background: rgba(3, 16, 29, 0.72);
  color: rgba(248, 251, 252, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.sports-section .carousel-controls .icon-button:last-child {
  border-color: rgba(21, 156, 255, 0.88);
  color: var(--foreground);
  box-shadow: 0 0 24px rgba(21, 156, 255, 0.28), inset 0 0 18px rgba(21, 156, 255, 0.16);
}

.sports-section .carousel {
  gap: 14px;
}

.sports-section .sport-card {
  flex: 0 0 180px;
}

.sports-section .sport-tile {
  grid-template-rows: 1fr auto;
  width: 180px;
  height: 150px;
  border: 1px solid rgba(88, 125, 163, 0.48);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.06), transparent 58px),
    linear-gradient(160deg, rgba(13, 35, 56, 0.94), rgba(3, 14, 26, 0.98));
  color: rgba(245, 250, 255, 0.94);
  box-shadow: inset 0 0 34px rgba(95, 156, 218, 0.05);
}

.sports-section .sport-card:first-child .sport-tile {
  border-color: #22a8ff;
  background:
    radial-gradient(circle at 50% 34%, rgba(34, 168, 255, 0.25), transparent 62px),
    linear-gradient(160deg, rgba(13, 55, 90, 0.98), rgba(4, 15, 29, 0.98));
  box-shadow: 0 0 0 1px rgba(34, 168, 255, 0.50), 0 0 32px rgba(34, 168, 255, 0.42), inset 0 0 46px rgba(34, 168, 255, 0.10);
}

.sports-section .sport-card:hover .sport-tile {
  transform: translateY(-3px);
  border-color: rgba(34, 168, 255, 0.82);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32), 0 0 28px rgba(34, 168, 255, 0.20);
}

.sports-section .sport-icon {
  position: relative;
  align-self: center;
  width: 34px;
  height: 34px;
  margin-top: 18px;
  color: rgba(248, 251, 252, 0.92);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.42));
}

.sports-section .sport-card:first-child .sport-icon {
  color: #22a8ff;
  filter: drop-shadow(0 0 18px rgba(34, 168, 255, 0.70));
}

.sports-section .sport-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: -14px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.12;
  filter: blur(7px);
}

.sports-section .sport-card:first-child .sport-icon::after {
  opacity: 0.72;
}

.sports-section .sport-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 3;
}

.sports-section .sport-tile h3 {
  max-width: 150px;
  margin: 0 0 24px;
  color: var(--foreground);
  font-size: 21px;
  line-height: 1.18;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
}

.sports-section .sport-name {
  display: none;
}

.event-card {
  flex: 0 0 244px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
}

.event-card.wide {
  flex-basis: 270px;
}

.event-card:hover .poster-media,
.event-card:hover .fallback-poster {
  transform: translateY(-1px) scale(1.025);
}

.event-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(243, 195, 78, 0.62);
  border-radius: 9px;
  overflow: hidden;
  background: #061820;
  box-shadow: 0 0 0 1px rgba(20, 217, 230, 0.45);
}

.poster-media,
.fallback-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.fallback-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(1, 20, 28, 0.72), rgba(10, 126, 136, 0.46)),
    linear-gradient(150deg, #082731, #032028 56%, #021018);
}

.fallback-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 40%, rgba(255, 255, 255, 0.08) 40% 42%, transparent 42% 100%),
    repeating-linear-gradient(150deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 24px);
}

.poster-cricket {
  background: linear-gradient(135deg, #244f19, #0c4928 48%, #071a16);
}

.poster-fight {
  background: linear-gradient(135deg, #0a4b75, #09283e 58%, #06131c);
}

.poster-motor-sports {
  background: linear-gradient(135deg, #67130b, #261517 56%, #080b0d);
}

.poster-tennis {
  background: linear-gradient(135deg, #104e75, #083d4a 52%, #07161a);
}

.poster-basketball {
  background: linear-gradient(135deg, #a55b0d, #743407 56%, #14100a);
}

.poster-other {
  background: linear-gradient(135deg, #36145f, #231140 60%, #0d0a16);
}

.watermark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #f8fbfc;
  font-size: 27px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.56);
}

.watermark svg {
  color: var(--teal);
  filter: drop-shadow(0 0 8px rgba(20, 217, 230, 0.52));
}

.poster-title {
  position: relative;
  z-index: 1;
  max-width: 88%;
  color: #fff;
  text-align: center;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.58);
}

.team-badges {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 26px 22px;
}

.badge-img,
.badge-fallback {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.58));
}

.badge-fallback {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(6, 32, 40, 0.75);
  color: var(--foreground);
  font-size: 18px;
  font-weight: 900;
}

.badge-vs {
  z-index: 2;
  color: #fff;
  font-weight: 950;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.78);
}

.pill {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid rgba(255, 225, 122, 0.72);
  border-radius: 7px;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.pill.left {
  top: 10px;
  left: 10px;
}

.pill.right {
  top: 10px;
  right: 10px;
}

.pill.live {
  background: linear-gradient(180deg, #deb04a, #a36916);
  box-shadow: 0 0 16px rgba(243, 195, 78, 0.26);
}

.pill.time {
  background: rgba(4, 19, 25, 0.9);
}

.favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 2px solid #ffe05c;
  border-radius: 50%;
  background: rgba(3, 19, 25, 0.82);
  color: #ffe05c;
  cursor: pointer;
}

.favorite-button svg {
  width: 19px;
  height: 19px;
  fill: transparent;
}

.favorite-button.active svg {
  fill: currentColor;
}

.event-title {
  margin: 10px 0 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 50px;
  color: var(--foreground);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 850;
}

.event-meta {
  margin: 1px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(167, 178, 183, 0.92);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 750;
}

.empty-state,
.loading-grid,
.error-state {
  display: grid;
  place-items: center;
  min-height: 170px;
  border: 1px dashed rgba(20, 217, 230, 0.28);
  border-radius: var(--radius);
  color: var(--muted-foreground);
  text-align: center;
  padding: 24px;
}

.skeleton-card {
  flex: 0 0 244px;
}

.skeleton-art,
.skeleton-line {
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(10, 43, 52, 0.85), rgba(16, 75, 86, 0.95), rgba(10, 43, 52, 0.85));
  background-size: 220% 100%;
  animation: shimmer 1.25s linear infinite;
}

.skeleton-art {
  aspect-ratio: 16 / 9;
}

.skeleton-line {
  height: 15px;
  margin-top: 13px;
}

.skeleton-line.short {
  width: 62%;
}

@keyframes shimmer {
  to {
    background-position-x: -220%;
  }
}

.filters {
  position: sticky;
  top: 82px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
  padding: 14px;
  border: 1px solid rgba(20, 217, 230, 0.28);
  border-radius: var(--radius);
  background: rgba(3, 16, 20, 0.94);
  backdrop-filter: blur(14px);
}

.chip {
  min-height: 38px;
  padding: 6px 15px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.chip.active {
  border-color: var(--gold);
  background: rgba(116, 73, 12, 0.72);
  color: #ffe9a4;
}

.select {
  min-height: 38px;
  padding: 6px 34px 6px 12px;
  font-size: 14px;
  font-weight: 750;
  appearance: none;
  background-color: rgba(4, 24, 31, 0.78);
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.schedule-group {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.date-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  border-right: 2px solid rgba(20, 217, 230, 0.26);
  padding-right: 14px;
  color: var(--muted-foreground);
  text-align: center;
  font-weight: 750;
}

.date-rail strong {
  color: var(--foreground);
  font-size: 24px;
  line-height: 1.1;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 18px;
}

.schedule-grid .event-card {
  width: 100%;
  flex: initial;
}

.status-layout {
  max-width: 1180px;
  margin: 0 auto;
}

.panel-card,
.status-card,
.back-card,
.source-card,
.stream-row,
.side-panel {
  border: 1px solid rgba(20, 217, 230, 0.28);
  border-radius: var(--radius);
  background: rgba(3, 19, 25, 0.82);
  color: var(--foreground);
  box-shadow: inset 0 0 24px rgba(20, 217, 230, 0.03);
}

.panel-card,
.status-card {
  margin-bottom: 18px;
  padding: 22px;
}

.panel-card h1,
.panel-card h2,
.status-card h3 {
  margin: 0 0 12px;
  line-height: 1.2;
  font-weight: 900;
}

.panel-card h1 {
  font-size: 34px;
}

.panel-card h2 {
  font-size: 24px;
}

.status-card h3 {
  font-size: 19px;
}

.panel-card p,
.status-card p {
  color: rgba(248, 251, 252, 0.82);
}

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

.status-card {
  margin: 0;
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 1px solid rgba(53, 208, 129, 0.45);
  border-radius: 999px;
  color: #b8f7d6;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 850;
}

.status-pill.down {
  border-color: rgba(255, 93, 93, 0.54);
  color: #ffc6c6;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(53, 208, 129, 0.65);
}

.status-pill.down .status-dot {
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 93, 93, 0.65);
}

.modal-body input,
.modal-body textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(20, 217, 230, 0.34);
  border-radius: var(--radius);
  background: rgba(1, 11, 15, 0.9);
  color: var(--foreground);
  padding: 12px;
  outline: none;
}

.modal-body textarea {
  min-height: 150px;
  resize: vertical;
}

.modal-body input:focus,
.modal-body textarea:focus,
.search-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 217, 230, 0.12);
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto;
}

.watch-main {
  min-width: 0;
  text-align: center;
}

.watch-main h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 900;
}

.watch-main p {
  max-width: 680px;
  margin: 8px auto 0;
  color: rgba(248, 251, 252, 0.78);
}

.back-card {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 20px 0;
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.source-summary {
  margin: 0 0 14px;
  color: var(--muted-foreground);
  font-weight: 750;
}

.source-card {
  margin-bottom: 14px;
  overflow: hidden;
  text-align: left;
}

.source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(20, 217, 230, 0.18);
  background: rgba(7, 40, 48, 0.58);
}

.source-head h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
}

.source-note {
  color: #f6d36a;
  font-size: 12px;
  font-weight: 800;
}

.stream-list {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.stream-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.stream-row:hover {
  border-color: var(--teal);
}

.stream-row.active {
  border-color: var(--gold);
  background: rgba(116, 73, 12, 0.4);
}

.quality {
  min-width: 44px;
  border-radius: 999px;
  background: rgba(20, 217, 230, 0.14);
  color: #d9fbff;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 850px;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
}

.player iframe,
.stream-video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.stream-video {
  object-fit: contain;
}

.player-status,
.stream-player-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  color: var(--muted-foreground);
  background: radial-gradient(circle at 50% 42%, rgba(20, 217, 230, 0.12), transparent 18rem), #01070a;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
}

.player[data-state="ready"] .player-status {
  display: none;
}

.player[data-state="error"],
.stream-player-error {
  border-color: rgba(243, 195, 78, 0.52);
}

.player[data-state="error"] .player-status,
.stream-player-error .player-status {
  color: #ffe493;
  background: linear-gradient(145deg, rgba(36, 21, 4, 0.96), rgba(2, 8, 11, 0.98));
}

.player-placeholder {
  display: grid;
  place-items: center;
  gap: 12px;
  max-width: 850px;
  min-height: 260px;
  margin: 0 auto 18px;
  border: 1px dashed rgba(20, 217, 230, 0.3);
  border-radius: var(--radius);
  color: var(--muted-foreground);
  background: #01080b;
  font-weight: 800;
}

.player-blocked,
.stream-player-error {
  border-style: solid;
  border-color: rgba(243, 195, 78, 0.48);
  color: var(--foreground);
}

.player-blocked strong {
  max-width: 620px;
  color: #ffe493;
  font-size: 17px;
  line-height: 1.4;
}

.side-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 18px;
}

.side-panel h2 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 900;
}

.side-panel p {
  margin: 0 0 14px;
  color: var(--muted-foreground);
  font-weight: 650;
}

.side-list {
  display: grid;
  gap: 8px;
}

.side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(20, 217, 230, 0.22);
  border-radius: var(--radius);
  color: var(--foreground);
  font-weight: 800;
}

.wide-search {
  justify-content: space-between;
  width: 100%;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: start center;
  padding: 78px 18px 18px;
  background: rgba(0, 0, 0, 0.62);
}

.modal,
.drawer {
  width: min(680px, 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(2, 15, 20, 0.99);
  box-shadow: var(--shadow);
}

.drawer {
  max-height: min(760px, calc(100vh - 96px));
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(20, 217, 230, 0.22);
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.modal-body {
  padding: 16px;
}

.search-input {
  width: 100%;
  height: 58px;
  border: 0;
  border-bottom: 1px solid rgba(20, 217, 230, 0.24);
  background: rgba(1, 11, 15, 0.98);
  color: var(--foreground);
  padding: 0 18px;
  outline: none;
  font-size: 18px;
}

.search-results {
  max-height: 610px;
  overflow: auto;
  padding: 8px;
  scrollbar-width: none;
}

.search-result {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  text-align: left;
  padding: 10px;
  cursor: pointer;
}

.search-result:hover {
  background: rgba(20, 217, 230, 0.12);
}

.search-result h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.search-result p {
  margin: 1px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 750;
}

.result-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 40px;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  background: rgba(20, 217, 230, 0.12);
  color: var(--teal);
}

.result-thumb svg {
  width: 24px;
  height: 24px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  transform: translateX(-50%);
  max-width: min(440px, calc(100vw - 32px));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(2, 15, 20, 0.98);
  color: var(--foreground);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1400px) {
  .header-inner {
    grid-template-columns: minmax(390px, auto) minmax(220px, 320px) auto;
    gap: 12px;
    padding-inline: 22px;
  }

  .desktop-nav {
    gap: 6px;
    font-size: 16px;
  }

  .desktop-nav a {
    padding-inline: 12px;
  }

  .page-shell {
    padding-inline: 42px;
  }

  .sports-section {
    width: calc(100% + 84px);
    margin-inline: -42px;
    padding-inline: 42px;
  }

  .schedule-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: auto minmax(160px, 1fr) auto;
  }

  .desktop-nav,
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  .brand {
    margin-right: 0;
  }

  .brand-logo {
    width: 172px;
    max-width: 32vw;
    height: 40px;
  }

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

  .side-panel {
    position: static;
  }

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

@media (max-width: 820px) {
  .header-inner {
    min-height: 64px;
    padding-inline: 14px;
  }

  .header-search {
    height: 44px;
    padding-inline: 13px;
  }

  .header-search span:first-child {
    font-size: 15px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .page-shell {
    min-height: calc(100vh - 64px);
    padding: 8px 16px 42px;
  }

  .sports-section {
    width: calc(100% + 32px);
    margin: 0 -16px 18px;
    padding: 28px 16px 34px;
  }

  .sports-section .section-header {
    margin-bottom: 18px;
  }

  .sports-section .section-title {
    font-size: 30px;
    padding-bottom: 13px;
  }

  .sports-section .section-title::after {
    width: 58px;
    height: 3px;
  }

  .sports-section .carousel-controls {
    gap: 10px;
    padding-top: 0;
  }

  .sports-section .carousel-controls .icon-button {
    width: 40px;
    height: 40px;
  }

  .section-title {
    font-size: 27px;
  }

  .sports-section .sport-card {
    flex-basis: 132px;
  }

  .sports-section .sport-tile {
    width: 132px;
    height: 126px;
    border-radius: 12px;
  }

  .sports-section .sport-icon,
  .sports-section .sport-icon svg {
    width: 24px;
    height: 24px;
  }

  .sports-section .sport-icon {
    margin-top: 14px;
  }

  .sports-section .sport-icon::after {
    left: 6px;
    right: 6px;
    bottom: -10px;
    height: 3px;
  }

  .sports-section .sport-tile h3 {
    max-width: 112px;
    margin-bottom: 18px;
    font-size: 16px;
  }

  .sport-card {
    flex-basis: 164px;
  }

  .sport-tile {
    width: 164px;
    height: 130px;
  }

  .sport-icon,
  .sport-icon svg {
    width: 46px;
    height: 46px;
  }

  .sport-tile h3 {
    max-width: 145px;
    font-size: 20px;
  }

  .sport-name,
  .event-title,
  .event-meta {
    font-size: 17px;
  }

  .event-card,
  .skeleton-card {
    flex-basis: 235px;
  }

  .watch-main h1 {
    font-size: 23px;
  }

  .player-placeholder {
    min-height: 190px;
  }

  .stream-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .stream-row span:last-child {
    display: none;
  }

  .filters {
    top: 72px;
  }

  .schedule-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .date-rail {
    flex-direction: row;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid rgba(20, 217, 230, 0.24);
    padding: 0 0 8px;
  }

  .schedule-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    grid-template-columns: auto minmax(96px, 1fr) auto;
    gap: 8px;
    padding-inline: 10px;
  }

  .brand-logo {
    display: none;
  }

  .brand-mark {
    display: block;
  }

  .header-search {
    min-width: 0;
  }

  .header-actions {
    gap: 6px;
  }

  .sports-section {
    padding-top: 26px;
  }

  .sports-section .carousel {
    gap: 12px;
  }

  .sports-section .sport-card {
    flex-basis: 122px;
  }

  .sports-section .sport-tile {
    width: 122px;
    height: 118px;
  }

  .sports-section .sport-icon,
  .sports-section .sport-icon svg {
    width: 22px;
    height: 22px;
  }

  .sports-section .sport-tile h3 {
    max-width: 104px;
    margin-bottom: 16px;
    font-size: 15px;
  }

  .section-header {
    align-items: flex-start;
  }

  .carousel-controls {
    flex-shrink: 0;
  }

  .event-card,
  .skeleton-card {
    flex-basis: 226px;
  }

  .panel-card,
  .status-card {
    padding: 16px;
  }

  .search-result {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .search-result > span:last-child {
    display: none;
  }
}

@media (max-width: 420px) {
  .header-inner {
    min-height: 60px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 7px;
    padding-inline: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-search {
    height: 40px;
    padding-inline: 11px;
  }

  .header-search span:first-child {
    font-size: 14px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .page-shell {
    padding-inline: 12px;
  }

  .sports-section {
    width: calc(100% + 24px);
    margin-inline: -12px;
    padding: 24px 12px 30px;
  }

  .sports-section .section-title {
    font-size: 28px;
  }

  .sports-section .carousel-controls .icon-button {
    width: 36px;
    height: 36px;
  }

  .sports-section .sport-card {
    flex-basis: 112px;
  }

  .sports-section .sport-tile {
    width: 112px;
    height: 110px;
  }

  .sports-section .sport-tile h3 {
    max-width: 96px;
    margin-bottom: 14px;
    font-size: 14px;
  }

  .event-card,
  .skeleton-card {
    flex-basis: min(220px, calc(100vw - 48px));
  }

  .event-title,
  .event-meta {
    font-size: 15px;
  }

  .filters {
    gap: 7px;
  }

  .chip,
  .select {
    min-height: 36px;
    font-size: 13px;
  }

  .watch-main h1 {
    font-size: 20px;
  }

  .source-head,
  .back-card,
  .stream-row {
    padding: 11px;
  }
}

@media (max-width: 340px) {
  .header-search span:first-child {
    display: none;
  }

  .header-search {
    justify-content: center;
  }
}
