/* Анимиран контейнер */
.analysis-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 40px;
  position: relative;
  z-index: 1;
}

.teams-section {
  margin-bottom: 40px;
}

.teams {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 0 auto;
  width: 95%;
  max-width: 700px;
  padding: 30px;
  border-radius: 25px;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(0, 255, 136, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1),
              0 0 30px rgba(0, 255, 136, 0.2);
  animation: pulseGlow 4s infinite;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.teams::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  transition: left 0.8s ease;
}

.teams:hover::before {
  left: 100%;
}

.teams:hover {
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), 
              inset 0 1px 0 rgba(255, 255, 255, 0.2),
              0 0 40px rgba(0, 255, 136, 0.4);
  transform: translateY(-5px);
  background: rgba(10, 10, 10, 0.8);
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
  padding: 15px;
}

.team img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 15px;
  border: 2px solid rgba(0, 255, 136, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
}

.team:hover img {
  transform: scale(1.15) rotate(3deg);
  border-color: rgba(0, 255, 136, 0.9);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.5), 
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.team-name {
  margin-top: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
  text-align: center;
  width: 100%;
  transition: all 0.3s ease;
  font-family: "Georgia", serif;
  background: linear-gradient(135deg, var(--neon-green), var(--electric-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.team:hover .team-name {
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.9);
}

.vs {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--neon-green);
  margin: 0 15px;
  text-shadow: 0 0 25px rgba(0, 255, 136, 0.9), 
               0 0 50px rgba(0, 255, 136, 0.5);
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--neon-green), var(--electric-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.teams:hover .vs {
  transform: scale(1.3);
  text-shadow: 0 0 35px rgba(0, 255, 136, 1), 
               0 0 70px rgba(0, 255, 136, 0.7);
}

@keyframes pulseGlow {
  0%, 100% { 
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 0 30px rgba(0, 255, 136, 0.2); 
  }
  50% { 
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 0 40px rgba(0, 255, 136, 0.4),
                0 0 60px rgba(0, 170, 255, 0.2); 
  }
}

.section {
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: 25px;
  width: 92%;
  max-width: 900px;
  margin: 25px auto;
  padding: 30px;
  text-align: left;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: sectionPulse 6s infinite;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.08), transparent);
  transition: left 0.8s ease;
}

.section:hover::before {
  left: 100%;
}

.section:hover {
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), 
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  background: rgba(10, 10, 10, 0.8);
}

@keyframes sectionPulse {
  0%, 100% { 
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1); 
  }
  50% { 
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 0 30px rgba(0, 255, 136, 0.3); 
  }
}

