/*
Theme Name: VeloRemote
Theme URI: https://veloremote.com
Author: VeloRemote Team
Author URI: https://veloremote.com
Description: Professional, fast, and secure WordPress theme for live football streaming. Features bilingual support (Arabic/English with RTL), dark/light mode, and OWASP-compliant security.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: veloremote
Tags: sports, streaming, football, rtl-language-support, dark-mode, responsive
*/

/* ========================================
   CSS VARIABLES & DESIGN TOKENS
======================================== */
:root {
  /* Light Mode Colors */
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;

  /* Accent Colors */
  --accent-primary: #e53e3e;
  --accent-hover: #c53030;
  --accent-gradient: linear-gradient(135deg, #e53e3e 0%, #fc8181 100%);

  /* Status Colors */
  --status-live: #e53e3e;
  --status-upcoming: #3182ce;
  --status-finished: #718096;

  /* UI Elements */
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 20px rgba(229, 62, 62, 0.15);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: 'Cairo', 'Tajawal', sans-serif;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-primary: #0f1419;
  --bg-secondary: #1a1f2e;
  --bg-card: #1e2433;
  --text-primary: #f7fafc;
  --text-secondary: #cbd5e0;
  --text-muted: #a0aec0;
  --border-color: #2d3748;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
}

/* ========================================
   RESET & BASE STYLES
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-base), color var(--transition-base);
}

body.rtl {
  direction: rtl;
  font-family: var(--font-arabic);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ========================================
   LAYOUT COMPONENTS
======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-xl) 0;
}

/* ========================================
   HEADER
======================================== */
.site-header {
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-base);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: transform var(--transition-fast);
}

.site-logo:hover {
  transform: scale(1.02);
}

.logo-image {
  height: 40px;
  width: 40px;
  /* SVG handles its own colors */
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: var(--spacing-xs);
  background-color: var(--bg-primary);
  padding: var(--spacing-xs);
  border-radius: var(--radius-md);
}

.lang-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn:hover {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.lang-btn.active {
  background-color: var(--accent-primary);
  color: white;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--accent-primary);
  color: white;
  transform: rotate(15deg);
}

/* Telegram Button */
.telegram-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.telegram-btn:hover {
  background-color: #0088cc;
  color: white;
  transform: scale(1.1);
}

/* ========================================
   MATCH SCHEDULE SECTION
======================================== */
.matches-section {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Match Tabs */
.match-tabs {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  box-shadow: var(--shadow-hover);
}

/* Match Grid */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
}

/* Match Card */
.match-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.match-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.match-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-primary);
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.match-card:hover::before {
  opacity: 1;
}

/* Match Card Link Overlay */
.match-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

/* Match Main Row */
.match-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  position: relative;
}

/* Team Row Layouts */
.team-home,
.team-away {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  width: 35%;
  flex-shrink: 0;
}

.team-home {
  flex-direction: row !important;
  justify-content: flex-start;
}

.team-away {
  flex-direction: row !important;
  justify-content: flex-start;
}

/* Team Logo */
.team-logo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.team-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf2f7;
  font-size: 28px;
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
}

[data-theme="dark"] .team-logo-placeholder {
  background: var(--bg-secondary);
}

/* Team Name */
.team-name {
  font-weight: 700;
  font-size: 1.15rem;
}

/* Match Center Info */
.match-center-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}

/* Match Score */
.match-score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
}

/* Score Separator */
.score-separator {
  color: var(--text-muted);
}

/* Status Badge */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.status-badge.status-live {
  background-color: var(--status-live);
  animation: pulse 2s infinite;
}

.status-badge.status-upcoming {
  background-color: var(--status-upcoming);
}

.status-badge.status-finished {
  background-color: var(--status-finished);
}

.status-badge.status-halftime {
  background-color: #f59e0b;
}

/* Match Info Bar */
.match-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-primary);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Ad Banners */
.ad-banner {
  text-align: center;
  padding: 10px;
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
}

