/**
 * Layout стили для РПЛ 2025
 * Header, Navigation, Containers
 */

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  padding: 1.5rem 0;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 100;
}



.header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--white);
}

.header p {
  opacity: 0.9;
  font-size: 1rem;
  margin: 0;
}

/* Кнопки действий в шапке (мобильная версия и т.п.) */
.header-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 200;
  pointer-events: auto;
}

.header-action-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  font-size: 12px;
  padding: 4px 8px;
  text-align: center;
}

.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.header-action-btn .emoji {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 2px;
}

.header-action-btn .label {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation */
.nav {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav button {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  min-height: 40px;
}

.nav button.active {
  background: var(--secondary);
  color: var(--white);
}

.nav button:not(.active) {
  background: var(--gray-100);
  color: var(--gray-600);
}

.nav button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav button:not(.active):hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

/* Filter Section */
.filter-section {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 500;
  color: var(--gray-700);
  margin-right: 0.5rem;
}

.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-sm);
  background: var(--white);
  color: var(--gray-800);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-fast);
  min-width: 120px;
}

.filter-select:hover {
  border-color: var(--primary);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Main Content Areas */
.matches-view {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  display: block;
}

.team-view {
  display: none;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.match-report {
  display: none;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

/* ==== Даты и заголовки дней на главной ==== */
.day-section {
  margin-bottom: 18px;
}

.day-header {
  text-align: center;
  font-weight: 700;
  color: #0b63ce;
  background: #eaf3ff;
  border: 1px solid #cfe3ff;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 6px 0 10px 0;
}

.match-item .match-date {
  text-align: center;
  font-weight: 600;
}

/* ==== Overlay выбора топ-лиг ==== */
.top-overlay { position: fixed; inset:0; z-index: 999; }
.top-overlay-backdrop { position:absolute; inset:0; background: rgba(0,0,0,0.45); }
.top-overlay-panel { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width: min(680px, 92vw); background:#fff; border-radius:12px; box-shadow:0 12px 40px rgba(0,0,0,0.25); overflow:hidden; }
.top-overlay-header { padding:14px 16px; font-weight:800; background:#0b63ce; color:#fff; }
.top-overlay-chips { display:flex; flex-wrap:wrap; gap:10px; padding:16px; }
.top-chip { padding:8px 12px; border-radius:999px; border:1px solid #cfe3ff; background:#eef6ff; color:#0b63ce; font-weight:700; cursor:pointer; }
.top-chip.active { background:#0b63ce; color:#fff; border-color:#0b63ce; }
.top-overlay-actions { display:flex; justify-content:flex-end; gap:10px; padding:12px 16px; border-top:1px solid #eee; }
.top-action { padding:8px 14px; border-radius:8px; border:1px solid #ddd; background:#f5f5f5; cursor:pointer; }
.top-action.primary { background:#0b63ce; color:#fff; border-color:#0b63ce; }

/* Простая таблица standings */
.standings-table { width:100%; border-collapse:collapse; margin-bottom:16px; }
.standings-table th, .standings-table td { border:1px solid #e5e7eb; padding:6px 8px; font-size:13px; text-align:center; }
.standings-table th { background:#f7fafc; font-weight:800; }
.standings-league-title { font-weight:800; margin:10px 0 6px; color:#0b63ce; }

/* Team Header - ОРИГИНАЛЬНЫЕ СТИЛИ ИЗ БЕКАПА */
.team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px 25px;
  min-height: 80px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border-radius: 8px;
  margin-bottom: 20px;
  position: relative;
}

.team-name {
  font-size: 28px !important;
  font-weight: bold;
  margin-right: 20px;
  color: white;
}

.team-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: 20px;
}

.team-season-label {
  color: white;
  font-size: 16px;
  font-weight: 500;
}

.team-season-select {
  padding: 6px 12px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 16px;
  font-weight: 500;
  min-width: 80px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.team-season-select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.25);
}

.team-season-select option {
  background: #333;
  color: white;
}

.rating {
  font-size: 14px;
  opacity: 0.9;
  color: white;
}



/* Стили заголовка матча из бекапа */
.match-report-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border-radius: 8px;
  position: relative;
}

/* Шапка отчета матча */
.match-teams {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.match-team-name {
  font-size: 20px;
  font-weight: bold;
}

.match-team-home {
  text-align: right;
}

.match-team-away {
  text-align: left;
}

.match-final-score {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
}

.match-info {
  text-align: center;
  font-size: 14px;
  opacity: 0.9;
  margin-top: 10px;
}

/* Стили отчета матча из бекапа */
.full-match-report {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.match-overview, 
.periods-stats, 
.match-events {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-top: 60px !important;
  margin-bottom: 60px !important;
  position: relative;
  z-index: 1;
}

.full-match-report h3 {
  color: #ff6b35;
  margin-bottom: 15px;
  border-bottom: 2px solid #ff6b35;
  padding-bottom: 10px;
}

.match-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.match-detail {
  background: #f0f0f0;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  text-align: left;
}

/* Статистика матча из бекапа */
.match-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ff6b35 #f0f0f0;
}

.match-stats::-webkit-scrollbar {
  height: 8px;
}

.match-stats::-webkit-scrollbar-thumb {
  background-color: #ff6b35;
  border-radius: 4px;
}

.match-stats::-webkit-scrollbar-track {
  background-color: #f0f0f0;
}

.team-stats {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 15px;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.stats-labels {
  text-align: center;
  flex: 2;
  min-width: 250px;
}

.stat-line {
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.stat-home, .stat-away {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.stat-home {
  text-align: right;
  padding-right: 10px;
}

.stat-away {
  text-align: left;
  padding-left: 10px;
}

.stat-label {
  text-align: center;
  font-weight: 500;
  color: #666;
}

/* Таблицы статистики по таймам */
.periods-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.periods-stats-table th {
    background: #ff6b35;
    color: white;
    padding: 10px 8px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
}

.periods-stats-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}

.periods-stats-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: #f8f9fa;
    width: 180px;
}

.periods-stats-table tr:nth-child(even) {
    background: #f8f8f8;
}

.periods-stats-table tr:hover {
    background: #f0f0f0;
}

.periods-stats-table thead tr:first-child th {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.periods-stats-table thead tr:nth-child(2) th {
    background: #ff8c4d;
    font-size: 11px;
    font-weight: normal;
}

/* Loading & Error States */
.loading,
.no-data {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-500);
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  border: 2px solid var(--gray-300);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.2);
  color: var(--danger);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin: 1rem 0;
}

/* Scroll Top Button - изменяем с синего на оранжевый */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: linear-gradient(135deg, #e55a2b, #e6851a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
} 

/* Компактные аналитические таблицы для отчетов матчей из бекапа */
.team-season-analysis {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin: 20px -15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: calc(100vw - 30px);
  max-width: none;
  overflow-x: auto;
}

.team-season-analysis h3 {
  color: #ff6b35;
  margin-bottom: 15px;
  border-bottom: 2px solid #ff6b35;
  padding-bottom: 10px;
  font-size: 18px;
}

/* Компактная таблица */
.analysis-table.compact {
  width: 100% !important;
  min-width: 100%;
  font-size: 11px;
}

.analysis-table.compact th,
.analysis-table.compact td {
  padding: 3px 4px;
  font-size: 10px;
  text-align: center !important;
  min-width: 50px;
}

.analysis-table.compact td.param-column {
  text-align: left !important;
  min-width: 120px;
  font-size: 10px;
  padding-left: 8px;
}

.analysis-table.compact .match-column {
  min-width: 45px;
  width: 45px;
}

/* Информационный блок */
.compact-table-info {
  background: #e8f4fd;
  border: 1px solid #b3d9f2;
  border-radius: 5px;
  padding: 10px 15px;
  margin-bottom: 15px;
}

.compact-table-info p {
  margin: 0;
  font-size: 13px;
  color: #2c5aa0;
  font-weight: 500;
  line-height: 1.4;
}

/* Placeholder для графической аналитики */
.match-charts-placeholder {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  padding: 30px 20px;
  margin: 100px 0 !important;
  border: 2px dashed #dee2e6;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  clear: both;
}

.match-charts-placeholder:hover {
  border-color: #ff6b35;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
}

.match-charts-placeholder h3 {
  color: #ff6b35;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
}

.match-charts-placeholder p {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
} 

/* Контейнеры загрузки и ошибок */
.loading-container, .error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 40px 20px;
    text-align: center;
}

.loading-container p, .error-container p {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
}

.error-container {
    color: #d32f2f;
}

.error-container p {
    color: #d32f2f;
    font-weight: 500;
}

/* Спиннер загрузки */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

/* Стили для событий матча - компактные в одну строку */
.event-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 4px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #ddd;
    font-size: 13px;
    line-height: 1.2;
}

.event-item:hover {
    background: #f8f9fa;
}

.event-item.event-home {
    border-left-color: #ff6b35;
}

.event-item.event-away {
    border-left-color: #2196f3;
}

.event-time {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    min-width: 35px;
    text-align: center;
    margin-right: 10px;
}

.event-icon {
    font-size: 14px;
    min-width: 20px;
    text-align: center;
    margin-right: 8px;
}

.event-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-type {
    font-weight: bold;
    font-size: 12px;
    color: #ff6b35;
    text-transform: uppercase;
    min-width: 50px;
}

.event-player {
    font-size: 13px;
    color: #333;
    flex: 1;
}

.event-team {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.event-detail {
    font-size: 11px;
    color: #888;
}

/* Цвета для разных типов событий */
.event-item[data-type="goal"] {
    border-left-color: #4caf50;
}

.event-item[data-type="goal"] .event-type {
    color: #4caf50;
}

.event-item[data-type="card"] {
    border-left-color: #ff9800;
}

.event-item[data-type="card"] .event-type {
    color: #ff9800;
}

.event-item[data-type="red_card"] {
    border-left-color: #f44336;
}

.event-item[data-type="red_card"] .event-type {
    color: #f44336;
}

.event-item[data-type="substitution"] {
    border-left-color: #9c27b0;
}

.event-item[data-type="substitution"] .event-type {
    color: #9c27b0;
}

/* Адаптивность для событий */
@media (max-width: 768px) {
    .event-item {
        padding: 8px;
        flex-wrap: wrap;
    }
    
    .event-time {
        min-width: 40px;
        font-size: 14px;
        margin-right: 10px;
    }
    
    .event-icon {
        font-size: 18px;
        min-width: 25px;
        margin-right: 10px;
    }
    
    .event-details {
        flex: 1;
        min-width: 200px;
    }
} 

/* Стили для настройки таблицы и контролов */
.table-controls {
    margin-bottom: 15px;
    text-align: right;
}

.table-settings-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.table-settings-btn:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

.table-settings-btn.active {
    background: #4CAF50;
}

.table-settings-btn.active:hover {
    background: #45a049;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.control-btn {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.control-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.control-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.zoom-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* Drag & Drop стили */
.drag-handle {
    display: inline-block;
    margin-right: 8px;
    padding: 4px 6px;
    background: #f0f0f0;
    border-radius: 3px;
    cursor: grab;
    user-select: none;
    font-weight: bold;
    color: #666;
    font-size: 12px;
    vertical-align: middle;
}

.drag-handle:hover {
    background: #e0e0e0;
    color: #333;
}

.drag-handle:active {
    cursor: grabbing;
    background: #d0d0d0;
} 

/* События матча - стиль старой версии */
.match-events-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.match-event-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px 2fr;
    align-items: center;
    background: #f9f9f9;
    border-radius: 6px;
    padding: 8px 12px;
    gap: 8px;
}

.event-minute {
    font-weight: bold;
    color: #666;
    text-align: center;
}

.event-team {
    text-align: center;
    font-weight: bold;
}

.event-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.event-player {
    text-align: left;
}

/* Адаптивность для событий */
@media (max-width: 768px) {
    .match-event-row {
        grid-template-columns: 50px 1fr;
        gap: 4px;
        padding: 6px 8px;
    }
    
    .event-team,
    .event-badge {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 4px;
    }
    
    .event-player {
        grid-column: 1 / -1;
        margin-top: 4px;
        font-size: 13px;
    }
} 

/**
 * Компоновка и сетки для РПЛ 2025
 */

/* Базовые контейнеры */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
  font-size: 28px;
  margin-bottom: 5px;
}

.header p {
  opacity: 0.9;
  font-size: 16px;
}

/* Фильтры */
.filter-section {
  background: white;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: bold;
  color: #666;
  margin-right: 10px;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
  font-size: 14px;
  transition: all 0.3s;
}

.filter-select:hover {
  border-color: #ff6b35;
}

.filter-select:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 5px rgba(255,107,53,0.3);
}

/* Кнопка прокрутки вверх */
.scroll-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--secondary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

/* СТИЛИ ДЛЯ ОТЧЕТА МАТЧА */

/* Полный отчет матча */
.full-match-report {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Заголовок матча */
.match-report-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.match-team-name {
  font-size: 20px;
  font-weight: bold;
}

.match-team-home {
  text-align: right;
}

.match-team-away {
  text-align: left;
}

.match-final-score {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.match-final-score.score-finished {
  background: rgba(76, 175, 80, 0.3);
}

.match-final-score.score-upcoming {
  background: rgba(33, 150, 243, 0.3);
}

.match-info {
  text-align: center;
  font-size: 14px;
  opacity: 0.9;
  margin-top: 10px;
}

/* Детали матча */
.match-overview {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.match-overview h3 {
  color: #ff6b35;
  margin-bottom: 15px;
  border-bottom: 2px solid #ff6b35;
  padding-bottom: 10px;
}

.match-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.match-detail {
  background: #f8f9fa;
  padding: 12px 15px;
  border-radius: 6px;
  border-left: 4px solid #ff6b35;
  font-size: 14px;
}

.match-detail strong {
  color: #333;
  display: block;
  margin-bottom: 4px;
}

/* Статистика матча */
.match-stats {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 15px;
}

.team-stats {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.team-stats h4 {
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.stats-labels {
  text-align: center;
}

.stats-labels h4 {
  margin: 0 0 15px 0;
  color: #ff6b35;
  font-size: 16px;
  font-weight: 600;
}

.stat-line {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.stat-line:last-child {
  border-bottom: none;
}

.stat-home, .stat-away {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
}

.stat-home {
  text-align: right;
  padding-right: 15px;
  color: #1976d2;
}

.stat-away {
  text-align: left;
  padding-left: 15px;
  color: #d32f2f;
}

.stat-label {
  text-align: center;
  font-weight: 500;
  color: #666;
  font-size: 13px;
}

/* Статистика по таймам */
.periods-stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.periods-stats-table th {
  background: #ff6b35;
  color: white;
  padding: 10px 8px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
}

.periods-stats-table td {
  padding: 8px;
  border-bottom: 1px solid #eee;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.periods-stats-table td:first-child {
  text-align: left;
  font-weight: 500;
  background: #f8f9fa;
  width: 180px;
  padding-left: 12px;
}

.periods-stats-table tr:nth-child(even) {
  background: #f8f8f8;
}

.periods-stats-table tr:hover {
  background: #f0f0f0;
}

.periods-stats-table thead tr:first-child th {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.periods-stats-table thead tr:nth-child(2) th {
  background: #ff8c4d;
  font-size: 11px;
  font-weight: normal;
}

.no-period-stats {
  text-align: center;
  color: #666;
  padding: 20px;
  font-style: italic;
}

/* События матча */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.event-item {
  display: grid;
  grid-template-columns: 60px 1fr 150px 2fr;
  align-items: center;
  background: #f9f9f9;
  border-radius: 6px;
  padding: 10px 12px;
  gap: 8px;
  border-left: 4px solid #ff6b35;
}

.event-time {
  font-weight: bold;
  color: #666;
  text-align: center;
  font-size: 13px;
}

.event-team {
  font-weight: 600;
  text-align: center;
  font-size: 13px;
}

.event-team.team-home-event {
  color: #1976d2;
}

.event-team.team-away-event {
  color: #d32f2f;
}

.event-type {
  text-align: center;
  font-size: 12px;
  display: inline-block;
  border-radius: 4px;
}

.event-player {
  text-align: left;
  font-size: 13px;
  color: #333;
}

.no-events {
  text-align: center;
  color: #666;
  padding: 20px;
  font-style: italic;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .filter-section {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .filter-label {
    margin-bottom: 5px;
  }
  
  .filter-select {
    width: 100%;
  }
  
  /* Заголовок матча - мобильная версия */
  .match-teams {
    grid-template-columns: 1fr 60px 1fr;
    gap: 10px;
  }
  
  .match-team-name {
    font-size: 16px;
  }
  
  .match-final-score {
    font-size: 24px;
  }
  
  .match-info {
    font-size: 12px;
  }
  
  /* Детали матча - мобильная версия */
  .match-details-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .match-detail {
    padding: 10px 12px;
  }
  
  /* Статистика матча - мобильная версия */
  .match-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .stat-line {
    grid-template-columns: 1fr 150px 1fr;
    font-size: 12px;
    gap: 5px;
  }
  
  .stat-home, .stat-away {
    font-size: 14px;
    font-weight: 600;
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  /* Статистика по таймам - мобильная версия */
  .periods-stats-table {
    font-size: 10px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .periods-stats-table thead tr {
    display: none;
  }
  
  .periods-stats-table tr {
    display: block;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    background: white;
  }
  
  .periods-stats-table td {
    display: block;
    text-align: left;
    border: none;
    padding: 4px 0;
  }
  
  .periods-stats-table td:first-child {
    font-size: 12px;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 5px;
  }
  
  /* События матча - мобильная версия */
  .event-item {
    grid-template-columns: 50px 80px 80px 1fr;
    gap: 4px;
    padding: 8px 6px;
    font-size: 11px;
  }
  
  .event-time {
    font-weight: bold;
    color: #ff6b35;
    font-size: 12px;
    text-align: center;
  }
  
  .event-team {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .event-type {
    font-size: 9px;
    padding: 2px 4px;
    white-space: nowrap;
  }
  
  .event-player {
    font-size: 10px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
} 

/* Header quick actions */
.header { position: relative; }
.header-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; }
.header-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #ff6b35;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.header-action-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.header-action-btn:active { transform: translateY(0); }
@media (max-width: 768px) { .header-action-btn { width: 44px; height: 44px; font-size: 20px; } } 