/*
Theme Name: ThugStream Pro
Theme URI: https://thugstream.com
Author: ThugStream Team
Author URI: https://thugstream.com
Description: Premium automated sports live streaming theme for ThugStream. Built-in Streamed.pk scraper, full admin panel, RankMath deep SEO (titles, focus keywords, FAQ + SportsEvent schema), humanized brand content, multi-source responsive player, auto-cleanup, auto-featured images, and mobile-first design.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: thugstream
Tags: sports, streaming, dark, responsive, custom-logo, custom-menu
License: GNU General Public License v2 or later
*/

/* ============================================================
   CSS Variables (controlled via admin panel)
   ============================================================ */
:root {
  --ts-bg: #0a0e14;
  --ts-surface: #111821;
  --ts-surface-2: #1a2332;
  --ts-surface-3: #243044;
  --ts-accent: #2ee6a6;
  --ts-accent-hover: #1fd492;
  --ts-accent-dim: rgba(46, 230, 166, 0.12);
  --ts-live: #ff4757;
  --ts-live-bg: rgba(255, 71, 87, 0.12);
  --ts-text: #eef2f6;
  --ts-text-dim: #8b9aab;
  --ts-text-muted: #5c6b7a;
  --ts-border: #1e2a3a;
  --ts-radius: 12px;
  --ts-radius-sm: 8px;
  --ts-shadow: 0 4px 24px rgba(0,0,0,0.35);
  --ts-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ts-max-w: 1200px;
  --ts-header-h: 64px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ts-bg);
  color: var(--ts-text);
  font-family: var(--ts-font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ts-accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ts-accent-hover); }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   Layout
   ============================================================ */
.ts-container {
  max-width: var(--ts-max-w);
  margin: 0 auto;
  padding: 0 16px;
}
.ts-main { padding: 20px 0 40px; min-height: 60vh; }

/* ============================================================
   Header
   ============================================================ */
.ts-header {
  background: var(--ts-surface);
  border-bottom: 1px solid var(--ts-border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--ts-header-h);
}
.ts-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}
.ts-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ts-text);
  flex-shrink: 0;
}
.ts-logo img { height: 36px; width: auto; }
.ts-logo span { color: var(--ts-accent); }

/* Nav */
.ts-nav { display: flex; align-items: center; gap: 4px; }
.ts-nav ul { display: flex; align-items: center; gap: 2px; }
.ts-nav a {
  color: var(--ts-text-dim);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: var(--ts-radius-sm);
  transition: all .15s;
}
.ts-nav a:hover,
.ts-nav .current-menu-item > a {
  color: var(--ts-accent);
  background: var(--ts-accent-dim);
}

/* Mobile menu toggle */
.ts-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius-sm);
  color: var(--ts-text);
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.ts-menu-toggle:hover { border-color: var(--ts-accent); color: var(--ts-accent); }

/* ============================================================
   Live Badge
   ============================================================ */
.ts-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ts-live-bg);
  color: var(--ts-live);
  border: 1px solid rgba(255,71,87,0.3);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ts-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ts-live);
  animation: ts-pulse 1.4s ease-in-out infinite;
}
@keyframes ts-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* ============================================================
   Section Headers
   ============================================================ */
.ts-section { margin-bottom: 32px; }
.ts-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.ts-section-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ts-text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ts-section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--ts-accent);
  border-radius: 2px;
}
.ts-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--ts-text-dim);
}
.ts-view-all:hover { color: var(--ts-accent); }

/* ============================================================
   Tabs / Filters
   ============================================================ */