.section h2 {
  color: var(--text-primary);
  font-size: 1.9rem;
  border-bottom: 2px solid rgba(0, 255, 136, 0.7);
  padding-bottom: 12px;
  margin-bottom: 25px;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
  font-weight: 800;
  letter-spacing: 1px;
  font-family: "Playfair Display", serif;
  background: linear-gradient(135deg, var(--neon-green), var(--electric-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ⭐ СТИЛОВЕ ЗА ФИЛТЪРИ НА ФОРМАТА */
.form-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.form-filter-btn {
  padding: 12px 24px;
  border: 2px solid rgba(0, 255, 136, 0.4);
  border-radius: 25px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
}

.form-filter-btn:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.7);
  transform: translateY(-2px);
}

.form-filter-btn.active {
  background: rgba(0, 255, 136, 0.2);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.form-matches-container {
  margin-top: 20px;
}

.form-matches-section {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.form-matches-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-indicator {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(0, 255, 136, 0.2);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--neon-green);
}

/* Мобилни стилове за филтрите */
@media (max-width: 768px) {
  .form-filters {
    gap: 10px;
  }
  
  .form-filter-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .form-filters {
    flex-direction: column;
    align-items: center;
  }
  
  .form-filter-btn {
    width: 200px;
    text-align: center;
  }
}

/* ⭐ НОВИ СТИЛОВЕ ЗА РАЗШИРЕНА ФОРМА */
.advanced-form-container {
  width: 100%;
}

.section-subtitle {
  color: var(--neon-green);
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: "Playfair Display", serif;
}

.advanced-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.advanced-form-stats {
  margin-bottom: 20px;
}

.form-periods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.form-period {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.form-period:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
  border-color: rgba(0, 255, 136, 0.6);
}

.period-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.period-stats-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.period-stats-full span {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.period-stats-full .win {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.period-stats-full .draw {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.4);
}

.period-stats-full .loss {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.4);
}

.period-stats-full .goals {
  background: rgba(0, 170, 255, 0.15);
  color: var(--electric-blue);
  border: 1px solid rgba(0, 170, 255, 0.4);
}

.period-stats-full span:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.trends-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.trend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.trend-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: "Poppins", sans-serif;
}

.trend-value {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.trend-value.improving {
  color: var(--neon-green);
}

.trend-value.declining {
  color: #ff6b6b;
}

.trend-value.stable {
  color: #ffc107;
}

.trend-value.increasing {
  color: var(--neon-green);
}

.trend-value.decreasing {
  color: #ff6b6b;
}

.recent-matches {
  margin-top: 20px;
}

.matches-label {
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.recent-match-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.recent-match-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(5px);
}

.recent-match-item.win {
  background: rgba(0, 255, 136, 0.1);
  border-left: 4px solid var(--neon-green);
}

.recent-match-item.draw {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
}

.recent-match-item.loss {
  background: rgba(255, 107, 107, 0.1);
  border-left: 4px solid #ff6b6b;
}

.match-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-result {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.match-result.win {
  background: rgba(0, 255, 136, 0.2);
  color: var(--neon-green);
}

.match-result.draw {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.match-result.loss {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.match-opponent {
  color: var(--text-primary);
  font-family: "Georgia", serif;
}

.match-score {
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
}

.no-matches {
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  padding: 20px;
  font-family: "Georgia", serif;
}

/* ⭐ АКТУАЛИЗИРАНИ СТИЛОВЕ ЗА АКТУАЛИЗИРАНА ПРОГНОЗА НА ЕКСПЕРТА */
.expert-prediction-v2 {
  background: rgba(0, 0, 0, 0.85);
  border-radius: 25px;
  padding: 30px;
  border: 2px solid rgba(0, 255, 136, 0.5);
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 50px rgba(0, 255, 136, 0.3);
}

.expert-header-v2 {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.3);
}

.expert-title-v2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--neon-green);
  margin-bottom: 10px;
  font-family: "Playfair Display", serif;
  background: linear-gradient(135deg, var(--neon-green), var(--electric-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ⭐ ПРЕМАХНАТ ТЕКСТ - БАЗИРАНА НА АНАЛИЗ НА ФОРМА... */
.expert-subtitle-v2 {
  display: none; /* ПРЕМАХВАМЕ ТОЗИ ТЕКСТ */
}

.prediction-main-card {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 25px;
  text-align: center;
}

.prediction-outcome-card {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 170, 255, 0.15));
  border: 2px solid rgba(0, 255, 136, 0.6);
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0;
}

.prediction-outcome-main {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--neon-green);
  margin-bottom: 15px;
  font-family: "Playfair Display", serif;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.7);
}

.prediction-outcome-type {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-family: "Poppins", sans-serif;
}

.prediction-confidence-v2 {
  margin-top: 20px;
}

.confidence-bar-v2 {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.confidence-fill-v2 {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), var(--electric-blue));
  border-radius: 6px;
  transition: width 1.5s ease-in-out;
  position: relative;
}

.confidence-text-v2 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

/* ⭐ АКТУАЛИЗИРАНИ СТИЛОВЕ ЗА ГРАФИКИТЕ ЗА ФОРМА */
.form-comparison-chart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 25px 0;
  align-items: end;
}

.form-chart-team {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 250px;
}

.form-chart-team.home {
  border-color: rgba(0, 255, 136, 0.4);
}

.form-chart-team.away {
  border-color: rgba(0, 170, 255, 0.4);
}

.team-form-bars {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: flex-end;
  flex: 1;
  margin-top: 15px;
  margin-bottom: 20px;
}

