:root {
  --primary-color: #1e40af;
  --primary-hover: #1e3a8a;
  --secondary-color: #3b82f6;
  --accent-color: #60a5fa;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #f9fafb;
  --bg-white: #ffffff;
  --bg-gray: #f3f4f6;
  --bg-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  direction: rtl;
  text-align: right;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--bg-gradient);
  color: white;
  padding: 3rem 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.header__title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  letter-spacing: -0.5px;
}

.header__subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  position: relative;
  font-weight: 400;
}

/* Notice Banner */
.notice-banner {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #b45309;
}

.notice-banner__text {
  color: white;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin: 0;
  direction: rtl;
}

/* Main Content */
.main {
  padding: 2rem 0 4rem;
}

/* Search Section */
.search-section {
  margin-bottom: 2rem;
  position: relative;
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1.125rem 3.5rem 1.125rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  background-color: var(--bg-white);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), var(--shadow);
  transform: translateY(-1px);
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.625rem;
  border-radius: 8px;
  transition: var(--transition);
}

.search-btn:hover {
  color: var(--secondary-color);
  background-color: var(--bg-gray);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 10;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 4px;
}

.suggestion-item {
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  font-size: 0.95rem;
}

.suggestion-item:hover {
  background-color: var(--bg-gray);
  padding-right: 1.5rem;
}

.suggestion-item:last-child {
  border-bottom: none;
}

/* Sort Section */
.sort-section {
  margin-bottom: 2rem;
}

.sort-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto;
}

.sort-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.sort-select {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-white);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}

.sort-select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sort-select:hover {
  border-color: var(--secondary-color);
  box-shadow: var(--shadow);
}

/* Filters Section */
.filters-section {
  margin-bottom: 2rem;
}

.filters {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.filter-select {
  flex: 1;
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-white);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.filter-select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-select:hover {
  border-color: var(--accent-color);
}

/* Results Section */
.results-section {
  margin-top: 2rem;
}

.results-count {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.loading {
  text-align: center;
  padding: 3rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-left: 4px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-message {
  text-align: center;
  padding: 2rem;
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

/* Stadiums Grid */
.stadiums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
}

.stadium-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  direction: rtl;
  text-align: right;
  border: 1px solid var(--border-color);
}

.stadium-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

.stadium-card {
  display: flex;
  align-items: stretch;
}

.stadium-card__logos {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-left: 3px solid var(--accent-color);
  min-width: 80px;
}

.team-logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  transition: all 0.2s;
}

.clickable-logo {
  cursor: pointer;
  border: 2px solid transparent;
}

.clickable-logo:hover {
  transform: scale(1.15);
  border-color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.stadium-card__content {
  padding: 1.75rem;
  flex: 1;
}

.stadium-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  text-align: right;
  letter-spacing: -0.3px;
}

.stadium-card__subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  text-align: right;
  font-weight: 500;
}

.stadium-card__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
}

.stadium-card__info-item {
  display: flex;
  flex-direction: column;
}

.stadium-card__teams-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.team-name-item {
  background: var(--accent-color);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.stadium-card__info-label {
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.stadium-card__info-value {
  color: var(--text-color);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-hover);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-gray);
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-light);
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--primary-color);
  color: white;
  transform: rotate(90deg);
}

.modal-stadium {
  padding: 2rem;
  direction: rtl;
  text-align: right;
}

.modal-stadium__header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-left: 60px;
  padding-right: 60px;
}

.modal-stadium__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--primary-color);
  text-align: center;
}

.modal-stadium__subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  text-align: right;
}

.modal-stadium__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-stadium__detail {
  background: var(--bg-gray);
  padding: 1rem;
  border-radius: var(--border-radius);
  direction: rtl;
  text-align: right;
}

.modal-stadium__detail-label {
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: right;
}

.modal-stadium__detail-value {
  font-size: 1.1rem;
  color: var(--text-color);
}