.ts-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.ts-tab {
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  color: var(--ts-text-dim);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.ts-tab:hover,
.ts-tab.active {
  background: var(--ts-accent-dim);
  border-color: var(--ts-accent);
  color: var(--ts-accent);
}

/* ============================================================
   Fixture Card
   ============================================================ */
.ts-fixture-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ts-fixture-card {
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
}
.ts-fixture-card:hover {
  border-color: var(--ts-accent);
  transform: translateY(-1px);
  box-shadow: var(--ts-shadow);
  color: inherit;
}
.ts-fixture-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.ts-fixture-teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ts-team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}
.ts-team-row img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}
.ts-team-row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-fixture-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.ts-kickoff {
  font-size: 12px;
  color: var(--ts-text-dim);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ts-sport-tag {
  font-size: 11px;
  color: var(--ts-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Grid variant for related */
.ts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

/* ============================================================
   Match Hero (Single)
   ============================================================ */
.ts-match-hero {
  background: linear-gradient(160deg, var(--ts-surface-2) 0%, var(--ts-surface) 100%);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  padding: 12px 14px;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.ts-match-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(46,230,166,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.ts-match-sport {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ts-text-dim);
  margin-bottom: 6px;
}
.ts-match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.ts-match-team {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto; /* do NOT stretch to edges */
  justify-content: center;
  max-width: 45%;
}
.ts-match-team:last-of-type {
  /* same direction as home – badge then name */
  flex-direction: row;
}
.ts-match-team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.ts-match-team span {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  text-align: left;
}
.ts-match-vs {
  font-size: 11px;
  font-weight: 800;
  color: var(--ts-text-muted);
  letter-spacing: 0.06em;
  flex: 0 0 auto;
}
.ts-match-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 4px 0 2px;
  line-height: 1.3;
}
.ts-countdown {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  color: var(--ts-accent);
  margin: 4px 0;
}
.ts-match-info-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ts-text-dim);
}

/* ============================================================
   Stream Player – fixed max size, responsive
   ============================================================ */
.ts-player-wrap {
  background: #000;
  border-radius: var(--ts-radius);
  overflow: hidden;
  border: 1px solid var(--ts-border);
  margin: 0 auto 12px;
  width: 100%;
  max-width: 640px; /* compact desktop player */
}
.ts-player-ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(56.25vw, 360px);
  background: #000;
  overflow: hidden;
}
@supports not (aspect-ratio: 16 / 9) {
  .ts-player-ratio {
    padding-top: 56.25%;
    height: 0;
    max-height: none;
  }
}
.ts-player-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  max-height: 100%;
}
.ts-player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ts-text-dim);
  background: var(--ts-surface);
  padding: 16px;
  text-align: center;
  font-size: 14px;
}
.ts-player-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}
.ts-player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 14px;
  max-width: 640px;
  justify-content: flex-start;
}
.ts-stream-sources {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Stream source buttons */
.ts-stream-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.ts-stream-btn {
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  color: var(--ts-text-dim);
  padding: 8px 14px;
  border-radius: var(--ts-radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ts-stream-btn:hover,
.ts-stream-btn.active {
  background: var(--ts-accent-dim);
  border-color: var(--ts-accent);
  color: var(--ts-accent);
}
.ts-stream-btn .hd-tag {
  background: var(--ts-accent);
  color: #052018;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
}

/* ============================================================
   Content / Humanized
   ============================================================ */
.ts-content {
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  padding: 20px;
  margin-bottom: 24px;
  line-height: 1.7;
  color: var(--ts-text-dim);
}
.ts-content h2, .ts-content h3 {
  color: var(--ts-text);
  margin: 16px 0 8px;
  font-size: 1.1rem;
}
.ts-content p { margin-bottom: 12px; }
.ts-content p:last-child { margin-bottom: 0; }

/* ============================================================
   Empty State
   ============================================================ */
.ts-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ts-text-dim);
  background: var(--ts-surface);
  border: 1px dashed var(--ts-border);
  border-radius: var(--ts-radius);
}

/* ============================================================
   Footer
   ============================================================ */
.ts-footer {
  border-top: 1px solid var(--ts-border);
  background: var(--ts-surface);
  padding: 32px 16px;
  margin-top: auto;
  text-align: center;
  color: var(--ts-text-dim);
  font-size: 13px;
}
.ts-footer a { color: var(--ts-text-dim); }
.ts-footer a:hover { color: var(--ts-accent); }
.ts-footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ============================================================
   Responsive – tablet & mobile
   ============================================================ */
html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 992px) {
  .ts-player-wrap,
  .ts-player-actions,
  .ts-stream-sources {
    max-width: 100%;
  }
  .ts-player-ratio {
    max-height: min(56.25vw, 480px);
  }
}