.form-bar {
  width: 25px;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.form-bar.win {
  background: linear-gradient(to top, var(--neon-green), rgba(0, 255, 136, 0.8));
}

.form-bar.draw {
  background: linear-gradient(to top, #ffc107, rgba(255, 193, 7, 0.8));
}

.form-bar.loss {
  background: linear-gradient(to top, #ff6b6b, rgba(255, 107, 107, 0.8));
}

/* ⭐ ОПТИМИЗИРАНО ПОЗИЦИОНИРАНЕ НА БУКВИТЕ */
.form-bar-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  font-weight: 600;
  width: 100%;
  text-align: center;
}

/* ⭐ ПРЕМЕСТВАНЕ НА AI АНАЛИЗА ПОД ЗАГЛАВИЕТО */
.expert-analysis-content {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  margin-top: 25px;
  max-height: 600px;
  overflow-y: auto;
}

.analysis-text {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 1.05rem;
  font-family: "Georgia", serif;
  text-align: left;
  width: 100%;
}

.analysis-text h3 {
  color: var(--neon-green);
  margin: 25px 0 15px 0;
  font-size: 1.3rem;
  font-family: "Playfair Display", serif;
  text-align: left;
}

.analysis-text h4 {
  color: var(--electric-blue);
  margin: 20px 0 12px 0;
  font-size: 1.1rem;
  font-family: "Playfair Display", serif;
  text-align: left;
}

.analysis-text ul {
  margin: 15px 0;
  padding-left: 25px;
  text-align: left;
}

.analysis-text li {
  margin-bottom: 10px;
  position: relative;
  text-align: left;
}

.analysis-text li:before {
  content: "•";
  color: var(--neon-green);
  font-weight: bold;
  position: absolute;
  left: -15px;
}

.prediction-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 25px;
}

.stat-card-v2 {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 255, 136, 0.4);
}

.stat-value-v2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--neon-green);
  margin-bottom: 8px;
  font-family: "Playfair Display", serif;
}

.stat-label-v2 {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
}

.expert-note-v2 {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
}

.expert-note-v2 p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  font-family: "Georgia", serif;
}

/* ⭐ СТАРИ СТИЛОВЕ ЗА ЕКСПЕРТНА ПРОГНОЗА (за обратна съвместимост) */
.expert-prediction {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(0, 255, 136, 0.4);
  backdrop-filter: blur(15px);
}

.expert-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.3);
}

.expert-avatar {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 136, 0.4);
}

.expert-info h4 {
  margin: 0;
  font-size: 1.3rem;
}

.expert-info p {
  margin: 5px 0 0 0;
  color: #cccccc;
  font-size: 0.9rem;
}

.prediction-content {
  display: grid;
  gap: 20px;
}

.prediction-main {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.predicted-result {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.prediction-team {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px 15px;
  border-radius: 10px;
  font-family: "Georgia", serif;
}

.prediction-team.home {
  background: rgba(0, 255, 136, 0.2);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.prediction-team.away {
  background: rgba(0, 170, 255, 0.2);
  color: var(--electric-blue);
  border: 1px solid rgba(0, 170, 255, 0.4);
}

.prediction-vs {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
}

.prediction-outcome {
  color: var(--neon-green);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 15px 0;
  font-family: "Playfair Display", serif;
}

.prediction-confidence {
  margin-top: 15px;
}

.confidence-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), var(--electric-blue));
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.confidence-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
}

.prediction-reasoning {
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prediction-reasoning h5 {
  color: var(--electric-blue);
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-family: "Playfair Display", serif;
}

.prediction-reasoning ul {
  color: #cccccc;
  margin: 0;
  padding-left: 20px;
  line-height: 1.5;
  font-family: "Georgia", serif;
}

.prediction-reasoning li {
  margin-bottom: 8px;
}

.prediction-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.stat-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 5px;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.stat-value {
  color: var(--neon-green);
  font-weight: 700;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
}

.expert-note {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin-top: 15px;
}

.expert-note p {
  margin: 0;
  color: var(--neon-green);
  font-size: 0.9rem;
  text-align: center;
  font-family: "Georgia", serif;
  line-height: 1.4;
}

/* ⭐ СТИЛОВЕ ЗА РАЗШИРЕНАТА H2H СТАТИСТИКА */
.highlight-row {
    background: rgba(0, 255, 136, 0.08) !important;
    border-left: 4px solid var(--neon-green);
}

.highlight-row .stat-name {
    color: var(--neon-green) !important;
    font-weight: 700 !important;
}

.extended-stats-info {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.info-note {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-note strong {
    color: var(--neon-green);
    display: block;
    margin-bottom: 10px;
}

.info-note ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.info-note li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* ⭐ НОВИ СТИЛОВЕ ЗА КЛЮЧОВИ ФАКТОРИ */
.key-factors-container {
  padding: 20px 0;
}

.factors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.factor-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.factor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
  border-color: rgba(0, 255, 136, 0.6);
}

.factor-card.силно {
  border-color: rgba(0, 255, 136, 0.6);
  background: rgba(0, 255, 136, 0.05);
}

.factor-card.средно {
  border-color: rgba(0, 170, 255, 0.6);
  background: rgba(0, 170, 255, 0.05);
}

.factor-card.нормално {
  border-color: rgba(255, 193, 7, 0.6);
  background: rgba(255, 193, 7, 0.05);
}

.factor-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 5px;
}

.factor-content {
  flex: 1;
}

.factor-title {
  font-weight: 700;
  color: var(--neon-green);
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-family: "Poppins", sans-serif;
}

.factor-description {
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.5;
  font-size: 0.95rem;
  font-family: "Georgia", serif;
}

.factor-impact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.impact-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: "Poppins", sans-serif;
}

