/* ============================================================
   SPOWTV — Main Stylesheet v3
   White bg · Black nav · Logo left · Horizontal match cards
   ============================================================ */

:root {
  --bg-base:       #f0f2f5;
  --bg-card:       #ffffff;
  --bg-card-hover: #f7f9fc;
  --bg-nav:        #ac1317;
  --border:        #e2e6ed;
  --border-light:  #c8cdd8;
  --accent:        #1a73e8;
  --accent-dim:    rgba(26,115,232,0.10);
  --accent-glow:   0 0 20px rgba(26,115,232,0.25);
  --red:           #e53935;
  --green:         #00c853;
  --gold:          #f9a825;
  --text-primary:  #0d0f14;
  --text-secondary:#4a5568;
  --text-muted:    #9aa3b5;
  --radius-sm:     5px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --font-display:  'Barlow Condensed', sans-serif;
  --font-body:     'Barlow', sans-serif;
  --transition:    0.18s ease;
  --shadow-card:   0 1px 4px rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.04);
  --shadow-hover:  0 4px 20px rgba(0,0,0,0.12);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============================================================
   Layout
   ============================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   Header / Nav  — black bar, logo LEFT, nav RIGHT
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 58px;
}

/* Logo — always LEFT, pushes everything else right */
.site-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  flex-shrink: 0;
  margin-right: auto;
}
.logo-icon { font-size: 20px; }
.logo-text { color: #ffffff; }

/* Main nav links */
.main-nav {
  display: flex;
  gap: 2px;
  align-items: center;
}
.main-nav a {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.4px;
  color: rgba(255,255,255,0.60);
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.09);
}

/* Nav right cluster (lang + burger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

/* Language switch button */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.lang-switch:hover {
  border-color: #00e676;
  color: #00e676;
  background: rgba(0,230,118,0.10);
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
}
.nav-burger span {
  display: block;
  width: 21px;
  height: 2px;
  background: rgba(255,255,255,0.70);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile dropdown */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 10px 18px 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  gap: 3px;
  background: var(--bg-nav);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.60);
}
.mobile-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.lang-switch-mobile {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.lang-switch-mobile:hover { background: rgba(255,255,255,0.08); color: #fff; }

@media (max-width: 640px) {
  .main-nav { display: none; }
  .nav-burger { display: flex; }
}

/* ============================================================
   Page Hero
   ============================================================ */
.page-hero {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.15;
  color: var(--text-primary);
}
.page-hero .hero-sub {
  color: var(--text-secondary);
  margin-top: 6px;
  font-size: 14px;
}

/* Live badge */
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(229,57,53,0.08);
  color: var(--red);
  border: 1px solid rgba(229,57,53,0.22);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.live-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-red 1.4s infinite;
}
@keyframes pulse-red {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.7); }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 22px 0; }

/* ============================================================
   League group header — like screenshot: trophy + name (RTL right)
   ============================================================ */
.league-group { margin-bottom: 0; }

.league-group-title {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  padding: 8px 14px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  width: 85%;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 768px) { .league-group-title { width: 100%; } }

.trophy-icon { font-size: 14px; }

/* ============================================================
   Matches grid
   ============================================================ */
.matches-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 85%;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 768px) { .matches-grid { width: 100%; } }

/* ============================================================
   MATCH CARD — fully clickable card
   ============================================================ */
.match-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.match-card-link:hover .match-card {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-hover);
  z-index: 1;
}
.match-card-link:hover .match-logo { transform: scale(1.07); }
.match-card-link:hover .match-team-name { color: var(--accent); }

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.match-card:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
/* Hover arrow indicator */
.match-card-link::after {
  content: '›';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent);
  opacity: 0;
  transition: opacity var(--transition), right var(--transition);
  pointer-events: none;
  font-weight: 700;
}
.match-card-link:hover::after {
  opacity: 0.6;
  right: 10px;
}