@media (max-width: 768px) {
  :root {
    --ts-header-h: 56px;
  }
  .ts-container {
    padding: 0 12px;
    width: 100%;
    max-width: 100%;
  }
  .ts-main {
    padding: 12px 0 28px;
  }
  .ts-logo {
    font-size: 1.15rem;
  }
  .ts-logo img {
    height: 28px;
  }
  .ts-menu-toggle {
    display: flex;
  }
  .ts-nav {
    position: fixed;
    top: var(--ts-header-h);
    left: 0;
    right: 0;
    background: var(--ts-surface);
    border-bottom: 1px solid var(--ts-border);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s ease, opacity .2s ease, visibility .2s;
    z-index: 200;
    max-height: calc(100vh - var(--ts-header-h));
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0,0,0,.35);
  }
  .ts-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .ts-header {
    z-index: 300;
    position: sticky;
    top: 0;
  }
  body.ts-nav-open {
    overflow: hidden;
  }
  /* Prevent ghost text over content when closed */
  .ts-nav:not(.open) a,
  .ts-nav:not(.open) li {
    visibility: hidden;
  }
  .ts-nav ul {
    flex-direction: column;
    gap: 2px;
  }
  .ts-nav a {
    display: block;
    padding: 12px 14px;
    font-size: 14px;
  }

  /* Match hero */
  .ts-match-hero {
    padding: 10px 10px;
    margin-bottom: 10px;
  }
  .ts-match-team img {
    width: 24px;
    height: 24px;
  }
  .ts-match-team span {
    font-size: 12px;
    max-width: 110px;
  }
  .ts-match-teams {
    max-width: 100%;
    gap: 8px;
  }
  .ts-match-title {
    font-size: 0.88rem;
    padding: 0 2px;
  }
  .ts-match-teams {
    gap: 6px;
  }
  .ts-score-num {
    font-size: 1.15rem;
  }
  .ts-match-info-row {
    gap: 8px;
    font-size: 11px;
  }

  /* Cards */
  .ts-fixture-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }
  .ts-fixture-meta {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
  }
  .ts-section {
    margin-bottom: 22px;
  }
  .ts-section-title {
    font-size: 13px;
  }
  .ts-content {
    padding: 14px;
    font-size: 14px;
  }
  .ts-tabs {
    gap: 6px;
    margin-bottom: 12px;
  }
  .ts-tab {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Player – fit screen, not oversized */
  .ts-player-wrap {
    max-width: 100%;
    border-radius: var(--ts-radius-sm);
    margin-bottom: 10px;
  }
  .ts-player-ratio {
    aspect-ratio: 16 / 9;
    max-height: min(56.25vw, 280px);
    padding-top: 0;
    height: auto;
  }
  .ts-player-actions {
    max-width: 100%;
    margin-bottom: 12px;
  }
  .ts-stream-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  .ts-stream-sources {
    max-width: 100%;
    gap: 6px;
  }
  .ts-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .ts-container {
    padding: 0 10px;
  }
  .ts-player-wrap {
    /* slight edge-to-edge without breaking layout */
    width: calc(100% + 20px);
    max-width: none;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .ts-player-ratio {
    max-height: min(56.25vw, 260px);
    border-radius: 0;
  }
  .ts-match-hero {
    padding: 8px 8px;
  }
  .ts-score-num {
    font-size: 1.1rem;
  }
  .ts-match-team span {
    max-width: 72px;
    font-size: 11px;
  }
  .ts-player-placeholder {
    padding: 12px;
    font-size: 13px;
  }
}

/* Landscape phones – keep player shorter */
@media (max-width: 900px) and (orientation: landscape) {
  .ts-player-ratio {
    max-height: min(70vh, 280px);
    aspect-ratio: 16 / 9;
  }
}

/* ============================================================
   Utility
   ============================================================ */
.ts-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.ts-loading {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ts-border);
  border-top-color: var(--ts-accent);
  border-radius: 50%;
  animation: ts-spin .7s linear infinite;
}
@keyframes ts-spin { to { transform: rotate(360deg); } }


/* Working stream indicator */
.ts-ok-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ee6a6;
  display: inline-block;
  box-shadow: 0 0 6px rgba(46,230,166,0.6);
}
.ts-stream-btn.ts-stream-alive {
  border-color: rgba(46,230,166,0.35);
}
.ts-stream-btn .ts-ok-dot { margin-right: 2px; }

/* Live pulse on hero */
.ts-match-hero .ts-live-badge { vertical-align: middle; }