.impact-value {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.impact-value.силно {
  background: rgba(0, 255, 136, 0.2);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.impact-value.средно {
  background: rgba(0, 170, 255, 0.2);
  color: var(--electric-blue);
  border: 1px solid rgba(0, 170, 255, 0.4);
}

.impact-value.нормално {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.4);
}

/* Секция за сила на формата */
.form-strength-section {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 15px;
  padding: 25px;
  margin-top: 25px;
}

.strength-title {
  color: var(--neon-green);
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: "Playfair Display", serif;
}

.strength-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.strength-bar {
  display: flex;
  align-items: center;
  gap: 15px;
}

.strength-label {
  width: 120px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: "Poppins", sans-serif;
}

.strength-progress {
  flex: 1;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.strength-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s ease-in-out;
  position: relative;
}

.strength-bar.home .strength-fill {
  background: linear-gradient(90deg, var(--neon-green), rgba(0, 255, 136, 0.8));
}

.strength-bar.away .strength-fill {
  background: linear-gradient(90deg, var(--electric-blue), rgba(0, 170, 255, 0.8));
}

.strength-value {
  width: 50px;
  text-align: center;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
}

.factors-note {
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 10px;
}

.factors-note p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: "Georgia", serif;
  line-height: 1.4;
}

.stats-table, .form-table, .h2h-table, .standings-table {
  width: 100%;
  margin-top: 20px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 136, 0.4);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-table:hover, .form-table:hover, .h2h-table:hover, .standings-table:hover {
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 255, 136, 0.6);
  transform: translateY(-3px);
}

.table-header, .h2h-header, .standings-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.9), rgba(0, 170, 255, 0.9));
  padding: 22px 18px;
  border-bottom: 2px solid rgba(0, 255, 136, 0.7);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 1.1rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  color: #000;
  font-family: "Poppins", sans-serif;
}

.standings-header {
  grid-template-columns: 0.5fr 2fr 0.6fr 0.6fr 0.6fr 0.6fr 0.8fr 0.6fr;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  padding: 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: rgba(255, 255, 255, 0.03);
}

.standings-row {
  display: grid;
  grid-template-columns: 0.5fr 2fr 0.6fr 0.6fr 0.6fr 0.6fr 0.8fr 0.6fr;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: rgba(255, 255, 255, 0.03);
}

.table-row:hover, .standings-row:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(12px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.table-row:last-child, .standings-row:last-child {
  border-bottom: none;
}

.stat-name {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
  font-family: "Georgia", serif;
}

.standings-stat {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
  padding: 6px 4px;
  font-family: "Georgia", serif;
}

.standings-team {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
  padding: 6px 12px;
  font-family: "Georgia", serif;
}

.team-header {
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  color: #000;
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
  padding: 0 12px;
  font-family: "Poppins", sans-serif;
}

.team-header.home {
  background: rgba(0, 255, 136, 0.4);
  border-radius: 10px;
  margin: 0 8px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 255, 136, 0.6);
}

.team-header.away {
  background: rgba(0, 170, 255, 0.4);
  border-radius: 10px;
  margin: 0 8px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 170, 255, 0.6);
}

.stat-value {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 12px;
  transition: all 0.3s ease;
  margin: 0 8px;
  min-width: 80px;
  font-family: "Poppins", sans-serif;
}

.stat-value.home {
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.25);
  border: 1px solid rgba(0, 255, 136, 0.5);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.stat-value.away {
  color: var(--electric-blue);
  background: rgba(0, 170, 255, 0.25);
  border: 1px solid rgba(0, 170, 255, 0.5);
  box-shadow: 0 6px 20px rgba(0, 170, 255, 0.4);
}

.standings-value {
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 8px;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: "Poppins", sans-serif;
}

.stat-value:hover, .standings-value:hover {
  transform: scale(1.18);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.standings-home {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 255, 136, 0.2));
  border-left: 5px solid var(--neon-green);
}

.standings-away {
  background: linear-gradient(135deg, rgba(0, 170, 255, 0.25), rgba(0, 170, 255, 0.2));
  border-left: 5px solid var(--electric-blue);
}

.form-team-section {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
}

