/* =============================================
   Koora TV - style.css
   Premium dark Arabic football design
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary:    #0a0e1a;
  --bg-secondary:  #111827;
  --bg-card:       #151d2e;
  --bg-hover:      #1a2540;
  --border:        #1e2d45;
  --accent-red:    #e63946;
  --accent-gold:   #f4a900;
  --accent-green:  #22c55e;
  --accent-blue:   #3b82f6;
  --text-primary:  #f0f4ff;
  --text-secondary:#8a9bbf;
  --text-muted:    #4d6080;
  --live-red:      #ef4444;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --shadow-card:   0 2px 16px rgba(0,0,0,.4);
  --transition:    .2s ease;
  --font-main:     'Cairo', 'Tajawal', system-ui, sans-serif;
  --header-h:      64px;
  --ticker-h:      40px;
}

/* Light mode */
.light-mode {
  --bg-primary:    #f0f2f7;
  --bg-secondary:  #ffffff;
  --bg-card:       #ffffff;
  --bg-hover:      #f4f6fc;
  --border:        #dce3f0;
  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-muted:    #94a3b8;
  --shadow-card:   0 2px 12px rgba(0,0,0,.08);
}

/* ---------- Reset & Base ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-main); }

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10,14,26,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.light-mode .site-header { background: rgba(240,242,247,.95); }

.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: 100%;
}
.header-logo { flex-shrink: 0; }
.logo-img { height: 36px; width: auto; }

.header-nav {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
}
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.nav-link.active { color: var(--accent-gold); }
.nav-icon { font-size: .85rem; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-right: auto; }

.theme-toggle {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.theme-toggle:hover { color: var(--accent-gold); border-color: var(--accent-gold); }
.theme-toggle svg { width: 18px; height: 18px; }
.moon-icon { display: none; }
.light-mode .sun-icon { display: none; }
.light-mode .moon-icon { display: block; }

.mobile-menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid rgba(148,163,184,.2);
  background: rgba(255,255,255,.06); cursor: pointer;
  transition: all .2s; -webkit-tap-highlight-color: transparent;
}
.mobile-menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: #f1f5f9; border-radius: 2px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.mobile-menu-toggle:hover { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.3); }
.mobile-menu-toggle.open { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.3); }
.mobile-menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); background: #f59e0b; }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); background: #f59e0b; }
.mobile-menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-secondary); border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Live Ticker ---------- */
.live-ticker {
  display: flex; align-items: center;
  height: var(--ticker-h);
  background: linear-gradient(90deg, #1a0a0a, var(--bg-secondary));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.ticker-label {
  display: flex; align-items: center; gap: 6px;
  padding: 0 16px;
  font-size: .78rem; font-weight: 700;
  color: var(--live-red);
  white-space: nowrap;
  border-left: 1px solid var(--border);
  height: 100%;
}
.ticker-track { flex: 1; overflow: hidden; }
.ticker-content {
  display: flex; gap: 32px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--text-secondary);
  transition: color var(--transition);
}
.ticker-item:hover { color: var(--accent-gold); }
.ticker-score { font-weight: 800; color: var(--text-primary); padding: 0 4px; }
.ticker-min { color: var(--live-red); font-size: .75rem; }

/* ---------- Live dot ---------- */
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live-red);
  animation: pulse 1.4s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

/* ---------- Main Layout ---------- */
main { min-height: calc(100vh - var(--header-h) - 280px); }

/* ---------- Page Hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 0;
}
.hero-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.hero-subtitle { font-size: .9rem; color: var(--text-secondary); }

/* ---------- Match Tabs ---------- */
.match-tabs {
  display: flex; gap: 4px;
  margin-top: 20px;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  padding: 10px 20px;
  font-size: .9rem; font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  transition: all var(--transition);
  position: relative; bottom: -1px;
}
.tab-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.tab-btn.active {
  color: var(--accent-gold);
  background: var(--bg-primary);
  border-color: var(--border);
  border-bottom-color: var(--bg-primary);
}

/* ---------- Matches Section ---------- */
.matches-section { padding: 24px 0 40px; }

.league-group { margin-bottom: 24px; }
.league-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
}
.league-logo { width: 24px; height: 24px; object-fit: contain; }
.league-name { font-size: .88rem; font-weight: 700; color: var(--text-primary); }
.league-country { font-size: .78rem; color: var(--text-muted); margin-right: auto; }

/* ---------- Match Card ---------- */
.match-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  transition: background var(--transition);
  text-decoration: none;
  color: var(--text-primary);
}
.match-card:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.match-card:hover { background: var(--bg-hover); }

/* Home team (right side in RTL) */
.match-team {
  display: flex; align-items: center; gap: 10px;
}
.match-team.home { flex-direction: row-reverse; text-align: left; }
.match-team.away { flex-direction: row; text-align: right; }

.team-logo {
  width: 38px; height: 38px;
  object-fit: contain; flex-shrink: 0;
}
.team-name {
  font-size: .9rem; font-weight: 700;
  line-height: 1.3;
}

/* Center column */
.match-center {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  min-width: 90px;
}
.score {
  font-size: 1.4rem; font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-primary);
}
.match-time {
  font-size: 1.1rem; font-weight: 800;
  color: var(--accent-gold);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase;
}
.badge-live     { background: rgba(239,68,68,.15);  color: var(--live-red); border: 1px solid rgba(239,68,68,.3); }
.badge-finished { background: rgba(100,116,139,.12); color: var(--text-muted); border: 1px solid rgba(100,116,139,.2); }
.badge-upcoming { background: rgba(34,197,94,.1);   color: var(--accent-green); border: 1px solid rgba(34,197,94,.25); }
.badge-postponed{ background: rgba(234,179,8,.1);   color: var(--accent-gold); border: 1px solid rgba(234,179,8,.25); }

/* Match meta (channel, commentator) */
.match-meta {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: .78rem; color: var(--text-secondary);
}
.meta-icon { font-size: .85rem; }
.meta-label { color: var(--text-muted); }
.meta-value { font-weight: 600; }
.channel-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 4px;
  background: rgba(244,169,0,.12);
  border: 1px solid rgba(244,169,0,.25);
  color: var(--accent-gold);
  font-size: .75rem; font-weight: 700;
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center; padding: 56px 20px;
  color: var(--text-secondary);
}
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 12px; opacity: .5; }
.empty-state h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.empty-state p { font-size: .88rem; }

/* ---------- Loading Skeleton ---------- */
.skeleton { background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-hover) 50%, var(--bg-secondary) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-card { height: 80px; margin-bottom: 2px; }