/* The actual horizontal row */
.match-row {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  min-height: 74px;
}

/* Home team — LEFT: logo then name */
.match-team-home {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
}

/* Away team — RIGHT: name first then logo flush to far right */
.match-team-away {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  flex-direction: row;
}

/* Team logo */
.match-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.10));
  transition: transform var(--transition);
}
.match-card:hover .match-logo { transform: scale(1.07); }
.match-logo-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Team name */
.match-team-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

/* Center: score or time + watch button */
.match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 140px;
  gap: 5px;
  padding: 0 8px;
}

/* Score — "0 - 3" */
.match-score {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 3px;
  line-height: 1;
  direction: ltr;
  unicode-bidi: embed;
}

/* Time — "21:00" */
.match-time-only {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  line-height: 1;
  direction: ltr;
  unicode-bidi: embed;
}

/* Status pill: انتهت / FT / LIVE */
.match-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 11px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.match-status.finished {
  background: #1c1f2e;
  color: #e2e6ed;
}
.match-status.live {
  background: var(--red);
  color: #fff;
  animation: pulse-badge 1.8s infinite;
}
.match-status.upcoming {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(26,115,232,0.18);
}
@keyframes pulse-badge {
  0%,100% { opacity:1; }
  50%      { opacity:0.6; }
}

/* Watch live button inside card center */
.btn-watch-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: var(--green);
  color: #fff;
  transition: filter var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-watch-row:hover {
  filter: brightness(1.08);
  box-shadow: 0 2px 10px rgba(0,200,83,0.35);
}
.btn-watch-row svg { width: 12px; height: 12px; }

/* Meta row (channel / commentator) */
.match-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 16px 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.match-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.match-meta-item svg { opacity: 0.5; flex-shrink: 0; }

/* ============================================================
   League badge (match detail page)
   ============================================================ */
.league-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(26,115,232,0.18);
  border-radius: 4px;
  padding: 3px 9px;
}

/* ============================================================
   Empty state
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 54px; margin-bottom: 14px; }
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

/* ============================================================
   Match Detail / Watch Page
   ============================================================ */
.match-detail-hero {
  padding: 36px 0 26px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.match-detail-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 22px;
}
.detail-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.detail-team-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.10));
}
.detail-team-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}
.detail-vs {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: #c8cdd8;
  flex-shrink: 0;
}
.match-info-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}
.match-info-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
}
.match-info-chip strong { color: var(--text-primary); }

/* ============================================================
   Video Player + Poster
   ============================================================ */
.player-wrap {
  position: relative;
  background: #050709;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin: 26px 0;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: #000;
}
.player-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,200,83,0.06) 0%, transparent 70%),
    linear-gradient(180deg, #0a0f18 0%, #050709 100%);
  text-align: center;
  cursor: pointer;
}
.poster-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}
.poster-logo {
  width: clamp(46px, 9vw, 76px);
  height: clamp(46px, 9vw, 76px);
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.7));
}
.poster-vs-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.poster-vs {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  direction: ltr;
}
.poster-time {
  font-family: var(--font-display);
  font-size: clamp(13px, 2.5vw, 18px);
  font-weight: 700;
  color: #00e676;
  letter-spacing: 1px;
  background: rgba(0,230,118,0.12);
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0,230,118,0.25);
  direction: ltr;
}
.poster-league {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.7px;
  color: rgba(255,255,255,0.30);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.poster-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #00c853;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: poster-pulse 2.5s infinite;
}
.poster-play-btn svg { width: 27px; height: 27px; margin-left: 4px; }
.poster-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 34px rgba(0,200,83,0.5);
  animation: none;
}
@keyframes poster-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(0,200,83,0.5); }
  60%  { box-shadow: 0 0 0 16px rgba(0,200,83,0); }
  100% { box-shadow: 0 0 0 0   rgba(0,200,83,0); }
}
.poster-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  margin-top: 12px;
}
.player-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,7,9,0.88);
  flex-direction: column;
  gap: 14px;
}
.player-loading p { color: rgba(255,255,255,0.45); font-size: 13px; }
.player-offline {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #050709;
  gap: 10px;
  text-align: center;
  padding: 20px;
}
.player-offline .offline-icon { font-size: clamp(36px,7vw,50px); }
.player-offline h3 {
  font-family: var(--font-display);
  font-size: clamp(16px,3.5vw,23px);
  font-weight: 700;
  color: #fff;
}
.player-offline p { color: rgba(255,255,255,0.40); max-width: 320px; font-size: 13px; }
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.10);
  border-top-color: #00c853;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  .player-wrap { border-radius: 10px; margin: 14px 0; }
  .poster-play-btn { width: 54px; height: 54px; }
  .poster-play-btn svg { width: 22px; height: 22px; }
}

