/* =========================================================
   Taniniram Sports Hub — Frontend CSS
   Version: 1.0.3
   Dark theme sports tournament dashboard
   ========================================================= */

/* ---- Design Tokens ---- */
:root {
  --tsh-bg-primary: #0a0e1a;
  --tsh-bg-secondary: #111827;
  --tsh-bg-card: #1a2035;
  --tsh-accent: #e63946;
  --tsh-accent-hover: #c1121f;
  --tsh-gold: #ffd700;
  --tsh-text-primary: #ffffff;
  --tsh-text-secondary: #94a3b8;
  --tsh-text-muted: #64748b;
  --tsh-border: rgba(255, 255, 255, 0.08);
  --tsh-live: #22c55e;
  --tsh-yellow-card: #eab308;
  --tsh-red-card: #ef4444;
  --font-main: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition-fast: 150ms ease;
  --transition-med: 250ms ease;
}

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

.tsh-hub {
  font-family: var(--font-main);
  background: var(--tsh-bg-primary);
  color: var(--tsh-text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.tsh-hub a {
  color: inherit;
  text-decoration: none;
}

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

.tsh-hub ul {
  list-style: none;
}

/* =====================================================
   KEYFRAME ANIMATIONS
   ===================================================== */

@keyframes tsh-ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes tsh-live-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

@keyframes tsh-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes tsh-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tsh-slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes tsh-countdown-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(230, 57, 70, 0);
  }
}

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

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

  100% {
    background-position: 200% 0;
  }
}

@keyframes tsh-tab-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tsh-score-pop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

/* =====================================================
   LOADING OVERLAY
   ===================================================== */

.tsh-loading-overlay {
  position: absolute;
  inset: 0;
  background: var(--tsh-bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.tsh-loading-overlay.tsh-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tsh-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--tsh-border);
  border-top-color: var(--tsh-accent);
  border-radius: 50%;
  animation: tsh-spin 0.8s linear infinite;
}

.tsh-loading-overlay p {
  color: var(--tsh-text-secondary);
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* =====================================================
   SKELETON LOADERS
   ===================================================== */

.tsh-skeleton {
  background: linear-gradient(90deg,
      var(--tsh-bg-card) 25%,
      rgba(255, 255, 255, 0.04) 50%,
      var(--tsh-bg-card) 75%);
  background-size: 200% 100%;
  animation: tsh-skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* =====================================================
   BREAKING NEWS BAR
   ===================================================== */

.tsh-breaking-bar {
  display: flex;
  align-items: center;
  background: var(--tsh-accent);
  height: 40px;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.tsh-breaking-label {
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  margin-top: 15px;
}

.tsh-breaking-ticker-wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.tsh-breaking-ticker {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: tsh-ticker-scroll 40s linear infinite;
}

.tsh-breaking-ticker:hover {
  animation-play-state: paused;
}

.tsh-breaking-ticker a,
.tsh-breaking-ticker span.tsh-ticker-item {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 0 8px;
  transition: opacity var(--transition-fast);
}

.tsh-breaking-ticker a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.tsh-breaking-dot {
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  padding: 0 10px;
}

.tsh-breaking-viewall {
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.tsh-breaking-viewall:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.tsh-hero {
  background: linear-gradient(135deg, #0a0e1a 0%, #1a2035 50%, #0a0e1a 100%);
  position: relative;
  overflow: hidden;
  padding: 40px 24px;
}

.tsh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(230, 57, 70, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(26, 32, 53, 0.6) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.tsh-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero Left */
.tsh-hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tsh-tournament-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--tsh-accent);
  width: fit-content;
}

.tsh-tournament-badge .tsh-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tsh-accent);
  animation: tsh-blink 1.4s ease-in-out infinite;
}

.tsh-hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--tsh-text-primary) !important;
}

.tsh-hero-subtitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--tsh-accent);
  text-transform: uppercase;
}

.tsh-hero-desc {
  font-size: 14px;
  color: var(--tsh-text-secondary) !important;
  max-width: 400px;
  line-height: 1.7;
}

.tsh-countdown {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tsh-countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--tsh-bg-card);
  border: 1px solid var(--tsh-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  min-width: 70px;
  animation: tsh-countdown-pulse 2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.4s);
}

.tsh-countdown-box:nth-child(1) {
  --i: 0;
}

.tsh-countdown-box:nth-child(2) {
  --i: 1;
}

.tsh-countdown-box:nth-child(3) {
  --i: 2;
}

.tsh-countdown-box:nth-child(4) {
  --i: 3;
}