.modal-stadium__description {
  background: var(--bg-gray);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--bg-gray);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .header__title {
    font-size: 2rem;
  }
  
  .header__subtitle {
    font-size: 1rem;
  }
  
  .stadiums-grid {
    grid-template-columns: 1fr;
  }
  
  .filters {
    flex-direction: column;
  }
  
  .stadium-card {
    flex-direction: column;
  }
  
  .stadium-card__logos {
    flex-direction: row;
    border-left: none;
    border-bottom: 3px solid var(--accent-color);
    padding: 1rem;
    min-width: auto;
  }
  
  .team-logo-icon {
    width: 36px;
    height: 36px;
  }
  
  .modal {
    padding: 1rem;
  }
  
  .modal-stadium {
    padding: 1.5rem;
  }
  
  .modal-stadium__title {
    font-size: 1.5rem;
  }
  
  .modal-stadium__details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1.5rem 0;
  }
  
  .main {
    padding: 1.5rem 0 3rem;
  }
  
  .search-input {
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    font-size: 1rem;
  }
  
  .stadium-card__content {
    padding: 1.25rem;
  }
}

/* Teams styling for grouped stadiums */
.stadium-teams {
  font-size: 0.85rem;
  line-height: 1.4;
}

.teams-list-display {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.teams-list-display .team-tag {
  background: var(--primary-color);
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.team-tag {
  background: var(--accent-color);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 4px 2px 0;
}

.team-tag-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
}

.teams-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.teams-container .team-tag {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.teams-container .team-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Enhanced Features Styles */
.tab-buttons {
    display: flex;
    gap: 2px;
    margin-bottom: 0;
    background: #f1f1f1;
    border-radius: 8px 8px 0 0;
    direction: rtl;
}

.tab-button {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-light);
    text-align: center;
    font-size: 0.95rem;
}

.tab-button.active {
    background: var(--bg-white);
    border-bottom: 3px solid var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.tab-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-color);
}

.tab-content {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    border: 1px solid var(--border-color);
    border-top: none;
    direction: rtl;
    text-align: right;
}

.tab-content.active {
    display: block;
}

.nearby-places {
    margin-top: 15px;
    direction: rtl;
}

.nearby-places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.dining-section, .parking-section {
    margin-top: 20px;
}

.dining-section h3, .parking-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: right;
    direction: rtl;
}

/* Collapsible Section Styling */
.collapsible-section {
    margin-top: 20px;
}

.collapsible-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: right;
    direction: rtl;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.collapsible-title:hover {
    color: var(--secondary-color);
}

.collapsible-title::after {
    content: '▼';
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.collapsible-title.collapsed::after {
    transform: rotate(90deg); /* Rotate to point left for RTL */
}

.collapsible-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-gray);
    border-radius: var(--border-radius);
    direction: rtl;
}

.sort-controls label {
    font-weight: 600;
    color: var(--text-color);
    margin-left: 10px;
}

.sort-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-color);
}

.sort-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.sort-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.dining-filters {
    background: var(--bg-gray);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
    direction: rtl;
}

.dining-filters .sort-controls {
    background: transparent;
    padding: 0 0 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.match-filter {
    margin-top: 10px;
}

.match-filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
}

.match-filter-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.match-filter-toggle span {
    flex: 1;
}

.match-time-info {
    margin-top: 6px;
    padding-right: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.places-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.place-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    transition: var(--transition);
    direction: rtl;
}

.place-item:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.place-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--text-color);
    font-weight: 600;
    text-align: right;
}

.place-info h4 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.place-info h4 a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.place-info .address-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
    margin-top: 4px;
}

.place-info .address-link:hover {
    color: var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
    transform: translateX(-2px);
}

.opening-hours-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.opening-hours-toggle:hover {
    background: rgba(74, 144, 226, 0.1);
}

.hours-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 12px;
}

.hours-indicator.open {
    color: #2e7d32;
}

.hours-indicator.closed {
    color: #d32f2f;
}

.today-hours {
    flex: 1;
    color: var(--text-color);
    font-size: 12px;
}

.toggle-arrow {
    color: var(--text-muted);
    font-size: 10px;
    transition: transform 0.2s ease;
    order: -1; /* Place arrow on the left for RTL */
}

.full-hours {
    margin-top: 8px;
    padding: 12px;
    background: var(--bg-gray);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.8;
}

