*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-tertiary: #1a1a26;
  --bg-match-row: #13131d;
  --bg-match-row-hover: #1c1c2c;
  --bg-league-header: #0e0e16;
  --accent: #e63946;
  --accent-hover: #ff4d5a;
  --accent-glow: rgba(230, 57, 70, 0.15);
  --text-primary: #ededf0;
  --text-secondary: #8888a0;
  --text-muted: #555568;
  --border: #222233;
  --border-light: #2a2a3d;
  --live-green: #00e676;
  --live-red: #ff1744;
  --live-bg: rgba(255, 23, 68, 0.08);
  --hd-badge: #2979ff;
  --popular-badge: #ffd600;
  --chip-bg: #1a1a2a;
  --chip-active-bg: var(--accent);
  --chip-text: #aaaabb;
  --chip-active-text: #fff;
  --header-height: 56px;
  --max-width: 1280px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow: visible;
}

.header-inner .logo {
  margin-right: auto;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.logo-icon {
  color: var(--accent);
  font-size: 14px;
}

.logo-text {
  color: var(--text-primary);
}

.logo-accent {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex-shrink: 1;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.league-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  overflow: visible;
}

.league-nav-link {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.league-nav-link:hover {
  color: var(--accent);
  background: var(--bg-tertiary);
}

.nav-dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 10px;
  margin-left: 2px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 200;
  max-height: 70vh;
  overflow-y: auto;
}

.nav-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.12s ease;
}

.dropdown-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 16px 16px;
  border-top: 1px solid var(--border);
}

.mobile-nav.open {
  display: flex;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-link {
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.mobile-nav-link:hover {
  color: var(--text-primary);
}

.mobile-nav-section {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link-league {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 8px 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.mobile-nav-link-league:hover {
  color: var(--text-secondary);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

/* HEADER ACTIONS + SEARCH */
.header-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.header-action:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.discord-link {
  cursor: default;
  opacity: 0.75;
  pointer-events: none;
}

.discord-link.discord-ready {
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
}

.discord-link:hover {
  color: #5865f2;
}

.app-link:hover {
  color: var(--accent);
}

.header-action-icon {
  display: block;
  flex-shrink: 0;
}

.header-search {
  position: relative;
  flex-shrink: 1;
  min-width: 0;
  max-width: 240px;
}

.search-input {
  width: 100%;
  height: 34px;
  padding: 0 28px 0 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 17px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent);
  background: var(--bg-secondary);
}

.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.search-clear:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.search-clear[hidden] {
  display: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: min(420px, calc(100vh - var(--header-height) - 24px));
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 250;
  -webkit-overflow-scrolling: touch;
}

.search-results[hidden] {
  display: none;
}

.search-group-title {
  padding: 8px 10px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.search-msg {
  padding: 14px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

.search-msg strong {
  color: var(--text-primary);
}

.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.1s ease;
}

.search-item:hover,
.search-item.active {
  background: var(--bg-tertiary);
}

.search-item-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-item-icon .league-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.search-item-icon .sport-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.search-item-icon .league-emoji-fallback {
  font-size: 16px;
}

.search-item-body {
  min-width: 0;
  flex: 1;
}

.search-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-title strong {
  color: var(--accent);
  font-weight: 700;
}

.search-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-badge {
  font-weight: 600;
  flex-shrink: 0;
}

.search-item-badge.live-badge {
  color: var(--live-red);
}

.search-item-badge.live-247-badge {
  color: var(--live-green);
}

.search-item-badge.starting-soon-badge {
  color: var(--popular-badge);
}

.search-item-badge.time-badge {
  color: var(--text-secondary);
}

.search-item-date {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  flex-shrink: 0;
}

/* IMPORTANT NOTICE */
.important-notice {
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.12), rgba(230, 57, 70, 0.06));
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.important-notice[hidden] {
  display: none;
}

.important-notice-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7px 36px 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  text-align: center;
}

.notice-lead-icon {
  flex-shrink: 0;
  color: var(--accent);
}

.notice-text {
  margin: 0;
}

.important-notice a {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.important-notice a:hover {
  text-decoration: underline;
}

.notice-external-icon {
  flex-shrink: 0;
  opacity: 0.75;
  transform: translateY(-1px);
}

.important-notice a:hover .notice-external-icon {
  opacity: 1;
}

.notice-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  flex-shrink: 0;
}

.notice-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
  .important-notice-inner {
    padding: 8px 32px 8px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .notice-lead-icon {
    display: none;
  }
}

/* MAIN */
.main {
  min-height: calc(100vh - var(--header-height) - 80px);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* SECTION */
.section {
  padding: 24px 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-red);
  animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(255, 23, 68, 0); }
}

.section-count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 10px;
}

/* LEAGUE SHELF */
.league-shelf {
  padding: 12px 0 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}

.league-shelf::-webkit-scrollbar {
  display: none;
}

.league-shelf-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  padding: 0 16px;
  width: max-content;
  min-width: min(100%, var(--max-width));
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 14px;
  min-height: 34px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--bg-secondary);
  color: var(--chip-text);
  border: 1px solid var(--border);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.chip:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.chip.active {
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
  border-color: var(--accent);
  box-shadow: 0 2px 12px var(--accent-glow);
}