.tsh-countdown-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--tsh-text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.tsh-countdown-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--tsh-text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.tsh-countdown-sep {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 900;
  color: var(--tsh-accent);
  padding-top: 4px;
}

/* Hero Center (trophy) */
.tsh-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tsh-trophy-container {
  width: 140px;
  height: 180px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(230, 57, 70, 0.1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.tsh-trophy-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.06), transparent 60%);
  animation: tsh-spin 8s linear infinite;
}

.tsh-trophy-icon {
  font-size: 64px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 16px rgba(255, 215, 0, 0.4));
}

.tsh-trophy-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--tsh-gold);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* Hero Right - Live Match Card */
.tsh-hero-right {
  display: flex;
  align-items: stretch;
}

.tsh-live-card {
  background: var(--tsh-bg-card);
  border: 1px solid var(--tsh-border);
  border-top: 3px solid var(--tsh-accent);
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 100%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
  margin: 30px;
}

.tsh-live-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.tsh-live-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tsh-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 100px;
  padding: 4px 10px;
}

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

.tsh-live-badge-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--tsh-live);
}

.tsh-group-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--tsh-text-muted);
  background: var(--tsh-bg-secondary);
  border: 1px solid var(--tsh-border);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}

.tsh-match-minute {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--tsh-accent);
  letter-spacing: 0.05em;
}

.tsh-match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.tsh-match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.tsh-match-team--away {
  align-items: center;
}

.tsh-team-flag {
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tsh-team-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--tsh-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.tsh-scorers-text {
  font-size: 10px;
  color: var(--tsh-text-muted);
  line-height: 1.4;
}

.tsh-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tsh-score {
  font-size: 40px;
  font-weight: 900;
  color: var(--tsh-text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.tsh-score-sep {
  font-size: 24px;
  font-weight: 400;
  color: var(--tsh-text-muted);
  line-height: 1;
}

.tsh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-transform: uppercase;
  width: 100%;
}

.tsh-btn--primary {
  background: var(--tsh-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
}

.tsh-btn--primary:hover {
  background: var(--tsh-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.tsh-btn--primary:active {
  transform: translateY(0);
}

.tsh-btn[disabled],
.tsh-btn--primary[disabled],
.tsh-btn--primary[disabled]:hover {
  background: #1f2430 !important;
  color: var(--tsh-text-muted) !important;
  cursor: not-allowed !important;
  border: 1px solid var(--tsh-border) !important;
  box-shadow: none !important;
  transform: none !important;
}

.tsh-match-centre-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--tsh-text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.tsh-match-centre-link:hover {
  color: var(--tsh-accent);
}

/* =====================================================
   NAVIGATION TABS
   ===================================================== */

.tsh-nav-wrap {
  background: var(--tsh-bg-secondary);
  border-bottom: 1px solid var(--tsh-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tsh-mobile-nav-header {
  display: none;
}

.tsh-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 16px;
}

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

.tsh-nav-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 6px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tsh-text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
  border: none;
  background: none;
  font-family: var(--font-main);
  letter-spacing: 0.02em;
}

.tsh-nav-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--tsh-accent);
  border-radius: 2px 2px 0 0;
  transition: width var(--transition-med);
}

.tsh-nav-tab:hover {
  color: var(--tsh-text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tsh-nav-tab.active {
  color: #fff;
  background: var(--tsh-accent);
  border-radius: 100px;
  margin: 8px 2px;
  padding: 8px 16px;
}

.tsh-nav-tab.active::after {
  display: none;
}

.tsh-nav-tab .tsh-tab-icon {
  font-size: 15px;
}

/* =====================================================
   MAIN CONTENT AREA
   ===================================================== */

.tsh-main-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Tab panels */
.tsh-tab-panel {
  display: none;
  animation: tsh-tab-fade 0.25s ease;
}

.tsh-tab-panel.active {
  display: block;
}

/* ---- Content grid ---- */
.tsh-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.tsh-grid-2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.tsh-grid-2-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.tsh-grid-3-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

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

.tsh-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.tsh-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--tsh-border);
}

.tsh-card-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--tsh-text-primary);
  text-transform: uppercase;
}

.tsh-card-link {
  font-size: 12px;
  color: var(--tsh-accent);
  font-weight: 600;
  transition: opacity var(--transition-fast);
}

.tsh-card-link:hover {
  opacity: 0.75;
}

.tsh-card-body {
  padding: 16px 18px;
}

/* =====================================================
   GROUP STANDINGS
   ===================================================== */

.tsh-groups-tabs {
  display: flex;
  gap: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--tsh-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.tsh-groups-tabs::-webkit-scrollbar {
  display: none;
}

.tsh-group-tab {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tsh-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: var(--font-main);
}

.tsh-group-tab.active {
  color: var(--tsh-accent);
  border-bottom-color: var(--tsh-accent);
}

.tsh-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.tsh-standings-table th {
  padding: 8px 6px;
  color: var(--tsh-text-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 10px;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 1px solid var(--tsh-border);
}

.tsh-standings-table th:first-child {
  text-align: left;
  padding-left: 18px;
}

.tsh-standings-table td {
  padding: 10px 6px;
  text-align: center;
  color: var(--tsh-text-secondary);
  border-bottom: 1px solid var(--tsh-border);
}

.tsh-standings-table td:first-child {
  text-align: left;
  padding-left: 18px;
}

.tsh-standings-table tr:last-child td {
  border-bottom: none;
}

.tsh-standings-table tbody tr {
  transition: background var(--transition-fast);
  position: relative;
}

.tsh-standings-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tsh-standings-table tbody tr.tsh-qualify {
  border-left: 3px solid var(--tsh-live);
}

.tsh-standings-table tbody tr.tsh-qualify td:first-child {
  padding-left: 15px;
}

.tsh-standings-table tbody tr.tsh-eliminate {
  border-left: 3px solid var(--tsh-red-card);
}

.tsh-standings-table tbody tr.tsh-eliminate td:first-child {
  padding-left: 15px;
}

.tsh-team-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tsh-team-rank {
  width: 16px;
  color: var(--tsh-text-muted);
  font-size: 11px;
  flex-shrink: 0;
}

.tsh-team-flag-sm {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.tsh-team-flag-sm-err {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  background: var(--tsh-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.tsh-pts {
  font-weight: 800;
  color: var(--tsh-text-primary) !important;
}

/* =====================================================
   TODAY'S FIXTURES
   ===================================================== */

.tsh-fixture-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--tsh-border);
  transition: background var(--transition-fast);
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding-left: 4px;
  padding-right: 4px;
}

.tsh-fixture-card:last-child {
  border-bottom: none;
}

.tsh-fixture-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tsh-fixture-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--tsh-text-muted);
  min-width: 75px;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.2;
}

.tsh-fixture-date {
  font-size: 10px;
  font-weight: 500;
  color: var(--tsh-text-secondary);
}

.tsh-fixture-time-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--tsh-text-primary);
  margin: 1px 0;
}

