/* ========================================
   JRS直播 - Design System
   Theme: Tech / Sport Live (Light)
   Primary: Cyan-Blue #0EA5E9  |  Purple #8B5CF6
   Background: Soft Slate Lavender #F0F2F7
   ======================================== */

:root {
  /* Brand colors */
  --color-primary: #0EA5E9;
  --color-primary-300: #38BDF8;
  --color-primary-500: #0EA5E9;
  --color-primary-700: #0369A1;
  --color-secondary: #8B5CF6;
  --color-secondary-300: #A78BFA;
  --color-secondary-500: #8B5CF6;
  --color-secondary-700: #6D28D9;
  --color-accent: #06B6D4;

  /* Semantic colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #0EA5E9;
  --color-live: #EF4444;

  /* Light neutral scale - soft slate lavender theme */
  --color-bg: #F0F2F7;
  --color-bg-elevated: #FFFFFF;
  --color-bg-card: #FFFFFF;
  --color-bg-hover: #E8EBF2;
  --color-border: #D8DCE6;
  --color-border-light: #C2C8D6;
  --color-text: #1E2337;
  --color-text-secondary: #4A5168;
  --color-text-muted: #6B7289;

  /* Gradient */
  --gradient-primary: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-secondary-500) 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  --gradient-glow: linear-gradient(90deg, var(--color-primary-500), var(--color-secondary-500));
  --gradient-live: linear-gradient(135deg, #FF4D4F 0%, #FF7875 50%, #FF9C6E 100%);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(30, 41, 59, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(30, 41, 59, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(30, 41, 59, 0.1);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.2);
  --shadow-card: 0 1px 3px rgba(30, 41, 59, 0.05), 0 1px 2px rgba(30, 41, 59, 0.08);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;

  /* Layout */
  --header-height: 64px;
  --container-max: 1320px;
  --sidebar-width: 320px;
  --subnav-height: 48px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Grid layouts */
.page-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

.page-grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .page-grid {
    grid-template-columns: 1fr var(--sidebar-width);
    align-items: start;
  }
}

/* Header - Blue theme */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-xl);
  color: white;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

/* Navigation */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nav-link .arrow {
  width: 14px;
  height: 14px;
  opacity: 0.85;
  transition: transform var(--transition-fast);
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background: #1e3a8a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.35);
  z-index: 100;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

/* Mobile menu */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  z-index: 1001;
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
}