.form-team-header {
  text-align: center;
  font-weight: 800;
  color: #ffffff;
  padding: 10px 220px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 170, 255, 0.2));
  border: 1px solid rgba(0, 255, 136, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  font-family: "Playfair Display", serif;
  display: flex;
  flex-direction: row;
  justify-content: center; 
  align-items: center; 
  min-height: 80px; 
}

.form-team-header.home {
  background: rgba(0, 255, 136, 0.25);
}

.form-team-header.away {
  background: rgba(0, 170, 255, 0.25);
}

.form-matches {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
}

.match-row:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.match-row.win {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.3));
  border-left: 5px solid #00ff88;
}

.match-row.draw {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.3));
  border-left: 5px solid #ffc107;
}

.match-row.loss {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.3));
  border-left: 5px solid #ff6b6b;
}

.match-ha {
  font-weight: bold;
  width: 26px;
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
  font-family: "Poppins", sans-serif;
}

.match-vs {
  flex: 1;
  text-align: center;
  margin: 0 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
  font-family: "Georgia", serif;
}

.match-score {
  font-weight: bold;
  width: 50px;
  text-align: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
}

.stat-item {
  text-align: center;
  padding: 12px;
}

.stat-value-large {
  font-size: 1.4rem;
  font-weight: 800;
  color: #00ff88;
  margin-bottom: 6px;
  font-family: "Playfair Display", serif;
}

.stat-label {
  font-size: 0.85rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: "Poppins", sans-serif;
}

.h2h-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 25px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
}

.h2h-stat {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.h2h-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.h2h-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #00ff88;
  margin-bottom: 6px;
  font-family: "Playfair Display", serif;
}

.h2h-stat-label {
  font-size: 0.85rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: "Poppins", sans-serif;
}

.h2h-matches {
  padding: 20px;
}

.h2h-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.h2h-match:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(8px);
}

.h2h-match:last-child {
  border-bottom: none;
}

.h2h-date {
  color: #888;
  font-size: 0.9rem;
  min-width: 100px;
  font-family: "Georgia", serif;
}

.h2h-teams {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-family: "Georgia", serif;
}

.h2h-score {
  font-weight: bold;
  color: #00ff88;
  min-width: 60px;
  text-align: center;
  background: rgba(0, 255, 136, 0.15);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
}

.premium-badge {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #000;
  padding: 8px 14px;
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-block;
  margin-left: 12px;
  animation: shine 3s infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Poppins", sans-serif;
}

@keyframes shine {
  0%, 100% { 
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6); 
  }
  50% { 
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.9),
                0 0 30px rgba(255, 215, 0, 0.6); 
  }
}

.expert-locked {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
}

.lock-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  opacity: 0.7;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7));
}

.unlock-btn {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #000;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.unlock-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.prediction-bars {
  margin-top: 25px;
}

.bar {
  height: 35px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.bar span {
  display: block;
  height: 100%;
  transition: width 0.6s ease;
  position: relative;
}

.bar span::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.home-bar {
  background: linear-gradient(90deg, var(--neon-green), rgba(0, 255, 136, 0.8));
}

.draw-bar {
  background: linear-gradient(90deg, #ffc107, rgba(255, 193, 7, 0.8));
}

.away-bar {
  background: linear-gradient(90deg, var(--electric-blue), rgba(0, 170, 255, 0.8));
}

.ai-output {
  background: rgba(0, 0, 0, 0.8);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 136, 0.4);
  line-height: 1.7;
  backdrop-filter: blur(15px);
  font-family: "Georgia", serif;
}

.loading {
  text-align: center;
  padding: 50px;
  color: var(--text-secondary);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 136, 0.5);
  margin: 20px auto;
  font-family: "Georgia", serif;
  font-size: 1.1rem;
}

.no-data {
  text-align: center;
  padding: 50px;
  color: var(--text-secondary);
  font-style: italic;
  backdrop-filter: blur(20px);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: "Georgia", serif;
  font-size: 1.1rem;
}

/* ⭐ НОВИ СТИЛОВЕ ЗА ВИЗУАЛНА ФОРМА */
.visual-form-container {
  width: 100%;
}

.visual-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.visual-form-team {
  margin-bottom: 25px;
}

.visual-team-header {
  text-align: center;
  margin-bottom: 15px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.visual-team-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--neon-green);
  font-family: "Playfair Display", serif;
}

.visual-matches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.visual-match-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.visual-match-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(5px);
}

.visual-match-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 60px;
}

.visual-result-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.visual-location {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 170, 255, 0.2);
  color: var(--electric-blue);
  border: 1px solid rgba(0, 170, 255, 0.4);
}