.tsh-fixture-tz {
  font-size: 9px;
  font-weight: 600;
  color: var(--tsh-accent);
  letter-spacing: 0.5px;
}

.tsh-fixture-match {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tsh-fixture-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tsh-fixture-team-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--tsh-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tsh-fixture-vs {
  font-size: 11px;
  font-weight: 800;
  color: var(--tsh-text-muted);
  background: var(--tsh-bg-secondary);
  border: 1px solid var(--tsh-border);
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  flex-shrink: 0;
}

.tsh-fixture-score {
  font-size: 13px;
  font-weight: 900;
  color: var(--tsh-text-primary);
  background: var(--tsh-bg-secondary);
  border: 1px solid var(--tsh-border);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.tsh-fixture-meta {
  font-size: 10px;
  color: var(--tsh-text-muted);
  flex-shrink: 0;
}

.tsh-fixture-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.tsh-fixture-status--live {
  background: rgba(34, 197, 94, 0.15);
  color: var(--tsh-live);
  border: 1px solid rgba(34, 197, 94, 0.3);
  animation: tsh-blink 1.8s ease-in-out infinite;
}

.tsh-fixture-status--upcoming {
  background: rgba(100, 116, 139, 0.15);
  color: var(--tsh-text-muted);
}

.tsh-fixture-status--ft {
  background: rgba(255, 255, 255, 0.05);
  color: var(--tsh-text-muted);
}

.tsh-fixtures-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--tsh-text-muted);
  font-style: italic;
}

/* =====================================================
   BRACKET PREVIEW
   ===================================================== */

.tsh-bracket-preview-wrap {
  height: 150px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--tsh-border) transparent;
}

.tsh-bracket-preview-wrap::-webkit-scrollbar {
  height: 4px;
}

.tsh-bracket-preview-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.tsh-bracket-preview-wrap::-webkit-scrollbar-thumb {
  background: var(--tsh-border);
  border-radius: 2px;
}

#tsh-bracket-mini svg {
  display: block;
}

.tsh-bracket-expand-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--tsh-border);
  border-radius: var(--radius-sm);
  color: var(--tsh-text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-main);
}

.tsh-bracket-expand-btn:hover {
  border-color: var(--tsh-accent);
  color: var(--tsh-accent);
  background: rgba(230, 57, 70, 0.06);
}