.mobile-nav-list {
  margin-top: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav-list > a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.mobile-nav-list > a:hover,
.mobile-nav-list > a.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Mobile accordion dropdown */
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  font-weight: 500;
  background: transparent;
  transition: all var(--transition-fast);
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.mobile-nav-toggle .arrow {
  width: 20px;
  height: 20px;
  opacity: 0.85;
  transition: transform var(--transition-fast);
}

.mobile-nav-toggle[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

.mobile-nav-submenu {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-1) 0 var(--space-2) var(--space-4);
}

.mobile-nav-item.open .mobile-nav-submenu {
  display: flex;
  animation: fadeIn 0.2s ease forwards;
}

.mobile-nav-submenu a {
  display: block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.mobile-nav-submenu a:hover,
.mobile-nav-submenu a.active {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

/* Secondary Navigation */
.secondary-nav {
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.secondary-nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: none;
  min-height: var(--subnav-height);
  padding: var(--space-2) 0;
}

.secondary-nav-inner::-webkit-scrollbar {
  display: none;
}

.secondary-nav .nav-group {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}

.secondary-nav .nav-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.secondary-nav .nav-label.basketball {
  background: #FF4D4F;
}

.secondary-nav .nav-label.football {
  background: #10B981;
}

.secondary-nav a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.secondary-nav a:hover,
.secondary-nav a.active {
  background: var(--gradient-primary);
  color: white;
}

.secondary-nav .divider {
  width: 1px;
  height: 20px;
  background: var(--color-border);
  margin: 0 var(--space-2);
  flex-shrink: 0;
}

/* Search Box */
.search-widget {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-md);
  min-width: 0;
  max-width: 100%;
}

.search-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.search-tab {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.search-tab:hover {
  background: var(--color-bg-hover);
  color: var(--color-text);
}

.search-tab.active {
  background: var(--color-primary-500);
  color: white;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3);
}

.search-box {
  display: flex;
  align-items: stretch;
  background: var(--color-bg-card);
  border: 2px solid var(--color-primary-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.search-box input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: none;
  background: transparent;
  color: var(--color-text);
  outline: none;
  min-width: 0;
  font-size: var(--text-base);
}

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

.search-box button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  background: var(--color-primary-500);
  color: white;
  transition: all var(--transition-fast);
}

.search-box button:hover {
  background: var(--color-primary-700);
}

.search-box button svg {
  width: 22px;
  height: 22px;
}

/* Hero with search */
.hero-search-row {
  display: grid;
  gap: var(--space-6);
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .hero-search-row {
    grid-template-columns: 1fr min(420px, 50%);
    align-items: stretch;
  }

  /* 右侧栏（搜索框 + 热门赛事推荐）填满与左侧列等高的区域，
     赛事推荐卡片高度自适应，底部自动与左侧「热门赛事」对齐，不再留白。 */
  .hero-right {
    height: 100%;
  }

  .hero-right .match-gallery-widget {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  .hero-right .match-gallery {
    flex: 1 1 auto;
    height: auto;
    min-height: 150px;
  }
}

.hero-left,
.hero-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
  max-width: 100%;
}

.hero-right {
  gap: var(--space-4);
}

.hero-left .card {
  margin-top: 0;
}

.hero-left .hot-events-card .card-body {
  padding: var(--space-4);
}

.news-gallery-widget {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Expanding news gallery */
.news-gallery {
  display: flex;
  gap: var(--space-2);
  height: 160px;
  min-width: 0;
  max-width: 100%;
}

.news-gallery-item {
  position: relative;
  flex: 1 1 0;
  min-width: 48px;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
}

.news-gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
  z-index: 1;
}

.news-gallery-item:nth-child(1) { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); }
.news-gallery-item:nth-child(2) { background: linear-gradient(135deg, #1e293b 0%, #3730a3 100%); }
.news-gallery-item:nth-child(3) { background: linear-gradient(135deg, #172554 0%, #1e40af 100%); }
.news-gallery-item:nth-child(4) { background: linear-gradient(135deg, #312e81 0%, #4338ca 100%); }
.news-gallery-item:nth-child(5) { background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%); }
.news-gallery-item:nth-child(6) { background: linear-gradient(135deg, #111827 0%, #1d4ed8 100%); }

.news-gallery-item:hover,
.news-gallery-item.active {
  flex: 4 1 0;
}

.news-gallery-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  color: white;
}

.news-gallery-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2);
  white-space: nowrap;
}

.news-gallery-title {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  color: white;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-gallery-item:hover .news-gallery-title,
.news-gallery-item.active .news-gallery-title {
  -webkit-line-clamp: 3;
}

.news-gallery-btn {
  display: none;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--gradient-live);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  width: fit-content;
  animation: fadeIn 0.3s ease forwards;
}

.news-gallery-btn::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  animation: pulse 1.5s infinite;
}

.news-gallery-item:hover .news-gallery-btn,
.news-gallery-item.active .news-gallery-btn {
  display: inline-flex;
}

/* Match gallery (hot match recommendations) */
.match-gallery-widget {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.match-gallery {
  display: flex;
  gap: var(--space-2);
  height: 220px;
  min-width: 0;
  max-width: 100%;
}

.match-gallery-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  color: white;
}

.match-gallery-item:hover,
.match-gallery-item.active {
  flex: 3 1 0;
}

.match-gallery-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.match-gallery-item:hover .match-gallery-bg {
  transform: scale(1.05);
}

.match-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.88) 100%);
  z-index: 1;
}

.match-gallery-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-2);
}

.match-gallery-meta {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
}

.match-gallery-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-gallery-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  width: fit-content;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.9);
  color: white;
  font-size: 10px;
  font-weight: 700;
}

.match-gallery-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  animation: pulse 1.5s infinite;
}

.match-gallery-status.upcoming {
  background: rgba(245, 158, 11, 0.9);
}

.match-gallery-status.upcoming::before {
  display: none;
}

/* 默认（移动端）即展开态：双队左右并排 + 中间 VS，六张卡片样式统一 */
.match-gallery-teams {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: all 0.45s ease;
}

.match-gallery-item:hover .match-gallery-teams,
.match-gallery-item.active .match-gallery-teams {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.match-gallery-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
}