.hours-day {
    padding: 4px 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.hours-day:last-child {
    border-bottom: none;
}

.place-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
    text-align: right;
}

.place-meta {
    text-align: right;
    font-size: 14px;
    color: var(--text-light);
}

.rating {
    color: #ff9800;
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
}

.distance {
    color: var(--text-light);
    font-size: 13px;
}

.loading-spinner {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 40px 20px;
}

.refresh-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.refresh-btn:active {
    transform: translateY(0);
}

/* Collapsible Matches Section */
.matches-section {
    margin-bottom: 24px;
}

.matches-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(80, 227, 194, 0.08) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.matches-section-header:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(80, 227, 194, 0.15) 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.matches-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-gray) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:active {
    transform: translateY(-2px) scale(0.98);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
    filter: grayscale(20%);
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-section {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.location-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 200px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.action-btn.secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.action-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.compact-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.compact-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.compact-map-btn:active {
    transform: translateY(0);
}

.no-data {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 30px;
    background: var(--bg-gray);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
    line-height: 1.6;
}

/* Team Filter - Elegant Design */
.team-filter {
    padding: 20px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.03) 0%, rgba(80, 227, 194, 0.03) 100%);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    max-width: 800px;
}

.team-filter:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px;
    border-bottom: 2px solid rgba(74, 144, 226, 0.1);
    background: rgba(74, 144, 226, 0.03);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-filter-header:hover {
    background: rgba(74, 144, 226, 0.06);
}

.team-filter-header label {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
    order: -1; /* Place arrow on the left for RTL */
}

.team-filter-header label::before {
    content: '⚽';
    font-size: 1.2rem;
}

.team-count {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary-color);
    background: rgba(80, 227, 194, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    margin-right: 6px;
    transition: all 0.2s ease;
}

.filter-clear-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.85rem;
    font-family: 'Heebo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-clear-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.filter-clear-btn:active {
    transform: translateY(0);
}

.team-filter-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.team-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.team-checkbox-label::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.team-checkbox-label:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(80, 227, 194, 0.08) 100%);
    border-color: var(--secondary-color);
    transform: translateX(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.team-checkbox-label:hover::before {
    transform: scaleY(1);
}

.team-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    transition: transform 0.2s ease;
}

.team-checkbox:checked {
    transform: scale(1.1);
}

.team-checkbox-label:has(.team-checkbox:checked) {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.12) 0%, rgba(80, 227, 194, 0.12) 100%);
    border-color: var(--primary-color);
}

.team-checkbox-label:has(.team-checkbox:checked)::before {
    transform: scaleY(1);
}

.team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.team-checkbox-label:hover .team-logo {
    transform: scale(1.1);
}

.checkbox-text {
    flex: 1;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    user-select: none;
    transition: color 0.2s ease;
}

.team-checkbox-label:hover .checkbox-text {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-filter-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .team-filter {
        padding: 16px;
    }
}

/* Match Cards */
.matches-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.match-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.match-card:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.match-card.completed {
    opacity: 0.85;
    background: linear-gradient(to left, var(--bg-white), var(--bg-gray));
}

.match-card.upcoming {
    border-color: var(--accent-color);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-gray);
}

.match-league {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
}

.match-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
}

.status-completed {
    background: #e0e0e0;
    color: #666;
}

.status-upcoming {
    background: #dff0d8;
    color: #3c763d;
}

.status-live {
    background: #ff4444;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.match-round {
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-gray);
    padding: 4px 12px;
    border-radius: 12px;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.match-team.home {
    flex-direction: row-reverse;
    text-align: right;
}

.match-team.away {
    flex-direction: row;
    text-align: left;
}

.team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.team-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
}

.match-vs {
    font-weight: 800;
    color: var(--text-light);
    font-size: 14px;
    padding: 8px 16px;
    background: var(--bg-gray);
    border-radius: 8px;
}

.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-score .score {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    padding: 8px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.match-card.live {
    border-color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.match-events {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    padding: 12px;
    background: var(--bg-gray);
    border-radius: 8px;
}

.match-event {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 8px;
    background: white;
    border-radius: 6px;
    color: var(--text-color);
}

.match-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bg-gray);
}