/* =====================================================
   LATEST NEWS
   ===================================================== */

.tsh-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tsh-news-featured {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  background: var(--tsh-bg-secondary);
}

.tsh-news-featured:hover .tsh-news-img {
  transform: scale(1.04);
}

.tsh-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tsh-news-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--tsh-bg-secondary) 0%, var(--tsh-bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.tsh-news-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.tsh-news-featured-title {
  font-size: 10px !important;
  font-weight: 800;
  color: #fff !important;
  margin: 0 !important;
}

.tsh-news-featured-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.tsh-news-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(230, 57, 70, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
}

.tsh-news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tsh-news-item {
  display: flex;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.tsh-news-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tsh-news-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--tsh-bg-secondary);
}

.tsh-news-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tsh-news-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--tsh-text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tsh-news-item-time {
  font-size: 11px;
  color: var(--tsh-text-muted);
}

/* =====================================================
   TOP SCORERS
   ===================================================== */

.tsh-scorers-table {
  width: 100%;
}

.tsh-scorers-table-header {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  gap: 8px;
  padding: 6px 0 8px;
  border-bottom: 1px solid var(--tsh-border);
  margin-bottom: 4px;
}

.tsh-scorers-table-header span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tsh-text-muted);
  text-transform: uppercase;
}

.tsh-scorer-row {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--tsh-border);
  transition: background var(--transition-fast);
  border-radius: var(--radius-sm);
}

.tsh-scorer-row:last-child {
  border-bottom: none;
}

.tsh-scorer-row:hover {
  background: rgba(255, 255, 255, 0.03);
  padding-left: 4px;
  padding-right: 4px;
}

.tsh-scorer-rank {
  font-size: 12px;
  font-weight: 800;
  color: var(--tsh-text-muted);
  text-align: center;
}

.tsh-scorer-rank--gold {
  color: var(--tsh-gold);
}

.tsh-scorer-rank--silver {
  color: #c0c0c0;
}

.tsh-scorer-rank--bronze {
  color: #cd7f32;
}

.tsh-scorer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tsh-scorer-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tsh-bg-secondary);
  flex-shrink: 0;
  border: 2px solid var(--tsh-border);
}

.tsh-scorer-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tsh-accent) 0%, var(--tsh-accent-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(230, 57, 70, 0.3);
}

.tsh-scorer-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--tsh-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tsh-scorer-team-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.tsh-scorer-goals {
  font-size: 16px;
  font-weight: 900;
  color: var(--tsh-text-primary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* =====================================================
   TEAMS SECTION
   ===================================================== */

.tsh-teams-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 4px;
}

.tsh-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 4px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.tsh-team-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.tsh-team-flag-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--tsh-border);
  background: var(--tsh-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast);
  flex-shrink: 0;
}

.tsh-team-card:hover .tsh-team-flag-circle {
  border-color: var(--tsh-accent);
}

.tsh-team-flag-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tsh-team-flag-circle .tsh-flag-emoji {
  font-size: 32px;
}

.tsh-team-card-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--tsh-text-secondary);
  text-align: center;
  line-height: 1.3;
}

/* =====================================================
   FEATURED PLAYERS
   ===================================================== */

.tsh-players-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tsh-player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--tsh-border);
  transition: all var(--transition-med);
  background: var(--tsh-bg-secondary);
}

.tsh-player-card:hover {
  border-color: var(--tsh-accent);
  background: rgba(230, 57, 70, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tsh-player-photo-wrap {
  position: relative;
  width: 72px;
  height: 72px;
}

.tsh-player-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tsh-border);
  transition: border-color var(--transition-fast);
}

.tsh-player-initials-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tsh-bg-card) 0%, var(--tsh-bg-secondary) 100%);
  border: 2px solid var(--tsh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--tsh-text-primary);
}

.tsh-player-card:hover .tsh-player-photo,
.tsh-player-card:hover .tsh-player-initials-circle {
  border-color: var(--tsh-accent);
}

.tsh-player-gradient {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.tsh-player-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--tsh-text-primary);
  text-align: left;
  line-height: 1.3;
}

.tsh-player-pos {
  font-size: 10px;
  color: var(--tsh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tsh-player-team-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

/* =====================================================
   TOURNAMENT STATS
   ===================================================== */

.tsh-stats-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tsh-stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tsh-border);
  transition: background var(--transition-fast);
}

.tsh-stat-row:last-child {
  border-bottom: none;
}

.tsh-stat-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tsh-stat-icon {
  width: 36px;
  height: 36px;
  background: var(--tsh-bg-secondary);
  border: 1px solid var(--tsh-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tsh-stat-label {
  flex: 1;
  font-size: 13px;
  color: var(--tsh-text-secondary);
  font-weight: 500;
}

.tsh-stat-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--tsh-text-primary);
  font-variant-numeric: tabular-nums;
}