/* ============================================================
   News / Blog
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-card);
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.news-card-img { aspect-ratio: 16/9; overflow: hidden; }
.news-card-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.news-card-body { padding: 18px; }
.news-card-cat { font-size:11px; font-weight:700; letter-spacing:.7px; text-transform:uppercase; color:var(--accent); margin-bottom:7px; }
.news-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
}
.news-card-title a:hover { color: var(--accent); }
.news-card-excerpt { font-size:13px; color:var(--text-secondary); margin-bottom:12px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.news-card-date { font-size:12px; color:var(--text-muted); }

/* ============================================================
   Post / Article
   ============================================================ */
.post-hero { padding:40px 0 28px; border-bottom:1px solid var(--border); }
.post-hero h1 { font-family:var(--font-display); font-size:clamp(22px,4vw,40px); font-weight:800; line-height:1.15; margin-bottom:12px; color:var(--text-primary); }
.post-meta { display:flex; flex-wrap:wrap; gap:12px; font-size:13px; color:var(--text-secondary); align-items:center; }
.post-cat-badge { background:var(--accent-dim); color:var(--accent); border:1px solid rgba(26,115,232,0.18); border-radius:4px; padding:2px 10px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; }
.post-featured-img { margin:26px 0; border-radius:var(--radius-md); overflow:hidden; }
.post-featured-img img { width:100%; max-height:440px; object-fit:cover; }
.post-content { max-width:740px; font-size:16px; line-height:1.82; color:#2d3748; padding-bottom:40px; }
.post-content h2,.post-content h3 { font-family:var(--font-display); font-weight:700; margin:24px 0 10px; color:var(--text-primary); }
.post-content h2 { font-size:26px; }
.post-content h3 { font-size:20px; }
.post-content p { margin-bottom:15px; }
.post-content a { color:var(--accent); text-decoration:underline; }
.post-content ul,.post-content ol { padding-left:22px; margin-bottom:15px; }
.post-content li { margin-bottom:5px; }
.post-content blockquote { border-left:3px solid var(--accent); padding:10px 18px; margin:18px 0; background:var(--bg-base); border-radius:0 var(--radius-sm) var(--radius-sm) 0; font-style:italic; color:var(--text-secondary); }
.post-tags { display:flex; flex-wrap:wrap; gap:7px; margin-top:24px; }
.tag { font-size:12px; background:var(--bg-base); border:1px solid var(--border); border-radius:20px; padding:4px 12px; color:var(--text-secondary); }

/* ============================================================
   Pagination
   ============================================================ */
.pagination { display:flex; gap:5px; justify-content:center; margin-top:32px; }
.pagination a,.pagination span { display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:var(--radius-sm); font-size:13px; font-weight:600; border:1px solid var(--border); background:var(--bg-card); color:var(--text-secondary); transition:border-color var(--transition),color var(--transition); }
.pagination a:hover { border-color:var(--accent); color:var(--accent); }
.pagination .current { background:var(--accent); color:#fff; border-color:var(--accent); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top:1px solid var(--border); padding:28px 0; margin-top:48px; background:var(--bg-card); }
.footer-inner { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; }
.footer-brand { font-family:var(--font-display); font-size:18px; font-weight:700; color:var(--text-primary); display:flex; align-items:center; gap:8px; }
.footer-copy { font-size:13px; color:var(--text-muted); }
.footer-links { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.footer-links a { font-size:13px; color:var(--text-muted); transition:color var(--transition); }
.footer-links a:hover { color:var(--text-secondary); }
.footer-sep { color:var(--border-light); font-size:11px; }
@media (max-width:600px) { .footer-inner { flex-direction:column; align-items:flex-start; gap:10px; } }

/* ============================================================
   Alerts & Buttons
   ============================================================ */
.alert { padding:11px 16px; border-radius:var(--radius-sm); font-size:14px; margin-bottom:18px; border-left:3px solid; }
.alert-success { background:rgba(0,200,83,0.07);  border-color:#00c853; color:#1b5e20; }
.alert-error   { background:rgba(229,57,53,0.07); border-color:var(--red); color:#b71c1c; }
.alert-info    { background:rgba(26,115,232,0.07);border-color:var(--accent); color:#1565c0; }

.btn { display:inline-flex; align-items:center; gap:6px; padding:9px 20px; border-radius:var(--radius-sm); font-size:14px; font-weight:600; transition:filter var(--transition),box-shadow var(--transition); cursor:pointer; border:none; }
.btn-primary { background:var(--accent); color:#fff; }
.btn-primary:hover { filter:brightness(1.08); box-shadow:var(--accent-glow); }
.btn-outline { background:transparent; color:var(--text-secondary); border:1px solid var(--border-light); }
.btn-outline:hover { border-color:#9aa3b5; color:var(--text-primary); }
.btn-danger { background:var(--red); color:#fff; }
.btn-danger:hover { filter:brightness(0.9); }
.btn-sm { padding:5px 12px; font-size:12px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
  .match-team-name { font-size:14px; max-width:80px; }
  .match-logo { width:34px; height:34px; }
  .match-logo-placeholder { width:34px; height:34px; font-size:15px; }
  .match-center { width:96px; }
  .match-score { font-size:19px; letter-spacing:2px; }
  .match-time-only { font-size:17px; }
  .match-status,.btn-watch-row { font-size:11px; padding:2px 8px; }
  .match-row { padding:10px 10px; min-height:62px; }
  .news-grid { grid-template-columns:1fr; }
  .match-detail-teams { gap:12px; }
  .detail-team-logo { width:54px; height:54px; }
  .detail-team-name { font-size:17px; }
  .detail-vs { font-size:22px; }
}
@media (max-width: 360px) {
  .match-team-name { max-width:64px; font-size:12px; }
  .match-center { width:80px; }
}

/* ============================================================
   Arabic / RTL tweaks
   ============================================================ */
.lang-ar body { font-size:15.5px; }
.lang-ar .match-team-name { font-size:16px; }
.lang-ar .match-score,
.lang-ar .match-time-only,
.lang-ar .poster-vs,
.lang-ar .poster-time { direction:ltr; unicode-bidi:embed; }
.lang-ar .league-group-title { font-size:14px; }

/* ============================================================
   App Download Banner — redesigned
   ============================================================ */
.app-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(120deg, #0f1923 0%, #162032 60%, #0f2744 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 24px 0 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.app-banner::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(26,115,232,0.16) 0%, transparent 70%);
  top: -70px;
  right: 100px;
  pointer-events: none;
}
.app-banner::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0,200,83,0.12) 0%, transparent 70%);
  bottom: -50px;
  right: 30px;
  pointer-events: none;
}
.app-banner-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
  z-index: 1;
}
.app-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.app-banner-text strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
  line-height: 1.2;
}
.app-banner-text span {
  font-size: 13px;
  color: rgba(255,255,255,0.50);
}
.app-banner-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  height: 50px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.app-btn:hover { transform: translateY(-2px); }
.app-btn-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.app-btn-label small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.70;
  letter-spacing: 0.2px;
}
.app-btn-label b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.app-btn-ios {
  background: #ffffff;
  color: #000;
  box-shadow: 0 2px 14px rgba(0,0,0,0.22);
}
.app-btn-ios:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,0.32);
  filter: brightness(0.96);
}
.app-btn-android {
  background: #1c2a1e;
  color: #fff;
  border: 1px solid rgba(0,200,83,0.28);
  box-shadow: 0 2px 14px rgba(0,200,83,0.10);
}
.app-btn-android:hover {
  box-shadow: 0 6px 22px rgba(0,200,83,0.22);
  border-color: rgba(0,200,83,0.55);
}
@media (max-width: 680px) {
  .app-banner { flex-direction: column; align-items: flex-start; padding: 18px 16px; gap: 14px; }
  .app-banner-btns { width: 100%; }
  .app-btn { flex: 1; justify-content: center; height: 46px; }
  .app-banner-text strong { font-size: 17px; }
}
@media (max-width: 360px) {
  .app-banner-btns { flex-direction: column; }
  .app-btn { width: 100%; }
}

/* ============================================================
   Home — Latest News Section
   ============================================================ */
.home-news-section {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 2px solid var(--border);
}
.home-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.home-news-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-news-icon { font-size: 22px; }
.home-news-title h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}
.home-news-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
}
.home-news-more:hover {
  background: var(--accent);
  color: #fff;
}