/* ---------- Match Detail Page ---------- */
.match-hero {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
}
.match-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.match-hero-team {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero-team-logo { width: 80px; height: 80px; object-fit: contain; }
.hero-team-name { font-size: 1.2rem; font-weight: 800; text-align: center; }
.match-hero-center {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 140px;
}
.hero-score { font-size: 2.8rem; font-weight: 900; letter-spacing: 4px; }
.match-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 32px;
}
.info-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 16px;
}
.info-card-label { font-size: .75rem; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.info-card-value { font-size: .95rem; font-weight: 700; }

/* ---------- Video Player ---------- */
.player-section {
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.player-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.player-title { font-size: 1rem; font-weight: 800; }
.player-live-badge {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(239,68,68,.15); color: var(--live-red);
  font-size: .75rem; font-weight: 700;
  border: 1px solid rgba(239,68,68,.3);
}
.channel-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.channel-tab {
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 700;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.channel-tab:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.channel-tab.active { background: var(--accent-gold); color: #000; border-color: var(--accent-gold); }

.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}
.video-wrapper video { width: 100%; height: 100%; display: block; }
.player-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.7);
  gap: 12px;
}
.player-overlay.hidden { display: none; }
.player-message { color: #fff; font-size: .95rem; font-weight: 600; text-align: center; }
.player-retry-btn {
  padding: 10px 24px; border-radius: var(--radius-md);
  background: var(--accent-red); color: #fff;
  font-size: .9rem; font-weight: 700;
  transition: opacity var(--transition);
}
.player-retry-btn:hover { opacity: .85; }
.player-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Share Buttons ---------- */
.share-btns {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 20px;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-md);
  font-size: .84rem; font-weight: 700;
  transition: opacity var(--transition);
}
.share-btn:hover { opacity: .85; }
.share-btn.whatsapp { background: #25d366; color: #fff; }
.share-btn.telegram { background: #2ca5e0; color: #fff; }
.share-btn.facebook { background: #1877f2; color: #fff; }
.share-btn.twitter  { background: #000; color: #fff; }

/* ---------- Articles ---------- */
.articles-section { padding: 40px 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 1.3rem; font-weight: 900;
  position: relative; padding-bottom: 8px;
}
.section-title::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 40px; height: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
}
.view-all-link {
  font-size: .85rem; font-weight: 700;
  color: var(--accent-gold);
  transition: opacity var(--transition);
}
.view-all-link:hover { opacity: .8; }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.article-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
  color: var(--text-primary);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.article-card-img {
  aspect-ratio: 16/9;
  background: var(--bg-hover);
  position: relative; overflow: hidden;
}
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card-img .img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; opacity: .3;
}
.article-card-body { padding: 16px; }
.article-category {
  display: inline-block; margin-bottom: 8px;
  font-size: .72rem; font-weight: 700;
  color: var(--accent-gold);
  background: rgba(244,169,0,.1); border-radius: 4px;
  padding: 2px 8px;
}
.article-title { font-size: 1rem; font-weight: 800; line-height: 1.4; margin-bottom: 8px; }
.article-excerpt { font-size: .84rem; color: var(--text-secondary); line-height: 1.6; }
.article-meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .76rem; color: var(--text-muted); }

/* ---------- Article Detail ---------- */
.article-hero { padding: 40px 0 32px; border-bottom: 1px solid var(--border); }
.article-hero-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; line-height: 1.4; margin-bottom: 16px; }
.article-body {
  max-width: 760px; margin: 32px auto;
  font-size: 1.05rem; line-height: 1.9;
  color: var(--text-secondary);
}
.article-body h2 { color: var(--text-primary); font-size: 1.3rem; font-weight: 800; margin: 28px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body strong { color: var(--text-primary); font-weight: 700; }

/* ---------- Admin Panel ---------- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: 100vh; }
.admin-sidebar {
  background: var(--bg-secondary); border-left: 1px solid var(--border);
  padding: 20px 0;
}
.admin-nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; font-size: .88rem; font-weight: 600;
  color: var(--text-secondary); border-right: 3px solid transparent;
  transition: all var(--transition);
}
.admin-nav-link:hover, .admin-nav-link.active {
  color: var(--accent-gold); border-right-color: var(--accent-gold);
  background: rgba(244,169,0,.05);
}
.admin-content { padding: 28px; }
.admin-title { font-size: 1.4rem; font-weight: 900; margin-bottom: 24px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-main); font-size: .9rem;
  transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent-gold);
}
.form-textarea { min-height: 120px; resize: vertical; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius-md);
  font-size: .9rem; font-weight: 700;
  font-family: var(--font-main);
  transition: all var(--transition);
}
.btn-primary { background: var(--accent-gold); color: #000; }
.btn-primary:hover { opacity: .9; }
.btn-danger { background: var(--accent-red); color: #fff; }
.btn-danger:hover { opacity: .9; }
.btn-secondary { background: var(--bg-hover); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent-gold); }
.btn-sm { padding: 6px 14px; font-size: .8rem; }

/* ---------- Table ---------- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--border); font-size: .85rem; }
.data-table th { font-weight: 700; color: var(--text-muted); background: var(--bg-secondary); }
.data-table tr:hover td { background: var(--bg-hover); }

/* ---------- Alert ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 16px; font-size: .88rem; font-weight: 600; }
.alert-success { background: rgba(34,197,94,.1); color: var(--accent-green); border: 1px solid rgba(34,197,94,.2); }
.alert-error   { background: rgba(239,68,68,.1);  color: var(--live-red);     border: 1px solid rgba(239,68,68,.2); }
.alert-info    { background: rgba(59,130,246,.1); color: var(--accent-blue);  border: 1px solid rgba(59,130,246,.2); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-brand .footer-desc { font-size: .85rem; color: var(--text-secondary); margin: 12px 0; line-height: 1.7; }
.footer-social { display: flex; gap: 8px; }
.social-link {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--border);
  font-size: .9rem; font-weight: 800;
  color: var(--text-secondary); transition: all var(--transition);
}
.social-link:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.footer-heading { font-size: .9rem; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); }
.footer-links ul li + li { margin-top: 8px; }
.footer-links a { font-size: .85rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-gold); }
.footer-disclaimer p { font-size: .8rem; color: var(--text-muted); line-height: 1.7; }
.footer-bottom {
  padding-top: 20px; border-top: 1px solid var(--border);
  text-align: center; font-size: .78rem; color: var(--text-muted);
}
.footer-bottom p + p { margin-top: 4px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-muted); padding: 12px 0; }
.breadcrumb a { color: var(--text-secondary); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent-gold); }
.breadcrumb-sep { opacity: .4; }

/* ---------- Login Page ---------- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-primary); }
.login-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 380px; }
.login-logo { text-align: center; margin-bottom: 28px; }

/* ---------- Utility ---------- */
.d-none { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-gold  { color: var(--accent-gold); }
.text-red   { color: var(--live-red); }
.text-green { color: var(--accent-green); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.fw-bold { font-weight: 700; }
.fw-black{ font-weight: 900; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .match-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .header-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .header-nav.open {
  display: flex; flex-direction: column;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 75vw; max-width: 280px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  padding: 80px 0 24px;
  z-index: 999;
  box-shadow: -8px 0 32px rgba(0,0,0,.45);
  overflow-y: auto;
  animation: slideInRight .22s cubic-bezier(.4,0,.2,1);
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 998;
  backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

  .match-card { gap: 6px; padding: 12px 10px; }
  .team-logo { width: 28px; height: 28px; }
  .team-name { font-size: .78rem; }
  .score { font-size: 1.1rem; }
  .match-center { min-width: 70px; }
  .match-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .match-hero-inner > * { grid-column: 1; }
  .hero-score { font-size: 2rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .share-btns { gap: 6px; }
  .share-btn { font-size: .78rem; padding: 7px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ======================================================
   Koora TV Final UI Polish - mobile-first professional
   ====================================================== */
:root {
  --bg-primary: #07111f;
  --bg-secondary: #0d1728;
  --bg-card: #111c30;
  --bg-hover: #16233a;
  --border: rgba(148,163,184,.18);
  --accent-red: #e11d48;
  --accent-gold: #f59e0b;
  --accent-green: #16a34a;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --radius-lg: 20px;
  --header-h: 76px;
  --shadow-card: 0 18px 45px rgba(2,6,23,.28);
}
.light-mode {
  --bg-primary: #f3f4f6;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f8fafc;
  --border: #e2e8f0;
  --text-primary: #07111f;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --shadow-card: 0 14px 35px rgba(15,23,42,.10);
}
body {
  background:
    radial-gradient(circle at 20% 0%, rgba(22,163,74,.12), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(225,29,72,.12), transparent 30%),
    var(--bg-primary) !important;
  overflow-x: hidden;
}
.light-mode body,
body.light-mode {
  background: #f3f4f6 !important;
}
.container { max-width: 1120px; padding-inline: 14px; }
.site-header {
  height: auto !important;
  min-height: var(--header-h) !important;
  background: rgba(7,17,31,.94) !important;
  box-shadow: 0 12px 34px rgba(2,6,23,.22);
}
.light-mode .site-header { background: rgba(255,255,255,.96) !important; }
.header-inner {
  min-height: var(--header-h) !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px !important;
  padding-block: 10px;
}
.header-logo { min-width: 0; }
.logo-img {
  width: 134px !important;
  height: 42px !important;
  object-fit: contain !important;
  display: block;
}
.header-nav {
  min-width: 0;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  flex-wrap: nowrap !important;
}
.header-nav::-webkit-scrollbar { display: none; }
.nav-link {
  flex: 0 0 auto;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  font-size: .88rem !important;
  line-height: 1.1;
}
.nav-link.active { background: rgba(245,158,11,.12); }
.header-actions { margin-right: 0 !important; }
.theme-toggle {
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
  background: var(--bg-card) !important;
}
/* mobile-menu-toggle visibility is controlled by the
   PRO DRAWER MENU media query further down — do not
   force display here. */
.page-hero {
  padding: 26px 0 0 !important;
  background: linear-gradient(135deg, rgba(13,23,40,.94), rgba(17,28,48,.94)) !important;
}
.light-mode .page-hero { background: linear-gradient(135deg, #fff, #f8fafc) !important; }
.hero-title {
  text-align: center;
  font-size: clamp(1.45rem, 5vw, 2.2rem) !important;
  line-height: 1.35;
}
.hero-subtitle { text-align: center; margin-top: 4px; }
.match-tabs {
  justify-content: center;
  gap: 8px !important;
  overflow-x: auto;
  padding-bottom: 0;
  scrollbar-width: none;
}
.match-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 0 0 auto;
  border-radius: 999px 999px 0 0 !important;
  padding: 11px 18px !important;
  white-space: nowrap;
}
.matches-section { padding-top: 22px !important; }
.league-group {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.league-header {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
  background: linear-gradient(90deg, rgba(245,158,11,.15), transparent), var(--bg-secondary) !important;
}
.league-name { font-size: .95rem !important; }
.match-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 15px 14px !important;
  border-inline: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  border-top: 1px solid rgba(148,163,184,.08) !important;
  background: var(--bg-card) !important;
}
.match-card:last-child { border-radius: 0 !important; border-bottom: 0 !important; }
.match-card:hover { transform: translateY(-1px); }
.match-team {
  min-width: 0;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 8px !important;
}
.match-team.home,
.match-team.away { flex-direction: column !important; text-align: center !important; }
.team-logo {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 8px 14px rgba(2,6,23,.16));
}
.team-name {
  max-width: 100%;
  font-size: .94rem !important;
  font-weight: 900 !important;
  color: var(--text-primary) !important;
  line-height: 1.25 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.match-center {
  min-width: 0 !important;
  width: 112px;
  gap: 8px !important;
}
.badge {
  max-width: 100%;
  justify-content: center;
  font-size: .72rem !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  white-space: nowrap;
}
.badge-live { background: rgba(225,29,72,.16) !important; color: #fb7185 !important; }
.badge-finished { background: #64748b !important; color: #fff !important; border-color: transparent !important; }
.badge-upcoming { background: rgba(22,163,74,.14) !important; color: #22c55e !important; }
.score {
  font-size: 1.9rem !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  direction: ltr;
}
.match-time {
  font-size: 1.15rem !important;
  font-weight: 950 !important;
  color: var(--accent-gold) !important;
  direction: ltr;
}
.match-meta {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
  padding-top: 12px !important;
  margin-top: 2px !important;
  border-top: 1px solid var(--border) !important;
}
.meta-item {
  min-width: 0;
  justify-content: center;
  border-radius: 14px;
  background: rgba(148,163,184,.08);
  padding: 8px 10px;
  font-size: .8rem !important;
  overflow: hidden;
}
.light-mode .meta-item { background: #f8fafc; }
.meta-value,
.channel-badge {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-badge {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: var(--accent-gold) !important;
}
.skeleton-card { height: 114px !important; border-radius: 20px !important; margin-bottom: 14px !important; }
.empty-state {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}
.articles-section { padding-top: 28px !important; }
.article-card { box-shadow: var(--shadow-card); }
.site-footer { margin-top: 32px !important; }

@media (max-width: 760px) {
  :root { --header-h: 74px; }
  .container { padding-inline: 12px; }
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px !important;
  }
  .logo-img { width: 112px !important; height: 38px !important; }
  .header-nav {
    /* display is controlled by the PRO DRAWER MENU
       media query (hidden by default, .open to show) */
    justify-content: flex-start;
    gap: 6px !important;
  }
  .nav-link {
    padding: 7px 9px !important;
    font-size: .78rem !important;
  }
  .nav-icon { display: none; }
  .theme-toggle { width: 40px !important; height: 40px !important; border-radius: 14px !important; }
  .theme-toggle svg { width: 17px; height: 17px; }
  .page-hero { padding-top: 22px !important; }
  .hero-title { font-size: 1.45rem !important; }
  .hero-subtitle { font-size: .84rem !important; }
  .tab-btn { padding: 10px 13px !important; font-size: .82rem !important; }
  .match-card {
    grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr) !important;
    padding: 14px 10px !important;
    gap: 6px !important;
  }
  .team-logo { width: 46px !important; height: 46px !important; }
  .team-name { font-size: .78rem !important; }
  .match-center { width: 86px; }
  .score { font-size: 1.45rem !important; }
  .match-time { font-size: .92rem !important; }
  .badge { font-size: .65rem !important; padding: 5px 8px !important; }
  .match-meta { grid-template-columns: 1fr !important; gap: 6px !important; }
  .meta-item { font-size: .76rem !important; padding: 7px 8px; }
  .league-header { padding: 11px 12px !important; }
}

@media (max-width: 390px) {
  .logo-img { width: 96px !important; }
  .nav-link { font-size: .72rem !important; padding: 6px 8px !important; }
  .match-card { grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr) !important; }
  .match-center { width: 78px; }
  .team-logo { width: 42px !important; height: 42px !important; }
  .team-name { font-size: .73rem !important; }
  .score { font-size: 1.25rem !important; }
}

/* KooraTV patch: external logo proxy + match details tabs */
.hero-team-logo,
.team-logo {
  background: rgba(255,255,255,.04);
  object-fit: contain;
}
.match-details-box {
  background: var(--card-bg, #111d2f);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}
.details-tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: rgba(15,23,42,.55);
  border-bottom: 1px solid rgba(148,163,184,.16);
  overflow-x: auto;
}
.details-tab {
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(15,23,42,.45);
  color: var(--text, #e5e7eb);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.details-tab.active {
  background: var(--accent-gold, #f59e0b);
  color: #111827;
  border-color: transparent;
}
.details-panel { display: none; padding: 18px; }
.details-panel.active { display: block; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.detail-item {
  background: rgba(15,23,42,.40);
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 14px;
  padding: 13px 14px;
}
.detail-item span {
  display: block;
  color: var(--text-muted, #94a3b8);
  font-size: .82rem;
  margin-bottom: 6px;
}
.detail-item strong { color: var(--text, #f8fafc); font-size: .98rem; }
.lineups-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.lineup-card {
  background: rgba(15,23,42,.40);
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 14px;
  padding: 14px;
}
.lineup-card h3 { margin: 0 0 12px; color: var(--accent-gold, #f59e0b); }
.lineup-player { padding: 8px 0; border-bottom: 1px solid rgba(148,163,184,.10); }
.timeline { position: relative; display: grid; gap: 10px; }
.timeline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15,23,42,.40);
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 14px;
  padding: 12px 14px;
}
.timeline-min {
  background: rgba(34,197,94,.18);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.30);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 900;
}
.empty-state.small { min-height: 160px; padding: 22px; }
@media (max-width: 640px) {
  .details-grid, .lineups-grid { grid-template-columns: 1fr; }
  .details-tabs { padding: 10px; }
  .details-tab { padding: 9px 12px; font-size: .9rem; }
  .details-panel { padding: 12px; }
}

/* =========================================================
   KoraLive-style match details page v3.1
   ========================================================= */
.kora-detail-wrap{padding:24px 0 40px;background:linear-gradient(135deg,#07111f 0%,#111827 55%,#170b1f 100%)}
.kora-vs-card{position:relative;overflow:hidden;border-radius:18px;border:1px solid rgba(255,255,255,.14);min-height:250px;display:grid;grid-template-columns:1fr 180px 1fr;align-items:center;text-align:center;background:#111827;box-shadow:0 18px 60px rgba(0,0,0,.28);margin-bottom:18px}
.kora-vs-bg{position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.42),rgba(0,0,0,.58)),url('/assets/img/og-image.jpg') center/cover no-repeat;filter:saturate(.9);opacity:.95}
.kora-vs-team,.kora-vs-center{position:relative;z-index:1;color:#fff;padding:22px 10px}.vs-logo{width:96px!important;height:96px!important;border-radius:50%;object-fit:contain;background:rgba(255,255,255,.12);padding:8px;box-shadow:0 14px 30px rgba(0,0,0,.35);margin:0 auto 12px}.kora-vs-team strong{display:block;font-size:22px;font-weight:900}.vs-word{display:block;font-size:68px;line-height:1;font-weight:1000;letter-spacing:3px;text-shadow:0 6px 20px rgba(0,0,0,.45)}.kora-vs-center small{display:block;margin-top:8px;color:#cbd5e1;font-size:14px}.kora-article-card{background:#fff;color:#0f172a;border-radius:18px;overflow:hidden;box-shadow:0 12px 45px rgba(0,0,0,.22);border:1px solid #e5e7eb}.kora-entry-head{background:#f1f5f9;padding:22px 28px;text-align:right}.kora-entry-head h1{font-size:28px;line-height:1.55;margin:0;font-weight:900;color:#0f172a}.kora-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:22px 28px 0;gap:0}.kora-tab{border:1px solid #e5e7eb;background:#fff;padding:14px 10px;font-size:17px;font-weight:900;cursor:pointer;color:#111827}.kora-tab.active{background:#e5e7eb}.kora-panel{display:none;padding:24px 28px 30px;font-size:18px;line-height:2;color:#111827}.kora-panel.active{display:block}.kora-panel h2{display:inline-block;background:#eef2f7;border-radius:10px;padding:8px 16px;font-size:20px;margin:14px 0 12px;color:#0f172a}.kora-panel p{margin:0 0 18px;text-align:right}.kora-info-table{width:100%;border-collapse:collapse;background:#f1f5f9;border-radius:12px;overflow:hidden;margin-top:12px}.kora-info-table th,.kora-info-table td{padding:13px 16px;border:1px solid #dbe1ea;text-align:right;font-size:17px}.kora-info-table th{width:32%;font-weight:900;color:#0f172a;background:#e8edf5}.compact-player{margin-bottom:24px;background:#111827;border-radius:14px;overflow:hidden;border:1px solid #243244}.lineup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.lineup-pitch-card{border:1px solid #dbe1ea;border-radius:16px;overflow:hidden;background:#f8fafc}.lineup-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#e5e7eb;font-weight:900}.lineup-head span{background:#16a34a;color:#fff;border-radius:999px;padding:4px 12px}.pitch{min-height:460px;background:linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.18) 1px,transparent 1px),#207a2d;background-size:20% 100%,100% 25%;padding:22px 12px;display:flex;flex-direction:column;justify-content:space-around;gap:10px;position:relative}.pitch:before{content:'';position:absolute;inset:18px;border:2px solid rgba(255,255,255,.45);border-radius:3px;pointer-events:none}.pitch-row{position:relative;z-index:1;display:flex;justify-content:center;gap:18px;flex-wrap:wrap}.pitch-player{text-align:center;color:#fff;min-width:72px;max-width:110px;text-shadow:0 1px 4px rgba(0,0,0,.55)}.shirt{width:42px;height:38px;margin:0 auto 6px;background:#409fe1;clip-path:polygon(22% 0,78% 0,100% 25%,82% 45%,82% 100%,18% 100%,18% 45%,0 25%);display:flex;align-items:center;justify-content:center;font-weight:1000;font-size:16px;color:#fff}.pitch-player span{display:block;font-size:12px;line-height:1.25}.alert-info{background:#0b3b66;color:#bfdbfe;border:1px solid #1d4ed8;border-radius:12px;padding:12px 16px}.breadcrumb{padding:14px 0;color:#93a4c7}.breadcrumb a{color:#bfdbfe}.breadcrumb-sep{margin:0 8px;color:#64748b}
@media(max-width:800px){.kora-vs-card{grid-template-columns:1fr 90px 1fr;min-height:180px}.vs-logo{width:64px!important;height:64px!important}.kora-vs-team strong{font-size:16px}.vs-word{font-size:42px}.kora-entry-head{padding:16px}.kora-entry-head h1{font-size:21px}.kora-tabs{padding:16px 14px 0}.kora-tab{font-size:14px;padding:12px 4px}.kora-panel{padding:18px 14px;font-size:16px}.lineup-grid{grid-template-columns:1fr}.pitch{min-height:390px}.kora-info-table th,.kora-info-table td{font-size:14px;padding:10px}.kora-info-table th{width:38%}}
html.dark .kora-article-card,body.dark .kora-article-card{background:#111d31;color:#fff;border-color:#263854}html.dark .kora-entry-head,body.dark .kora-entry-head{background:#162238}html.dark .kora-entry-head h1,body.dark .kora-entry-head h1,html.dark .kora-panel,body.dark .kora-panel{color:#fff}html.dark .kora-tab,body.dark .kora-tab{background:#111d31;color:#fff;border-color:#263854}html.dark .kora-tab.active,body.dark .kora-tab.active,html.dark .kora-panel h2,body.dark .kora-panel h2{background:#263854;color:#fff}html.dark .kora-info-table,body.dark .kora-info-table{background:#162238}html.dark .kora-info-table th,body.dark .kora-info-table th{background:#263854;color:#fff}html.dark .kora-info-table th,html.dark .kora-info-table td,body.dark .kora-info-table th,body.dark .kora-info-table td{border-color:#334765;color:#fff}html.dark .lineup-pitch-card,body.dark .lineup-pitch-card{background:#162238;border-color:#263854}html.dark .lineup-head,body.dark .lineup-head{background:#263854;color:#fff}


/* ===== Koora TV v3 branding/logo ===== */
.logo-img{object-fit:contain;width:auto;max-width:190px;height:52px}
.header-logo a{display:flex;align-items:center}
.page-hero{
  background: linear-gradient(180deg, rgba(10,14,26,.72), rgba(10,14,26,.95)), url('../img/kooratv-hero.jpg') center/cover;
  border-bottom:1px solid var(--border);
  padding:56px 0 0;
}
.hero-title{text-shadow:0 8px 24px rgba(0,0,0,.55)}
.hero-subtitle{color:#d8e2f7}

/* ===== Complete match details page ===== */
.match-detail-hero{
  background:
    radial-gradient(circle at 20% 0%, rgba(244,169,0,.18), transparent 28%),
    linear-gradient(180deg, #0b1424, #101827 70%, #0a0e1a);
  border-bottom:1px solid var(--border);
  padding:22px 0 34px;
}
.match-crumb{color:var(--text-secondary);font-size:.9rem;margin:10px 0 24px;display:flex;gap:9px;align-items:center}
.match-crumb a{color:#f4a900}
.match-vs-card{
  display:grid;
  grid-template-columns:1fr 220px 1fr;
  gap:26px;
  align-items:center;
  min-height:260px;
  padding:36px 26px;
  background:linear-gradient(135deg, rgba(21,29,46,.94), rgba(17,24,39,.90));
  border:1px solid var(--border);
  border-radius:26px;
  box-shadow:0 24px 70px rgba(0,0,0,.35);
  position:relative;
  overflow:hidden;
}
.match-vs-card:before{
  content:"";
  position:absolute;inset:0;
  background:url('../img/kooratv-brand-poster.jpg') center/cover;
  opacity:.09;
}
.match-detail-team,.match-detail-center{position:relative;z-index:1}
.match-detail-team{display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center}
.match-detail-team .team-logo{
  width:104px;height:104px;border-radius:50%;
  object-fit:contain;background:#0d1728;padding:12px;border:1px solid #263854;
  box-shadow:0 14px 35px rgba(0,0,0,.35);
}
.match-detail-team h2{font-size:1.55rem;font-weight:900;color:#fff;line-height:1.4}
.match-detail-center{text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.match-status-pill{background:#697384;color:white;border-radius:999px;padding:6px 18px;font-size:.85rem;font-weight:900}
.match-main-score{font-size:3.2rem;font-weight:1000;color:#fff;letter-spacing:5px;line-height:1}
.match-detail-center time{color:#9fb2d5;font-weight:700}
.match-info-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}
.match-info-strip>div{background:#111d31;border:1px solid var(--border);border-radius:16px;padding:15px 16px}
.match-info-strip small{display:block;color:var(--text-secondary);font-size:.78rem;margin-bottom:6px}
.match-info-strip strong{font-size:.95rem;color:#fff}
.match-watch-section{padding:26px 16px}
.match-section-title{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:16px}
.match-section-title h2{font-size:1.4rem;color:#fff}
.match-section-title p{color:var(--text-secondary);font-size:.9rem}
.player-card{background:#111d31;border:1px solid var(--border);border-radius:22px;overflow:hidden;box-shadow:var(--shadow-card)}
.channel-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:14px;border-bottom:1px solid var(--border)}
.channel-tab{background:#0b1424;color:#dbeafe;border:1px solid #263854;border-radius:10px;padding:10px 16px;font-weight:800}
.channel-tab.active{background:#f4a900;color:#07111f;border-color:#f4a900}
.video-shell{height:min(58vw,560px);min-height:320px;background:#05070c;position:relative}
.video-shell video{width:100%;height:100%;background:#05070c}
.player-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:rgba(0,0,0,.35);z-index:2}
.player-overlay.hidden{display:none}
.spinner{width:44px;height:44px;border:4px solid rgba(255,255,255,.18);border-top-color:#f4a900;border-radius:50%;animation:spin .9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.player-error{display:none;color:white;font-weight:900;text-align:center}
.retry-btn{display:none;background:#e63946;color:white;border-radius:10px;padding:10px 20px;font-weight:900}
.live-corner{position:absolute;top:14px;left:14px;background:#ef4444;color:#fff;border-radius:999px;padding:5px 12px;font-weight:900;font-size:.78rem;z-index:3}
.legal-note{background:#082f49;border:1px solid #1d4ed8;color:#bfdbfe;border-radius:14px;padding:16px;text-align:center;font-weight:800}
.match-tabs-pro{padding:18px 16px 50px}
.detail-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:#111d31;border:1px solid var(--border);border-radius:16px;padding:8px;margin-bottom:16px}
.detail-tab{background:transparent;color:#cbd5e1;border-radius:12px;padding:13px 10px;font-weight:900}
.detail-tab.active{background:#f4a900;color:#07111f}
.detail-tab-panel{display:none}
.detail-tab-panel.active{display:block}
.match-article-card,.lineups-card,.events-card{
  background:#111d31;border:1px solid var(--border);border-radius:22px;padding:26px;color:#fff;
}
.match-article-card h1{font-size:1.75rem;line-height:1.6;margin-bottom:14px}
.match-article-card h2{font-size:1.3rem;margin:24px 0 12px;color:#f4a900}
.match-article-card p{color:#dbeafe;line-height:2}
.match-details-table{width:100%;border-collapse:collapse;overflow:hidden;border-radius:14px}
.match-details-table th,.match-details-table td{padding:14px 16px;border:1px solid #263854;text-align:right}
.match-details-table th{width:230px;background:#0b1424;color:#9fb2d5}
.match-details-table td{background:#162238;color:#fff;font-weight:800}
.kv-icon{margin-left:6px}
.empty-panel{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#cbd5e1}
.empty-panel>div{font-size:3rem;margin-bottom:8px}
.admin-text-block{white-space:pre-wrap;background:#0b1424;border:1px solid var(--border);border-radius:16px;padding:18px;color:#e5edff;line-height:2;font-family:var(--font-main)}
.lineup-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.lineup-team-card{background:#0b1424;border:1px solid var(--border);border-radius:16px;padding:18px}
.lineup-team-card h3{color:#f4a900;margin-bottom:8px}
.lineup-player{padding:8px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.timeline{display:flex;flex-direction:column;gap:12px}
.timeline-item{background:#0b1424;border:1px solid var(--border);border-radius:14px;padding:14px 16px}
.timeline-item span{display:inline-block;background:#f4a900;color:#07111f;border-radius:999px;padding:4px 10px;font-weight:900;margin-left:8px}
.timeline-item p{color:#cbd5e1;margin-top:5px}

/* ===== World Cup and Dashboard pages ===== */
.wc-pro-hero,.dashboard-hero{
  padding:70px 0;
  background:linear-gradient(135deg, rgba(5,9,18,.78), rgba(6,28,48,.9)), url('../img/kooratv-brand-poster.jpg') center/cover;
  border-bottom:1px solid var(--border);
}
.wc-pro-inner h1,.dashboard-hero h1{font-size:3rem;font-weight:1000;color:white;margin:12px 0}
.wc-pro-inner p,.dashboard-hero p{font-size:1.1rem;color:#dbeafe;max-width:760px;line-height:2}
.wc-badge{display:inline-flex;background:#f4a900;color:#07111f;border-radius:999px;padding:6px 16px;font-weight:900}
.wc-pro-section,.dashboard-section{padding:34px 16px}
.wc-pro-section h2,.dashboard-section h2{font-size:1.8rem;color:#fff;margin-bottom:18px}
.wc-groups,.wc-stadiums{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}
.wc-group-card,.wc-stadium,.stat-card{background:#111d31;border:1px solid var(--border);border-radius:18px;padding:18px;color:#fff;box-shadow:var(--shadow-card)}
.wc-group-card h3,.wc-stadium h3{color:#f4a900;margin-bottom:12px}
.wc-group-card table{width:100%;border-collapse:collapse}
.wc-group-card th,.wc-group-card td{border-bottom:1px solid rgba(255,255,255,.08);padding:8px;text-align:right;font-size:.9rem}
.wc-team{display:flex;gap:8px;align-items:center}
.wc-team img,.wc-fixture img{width:24px;height:18px;object-fit:cover;border-radius:3px}
.wc-fixtures{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:14px}
.wc-fixture{background:#111d31;border:1px solid var(--border);border-radius:18px;padding:16px;color:#fff}
.wc-fixture-teams{display:grid;grid-template-columns:1fr 42px 1fr;gap:8px;align-items:center;text-align:center;font-weight:900}
.wc-fixture-teams span{display:flex;gap:8px;align-items:center;justify-content:center}
.wc-fixture-teams b{color:#f4a900}
.wc-fixture small{display:block;color:#9fb2d5;text-align:center;margin-top:10px}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:28px}
.stat-card strong{display:block;font-size:2.4rem;color:#f4a900}
.stat-card span{color:#dbeafe}
.dash-match-list{display:grid;gap:10px}
.dash-match{display:grid;grid-template-columns:1fr 90px 1fr 1.2fr;gap:12px;align-items:center;background:#111d31;border:1px solid var(--border);border-radius:16px;padding:14px;color:white}
.dash-match b{text-align:center;color:#f4a900}
.dash-match small{color:#9fb2d5}

/* Admin */
.admin-nav-link{display:block;padding:12px 20px;color:var(--text-secondary);font-weight:800;border-right:3px solid transparent}
.admin-nav-link.active,.admin-nav-link:hover{background:var(--bg-hover);color:#fff;border-right-color:var(--accent-gold)}
.data-table{width:100%;border-collapse:collapse}
.data-table th,.data-table td{padding:12px;border-bottom:1px solid var(--border);text-align:right}
.data-table th{background:#0b1424;color:#cbd5e1}
.btn-sm{padding:7px 10px;font-size:.78rem}
.badge-upcoming{display:inline-flex;background:rgba(34,197,94,.16);color:#86efac;border:1px solid rgba(34,197,94,.25);border-radius:999px;padding:4px 10px;font-weight:800}
.btn-danger{background:#dc2626;color:#fff}

@media(max-width:800px){
  .logo-img{max-width:120px;height:44px}
  .match-vs-card{grid-template-columns:1fr;gap:18px;padding:24px 16px}
  .match-detail-center{order:-1}
  .match-main-score{font-size:2.4rem}
  .match-info-strip{grid-template-columns:1fr}
  .match-section-title{display:block}
  .detail-tabs{grid-template-columns:1fr}
  .lineup-grid{grid-template-columns:1fr}
  .match-details-table th{width:42%}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .dash-match{grid-template-columns:1fr;text-align:center}
  .wc-pro-inner h1,.dashboard-hero h1{font-size:2.2rem}
  .video-shell{height:52vw;min-height:240px}
}

/* LiveSoccer-inspired standings */
.standings-page{padding:34px 16px 60px}
.standings-hero{background:#111d31;border:1px solid var(--border);border-radius:22px;padding:28px;margin-bottom:22px;text-align:center}
.standings-hero h1{font-size:2rem;color:#fff;margin-bottom:8px}
.standings-hero p{color:#9fb2d5}
.standings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}
.standing-card{background:#111d31;border:1px solid var(--border);border-radius:18px;overflow:hidden;color:#fff}
.standing-card h2{background:#0b1424;padding:14px 16px;color:#f4a900;font-size:1.15rem}
.standing-table{width:100%;border-collapse:collapse}
.standing-table th,.standing-table td{padding:10px;border-bottom:1px solid rgba(255,255,255,.08);text-align:center;font-size:.88rem}
.standing-table th:first-child,.standing-table td:first-child{text-align:right}
.team-cell{display:flex;align-items:center;gap:8px;font-weight:800}
.team-cell img{width:26px;height:18px;object-fit:cover;border-radius:3px}

.live-now-section{padding:28px 16px;background:linear-gradient(90deg,rgba(127,29,29,.2),rgba(17,24,39,.1))}
.live-count{display:inline-flex;background:#dc2626;color:#fff;border-radius:999px;padding:6px 14px;font-weight:900}

.stream-debug-ok{display:inline-flex;margin-top:8px;padding:7px 12px;border-radius:999px;background:rgba(16,185,129,.15);border:1px solid rgba(16,185,129,.35);color:#10b981;font-weight:800}

.player-debug{position:absolute;left:14px;bottom:12px;z-index:5;color:#94a3b8;background:rgba(2,6,23,.72);padding:5px 9px;border-radius:8px;font-size:11px;direction:ltr;max-width:80%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-overlay.hidden + .live-corner + .player-debug{opacity:.65}
.retry-btn{align-items:center;justify-content:center}

/* Iframe embed player */
.iframe-player-shell{position:relative;width:100%;height:min(58vw,620px);min-height:320px;background:#05070c;overflow:hidden;border-radius:0 0 22px 22px}
.iframe-player-shell iframe{width:100%;height:100%;border:0;display:block;background:#05070c}
@media(max-width:800px){.iframe-player-shell{height:56vw;min-height:240px}}


/* ===== Koora TV v3.7 Siiir-like Match Page ===== */
.sir-match-page{background:#0a0e27;min-height:100vh;padding:18px 0 36px}
.sir-container{max-width:1100px;width:100%;margin:0 auto;padding:0 16px}
.sir-top-bar{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.sir-title-link{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:#fff}
.sir-title-link img{height:38px;width:auto;object-fit:contain}
.sir-title-link h1{font-size:18px;font-weight:900;margin:0;color:#fff}
.sir-title-link h1 span{background:linear-gradient(135deg,#7877c6,#ff80c0);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.sir-back-btn{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;background:linear-gradient(135deg,rgba(120,119,198,.15),rgba(255,0,128,.1));border:1px solid rgba(120,119,198,.25);border-radius:10px;color:#fff;text-decoration:none;font-size:13px;font-weight:700;transition:.2s}
.sir-back-btn:hover{background:linear-gradient(135deg,rgba(120,119,198,.25),rgba(255,0,128,.15));transform:translateY(-1px)}
.sir-player-wrapper{background:linear-gradient(145deg,#1a1f3a,#0f1225);border-radius:16px 16px 0 0;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,.4);border:2px solid rgba(120,119,198,.3);border-bottom:none}
.sir-player-container{position:relative;width:100%;aspect-ratio:16/9;background:#000;transform:translateZ(0);contain:layout paint}
.sir-player-container iframe,.sir-player-container video{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#000}
.sir-player-loader{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#000 radial-gradient(circle at center,rgba(120,119,198,.18),transparent 60%);z-index:1;pointer-events:none;transition:opacity .25s ease;animation:sirFadeOut 0s linear 8s forwards}
.sir-player-loader::before{content:"";width:42px;height:42px;border:3px solid rgba(255,255,255,.12);border-top-color:#a5a4e3;border-radius:50%;animation:sirSpin .9s linear infinite}
@keyframes sirSpin{to{transform:rotate(360deg)}}@keyframes sirFadeOut{to{opacity:0;visibility:hidden}}
.sir-player-container:has(iframe[src]) .sir-player-loader{opacity:0;visibility:hidden}
.sir-no-stream{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;background:rgba(255,0,128,.08);font-weight:800;text-align:center;padding:20px}
.sir-hls-tabs{position:absolute;top:10px;right:10px;left:10px;z-index:5;display:flex;gap:8px;overflow-x:auto}
.sir-hls-tabs .channel-tab{background:rgba(15,18,37,.88);color:#fff;border:1px solid rgba(120,119,198,.35);border-radius:9px;padding:8px 12px;font-weight:800;white-space:nowrap}
.sir-hls-tabs .channel-tab.active{background:#a5a4e3;color:#111827}
.sir-match-strip{background:linear-gradient(180deg,#1e2338 0%,#1a1f32 100%);border-radius:0 0 16px 16px;border:1px solid rgba(120,119,198,.15);border-top:1px solid rgba(255,255,255,.06);overflow:hidden;margin-bottom:14px}
.sir-status-bar{display:flex;align-items:center;justify-content:center;padding:7px 12px;background:rgba(255,255,255,.03);border-bottom:1px solid rgba(255,255,255,.05);color:#a5a4e3;font-size:12px;font-weight:800;gap:7px}
.sir-live-dot{width:7px;height:7px;background:#ff4444;border-radius:50%;display:inline-block;animation:sirBlink 1s infinite}@keyframes sirBlink{0%,100%{opacity:1}50%{opacity:.3}}
.sir-strip-main{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.sir-strip-team{display:flex;align-items:center;gap:10px;padding:12px 16px;min-width:0;color:#fff;font-weight:800}
.sir-strip-team.away{justify-self:start}.sir-strip-team.home{justify-self:end}
.sir-strip-team .team-logo{width:32px;height:32px;border-radius:50%;object-fit:contain;background:#111827;padding:2px}
.sir-strip-team span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px}
.sir-strip-center{display:flex;flex-direction:column;align-items:center;padding:8px 20px;gap:3px;border-left:1px solid rgba(255,255,255,.05);border-right:1px solid rgba(255,255,255,.05)}
.sir-strip-score{display:flex;align-items:center;gap:9px}.sir-strip-score b{font-size:29px;color:#fff;font-weight:1000;min-width:26px;text-align:center}.sir-strip-score span{color:rgba(255,255,255,.25);font-size:22px}
.sir-strip-vs{font-size:13px;color:rgba(255,255,255,.45);padding:6px 0;font-weight:900}
.sir-strip-center small{font-size:10px;color:rgba(255,255,255,.35);max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sir-tabs-wrap{background:linear-gradient(145deg,#1a1f3a,#0f1225);border:1px solid rgba(120,119,198,.12);border-radius:14px;overflow:hidden;contain:layout;margin-top:14px}
.sir-tabs-nav{display:flex;align-items:center;gap:0;padding:0 6px;background:rgba(0,0,0,.18);border-bottom:1px solid rgba(255,255,255,.06);overflow-x:auto;scrollbar-width:none}
.sir-tabs-nav::-webkit-scrollbar{display:none}
.sir-tab-btn{flex:1 1 auto;min-width:90px;background:transparent;border:0;color:rgba(255,255,255,.55);font-weight:800;font-size:13px;padding:14px 10px;cursor:pointer;position:relative;white-space:nowrap}
.sir-tab-btn:hover{color:rgba(255,255,255,.85)}.sir-tab-btn.active{color:#22c55e}.sir-tab-btn.active::after{content:"";position:absolute;bottom:0;inset-inline:10%;height:2px;background:#22c55e;border-radius:2px}
.sir-tab-panel{display:none;padding:14px 12px;min-height:240px;animation:sirFade .25s ease}.sir-tab-panel.active{display:block}@keyframes sirFade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.sir-info-card{background:linear-gradient(145deg,#161b2e,#10131f);border:1px solid rgba(255,255,255,.06);border-radius:14px;padding:16px;color:#fff}
.sir-info-card h2{color:#a5a4e3;text-align:center;font-size:16px;font-weight:900;margin-bottom:14px}
.sir-details-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px}
.sir-detail-item{background:rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.04);border-radius:10px;padding:12px;text-align:center}
.sir-detail-icon{display:block;font-size:18px;margin-bottom:4px}.sir-detail-item small{display:block;color:rgba(255,255,255,.45);font-size:11px;margin-bottom:4px}.sir-detail-item strong{font-size:14px;color:#fff}
.sir-pre{white-space:pre-wrap;background:#0f1225;border:1px solid rgba(255,255,255,.07);border-radius:12px;padding:14px;color:#dbeafe;line-height:2;font-family:inherit}
.sir-lineup-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.sir-lineup-team{background:#0f1225;border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:14px}.sir-lineup-team h3{color:#22c55e;font-size:15px;margin-bottom:6px}.sir-lineup-team p{color:#94a3b8;font-size:12px;margin-bottom:8px}.sir-player-row{display:flex;gap:8px;align-items:center;border-bottom:1px solid rgba(255,255,255,.05);padding:7px 0}.sir-player-row span{min-width:24px;color:#a5a4e3}.sir-player-row b{color:#fff;font-size:13px}
.sir-timeline{display:flex;flex-direction:column;gap:10px}.sir-timeline-item{background:#0f1225;border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:12px}.sir-timeline-item span{display:inline-flex;background:#22c55e;color:#06121d;border-radius:999px;padding:3px 9px;font-weight:900;margin-left:7px}.sir-timeline-item p{color:#cbd5e1;margin-top:5px}
.sir-empty{min-height:130px;display:flex;align-items:center;justify-content:center;text-align:center;color:rgba(255,255,255,.45);font-weight:700}
.sir-article p{color:rgba(255,255,255,.75);line-height:1.9;text-align:right}
@media(max-width:768px){.sir-container{padding:0 10px}.sir-title-link h1{font-size:16px}.sir-title-link img{height:32px}.sir-player-container{aspect-ratio:5/4}.sir-player-wrapper{border-radius:12px 12px 0 0}.sir-match-strip{border-radius:0 0 12px 12px}.sir-strip-team{padding:10px 8px;gap:6px}.sir-strip-team .team-logo{width:26px;height:26px}.sir-strip-team span{font-size:12px;max-width:120px}.sir-strip-center{padding:6px 10px}.sir-strip-score b{font-size:23px}.sir-details-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.sir-player-container{aspect-ratio:10/11}.sir-tab-btn{font-size:12px;min-width:70px;padding:12px 6px}.sir-details-grid{grid-template-columns:1fr 1fr}.sir-detail-item{padding:10px 6px}.sir-detail-item strong{font-size:12px}}

/* VLC open/download button */
.sir-vlc-actions{position:absolute;z-index:6;left:10px;top:10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sir-vlc-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px 13px;border-radius:10px;background:linear-gradient(135deg,#f97316,#ea580c);color:#fff;text-decoration:none;font-weight:900;font-size:12px;border:1px solid rgba(255,255,255,.18);box-shadow:0 6px 18px rgba(249,115,22,.25)}
.sir-vlc-actions small{color:#dbeafe;background:rgba(15,18,37,.75);padding:6px 8px;border-radius:8px;font-size:11px}
@media(max-width:640px){.sir-vlc-actions{top:auto;bottom:10px;right:10px;left:10px}.sir-vlc-actions small{display:none}.sir-vlc-btn{width:100%}}


/* v4.8 admin live player strict */
.sir-player-wrapper{width:min(1040px,calc(100% - 28px))!important;margin:18px auto 0!important}
.sir-player-container{position:relative!important;width:100%!important;aspect-ratio:16/9!important;background:#000!important;overflow:hidden!important}
.sir-player-container iframe,.sir-player-container video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0!important;display:block!important;background:#000!important}
.player-brand-logo,.koora-player-logo,.auto-player-logo{position:absolute!important;top:12px!important;right:12px!important;width:110px!important;height:auto!important;z-index:9999!important;pointer-events:none!important;filter:drop-shadow(0 4px 10px rgba(0,0,0,.75))!important}
@media(max-width:700px){
  .sir-player-wrapper{width:calc(100% - 16px)!important;margin:12px auto 0!important}
  .sir-player-container{aspect-ratio:16/10!important}
  .player-brand-logo,.koora-player-logo,.auto-player-logo{width:82px!important;top:8px!important;right:8px!important}
}


/* ===== v5.1 premium koora complete ===== */
:root{
  --ktv-navy:#071126;
  --ktv-navy2:#111d31;
  --ktv-gold:#f5c451;
  --ktv-green:#16a34a;
  --ktv-red:#ef4444;
}

.sir-match-page{
  background:linear-gradient(180deg,#071126 0%,#0b1424 45%,#071126 100%)!important;
}

.sir-top-bar,
.sir-match-strip,
.sir-tabs-wrapper,
.sir-details-card,
.sir-player-wrapper{
  max-width:1100px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

.sir-player-wrapper{
  border-radius:22px!important;
  overflow:hidden!important;
  box-shadow:0 22px 55px rgba(0,0,0,.34)!important;
  border:1px solid rgba(245,196,81,.22)!important;
}

.sir-player-container{
  position:relative!important;
  background:#000!important;
}

.ktv-player-brand{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  width:118px!important;
  height:auto!important;
  z-index:999999!important;
  pointer-events:none!important;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.85))!important;
  opacity:.98!important;
}

.sir-match-strip{
  border-radius:0 0 22px 22px!important;
  border:1px solid rgba(245,196,81,.18)!important;
  border-top:0!important;
  background:linear-gradient(135deg,#101a2e,#0b1424)!important;
}

.sir-tabs-nav{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  padding:12px!important;
  background:#0b1424!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:18px!important;
  margin:18px auto!important;
  max-width:1100px!important;
}

.sir-tab-btn{
  flex:1 1 130px!important;
  background:#111d31!important;
  color:#cbd5e1!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:13px!important;
  padding:12px 10px!important;
  font-weight:900!important;
  cursor:pointer!important;
}

.sir-tab-btn.active{
  background:linear-gradient(135deg,#f5c451,#f59e0b)!important;
  color:#071126!important;
  border-color:transparent!important;
}

.sir-tab-panel{
  background:#111d31!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:20px!important;
  padding:20px!important;
  box-shadow:0 12px 32px rgba(0,0,0,.20)!important;
}

.sir-section-title{
  display:inline-flex!important;
  background:rgba(245,196,81,.12)!important;
  color:#f5c451!important;
  border:1px solid rgba(245,196,81,.22)!important;
  border-radius:999px!important;
  padding:8px 16px!important;
  margin-bottom:14px!important;
  font-weight:950!important;
}

.ktv-pretty-pre,
.sir-pre{
  white-space:pre-wrap!important;
  background:#071126!important;
  color:#e5eefc!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:16px!important;
  padding:16px!important;
  line-height:2!important;
  font-family:var(--font-main)!important;
}

.ktv-stats-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;
  gap:12px!important;
}

.ktv-stat-card{
  background:#071126!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:16px!important;
  padding:15px!important;
  text-align:center!important;
}

.ktv-stat-card small{
  display:block!important;
  color:#94a3b8!important;
  font-weight:800!important;
  margin-bottom:5px!important;
}

.ktv-stat-card strong{
  color:#fff!important;
  font-size:1.05rem!important;
  font-weight:950!important;
}

.ktv-events-list{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
}

.ktv-event-row{
  display:grid!important;
  grid-template-columns:60px 120px 1fr!important;
  gap:10px!important;
  align-items:center!important;
  background:#071126!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:15px!important;
  padding:12px!important;
}

.ktv-event-row span{
  background:rgba(245,196,81,.16)!important;
  color:#f5c451!important;
  border-radius:999px!important;
  padding:5px 8px!important;
  text-align:center!important;
  font-weight:950!important;
}

.ktv-event-row b{
  color:#fff!important;
}

.ktv-event-row p{
  color:#cbd5e1!important;
  margin:0!important;
}

.sir-empty{
  background:#071126!important;
  color:#cbd5e1!important;
  border:1px dashed rgba(148,163,184,.35)!important;
  border-radius:16px!important;
  padding:18px!important;
  text-align:center!important;
  font-weight:800!important;
}

@media(max-width:700px){
  .ktv-player-brand{width:82px!important;top:8px!important;right:8px!important}
  .sir-tab-btn{flex:1 1 42%!important;font-size:.82rem!important;padding:10px 6px!important}
  .sir-tab-panel{padding:14px!important}
  .ktv-event-row{grid-template-columns:48px 1fr!important}
  .ktv-event-row p{grid-column:1 / -1!important}
}

/* KooraTV goal events hotfix */
.kt-match-events-box{margin:18px 0;padding:18px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.kt-match-events-box h3{margin:0 0 12px;text-align:center;color:#22c55e}
.kt-goal-events{display:grid;gap:10px}
.kt-goal-event{display:flex;align-items:center;gap:10px;justify-content:center;padding:10px 12px;border-radius:14px;background:rgba(15,23,42,.65);border:1px solid rgba(148,163,184,.18)}
.kt-goal-icon{font-size:18px}.kt-goal-minute{color:#facc15}.kt-goal-player{font-weight:800;color:#fff}.kt-goal-team{color:#9ca3af}.kt-events-empty{text-align:center;color:#94a3b8;padding:14px}


/* =========================================================
   Koora TV final mobile polish v5.0
   ========================================================= */
@media (max-width: 768px) {
  :root { --header-h: 78px; --ticker-h: 34px; }
  html { font-size: 15px; }
  body { overflow-x: hidden; }
  .container { padding-left: 10px; padding-right: 10px; }
  .site-header { height: var(--header-h); }
  .header-inner { position: relative; display: grid; grid-template-columns: 46px 1fr 46px; gap: 6px; justify-items: center; }
  .header-logo { grid-column: 2; justify-self: center; }
  .logo-img { height: 35px; max-width: 150px; object-fit: contain; }
  .header-actions-left { grid-column: 1; grid-row: 1; margin: 0; justify-self: start; }
  .header-actions-right { grid-column: 3; grid-row: 1; margin: 0; justify-self: end; }
  .theme-toggle, .mobile-menu-toggle { width: 40px; height: 40px; border-radius: 13px; background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.10); }
  .mobile-menu-toggle { display: flex; }

  /* ===== PRO DRAWER MENU ===== */
  .header-nav {
    position: fixed !important;
    top: 0 !important; right: 0 !important; bottom: 0 !important; left: auto !important;
    width: min(80vw, 300px) !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: #0d1728 !important;
    border-left: 1px solid rgba(148,163,184,.15);
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: -8px 0 40px rgba(0,0,0,.6);
    z-index: 9999 !important;
    overflow: hidden auto !important;
    transform: translateX(100%) !important;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
  }
  .header-nav.open {
    display: flex !important;
    transform: translateX(0) !important;
  }

  /* Nav links */
  .nav-link {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 0 20px !important;
    height: 52px !important;
    font-size: .95rem !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(148,163,184,.08);
    text-align: right;
    direction: rtl;
    color: #cbd5e1 !important;
    gap: 12px !important;
    transition: background .15s, color .15s, padding-right .15s;
    position: relative;
    display: flex !important;
  }
  .nav-link:hover, .nav-link:active {
    background: rgba(245,158,11,.08) !important;
    color: #f59e0b !important;
    padding-right: 28px !important;
  }
  .nav-link.active {
    color: #f59e0b !important;
    background: rgba(245,158,11,.1) !important;
    border-right: 3px solid #f59e0b;
  }
  .nav-icon { font-size: 1.1rem; opacity: .85; }
  .nav-secondary {
    display: flex;
    opacity: .7;
    font-size: .88rem;
  }
  .nav-secondary:hover { opacity: 1; }
  .live-ticker { margin-top: 0; }
  .ticker-label { padding: 0 10px; font-size: .72rem; }
  .ticker-content { gap: 22px; animation-duration: 24s; }
  .ticker-item { font-size: .74rem; }
  .page-hero { padding: 22px 0 0; text-align: center; }
  .hero-title { font-size: clamp(2rem, 10vw, 3rem) !important; line-height: 1.15; letter-spacing: -.5px; }
  .hero-subtitle { font-size: .78rem; }
  .match-tabs { justify-content: center; gap: 6px; margin-top: 18px; overflow-x: auto; padding-bottom: 12px; }
  .match-tabs .wc-tab-link { flex: 0 0 auto; padding: 10px 12px; font-size: .84rem; min-width: auto; }
  .section-header { align-items: center; gap: 10px; }
  .section-title { font-size: 1.35rem; }
  .live-count { padding: 8px 14px; font-size: .88rem; }
  .live-now-section { padding: 22px 0; }
  .matches-section, .articles-section { padding: 18px 0; }
  .wc-auto-matches { gap: 14px; }
  .wc-auto-card { border-radius: 20px; box-shadow: 0 14px 34px rgba(15,23,42,.08); }
  .wc-auto-head { padding: 12px 14px; font-size: .95rem; text-align: right; }
  .wc-auto-main { grid-template-columns: 1fr 94px 1fr !important; gap: 6px; padding: 18px 8px 12px !important; }
  .wc-auto-team { gap: 8px !important; font-size: .92rem !important; line-height: 1.25; }
  .wc-auto-team img, .team-logo { width: 46px !important; height: 34px !important; border-radius: 8px !important; }
  .wc-auto-status { min-width: 0; padding: 6px 9px; font-size: .72rem; margin-bottom: 8px; max-width: 98px; white-space: normal; line-height: 1.35; }
  .wc-auto-score { font-size: 1.72rem !important; gap: 4px !important; }
  .wc-pen-score { font-size: .78rem !important; }
  .wc-auto-scorers { padding: 7px 10px 10px !important; font-size: .72rem !important; min-height: 28px; }
  .wc-scorers-home, .wc-scorers-away { gap: 2px; }
  .wc-auto-meta { grid-template-columns: repeat(3, 1fr) !important; gap: 5px !important; padding: 10px 8px 12px !important; }
  .wc-auto-meta span { padding: 8px 4px !important; font-size: .68rem !important; line-height: 1.35; overflow-wrap: anywhere; }
  .articles-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .article-card { border-radius: 14px; overflow: hidden; }
  .article-card-body { padding: 8px; }
  .article-title { font-size: .74rem; line-height: 1.45; }
  .article-excerpt, .article-meta { display: none; }
  .article-card-img { height: 80px; }
  .site-footer { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (min-width: 769px) {
  .nav-secondary { display: flex; }
  .header-actions-left { order: 3; }
  .header-logo { order: 1; }
  .header-nav { order: 2; }
  .header-actions-right { display: none; }
}


/* ===== DRAWER HEADER ===== */
.drawer-header { display: none; } /* hidden on desktop */
.drawer-divider {
  height: 1px;
  background: rgba(148,163,184,.1);
  margin: 8px 16px;
}
@media (max-width: 768px) {
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(245,158,11,.2);
  background: linear-gradient(135deg, #0d1728, #111c30);
  flex-shrink: 0;
  min-height: 64px;
}
.drawer-logo img { height: 32px; object-fit: contain; }
.drawer-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid rgba(148,163,184,.2);
  background: rgba(255,255,255,.06);
  color: #94a3b8; font-size: 1rem; cursor: pointer;
  transition: all .2s;
}
.drawer-close:hover { background: rgba(225,29,72,.15); color: #f87171; border-color: rgba(225,29,72,.3); }

@media (max-width: 420px) {
  .hero-title { font-size: 2.25rem !important; }
  .wc-auto-main { grid-template-columns: 1fr 84px 1fr !important; }
  .wc-auto-score { font-size: 1.52rem !important; }
  .wc-auto-status { font-size: .68rem; padding: 5px 7px; }
  .wc-auto-team { font-size: .82rem !important; }
  .wc-auto-team img, .team-logo { width: 42px !important; height: 31px !important; }
  .wc-auto-meta span { font-size: .63rem !important; }
}
}


/* =============================================================
   Koora TV — v3 "yalla-shoot style" simplified match cards
   Big, simple, scannable — green accent, minimal decoration,
   large team names/scores, list format. No streaming links/buttons
   added — this is purely a visual simplification of the existing
   match-card component.
   ============================================================= */

.matches-section{padding:18px 0 32px}
.league-group{
  border-radius:14px;overflow:hidden;
  border:1px solid var(--border);
  margin-bottom:16px;
}
.league-header{
  background:linear-gradient(90deg,#0e3d24,#0a2e1c);
  border:none;padding:12px 16px;
}
.light-mode .league-header{background:linear-gradient(90deg,#e8f7ee,#dcf3e4)}
.league-name{font-size:.95rem;font-weight:800}
.league-logo{width:26px;height:26px}

.match-card{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:8px;
  padding:16px 14px;
  border-top:1px solid var(--border);
  border-radius:0;
}
.match-card:first-child{border-top:none}

.match-team{gap:12px}
.team-logo{width:44px;height:44px}
.team-name{font-size:1rem;font-weight:800}

.match-center{gap:4px;min-width:80px}
.score{
  font-size:1.7rem;font-weight:900;letter-spacing:1px;
  color:var(--text-primary);background:none;
  -webkit-background-clip:unset;background-clip:unset;
}
.match-time{
  font-size:.95rem;font-weight:800;
  background:none;border:none;padding:0;
  color:var(--accent-green);
}
.badge{border-radius:6px;font-weight:800;letter-spacing:0}
.badge-live{
  background:var(--accent-green);color:#04220f;
  border:none;animation:none;
}
.badge-upcoming{background:transparent;color:var(--text-muted);border:none}
.badge-finished{background:transparent;color:var(--text-muted);border:none}

.match-meta{border-top:1px dashed var(--border);padding-top:8px}
.channel-badge{
  background:none;border:none;color:var(--accent-green);
  font-weight:800;padding:0;
}

/* Simple, direct buttons — green primary, no gradient/shadow noise */
.btn-primary{
  background:var(--accent-green);color:#04220f;
  box-shadow:none;font-weight:800;
}
.btn-primary:hover{opacity:.9;transform:none}
.view-all-link{background:none;border:none;color:var(--accent-green);padding:0}

@media(max-width:640px){
  .match-card{padding:14px 10px}
  .team-logo{width:36px;height:36px}
  .team-name{font-size:.88rem}
  .score{font-size:1.35rem}
}

/* =============================================================
   Koora TV — v4 "full navy/white portal" reskin
   Header stays solid navy always (brand bar), a new white sub-nav
   row sits under it, footer is solid navy, and .ktv-box gives any
   section the navy-title-bar + white-body "widget" look from the
   reference design. Light mode is now the default theme (see
   includes/header.php); dark mode remains available via the toggle.
   ============================================================= */

/* Header: always navy, never goes white in light mode */
.site-header, .light-mode .site-header {
  background: #0d1730 !important;
  border-bottom: 1px solid rgba(245,158,11,.15) !important;
}
.header-nav .nav-link, .light-mode .header-nav .nav-link { color: #cbd5e1 !important; }
.header-nav .nav-link:hover, .header-nav .nav-link.active,
.light-mode .header-nav .nav-link:hover, .light-mode .header-nav .nav-link.active {
  color: #f59e0b !important; background: rgba(245,158,11,.12) !important;
}

/* New white sub-nav row under the navy header */
.ktv-subnav{ background:#fff; border-bottom:1px solid #e5e7eb; }
.light-mode .ktv-subnav{ background:#fff; }
.ktv-subnav-inner{ display:flex; gap:30px; justify-content:center; padding:14px 16px; flex-wrap:wrap; }
.ktv-subnav a{ color:#1e3a8a; font-weight:800; font-size:.92rem; }
.ktv-subnav a:hover, .ktv-subnav a.active{ color:#f59e0b; }

/* Footer: always solid navy with light text, regardless of theme */
.site-footer, .light-mode .site-footer {
  background: #0d1730 !important;
  border-top: none !important;
}
.site-footer .footer-desc, .site-footer .footer-links a,
.site-footer .footer-disclaimer p, .site-footer .footer-bottom {
  color: #cbd5e1 !important;
}
.site-footer .footer-heading { color: #fff !important; }
.site-footer .footer-links a:hover { color: #f59e0b !important; }
.site-footer .footer-bottom { border-top-color: rgba(255,255,255,.12) !important; }

/* Reusable "widget box": navy title bar + white rounded body,
   matching the reference's boxed-section look. */
.ktv-box{ border-radius:18px; overflow:hidden; box-shadow:0 10px 30px rgba(15,23,42,.12); margin-bottom:28px; }
.ktv-box-title{
  background:#1d3fae; color:#fff; text-align:center;
  font-size:1.15rem; font-weight:900; padding:16px 20px;
}
.ktv-box-body{ background:#fff; padding:18px; }
.light-mode .ktv-box-body{ background:#fff; }

/* =============================================================
   Koora TV — v5 "kl-" component set (matches the reference site's
   exact class names/structure: kl-panel, kl-tabs, kl-match-card,
   kl-article-card...) wired to KooraTV's real data via index.php.
   ============================================================= */

.kl-tz-note{
  max-width:1200px;margin:6px auto 10px;padding:0 16px;
  display:flex;justify-content:flex-end;
  font-size:.8rem;color:var(--text-muted);
}

.kl-panel{
  background:#fff;border-radius:18px;overflow:hidden;
  box-shadow:0 10px 30px rgba(15,23,42,.10);
  margin-bottom:24px;
}
.kl-panel-title{
  background:#1d3fae;color:#fff;text-align:center;
  font-size:1.1rem;font-weight:900;padding:15px 18px;
}

.kl-tabs{ display:flex;gap:10px;padding:16px 16px 6px;flex-wrap:wrap;justify-content:center }
.kl-tab{
  padding:12px 20px;border-radius:999px;color:#fff;font-weight:800;font-size:.9rem;
  text-decoration:none;box-shadow:0 4px 12px rgba(0,0,0,.12);
}
.kl-tab.yesterday{ background:#0e3a52 }
.kl-tab.today{ background:#1d5fc4 }
.kl-tab.tomorrow{ background:#c2650f }
.kl-tab.active{ outline:3px solid rgba(0,0,0,.12); outline-offset:2px }

.kl-empty{ padding:34px 18px;text-align:center;color:#64748b;font-weight:700 }
.kl-empty small{ display:block;margin-top:8px;color:#94a3b8;font-weight:600 }

.kl-matches-list{ padding:16px }
.kl-match-card{
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;
  background:var(--bg-secondary,#f8fafc);border:1px solid var(--border,#e5e7eb);
  border-radius:14px;padding:16px 10px;margin-bottom:12px;text-decoration:none;
}
.kl-match-card:last-child{ margin-bottom:0 }
.kl-match-team{ display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;min-width:0 }
.kl-match-team img{ width:38px;height:38px;object-fit:contain;flex-shrink:0 }
.kl-match-team span, .kl-match-team .kl-club-link{
  font-weight:800;font-size:.88rem;color:var(--text-primary,#0f172a);
  max-width:100%;word-break:break-word;line-height:1.3;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.kl-match-team .kl-club-link{ text-decoration:none }
.kl-match-team .kl-club-link:hover{ color:var(--ktv-red,#E30613);text-decoration:underline }
.kl-match-mid{ display:flex;flex-direction:column;align-items:center;gap:6px;min-width:80px;flex-shrink:0 }
.kl-match-time{ font-size:1.3rem;font-weight:900;color:var(--text-primary,#0f172a) }
.kl-match-status{
  font-size:.74rem;font-weight:800;padding:4px 10px;border-radius:999px;
  background:#0d1730;color:#fff;white-space:nowrap;
}
.kl-match-status.live{ background:#dc2626 }
.kl-match-status.finished{ background:#64748b }
.kl-match-league{ font-size:.7rem;color:var(--text-muted,#94a3b8);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }
.kl-match-extra-wrap{ margin:-6px 0 12px;padding:0 4px }
.kl-match-extra{ display:flex;gap:10px;flex-wrap:wrap;font-size:.76rem;color:var(--text-muted,#94a3b8);padding:6px 10px }
@media(max-width:420px){
  .kl-match-card{ gap:4px;padding:14px 6px }
  .kl-match-team img{ width:30px;height:30px }
  .kl-match-team span, .kl-match-team .kl-club-link{ font-size:.78rem }
  .kl-match-time{ font-size:1.1rem }
  .kl-match-mid{ min-width:64px }
}

.kl-article-list{ display:flex;flex-direction:column;gap:14px }
.kl-article-card{
  display:flex;gap:14px;text-decoration:none;align-items:flex-start;
  padding-bottom:14px;border-bottom:1px solid var(--border,#eef1f6);
}
.kl-article-list a.kl-article-card:last-child{ border-bottom:none;padding-bottom:0 }
.kl-article-card img{ width:96px;height:72px;object-fit:cover;border-radius:10px;flex-shrink:0 }
.kl-article-card h3{ font-size:.95rem;font-weight:800;color:var(--text-primary,#0f172a);margin:0 0 4px;line-height:1.4 }
.kl-article-card p{ font-size:.82rem;color:var(--text-secondary,#64748b);margin:0;line-height:1.6 }

@media(max-width:640px){
  .kl-panel-title{ font-size:1rem }
  .kl-tab{ padding:10px 14px;font-size:.82rem }
  .kl-match-time{ font-size:1.2rem }
  .kl-match-team img{ width:30px;height:30px }
  .kl-article-card img{ width:72px;height:56px }
}

/* =============================================================
   Koora TV — v6 "premium red/white" design system
   Per the new brief: white background, #E30613 red accent,
   16px rounded cards, premium shadows, smooth hover lift.
   This SUPERSEDES the navy/gold and navy/multi-color-tab schemes
   from earlier iterations — red is now the single accent color.
   ============================================================= */

:root{
  --ktv-red: #E30613;
  --ktv-red-dark: #b30510;
  --ktv-radius: 16px;
  --ktv-shadow: 0 8px 28px rgba(15,23,42,.10);
  --ktv-shadow-hover: 0 16px 40px rgba(15,23,42,.16);
}

/* Header + subnav: white premium look, red accent instead of navy/gold */
.site-header, .light-mode .site-header{
  background: rgba(255,255,255,.97) !important;
  border-bottom: 1px solid #f1f1f1 !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}
.header-logo a, .header-logo{ color:#111 !important; }
.header-nav .nav-link, .light-mode .header-nav .nav-link{ color:#374151 !important; }
.header-nav .nav-link:hover, .header-nav .nav-link.active,
.light-mode .header-nav .nav-link:hover, .light-mode .header-nav .nav-link.active{
  color:#fff !important; background: var(--ktv-red) !important;
}
.ktv-subnav{ display:none; } /* superseded by the single premium header below */

/* Breaking-news ticker: red, high-contrast, premium */
.live-ticker{
  background: var(--ktv-red) !important;
  border-bottom: none !important;
}
.ticker-label{ color:#fff !important; border-left-color: rgba(255,255,255,.3) !important; font-weight:900; }
.live-dot{ background:#fff !important; box-shadow:0 0 0 4px rgba(255,255,255,.25) !important; }
.ticker-item{ background: rgba(255,255,255,.14) !important; border-color: rgba(255,255,255,.2) !important; color:#fff !important; }
.ticker-item:hover{ background: rgba(255,255,255,.22) !important; border-color:#fff !important; }
.ticker-score{ color:#fff !important; }
.ticker-min{ color:#ffe082 !important; }

/* Cards / panels: 16px radius, premium shadow, red accent, smooth lift */
.kl-panel, .article-card, .wc-auto-card, .match-card, .kl-match-card{
  border-radius: var(--ktv-radius) !important;
  box-shadow: var(--ktv-shadow) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}
.kl-panel:hover{ box-shadow: var(--ktv-shadow) !important; } /* panels don't lift, only cards inside them do */
.article-card:hover, .wc-auto-card:hover, .kl-match-card:hover{
  transform: translateY(-4px) !important;
  box-shadow: var(--ktv-shadow-hover) !important;
}
.kl-panel-title{ background: var(--ktv-red) !important; }
.kl-tab, .match-tabs .wc-tab-link.active{ background: var(--ktv-red) !important; outline-color: rgba(227,6,19,.25) !important; }
.kl-tab.yesterday, .kl-tab.today, .kl-tab.tomorrow{ background: var(--ktv-red) !important; } /* one accent color, not 3 */
.kl-tab:not(.active){ opacity:.55; }
.kl-match-status{ background:#111827 !important; }
.kl-match-status.live{ background: var(--ktv-red) !important; }
.article-card-img .article-category{ background: var(--ktv-red) !important; color:#fff !important; }
.view-all-link{ color: var(--ktv-red) !important; background: rgba(227,6,19,.08) !important; border-color: rgba(227,6,19,.18) !important; }
.section-title::after{ background: var(--ktv-red) !important; }
.btn-primary{ background: var(--ktv-red) !important; color:#fff !important; box-shadow:0 4px 16px rgba(227,6,19,.3) !important; }

/* Footer: keep it dark for contrast, but red accent line on top */
.site-footer, .light-mode .site-footer{
  background: #111827 !important;
  border-top: 3px solid var(--ktv-red) !important;
}

/* ---------- Bottom mobile navigation (new) ---------- */
.ktv-bottom-nav{
  display:none;
}
@media(max-width:768px){
  .ktv-bottom-nav{
    display:flex; position:fixed; bottom:0; left:0; right:0; z-index:999;
    background:#fff; border-top:1px solid #eee;
    box-shadow:0 -4px 20px rgba(0,0,0,.08);
    padding:6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .ktv-bottom-nav a{
    flex:1; display:flex; flex-direction:column; align-items:center; gap:2px;
    padding:6px 2px; color:#6b7280; font-size:.68rem; font-weight:700; text-decoration:none;
  }
  .ktv-bottom-nav a .icon{ font-size:1.15rem; }
  .ktv-bottom-nav a.active{ color: var(--ktv-red); }
  body{ padding-bottom:64px; } /* keep content clear of the fixed bar */
}

/* =============================================================
   Koora TV — v7: avoid duplicate navigation on mobile.
   The new bottom nav (.ktv-bottom-nav) already covers primary
   navigation on phones, so the top link row is redundant there —
   hide it below 768px and keep just the logo + toggles up top.
   ============================================================= */
@media(max-width:768px){
  .header-nav:not(.open){ display:none !important; }
}

/* Prevent a broken/failed team-logo image from showing its alt text
   visibly next to the real team name (was causing "Bahia Bahia"-style
   duplicate text when a logo CDN image failed to load). */
.team-logo, .kl-match-team img{
  font-size:0; color:transparent; text-indent:-9999px; overflow:hidden;
}
