.aps-premium-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  padding: 32px;
  margin-bottom: 32px;
  transition: all 0.3s ease;
}

.aps-premium-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.aps-premium-pattern {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 140px;
  height: 140px;
  opacity: 0.08;
  color: #2563eb;
  animation: aps-float-standings 12s ease-in-out infinite;
}

.aps-premium-pattern--schedule {
  color: #4f46e5;
  animation-name: aps-float-schedule;
}

.aps-premium-pattern svg {
  width: 100%;
  height: 100%;
}

.aps-premium-header {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.aps-premium-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.aps-premium-icon--schedule {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.35);
}

.aps-premium-icon svg {
  width: 26px;
  height: 26px;
}

.aps-premium-title h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.aps-premium-title p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.aps-premium-count {
  margin-top: 10px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #2563eb;
  font-weight: 700;
}

.aps-premium-count small {
  font-weight: 500;
  color: #94a3b8;
}

.aps-standings-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.aps-standings-filter label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.aps-standings-filter select {
  appearance: none;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.12);
  transition: all 0.3s ease;
}

.aps-standings-filter select:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
  border-color: #2563eb;
}

.aps-premium-content {
  position: relative;
  z-index: 2;
}

.aps-standings-table-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.aps-standings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.aps-standings-table thead th {
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f8fafc;
}

.aps-standings-table tbody td {
  padding: 12px 14px;
  font-size: 14px;
  color: #0f172a;
  border-top: 1px solid #f1f5f9;
}

.aps-team-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.aps-team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.aps-team-name {
  font-weight: 600;
}

.aps-standings-table tbody tr {
  transition: all 0.3s ease;
}

.aps-standings-table tbody tr:hover {
  background: #eff6ff;
}

.aps-standings-empty {
  padding: 18px;
  color: #64748b;
}

.aps-competition-standings.is-loading .aps-standings-table-wrapper {
  opacity: 0.6;
  filter: blur(1px);
}

.aps-competition-standings.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
}

@keyframes aps-float-standings {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(6deg);
  }
}

@keyframes aps-float-schedule {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-6deg);
  }
}

.aps-schedule-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.aps-schedule-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.aps-schedule-filter label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.aps-schedule-filter select {
  appearance: none;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.12);
  transition: all 0.3s ease;
}

.aps-schedule-filter select:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
}

.aps-schedule-empty {
  padding: 18px;
  color: #64748b;
}

.aps-schedule-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.aps-schedule-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aps-schedule-tab:hover {
  color: #4f46e5;
}

.aps-schedule-tab.is-active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
}

.aps-schedule-tab-count {
  font-weight: 500;
  color: #94a3b8;
  margin-left: 4px;
}

.aps-schedule-tab-panels {
  margin-top: 0;
}

.aps-schedule-tab-panel {
  display: block;
}

.aps-schedule-tab-panel[aria-hidden="true"] {
  display: none;
}

.aps-schedule-item-premium.aps-schedule-item--filtered,
.aps-schedule-item-premium.aps-schedule-item--hidden {
  display: none !important;
}

.aps-schedule-pagination {
  margin-top: 20px;
  text-align: center;
}

.aps-schedule-load-more {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aps-schedule-load-more:hover {
  background: #e0e7ff;
  border-color: #4f46e5;
  color: #3730a3;
}

.aps-schedule-list-premium {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.aps-schedule-item-premium {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
  transition: all 0.3s ease;
}

.aps-schedule-item-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.aps-schedule-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.aps-schedule-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
}

.aps-schedule-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.aps-schedule-team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #0f172a;
}

.aps-schedule-team img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  object-fit: contain;
}