.visual-match-details {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.visual-opponent {
  color: var(--text-primary);
  font-weight: 600;
  font-family: "Georgia", serif;
  flex: 1;
}

.visual-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
  min-width: 90px;
  text-align: right;
}

.visual-score {
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
  min-width: 50px;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

/* Цветови схеми за резултати */
.visual-match-item.win {
  background: rgba(0, 255, 136, 0.1);
  border-left: 4px solid var(--neon-green);
}

.visual-match-item.draw {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
}

.visual-match-item.loss {
  background: rgba(255, 107, 107, 0.1);
  border-left: 4px solid #ff6b6b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .analysis-container { 
    padding: 100px 15px 30px; 
  }
  
  .teams { 
    flex-direction: row; 
    justify-content: space-between; 
    padding: 20px; 
    gap: 15px; 
    max-width: 95%; 
  }
  
  .team { 
    width: 130px; 
    padding: 10px;
  }
  
  .team img { 
    width: 90px; 
    height: 90px; 
    border-radius: 12px; 
  }
  
  .team-name { 
    font-size: 1rem; 
  }
  
  .vs { 
    font-size: 2rem; 
    margin: 0 8px; 
  }
  
  .section { 
    width: 98%; 
    padding: 20px; 
    margin: 20px auto; 
  }
  
  .section h2 { 
    font-size: 1.4rem; 
  }
  
  /* ⭐ МОБИЛНИ СТИЛОВЕ ЗА ОПТИМИЗИРАНА ФОРМА */
  .form-periods {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .period-stats-full span {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  
  .trends-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .trend-item {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
  
  .recent-match-item {
    padding: 10px 12px;
    font-size: 0.85rem;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .match-info {
    justify-content: center;
  }
  
  .matches-list {
    gap: 6px;
  }
  
  /* ⭐ МОБИЛНИ СТИЛОВЕ ЗА ВИЗУАЛНА ФОРМА */
  .visual-match-item {
    padding: 10px 12px;
    font-size: 0.85rem;
    gap: 8px;
  }
  
  .visual-match-indicator {
    min-width: 50px;
  }
  
  .visual-result-icon {
    font-size: 1rem;
  }
  
  .visual-location {
    font-size: 0.7rem;
    padding: 1px 4px;
  }
  
  .visual-match-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .visual-date {
    min-width: auto;
    text-align: left;
    font-size: 0.8rem;
  }
  
  .visual-score {
    padding: 4px 8px;
    font-size: 0.9rem;
  }
  
  .visual-opponent {
    font-size: 0.9rem;
  }
  
  /* ⭐ МОБИЛНИ СТИЛОВЕ ЗА АКТУАЛИЗИРАНА ПРОГНОЗА */
  .expert-prediction-v2 {
    padding: 20px;
  }
  
  .expert-title-v2 {
    font-size: 1.6rem;
  }
  
  .expert-subtitle-v2 {
    font-size: 1rem;
  }
  
  .prediction-outcome-main {
    font-size: 2rem;
  }
  
  .form-comparison-chart {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .form-chart-team {
    height: 250px;
  }
  
  .team-form-bars {
    height: 100px;
  }
  
  .form-bar {
    width: 20px;
  }
  
  .form-bar-label {
    font-size: 0.7rem;
    bottom: -22px;
  }
  
  .prediction-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat-card-v2 {
    padding: 15px;
  }
  
  .analysis-text {
    font-size: 1rem;
  }
  
  .expert-analysis-content {
    max-height: 500px;
    padding: 20px;
  }
  
  /* ⭐ МОБИЛНИ СТИЛОВЕ ЗА ЕКСПЕРТНА ПРОГНОЗА */
  .expert-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .expert-avatar {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
  
  .predicted-result {
    flex-direction: column;
    gap: 10px;
  }
  
  .prediction-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .stat-pill {
    padding: 10px;
  }
  
  /* ⭐ МОБИЛНИ СТИЛОВЕ ЗА КЛЮЧОВИ ФАКТОРИ */
  .factors-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .factor-card {
    padding: 15px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .factor-icon {
    margin-top: 0;
  }
  
  .form-strength-section {
    padding: 20px 15px;
  }
  
  .strength-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .strength-label {
    width: 100%;
  }
  
  .strength-progress {
    width: 100%;
  }
  
  .extended-stats-info {
    padding: 15px;
    margin-top: 15px;
  }
  
  .info-note {
    font-size: 0.85rem;
  }
  
  .info-note ul {
    margin-left: 15px;
  }
  
  .table-header, .h2h-header, .standings-header { 
    padding: 16px 12px; 
    font-size: 0.9rem; 
    grid-template-columns: 1.5fr 1fr 1fr; 
  }
  
  .standings-header { 
    grid-template-columns: 0.5fr 1.8fr 0.6fr 0.6fr 0.6fr; 
    font-size: 0.8rem; 
    padding: 14px 10px; 
  }
  
  .table-row { 
    padding: 14px 12px; 
    grid-template-columns: 1.5fr 1fr 1fr; 
  }
  
  .standings-row { 
    grid-template-columns: 0.5fr 1.8fr 0.6fr 0.6fr 0.6fr; 
    padding: 12px 10px; 
    font-size: 0.85rem; 
  }
  
  .stat-name { 
    font-size: 0.85rem; 
  }
  
  .standings-stat, .standings-team { 
    font-size: 0.8rem; 
    padding: 4px 3px; 
  }
  
  .standings-team { 
    font-size: 0.85rem; 
    padding: 5px 8px; 
  }
  
  .team-header { 
    font-size: 0.85rem; 
    padding: 8px 10px; 
  }
  
  .stat-value { 
    font-size: 0.85rem; 
    padding: 8px 10px; 
    min-width: 65px; 
  }
  
  .standings-value { 
    font-size: 0.8rem; 
    padding: 6px 3px; 
  }
  
  .standings-header .desktop-only, .standings-row .desktop-only { 
    display: none; 
  }
  
  .form-team-header { 
    font-size: 1.2rem; 
    padding: 12px 40px; 
    margin-bottom: 15px; 
  }
  
  .match-row { 
    padding: 12px 15px; 
    font-size: 0.9rem; 
  }
  
  .match-ha { 
    width: 22px; 
    font-size: 0.85rem; 
  }
  
  .match-vs { 
    font-size: 0.9rem; 
    margin: 0 10px; 
  }
  
  .match-score { 
    width: 45px; 
    font-size: 0.95rem; 
    padding: 7px; 
  }
  
  .team-stats { 
    grid-template-columns: repeat(2, 1fr); 
    padding: 15px 10px; 
    gap: 10px; 
  }
  
  .stat-value-large { 
    font-size: 1.2rem; 
  }
  
  .stat-label { 
    font-size: 0.8rem; 
  }
  
  .h2h-stats { 
    grid-template-columns: repeat(2, 1fr); 
    padding: 20px 12px; 
    gap: 10px; 
  }
  
  .h2h-match { 
    flex-direction: column; 
    gap: 10px; 
    text-align: center; 
    padding: 12px; 
  }
  
  .h2h-date { 
    min-width: auto; 
    font-size: 0.85rem; 
  }
  
  .h2h-teams { 
    font-size: 0.95rem; 
  }
  
  .premium-badge { 
    font-size: 0.75rem; 
    padding: 6px 10px; 
  }
  
  .expert-locked {
    padding: 30px 20px;
  }
  
  .lock-icon {
    font-size: 3rem;
  }
  
  .unlock-btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .analysis-container { 
    padding: 100px 10px 20px; 
  }
  
  .teams { 
    padding: 15px; 
    gap: 10px; 
  }
  
  .team { 
    width: 110px; 
  }
  
  .team img { 
    width: 75px; 
    height: 75px; 
  }
  
  .team-name { 
    font-size: 0.9rem; 
  }
  
  .vs { 
    font-size: 1.7rem; 
  }
  
  .section h2 { 
    font-size: 1.2rem; 
  }
  
  .period-stats-full span {
    font-size: 0.8rem;
    padding: 5px 8px;
  }
  
  .recent-match-item {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  
  .visual-match-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .visual-match-indicator {
    width: 100%;
    justify-content: flex-start;
  }
  
  .visual-match-details {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .prediction-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .prediction-outcome-main {
    font-size: 1.8rem;
  }
  
  .form-chart-team {
    height: 250px;
  }
  
  .team-form-bars {
    height: 80px;
  }
  
  .form-bar {
    width: 16px;
  }
  
  .form-bar-label {
    font-size: 0.65rem;
    bottom: -20px;
  }
  
  .loading, .no-data {
    padding: 30px 20px;
    font-size: 1rem;
  }
}

.nav-container {
  display: flex;
  justify-content: space-between; /* ← Това важи за ВСИЧКИ екрани */
}

.nav-links {
  margin-left: auto; /* ← Това важи за ВСИЧКИ екрани */
}

/* 👇 ТУК ЗАПОЧВА MOBILE ВЕРСИЯТА 👇 */
@media (max-width: 768px) {
  .nav-container {
    justify-content: center; /* ← Това ПРЕЗАПИСВА desktop стиловете само за mobile */
    flex-direction: column;
  }
  
  .nav-links {
    margin-left: 0; /* ← Това ПРЕЗАПИСВА desktop стиловете само за mobile */
  }
}

/* ⭐ НОВИ СТИЛОВЕ ЗА ГОЛОВЕ ПО МИНУТИ */
.goals-by-minute-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.goals-minute-title {
    color: var(--neon-green);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: "Playfair Display", serif;
}

.goals-minute-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.goals-minute-header {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 10px;
}

.teams-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.team-label {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
}

.team-label.home {
    color: var(--neon-green);
}

.team-label.away {
    color: var(--electric-blue);
}

.goals-minute-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 15px;
}

.minute-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    font-family: "Poppins", sans-serif;
}

.goals-bars {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 35px;
}

.goals-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-radius: 6px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
}

.goals-bar.home {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.3), rgba(0, 255, 136, 0.6));
    border: 1px solid rgba(0, 255, 136, 0.5);
}

.goals-bar.away {
    background: linear-gradient(90deg, rgba(0, 170, 255, 0.3), rgba(0, 170, 255, 0.6));
    border: 1px solid rgba(0, 170, 255, 0.5);
}

.goals-count {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: "Poppins", sans-serif;
}

.goals-percentage {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: "Poppins", sans-serif;
}

.goals-bar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive styles for goals by minute */
@media (max-width: 768px) {
    .goals-by-minute-section {
        padding: 15px;
        margin-top: 20px;
    }
    
    .goals-minute-title {
        font-size: 1.1rem;
    }
    
    .goals-minute-header {
        grid-template-columns: 60px 1fr;
        padding: 0 5px;
    }
    
    .goals-minute-row {
        grid-template-columns: 60px 1fr;
        gap: 10px;
    }
    
    .minute-label {
        font-size: 0.8rem;
    }
    
    .goals-bars {
        height: 30px;
        gap: 8px;
    }
    
    .goals-bar {
        padding: 0 8px;
        min-width: 50px;
    }
    
    .goals-count {
        font-size: 0.8rem;
    }
    
    .goals-percentage {
        font-size: 0.7rem;
    }
    
    .team-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .goals-by-minute-section {
        padding: 12px;
    }
    
    .goals-minute-header {
        grid-template-columns: 50px 1fr;
    }
    
    .goals-minute-row {
        grid-template-columns: 50px 1fr;
    }
    
    .minute-label {
        font-size: 0.75rem;
    }
    
    .goals-bars {
        height: 25px;
    }
    
    .goals-bar {
        padding: 0 6px;
        min-width: 45px;
    }
    
    .goals-count {
        font-size: 0.75rem;
    }
    
    .goals-percentage {
        font-size: 0.65rem;
    }
}

/* ⭐ FALLBACK СТИЛОВЕ АКО СЕКЦИИТЕ ЛИПСВАТ */
.goals-by-minute-section .no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-style: italic;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* ⭐ СТИЛОВЕ ЗА ГОЛОВЕ ПО МИНУТИ */
.goals-by-minute-container {
  width: 100%;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 255, 136, 0.3);
}
.minute-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
}
.legend-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 6px;
}
.legend-color.home {
  background: var(--neon-green);
}
.legend-color.away {
  background: var(--electric-blue);
}
.minute-chart {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.minute-period {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.minute-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  font-family: "Poppins", sans-serif;
}
.minute-bars {
  display: flex;
  height: 12px;
  gap: 4px;
}
.minute-bar {
  height: 100%;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.minute-bar.home {
  background: linear-gradient(90deg, var(--neon-green), rgba(0, 255, 136, 0.7));
  flex: 1;
}
.minute-bar.away {
  background: linear-gradient(90deg, var(--electric-blue), rgba(0, 170, 255, 0.7));
  flex: 1;
}
.minute-bar span {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .minute-legend {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .minute-bar span {
    font-size: 0.6rem;
    right: 2px;
  }
}

/* Стилове за новите таблици с голове по минути */
#goalsScoredByMinute .table-header,
#goalsConcededByMinute .table-header {
  grid-template-columns: 1.5fr 1fr 1fr !important;
}
#goalsScoredByMinute .table-row,
#goalsConcededByMinute .table-row {
  grid-template-columns: 1.5fr 1fr 1fr !important;
}
