/* Match Report Styles */
.home-content-wrapper {
  animation: fadeIn 0.5s ease-in;
}

.match-report-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Переопределяем padding для родительского контейнера на мобильных */
/* Переопределение стилей для мобильных устройств */
@media (max-width: 768px) {
  /* Убираем большой padding у родительского контейнера */
  .home-main-content .main-content {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .match-report-wrapper {
    padding: 0;
    max-width: 100%;
    margin: 0;
  }

  .home-main-content .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

@media (max-width: 576px) {
  .home-main-content .main-content {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .match-report-wrapper {
    padding: 0;
    margin: 0;
  }

  .home-main-content .container-fluid {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .report-container,
  .match-header-card {
    margin: 0 2px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Match Header */
.match-report-header {
  margin-bottom: 1.5rem;
}

.match-header-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 1rem 1.25rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: white;
}

.match-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.match-competition-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.match-date {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 500;
}

.match-teams-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}

.team-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.team-logo-wrapper {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.team-logo-wrapper:hover {
  transform: scale(1.05);
}

.team-section .team-name {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.score-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.score-display-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2.5rem;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.score-number {
  min-width: 50px;
  text-align: center;
}

.score-separator {
  font-size: 2rem;
  opacity: 0.8;
}

.match-status {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.25rem 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Generate Report Card */
.report-generate-card {
  background: white;
  border-radius: 15px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.report-generate-icon {
  font-size: 3.5rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.report-generate-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.75rem;
}

.report-generate-text {
  color: #718096;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.btn-generate-report {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-generate-report:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.btn-generate-report:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Report Container */
.report-container {
  background: white;
  border-radius: 15px;
  padding: 1.25rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .report-container {
    border-radius: 12px;
    padding: 1rem;
  }
}

.report-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.report-title-main {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.report-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.report-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.report-badge-ai {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.report-badge-auto {
  background: #e2e8f0;
  color: #4a5568;
}

.report-date {
  color: #718096;
  font-size: 0.9rem;
}

/* Report Sections */
.report-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.report-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.report-section-fullwidth {
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
  flex-shrink: 0;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
}

.section-content {
  padding-left: 50px;
}

/* Summary */
.summary-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2d3748;
  white-space: pre-line;
}

/* Key Moments - Full Width Grid */
.moments-grid-fullwidth {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.moment-card-fullwidth {
  animation: fadeInUp 0.4s ease-out;
}

.moment-card-inner {
  display: flex;
  gap: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.moment-card-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
  border-color: #667eea;
}

.moment-card-time {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 0.25rem;
}

.moment-minute-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.moment-card-content {
  flex: 1;
  min-width: 0;
}

.moment-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.moment-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  flex: 1;
  line-height: 1.5;
}

.moment-card-score {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.moment-card-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4a5568;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.moment-card-player i {
  color: #667eea;
  font-size: 1rem;
}

.moment-card-assist {
  color: #718096;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.moment-card-assist i {
  color: #48bb78;
  font-size: 0.8rem;
}

.moment-card-analysis {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #4a5568;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  line-height: 1.6;
}

.moment-card-analysis i {
  color: #667eea;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.moment-card-highlight {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.highlight-badge-full {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.highlight-late {
  background: #f6ad55;
  color: white;
}

.highlight-power {
  background: #fc8181;
  color: white;
}

.highlight-turning {
  background: #63b3ed;
  color: white;
}

/* Tactical Analysis */
.tactical-analysis-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2d3748;
  white-space: pre-line;
  text-align: justify;
}

/* Players Grid - Full Width */
.players-grid-fullwidth {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.player-card {
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  animation: fadeInUp 0.4s ease-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.player-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.player-card-header {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a202c;
  margin: 0;
  flex: 1;
}

.player-team {
  color: #667eea;
  font-weight: 600;
  font-size: 0.8rem;
  background: rgba(102, 126, 234, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.player-role {
  color: #718096;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  font-style: italic;
  display: inline-block;
  background: #f7fafc;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
}

.player-impact {
  margin-bottom: 0.75rem;
}

.player-impact p {
  color: #4a5568;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.player-ratings {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.6rem;
  background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.rating-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 60px;
  padding: 0.4rem;
  background: white;
  border-radius: 8px;
}

.rating-label {
  font-size: 0.65rem;
  color: #718096;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
}

.rating-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #667eea;
}

.player-stats {
  margin-bottom: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px solid #e2e8f0;
}

.stats-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.4rem;
  background: white;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.stat-item i {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.stat-item.stat-goal i { color: #48bb78; }
.stat-item.stat-assist i { color: #667eea; }
.stat-item.stat-tackle i { color: #f6ad55; }
.stat-item.stat-interception i { color: #63b3ed; }
.stat-item.stat-shot i { color: #fc8181; }
.stat-item.stat-dribble i { color: #9f7aea; }

.stat-label {
  font-size: 0.7rem;
  color: #718096;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stat-value {
  font-weight: 800;
  color: #1a202c;
  font-size: 1.1rem;
}

.player-minutes {
  color: #718096;
  font-size: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

/* Prediction */
.prediction-card {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid #e2e8f0;
}

.prediction-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.prediction-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prediction-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
}

.prediction-winner {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.5;
}

.prediction-percentages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.percentage-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.percentage-label {
  font-size: 0.8rem;
  color: #718096;
  font-weight: 600;
}

.percentage-bar {
  position: relative;
  height: 24px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.percentage-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  transition: width 0.5s ease;
}

.percentage-value {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
  font-weight: 700;
  color: #1a202c;
  width: 100%;
  text-align: center;
}

.prediction-divider {
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, #cbd5e0 50%, transparent 100%);
  height: 100%;
}

.actual-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 2rem;
  font-weight: 800;
  color: #1a202c;
}

.score-large {
  min-width: 45px;
  text-align: center;
}

.prediction-status {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.prediction-correct {
  background: #c6f6d5;
  color: #22543d;
}

.prediction-incorrect {
  background: #fed7d7;
  color: #742a2a;
}

.prediction-exact {
  background: #bee3f8;
  color: #2c5282;
}

/* Table Impact */
.table-impact-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #2d3748;
  white-space: pre-line;
}

/* Actions */
.report-actions {
  margin-top: 2rem;
  text-align: center;
}

.btn-back-to-match {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.btn-back-to-match:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .match-report-header {
    margin-bottom: 1rem;
  }

  .match-header-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .match-teams-score {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .score-display-main {
    font-size: 2.5rem;
    order: -1;
  }

  .team-logo-wrapper {
    width: 50px;
    height: 50px;
  }

  .team-section .team-name {
    font-size: 1rem;
  }

  .report-section-fullwidth {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .report-title-main {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .section-content {
    padding-left: 0;
  }

  .section-header {
    margin-bottom: 0.75rem;
  }

  .section-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .moment-card-inner {
    flex-direction: row;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .moment-card-time {
    align-self: flex-start;
  }

  .moment-minute-badge {
    width: 42px;
    height: 42px;
    font-size: 0.85rem;
  }

  .moment-card-title {
    font-size: 0.95rem;
  }

  .moment-card-score {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }

  .players-grid-fullwidth {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .player-card {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .stat-item {
    padding: 0.5rem 0.3rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .stat-value {
    font-size: 1rem;
  }

  .prediction-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .prediction-divider {
    width: 100%;
    height: 2px;
  }

  .prediction-card {
    padding: 1rem;
  }

  .summary-text,
  .tactical-analysis-text,
  .table-impact-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .match-report-wrapper {
    padding: 0;
  }

  .report-container {
    padding: 0.75rem;
    border-radius: 10px;
    margin: 0 5px;
  }

  .match-header-card {
    padding: 0.85rem;
    margin: 0 5px;
  }

  .match-report-header {
    padding: 0 5px;
  }

  .score-display-main {
    font-size: 2rem;
  }

  .moment-card-inner {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem;
  }

  .moment-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .report-section-fullwidth {
    margin-left: -5px;
    margin-right: -5px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .players-grid-fullwidth {
    gap: 0.75rem;
  }

  .player-card {
    padding: 0.85rem;
  }
}