/* =====================================================
   BRACKET FULLSCREEN MODAL
   ===================================================== */

.tsh-bracket-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: tsh-fade-in 0.2s ease;
}

.tsh-bracket-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tsh-bracket-modal-inner {
  background: var(--tsh-bg-secondary);
  border: 1px solid var(--tsh-border);
  border-radius: var(--radius-lg);
  width: calc(100vw - 40px);
  max-width: 1200px;
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
}

.tsh-bracket-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--tsh-border);
  flex-shrink: 0;
}

.tsh-bracket-modal-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--tsh-text-primary);
}

.tsh-bracket-modal-body {
  flex: 1;
  overflow: auto;
  padding: 20px;
}

.tsh-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tsh-bg-card);
  border: 1px solid var(--tsh-border);
  color: var(--tsh-text-secondary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.tsh-modal-close:hover {
  background: var(--tsh-accent);
  border-color: var(--tsh-accent);
  color: #fff;
}

/* =====================================================
   MATCH DETAIL PANEL
   ===================================================== */

.tsh-match-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tsh-match-panel-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.tsh-match-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100vw);
  background: var(--tsh-bg-secondary);
  border-left: 1px solid var(--tsh-border);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
}

.tsh-match-panel.open {
  transform: translateX(0);
  visibility: visible;
}

.tsh-panel-header {
  background: var(--tsh-bg-card);
  border-bottom: 1px solid var(--tsh-border);
  padding: 20px;
  flex-shrink: 0;
}

.tsh-panel-close-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.tsh-panel-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.tsh-panel-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tsh-panel-team-flag {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.tsh-panel-team-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--tsh-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tsh-panel-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tsh-panel-score {
  font-size: 36px;
  font-weight: 900;
  color: var(--tsh-text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.tsh-panel-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
}

.tsh-panel-status--live {
  background: rgba(34, 197, 94, 0.15);
  color: var(--tsh-live);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.tsh-panel-status--ft {
  background: rgba(100, 116, 139, 0.15);
  color: var(--tsh-text-muted);
  border: 1px solid var(--tsh-border);
}

/* Panel tabs */
.tsh-panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--tsh-border);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.tsh-panel-tabs::-webkit-scrollbar {
  display: none;
}

.tsh-panel-tab {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tsh-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: var(--font-main);
  letter-spacing: 0.04em;
}

.tsh-panel-tab.active {
  color: var(--tsh-accent);
  border-bottom-color: var(--tsh-accent);
}

.tsh-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--tsh-border) transparent;
}

.tsh-panel-body::-webkit-scrollbar {
  width: 4px;
}

.tsh-panel-body::-webkit-scrollbar-thumb {
  background: var(--tsh-border);
  border-radius: 2px;
}

.tsh-panel-section {
  display: none;
}

.tsh-panel-section.active {
  display: block;
  animation: tsh-tab-fade 0.2s ease;
}

/* Overview: Venue, Referee */
.tsh-overview-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tsh-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--tsh-bg-card);
  border: 1px solid var(--tsh-border);
  border-radius: var(--radius-md);
}

.tsh-info-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.tsh-info-content {
  flex: 1;
  min-width: 0;
}

.tsh-info-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--tsh-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tsh-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--tsh-text-primary);
  margin-top: 2px;
}

/* Timeline */
.tsh-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.tsh-timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--tsh-border);
}

.tsh-timeline-event {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}

.tsh-timeline-time {
  width: 36px;
  font-size: 11px;
  font-weight: 800;
  color: var(--tsh-accent);
  text-align: right;
  flex-shrink: 0;
  padding-top: 6px;
}

.tsh-timeline-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tsh-bg-card);
  border: 1px solid var(--tsh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}

.tsh-timeline-desc {
  flex: 1;
  padding-top: 4px;
}

.tsh-timeline-player {
  font-size: 13px;
  font-weight: 700;
  color: var(--tsh-text-primary);
}

.tsh-timeline-detail {
  font-size: 11px;
  color: var(--tsh-text-muted);
  margin-top: 2px;
}

.tsh-timeline-team {
  font-size: 10px;
  font-weight: 700;
  background: var(--tsh-bg-secondary);
  border: 1px solid var(--tsh-border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--tsh-text-muted);
  flex-shrink: 0;
}

/* Statistics bars */
.tsh-stat-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tsh-stat-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tsh-stat-bar-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--tsh-text-primary);
}