.aps-schedule-score {
  min-width: 70px;
  text-align: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e1b4b;
  font-weight: 700;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.aps-schedule-badge {
  font-size: 11px;
  font-weight: 600;
  color: #1e1b4b;
  background: #ffffff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 2px 10px;
  max-width: 140px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.aps-schedule-date {
  font-size: 13px;
  color: #64748b;
  text-align: right;
}

@media (max-width: 768px) {
  .aps-premium-card {
    padding: 24px;
  }

  .aps-premium-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .aps-standings-filter {
    width: 100%;
  }

  .aps-schedule-filters {
    width: 100%;
  }

  .aps-schedule-filter {
    width: 100%;
  }

  .aps-schedule-teams {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .aps-schedule-date {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .aps-premium-card {
    padding: 16px;
  }

  .aps-premium-title h3 {
    font-size: 20px;
  }

  .aps-standings-table {
    min-width: 560px;
  }
}

/* ========== Head2Head (Historical data) – Indigo theme ========== */
.aps-premium-card--h2h {
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
}

.aps-premium-card--h2h:hover {
  box-shadow: 0 24px 48px rgba(79, 70, 229, 0.12);
}

.aps-premium-pattern--h2h {
  color: #4f46e5;
  animation-name: aps-float-h2h;
}

.aps-premium-icon--h2h {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.35);
}

.aps-premium-count--h2h {
  color: #4f46e5;
}

@keyframes aps-float-h2h {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(8deg);
  }
}

.aps-h2h-empty {
  padding: 24px;
  color: #64748b;
  text-align: center;
}

.aps-h2h-versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid #e0e7ff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
}

.aps-h2h-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.aps-h2h-team-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}

.aps-h2h-vs {
  font-size: 14px;
  font-weight: 800;
  color: #4f46e5;
  letter-spacing: 0.08em;
}

.aps-h2h-form {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.aps-h2h-form-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.aps-h2h-form-dot--w {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.aps-h2h-form-dot--d {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.aps-h2h-form-dot--l {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.aps-h2h-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.aps-h2h-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.aps-h2h-stats-row--goals .aps-h2h-stats-value {
  font-weight: 700;
  color: #4f46e5;
}

.aps-h2h-stats-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.aps-h2h-stats-value {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.aps-h2h-results-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px 0;
}

.aps-h2h-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.aps-h2h-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px 18px;
  display: grid;
  gap: 8px;
  transition: all 0.3s ease;
}

.aps-h2h-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.1);
}

.aps-h2h-item.aps-h2h-item--hidden {
  display: none !important;
}

.aps-h2h-item-meta {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.aps-h2h-item-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.aps-h2h-item-team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #0f172a;
}

.aps-h2h-item-team img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  object-fit: contain;
}

.aps-h2h-item-score {
  min-width: 56px;
  text-align: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e1b4b;
  font-weight: 700;
  font-size: 15px;
}

.aps-h2h-item-date {
  font-size: 13px;
  color: #64748b;
  text-align: right;
}

.aps-h2h-pagination {
  margin-top: 20px;
  text-align: center;
}

.aps-h2h-load-more {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aps-h2h-load-more:hover {
  background: #e0e7ff;
  border-color: #4f46e5;
  color: #3730a3;
}

@media (max-width: 768px) {
  .aps-h2h-versus {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .aps-h2h-item-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .aps-h2h-item-date {
    text-align: center;
  }
}

/* ========== Injuries & Suspensions – Orange theme + dark header ========== */
.aps-premium-card--sidelined {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  overflow: visible;
}

.aps-premium-card--sidelined:hover {
  box-shadow: 0 24px 48px rgba(234, 88, 12, 0.1);
}

.aps-premium-pattern--sidelined {
  color: #ea580c;
  animation-name: aps-float-sidelined;
}

@keyframes aps-float-sidelined {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-5deg);
  }
}

.aps-sidelined-content {
  padding-top: 0;
}

.aps-sidelined-divider {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.aps-sidelined-divider::before,
.aps-sidelined-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.aps-sidelined-divider-text {
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aps-sidelined-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.aps-sidelined-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.aps-sidelined-col-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.aps-sidelined-col-count {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.aps-sidelined-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aps-sidelined-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
}

.aps-sidelined-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.1);
  border-color: #fed7aa;
}

.aps-sidelined-card-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.aps-sidelined-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.aps-sidelined-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.aps-sidelined-card-type {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.aps-sidelined-card-return {
  font-size: 12px;
  color: #ea580c;
  font-weight: 600;
}

@media (max-width: 768px) {
  .aps-sidelined-columns {
    grid-template-columns: 1fr;
  }
}

/* ========== Team Recent Form – blue-50 theme ========== */
.aps-team-recent-form.aps-premium-card--recent-form {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.aps-premium-card--recent-form:hover {
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.12);
}

.aps-premium-pattern--recent-form {
  color: #2563eb;
  animation-name: aps-float-recent-form;
}

.aps-premium-icon--recent-form {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.aps-premium-count--recent-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  font-weight: 700;
}

.aps-team-recent-form-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #dbeafe;
  object-fit: contain;
  background: #fff;
}