.match-gallery-item:hover .match-gallery-team,
.match-gallery-item.active .match-gallery-team {
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.match-gallery-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.match-gallery-item:hover .match-gallery-logo,
.match-gallery-item.active .match-gallery-logo {
  width: 34px;
  height: 34px;
  font-size: var(--text-sm);
}

.match-gallery-name {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 58px;
  text-align: center;
}

.match-gallery-item:hover .match-gallery-name,
.match-gallery-item.active .match-gallery-name {
  font-size: var(--text-xs);
  max-width: 84px;
}

.match-gallery-vs {
  display: block;
  font-size: var(--text-xs);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.match-gallery-item:hover .match-gallery-vs,
.match-gallery-item.active .match-gallery-vs {
  display: block;
}

/* 桌面端：未悬停/未激活的卡片收起状态（窄卡片只保留双队标识） */
@media (min-width: 769px) {
  .match-gallery-item:not(:hover):not(.active) .match-gallery-status,
  .match-gallery-item:not(:hover):not(.active) .match-gallery-vs,
  .match-gallery-item:not(:hover):not(.active) .match-gallery-btn {
    display: none;
  }

  .match-gallery-item:not(:hover):not(.active) .match-gallery-teams {
    flex-direction: column;
    gap: var(--space-2);
  }
}

.match-gallery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  background: var(--gradient-live);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 100%;
  animation: fadeIn 0.3s ease forwards;
}

.match-gallery-btn::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  animation: pulse 1.5s infinite;
}

.match-gallery-item:hover .match-gallery-btn,
.match-gallery-item.active .match-gallery-btn {
  display: inline-flex;
}

@media (max-width: 768px) {
  .hero-search-row {
    gap: var(--space-4);
  }

  .hero-left,
  .hero-right {
    min-width: 0;
    max-width: 100%;
  }

  .hero-title {
    font-size: var(--text-xl);
    word-break: break-word;
  }

  .hero-left .hot-events-card .card-body {
    padding: var(--space-3);
  }

  /* Hot events: wrap into a neat grid on mobile, no horizontal scroll */
  .hot-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
    margin-top: var(--space-3);
    gap: var(--space-2);
  }

  .hot-event-tag {
    display: flex;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    border-radius: var(--radius-md);
  }

  /* 首页搜索框：移动端隐藏，仅桌面端展示 */
  .hero-right .search-widget, .hero-right .match-gallery-widget {
    display: none;
  }

  .search-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: var(--space-1);
  }

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

  .search-tab {
    flex-shrink: 0;
    font-size: var(--text-sm);
    padding: var(--space-1) var(--space-3);
  }

  .search-box input {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
  }

  .search-box button {
    width: 48px;
  }

  /* News gallery: larger cards for better readability */
  .news-gallery {
    height: 180px;
    gap: var(--space-2);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .news-gallery::-webkit-scrollbar {
    display: none;
  }

  .news-gallery-item {
    min-width: 160px;
    flex: 0 0 160px;
  }

  .news-gallery-item:hover,
  .news-gallery-item.active {
    flex: 0 0 260px;
  }

  .news-gallery-content {
    padding: var(--space-3);
  }

  .news-gallery-title {
    font-size: var(--text-sm);
  }

  .news-gallery-btn {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
  }

  /* Match gallery mobile: 2-column grid, no horizontal scroll */
  .match-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    gap: var(--space-2);
    overflow-x: visible;
    padding-bottom: 0;
  }

  .match-gallery-item {
    flex: none;
    min-width: 0;
    width: 100%;
    height: 160px;
  }

  .match-gallery-item:hover,
  .match-gallery-item.active {
    flex: none;
    width: 100%;
  }

  .match-gallery-content {
    padding: var(--space-3);
    justify-content: space-between;
  }

  /* 移动端：六张卡片统一为展开态（meta + 状态徽章 + 双队并排 + VS + 赛事详情按钮） */
  .match-gallery-teams {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
  }

  .match-gallery-team {
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
  }

  .match-gallery .match-gallery-item .match-gallery-logo {
    width: 34px;
    height: 34px;
    font-size: var(--text-sm);
  }

  .match-gallery .match-gallery-item .match-gallery-name {
    max-width: none;
    font-size: var(--text-xs);
  }

  .match-gallery-vs {
    display: block;
  }

  .match-gallery-btn {
    display: inline-flex;
    font-size: 10px;
    padding: var(--space-1) var(--space-2);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
  background: var(--color-bg-hover);
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
}

.btn-secondary:hover {
  background: var(--color-border-light);
}

.btn-ghost {
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-bg-hover);
}

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

/* Live button - redesigned */
.btn-live {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  color: white;
  background: var(--gradient-live);
  border: none;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.btn-live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

.btn-live::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.25) 50%, transparent 80%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}

.btn-live:hover::after {
  transform: translateX(100%);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* Watch / detail button */
.btn-watch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  color: white;
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.btn-watch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.2) 50%, transparent 80%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-watch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
}

.btn-watch:hover::after {
  transform: translateX(100%);
}

