/* ================================================================
   Şok Sport⁰¹ — style.css
   Complete stylesheet v3
   ================================================================ */

/* ══════════════ 1. VARIABLES ══════════════ */
:root {
  --bg: #0d1117;
  --bg-2: #161b22;
  --bg-3: #1c2128;
  --bg-hover: #21262d;
  --border: #21262d;
  --border-2: #30363d;

  --text: #e6edf3;
  --text-2: #8b949e;
  --text-3: #6e7681;

  --blue: #3b82f6;
  --blue-2: #2563eb;
  --purple: #7c3aed;
  --red: #ef4444;
  --orange: #f97316;
  --green: #22c55e;
  --yellow: #eab308;

  --brand-grad: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
  --live-grad: linear-gradient(135deg, #ef4444 0%, #f97316 100%);

  --r-sm: 8px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);

  --header-h: 56px;
  --tabs-h: 44px;
  --sports-h: 52px;
}

html.light {
  --bg: #f6f8fa;
  --bg-2: #ffffff;
  --bg-3: #ffffff;
  --bg-hover: #f3f4f6;
  --border: #e5e7eb;
  --border-2: #d1d5db;

  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ══════════════ 2. RESET ══════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background 0.2s ease, color 0.2s ease;
}

html[dir="rtl"] body {
  font-family: 'Vazirmatn', 'Inter', sans-serif;
}

img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; color: inherit; background: none; border: none; }
input { font: inherit; color: inherit; background: none; border: none; outline: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
sup { font-size: 0.6em; vertical-align: super; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ══════════════ 3. TOPBAR ══════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

html.light .topbar { background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); }

.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.icon-btn svg { width: 20px; height: 20px; }

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  flex-shrink: 0;
}

.logo-text {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.logo-accent { font-weight: 800; color: var(--blue); }
.logo-sup { font-size: 9px; color: var(--text-3); margin-left: 1px; font-weight: 700; }

html[dir="rtl"] .logo-sup { margin-left: 0; margin-right: 1px; }

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

html[dir="rtl"] .topbar-actions { margin-left: 0; margin-right: auto; }

/* Language */
.lang-wrap { position: relative; }

.lang-btn {
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  transition: all 0.15s ease;
}

.lang-btn:hover { background: var(--bg-hover); color: var(--text); }
.lang-chevron { width: 14px; height: 14px; opacity: 0.6; transition: transform 0.2s ease; }
.lang-wrap.open .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 5px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all 0.18s ease;
  z-index: 200;
}

html[dir="rtl"] .lang-menu { right: auto; left: 0; }

.lang-wrap.open .lang-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-align: left;
  transition: all 0.12s ease;
}

html[dir="rtl"] .lang-menu button { text-align: right; }

.lang-menu button:hover { background: var(--bg-hover); color: var(--text); }

.lang-menu button.active {
  background: var(--blue);
  color: #fff;
}

/* ══════════════ 4. PRIMARY TABS (News / Scores) ══════════════ */
.primary-tabs {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 95;
}

html.light .primary-tabs { background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); }

.primary-tabs-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 12px;
  height: var(--tabs-h);
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.primary-tab {
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.primary-tab:hover { color: var(--text-2); }

.primary-tab.active {
  color: var(--text);
  border-bottom-color: var(--blue);
}

/* ══════════════ 5. SPORTS NAV ══════════════ */
.sports-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: calc(var(--header-h) + var(--tabs-h));
  z-index: 90;
}

html.light .sports-nav { background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); }

.sports-tabs {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.sport-tab {
  flex-shrink: 0;
  height: 36px;
  padding: 0 15px;
  border-radius: 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

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

.sport-tab.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

html.light .sport-tab.active { background: var(--text); color: #fff; }

.sport-tab-icon {
  font-size: 15px;
  line-height: 1;
}

/* ══════════════ 6. PAGE WRAP ══════════════ */
.page-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px;
}

/* ══════════════ 7. AD SLOT ══════════════ */
.ad-slot {
  margin-bottom: 12px;
  height: 74px;
  border-radius: var(--r);
  background: var(--bg-2);
  border: 1px dashed var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.ad-slot:hover { border-color: var(--blue); }

.ad-label {
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.55;
}

/* ══════════════ 8. FILTER ROW ══════════════ */
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.filter-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 19px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

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

.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

html.light .filter-btn.active { background: var(--text); color: #fff; }

.filter-btn.live .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

.filter-btn.live.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.filter-btn.live.active .live-dot {
  background: #fff;
}

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

/* Date nav */
.date-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 19px;
  padding: 3px;
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  min-width: 0;
}

.arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.arrow-btn:hover { background: var(--bg-hover); color: var(--text); }
.arrow-btn svg { width: 16px; height: 16px; }

.date-label {
  flex: 1;
  height: 32px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8px;
  min-width: 0;
}

.date-label:hover { background: var(--bg-hover); }

.calendar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.calendar-btn:hover { background: var(--bg-hover); color: var(--text); }
.calendar-btn svg { width: 17px; height: 17px; }

/* ══════════════ 9. MATCHES CONTAINER ══════════════ */
.matches-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loading-wrap {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

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

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

/* ─── Country card ─── */
.country-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.country-card:hover { border-color: var(--border-2); }

.country-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.country-head:hover { background: var(--bg-hover); }

.country-flag {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 3px;
}

.country-flag-fallback {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.country-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  background: var(--bg-3);
  padding: 3px 9px;
  border-radius: 10px;
  flex-shrink: 0;
}

.country-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.country-card.open .country-chevron { transform: rotate(180deg); }

.country-body {
  display: none;
  padding: 0 6px 6px;
}

.country-card.open .country-body { display: block; }

/* ─── League block ─── */
.league-block {
  margin-bottom: 4px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-3);
}

.league-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}

.league-head:hover { background: var(--bg-hover); }

.league-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.league-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.league-arrow {
  width: 14px;
  height: 14px;
  color: var(--text-3);
  flex-shrink: 0;
}

.league-body { padding: 0 4px 6px; }

/* ─── Match row ─── */
.match-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.12s ease;
  position: relative;
  user-select: none;
}

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

.match-item.live {
  background: rgba(239, 68, 68, 0.05);
}

.match-item.live::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--orange);
  border-radius: 2px;
}