.chip.muted {
  opacity: 0.55;
}

.chip.muted:hover {
  opacity: 0.8;
}

.chip .league-img,
.chip .sport-img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
  border-radius: 3px;
}

.chip .league-emoji-fallback {
  font-size: 14px;
  line-height: 1;
}

/* LEAGUE GROUP */
.league-group {
  margin-bottom: 8px;
}

.league-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-league-header);
  border-radius: var(--radius-md);
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
  border-left: 3px solid var(--border);
  transition: background 0.12s ease;
}

.league-group-header:hover {
  background: var(--bg-tertiary);
}

.league-group-header .league-icon {
  font-size: 14px;
  display: flex;
  align-items: center;
}

.league-img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  vertical-align: middle;
  object-fit: contain;
}

.sport-img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  vertical-align: middle;
  object-fit: contain;
  display: inline-block;
}

.league-emoji-fallback {
  font-size: 14px;
}

.league-group-header .league-name {
  color: var(--text-primary);
}

.league-group-header .league-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

/* MATCH ROW */
.match-row {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0 12px;
  padding: 12px 14px;
  background: var(--bg-match-row);
  border-radius: var(--radius-md);
  margin-bottom: 3px;
  transition: all 0.15s ease;
  cursor: pointer;
  min-height: 52px;
  border: 1px solid transparent;
}

.match-row:hover {
  background: var(--bg-match-row-hover);
  border-color: var(--border-light);
  transform: translateX(2px);
}

.match-row.live {
  background: var(--live-bg);
  border-left: 3px solid var(--live-red);
}

.match-row.live:hover {
  background: rgba(255, 23, 68, 0.14);
}

.match-status {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 80px;
}

.match-status.live-badge {
  color: var(--live-red);
}

.match-status.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-red);
  animation: pulse-live 1.5s ease-in-out infinite;
}

.match-status.time-badge {
  color: var(--text-secondary);
}

.match-status.ft-badge {
  color: var(--text-muted);
}

.match-status.live-247-badge {
  color: var(--live-green);
}

.match-status.live-247-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-green);
  animation: pulse-live 1.5s ease-in-out infinite;
}

.match-row.live-247 .match-status {
  color: var(--live-green);
}

.match-row.live-247 .match-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-green);
  animation: pulse-live 1.5s ease-in-out infinite;
}

.match-status.starting-soon-badge {
  color: var(--popular-badge);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.match-status.starting-soon-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--popular-badge);
}

.match-team {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-team.home {
  text-align: right;
}

.match-team.away {
  text-align: left;
}

.match-team.no-teams {
  text-align: center;
  grid-column: 2 / 5;
  white-space: normal;
  font-size: 14px;
}

.match-vs {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.match-action {
  flex-shrink: 0;
}

.match-date {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}

.match-league {
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
}

.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.watch-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 12px var(--accent-glow);
}

.watch-btn .play-icon {
  font-size: 10px;
}

.match-meta {
  display: none;
}

.match-badges {
  display: none;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  margin-top: 40px;
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-sports {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-sport-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.12s ease;
}

.footer-sport-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.footer-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* LOADING */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  color: var(--text-muted);
  font-size: 14px;
  gap: 8px;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* SKELETON */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-match-row) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-row {
  height: 48px;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
}

/* ERROR */
.error {
  text-align: center;
  padding: 48px 16px;
}

.error-text {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

.retry-btn {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.retry-btn:hover {
  background: var(--accent-hover);
}

/* WATCH PAGE */
.watch-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.watch-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.12s ease;
}

.back-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.watch-title {
  font-size: 16px;
  font-weight: 600;
}

.player-wrapper {
  max-width: 1000px;
  margin: 16px auto;
  padding: 0 16px;
}

.player-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius-md);
}