.ad-banner-top {
  margin-bottom: 1.5rem;
}

.ad-banner-bottom {
  margin-top: 1.5rem;
}

.ad-banner-article {
  margin: 2rem 0;
}

/* Match Header */
.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.league-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.league-icon {
  width: 20px;
  height: 20px;
}

/* Match Status Badge */
.match-status {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-live {
  background-color: var(--status-live);
  color: white;
  animation: pulse 2s infinite;
}

.status-upcoming {
  background-color: var(--status-upcoming);
  color: white;
}

.status-finished {
  background-color: var(--status-finished);
  color: white;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}



/* Match Footer */
.match-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.match-time {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.channel-name {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Watch Button */
.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.watch-btn:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.rtl .watch-btn:hover {
  transform: translateX(-4px);
}

/* ========================================
   SINGLE MATCH PAGE
======================================== */
.match-page {
  padding: var(--spacing-xl) 0;
}

.match-hero {
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

.match-hero-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.hero-team-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.hero-team-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-score {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.hero-vs {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Video Player */
.video-player-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-xl);
}

.video-player {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Match Details */
.match-details {
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.detail-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ========================================
   NEWS SECTION
======================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

/* News Card Design - Distinct from Matches */
.news-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Uniform height */
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-color);
  /* No accent border like matches */
}

.news-image {
  width: 100%;
  height: 220px;
  /* Taller image for news */
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-image {
  transform: scale(1.03);
  /* Subtle zoom */
}

.news-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.5px;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
  color: var(--text-primary);
}

.news-title a:hover {
  color: var(--accent-primary);
}

.news-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.read-more {
  color: var(--accent-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition-fast);
}

.read-more:hover {
  gap: 0.5rem;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background-color: var(--bg-secondary);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  text-align: center;
  color: var(--text-muted);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.footer-text {
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.mt-4 {
  margin-top: var(--spacing-xl);
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

.mb-4 {
  margin-bottom: var(--spacing-xl);
}

.hidden {
  display: none;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(229, 62, 62, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-primary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* ========================================
   HORIZONTAL MATCH CARD (LIST VIEW)
======================================== */

.matches-grid {
  grid-template-columns: 1fr !important;
  gap: var(--spacing-md);
}

.match-card {
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.match-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

/* Link covering the whole card */
.match-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

/* Main Row: Teams and Score */
.match-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) var(--spacing-md);
  position: relative;
}

/* Team Styling */
.team {
  flex-direction: row !important;
  gap: var(--spacing-md);
  width: 35%;
}

.team-home {
  justify-content: flex-start;
}

.team-away {
  justify-content: flex-start;
  flex-direction: row !important;
}

.team-logo {
  width: 45px !important;
  height: 45px !important;
}

.team-name {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Center Score & Status */
.match-center-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  min-width: 120px;
}

.match-score {
  font-size: 1.8rem !important;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 !important;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: white;
  font-weight: bold;
}

.status-live {
  background-color: #e53e3e;
}

.status-upcoming {
  background-color: #3182ce;
}

.status-finished {
  background-color: #718096;
}

.status-halftime {
  background-color: #d69e2e;
}

/* Bottom Info Bar */
.match-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f7fafc;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

[data-theme="dark"] .match-info-bar {
  background-color: rgba(255, 255, 255, 0.05);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* Schedule Match Cards */
#scheduleGrid {
  display: none;
  gap: 20px !important;
  grid-template-columns: repeat(3, 1fr) !important;
}

.schedule-match-card {
  display: block;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.schedule-match-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(233, 69, 96, 0.2);
  border-color: #e74c3c;
}

.schedule-match-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ad Banner responsive */
.ad-banner {
  overflow: hidden;
}

.ad-banner img,
.ad-banner iframe {
  max-width: 100%;
  height: auto;
}

/* ========================================
   RESPONSIVE DESIGN — TABLET (≤1024px)
======================================== */
@media (max-width: 1024px) {
  #scheduleGrid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   RESPONSIVE DESIGN — MOBILE (≤768px)
======================================== */
@media (max-width: 768px) {

  /* Header */
  .header-container {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .site-logo {
    font-size: 1.2rem;
  }

  .logo-image {
    width: 32px;
    height: 32px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  /* Tabs: horizontal scrollable */
  .tabs,
  .match-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px !important;
    justify-content: flex-start !important;
    padding-bottom: 4px;
  }

  .tabs::-webkit-scrollbar,
  .match-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Section Title */
  .section-title {
    font-size: 1.5rem;
  }

  /* Schedule Grid */
  #scheduleGrid {
    grid-template-columns: 1fr !important;
  }

  /* Match Card — Mobile */
  .match-main-row {
    padding: 12px 14px;
  }

  .team {
    width: auto;
    gap: 8px;
  }

  .team-logo {
    width: 36px !important;
    height: 36px !important;
  }

  .team-name {
    font-size: 0.85rem;
  }

  .match-center-info {
    min-width: 80px;
  }

  .match-score {
    font-size: 1.4rem !important;
  }

  .status-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  /* Info Bar */
  .match-info-bar {
    padding: 6px 14px;
    font-size: 0.75rem;
  }

  .info-item {
    gap: 4px;
  }

  .info-icon {
    width: 14px;
    height: 14px;
  }

  /* Single Match Page */
  .match-hero {
    padding: var(--spacing-md);
  }

  .match-hero-teams {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .hero-team {
    flex-direction: row;
    gap: var(--spacing-md);
  }

  .hero-team-logo {
    width: 60px;
    height: 60px;
  }

  .hero-team-name {
    font-size: 1.125rem;
  }

  .hero-score {
    font-size: 2rem;
  }

  .hero-vs {
    font-size: 1rem;
  }

  /* Video Player */
  .video-player-container {
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
  }

  /* Match Details */
  .match-details {
    padding: var(--spacing-md);
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  /* News */
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-image {
    height: 180px;
  }

  /* Footer */
  .site-footer {
    padding: var(--spacing-md) 0;
  }

  /* Section spacing */
  .section {
    padding: var(--spacing-md) 0;
  }
}

/* ========================================
   RESPONSIVE DESIGN — SMALL PHONE (≤480px)
======================================== */
@media (max-width: 480px) {

  /* Container */
  .container {
    padding: 0 var(--spacing-sm);
  }

  /* Header */
  .header-container {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .site-logo {
    font-size: 1rem;
    gap: 6px;
  }

  .logo-image {
    width: 28px;
    height: 28px;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  /* Section title */
  .section-title {
    font-size: 1.25rem;
  }

  /* Tab buttons */
  .tab-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  /* Match Card — Compact */
  .match-main-row {
    padding: 10px 10px;
  }

  .team {
    gap: 6px;
  }

  .team-logo {
    width: 28px !important;
    height: 28px !important;
  }

  .team-name {
    font-size: 0.75rem;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-center-info {
    min-width: 60px;
  }

  .match-score {
    font-size: 1.2rem !important;
    letter-spacing: 1px;
  }

  .status-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  /* Info Bar */
  .match-info-bar {
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  .info-icon {
    width: 12px;
    height: 12px;
  }

  /* Single Match Page */
  .hero-team-logo {
    width: 48px;
    height: 48px;
  }

  .hero-team-name {
    font-size: 1rem;
  }

  .hero-score {
    font-size: 1.75rem;
  }

  .match-hero {
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
  }

  .match-details {
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
  }

  .detail-value {
    font-size: 1rem;
  }

  /* News */
  .news-content {
    padding: var(--spacing-md);
  }

  .news-title {
    font-size: 1.1rem;
  }

  .news-image {
    height: 150px;
  }
}