/* =============================================================
   SPZ Sports — Responsive Styles
   ============================================================= */

/* ---- Large Desktop: ≤ 1280px ---- */
@media (max-width: 1280px) {
  .spz-container { padding: 0 16px; }
  .nav-menu li a { font-size: 13px; padding: 6px 10px; }
}

/* ---- Tablet: ≤ 1024px ---- */
@media (max-width: 1024px) {
  /* Layout */
  .spz-content-wrap { grid-template-columns: 1fr 260px; gap: 18px; }

  /* Header */
  .nav-menu li a { font-size: 12px; padding: 5px 8px; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 16px; }
  .hero-fixtures { display: none; }
  .hero-featured { min-height: 280px; }

  /* News */
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .news-card-featured { grid-column: span 2; }
  .ng-top-row { grid-template-columns: 3fr 2fr; gap: 14px; }
  .ng-bottom-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .ng-featured-img,
  .ng-featured { min-height: 280px; }

  /* Stat boxes */
  .stat-boxes { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-widgets-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ---- Mobile Landscape / Small Tablet: ≤ 768px ---- */
@media (max-width: 768px) {
  /* === HEADER === */
  .spz-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .topbar-left { display: none; }
  .topbar-right { font-size: 11px; gap: 10px; }
  .header-inner { height: 56px; gap: 12px; }
  .spz-logo .custom-logo,
  .spz-logo img { height: 42px; max-width: 130px; }

  /* === LAYOUT === */
  .spz-content-wrap { grid-template-columns: 1fr; gap: 16px; padding: 16px 0; }
  .spz-sidebar { display: none; }

  /* === TICKER === */
  .spz-live-ticker { display: none; }

  /* === HERO === */
  .spz-hero { padding: 20px 0; }
  .hero-featured { min-height: 230px; }
  .hero-featured-title { font-size: 17px; }
  .hero-featured-overlay { padding: 16px 14px; }

  /* === NEWS GRID === */
  .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .news-card-featured { grid-column: span 1; }
  .news-card-featured .news-card-img img { height: 200px; }
  .news-card-img img { height: 170px; }
  /* New ng- layout: stack on mobile */
  .ng-top-row { grid-template-columns: 1fr; gap: 12px; }
  .ng-featured,
  .ng-featured-img { min-height: 240px; }
  .ng-side-stack { flex-direction: row; gap: 12px; }
  .ng-side-item { flex-direction: column; flex: 1; }
  .ng-side-img { width: 100%; min-height: 130px; }
  .ng-bottom-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* === SCORE ROW === */
  .score-row { padding: 8px 10px; gap: 4px; }
  .score-row-team { font-size: 11.5px; gap: 5px; }
  .score-main { font-size: 15px; }
  .score-center { min-width: 64px; }
  .team-logo-sm { width: 18px; height: 18px; }

  /* === MATCH CARD === */
  .match-teams-row { gap: 6px; padding: 12px 10px; }
  .match-team-name { font-size: 12.5px; }
  .match-score-main { font-size: 22px; }
  .match-time-kickoff { font-size: 18px; }
  .match-team img { width: 34px; height: 34px; }
  .match-team-logo-placeholder { width: 34px; height: 34px; font-size: 14px; }

  /* === STANDINGS TABLE === */
  .standings-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .standings-table { font-size: 12px; min-width: 340px; }
  .standings-table th,
  .standings-table td { padding: 7px 5px; }
  .hide-mobile { display: none !important; }
  .standings-team { gap: 6px; }
  .standings-team img { width: 16px; height: 16px; }

  /* === STATS TABLE === */
  .stats-table { font-size: 12px; min-width: 400px; }
  .stat-boxes { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-box { padding: 14px 10px; }
  .stat-box-val { font-size: 26px; }
  .player-cell img { width: 28px; height: 28px; }
  .player-cell-info .name { font-size: 12.5px; }
  .player-cell-info .team { font-size: 11px; }

  /* === SCHEDULE FILTERS === */
  .schedule-filters { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .schedule-filters select,
  .schedule-filters input[type="date"] { width: 100%; }
  .date-tab-btn { font-size: 12px; padding: 6px 10px; }

  /* === TEAM / PLAYER HEADERS === */
  .team-header { padding: 24px 0; }
  .team-header-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .team-logo-lg { width: 72px; height: 72px; }
  .team-info h1 { font-size: 22px; }
  .team-info .team-meta { flex-wrap: wrap; gap: 10px; }

  .player-header { padding: 24px 0; }
  .player-header-inner { flex-direction: column; gap: 14px; }
  .player-photo { width: 90px; height: 115px; }
  .player-photo-placeholder { width: 90px; height: 115px; }
  .player-info h1 { font-size: 22px; }
  .player-stats-bar { gap: 12px; flex-wrap: wrap; }
  .player-stat-item .val { font-size: 20px; }

  /* === PAGE HERO === */
  .page-hero { padding: 20px 0; }
  .page-hero h1 { font-size: 20px; }
  .page-hero p { font-size: 13px; }

  /* === PREDICTIONS === */
  .prediction-teams { gap: 10px; }
  .prediction-team-name { font-size: 14px; }
  .odds-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .odds-value { font-size: 13px; }

  /* === SQUAD GRID === */
  .squad-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  .player-card-img,
  .player-card-img-placeholder { height: 110px; }

  /* === SINGLE ARTICLE === */
  .article-title { font-size: 22px; }
  .article-content { font-size: 14.5px; }

  /* === FOOTER === */
  .footer-widgets { padding: 32px 0 20px; }
  .footer-widgets-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
  .footer-legal-menu { justify-content: center; flex-wrap: wrap; gap: 10px; }
  .footer-social { justify-content: flex-start; }

  /* === TABS === */
  .spz-tabs { flex-wrap: wrap; gap: 0; }
  .spz-tab-btn { font-size: 12.5px; padding: 8px 12px; }
}

/* ---- Small Mobile: ≤ 480px ---- */
@media (max-width: 480px) {
  .spz-container { padding: 0 10px; }

  /* Header */
  .spz-logo .custom-logo,
  .spz-logo img { height: 36px; max-width: 110px; }
  .spz-logo .logo-text { font-size: 22px; }
  .search-toggle { padding: 6px 8px; font-size: 16px; }

  /* Hero */
  .hero-featured { min-height: 190px; }
  .hero-featured-title { font-size: 15px; }

  /* News */
  .news-card-img img,
  .news-card-featured .news-card-img img { height: 155px; }
  .news-card-title { font-size: 13.5px; }
  .news-list-img { width: 72px; height: 52px; }
  .ng-side-stack { flex-direction: column; }
  .ng-side-item { flex-direction: row; }
  .ng-side-img { width: 100px; min-height: 90px; }
  .ng-bottom-row { grid-template-columns: 1fr; }
  .ng-featured-title { font-size: 16px; }
  .ng-card-title { font-size: 13.5px; }

  /* Score row — most critical on small screens */
  .score-row { grid-template-columns: 1fr 58px 1fr; padding: 7px 8px; }
  .score-row-team { font-size: 10.5px; gap: 3px; }
  .team-logo-sm { width: 14px; height: 14px; }
  .score-main { font-size: 13px; }
  .score-center { min-width: 58px; }

  /* Match card */
  .match-team img { width: 28px; height: 28px; }
  .match-team-name { font-size: 11.5px; }
  .match-score-main { font-size: 20px; }
  .match-time-kickoff { font-size: 16px; }

  /* Stat boxes */
  .stat-box-val { font-size: 24px; }
  .stat-box-lbl { font-size: 10px; }

  /* Page hero */
  .page-hero h1 { font-size: 17px; }
  .page-hero-breadcrumb { font-size: 11px; }

  /* Section titles */
  .spz-section-title { font-size: 15px; }
  .spz-section-title a { font-size: 12px; }

  /* Team header */
  .team-info h1 { font-size: 19px; }

  /* Player header */
  .player-info h1 { font-size: 19px; }
  .player-stat-item .val { font-size: 18px; }
  .player-stat-item .lbl { font-size: 9px; }

  /* Article */
  .article-title { font-size: 19px; }
  .article-content { font-size: 14px; }

  /* Footer */
  .footer-logo .logo-text { font-size: 22px; }

  /* Predictions archive — 1 col on small screens */
  div[style*="grid-template-columns:repeat(2"] { grid-template-columns: 1fr !important; }

  /* Odds */
  .odds-value { font-size: 12px; }
  .odds-label { font-size: 10px; }
}

/* ---- Extra Small: ≤ 360px ---- */
@media (max-width: 360px) {
  .spz-container { padding: 0 8px; }
  .header-inner { gap: 8px; }
  .spz-logo .custom-logo,
  .spz-logo img { height: 32px; max-width: 95px; }
  .score-row { grid-template-columns: 1fr 52px 1fr; padding: 6px; }
  .score-row-team { font-size: 10px; }
  .score-main { font-size: 12px; }
  .match-team-name { font-size: 11px; }
  .match-score-main { font-size: 18px; }
}

/* ---- Print ---- */
@media print {
  .spz-header, .spz-topbar, .spz-live-ticker, .spz-sidebar, .spz-footer { display: none; }
  .spz-content-wrap { grid-template-columns: 1fr; }
  body { background: #fff; }
}
