
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', Verdana, Arial, sans-serif;
  background: #0e0e0e;
  color: #e6e6e6;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.15s ease-in;
}
body.loaded { opacity: 1; }

/* Index page body — uniform dark background */
body.index-page {
  background: #0e0e0e;
}
a { color: #ff9900; text-decoration: none; }
a:hover { color: #ffcc00; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============== TOP BAR ============== */
.topbar {
  background: #2b2b2b; border-bottom: 1px solid #3a3a3a;
  padding: 5px 15px; font-size: 11px; color: #aaa;
}
.topbar-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left { display: flex; flex-wrap: wrap; align-items: center; }
.topbar-left span { margin-right: 14px; }
.topbar-right { display: flex; align-items: center; }
.topbar-right a { color: #aaa; margin-left: 12px; }
.tg-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(to bottom, #29b6f6, #0288d1);
  color: #fff !important; padding: 5px 11px; border-radius: 3px;
  font-weight: bold; font-size: 11px; margin-left: 12px;
  border: 1px solid #0277bd; transition: all .2s;
  text-decoration: none !important;
}
.tg-btn:hover { background: linear-gradient(to bottom, #4fc3f7, #039be5); color: #fff !important; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(2,136,209,.4); }
.tg-btn svg { width: 13px; height: 13px; fill: #fff; flex-shrink: 0; }

/* ============== HEADER ============== */
.header {
  background: linear-gradient(to bottom, #0a0a0a, #1a1a1a);
  border-bottom: 3px solid #ff6600; padding: 10px 15px;
}
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 6px;
  object-fit: cover; display: block; flex-shrink: 0;
}
.logo-text { color: #fff; font-size: 18px; font-weight: bold; }
.logo-text small { display: block; font-size: 9px; color: #ff9900; letter-spacing: 2px; font-weight: normal; }
.nav-top { display: flex; align-items: center; gap: 10px; }
.live-badge {
  display: flex; align-items: center; gap: 5px;
  background: #16a34a; color: #fff; padding: 5px 10px;
  border-radius: 4px; font-weight: bold; font-size: 11px;
}
.online-badge { background: #16a34a; }
.live-dot { width: 7px; height: 7px; background: #fff; border-radius: 50%; box-shadow: 0 0 5px #fff; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% {opacity:1;} 50% {opacity:.3;} }

/* ============== NAV ============== */
.navbar { background: #2b2b2b; border-bottom: 1px solid #3a3a3a; }
.navbar-inner { max-width: 1200px; margin: 0 auto; display: flex; }
.navbar a {
  display: block; padding: 9px 15px; color: #ddd;
  text-decoration: none; font-size: 12px; font-weight: bold;
  text-transform: uppercase; border-right: 1px solid #383838;
  transition: all .2s;
}
.navbar a:first-child { border-left: 1px solid #383838; }
.navbar a:hover, .navbar a.active { background: #ff6600; color: #fff; }

/* ============== LAYOUT ============== */
.container { max-width: 1200px; margin: 15px auto; padding: 0 15px; display: grid; grid-template-columns: 1fr 300px; gap: 15px; }

/* Index page — clip left column content to prevent bleed */
body.index-page .container > div:first-child {
  overflow: visible;
}

/* Index page — full-width sections within grid column */
body.index-page .container {
  display: grid !important;
  grid-template-columns: 1fr 300px !important;
  max-width: 1200px !important;
  margin: 15px auto !important;
  padding: 0 15px !important;
  gap: 15px !important;
}

/* ============== SIDEBAR ============== */
.sidebar-widget { background: #222; border: 1px solid #333; margin-bottom: 15px; }
.widget-title {
  background: linear-gradient(to bottom, #ff6600, #cc4400);
  color: #fff; padding: 8px 12px; font-size: 12px;
  font-weight: bold; text-transform: uppercase;
}
.widget-body { padding: 6px 0; }
.widget-body ul li { border-bottom: 1px dashed #333; }
.widget-body ul li:last-child { border-bottom: none; }
.widget-body ul li a {
  display: flex; align-items: center;
  padding: 7px 12px; color: #ccc; font-size: 11px;
}
.widget-body ul li a:hover { background: #2a2a2a; color: #ff9900; text-decoration: none; }
.league-logo {
  width: 18px; height: 18px; flex-shrink: 0; margin-right: 8px;
  object-fit: contain; border-radius: 50%; background: #333; padding: 1px;
}
.tag { color: #666; font-size: 10px; background: #2a2a2a; padding: 1px 6px; border-radius: 3px; margin-left: auto; }
.league-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Article card styles — DEPRECATED, see .articles-section block below */
/* Article card styles moved to .articles-section (line 352+) */

/* Cat widget list */
.cat-widget-list a { padding: 8px 12px !important; border-radius: 4px; margin: 2px 6px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 32px 0 0; }
.pagination a, .pagination span { padding: 8px 12px; border-radius: 4px; font-size: 13px; }

/* Article page layout */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 15px; max-width: 1200px; margin: 15px auto; padding: 0 15px; }
.article-layout > main { min-width: 0; }
.article-layout > aside { }
.article-content { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 8px; padding: 20px; }
.article-content h2 { color: #fff; font-size: 18px; margin: 20px 0 10px; }
.article-content h2:first-child { margin-top: 0; }
.article-content p { color: #ccc; line-height: 1.7; margin-bottom: 12px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-content th, .article-content td { border: 1px solid #333; padding: 8px 10px; text-align: left; font-size: 12px; }
.article-content th { background: #2a2a2a; color: #fff; font-weight: 700; }
.article-content td { background: #141414; color: #ccc; }
.article-content ul, .article-content ol { color: #ccc; padding-left: 20px; margin: 12px 0; }
.article-content li { margin-bottom: 6px; line-height: 1.5; }
.article-content strong { color: #fff; }
.article-tags { margin-top: 16px; }
.article-tag { display: inline-block; background: #222; border: 1px solid #333; color: #aaa; padding: 2px 8px; border-radius: 3px; font-size: 10px; margin: 2px 4px 2px 0; }
.side-cat-card:hover { border-color: #ff6600 !important; }

/* ============== AD SLOTS ============== */
/* Desktop ad slots */
.ad-slot {
  background: #2a2a2a;
  border: 1px dashed #444;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 auto;
}
.ad-slot-300x250 {
  width: 300px;
  height: 250px;
}
/* Mobile ad slot */
.ad-slot-320x50 {
  width: 320px;
  max-width: 100%;
  height: 50px;
}
.ad-slot .ad-label { color: #ff9900; font-weight: bold; margin-bottom: 6px; }
.ad-slot .ad-size { color: #555; font-size: 10px; }
.ad-slot img { max-width: 100%; max-height: 100%; display: block; }

/* Muted placeholder for empty ad slots */
.ad-placeholder-muted {
  color: #555;
  font-size: 10px;
  text-align: center;
  padding: 30px 10px;
  line-height: 1.6;
}

/* Responsive: hide desktop slots, show mobile slot */
@media (max-width: 768px) {
  .desktop-ad { display: none !important; }
  .mobile-ad { display: flex !important; }
}
@media (min-width: 769px) {
  .mobile-ad { display: none !important; }
}

/* ============== BREADCRUMB ============== */
.breadcrumb {
  background: #2a2a2a; padding: 8px 12px; font-size: 11px; color: #999;
  border: 1px solid #333; margin-bottom: 12px;
}
.breadcrumb a { color: #ff9900; }
.breadcrumb .sep { margin: 0 6px; color: #555; }

/* ============== PLAYER ============== */
.video-wrapper {
  position: relative; width: 100%; padding-top: 56.25%;
  background: #000; border: 1px solid #333;
}
.video-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; color: #fff;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
}
.play-btn {
  width: 60px; height: 60px; background: rgba(255,102,0,.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 3px solid #fff; transition: all .2s;
}
.play-btn:hover { transform: scale(1.1); background: rgba(255,102,0,1); }
.play-btn svg { width: 24px; height: 24px; fill: #000; margin-left: 3px; }

/* Quality change spinner (default styles — apply to all viewports) */
.quality-spinner {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.7);
  gap: 14px;
  pointer-events: none;
}
.spinner-ring {
  width: 54px;
  height: 54px;
  border: 5px solid rgba(255,153,0,.2);
  border-top-color: #ff9900;
  border-radius: 50%;
  animation: qspin 0.9s linear infinite;
}
.spinner-text {
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .5px;
}
@keyframes qspin { to { transform: rotate(360deg); } }

/* ============== PLAYER INFO BAR ============== */
.player-info-bar {
  background: #1f1f1f; border: 1px solid #333; border-top: none; padding: 12px 15px;
}
.match-title { color: #fff; font-size: 15px; font-weight: bold; margin-bottom: 8px; }
.match-title .live-indicator {
  display: inline-flex; align-items: center; gap: 4px;
  background: #cc0000; color: #fff; padding: 2px 8px;
  border-radius: 3px; font-size: 10px; font-weight: bold;
  margin-right: 8px;
}
.live-dot-sm { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: pulse 1s infinite; }
.score-display { color: #ff9900; font-size: 18px; font-weight: bold; margin: 0 12px; }
.match-details { color: #aaa; font-size: 11px; margin-top: 4px; }

/* ============== QUALITY SELECTOR ============== */
.quality-bar {
  background: #1a1a1a; border: 1px solid #333; border-top: none;
  padding: 8px 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.quality-bar .qlabel { color: #aaa; font-size: 11px; margin-right: 4px; }
.quality-btn {
  background: #333; color: #ccc; border: none; padding: 5px 12px;
  font-size: 11px; cursor: pointer; border-radius: 3px; font-weight: bold;
}
.quality-btn.active { background: #ff6600; color: #fff; }
.quality-btn:hover { background: #444; }
.stream-status { margin-left: auto; font-size: 11px; color: #28a745; }

/* ============== RELATED MATCHES ============== */
.section-title {
  background: linear-gradient(to right, #2b2b2b, #1a1a1a);
  border-left: 4px solid #ff6600;
  padding: 10px 15px; font-size: 14px; font-weight: bold;
  color: #fff; text-transform: uppercase; margin-bottom: 0;
}
.section-title .accent { color: #ff9900; }

.related-list { border: 1px solid #333; border-top: none; }
.related-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-bottom: 1px solid #2a2a2a;
  transition: all .2s;
}
.related-row:hover { background: #2a2a2a; }
.related-row:last-child { border-bottom: none; }
.related-thumb {
  width: 100px; height: 56px; flex-shrink: 0; position: relative;
  overflow: hidden; border-radius: 3px;
}
.related-thumb .rt-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.related-thumb .rt-bg .rt-logo {
  font-size: 18px; font-weight: 900; color: rgba(255,255,255,.95);
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  letter-spacing: 1px; line-height: 1;
}
.related-thumb .rt-bg .rt-league {
  font-size: 6px; color: rgba(255,255,255,.7); text-transform: uppercase;
  letter-spacing: 1.5px; margin-top: 2px;
}
.related-thumb .rt-bg .rt-stadium-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,.15);
}
.related-thumb .rt-bg .rt-stadium-line::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; top: 1px;
  background: repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255,255,255,.1) 3px, rgba(255,255,255,.1) 4px);
}
.related-thumb .rt-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.5) 100%);
}
.related-thumb > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.related-thumb .rt-badge {
  position: absolute; top: 3px; left: 3px; z-index: 2;
  font-size: 9px; font-weight: bold; padding: 2px 5px;
  border-radius: 2px; text-transform: uppercase;
}
.rt-live { background: #cc0000; color: #fff; }
.rt-soon { background: #28a745; color: #fff; }
.rt-ended { background: #555; color: #ccc; }
.related-info { flex: 1; min-width: 0; }
.related-info .ri-teams { color: #fff; font-size: 12px; font-weight: bold; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-info .ri-meta { color: #aaa; font-size: 10px; }
.related-info .ri-score { color: #ff9900; font-size: 13px; font-weight: bold; margin: 3px 0; }
.related-action a {
  background: #ff6600; color: #fff; padding: 5px 10px;
  font-size: 10px; font-weight: bold; border-radius: 3px;
  display: inline-block; white-space: nowrap;
}
.related-action a:hover { background: #ff9900; text-decoration: none; color: #fff; }

/* ============== ARTICLES ============== */
.articles-section {
  padding: 0 0 20px;
}
.articles-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a2a;
}
.articles-section-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.articles-section-header .view-all {
  font-size: 12px;
  color: #ff9900;
  text-decoration: none;
  font-weight: 600;
}
.articles-section-header .view-all:hover {
  color: #ffcc00;
  text-decoration: underline;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 14px 12px;
}
.article-card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s;
}
.article-card:hover {
  border-color: #ff6600;
}
.article-thumb {
  display: block;
  width: 100%;
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: #1a1a1a;
  flex-shrink: 0;
}
.article-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.article-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  color: #666;
  font-size: 13px;
}
.article-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-cat {
  font-size: 9px;
  color: #fff;
  background: #ff6600;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.3;
}
.article-date {
  font-size: 9px;
  color: #777;
  margin-left: 6px;
}
.article-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-title:hover {
  color: #ff6600;
}
.article-excerpt {
  font-size: 10px;
  color: #999;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ============== FOOTER ============== */
.footer {
  background: #0a0a0a; border-top: 3px solid #ff6600;
  padding: 20px 15px; margin-top: 20px;
}
body.index-page .footer {
  margin-top: 15px;
  background: #141414;
}
body.index-page .footer .footer-inner {
  max-width: 1200px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; font-size: 11px; color: #777; }
.footer-inner p { margin-bottom: 5px; }
.footer-bottom { border-top: 1px solid #2a2a2a; padding-top: 12px; margin-top: 12px; }
.footer-links { color:#555; font-size:12px; margin:0; }
.disclaimer {
  background: #111; border: 1px solid #333; padding: 10px;
  font-size: 10px; color: #888; margin-top: 12px; text-align: justify; line-height: 1.6;
}

/* ============== NAV TOGGLE (MOBILE) ============== */
.nav-toggle {
  display: none;
  background: transparent; border: none; cursor: pointer;
  padding: 8px 12px; flex-direction: column; gap: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2.5px; background: #fff;
  border-radius: 1px; transition: all .2s;
  box-shadow: 0 0 2px rgba(0,0,0,.3);
}
/* Lock body scroll when mobile nav is open */
body.nav-open { overflow: hidden; }

/* Hamburger -> X icon when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============== RESPONSIVE ============== */

/* ---- Tablet & below (1024px) ---- */
@media (max-width: 1024px) {
  .container { grid-template-columns: 1fr; }
  .container > aside { display: block; }
  .container > aside .sidebar-widget { margin-bottom: 15px; }
  .container > aside .desktop-ad { grid-column: 1 / -1; }

  /* Index sections — adapt for single-column layout */

  .features-section {
    padding: 20px 16px;
  }
  .features-section h2 {
    font-size: 15px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .feature-card {
    padding: 16px 10px;
  }
  .feature-icon { font-size: 22px; }
  .feature-card h3 { font-size: 12px; }
  .feature-card p { font-size: 10px; }

  .faq-section {
    padding: 20px 16px;
  }
  .faq-section h2 {
    font-size: 15px;
  }
  .faq-item {
    padding: 12px 14px;
  }
}

/* ---- Tablet (768px - 1024px) ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  .navbar-inner { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .navbar-inner::-webkit-scrollbar { display: none; }
  .navbar a { white-space: nowrap; flex-shrink: 0; }
  .related-row { padding: 10px 12px; gap: 12px; }
  .related-thumb { width: 120px; height: 68px; }
  .related-info .ri-teams { font-size: 13px; }
  .related-info .ri-score { font-size: 14px; }
  .quality-bar { gap: 5px; }
  .quality-btn { padding: 5px 10px; font-size: 11px; }
  .stream-status { width: 100%; text-align: right; padding-top: 4px; }
}

/* ---- Mobile (max-width: 768px) ---- */
@media (max-width: 768px) {
  /* Sidebar stacks below content */
  .container > aside .sidebar-widget { margin-bottom: 15px !important; }

  /* --- Top bar --- */
  .topbar { padding: 6px 12px; }
  .topbar-inner { flex-direction: row; justify-content: space-between; flex-wrap: nowrap; align-items: center; gap: 6px; }
  .topbar-left { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
  .topbar-left span { font-size: 10px; margin-right: 8px; white-space: nowrap; }
  .topbar-right { display: flex; align-items: center; }
  .topbar-right a { font-size: 10px; margin-left: 8px; }
  .tg-btn { padding: 4px 8px; font-size: 10px; margin-left: 8px; gap: 4px; }
  .tg-btn svg { width: 11px; height: 11px; }

  /* --- Header & Logo --- */
  .header { padding: 8px 12px; border-bottom-width: 2px; }
  .header-inner { flex-wrap: nowrap; gap: 8px; }
  .logo { gap: 6px; }
  .logo-mark { width: 30px; height: 30px; border-radius: 5px; }
  .logo-text { font-size: 14px; }
  .logo-text small { font-size: 7px; letter-spacing: 1.5px; }
  .live-badge { padding: 4px 8px; font-size: 10px; gap: 4px; border-radius: 4px; }
  .live-dot { width: 6px; height: 6px; }

  /* --- Navbar: hamburger toggle + dropdown --- */
  .nav-toggle { display: flex; align-items: center; justify-content: center; padding: 8px; flex-shrink: 0; }
  .nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 1px; box-shadow: 0 0 2px rgba(0,0,0,.3); }
  .navbar { position: relative; }
  .navbar-inner {
    display: none;
    flex-direction: column;
    width: 100vw;
    max-width: 100%;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2b2b2b;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,.6);
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #555 #2b2b2b;
  }
  .navbar-inner::-webkit-scrollbar { width: 4px; }
  .navbar-inner::-webkit-scrollbar-thumb { background: #555; border-radius: 2px; }
  .navbar-inner.open { display: flex; max-height: 50vh; }
  .navbar-inner a {
    border-right: none;
    border-bottom: 1px solid #383838;
    padding: 13px 16px;
    text-align: left;
    font-size: 13px;
    min-height: 44px; /* touch-friendly */
    display: flex;
    align-items: center;
  }
  .navbar-inner a:first-child { border-top: none; }
  .navbar-inner > a:last-child { border-bottom: none; }
  .navbar-inner a.active { min-height: 48px; }

  /* --- Container — single column, content first, sidebar below --- */
  .container {
    padding: 0 12px;
    margin: 10px auto;
    gap: 0;
    max-width: 100% !important;
  }
  body.index-page .container {
    grid-template-columns: 1fr !important;
    padding: 0 12px !important;
    margin: 10px auto !important;
    gap: 12px !important;
  }
  .container > div:first-child {
    order: 1 !important;
  }
  .container > aside {
    order: 2 !important;
    margin-top: 16px;
  }

  /* --- Hero section --- */
  /* --- Categories: wrapped grid (not horizontal scroll) --- */

  /* --- Features section --- */
  .features-section { padding: 20px 12px; }
  .features-section h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .feature-card {
    padding: 16px 10px !important;
    border-radius: 6px !important;
  }
  .feature-icon { font-size: 22px !important; margin-bottom: 6px !important; }
  .feature-card h3 { font-size: 12px !important; margin: 0 0 5px !important; }
  .feature-card p { font-size: 10px !important; line-height: 1.35 !important; }

  /* --- FAQ section --- */
  .faq-section { padding: 20px 12px; }
  .faq-section h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
  }
  .faq-list { gap: 6px; }
  .faq-item {
    padding: 12px 14px !important;
    border-radius: 6px !important;
  }
  .faq-item h3 { font-size: 13px !important; margin: 0 0 5px !important; }
  .faq-item p { font-size: 11px !important; line-height: 1.45 !important; }

  /* --- Breadcrumb --- */
  .breadcrumb { font-size: 10px; padding: 6px 10px; margin-bottom: 10px; }

  /* --- Player (watch page) --- */
  .player-info-bar { padding: 10px 12px; }
  .match-title { font-size: 13px; display: flex; align-items: center; gap: 5px; }
  .match-title .live-indicator { font-size: 9px; padding: 2px 6px; }
  #matchTitleText { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .score-display { font-size: 15px; margin: 0 6px; }
  .match-details { font-size: 10px; }

  .quality-bar { padding: 8px 10px; gap: 4px; }
  .quality-bar .qlabel { width: 100%; margin-bottom: 2px; }
  .quality-btn { padding: 6px 10px; font-size: 10px; flex: 1 1 auto; min-width: 65px; }
  .stream-status { margin-left: 0; width: 100%; text-align: right; padding-top: 4px; }

  .section-title { font-size: 12px; padding: 8px 12px; }

  /* --- Related matches --- */
  .related-row { padding: 8px 10px; gap: 8px; align-items: center; }
  .related-thumb { width: 80px; height: 45px; }
  .related-info { flex: 1; min-width: 0; }
  .related-info .ri-teams { font-size: 11px; }
  .related-info .ri-score { font-size: 12px; }
  .related-info .ri-meta { font-size: 9px; }
  .related-action { flex-shrink: 0; }
  .related-action a { padding: 4px 10px; font-size: 9px; white-space: nowrap; }

  /* --- Articles --- */
  .articles-section { padding: 16px 0 8px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 14px 10px; }
  .article-thumb { padding-top: 56.25%; }
  .article-body { padding: 8px 10px 10px; gap: 3px; }
  .article-title { font-size: 11px; -webkit-line-clamp: 2; }
  .article-cat { font-size: 9px; }
  .article-excerpt { font-size: 9px; -webkit-line-clamp: 2; }

  /* --- Sidebar widget --- */
  .widget-title { font-size: 11px; padding: 7px 10px; }
  .widget-body ul li a { font-size: 10px; padding: 6px 10px; min-height: 36px; }
  .league-logo { width: 16px; height: 16px; margin-right: 6px; }
  .tag { font-size: 9px; padding: 1px 5px; }

  /* --- Footer --- */
  .footer { padding: 16px 12px; }
  .footer-inner { font-size: 10px; }
  .footer-inner p { font-size: 11px; margin-bottom: 4px; }
  .footer-links { font-size: 11px; }
  .disclaimer { font-size: 9px; padding: 8px; line-height: 1.5; }
}

/* ---- Small mobile (max-width: 480px) ---- */
@media (max-width: 480px) {
  /* Top bar — stack date/time vertically */
  .topbar { padding: 5px 8px; font-size: 10px; }
  .topbar-inner { gap: 4px; flex-wrap: wrap; }
  .topbar-left { gap: 6px; }
  .topbar-left span { font-size: 9px; margin-right: 6px; }
  .topbar-right a { font-size: 9px; margin-left: 6px; }
  .tg-btn { padding: 3px 7px; font-size: 9px; gap: 3px; }
  .tg-btn svg { width: 10px; height: 10px; }

  body { font-size: 12px; }

  /* Header — compact logo */
  .header { padding: 6px 8px; }
  .header-inner { gap: 6px; }
  .logo-mark { width: 28px; height: 28px; }
  .logo-text { font-size: 13px; }
  .logo-text small { display: none; }
  .live-badge { font-size: 9px; padding: 3px 7px; }
  .live-dot { width: 5px; height: 5px; }

  /* Container — single column, content first, sidebar below */
  .container { padding: 0 10px; margin: 8px auto; gap: 0; }
  body.index-page .container {
    grid-template-columns: 1fr !important;
    padding: 0 10px !important;
    margin: 8px auto !important;
    gap: 10px !important;
  }
  .container > div:first-child { order: 1 !important; }
  .container > aside { order: 2 !important; margin-top: 14px; }

  /* Hero — more breathing room */

  /* Categories — 2-column compact grid */

  /* Features — 2-column compact */
  .features-section { padding: 18px 10px; }
  .features-section h2 { font-size: 14px; margin: 0 0 12px; }
  .features-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
  .feature-card { padding: 14px 8px !important; }
  .feature-icon { font-size: 18px !important; margin-bottom: 5px !important; }
  .feature-card h3 { font-size: 11px !important; margin: 0 0 4px !important; }
  .feature-card p { font-size: 10px !important; line-height: 1.3 !important; }

  /* FAQ — tighter spacing */
  .faq-section { padding: 18px 10px; }
  .faq-section h2 { font-size: 14px; margin: 0 0 10px; }
  .faq-item { padding: 10px 12px !important; }
  .faq-item h3 { font-size: 12px !important; margin: 0 0 4px !important; }
  .faq-item p { font-size: 11px !important; line-height: 1.4 !important; }

  /* Articles — tighter compact */
  .articles-section { padding: 16px 10px 8px; }
  .articles-section-header { flex-direction: column; align-items: flex-start; gap: 4px; }
  .articles-section-header h2 { font-size: 14px; padding: 0 12px 10px; margin: 0; }
  .articles-section-header .view-all { font-size: 11px; padding: 0 12px 10px; margin: 0; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 0 12px 8px; }
  .article-body { padding: 6px 8px 8px; }
  .article-title { font-size: 10px; }
  .article-cat { font-size: 8px; }
  .article-excerpt { font-size: 8px; }

  /* Related matches — compact inline layout */
  .related-row { flex-wrap: nowrap; padding: 6px 8px; gap: 6px; align-items: center; }
  .related-thumb { width: 70px; height: 40px; flex-shrink: 0; }
  .related-info { flex: 1; min-width: 0; }
  .related-info .ri-teams { font-size: 10px; }
  .related-info .ri-score { font-size: 11px; }
  .related-info .ri-meta { font-size: 8px; }
  .related-action { flex-shrink: 0; }
  .related-action a { font-size: 8px; padding: 3px 8px; white-space: nowrap; border-radius: 2px; }

  /* Player — compact */
  .player-info-bar { padding: 8px 10px; }
  .match-title { font-size: 12px; }
  .score-display { font-size: 14px; }
  .quality-btn { font-size: 9px; padding: 5px 7px; min-width: 55px; }

  /* Footer */
  .footer { padding: 14px 10px; }
  .footer-inner p { font-size: 10px; }
  .footer-links { font-size: 10px; }
  .disclaimer { font-size: 9px; padding: 8px; }

  /* Widget */
  .widget-title { font-size: 11px; padding: 6px 8px; }
  .widget-body ul li a { font-size: 10px; padding: 5px 8px; }
  .league-logo { width: 15px; height: 15px; }
}

/* ---- Very small screens (≤360px) --- */
@media (max-width: 360px) {
  .topbar { padding: 4px 6px; font-size: 9px; }
  .topbar-inner { flex-direction: column; align-items: center; gap: 3px; }
  .topbar-left span { font-size: 8px; }
  .topbar-right a { font-size: 8px; }
  .tg-btn { font-size: 8px !important; padding: 3px 6px !important; gap: 3px !important; }
  .tg-btn svg { width: 9px; height: 9px; }

  .header { padding: 5px 6px; }
  .header-inner { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .logo { flex-direction: column; text-align: center; gap: 4px; }
  .logo-mark { width: 26px; height: 26px; }
  .logo-text { font-size: 12px; }
  .live-badge { display: none; }

  .container { padding: 0 8px; margin: 6px auto; gap: 0; }
  body.index-page .container {
    grid-template-columns: 1fr !important;
    padding: 0 8px !important;
    margin: 6px auto !important;
    gap: 8px !important;
  }
  .container > div:first-child { order: 1 !important; }
  .container > aside { order: 2 !important; margin-top: 12px; }

  .nav-toggle span { width: 18px; height: 2px; background: #fff; border-radius: 1px; box-shadow: 0 0 2px rgba(0,0,0,.3); }
  .navbar-inner a { padding: 11px 12px; font-size: 12px; }

  /* Hero */

  /* Categories — 2-column tiny grid */

  /* Features — single column */
  .features-section { padding: 14px 8px; }
  .features-section h2 { font-size: 13px; margin: 0 0 10px; }
  .features-grid { grid-template-columns: 1fr !important; gap: 6px !important; }
  .feature-card { padding: 14px 10px !important; }
  .feature-icon { font-size: 16px !important; }
  .feature-card h3 { font-size: 12px !important; }
  .feature-card p { font-size: 10px !important; }

  /* FAQ */
  .faq-section { padding: 14px 8px; }
  .faq-section h2 { font-size: 13px; margin: 0 0 8px; }
  .faq-item { padding: 10px !important; }
  .faq-item h3 { font-size: 12px !important; margin: 0 0 4px !important; }
  .faq-item p { font-size: 10px !important; }

  /* Footer */
  .footer { padding: 12px 8px; }
  .footer-inner p { font-size: 9px; }
  .footer-links { font-size: 9px; }
  .disclaimer { font-size: 8px; padding: 6px; }

  /* Widget */
  .widget-title { font-size: 10px; padding: 5px 6px; }
  .widget-body ul li a { font-size: 9px; padding: 4px 6px; }
  .league-logo { width: 13px; height: 13px; }
}

/* ===== LOGIN MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 9999;
  justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 8px;
  padding: 30px; width: 90%; max-width: 380px; position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.modal-close {
  position: absolute; top: 12px; right: 16px; color: #888; font-size: 22px;
  cursor: pointer; background: none; border: none; line-height: 1;
}
.modal-close:hover { color: #ff9900; }
.modal-title { text-align: center; font-size: 20px; font-weight: bold; color: #fff; margin-bottom: 20px; }
.modal-title span { color: #ff9900; }
.modal-input {
  width: 100%; padding: 10px 12px; margin-bottom: 12px; background: #2a2a2a; border: 1px solid #333;
  border-radius: 4px; color: #fff; font-size: 14px; outline: none; box-sizing: border-box;
}
.modal-input:focus { border-color: #ff9900; }
.modal-submit {
  width: 100%; padding: 10px; background: #ff9900; color: #000; font-weight: bold; font-size: 14px;
  border: none; border-radius: 4px; cursor: pointer; margin-top: 4px;
}
.modal-submit:hover { background: #ffaa33; }
.login-warning { background:#3a1414; color:#ff6b6b; border:1px solid #6b2020; padding:8px 10px; border-radius:4px; font-size:12px; margin-bottom:10px; display:none; }
.replay-notice { background:#1f2a3a; color:#7dd3fc; border:1px solid #2d4a6b; padding:8px 10px; border-radius:4px; font-size:12px; margin-bottom:12px; text-align:center; }
.login-warning.warn-invalid { background:#3a2814; color:#ffb84d; border-color:#6b4920; }
.login-warning.warn-unregistered { background:#3a1414; color:#ff6b6b; border-color:#6b2020; }
.modal-link { text-align: center; margin-top: 14px; color: #888; font-size: 12px; }
.modal-link a { color: #ff9900; text-decoration: none; }
.modal-link a:hover { text-decoration: underline; }

/* =============================================================================
   Content page (DMCA / Privacy / Contact) — single-column, no sidebar
   ============================================================================= */
.page-wrap { max-width: 900px; margin: 20px auto; padding: 0 15px; }
.page-card { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 6px; padding: 28px 32px; color: #d0d0d0; line-height: 1.7; }
.page-card h1 { color: #ff9900; font-size: 26px; margin: 0 0 6px 0; padding-bottom: 12px; border-bottom: 1px solid #2a2a2a; }
.page-card .page-meta { color: #888; font-size: 12px; margin-bottom: 22px; }
.page-card h2 { color: #fff; font-size: 18px; margin: 26px 0 10px 0; }
.page-card h3 { color: #ffaa55; font-size: 15px; margin: 18px 0 8px 0; }
.page-card p { margin: 0 0 12px 0; }
.page-card ul, .page-card ol { margin: 8px 0 14px 0; padding-left: 22px; }
.page-card li { margin-bottom: 6px; }
.page-card a { color: #ff9900; }
.page-card a:hover { text-decoration: underline; }
.page-card strong { color: #fff; }
.page-card .last-updated { color: #888; font-style: italic; font-size: 12px; margin-top: 30px; padding-top: 14px; border-top: 1px solid #2a2a2a; }

/* Contact form */
.contact-form { margin-top: 18px; }
.contact-form .form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.contact-form label { color: #fff; font-size: 13px; font-weight: 600; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  background: #0e0e0e;
  border: 1px solid #333;
  border-radius: 4px;
  color: #e0e0e0;
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: #ff9900; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  background: #ff9900;
  color: #000;
  font-weight: bold;
  font-size: 14px;
  padding: 11px 22px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.contact-form button:hover { background: #ffaa33; }
.contact-form button:disabled { background: #555; color: #999; cursor: not-allowed; }
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 16px 0 24px 0; }
.contact-info-card { background: #0e0e0e; border: 1px solid #2a2a2a; border-radius: 4px; padding: 16px 18px; }
.contact-info-card h3 { color: #ff9900; margin: 0 0 6px 0; font-size: 14px; }
.contact-info-card p { margin: 0; font-size: 13px; color: #b8b8b8; word-break: break-word; }
.contact-info-card a { color: #ff9900; }
.contact-form-status { display: none; padding: 10px 12px; border-radius: 4px; margin: 12px 0; font-size: 13px; }
.contact-form-status.success { display: block; background: #14361b; color: #7be58a; border: 1px solid #2a6b32; }
.contact-form-status.error { display: block; background: #3a1414; color: #ff8b8b; border: 1px solid #6b2020; }

/* Standalone contact form fields (non-nested in .contact-form) */
.contact-label { display: block; color: #e0e0e0; font-size: 14px; font-weight: 600; margin: 12px 0 4px 0; }
.contact-input { width: 100%; padding: 10px 12px; background: #0e0e0e; border: 1px solid #333; border-radius: 4px; color: #e0e0e0; font: inherit; font-size: 14px; box-sizing: border-box; }
.contact-input:focus { outline: none; border-color: #ff9900; }
.contact-textarea { min-height: 120px; resize: vertical; }
.contact-submit { background: #ff9900; color: #000; font-weight: bold; font-size: 14px; padding: 11px 22px; border: none; border-radius: 4px; cursor: pointer; margin-top: 6px; }
.contact-submit:hover { background: #ffaa33; }
.contact-submit:disabled { background: #555; color: #999; cursor: not-allowed; }
.page-note { color: #888; font-size: 12px; margin-top: 16px; }

/* =========================
   INDEX.PAGE — HOMEPAGE
   ========================= */

/* Index sections: contained within left column */
body.index-page .articles-section,
body.index-page .features-section,
body.index-page .faq-section {
  width: 100%;
  margin-left: 0;
  overflow-x: hidden;
}


/* Features Section — tight grid */
.features-section {
  padding: 24px 15px;
  background: #0e0e0e;
}
.features-section h2 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.feature-card {
  background: #141414;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 20px 14px;
  text-align: center;
  transition: border-color .2s ease, transform .2s ease;
}
.feature-card:hover {
  border-color: #333;
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 24px;
  color: #ff9900;
  margin-bottom: 8px;
}
.feature-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.feature-card p {
  font-size: 11px;
  color: #999;
  margin: 0;
  line-height: 1.4;
}

/* FAQ Section — accordion style */
.faq-section {
  padding: 24px 15px;
  background: #141414;
}
.faq-section h2 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: #0e0e0e;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 14px 16px;
}
.faq-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: #ff9900;
  margin: 0 0 6px;
}
.faq-item p {
  font-size: 12px;
  color: #bbb;
  margin: 0;
  line-height: 1.5;
}