@keyframes aps-float-recent-form {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.aps-team-recent-form-empty {
  padding: 24px;
  color: #64748b;
  text-align: center;
}

.aps-results-summary {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid #e0e7ff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.aps-result-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aps-result-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
}

.aps-result-item--wins .aps-result-value {
  color: #16a34a;
}

.aps-result-item--draws .aps-result-value {
  color: #64748b;
}

.aps-result-item--losses .aps-result-value {
  color: #dc2626;
}

.aps-result-item small {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.aps-form-row {
  margin-bottom: 24px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.aps-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 10px;
}

.aps-form-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.aps-form-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.aps-form-dot--w {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.aps-form-dot--d {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.aps-form-dot--l {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.aps-xg-section {
  margin-bottom: 24px;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}

.aps-xg-title,
.aps-key-stats-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px 0;
}

.aps-xg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.aps-xg-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #eff6ff;
  border-radius: 12px;
}

.aps-xg-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.aps-xg-value {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
}

.aps-key-stats {
  padding: 18px 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.aps-key-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.aps-key-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.aps-key-stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.aps-key-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

@media (max-width: 768px) {
  .aps-results-summary {
    flex-direction: column;
    gap: 12px;
  }

  .aps-xg-row {
    grid-template-columns: 1fr;
  }
}

/* ========== Events Timeline – amber/yellow-50 theme (Livescores & Events) ========== */
.aps-events-timeline.aps-premium-card--timeline {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.aps-premium-card--timeline:hover {
  box-shadow: 0 24px 48px rgba(245, 158, 11, 0.12);
}

.aps-premium-pattern--timeline {
  color: #d97706;
  animation-name: aps-float-timeline;
}

.aps-premium-icon--timeline {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.35);
}

.aps-premium-count--timeline {
  color: #d97706;
}

@keyframes aps-float-timeline {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-5deg);
  }
}

.aps-timeline-fixture-header {
  margin-bottom: 24px;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.aps-timeline-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.aps-timeline-team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #0f172a;
}

.aps-timeline-team img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.aps-timeline-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.aps-timeline-score-value {
  font-size: 20px;
  font-weight: 800;
  color: #d97706;
}

.aps-timeline-state {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.aps-timeline-fixture-name,
.aps-timeline-league {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.aps-timeline-league {
  font-weight: 500;
  color: #64748b;
  font-size: 14px;
}

.aps-timeline-meta {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: #64748b;
}

.aps-timeline-empty {
  padding: 24px;
  color: #64748b;
  text-align: center;
}

.aps-timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  padding-left: 0;
}

.aps-timeline-list::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, #fde68a 0%, #fcd34d 50%, #f59e0b 100%);
  border-radius: 2px;
}

.aps-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 40px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  min-height: 44px;
}

.aps-timeline-item:not(:last-child) {
  border-bottom: 1px solid #fef3c7;
}

.aps-timeline-time {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  text-align: right;
  padding-top: 2px;
}

.aps-timeline-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.aps-timeline-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.aps-timeline-icon--goal {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.aps-timeline-icon--penalty {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

.aps-timeline-icon--yellowcard {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.aps-timeline-icon--redcard {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.aps-timeline-icon--substitution {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.aps-timeline-icon--var {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.aps-timeline-content {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-size: 14px;
  color: #0f172a;
}

.aps-timeline-result {
  font-weight: 800;
  color: #16a34a;
  margin-right: 4px;
}

.aps-timeline-player {
  font-weight: 600;
}

.aps-timeline-arrow {
  color: #64748b;
  font-weight: 700;
}

.aps-timeline-related {
  color: #64748b;
  font-weight: 500;
}

.aps-timeline-addition {
  font-size: 12px;
  color: #92400e;
  font-weight: 600;
}

.aps-timeline-info {
  font-size: 12px;
  color: #64748b;
  font-style: italic;
}

.aps-timeline-item--home .aps-timeline-content {
  border-left: 3px solid #f59e0b;
  padding-left: 10px;
}

.aps-timeline-item--away .aps-timeline-content {
  border-left: 3px solid #94a3b8;
  padding-left: 10px;
}

@media (max-width: 768px) {
  .aps-timeline-teams {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .aps-timeline-item {
    grid-template-columns: 40px 32px 1fr;
    gap: 10px;
  }

  .aps-timeline-list::before {
    left: 15px;
  }
}