.tsh-stat-bar-labels span:first-child {
  text-align: left;
}

.tsh-stat-bar-labels span:nth-child(2) {
  font-size: 10px;
  font-weight: 600;
  color: var(--tsh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.tsh-stat-bar-labels span:last-child {
  text-align: right;
}

.tsh-stat-bar-track {
  height: 6px;
  background: var(--tsh-bg-card);
  border-radius: 3px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.tsh-stat-bar-fill-left {
  height: 100%;
  background: var(--tsh-accent);
  border-radius: 3px 0 0 3px;
  margin-left: auto;
  transition: width 0.6s ease;
}

.tsh-stat-bar-fill-right {
  height: 100%;
  background: var(--tsh-text-muted);
  border-radius: 0 3px 3px 0;
  transition: width 0.6s ease;
}

/* Lineups */
.tsh-lineups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tsh-lineup-col-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--tsh-text-primary);
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tsh-border);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tsh-player-lineup-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tsh-player-lineup-row:last-child {
  border-bottom: none;
}

.tsh-lineup-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--tsh-text-muted);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.tsh-lineup-name {
  font-size: 12px;
  color: var(--tsh-text-primary);
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsh-lineup-pos {
  font-size: 10px;
  color: var(--tsh-text-muted);
  background: var(--tsh-bg-card);
  border-radius: 3px;
  padding: 1px 4px;
  flex-shrink: 0;
}

/* Card icons in lineup */
.tsh-yc-icon {
  width: 10px;
  height: 14px;
  background: var(--tsh-yellow-card);
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.tsh-rc-icon {
  width: 10px;
  height: 14px;
  background: var(--tsh-red-card);
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

/* =====================================================
   RESULTS / FIXTURES / GROUPS / STATS TAB PANELS
   ===================================================== */

.tsh-results-grid {
  display: grid;
  gap: 12px;
}

.tsh-result-card {
  background: var(--tsh-bg-card);
  border: 1px solid var(--tsh-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition-med);
}

.tsh-result-card:hover {
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translateX(2px);
}

.tsh-result-teams {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.tsh-result-team {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tsh-result-team--away {
  flex-direction: row-reverse;
  text-align: right;
}

.tsh-result-score {
  font-size: 22px;
  font-weight: 900;
  color: var(--tsh-text-primary);
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tsh-result-meta {
  flex-shrink: 0;
  text-align: right;
}

.tsh-result-date {
  font-size: 11px;
  color: var(--tsh-text-muted);
}

.tsh-result-group {
  font-size: 10px;
  color: var(--tsh-text-muted);
  background: var(--tsh-bg-secondary);
  border-radius: 4px;
  padding: 2px 6px;
  margin-top: 4px;
  display: inline-block;
}

/* Full groups tab */
.tsh-all-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Stats full tab */
.tsh-stats-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.tsh-stat-big-card {
  background: var(--tsh-bg-card);
  border: 1px solid var(--tsh-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition-med);
}

.tsh-stat-big-card:hover {
  border-color: rgba(230, 57, 70, 0.3);
  transform: translateY(-2px);
}

.tsh-stat-big-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.tsh-stat-big-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--tsh-text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 6px;
}

.tsh-stat-big-label {
  font-size: 12px;
  color: var(--tsh-text-muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Players full tab */
.tsh-players-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* News full tab */
.tsh-news-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tsh-news-full-card {
  background: var(--tsh-bg-card);
  border: 1px solid var(--tsh-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-med);
}

.tsh-news-full-card:hover {
  border-color: rgba(230, 57, 70, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.tsh-news-full-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--tsh-bg-secondary);
}

.tsh-news-full-body {
  padding: 14px;
}

.tsh-news-full-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tsh-text-primary) !important;
  line-height: 1.4;
  margin-bottom: 8px;
}

.tsh-news-full-excerpt {
  font-size: 12px;
  color: var(--tsh-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.tsh-news-full-time {
  font-size: 11px;
  color: var(--tsh-text-muted);
}

/* Bracket full tab */
.tsh-bracket-full-wrap {
  overflow: auto;
  padding: 20px;
  background: var(--tsh-bg-primary);
  border-radius: var(--radius-md);
  min-height: 400px;
}

/* Teams full tab */
.tsh-teams-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

/* =====================================================
   SVG BRACKET STYLES
   ===================================================== */

.tsh-bracket-svg {
  font-family: var(--font-main);
  user-select: none;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

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

.tsh-text-right {
  text-align: right;
}

.tsh-text-center {
  text-align: center;
}

.tsh-mt-16 {
  margin-top: 16px;
}

.tsh-mb-16 {
  margin-bottom: 16px;
}

.tsh-gap-8 {
  gap: 8px;
}

.tsh-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--tsh-text-muted);
  gap: 12px;
  text-align: center;
}

.tsh-empty-state-icon {
  font-size: 40px;
}

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

.tsh-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tsh-section-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--tsh-text-primary);
  text-transform: uppercase;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
  .tsh-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .tsh-grid-3>*:last-child {
    grid-column: 1 / -1;
  }

  .tsh-teams-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 900px) {
  .tsh-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tsh-hero-center {
    display: none;
  }

  .tsh-hero-right {
    order: 1;
  }

  .tsh-hero-left {
    order: 2;
  }

  .tsh-grid-2,
  .tsh-grid-2-equal {
    grid-template-columns: 1fr;
  }

  .tsh-grid-3-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .tsh-stats-full {
    grid-template-columns: 1fr 1fr;
  }

  .tsh-all-groups {
    grid-template-columns: 1fr;
  }

  .tsh-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--tsh-bg-card);
    border-bottom: 1px solid var(--tsh-border);
  }

  .tsh-mobile-nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--tsh-text-primary);
  }

  .tsh-mobile-nav-toggle {
    background: none;
    border: none;
    color: var(--tsh-text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tsh-nav-inner {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0;
    background: var(--tsh-bg-secondary);
    border-top: 1px solid var(--tsh-border);
  }

  .tsh-nav-inner.active {
    display: flex;
  }

  .tsh-nav-tab {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    padding: 12px 20px;
    border-radius: 0;
    flex: none;
  }

  .tsh-nav-tab.active {
    border-radius: 0;
    margin: 0;
    background: rgba(230, 57, 70, 0.15);
    color: var(--tsh-accent);
    border-left: 3px solid var(--tsh-accent);
  }
}

@media (max-width: 768px) {
  .tsh-hero {
    padding: 24px 16px;
  }

  .tsh-hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tsh-grid-3 {
    grid-template-columns: 1fr;
  }

  .tsh-grid-2 {
    grid-template-columns: 1fr;
  }

  .tsh-grid-3-bottom {
    grid-template-columns: 1fr;
  }

  .tsh-news-grid {
    grid-template-columns: 1fr;
  }

  .tsh-players-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tsh-teams-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tsh-stats-full {
    grid-template-columns: 1fr;
  }

  .tsh-countdown {
    flex-wrap: wrap;
  }

  .tsh-countdown-box {
    min-width: 60px;
    padding: 10px 14px;
  }

  .tsh-countdown-num {
    font-size: 24px;
  }

  .tsh-live-card {
    min-width: unset;
  }

  .tsh-bracket-modal-inner {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .tsh-match-panel {
    width: 100vw;
  }

  .tsh-lineups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tsh-hero-title {
    font-size: 24px;
  }

  .tsh-players-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tsh-teams-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tsh-nav-tab {
    padding: 12px 10px;
    font-size: 12px;
  }

  .tsh-main-inner {
    padding: 16px 12px;
  }
}

/* =====================================================
   SPONSORS CAROUSEL & PARTNERS
   ===================================================== */
.tsh-sponsors-card {
  overflow: hidden;
  margin-bottom: 25px;

}

.tsh-sponsors-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 15px 0 5px;
}

.tsh-sponsors-carousel {
  overflow: hidden;
  width: 100%;
}

.tsh-sponsors-track {
  display: flex;
  gap: 20px;
}

.tsh-sponsor-logo-item {
  flex: 0 0 calc((100% - 40px) / 3);
  /* 3 items per screen on desktop */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90px;
  background: var(--tsh-bg-secondary);
  border: 1px solid var(--tsh-border);
  border-radius: var(--radius-md);
  padding: 15px;
  box-sizing: border-box;
}

.tsh-sponsor-logo-item img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(0.8) contrast(1.2);
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.tsh-sponsor-logo-item:hover img {
  filter: none;
  transform: scale(1.05);
}

.tsh-carousel-btn {
  background: rgba(26, 32, 53, 0.8);
  border: 1px solid var(--tsh-border);
  color: var(--tsh-text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  padding: 0;
}

.tsh-carousel-btn:hover {
  background: var(--tsh-accent);
  border-color: var(--tsh-accent);
}

/* =====================================================
   NEWS LOAD MORE PAGINATION
   ===================================================== */
.tsh-news-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .tsh-sponsor-logo-item {
    flex: 0 0 100%;
    /* 1 item per screen on mobile */
  }
}

/* =====================================================
   LIVE MATCH CARD 3D FLIPPING
   ===================================================== */
.tsh-live-card-flip-container {
  position: relative;
  margin: 30px;
  width: calc(100% - 60px);
  display: block;
}

.tsh-live-card-flipper {
  position: relative;
  width: 100%;
}

.tsh-live-card-front,
.tsh-live-card-back {
  width: 100%;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tsh-live-card-front {
  opacity: 1;
  transform: scale(1);
  -webkit-transform: scale(1);
  pointer-events: auto;
  z-index: 2;
  position: relative;
}

.tsh-live-card-back {
  opacity: 0;
  transform: scale(1.05);
  -webkit-transform: scale(1.05);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1;
}

/* Showing Ad State */
.tsh-live-card-flipper.flipped .tsh-live-card-front {
  opacity: 0;
  transform: scale(0.95);
  -webkit-transform: scale(0.95);
  pointer-events: none;
  z-index: 1;
}

.tsh-live-card-flipper.flipped .tsh-live-card-back {
  opacity: 1;
  transform: scale(1);
  -webkit-transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

/* Override margins for live card when inside flipper */
.tsh-live-card-flip-container .tsh-live-card {
  margin: 0 !important;
  width: 100%;
}

.tsh-live-card-front .tsh-live-card {
  height: auto;
}

.tsh-live-card-back .tsh-live-card {
  height: 100%;
}

.tsh-live-card-ad-back {
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111827;
}

.tsh-live-card-ad-back a {
  display: block;
  width: 100%;
  height: 100%;
}

.tsh-live-card-ad-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

/* =====================================================
   COMMENTARY TIMELINE TAB
   ===================================================== */
.tsh-commentary {
  position: relative;
  padding: 10px 0 10px 20px;
}

.tsh-commentary::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 29px;
  width: 2px;
  background: var(--tsh-border);
}

.tsh-commentary-event {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.tsh-commentary-time {
  min-width: 60px;
  font-weight: 700;
  font-size: 13px;
  color: var(--tsh-accent);
  text-align: right;
  padding-top: 2px;
}

.tsh-commentary-icon-wrap {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tsh-bg-card);
  border: 1px solid var(--tsh-border);
  border-radius: 50%;
  font-size: 12px;
  z-index: 1;
}

.tsh-commentary-desc {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--tsh-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.tsh-commentary-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--tsh-text-primary);
}

/* =====================================================
   TEAM DETAIL PANEL
   ===================================================== */

.tsh-team-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tsh-team-panel-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.tsh-team-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100vw);
  background: var(--tsh-bg-secondary);
  border-left: 1px solid var(--tsh-border);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
}