/* Live scoreboard */
.ts-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}
.ts-score-num {
  font-size: 1.35rem;
  font-weight: 800;
  min-width: 1em;
  text-align: center;
  color: var(--ts-text);
  line-height: 1;
}
.ts-score-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 48px;
}
.ts-elapsed {
  font-size: 11px;
  font-weight: 700;
  color: var(--ts-live);
}
.ts-ft {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ts-text-dim);
}
.ts-scoreboard-pending {
  flex-direction: row;
  gap: 8px;
  margin: 4px 0;
}
.ts-score-hint {
  font-size: 12px;
  color: var(--ts-text-dim);
}
.ts-score-none {
  font-size: 11px !important;
  margin: 2px 0 0 !important;
}
.ts-card-score {
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ts-accent);
}
.ts-live-badge {
  font-size: 10px;
  padding: 2px 7px;
}


.ts-ad-note {
  font-size: 11px;
  color: var(--ts-text-muted);
  margin: 0 auto 8px;
  max-width: 640px;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .ts-ad-note { font-size: 10px; }
}


.ts-stream-soon {
  font-size: 12px;
  color: var(--ts-text-dim);
  margin: 0 auto 10px;
  max-width: 640px;
  line-height: 1.45;
}
.ts-section-live {
  margin-top: 4px;
}
.ts-fixture-left img[src=""],
.ts-fixture-left img:not([src]) {
  display: none;
}

/* ============================================================
   v2.8 Homepage category sections, SEO content, DMCA footer
   ============================================================ */
.ts-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ts-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ts-sport-icon { font-size: 1.25rem; line-height: 1; }
.ts-section-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ts-text-dim);
  white-space: nowrap;
}
.ts-section-more:hover { color: var(--ts-accent); }

.ts-sport-section {
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  padding: 16px 16px 8px;
  margin-bottom: 20px;
}
.ts-sport-section .ts-section-head {
  border-bottom: 1px solid var(--ts-border);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.ts-fixture-card.is-live {
  border-color: rgba(255, 71, 87, 0.35);
  background: linear-gradient(90deg, rgba(255,71,87,0.06), transparent);
}
.ts-card-countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ts-accent);
  font-size: 0.82rem;
}
.ts-card-countdown.is-live {
  color: var(--ts-live) !important;
}

/* SEO content block */
.ts-seo-section {
  margin-top: 32px;
  padding: 28px 22px;
  background: var(--ts-surface);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
}
.ts-seo-content h2 {
  font-size: 1.45rem;
  margin: 0 0 14px;
  color: var(--ts-text);
  line-height: 1.3;
}
.ts-seo-content h3 {
  font-size: 1.1rem;
  margin: 22px 0 10px;
  color: var(--ts-accent);
}
.ts-seo-content p {
  color: var(--ts-text-dim);
  margin: 0 0 12px;
  line-height: 1.7;
  font-size: 0.95rem;
}
.ts-seo-content strong { color: var(--ts-text); }

/* DMCA footer */
.ts-footer {
  background: var(--ts-surface);
  border-top: 1px solid var(--ts-border);
  padding: 28px 0 36px;
  margin-top: 20px;
}
.ts-dmca {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  margin-bottom: 20px;
  background: var(--ts-surface-2);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius-sm);
}
.ts-dmca-img { max-width: 100px; height: auto; flex-shrink: 0; }
.ts-dmca-badge {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a2332;
  border: 2px solid var(--ts-accent);
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ts-accent);
}
.ts-dmca-body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.ts-dmca-body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ts-text-dim);
  line-height: 1.55;
}
.ts-footer-copy {
  font-size: 0.85rem;
  color: var(--ts-text-muted);
  margin-bottom: 10px;
}
.ts-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
}
.ts-footer-links a { color: var(--ts-text-dim); }
.ts-footer-links a:hover { color: var(--ts-accent); }

@media (max-width: 640px) {
  .ts-dmca { flex-direction: column; align-items: center; text-align: center; }
  .ts-seo-section { padding: 20px 14px; }
  .ts-sport-section { padding: 12px 10px 6px; }
}

/* v2.9 count badge */
.ts-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--ts-surface-3);
  color: var(--ts-text-dim);
  font-size: 0.72rem;
  font-weight: 700;
}

/* v3.0 sportsfeed24-style */
.ts-sport-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ts-live);
  margin-bottom: 4px;
}
.ts-league-section .ts-section-title {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.ts-fixture-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 768px) {
  .ts-fixture-list { grid-template-columns: 1fr 1fr; }
}