/* 已结束（完场）：中性灰按钮，弱化视觉权重，与「未开赛」蓝紫、「直播中」红橙形成状态区分
   文字对比度 white on #6B7289 ≈ 4.8:1，满足 WCAG AA */
.btn-finished {
  background: #6B7289;
  box-shadow: 0 2px 8px rgba(107, 114, 137, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: default;
}

/* 已结束赛事不提供直播入口，去掉悬停位移与扫光动效 */
.btn-finished::after {
  display: none;
}

.btn-finished:hover {
  transform: none;
  background: #6B7289;
  box-shadow: 0 2px 8px rgba(107, 114, 137, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Cards */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-hover);
}

.card-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

.card-title::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--gradient-primary);
}

.card-body {
  padding: var(--space-5);
}

.card-more {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.card-more:hover {
  color: var(--color-primary-500);
}

/* Section title */
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--gradient-primary);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--color-bg-hover);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--color-primary-500);
  color: var(--color-primary-700);
}

.tag.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.tag-live {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-live);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.breadcrumb a:hover {
  color: var(--color-primary-500);
}

.breadcrumb-separator {
  color: var(--color-text-muted);
}

.breadcrumb-current {
  color: var(--color-text-secondary);
}

/* Page header banner */
.page-banner {
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--gradient-subtle);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-banner-desc {
  color: var(--color-text-secondary);
  /*max-width: 700px;*/
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Match list */
.match-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.match-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.match-item:hover {
  border-color: var(--color-border-light);
  background: var(--color-bg-hover);
}

.match-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  text-align: center;
}

.match-time .time {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}

.match-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.match-league {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.match-teams {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.team {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-text);
}

.team-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary-700);
  border: 1px solid var(--color-border);
}

.team-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.match-score {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  min-width: 60px;
  text-align: center;
}

.match-status {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  min-width: 48px;
}

.match-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 80px;
}

/* Match item responsive */
@media (max-width: 640px) {
  .match-item {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .match-time {
    flex-direction: row;
    gap: var(--space-2);
    min-width: auto;
  }

  .match-teams {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .match-action {
    justify-content: flex-start;
  }

  .team-name {
    max-width: 90px;
  }
}

/* Date selector */
.date-selector {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
  min-width: 0;
  max-width: 100%;
}

.date-selector::-webkit-scrollbar {
  display: none;
}

.date-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.date-item:hover,
.date-item.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

.date-item .day {
  font-size: var(--text-xs);
}

.date-item .date {
  font-size: var(--text-sm);
  font-weight: 700;
}

/* Hot events */
.hot-events {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: var(--space-2);
  margin-top: var(--space-4);
  min-width: 0;
  max-width: 100%;
  scrollbar-width: none;
}

.hot-events::-webkit-scrollbar {
  display: none;
}

@media (min-width: 769px) {
  .hot-events {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.hot-event-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-bg-hover);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.hot-event-tag:hover {
  border-color: var(--color-primary-500);
  color: var(--color-text);
}

.hot-event-tag .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-live);
  font-size: var(--text-xs);
  font-weight: 700;
}

/* Sidebar widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.widget {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-hover);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}

.widget-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--gradient-primary);
}

.widget-body {
  padding: var(--space-4) var(--space-5);
}

/* League grid */
.league-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 1280px) {
  .league-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.league-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-md);
  background: var(--color-bg-hover);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.league-btn:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

/* News list */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.news-item:hover {
  border-color: var(--color-border-light);
  background: var(--color-bg-hover);
}

.news-thumb {
  width: 120px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
}

.news-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item:hover .news-title {
  color: var(--color-primary-700);
}

.news-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .news-item {
    grid-template-columns: 1fr;
  }

  .news-thumb {
    width: 100%;
    height: 160px;
  }
}

/* Simple news list (sidebar) */
.simple-news-list {
  display: flex;
  flex-direction: column;
}

.simple-news-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.simple-news-item:last-child {
  border-bottom: none;
}

.simple-news-item:hover {
  padding-left: var(--space-2);
}

.simple-news-item a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.simple-news-item a:hover {
  color: var(--color-primary-700);
}

/* Tag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* League filter tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.filter-tab {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

/* Section subheader for date grouping */
.date-group {
  margin: var(--space-6) 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: 700;
}

/* Events grid (league logos) */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .events-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 1280px) {
  .events-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

.event-league-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-3);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.event-league-item:hover {
  border-color: var(--color-primary-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.event-league-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--color-primary-700);
  font-weight: 700;
  border: 1px solid var(--color-border);
}

.event-league-name {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-align: center;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.page-btn:hover,
.page-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

/* Live content page */
.live-content-hero {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-card);
}