.tsh-team-panel.open {
  transform: translateX(0);
  visibility: visible;
}

.tsh-panel-team-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 5px;
}

.tsh-panel-team-title {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tsh-text-primary);
  margin: 0;
}

.tsh-panel-team-subtitle {
  font-size: 0.875rem;
  color: var(--tsh-text-secondary);
}

.tsh-panel-tabs-bar {
  display: flex;
  background: var(--tsh-bg-card);
  border-bottom: 1px solid var(--tsh-border);
  padding: 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tsh-panel-tabs-bar::-webkit-scrollbar {
  display: none;
}

.tsh-panel-tabs-bar .tsh-panel-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--tsh-text-secondary);
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tsh-panel-tabs-bar .tsh-panel-tab:hover {
  color: var(--tsh-text-primary);
}

.tsh-panel-tabs-bar .tsh-panel-tab.active {
  border-bottom-color: var(--tsh-accent);
  color: var(--tsh-text-primary);
}

.tsh-panel-section {
  display: none;
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.tsh-panel-section.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tsh-player-row {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--tsh-bg-card);
  border: 1px solid var(--tsh-border);
  border-radius: 8px;
  padding: 10px 15px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tsh-player-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.tsh-player-shirt-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tsh-accent);
  width: 25px;
  text-align: center;
}

.tsh-player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tsh-border);
}

.tsh-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tsh-avatar-init {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--tsh-text-secondary);
}

.tsh-player-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tsh-player-name {
  font-weight: 600;
  color: var(--tsh-text-primary);
}

.tsh-player-club {
  font-size: 0.75rem;
  color: var(--tsh-text-secondary);
}

.tsh-player-stats {
  display: flex;
  gap: 8px;
}

.tsh-player-stat-badge {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tsh-border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--tsh-text-secondary);
}

/* =====================================================
   GLOBAL SCROLL OVERFLOW FIXES FOR PORTALS
   ===================================================== */
html, body {
  overflow-x: hidden !important;
}

#tsh-portal-wrapper {
  overflow: hidden !important;
  width: 100vw;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

#tsh-portal-wrapper > * {
  pointer-events: auto;
}