/* News grid — 1 featured + 5 small */
.home-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}

/* Card base */
.home-news-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-card);
}
.home-news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Featured card spans 2 rows, first column */
.home-news-card--featured {
  grid-row: 1 / 3;
}
.home-news-card--featured .home-news-card-img-wrap {
  aspect-ratio: 4/3;
}
.home-news-card--featured .home-news-card-title a {
  font-size: 18px;
}
.home-news-card--featured .home-news-card-body {
  padding: 18px;
}

/* Image wrap */
.home-news-card-img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--border);
  flex-shrink: 0;
}
.home-news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.home-news-card:hover .home-news-card-img-wrap img {
  transform: scale(1.04);
}
.home-news-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--bg-base);
}

/* Category badge on image */
.home-news-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Card body */
.home-news-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.home-news-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}
.home-news-card-title a { color: inherit; }
.home-news-card-title a:hover { color: var(--accent); }
.home-news-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer: date + tags */
.home-news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.home-news-card-date {
  font-size: 11px;
  color: var(--text-muted);
}
.home-news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.home-news-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0.2px;
}

/* Post page tags (existing enhanced) */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(26,115,232,0.2);
  border-radius: 20px;
  padding: 5px 12px;
  transition: background var(--transition), color var(--transition);
}
.tag:hover { background: var(--accent); color: #fff; }

/* Responsive */
@media (max-width: 860px) {
  .home-news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-news-card--featured {
    grid-column: 1 / 3;
    grid-row: auto;
  }
  .home-news-card--featured .home-news-card-img-wrap {
    aspect-ratio: 16/7;
  }
}
@media (max-width: 560px) {
  .home-news-grid {
    grid-template-columns: 1fr;
  }
  .home-news-card--featured {
    grid-column: auto;
  }
}

/* ============================================================
   Telegram Nav Button
   ============================================================ */
.telegram-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  color: #fff;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.telegram-nav-btn:hover {
  background: #2AABEE;
  transform: scale(1.1);
}
.telegram-nav-btn svg { display: block; }

/* Footer telegram link */
.footer-telegram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2AABEE;
  background: rgba(42,171,238,0.10);
  border: 1px solid rgba(42,171,238,0.25);
  border-radius: 20px;
  padding: 5px 12px;
  transition: background var(--transition), color var(--transition);
}
.footer-telegram:hover {
  background: #2AABEE;
  color: #fff;
}