.live-match-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.live-match-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-bg-hover);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.live-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 58px;
  margin-bottom: var(--space-6);
}

.live-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.live-team-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary-700);
  border: 1px solid var(--color-border);
}

.live-team-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

.live-score {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  font-size: var(--text-sm);
  font-weight: 600;
}

.live-signal-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (min-width: 640px) {
  .live-signal-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.live-signal-btn {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-bg-hover);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  /*overflow: hidden;*/
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (min-width: 640px) {
  .live-signal-btn {
    width: auto;
    flex: 0 1 auto;
    min-width: 200px;
  }
}

.live-signal-btn:hover,
.live-signal-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}
.live-signal-btn span{
    position: absolute;
    top: -12px;
    right: 10px;
    background: #7d65f5;
    color: #fff;
    font-size: 12px;
    padding: 1px 10px;
    border-radius: 20px;
    z-index: 2;
    white-space: nowrap;
    border: 2px solid #ffffff;
    letter-spacing: 1px;
}
.live-signal-btn.active span{
    
}
.live-signal-btn a{
    width: 100%;
    height: 100%;
    letter-spacing: 2px;
}
/* Info panel */
.info-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-card);
}

.info-panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-hover);
  border-bottom: 1px solid var(--color-border);
  font-weight: 700;
  color: var(--color-text);
}

.info-panel-header::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--gradient-primary);
}

.info-panel-body {
  padding: var(--space-5);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.info-item strong {
  color: var(--color-text);
}

/* News detail */
.news-detail {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

.news-detail-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.news-detail-body {
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: var(--text-base);
}

.news-detail-body p {
  margin-bottom: var(--space-4);
}

.news-detail-body img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
  background: var(--color-bg-hover);
}

.news-signal-box {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-6) 0;
}

.news-signal-title {
  font-weight: 700;
  color: var(--color-primary-700);
  margin-bottom: var(--space-3);
}

.news-signal-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .news-signal-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

.news-signal-btns .live-signal-btn {
  width: 100%;
  min-width: 0;
  padding: var(--space-2) var(--space-3);
  flex: none;
}

@media (min-width: 640px) {
  .news-signal-btns .live-signal-btn {
    width: auto;
    flex: 0 1 auto;
    min-width: 200px;
  }
 
}

@media (max-width: 640px) {
     .news-signal-box{
      padding: 0.7rem;
  }
  .news-detail{
      padding: 10px;
  }
}

/* Prev/Next navigation */
.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.prev-next-item {
  padding: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.prev-next-item:hover {
  border-color: var(--color-border-light);
}

.prev-next-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.prev-next-title {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video / highlight detail */
.video-detail {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

.video-detail-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.video-detail-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.video-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.video-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary-700);
  font-size: var(--text-base);
  transition: color var(--transition-fast);
}

.video-link:hover {
  color: var(--color-primary-500);
}

.video-section-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin: var(--space-6) 0 var(--space-3);
}

.video-desc {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

/* Related recommendations */
.related-section {
  margin-top: var(--space-8);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.related-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.related-item:last-child {
  border-bottom: none;
}

.related-item:hover {
  color: var(--color-primary-700);
}

/* Footer */
.site-footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0;
  margin-top: var(--space-12);
}

.footer-inner {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.footer-links a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary-700);
}

/* Utilities */
.text-gradient {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.p-4 { padding: var(--space-4); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Hero section of home */
.hero-section {
  padding: var(--space-8) 0 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.hero-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* Match list on home additional */
.match-list-section {
  margin-top: var(--space-6);
}

/* Date header in match list */
.match-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: var(--space-6) 0 var(--space-4);
}

.match-date-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

.match-date-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Ensure all interactive elements have focus */
:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile home: hot events & match gallery layout without page-level horizontal scroll */
@media (max-width: 768px) {
  /* 首页移动端：收紧面包屑与 hero 之间的空白，使标题及下方内容整体上移
     （仅作用于首页 .breadcrumb-home + .hero-section，桌面端与其它页面不受影响） */
  .breadcrumb-home {
    padding: var(--space-3) 0 0;
  }

  .hero-section {
    padding-top: var(--space-4);
  }

  .hot-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
    margin-top: var(--space-3);
    gap: var(--space-2);
  }

  .hot-events .hot-event-tag {
    display: flex;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    border-radius: var(--radius-md);
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  color: #617084;
  background: #f5f8fc;
  font-weight: 800;
}
.page-link:hover,
.page-link.is-active {
  border-color: #2563eb;
  color: #fff;
  background: #2563eb;
}
