* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Arial, sans-serif; background: #0a0a0a; color: #eee; direction: rtl; min-height: 100vh; }

header { background: #111; border-bottom: 3px solid #e8c000; position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 900px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.logo img { height: 45px; width: auto; display: block; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: #ccc; text-decoration: none; padding: 6px 12px; border-radius: 20px; font-size: 13px; border: 1px solid transparent; transition: all .2s; white-space: nowrap; }
nav a:hover, nav a.active { background: #e8c000; color: #000; font-weight: 600; }

@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: center; }
  nav { justify-content: center; }
}

main { max-width: 900px; margin: 24px auto; padding: 0 12px; }

/* ✅ H1 Page Title */
.page-title {
  font-size: 20px;
  font-weight: 700;
  color: #e8c000;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e1e1e;
}

.competition-header { background: #1a1a1a; border-right: 3px solid #e8c000; padding: 8px 14px; font-size: 13px; font-weight: 600; color: #e8c000; margin: 16px 0 4px; border-radius: 0 6px 6px 0; }

.match-row { display: block; background: #161616; border: 1px solid #222; border-radius: 10px; padding: 14px 16px; margin-bottom: 6px; text-decoration: none; color: inherit; transition: border-color .2s, background .2s; }
.match-row:hover { border-color: #e8c000; background: #1c1c1c; }

.match-teams { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.team-side { flex: 1; display: flex; align-items: center; gap: 8px; }
.team-side.away { flex-direction: row-reverse; }
.team-logo { width: 32px; height: 32px; object-fit: contain; }
.team-name { font-size: 15px; font-weight: 600; color: #fff; }

.match-center { text-align: center; min-width: 90px; }
.score { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 2px; }
.live-score { color: #e8c000; }
.match-time { font-size: 16px; font-weight: 600; color: #aaa; }

.badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-top: 4px; display: inline-block; }
.live-badge { background: #c0392b; color: #fff; }
.finished-badge { background: #333; color: #aaa; }
.upcoming-badge { background: #1a3a1a; color: #4CAF50; }

.match-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-item { font-size: 12px; color: #888; background: #1f1f1f; padding: 3px 10px; border-radius: 12px; border: 1px solid #2a2a2a; }
.meta-item.channel { color: #e8c000; border-color: #3a3000; background: #1a1500; }
.meta-item.stream-ready { color: #4CAF50; border-color: #1a3a1a; background: #0d1f0d; }
.meta-item.comp-tag { color: #aaa; }

.match-detail-card { background: #161616; border: 1px solid #222; border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.match-detail-teams { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.detail-team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.detail-logo { width: 72px; height: 72px; object-fit: contain; }
.detail-team-name { font-size: 18px; font-weight: 700; color: #fff; }
.detail-center { text-align: center; min-width: 110px; }
.detail-score { font-size: 40px; font-weight: 700; color: #fff; letter-spacing: 4px; }
.detail-time { font-size: 30px; font-weight: 700; color: #e8c000; }
.detail-info { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding-top: 14px; border-top: 1px solid #222; }

.match-banner { margin-bottom: 16px; border-radius: 12px; overflow: hidden; }
.match-banner img { width: 100%; display: block; height: auto; }

.player-section { margin-bottom: 16px; }
.player-wrapper { background: #000; border-radius: 12px; overflow: hidden; }
.player-wrapper iframe { display: block; }
.no-stream { text-align: center; padding: 50px 20px; background: #161616; border-radius: 12px; border: 1px dashed #333; }
.no-stream svg { margin-bottom: 14px; }
.no-stream p { color: #aaa; font-size: 16px; margin-bottom: 6px; }
.no-stream small { color: #555; font-size: 13px; }

.article-section { background: #161616; border: 1px solid #222; border-radius: 12px; padding: 24px; margin-top: 16px; }
.article-section h1 { font-size: 22px; color: #e8c000; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #222; }
.article-section h2 { font-size: 18px; color: #e8c000; margin: 20px 0 10px; }
.article-section h3 { font-size: 16px; color: #ccc; margin: 16px 0 8px; }
.article-section p { color: #bbb; font-size: 15px; line-height: 1.9; margin-bottom: 12px; }

.news-section { margin-top: 40px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-header h2 { font-size: 18px; font-weight: 600; color: #e8c000; }
.see-all { font-size: 13px; color: #aaa; text-decoration: none; border: 1px solid #333; padding: 4px 12px; border-radius: 20px; }
.see-all:hover { border-color: #e8c000; color: #e8c000; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.news-card { display: block; background: #161616; border: 1px solid #222; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s; }
.news-card:hover { border-color: #e8c000; }
.news-img { width: 100%; height: 160px; object-fit: cover; }
.news-body { padding: 12px; }
.news-title { font-size: 14px; font-weight: 500; color: #fff; line-height: 1.6; }

.news-detail { max-width: 700px; margin: 0 auto; }
.news-detail-img { width: 100%; border-radius: 12px; margin-bottom: 20px; height: auto; }
.news-detail-title { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 20px; line-height: 1.6; }
.news-article h2 { font-size: 18px; color: #e8c000; margin: 20px 0 10px; }
.news-article h3 { font-size: 16px; color: #e8c000; margin: 16px 0 8px; }
.news-article p { color: #bbb; font-size: 15px; line-height: 1.9; margin-bottom: 12px; }
.source-link { display: inline-block; margin-top: 20px; color: #e8c000; font-size: 13px; }
.no-article { color: #555; text-align: center; padding: 40px; }

footer { text-align: center; padding: 30px; color: #444; font-size: 13px; border-top: 1px solid #1a1a1a; margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty { text-align: center; padding: 80px 20px; color: #555; font-size: 16px; }