.player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.stream-selector {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.stream-selector-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.stream-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.stream-tabs::-webkit-scrollbar {
  display: none;
}

.stream-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.12s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.stream-tab:hover {
  border-color: var(--text-muted);
}

.stream-tab.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

.stream-tab-lang {
  font-weight: 500;
}

.stream-tab-quality {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

.stream-tab-quality.hd {
  background: var(--hd-badge);
  color: #fff;
}

.stream-tab-quality.sd {
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.stream-tab-viewers {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.match-info {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 16px;
}

.match-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* CATEGORY PAGE */
.category-header {
  padding: 20px 0;
}

.category-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.category-title {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-title .league-img,
.category-title .sport-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}

.filter-bar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-bar-inner {
  display: flex;
  gap: 6px;
  padding-bottom: 4px;
  width: max-content;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 14px;
}

/* MORE MATCHES */
.more-matches {
  max-width: 1000px;
  margin: 24px auto;
  padding: 0 16px;
}

.more-matches-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* RESPONSIVE - MOBILE */
@media (max-width: 767px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-inner {
    gap: 6px;
    padding: 0 10px;
  }

  .header-action {
    padding: 6px;
    gap: 0;
  }

  .header-action-label {
    display: none;
  }

  .header-search {
    max-width: 130px;
    flex: 0 1 130px;
  }

  .search-input {
    height: 32px;
    padding: 0 26px 0 10px;
    font-size: 12px;
    border-radius: 16px;
  }

  .search-clear {
    right: 5px;
    width: 18px;
    height: 18px;
    font-size: 14px;
  }

  .search-results {
    position: fixed;
    top: calc(var(--header-height) + 4px);
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100vh - var(--header-height) - 16px);
  }

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

  .logo .logo-text {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-row {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    padding: 12px 12px;
    min-height: 56px;
  }

  .match-status {
    grid-column: 1;
    grid-row: 1 / 3;
    min-width: auto;
    align-self: center;
  }

  .match-team {
    font-size: 13px;
    grid-column: 2;
    text-align: left !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .match-team.home {
    grid-row: 1;
  }

  .match-team.away {
    grid-row: 2;
    color: var(--text-secondary);
    font-size: 12px;
  }

  .match-vs {
    display: none;
  }

  .match-team.no-teams {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    text-align: left;
  }

  .match-action {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }

  .watch-btn {
    padding: 8px 14px;
    font-size: 12px;
    min-height: 44px;
  }

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

  .category-title {
    font-size: 18px;
  }

  .watch-title {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .big-game-card {
    padding: 12px 14px;
  }

  .big-game-team {
    font-size: 14px;
  }

  .big-game-watch-btn {
    padding: 10px 16px;
    min-height: 44px;
  }

  .chip {
    padding: 8px 14px;
    min-height: 40px;
  }
}

/* RESPONSIVE - TABLET+ */
@media (min-width: 768px) {
  .match-team.mobile-hide {
    display: block;
  }
}

/* RESPONSIVE - HEADER MEDIUM WIDTHS */
@media (min-width: 768px) and (max-width: 1100px) {
  .header-search {
    max-width: 170px;
  }

  .header-action {
    padding: 6px 8px;
  }
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* HOME PAGE SECTIONS */
.home-sections {
  padding-top: 8px;
}

/* BIG GAMES SECTION */
.big-games-section {
  padding: 16px 0;
}

.big-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.big-game-card {
  background: var(--bg-match-row);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
}

.big-game-card:hover {
  background: var(--bg-match-row-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.big-game-card.live {
  background: var(--live-bg);
  border-color: var(--live-red);
}

.big-game-card.live:hover {
  background: rgba(255, 23, 68, 0.14);
}

.big-game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
}

.big-game-league {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.big-game-league .league-img {
  width: 20px;
  height: 20px;
}

.big-game-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.big-game-badge.countdown-badge {
  color: var(--text-primary);
}

.big-game-badge.starting-soon-badge {
  color: var(--popular-badge);
  background: rgba(255, 170, 0, 0.12);
}

.big-game-badge.live-badge {
  color: var(--live-red);
  background: rgba(255, 23, 68, 0.14);
}

.big-game-badge.live-badge::before,
.big-game-badge.live-247-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-live 1.5s ease-in-out infinite;
}

.big-game-badge.live-247-badge {
  color: var(--live-green);
  background: rgba(0, 229, 144, 0.1);
}

.big-game-badge.time-badge {
  color: var(--text-secondary);
}

.big-game-teams {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.big-game-team {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.big-game-vs {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.big-game-footer {
  display: flex;
  justify-content: stretch;
  align-items: center;
  margin-top: auto;
}

.big-game-watch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.big-game-watch-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 12px var(--accent-glow);
}

.big-game-watch-btn .play-icon {
  font-size: 10px;
}

/* BROWSE LEAGUES GRID */
.browse-leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 12px 0;
}

.league-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.league-tile:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.league-tile-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.league-tile-img .league-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.league-tile-img .league-emoji-fallback {
  font-size: 32px;
}

.league-tile-name {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* RESPONSIVE - BROWSE LEAGUES */
@media (max-width: 767px) {
  .browse-leagues-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
  }

  .league-tile {
    padding: 16px 8px;
  }

  .league-tile-img .league-img {
    width: 36px;
    height: 36px;
  }

  .league-tile-img .league-emoji-fallback {
    font-size: 24px;
  }

  .league-tile-name {
    font-size: 12px;
  }
}

/* RESPONSIVE - BIG GAMES */
@media (max-width: 767px) {
  .big-games-grid {
    grid-template-columns: 1fr;
  }

  .league-nav-links {
    display: none;
  }
}