.btn-add-calendar {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-add-calendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bg-gray);
}

.match-date,
.match-time,
.match-broadcast {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-broadcast {
    color: #27ae60;
    font-weight: 600;
    background: #d4edda;
    padding: 4px 10px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .match-teams {
        flex-direction: column;
        gap: 12px;
    }

    .match-team {
        width: 100%;
        justify-content: center;
    }

    .match-vs {
        order: -1;
    }
}

/* League Info Section with Tabs */
.league-info-section {
    margin: 0 0 50px;
    padding: 60px 20px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.league-info-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 20px;
    direction: rtl;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.league-tabs {
    display: inline-flex;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 24px;
    padding: 4px 6px;
    max-width: fit-content;
    background: #f9fafb;
    border-radius: 8px;
    direction: rtl;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.league-tab {
    flex: 0 0 auto;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.league-tab:hover {
    background: #e5e7eb;
    color: #374151;
}

.league-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
}

.league-tab-content {
    display: none;
}

.league-tab-content.active {
    display: block;
}

.standings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.league-table {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    border: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.league-table:not(.collapsed) {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.league-table__title {
    font-size: 15px;
    font-weight: 600;
    padding: 12px 18px;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    direction: rtl;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
    flex-direction: row-reverse; /* Reverse order for RTL */
}

.league-table__title:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

.league-table__title::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.league-table.collapsed .league-table__title::after {
    transform: rotate(90deg); /* Rotate to point left for RTL */
}

.table-wrapper {
    padding: 0;
    direction: rtl;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease, background 0.3s ease;
    background: transparent;
}

.league-table:not(.collapsed) .table-wrapper {
    max-height: 2000px;
    opacity: 1;
    padding: 15px 0;
    overflow-y: visible;
    background: white;
}

.table-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 14px;
    background: white;
}

.standings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.standings-table thead {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.standings-table th {
    padding: 10px 6px;
    font-weight: 700;
    color: #495057;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #667eea;
    white-space: nowrap;
}

.standings-table th:first-child {
    width: 40px;
}

.standings-table th:nth-child(2) {
    width: auto;
    text-align: right;
    padding-right: 12px;
}

.standings-table th:nth-child(3),
.standings-table th:nth-child(4),
.standings-table th:nth-child(5),
.standings-table th:nth-child(6),
.standings-table th:nth-child(7) {
    width: 45px;
}

.standings-table th:last-child {
    width: 60px;
}

.standings-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #f1f3f5;
    text-align: center;
    vertical-align: middle;
    font-size: 12px;
}

.standings-table tbody tr {
    transition: all 0.2s ease;
}

.standings-table tbody tr:hover {
    background: #f8f9ff;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.standings-table tbody tr.top-3 {
    background: linear-gradient(to right, rgba(102, 126, 234, 0.12) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-right: 4px solid #667eea;
}

.standings-table tbody tr.bottom-3 {
    background: linear-gradient(to right, rgba(248, 113, 113, 0.1) 0%, rgba(248, 113, 113, 0.03) 100%);
    border-right: 4px solid #ef4444;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
    justify-content: flex-start;
    padding-right: 8px;
}

.team-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
    background: white;
    padding: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.team-name {
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    flex: 1;
}

.rank-cell {
    font-weight: 700;
    color: #6c757d;
    font-size: 13px;
    background: #f8f9fa;
}

.points-cell {
    font-weight: 700;
    color: #667eea;
    font-size: 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.gd-positive {
    color: #10b981;
    font-weight: 700;
}

.gd-negative {
    color: #ef4444;
    font-weight: 700;
}

/* Fixtures Section */
.fixtures-section {
    padding: 60px 20px;
    background: transparent;
}

.fixtures-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    direction: rtl;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* League Selection Cards */
.fixtures-selection {
    display: flex;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    justify-content: center;
}

.league-selector-card {
    flex: 1;
    max-width: 400px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 50px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.league-selector-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #eef1ff 100%);
}

.league-selector-card:active {
    transform: translateY(-4px);
}

.league-selector-card__icon {
    font-size: 64px;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.league-selector-card:hover .league-selector-card__icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.league-selector-card__title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.league-selector-card__subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* Fixtures Modal */
.fixtures-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.fixtures-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fixtures-modal__content {
    background: #ffffff;
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fixtures-modal__close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fixtures-modal__close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

.fixtures-modal__header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 20px;
    text-align: center;
    direction: rtl;
}

.fixtures-modal__title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fixtures-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    direction: rtl;
}

/* Modal-specific fixture content */
#modalFixturesContent {
    padding: 0;
}

.fixture-item {
    padding: 16px;
    margin: 0 15px 12px 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.fixture-item:first-child {
    margin-top: 15px;
}

.fixture-item:last-child {
    margin-bottom: 15px;
}

.fixture-item * {
    pointer-events: none;
}

.fixture-item:hover {
    background: #f3f4f6;
    border-color: #667eea;
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.fixture-item.live {
    background: linear-gradient(135deg, #fef3f2 0%, #fee2e2 100%);
    border-color: #ef4444;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.fixture-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fixture-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.fixture-matchday {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    direction: rtl;
}

.live-badge {
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.fixture-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.fixture-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.team-logo-small {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fixture-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    min-width: 60px;
}

.fixture-score .vs {
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
}

.match-status {
    font-size: 11px;
    color: #ef4444;
    font-weight: 600;
}

.fixture-venue {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.fixture-scorers {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px 8px;
    margin-top: 8px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 11px;
    color: #6b7280;
    direction: ltr;
}

.scorer-side {
    flex: 1;
    padding: 0 8px;
}

.scorer-side.home {
    text-align: right;
}

.scorer-side.away {
    text-align: left;
}

.scorer-divider {
    font-size: 14px;
    color: #10b981;
    padding: 0 8px;
}

.finished-badge {
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.match-minute {
    color: #ef4444;
    font-weight: 700;
    font-size: 13px;
}

/* Matchweek Navigation */
.matchweek-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0;
    margin: 0;
    direction: rtl;
}

.matchweek-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.matchweek-nav-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    flex-shrink: 0;
}

.matchweek-nav-btn:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.matchweek-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.matchweek-fixtures {
    margin: 0;
    padding: 0;
    min-height: 400px;
}

.fixture-item.finished {
    opacity: 0.85;
}

.fixture-item.finished:hover {
    opacity: 1;
}

@media (max-width: 1300px) {
    .standings-container {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 800px;
    }

    .standings-table {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .standings-section {
        padding: 0;
        margin: 30px 0 40px;
    }

    .standings-container {
        padding: 0 10px;
    }

    .standings-title {
        font-size: 26px;
        margin: 30px 0 24px;
    }

    .league-table__title {
        font-size: 18px;
        padding: 16px;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .standings-table {
        font-size: 12px;
        min-width: 650px;
    }

    .standings-table th {
        padding: 12px 6px;
        font-size: 11px;
    }

    .standings-table td {
        padding: 10px 6px;
    }

    .team-cell {
        gap: 8px;
        min-width: 160px;
    }

    .team-logo {
        width: 22px;
        height: 22px;
    }

    .team-name {
        font-size: 12px;
    }

    .rank-cell {
        font-size: 13px;
    }

    .points-cell {
        font-size: 14px;
    }

    /* Modal responsive */
    .fixtures-selection {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .league-selector-card {
        padding: 40px 20px;
    }

    .league-selector-card__icon {
        font-size: 48px;
    }

    .league-selector-card__title {
        font-size: 24px;
    }

    .fixtures-modal {
        padding: 10px;
    }

    .fixtures-modal__content {
        max-height: 95vh;
        border-radius: 16px;
    }

    .fixtures-modal__title {
        font-size: 24px;
    }

    .fixtures-modal__header {
        padding: 20px 15px;
    }

    .fixtures-modal__close {
        top: 15px;
        left: 15px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .matchweek-navigation {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .matchweek-nav-btn {
        width: 100%;
        order: 2;
    }

    .matchweek-title {
        order: 1;
        font-size: 18px;
    }
}