html[dir="rtl"] .match-item.live::before { left: auto; right: 0; }

/* time */
.match-time-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 8px;
  min-width: 0;
}

html[dir="rtl"] .match-time-col { padding-right: 0; padding-left: 8px; }

.match-time {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  white-space: nowrap;
}

.match-time.live-time {
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
}

.match-time.ft {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

.live-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* teams */
.match-teams-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 0 4px;
}

.team-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 24px;
}

.team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-logo-fb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 800;
  color: var(--text-2);
  flex-shrink: 0;
  border: 1px solid var(--border-2);
  text-transform: uppercase;
}

.team-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.team-line.winner .team-name {
  color: var(--text);
  font-weight: 700;
}

/* scores */
.match-scores-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
  padding-left: 8px;
}

html[dir="rtl"] .match-scores-col { padding-left: 0; padding-right: 8px; align-items: flex-start; }

.score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 24px;
}

.score-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  min-width: 16px;
  text-align: center;
  direction: ltr;
}

.score-row.winner .score-num { color: var(--text); }
.score-num.live-score { color: var(--orange); }

.star-btn {
  width: 20px;
  height: 20px;
  color: var(--text-3);
  transition: all 0.15s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.star-btn:hover { color: var(--yellow); }
.star-btn svg { width: 15px; height: 15px; }
.star-btn.starred { color: var(--yellow); fill: var(--yellow); }

/* empty */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

.empty-state svg {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  opacity: 0.35;
  display: block;
}

/* skeleton */
.skel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
  margin-bottom: 8px;
}

.skel-line {
  height: 12px;
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-hover) 50%, var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skel-line:last-child { margin-bottom: 0; width: 60%; }

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

/* ══════════════ 10. FOOTER ══════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  margin-top: 24px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 20px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

@media (min-width: 1024px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--blue); }

.footer-desc {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
  margin-top: 10px;
}

.logo-footer .logo-text { font-size: 15px; }
.logo-footer .logo-mark { width: 30px; height: 30px; font-size: 17px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

/* ══════════════ 11. DRAWER ══════════════ */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.drawer[aria-hidden="false"] { pointer-events: auto; }

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.drawer[aria-hidden="false"] .drawer-backdrop { opacity: 1; }

.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

html[dir="rtl"] .drawer-panel {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
}

.drawer[aria-hidden="false"] .drawer-panel { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-nav {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.15s ease;
}

.drawer-item svg { width: 20px; height: 20px; opacity: 0.85; flex-shrink: 0; }

.drawer-item:hover { background: var(--bg-hover); color: var(--text); }

.drawer-item.active {
  background: var(--bg-3);
  color: var(--text);
  position: relative;
}

.drawer-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 30%;
  bottom: 30%;
  width: 3px;
  background: var(--blue);
  border-radius: 2px;
}

html[dir="rtl"] .drawer-item.active::before { left: auto; right: 0; }

.drawer-section {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.drawer-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 10px;
}

.drawer-sports {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.drawer-sport {
  padding: 9px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-sport:hover { background: var(--bg-hover); color: var(--text); }
.drawer-sport.active { background: var(--blue); color: #fff; }

.drawer-langs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-lang {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-align: left;
  transition: all 0.15s ease;
}

html[dir="rtl"] .drawer-lang { text-align: right; }

.drawer-lang:hover { background: var(--bg-hover); color: var(--text); }
.drawer-lang.active { background: var(--blue); color: #fff; }

.drawer-foot {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  flex-shrink: 0;
}

/* ══════════════ 12. UTILITIES ══════════════ */
.fade-in { animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

[hidden] { display: none !important; }

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ══════════════ 13. RTL ADJUSTMENTS ══════════════ */
html[dir="rtl"] .filter-row { flex-direction: row-reverse; }
html[dir="rtl"] .date-nav .arrow-btn svg { transform: scaleX(-1); }

/* ══════════════ 14. MOBILE ══════════════ */
@media (max-width: 640px) {
  .topbar-inner { padding: 0 8px; gap: 6px; }
  .logo-text { display: none; }
  .logo-mark { width: 32px; height: 32px; font-size: 17px; }
  .icon-btn { width: 36px; height: 36px; }

  .filter-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-btn {
    height: 34px;
    padding: 0 13px;
    font-size: 12.5px;
  }

  .date-nav {
    order: -1;
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }

  .match-item {
    grid-template-columns: 46px 1fr auto;
    padding: 8px 8px;
  }

  .team-name { font-size: 12.5px; }
  .team-logo { width: 18px; height: 18px; }
  .team-logo-fb { width: 18px; height: 18px; font-size: 7.5px; }
  .score-num { font-size: 13px; }

  .country-head { padding: 10px 12px; }
  .country-name { font-size: 13px; }
  .country-badge { font-size: 10px; padding: 2px 7px; }

  .league-head { padding: 8px 10px; }
  .league-name { font-size: 12px; }

  .ad-slot { height: 60px; }
       }
