:root{
  --bg: #0d0f11;
  --panel: #1a1e22;
  --panel-2: #21262b;
  --border: #2d3439;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --green: #00e676;
  --red: #ff3b3b;
}

*{ box-sizing: border-box; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-width: 1400px;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header{
  background: #000;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

/* Layout */
.app-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    /* 必须保留下面这几行 */
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 15px;
    padding: 15px 0;
    flex: 1;
}

/* Cards / sections */
.sidebar-section{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.section-title{
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #00e676;
  margin-bottom: 14px;
}

/* =========================
   NEW: Left Sidebar Items (修复补充)
   ========================= */
[data-action="filter-league"] {
  transition: all 0.15s ease-in-out;
  border-left: 2px solid transparent;
}

[data-action="filter-league"]:hover {
  background-color: #252b31;
}

/* 选中高亮状态 */
[data-action="filter-league"].bg-\[\#252b31\] {
  border-left-color: var(--green);
}

#countries-list img, #pinned-leagues img {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

#pinned-leagues li {
  transition: background 0.2s;
}

/* =========================
   Main card & Tabs
   ========================= */
.main-card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.tabs-nav{
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 18px;
  padding: 0 15px;
  height: 50px;
  align-items: center;
}

.tab-btn{
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 11px;
  color: #7b8794;
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
  position: relative;
  padding: 0 2px;
}

.tab-btn.active{
  color: var(--green);
}

.tab-btn.active::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--green);
}

/* Date row */
/* Date Navigation Row */
.date-row{
  background: #1a1e22;
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

/* Date Navigation Center Container */
.date-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 650px; /* Fixed width to prevent layout shift */
}

/* Back to Today Button */
.back-to-today-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: transparent;
  border: 1.5px solid var(--green);
  border-radius: 5px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.back-to-today-btn:hover {
  background: var(--green);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.3);
}

.back-to-today-btn i {
  font-size: 10px;
}

/* Date Navigation Buttons */
.date-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #2d3439;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.date-nav-btn:hover {
  background: #2d3439;
  border-color: var(--green);
  color: var(--green);
}

.date-nav-btn i {
  font-size: 11px;
}

/* Date Strip */
.date-strip{
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

/* Date Chip */
.date-chip{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: transparent;
  min-width: 60px;
}

.date-chip:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(0, 230, 118, 0.3);
}

.date-chip .d1{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  color: #9ca3af;
  margin-bottom: 2px;
  transition: color 0.3s;
}

.date-chip .d2{
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b7280;
  text-transform: uppercase;
  transition: color 0.3s;
}

.date-chip.active{
  background: transparent;
  border-color: var(--green);
}

.date-chip.active .d1{
  color: var(--green);
  font-size: 13px;
}

.date-chip.active .d2{
  color: var(--green);
}

/* Date Input (Calendar Picker) */
.date-input {
  padding: 5px 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
  justify-self: end;
}

.date-input:hover {
  border-color: var(--green);
  background: var(--panel-2);
}

.date-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
}

/* Fixtures */
.loading-placeholder {
  padding: 80px 20px;
  text-align: center;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.league-flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  opacity: .95;
}

.league-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

/* 1. 比赛行基础容器 */
.match-row {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 10px 15px;
  gap: 0;
  transition: background 0.2s;
  position: relative;
  cursor: pointer;
  border-left: 3px solid transparent; /* 增加这一行，防止边框出现时内容闪动 */
}

.match-row:hover {
  background: #21262b;
}

/* 放置在这里：激活行的样式 */
.match-row.is-active {
    background: #252b31;
    border-left: 3px solid var(--green) !important; /* 使用绿色标记正在查看的比赛 */
    padding-left: 12px; /* 稍微缩进以补偿 border 宽度，保持内容对齐 */
}

/* 如果该行本来就是 LIVE，为了避免颜色冲突，可以做如下微调 */
.match-row.is-active:has(.live-time) {
    border-left-color: var(--green); /* 强制覆盖直播的红色边框 */
}

/* 2. 左侧组：时间 + 球队 */
.match-left-group {
  display: flex;
  align-items: center;
  flex: 1; 
  gap: 15px;
}

.match-left-group .status-cell {
  width: 45px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.teams-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-line .team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.team-line .team-name {
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
}

/* 3. 中间组：比分 + 垂直线条 */
.score-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scores-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 25px;
  text-align: right;
}

.team-score {
  font-family: 'Inter', sans-serif;
  font-weight: 550;
  font-size: 13px;
  color: #fff;
  line-height: 1.4;
}

.vertical-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 5px;
}

/* 4. 右侧组：功能按钮 + 星星 */
.match-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-left: 10px;
  z-index: 5;
}

/* 按钮基础样式 */
.live-btn, .odds-btn {
  height: 22px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid #3a3f45;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease; /* 增加平滑过渡效果 */
  cursor: pointer;           /* 确保鼠标变成手型 */
}

/* --- LIVE 按钮激活状态 (正在直播) --- */
.live-btn.active {
  color: #fff;
  border-color: #ff4d4f;
  background: #be0e11; /* 初始状态给一个实色或明显的浅色 */
}

/* 新增：LIVE 按钮悬停效果 */
.live-btn.active:hover {
  background: #ff7875;     /* 悬停时颜色变浅变亮 */
  border-color: #ff7875;
  box-shadow: 0 0 10px rgba(255, 77, 79, 0.4); /* 增加发光感 */
  transform: translateY(-1px); /* 轻微上浮感 */
}

/* --- LIVE 按钮非激活状态 --- */
.live-btn.inactive {
  color: #4b5563;
  border-color: #3a3f45;
  background: transparent;
  cursor: not-allowed;
  opacity: 0.6;
}

.live-btn.inactive:hover {
  background: transparent;
  color: #4b5563;
  border-color: #3a3f45;
  transform: none;
  box-shadow: none;
}

/* Disabled button state */
.live-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* ODDS 按钮悬停保持你原来的效果 */
.odds-btn:hover {
  border-color: #00e676;
  color: #00e676;
  background: rgba(0, 230, 118, 0.05);
}

/* 星星移至最末尾 */
.star-btn {
  cursor: pointer;
  font-size: 15px;
  color: #4b5563;
  padding: 0 5px;
  transition: all 0.2s;
}

.star-btn:hover { color: #cbd5e1; }
.star-btn.on { color: #fbbf24 !important; }

/* 🔴 LIVE 状态效果 */
.live-time { color: #ff3b3b; font-weight: 800; }

.live-dot {
  width: 6px;
  height: 6px;
  background: #ff3b3b;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(255,59,59,.55); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255,59,59,0); }
  100% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(255,59,59,0); }
}

.match-row:has(.live-time) {
  border-left: 2px solid #ff3b3b;
  padding-left: 12px;
}

/* Right: Featured live */
.featured-header{
  background: #64031b;
  color: #fff;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.featured-nav{ color: rgba(255,255,255,.9); cursor: pointer; }
.featured-nav:hover{ color: #000; }

.featured-body{
  padding: 16px;
  background: #000;
  color: #fff;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* News */
.news-header{
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.news-link{
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
}
.news-link:hover{ text-decoration: underline; }

.news-item{
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  border-left: 2px solid transparent;
}
.news-item:hover{
  background: #252b31;
  border-left-color: var(--green);
}
.news-title{
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.35;
  margin-bottom: 6px;
}
.news-meta{
  display: flex;
  gap: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #6b7280;
}
.news-meta .tag{ color: var(--green); }

/* Footer */
.site-footer{
  background: #000;
  border-top: 1px solid var(--border);
  padding: 40px 0 18px;
  margin-top: 40px;
}
.footer-content{
  width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-title{
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.footer-link{
  display: block;
  font-size: 11px;
  color: #9aa6b2;
  margin-bottom: 12px;
}
.footer-link:hover{ color: var(--green); }

.footer-safe{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.footer-bottom{
  width: 1400px;
  margin: 18px auto 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  text-align: center;
  color: #3f4a54;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .3em;
}

/* =========================
   Date Picker – FINAL TUNING
   ========================= */
input[type="date"] {
  position: relative;
  top: -3px; 
  width: 115px;
  height: 32px;
  background-color: #0f1724;
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  padding: 6px 10px 6px 10px;
  font-size: 13px;
  line-height: 1;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.9;
  width: 16px;
  height: 18px;
  margin-right: 0px;
  filter: invert(1);
}

input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

/* ===================================================
   LEFT SIDEBAR - COMPETITIONS & PINNED STYLES
   =================================================== */

/* 1. 列表基础样式 */
#top-competitions, #all-competitions, #pinned-leagues, #countries-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 2. 联赛项布局：仿照图3效果 */
[data-action="filter-league"] {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 2px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* 鼠标悬停及选中状态 */
[data-action="filter-league"]:hover {
    background-color: #252b31;
}

[data-action="filter-league"].active, 
[data-action="filter-league"][style*="background"] { /* 兼容JS直接改背景的情况 */
    background-color: #252b31 !important;
}

/* ===== League Logo: Circle / Badge (Always Color) ===== */
[data-action="filter-league"] img {
    width: 32px;
    height: 32px;
    object-fit: contain;

    background: #ffffff;
    padding: 5px;
    border-radius: 50%;

    box-shadow:
      0 1px 3px rgba(0,0,0,0.25),
      inset 0 0 0 1px rgba(0,0,0,0.08);

    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

/* 4. 文字布局：联赛名+国家名 */
.flex-col {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
    overflow: hidden;
}

.text-gray-200 { /* 联赛名 */
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.text-gray-500 { /* 国家名 */
    color: #64748b;
    font-size: 10px;
    margin-top: 2px;
}

/* 悬停时联赛名变绿 (仿照主流UI) */
[data-action="filter-league"]:hover .text-gray-200 {
    color: #00e676;
}

/* 5. 折叠箭头旋转 */
#comp-chevron {
    transition: transform 0.3s ease;
    color: #64748b;
}

/* 6. Pinned League 专属样式 (带图钉图标) */
#pinned-leagues li i {
    font-size: 10px;
    color: #00e676;
    margin-right: 8px;
}

/* 7. 隐藏列表的过渡 */
.hidden {
    display: none !important;
}

/* 自定义左侧滚动条 */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #3f474e;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #00e676;
}

/* 强制 Header 内部所有元素垂直居中 */
.site-header .flex {
    display: flex;
    align-items: center; /* 关键：解决偏高问题 */
}

/* 统一导航链接的样式 */
.site-header nav {
    display: flex;
    align-items: center;
    gap: 32px;      /* 统一 Football 和 News 之间的间距 */
    margin-left: 40px; /* 增加 LOGO 和文字之间的间距，解决太靠左 */
    height: 100%; /* 确保导航栏占满 Header 高度 */
}

.site-header nav a {
    font-size: 13px;       /* 统一字体大小 */
    font-weight: 700;      /* 统一粗细 */
    text-transform: uppercase;
    letter-spacing: 1px;   /* 增加字间距，看起来更高级 */
    line-height: 1;        /* 消除行高导致的偏移 */
    display: flex;
    align-items: center;   /* 确保文字在 A 标签内部也居中 */
    height: 100%; /* 关键：让点击区域占满高度，且文字垂直居中 */
    transition: color 0.2s; /* 增加平滑过渡 */
}

/* 针对 FOOTBALL 的特殊绿色 */
.site-header nav a:first-child {
    color: #00e676;
}

/* 针对 NEWS 的灰色 */
.site-header nav a:last-child {
    color: #64748b;
}

/* ===================================================
   FIX: RIGHT SIDEBAR FEATURED LIVE (RED BOX AREA)
   =================================================== */

/* 1. 强制右侧比分为白色 */
.featured-body .score, 
.featured-body .score.live,
#live-carousel-content .score {
    color: #ffffff !important; 
    font-size: 24px !important;  /* 调大比分数字 */
    font-weight: 800;
}

/* 2. 调大右侧直播时间 (40' LIVE) */
.featured-body .status-cell,
#live-carousel-content .status-cell {
    font-size: 16px !important;  /* 调大时间 */
    font-weight: 700;
    color: #ff3b3b !important;   /* 确保 LIVE 时间是醒目的红色 */
    display: flex;
    flex-direction: column;      /* 让时间在比分下方居中显示 */
    align-items: center;
    margin-top: 10px;
}

/* 3. 如果想让右边球队名字也大一点 */
.featured-body .team-name {
    font-size: 14px;
    font-weight: 600;
}

.chart-btn:hover {
  color: var(--green);
  border-color: var(--green);
  background: rgba(0, 230, 118, 0.08);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; backdrop-filter: blur(4px);
}
.modal-overlay.hidden { display: none; }

/* Modal Box */
.modal-content {
    background: #1a1e22;
    width: 600px; max-height: 85vh;
    border-radius: 12px; border: 1px solid #2d3439;
    position: relative; overflow-y: auto;
    padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.close-btn {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; color: #6b7280;
    font-size: 24px; cursor: pointer; z-index: 10;
}

/* ===================================================
   INLINE MATCH DETAIL (中间栏展开式)
   =================================================== */

.inline-match-detail {
    background: var(--panel);
    border: 2px solid #00e676;
    border-radius: 12px;
    margin: 15px 0;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 8px 24px rgba(0, 230, 118, 0.15);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 2000px;
    }
}

.inline-detail-content {
    position: relative;
}

.inline-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.inline-close-btn:hover {
    background: #ff3b3b;
    color: white;
    border-color: #ff3b3b;
    transform: rotate(90deg);
}

/* Match Header */
.inline-match-header {
    background: linear-gradient(135deg, #1a1e22 0%, #252b31 100%);
    padding: 30px 20px;
    border-bottom: 2px solid #00e676;
}

.inline-teams-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.inline-team {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.inline-team-home {
    justify-content: flex-start;
}

.inline-team-away {
    justify-content: flex-end;
}

.inline-team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.inline-team-name {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
}

.inline-score-section {
    text-align: center;
    padding: 0 30px;
}

.inline-score {
    font-size: 48px;
    font-weight: 900;
    color: #00e676;
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.inline-status {
    font-size: 13px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inline-match-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.inline-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.inline-info-item i {
    color: #00e676;
}

/* Tabs */
.inline-detail-tabs {
    display: flex;
    background: var(--panel-2);
    border-bottom: 2px solid var(--border);
    padding: 0 20px;
    gap: 5px;
}

.inline-tab {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-tab:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
}

.inline-tab.active {
    color: #00e676;
    border-bottom-color: #00e676;
    background: rgba(0, 230, 118, 0.05);
}

.inline-tab i {
    font-size: 14px;
}

/* Tab Content */
.inline-tab-content {
    padding: 25px;
    min-height: 400px;
    background: var(--panel);
}

.inline-detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.inline-detail-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #00e676;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.inline-detail-error {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.inline-detail-error i {
    font-size: 48px;
    color: #ff3b3b;
    margin-bottom: 15px;
}

.inline-detail-error h3 {
    color: #e2e8f0;
    margin-bottom: 10px;
}

.retry-btn {
    background: #00e676;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.retry-btn:hover {
    background: #00c853;
    transform: translateY(-2px);
}

/* 移除滚动条但保持滚动功能 */
.inline-tab-content::-webkit-scrollbar {
    display: none;
}

.inline-tab-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Trends在内联模式下的特殊样式 */
.inline-tab-content .trends-advanced-container {
    border: none;
    border-radius: 0;
}

.inline-tab-content .trends-charts-section {
    grid-template-columns: 1fr 1fr 1fr;
}

/* 弹窗内部：比分头部 */
.modal-header-box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--panel-2);
}
.modal-header-box .team { flex-direction: column; gap: 8px; }
.modal-header-box .team-logo { width: 50px; height: 50px; }
.modal-header-box .score-big { font-size: 32px; font-weight: 800; color: #fff; }

/* 统计数据布局 */
.stats-container {
    padding: 10px 5px;
}

.stat-item {
    margin-bottom: 20px;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #cbd5e1;
    white-space: nowrap; /* 强制不换行 */
}

/* 弹窗动画 */
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-content {
    animation: modalSlideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 背景遮罩层加一点磨砂玻璃感 */
.modal-overlay {
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.7) !important;
}

/* ===================================================
   SIDEBAR MATCH DETAIL PANEL OPTIMIZATION (窄屏优化)
   =================================================== */

/* 1. 容器内部排版 */
#right-panel-body {
    padding: 15px;
    background: #1a1e22;
}

/* 2. 比分头部：在 300px 宽度下垂直排列或紧凑排列 */
#right-panel-body .modal-header-box {
    flex-direction: row; 
    justify-content: space-between;
    padding: 10px 0 20px 0;
    border-bottom: 1px solid #2d3439;
}

#right-panel-body .team {
    flex: 1;
    flex-direction: column !important; /* Logo 在上，名字在下 */
    gap: 5px;
    text-align: center;
}

#right-panel-body .team-logo {
    width: 32px !important; /* 缩小 Logo */
    height: 32px !important;
}

#right-panel-body .team-name {
    font-size: 11px !important;
    max-width: 80px;
    text-align: center;
    white-space: normal; /* 允许换行 */
    line-height: 1.2;
}

#right-panel-body .score-big {
    font-size: 24px !important; /* 缩小比分数字 */
    margin: 0 10px;
    color: var(--green);
}

/* 3. Tab 切换按钮缩小 */
#right-panel-body .modal-tabs {
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

#right-panel-body .modal-tab-item {
    font-size: 10px;
    letter-spacing: 1px;
}

/* 4. 统计条微调：让它更细，适合侧边栏 */
#right-panel-body .stat-item {
    margin-bottom: 15px;
}

#right-panel-body .stat-info {
    font-size: 10px;
    margin-bottom: 4px;
}


/* 5. 事件列表（Summary）紧凑化 */
#right-panel-body .event-row {
    grid-template-columns: 30px 1fr 25px; /* 侧边栏不需要左右对称，单列显示更好 */
    padding: 8px 0;
    font-size: 11px;
}

#right-panel-body .event-detail {
    font-size: 11px;
}

/* 隐藏在侧边栏不需要的列（如果是双边布局的话） */
#right-panel-body .event-row > div:nth-child(4) {
    display: none; 
}

/* --- Match Detail Panel (Right Sidebar) --- */
.detail-panel {
    margin-top: 1rem;
    background: #1a1e22;
    border: 1px solid #2d3439;
    border-radius: 8px;
    overflow: hidden;
}


.detail-header {
    background: #252b31;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.detail-title {
    font-size: 11px;
    color: #00e676;
    font-weight: bold;
    text-transform: uppercase;
}

.close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

/* Tabs in Detail Panel */
.modal-tabs {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 10px;
    border-bottom: 1px solid #2d3439;
    scrollbar-width: none; /* Firefox */
}
.modal-tabs::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.modal-tab-item {
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    white-space: nowrap;
    padding-bottom: 5px;
    transition: color 0.2s;
}

.modal-tab-item.active {
    color: #00e676;
    border-bottom: 2px solid #00e676;
}

/* Stats Style */
.stats-container { padding: 10px 5px; }
.stat-item { margin-bottom: 15px; }
.stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 6px;
    color: #cbd5e1;
}


/* Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    color: var(--muted);
    font-size: 12px;
}

  .spinner {
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--green);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#match-detail-panel {
    width: 100%;
    box-sizing: border-box;
}

.detail-panel.hidden {
    display: none !important;
}

/* 右侧 aside 变成滚动容器 */
.app-container > aside:last-child {
  display: flex;
  flex-direction: column;
}

/* Detail panel 吸附在 Featured Live 下方 */
#match-detail-panel {
  position: sticky;
  top: 80px;
}


/* ===== Summary: 2-column align + center line ===== */
.events-container.events-2col{
  position: relative;
}

.events-container.events-2col::before{
  content:"";
  position:absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 1px;
  background: rgba(255,255,255,0.08);
  transform: translateX(-0.5px);
}

.events-container.events-2col .event-row{
  display: grid;
  grid-template-columns: 44px 1fr 40px 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 10px;
  border-bottom: 1px solid #252b31;
}

.events-container.events-2col .event-time{
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-align: left;
}

.events-container.events-2col .event-side{
  font-size: 12px;
  color: #e2e8f0;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.events-container.events-2col .event-side.home{ text-align: right; padding-right: 6px; }
.events-container.events-2col .event-side.away{ text-align: left;  padding-left: 6px; }

.events-container.events-2col .event-mid{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 40px;
}

.events-container.events-2col .event-icon{
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.event-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.events-container .event-icon .event-icon-goal,
.event-icon-goal {
  color: #10b981 !important;
}

.events-container .event-icon .event-icon-yellow,
.event-icon-yellow {
  color: #fbbf24 !important;
  font-size: 14px;
}

.events-container .event-icon .event-icon-red,
.event-icon-red {
  color: #ef4444 !important;
  font-size: 14px;
}

.events-container .event-icon .event-icon-sub,
.event-icon-sub {
  color: #60a5fa !important;
}


/* ===== Stats: animate + leading highlight ===== */
.stat-bar-bg{
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
  display:flex;
}

.stat-bar-home,
.stat-bar-away{
  height: 100%;
  transition: width 0.5s ease;
}

.stat-bar-home{ background: rgba(0,230,118,0.55); }
.stat-bar-away{ background: rgba(148,163,184,0.35); }

.stat-bar-home.lead{ background: rgba(0,230,118,0.9); }
.stat-bar-away.lead{ background: rgba(148,163,184,0.55); }

.stat-side.lead{
  color: #e2e8f0;
  font-weight: 800;
}

.stat-type{
  color: #94a3b8;
  font-weight: 700;
}


/* ===============================
   LINEUPS – REAL FOOTBALL PITCH
   =============================== */

.pitch {
  position: relative;
  width: 100%;
  height: 480px;

  background-color: #388e3c;
  background-image: repeating-linear-gradient(
    to bottom,
    #388e3c,
    #388e3c 40px,
    #43a047 40px,
    #43a047 80px
  );

  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.2);
}

/* 👉 中轴线（视觉锚点，关键） */
.pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.08);
  transform: translateX(-0.5px);
  pointer-events: none;
}

/* pitch markings */
.pitch-markings > div {
  position: absolute;
  border: 2px solid rgba(255,255,255,0.4);
  pointer-events: none;
}

.half-line {
  top: 50%;
  left: 0;
  width: 100%;
  border-bottom: 2px solid rgba(255,255,255,0.4);
}

.center-circle {
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.penalty-area {
  left: 15%;
  width: 70%;
  height: 16%;
}
.penalty-area.top { top: 0; border-top: none; }
.penalty-area.bottom { bottom: 0; border-bottom: none; }

.goal-area {
  left: 30%;
  width: 40%;
  height: 6%;
}
.goal-area.top { top: 0; border-top: none; }
.goal-area.bottom { bottom: 0; border-bottom: none; }

/* players */
.player-dot {
  position: absolute;
  transform: translate(-50%, -50%); /* 确保点的几何中心对准 left/top */
  width: 60px; /* 适当加宽，给名字留空间，防止溢出导致的视觉偏移 */
  display: flex; /* 开启 Flex */
  flex-direction: column;
  align-items: center; /* 强制所有子元素（球衣、名字）水平居中 */
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.player-dot .shirt {
  width: 28px; /* 稍微加大一点，视觉更饱满 */
  height: 28px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  /* 确保球衣圆点自己也是绝对圆心对齐 */
  flex-shrink: 0; 
}

.home-p .shirt { background: #1e88e5; }
.away-p .shirt { background: #e53935; }

.player-dot .name {
  display: block; /* 改为 block 配合 width: 100% */
  width: 60px;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-align: center; /* 强制文字居中 */
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,1);
}

/* team labels */
.team-label {
  position: absolute;
  left: 15px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  z-index: 2;
}
.away-label { top: 12px; }
.home-label { bottom: 12px; }

/* Finished status */
.status-finished {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af; /* 灰色 */
  letter-spacing: 0.3px;
}

/* Abnormal status (Postponed, Cancelled, etc.) */
.status-abnormal {
  font-size: 11px;
  font-weight: 600;
  color: #ff9800; /* 橘色 */
  letter-spacing: 0.3px;
}

html {
  scroll-behavior: smooth;
}

/* ===== Footer Logo (独立控制) ===== */
.footer-logo {
  width: 180px;     /* 👈 用宽度，不用高度 */
  height: auto;
  display: block;
}

/* ===== LIVE INDICATOR (BASE) ===== */
.live-indicator {
  width: 8px;
  height: 8px;
  margin-left: 6px;

  background: #ff3b3b;
  border-radius: 50%;

  display: none;              /* ✅ 默认隐藏 */
  position: relative;
  flex-shrink: 0;
}


/* =========================
   MOBILE LAYOUT (BROWSER)
   ========================= */
@media (max-width: 768px) {

  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  /* ===== 主体三栏 → 一栏 ===== */
  .app-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ===== 左侧 Sidebar：手机隐藏 ===== */
  .app-container > aside:first-of-type {
    display: none !important;
  }

  /* ===== 中间主内容 ===== */
  .app-container > main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px;
  }

  /* ===== 右侧栏：移到底部 ===== */
  .app-container > aside:last-of-type {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  /* ===== Header：解除 1400px 限制 ===== */
  .site-header .max-w-\[1400px\] {
    max-width: 100% !important;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Logo 缩小 */
  .site-header img {
    height: 32px !important;
  }

  /* ===== Tabs 可横向滑 ===== */
  .tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
  }

  .tabs-nav::-webkit-scrollbar {
    display: none;
  }

  /* 移动端详情展开优化 */
  .detail-expanded {
    margin: 0 -10px;
    border-radius: 0;
  }

  .inline-detail-content {
    padding: 15px;
  }

  .match-header-inline {
    padding: 12px;
  }

  .teams-score {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .team-info {
    justify-content: center;
  }

  .detail-tabs {
    gap: 15px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
  }

  .detail-tabs::-webkit-scrollbar {
    display: none;
  }

  /* Results页面移动端优化 */
  .result-item {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  .result-teams {
    margin: 0;
    flex-direction: column;
    gap: 8px;
  }

  .result-team {
    justify-content: center !important;
  }
}

/* 加载动画优化 */
@keyframes spin { 
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
}

/* 平滑过渡效果 */
.match-row, .result-item, .fixture-match-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 提升点击反馈 */
.match-row:active, .result-item:active, .fixture-match-card:active {
  transform: scale(0.98);
}

/* 优化加载占位符 */
.loading-placeholder {
  padding: 60px 20px;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #1a1e22 0%, #21262b 100%);
  border-radius: 8px;
  margin: 10px 0;
}

/* 改进的错误状态 */
.error-message {
  background: linear-gradient(135deg, #2d1b1b 0%, #3d2626 100%);
  border: 1px solid #ef4444;
  border-radius: 8px;
  margin: 10px 0;
}

/* 成功状态指示器 */
.success-indicator {
  color: var(--green);
  animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* 展开后的容器样式 */
.detail-expanded {
    background: #1e242a;
    width: 100%;
    border-bottom: 1px solid var(--border);
    box-shadow: inset 0 10px 10px -10px rgba(0,0,0,0.5);
    scroll-margin-top: 80px; /* 防止被固定 Header 挡住 */
    overflow: hidden;
    animation: slideFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.inline-detail-content {
    padding: 20px;
    position: relative;
}

/* 模态框样式 */
.match-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.match-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.match-modal-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    background: linear-gradient(135deg, #1a1f25 0%, #1e2329 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg) scale(1.1);
}

.modal-close-btn i {
    font-size: 18px;
}

.modal-body {
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3a4149 0%, #2a3139 100%);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4a5159 0%, #3a4149 100%);
}

.close-detail-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.close-detail-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    transform: rotate(90deg);
}

.close-detail-btn i {
    font-size: 16px;
}

/* 比赛头部信息 */
.match-header-inline {
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #252b31 0%, #2a3038 100%);
    border-radius: 12px;
    border-left: 4px solid var(--green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.teams-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;
}

.team-info:first-child {
    justify-content: flex-end;
}

.team-info:last-child {
    justify-content: flex-start;
}

.team-info .team-logo-md {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-info .team-name {
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-display {
    text-align: center;
    flex-shrink: 0;
    min-width: 80px;
}

.score-display {
    font-size: 32px;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 230, 118, 0.3);
}

.match-status {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* 详情内的简易切换按钮 */
.detail-tabs {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.05);
    padding: 0 5px;
}

.detail-sub-tabs {
    display: none;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.d-tab, .d-sub-tab {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.d-tab:hover, .d-sub-tab:hover {
    color: #e2e8f0;
}

.d-sub-tab {
    font-size: 12px;
    font-weight: 600;
    padding: 10px 20px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.d-sub-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.d-tab.active, .d-sub-tab.active {
    color: var(--green);
}

.d-sub-tab.active {
    background: rgba(0, 230, 118, 0.1);
    border-color: var(--green);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
}

.d-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
}

.d-sub-tab.active::after {
    display: none;
}

/* 比赛信息区域 */
.match-info-section {
    margin-bottom: 25px;
}

.match-info-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.venue-info {
    display: grid;
    gap: 10px;
    background: #252b31;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.info-value {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 500;
}

/* 球队状态 */
.team-form-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 15px;
}

.form-comparison {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.team-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #252b31;
    padding: 12px 15px;
    border-radius: 6px;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-header .team-logo-sm {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.team-header span {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
}

.form-dots {
    display: flex;
    gap: 4px;
}

.form-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
}

.form-dot.form-w {
    background: #22c55e;
}

.form-dot.form-d {
    background: #eab308;
}

.form-dot.form-l {
    background: #ef4444;
}

/* Live比赛特殊样式 */
.live-match-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.live-summary-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 15px;
}

.live-events-tabs, .stats-period-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.05);
    padding: 0 5px;
}

.live-event-tab, .stats-period-tab {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.live-event-tab:hover, .stats-period-tab:hover {
    color: #e2e8f0;
}

.live-event-tab.active, .stats-period-tab.active {
    color: var(--green);
}

.live-event-tab.active::after, .stats-period-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
}

.live-stats-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.live-stats-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.live-stats-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-stats-title i {
    color: var(--green);
    font-size: 18px;
    display: flex;
    align-items: center;
}

.live-stats-title h3 {
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.watch-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    line-height: 1;
}

.watch-live-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.watch-live-btn i {
    font-size: 12px;
    color: #ffffff !important;
}

.live-stats-section {
    margin-top: 20px;
}

.live-stats-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Coming Soon样式 */
.coming-soon {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    background: #252b31;
    border-radius: 8px;
    border: 1px dashed rgba(255,255,255,0.1);
}

.coming-soon i {
    font-size: 32px;
    margin-bottom: 12px;
    color: #64748b;
}

.coming-soon h3 {
    font-size: 16px;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.coming-soon p {
    font-size: 13px;
    margin: 0;
}

/* H2H和Standings区域 */
.h2h-section, .standings-section {
    margin-bottom: 20px;
}

.h2h-section h3, .standings-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* 加载状态 */
.inline-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 230, 118, 0.1);
    border-top: 3px solid var(--green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

.tab-loading {
    display: flex;
    justify-content: center;
    padding: 30px;
}

.tab-loading .loading-spinner {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

/* 错误消息样式 */
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.error-message i {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 16px;
}

.error-message h3 {
    font-size: 18px;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.error-message p {
    font-size: 14px;
    margin-bottom: 20px;
}

.retry-btn {
    background: var(--green);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-btn:hover {
    background: #00d66a;
    transform: translateY(-1px);
}

/* Results页面样式 */
.results-container {
    padding: 10px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.results-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 16px;
    margin: 0;
}

.results-count {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.results-round {
    margin-bottom: 25px;
}

.round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #252b31;
    border-radius: 6px;
}

.round-title {
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.round-count {
    color: #64748b;
    font-size: 11px;
}

.round-results {
    display: grid;
    gap: 8px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #1a1e22;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.result-item:hover {
    background: #21262b;
    border-left-color: var(--green);
}

.result-item.is-active {
    background: #252b31;
    border-left-color: var(--green);
}

.result-date {
    font-size: 11px;
    color: #94a3b8;
    width: 60px;
    flex-shrink: 0;
    text-align: center;
}

.result-teams {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 15px;
    margin: 0 15px;
}

.result-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.result-team.home {
    justify-content: flex-end;
}

.result-team.away {
    justify-content: flex-start;
}

.result-team .team-logo-sm {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.result-team .team-name {
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 500;
}

.result-score {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
}

.score-home, .score-away {
    color: #94a3b8;
    min-width: 20px;
    text-align: center;
}

.score-home.winner, .score-away.winner {
    color: var(--green);
}

.score-separator {
    color: #64748b;
}

.result-status {
    font-size: 10px;
    color: #64748b;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

/* Match detail expanded for results */
.match-detail-expanded {
    background: #1e242a;
    width: 100%;
    border-bottom: 1px solid var(--border);
    box-shadow: inset 0 10px 10px -10px rgba(0,0,0,0.5);
    scroll-margin-top: 80px;
    overflow: hidden;
    animation: slideFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideFadeIn {
    from { 
        opacity: 0; 
        max-height: 0; 
    }
    to { 
        opacity: 1; 
        max-height: 1500px; /* 给一个足够大的值 */
    }
}

.status-cell {
    width: 65px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

/* ==========================================
   LEAGUE ACCORDION (联赛折叠功能) 
   ========================================== */

/* 1. 联赛标题容器 - 增加区分度 */
.league-header {
    background: #22282f; /* 比背景稍亮一点的深灰色 */
    border-left: 2px solid #04aa5a; /* 左侧绿色竖线条，增加品牌感 */
    padding: 10px 14px;
    margin-top: 8px; /* 联赛与联赛之间拉开距离 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #2d343c;
}

/* 2. 悬停效果 - 让它看起来像可以点击的按钮 */
.league-header:hover {
    background: #2a3139;
    filter: brightness(1.1);
}

/* 3. 联赛信息左侧布局 */
.league-info-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 4. 图片样式微调 */
.league-flag, .league-logo {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

/* 5. 字体样式 - 更加醒目 */
.league-name-text {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase; /* 强制大写增加庄重感 */
    letter-spacing: 0.5px;
}

/* 6. 右侧箭头图标样式 */
.league-header-right i {
    color: #8894a0;
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* 7. 当联赛被折叠时，可以给 header 增加一个稍淡的状态（可选） */
.league-group[data-collapsed="true"] .league-header {
    border-left-color: #444; 
    opacity: 0.8;
}

/* ======================================
   LIVE TAB 单红点 + 呼吸效果（最终版）
   ====================================== */

.tab-live {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* 红点本体 */
.tab-live .live-indicator {
  display: none;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: #ff3b3b;
  position: relative;
  flex-shrink: 0;
}

/* 有 LIVE 时显示 */
.tab-live.has-live .live-indicator {
  display: inline-block;
}

/* 呼吸外圈 */
.tab-live.has-live .live-indicator::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(255, 59, 59, 0.35);
  animation: livePulse 1.5s infinite;
}

/* 呼吸动画 */
@keyframes livePulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ======================================
   比赛行 LIVE 红点（时间前）
   ====================================== */

.status-cell.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  height: 15px;          /* 🔴 关键：锁定一条视觉中线 */
  line-height: 15px;     /* 和 height 一致 */

  font-size: 12px;
  font-weight: 600;
  color: #ff3b3b;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3b3b;
  position: relative;
  flex-shrink: 0;   /* 防止被压缩 */
}


/* 呼吸圈 */
.live-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(255, 59, 59, 0.35);
  animation: livePulse 1.5s infinite;
}

/* ============================================================
   LEAGUE PAGE & TABS SYSTEM (FINAL – INTEGRATED)
   ============================================================ */

/* =====================
   基础隐藏控制（JS 强依赖）
   ===================== */
.hidden {
  display: none !important;
}

/* =====================
   League Page 容器
   ===================== */
.league-page {
  background: #1a1e22;
  min-height: 600px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid #2d3439;
}

/* Header */
.league-page-header {
  background: linear-gradient(180deg, #252b31 0%, #1a1e22 100%);
  padding: 30px 24px;
  border-bottom: 1px solid #2d3439;
}

.league-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 联赛名称与 meta */
.league-name {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.league-meta {
  font-size: 13px;
  color: #88909b;
  margin-top: 6px;
  display: flex;
  gap: 15px;
}

/* =====================
   League Tabs
   ===================== */
.league-tabs {
  display: flex;
  background: #252b31;
  padding: 0 15px;
  border-bottom: 1px solid #2d3439;
  gap: 10px;
}

.league-tab {
  padding: 16px 24px;
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.league-tab:hover {
  color: #ffffff;
}

.league-tab.active {
  color: #00e676;
  border-bottom-color: #00e676;
}

/* =====================
   League Panels
   ===================== */
.league-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.league-panel.active {
  display: block;
}

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

/* =====================
   Standings Table
   ===================== */
.league-standings-block {
  padding: 20px;
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #e5e7eb;
}

.standings-table th {
  text-align: left;
  padding: 10px 8px;
  color: #6b7280;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 2px solid #2d3439;
}

.standings-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #252b31;
}

.standings-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.standings-table th:not(:nth-child(2)),
.standings-table td:not(:nth-child(2)) {
  text-align: center;
}

/* Team cell */
.team-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

/* 暂时保留（后续可再语义化） */
.team-logo-mini {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Form dots */
.form-dot {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  margin: 0 2px;
  color: #fff;
}
.form-w { background: #00c853; }
.form-d { background: #757575; }
.form-l { background: #ff5252; }

/* =====================
   Loading Spinner
   ===================== */
.animate-spin {
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =====================================================
   LEAGUE LOGO – SEMANTIC SYSTEM（关键补充）
   ===================================================== */

/* 大：League Page Header（index.html） */
.league-logo-lg {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

/* 中：比赛列表联赛头（main.js） */
.league-logo-md {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
  flex-shrink: 0;
}

/* 小：左侧 World Competitions / Pinned（main.js） */
.league-logo-sm {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  border-radius: 50%;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.25),
    inset 0 0 0 1px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.site-header .logo {
  height: 80px;
  width: auto;
}

.header-icon {
  font-size: 25px;   /* 或 20px */
  color: #043da0;    /* gray-400 */
  cursor: pointer;
  transition: color .2s ease;
}

.header-icon:hover {
  color: #ff0808;
}



/* ========== LEAGUE PAGE STYLES ========== */

/* Results Container */
.results-container {
  padding: 20px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #2d3439;
}

.results-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-header i {
  color: #00e676;
}

.results-count {
  font-size: 12px;
  color: #9ca3af;
  background: #252b31;
  padding: 4px 12px;
  border-radius: 12px;
}

/* Results by Round (Flashscore Style) */
.results-rounds {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.results-round {
  background: #252b31;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2d3439;
}

.round-header {
  background: #2d3439;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #374151;
}

.round-title {
  font-size: 14px;
  font-weight: 700;
  color: #00e676;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.round-count {
  font-size: 11px;
  color: #9ca3af;
  background: #374151;
  padding: 2px 8px;
  border-radius: 10px;
}

.round-results {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-item:last-child {
  border-bottom: none;
}

.result-date {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  min-width: 50px;
  text-align: center;
}

.result-teams {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.result-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}

.result-team.home {
  justify-content: flex-end;
}

.result-team.away {
  justify-content: flex-start;
}

.result-team .team-name {
  font-size: 13px;
  font-weight: 500;
  color: #e5e7eb;
}

.result-score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  min-width: 60px;
  justify-content: center;
}

.score-home, .score-away {
  color: #9ca3af;
}

.score-home.winner, .score-away.winner {
  color: #00e676;
}

.score-separator {
  color: #6b7280;
}

.result-status {
  font-size: 10px;
  color: #6b7280;
  text-transform: uppercase;
  min-width: 40px;
  text-align: center;
}

/* ========== ENHANCED SUMMARY PAGE STYLES ========== */

.summary-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.summary-section {
  background: #252b31;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2d3439;
}

.summary-section-header {
  background: #2d3439;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #374151;
}

.summary-section-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-section-header i {
  color: #00e676;
  font-size: 14px;
}

.view-all-link {
  font-size: 12px;
  color: #00e676;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: #00ff88;
  text-decoration: underline;
}

/* Fixtures List (Home-style layout) */
.summary-fixtures-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-fixture-item {
  background: #1a1e22;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #374151;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: border-color 0.2s;
}

.summary-fixture-item:hover {
  border-color: #00e676;
}

.fixture-time-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.fixture-time-info .fixture-date {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
}

.fixture-time-info .fixture-time {
  font-size: 12px;
  color: #00e676;
  font-weight: 700;
  margin-top: 2px;
}

.fixture-teams {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.fixture-team-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fixture-team-row .team-name {
  font-size: 13px;
  color: #e5e7eb;
  font-weight: 500;
}

.fixture-actions {
  display: flex;
  gap: 8px;
}

.fixture-actions .live-btn,
.fixture-actions .odds-btn {
  height: 24px;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid #3a3f45;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
}

.fixture-actions .live-btn.active {
  color: #fff;
  border-color: #ff4d4f;
  background: #be0e11;
}

.fixture-actions .odds-btn:hover {
  border-color: #00e676;
  color: #00e676;
}

/* Results Grid */
.summary-results-grid {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-result-card {
  background: #1a1e22;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #374151;
  display: flex;
  align-items: center;
  gap: 15px;
}

.result-datetime {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.result-datetime .result-date {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
}

.result-datetime .result-round {
  font-size: 9px;
  color: #6b7280;
  text-transform: uppercase;
  margin-top: 2px;
}

.result-matchup {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.result-matchup .result-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.result-matchup .result-team.home {
  justify-content: flex-end;
}

.result-matchup .result-team.away {
  justify-content: flex-start;
}

.result-matchup .result-score {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}

.result-matchup .score-sep {
  color: #6b7280;
}

.summary-result-card .result-status {
  font-size: 10px;
  color: #6b7280;
  text-transform: uppercase;
  min-width: 30px;
}

/* Standings Table */
.summary-standings-table {
  padding: 20px;
}

.standings-header {
  display: grid;
  grid-template-columns: 30px 1fr 40px 50px 100px;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 2px solid #374151;
  font-size: 11px;
  color: #9ca3af;
  font-weight: 700;
  text-transform: uppercase;
}

.standings-row {
  display: grid;
  grid-template-columns: 30px 1fr 40px 50px 100px;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
}

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

.standings-row.champions {
  border-left: 3px solid #00e676;
  padding-left: 7px;
}

.standings-row.europa {
  border-left: 3px solid #ff9800;
  padding-left: 7px;
}

.standings-row.relegation {
  border-left: 3px solid #f44336;
  padding-left: 7px;
}

.standings-row .pos {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

.standings-row .team {
  display: flex;
  align-items: center;
  gap: 8px;
}

.standings-row .team-name {
  font-size: 12px;
  color: #e5e7eb;
  font-weight: 500;
}

.standings-row .played,
.standings-row .points {
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
}

.standings-row .form {
  display: flex;
  gap: 2px;
  justify-content: center;
}

/* Team Logo Sizes */
.team-logo-xs {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-logo-sm {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ========== ENHANCED FIXTURES PAGE STYLES ========== */

.fixtures-container {
  padding: 25px;
  background: #1a1e22;
}

.fixtures-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 20px 25px;
  background: linear-gradient(135deg, #252b31 0%, #2d3439 100%);
  border-radius: 12px;
  border: 1px solid #374151;
}

.fixtures-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fixtures-title i {
  color: #00e676;
  font-size: 20px;
}

.fixtures-title h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.fixtures-count {
  font-size: 13px;
  color: #ffffff;
  background: #00e676;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
}

.fixtures-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fixtures-round {
  background: #252b31;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2d3439;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fixtures-round .round-header {
  background: linear-gradient(135deg, #2d3439 0%, #374151 100%);
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #374151;
}

.fixtures-round .round-title {
  font-size: 15px;
  font-weight: 700;
  color: #00e676;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}

.fixtures-round .round-count {
  font-size: 11px;
  color: #e5e7eb;
  background: #374151;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.round-fixtures {
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Enhanced Match Card */
.fixture-match-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background: #1a1e22;
  border-radius: 10px;
  border: 1px solid #374151;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.fixture-match-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #00e676;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fixture-match-card:hover {
  border-color: #00e676;
  background: #1e2328;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 230, 118, 0.1);
}

.fixture-match-card:hover::before {
  opacity: 1;
}

/* Date and Time */
.match-datetime {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  padding: 10px;
  background: #252b31;
  border-radius: 8px;
  border: 1px solid #374151;
}

.match-date {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 600;
  margin-bottom: 4px;
}

.match-time {
  font-size: 14px;
  color: #00e676;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

/* Teams Section */
.match-teams {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 20px;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.home-team {
  justify-content: flex-end;
  text-align: right;
}

.away-team {
  justify-content: flex-start;
  text-align: left;
}

.team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.team-name {
  font-size: 14px;
  color: #e5e7eb;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.vs-text {
  font-size: 11px;
  color: #6b7280;
  font-weight: 700;
  background: #374151;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Action Buttons */
.match-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-btn i {
  font-size: 10px;
}

/* LIVE Button */
.live-btn {
  color: #9ca3af;
  border-color: #374151;
}

.live-btn.active {
  color: #ffffff;
  border-color: #ef4444;
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.live-btn.inactive:hover {
  color: #9ca3af;
  border-color: #374151;
  background: transparent;
  cursor: not-allowed;
}

/* Disabled LIVE button */
.live-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* ODDS Button */
.odds-btn {
  color: #9ca3af;
  border-color: #374151;
}

.odds-btn:hover {
  color: #00e676;
  border-color: #00e676;
  background: rgba(0, 230, 118, 0.1);
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.2);
}

/* Star Button */
.star-btn {
  color: #9ca3af;
  border-color: #374151;
  min-width: 32px;
  padding: 0;
  justify-content: center;
}

.star-btn:hover {
  color: #fbbf24;
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

.star-btn.active {
  color: #fbbf24;
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .fixture-match-card {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  
  .match-teams {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .team-row {
    justify-content: center;
    text-align: center;
  }
  
  .vs-separator {
    order: -1;
  }
  
  .match-actions {
    justify-content: center;
    width: 100%;
  }
}

/* Form indicators */
.form-dot {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  font-size: 8px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-w { background: #00c853; }
.form-d { background: #757575; }
.form-l { background: #f44336; }

/* ========== ENHANCED INLINE MATCH DETAIL STYLES ========== */

.match-detail-expanded {
  background: linear-gradient(135deg, #1e2328 0%, #252b31 100%);
  width: 100%;
  border: 1px solid #00e676;
  border-radius: 12px;
  margin: 10px 0;
  box-shadow: 
    0 8px 32px rgba(0, 230, 118, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  scroll-margin-top: 80px;
  overflow: hidden;
  animation: slideExpandIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideExpandIn {
  from { 
    opacity: 0; 
    max-height: 0; 
    transform: translateY(-20px) scale(0.95);
    border-color: transparent;
  }
  to { 
    opacity: 1; 
    max-height: 1200px;
    transform: translateY(0) scale(1);
    border-color: #00e676;
  }
}

.inline-match-detail {
  padding: 25px;
}

.inline-match-header {
  margin-bottom: 25px;
  padding: 20px;
  background: linear-gradient(135deg, #252b31 0%, #2d3439 100%);
  border-radius: 12px;
  border: 1px solid #374151;
}

.match-teams-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.match-teams-header .team-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.match-teams-header .team-logo-lg {
  width: 55px;
  height: 55px;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.match-teams-header .team-logo-lg:hover {
  transform: scale(1.05);
}

.match-teams-header .team-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.match-teams-header .match-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 36px;
  font-weight: 900;
  color: #00e676;
  text-shadow: 0 2px 8px rgba(0, 230, 118, 0.3);
}

.match-teams-header .match-status {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  background: #374151;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Enhanced Inline Tabs */
.inline-tabs {
  display: flex;
  background: linear-gradient(135deg, #252b31 0%, #2d3439 100%);
  border-radius: 12px;
  border: 1px solid #374151;
  margin-bottom: 0;
  overflow: hidden;
}

.inline-tab {
  flex: 1;
  padding: 16px 20px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
}

.inline-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #00e676 0%, #00ff88 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.inline-tab:hover {
  color: #ffffff;
  background: #2d3439;
}

.inline-tab.active {
  color: #ffffff;
  border-bottom-color: #00e676;
  background: #2d3439;
}

.inline-tab.active::before {
  opacity: 0.1;
}

/* Enhanced Sub Tabs */
.inline-sub-tabs {
  display: flex;
  background: #2d3439;
  border-bottom: 1px solid #374151;
  padding: 8px 20px;
  gap: 8px;
}

.inline-sub-tab {
  padding: 12px 18px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  border: 1px solid transparent;
}

.inline-sub-tab:hover {
  color: #ffffff;
  background: #374151;
  border-color: #4b5563;
}

.inline-sub-tab.active {
  color: #00e676;
  background: #1e2328;
  border-color: #00e676;
  box-shadow: 0 2px 8px rgba(0, 230, 118, 0.2);
}

/* Enhanced Content Area */
.inline-content-area {
  background: linear-gradient(135deg, #1e2328 0%, #252b31 100%);
  padding: 25px;
  border-radius: 0 0 12px 12px;
  border: 1px solid #374151;
  border-top: none;
}

/* Beautiful Loading State */
.inline-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 230, 118, 0.1);
  border-top: 4px solid #00e676;
  border-radius: 50%;
  margin-bottom: 20px;
  animation: spin 1s linear infinite;
}

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

.inline-loader p {
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
  font-weight: 500;
}

/* Error and No Data Messages */
.error-message,
.no-data-message {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.error-message i,
.no-data-message i {
  font-size: 48px;
  margin-bottom: 20px;
  color: #ef4444;
}

.no-data-message i {
  color: #f59e0b;
}

.error-message h3,
.no-data-message h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.error-message p,
.no-data-message p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #9ca3af;
}

.retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #00e676 0%, #00ff88 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 230, 118, 0.3);
}

/* Enhanced Match Row Active State */
.match-row.is-active,
.fixture-match-card.is-active,
.result-item.is-active {
  background: linear-gradient(135deg, #252b31 0%, #2d3439 100%);
  border-left: 4px solid #00e676 !important;
  padding-left: 11px;
  box-shadow: 
    0 4px 12px rgba(0, 230, 118, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

/* Enhanced Info Sections */
.match-info-section,
.team-form-section,
.live-summary-section,
.live-stats-section {
  margin-bottom: 20px;
  background: #252b31;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #374151;
}

.match-info-section h3,
.team-form-section h3,
.live-summary-section h3,
.live-stats-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-info-section i,
.team-form-section i,
.live-summary-section i,
.live-stats-section i {
  color: #00e676;
  font-size: 15px;
}

/* Enhanced Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  background: linear-gradient(135deg, #1e2328 0%, #252b31 100%);
  border-radius: 8px;
  border: 1px solid #374151;
  transition: all 0.2s ease;
}

.info-item:hover {
  border-color: #00e676;
  box-shadow: 0 2px 8px rgba(0, 230, 118, 0.1);
}

.info-label {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
}

.info-value {
  font-size: 13px;
  color: #ffffff;
  font-weight: 700;
}

/* Clickable Result Items */
.result-item {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  border: 1px solid transparent;
}

.result-item:hover {
  background: #2d3439;
  border-color: #00e676;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.1);
}

/* Responsive Design for Inline Details */
@media (max-width: 768px) {
  .match-teams-header {
    flex-direction: column;
    gap: 20px;
  }
  
  .match-teams-header .team-info {
    flex-direction: row;
    gap: 15px;
  }
  
  .inline-tabs {
    flex-wrap: wrap;
  }
  
  .inline-tab {
    flex: none;
    min-width: 90px;
    font-size: 11px;
    padding: 12px 16px;
  }
  
  .inline-content-area {
    padding: 20px 15px;
  }
  
  .match-teams-header .match-score {
    font-size: 28px;
  }
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.results-header h3 {
  color: var(--green);
  font-size: 18px;
  margin: 0;
}

.results-count {
  color: var(--muted);
  font-size: 12px;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-item {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  padding: 12px;
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.result-date {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.result-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.result-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.result-team:last-child {
  flex-direction: row-reverse;
  text-align: right;
}

.team-logo-sm {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.team-logo-xs {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.result-score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: var(--green);
}

.score-home, .score-away {
  font-size: 16px;
}

.score-home.winner, .score-away.winner {
  color: var(--green);
}

.score-separator {
  color: var(--muted);
}

.result-status {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

/* Standings Container */
.standings-container {
  padding: 20px;
}

.standings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.standings-header h3 {
  color: var(--green);
  font-size: 18px;
  margin: 0;
}

.standings-season {
  color: var(--muted);
  font-size: 12px;
}

.standings-table {
  background: var(--panel);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.standings-table-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px 40px 40px 40px 50px 50px 50px 50px;
  gap: 10px;
  padding: 12px;
  background: var(--panel-2);
  font-size: 11px;
  font-weight: bold;
  color: var(--muted);
  text-transform: uppercase;
}

.standings-row {
  display: grid;
  grid-template-columns: 40px 1fr 40px 40px 40px 40px 50px 50px 50px 50px;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

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

.standings-row.champions {
  border-left: 3px solid #4CAF50;
}

.standings-row.europa {
  border-left: 3px solid #FF9800;
}

.standings-row.relegation {
  border-left: 3px solid #f44336;
}

.standings-row .team {
  display: flex;
  align-items: center;
  gap: 8px;
}

.standings-row .team-name {
  font-size: 13px;
  font-weight: 500;
}

.standings-row .pos {
  font-weight: bold;
  text-align: center;
}

.standings-row .points {
  font-weight: bold;
  color: var(--green);
  text-align: center;
}

.standings-row .positive {
  color: var(--green);
}

.standings-row .negative {
  color: var(--red);
}

.standings-legend {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  font-size: 11px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-item::before {
  content: '';
  width: 12px;
  height: 3px;
  border-radius: 2px;
}

.legend-item.champions::before {
  background: #4CAF50;
}

.legend-item.europa::before {
  background: #FF9800;
}

.legend-item.relegation::before {
  background: #f44336;
}

/* H2H Container */
.h2h-container {
  padding: 15px;
}

.h2h-header {
  margin-bottom: 15px;
  text-align: center;
}

.h2h-header h3 {
  color: var(--green);
  font-size: 15px;
  margin: 0 0 6px 0;
}

.h2h-header p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.h2h-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
}

.h2h-team-select {
  padding: 10px 15px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  min-width: 200px;
}

.h2h-vs {
  font-weight: bold;
  color: var(--green);
  font-size: 14px;
}

.h2h-compare-btn {
  padding: 10px 20px;
  background: var(--green);
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
}

.h2h-compare-btn:hover {
  background: #00d865;
}

.h2h-stats {
  background: var(--panel);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--border);
}

.h2h-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.h2h-team-stat {
  text-align: center;
}

.h2h-team-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

.h2h-wins {
  font-size: 24px;
  font-weight: bold;
  color: var(--green);
}

.h2h-draws {
  text-align: center;
}

.h2h-draws-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.h2h-draws-count {
  font-size: 20px;
  font-weight: bold;
  color: var(--muted);
}

.h2h-matches h4 {
  color: var(--green);
  font-size: 16px;
  margin: 0 0 15px 0;
}

.h2h-match {
  display: grid;
  grid-template-columns: 100px 1fr 80px;
  gap: 15px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

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

.h2h-match-date {
  font-size: 11px;
  color: var(--muted);
}

.h2h-match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.h2h-score {
  font-weight: bold;
  color: var(--green);
  font-size: 14px;
}

.h2h-match-status {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}

/* Loading placeholder improvements */
.loading-placeholder {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Enhanced Stats Container */
.stats-container-enhanced {
    padding: 0;
}

.stats-group {
    margin-bottom: 30px;
}

.stats-group-title {
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item-enhanced {
    margin-bottom: 18px;
}

.stat-values {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 12px;
}

.stat-value-left,
.stat-value-right {
    color: #cbd5e1;
    font-weight: 600;
    min-width: 90px;
    line-height: 1.4;
}

.stat-value-left {
    text-align: left;
}

.stat-value-right {
    text-align: right;
}

.stat-value-left.lead,
.stat-value-right.lead {
    color: #e2e8f0;
    font-weight: 700;
}

.stat-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    flex: 1;
    padding: 0 10px;
}

/* Split Bar - 固定从中间断开 */
.stat-bar-split-fixed {
    height: 6px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.stat-bar-half {
    flex: 1;
    height: 100%;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.stat-bar-left {
    display: flex;
    justify-content: flex-end;
}

.stat-bar-right {
    display: flex;
    justify-content: flex-start;
}

.stat-bar-fill {
    height: 100%;
    transition: width 0.5s ease;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.stat-bar-fill.lead {
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.8), rgba(0, 230, 118, 1));
}


/* H2H (Head to Head) Styles */
.h2h-container {
    padding: 20px;
}

.h2h-header {
    margin-bottom: 25px;
}

.h2h-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    font-size: 16px;
    margin-bottom: 8px;
}

.h2h-subtitle {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

.h2h-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    overflow-y: hidden;
}

.h2h-tabs::-webkit-scrollbar {
    display: none;
}

.h2h-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.h2h-tab {
    background: none;
    border: none;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.h2h-tab:hover {
    color: #e2e8f0;
}

.h2h-tab.active {
    color: var(--green);
    border-bottom-color: var(--green);
}

.h2h-content {
    position: relative;
}

.h2h-section {
    display: none;
}

.h2h-section.active {
    display: block;
}

.h2h-section-wrapper {
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.h2h-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    text-transform: uppercase;
    padding: 10px 12px;
    background: rgba(0, 230, 118, 0.08);
    border-left: 3px solid var(--green);
    border-radius: 4px;
}

.h2h-section-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

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

.h2h-match-row {
    display: grid;
    grid-template-columns: 70px 120px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.h2h-match-row:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.h2h-date {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}

.h2h-league-badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

.h2h-flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.h2h-league-name {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

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

.h2h-team {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.h2h-team:first-child {
    justify-content: flex-end;
}

.h2h-team:last-child {
    justify-content: flex-start;
}

.h2h-team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.h2h-team-name {
    font-size: 12px;
    color: #e2e8f0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-team-name.highlight {
    color: #e2e8f0;
    font-weight: 600;
}

.h2h-score-box {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    min-width: 50px;
    text-align: center;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.h2h-result-badge {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.h2h-result-badge.win {
    background: #10b981;
    color: #ffffff;
}

.h2h-result-badge.loss {
    background: #ef4444;
    color: #ffffff;
}

.h2h-result-badge.draw {
    background: #f97316;
    color: #ffffff;
}

.h2h-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: rgba(0, 230, 118, 0.05);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 6px;
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.h2h-show-more:hover {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.3);
}

.h2h-show-more i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.h2h-no-data {
    text-align: center;
    color: #64748b;
    padding: 40px;
    font-size: 13px;
}

.h2h-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.h2h-placeholder i {
    font-size: 48px;
    color: var(--green);
    margin-bottom: 20px;
    opacity: 0.5;
}

.h2h-placeholder p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 30px;
}

.h2h-info {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

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

.h2h-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.h2h-team span {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.h2h-vs {
    color: #64748b;
    font-size: 18px;
    font-weight: 700;
}

/* Standings Styles */
.standings-container {
    padding: 20px;
}

.standings-header {
    margin-bottom: 25px;
}

.standings-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    font-size: 16px;
    margin-bottom: 8px;
}

.standings-subtitle {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

.standings-table {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.standings-table-header {
    display: grid;
    grid-template-columns: 50px 2fr repeat(7, 60px) 120px;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.standings-table-row {
    display: grid;
    grid-template-columns: 50px 2fr repeat(7, 60px) 120px;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    align-items: center;
}

.standings-table-row:hover {
    background: rgba(0, 0, 0, 0.3);
}

.standings-table-row.highlight {
    background: rgba(0, 230, 118, 0.05);
    box-shadow: inset 3px 0 0 var(--green);
}

.st-rank {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
}

.st-team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #e2e8f0;
}

.st-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.st-stat {
    text-align: center;
    font-size: 13px;
    color: #e2e8f0;
}

.st-stat.positive {
    color: var(--green);
}

.st-stat.negative {
    color: var(--red);
}

.st-points {
    font-weight: 700;
    color: var(--green);
}

.st-form {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.form-badge {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
}

.form-badge.win {
    background: rgba(0, 230, 118, 0.2);
    color: var(--green);
}

.form-badge.loss {
    background: rgba(255, 59, 59, 0.2);
    color: var(--red);
}

.form-badge.draw {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.standings-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.standings-placeholder i {
    font-size: 48px;
    color: var(--green);
    margin-bottom: 20px;
    opacity: 0.5;
}

.standings-placeholder p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 30px;
}

.standings-info {
    margin-top: 20px;
}

.league-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.league-logo-lg {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.league-badge span {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* New Lineups List Style */
.lineups-container-new {
    padding: 20px;
}

.lineups-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.lineup-team-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lineup-team-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lineup-team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.lineup-team-info h3 {
    color: #e2e8f0;
    font-size: 16px;
    margin: 0 0 5px 0;
}

.lineup-formation {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.lineup-section {
    margin-bottom: 25px;
}

.lineup-section:last-child {
    margin-bottom: 0;
}

.lineup-section-title {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

.lineup-players-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lineup-player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.lineup-player-row:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.08);
}

.lineup-player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.lineup-player-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.lineup-player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 18px;
}

.lineup-player-name {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
}

.lineup-player-number {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.lineup-player-rating {
    min-width: 35px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #000;
    margin-left: 10px;
}

/* Substitutions */
.lineup-subs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lineup-sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(0, 230, 118, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(0, 230, 118, 0.1);
}

.lineup-sub-player {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.lineup-sub-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--green);
}

.lineup-sub-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.2);
    border: 2px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 18px;
}

.lineup-sub-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lineup-sub-name {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
}

.lineup-sub-detail {
    color: #94a3b8;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lineup-sub-detail i {
    color: var(--green);
}

.lineup-sub-number {
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

/* Lineup View Toggle */
.lineups-wrapper {
    padding: 20px;
}

.lineups-view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lineup-view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lineup-view-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.lineup-view-btn.active {
    background: rgba(0, 230, 118, 0.1);
    border-color: var(--green);
    color: var(--green);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
}

.lineup-view-btn i {
    font-size: 14px;
}

.lineups-views {
    position: relative;
}

.lineup-view-content {
    display: none;
}

.lineup-view-content.active {
    display: block;
}

/* Horizontal Pitch Styles */
.pitch-horizontal-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pitch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pitch-team-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pitch-team-info.away-info {
    flex-direction: row-reverse;
}

.pitch-team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.pitch-team-name {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 600;
}

.pitch-formation {
    color: var(--green);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pitch-title {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.pitch-horizontal {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #1a4d2e 0%, #2d5f3f 50%, #1a4d2e 100%);
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Pitch markings for horizontal layout */
.pitch-markings-horizontal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.pitch-markings-horizontal > div {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

/* Center line (vertical) */
.center-line-h {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    border-right: none;
}

/* Center circle */
.center-circle-h {
    left: 50%;
    top: 50%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Penalty areas */
.penalty-area-h {
    width: 120px;
    top: 50%;
    height: 280px;
    transform: translateY(-50%);
}

.penalty-area-h.left {
    left: 0;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-left: none;
}

.penalty-area-h.right {
    right: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    border-right: none;
}

/* Goal areas */
.goal-area-h {
    width: 40px;
    top: 50%;
    height: 140px;
    transform: translateY(-50%);
}

.goal-area-h.left {
    left: 0;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-left: none;
}

.goal-area-h.right {
    right: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    border-right: none;
}

/* Corner arcs */
.corner-arc {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.corner-arc.top-left {
    top: 0;
    left: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-top: none;
    border-left: none;
}

.corner-arc.top-right {
    top: 0;
    right: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    border-top: none;
    border-right: none;
}

.corner-arc.bottom-left {
    bottom: 0;
    left: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: none;
    border-left: none;
}

.corner-arc.bottom-right {
    bottom: 0;
    right: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: none;
    border-right: none;
}

/* Player dots for horizontal pitch */
.player-dot-horizontal {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-dot-horizontal:hover {
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 10;
}

.player-rating-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #000;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.player-shirt {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
}

.player-dot-horizontal.home-p .player-shirt {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.player-dot-horizontal.away-p .player-shirt {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.player-name-horizontal {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* MY TEAMS Styles */
#pinned-teams-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#pinned-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pinned-team-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.pinned-team-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 230, 118, 0.3);
}

.pinned-team-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.pinned-team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.pinned-team-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pinned-team-name {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
}

.pinned-team-country {
    color: #64748b;
    font-size: 10px;
}

.unpin-team-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid rgba(255, 59, 59, 0.2);
    border-radius: 4px;
    color: #ff3b3b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.unpin-team-btn:hover {
    background: rgba(255, 59, 59, 0.2);
    border-color: #ff3b3b;
}

.add-team-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 230, 118, 0.05);
    border: 1px dashed rgba(0, 230, 118, 0.4);
    border-radius: 6px;
    color: rgba(0, 230, 118, 0.8);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.add-team-btn:hover {
    background: rgba(0, 230, 118, 0.1);
    border-style: solid;
    border-color: rgba(0, 230, 118, 0.6);
    color: var(--green);
}

/* Team Search Modal */
.team-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.team-search-content {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.team-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
}

.team-search-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    font-size: 16px;
    margin: 0;
}

.team-search-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.team-search-close:hover {
    background: rgba(255, 59, 59, 0.2);
    border-color: #ff3b3b;
    color: #ff3b3b;
}

.team-search-body {
    padding: 20px 25px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

/* Custom scrollbar for team search */
.team-search-body::-webkit-scrollbar {
    width: 8px;
}

.team-search-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.team-search-body::-webkit-scrollbar-thumb {
    background: rgba(0, 230, 118, 0.3);
    border-radius: 4px;
}

.team-search-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 230, 118, 0.5);
}

.team-search-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.team-search-hint {
    color: #64748b;
    font-size: 11px;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: rgba(0, 230, 118, 0.05);
    border-left: 2px solid var(--green);
    border-radius: 4px;
}

.team-search-history {
    margin-bottom: 15px;
}

.team-search-popular {
    margin-top: 0;
}

.temp-search-results {
    margin-top: 0;
}

.temp-search-results .team-search-section-header {
    margin-bottom: 12px;
}

.team-search-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.team-search-history h4,
.team-search-section-header h4 {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

.clear-all-history-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.clear-all-history-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.team-search-popular h4 {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 15px 0;
}

.team-search-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-search-history .team-search-results {
    margin-bottom: 0;
}

.team-search-popular .team-search-results {
    min-height: 300px;
}

.team-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.team-search-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.team-search-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-search-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.team-search-name {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-search-country {
    color: #64748b;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-star-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    flex-shrink: 0;
}

.team-star-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fbbf24;
}

.team-star-btn.active {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
    color: #fbbf24;
}

.team-search-empty {
    text-align: center;
    padding: 30px 20px;
    color: #64748b;
    font-size: 12px;
}

.team-search-loading {
    text-align: center;
    padding: 30px 20px;
    color: var(--green);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.team-search-loading i {
    font-size: 18px;
}


.team-search-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
}

.team-search-input::placeholder {
    color: #64748b;
}

/* Pinned teams hover star */
.pinned-team-item {
    position: relative;
}

.pinned-team-item .team-unpin-btn {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pinned-team-item:hover .team-unpin-btn {
    opacity: 1;
}

.team-unpin-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid #fbbf24;
    border-radius: 6px;
    color: #fbbf24;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.team-unpin-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* Team Details Modal */
.team-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s ease;
    padding: 20px;
}

.team-details-content {
    background: linear-gradient(135deg, #1a1f25 0%, #1e2329 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.team-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.team-details-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.team-details-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.team-details-info h2 {
    color: #e2e8f0;
    font-size: 20px;
    margin: 0 0 5px 0;
}

.team-details-info p {
    color: #64748b;
    font-size: 12px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-details-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
}

.team-details-close:hover {
    background: rgba(255, 59, 59, 0.2);
    border-color: #ff3b3b;
    color: #ff3b3b;
}

.team-details-tabs {
    display: flex;
    gap: 5px;
    padding: 15px 30px 0;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.team-details-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.team-details-tab:hover {
    color: #94a3b8;
}

.team-details-tab.active {
    color: var(--green);
    border-bottom-color: var(--green);
}

.team-details-body {
    padding: 25px 30px;
    overflow-y: auto;
    flex: 1;
}

.team-details-body::-webkit-scrollbar {
    width: 8px;
}

.team-details-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.team-details-body::-webkit-scrollbar-thumb {
    background: rgba(0, 230, 118, 0.3);
    border-radius: 4px;
}

.team-details-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 230, 118, 0.5);
}

.team-details-loading {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.team-details-loading i {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}

/* Team fixtures list */
.team-fixtures-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-fixture-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.team-fixture-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.team-fixture-date {
    color: #64748b;
    font-size: 11px;
    min-width: 80px;
}

.team-fixture-teams {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.team-fixture-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.team-fixture-team img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.team-fixture-team span {
    color: #e2e8f0;
    font-size: 13px;
}

.team-fixture-score {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}

/* Players table */
.players-section {
    margin-bottom: 30px;
}

.players-section h3 {
    color: #e2e8f0;
    font-size: 16px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.players-table {
    width: 100%;
    border-collapse: collapse;
}

.players-table thead {
    background: rgba(0, 0, 0, 0.3);
}

.players-table th {
    padding: 12px 10px;
    text-align: left;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.players-table td {
    padding: 12px 10px;
    color: #e2e8f0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.players-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.2);
}

.player-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.player-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Team info grid */
.team-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.team-info-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
}

.team-info-card h4 {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 15px 0;
}

.team-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.team-info-row:last-child {
    border-bottom: none;
}

.team-info-label {
    color: #94a3b8;
    font-size: 12px;
}

.team-info-value {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
}


/* Fixtures and Results styling */
.fixtures-league-group {
  margin-bottom: 25px;
}

.fixtures-league-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
}

.fixture-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: none;
  transition: all 0.2s ease;
}

.fixture-card:last-child {
  border-radius: 0 0 8px 8px;
}

.fixture-card:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

.fixture-date-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  flex-shrink: 0;
}

.fixture-date {
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
}

.fixture-time {
  color: #64748b;
  font-size: 10px;
  margin-top: 2px;
}

.fixture-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex: 1;
}

.fixture-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.fixture-team:first-child {
  justify-content: flex-end;
  text-align: right;
}

.fixture-team:first-child span {
  order: -1;
}

.fixture-team:last-child {
  justify-content: flex-start;
  text-align: left;
}

.fixture-team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.fixture-team span {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fixture-vs {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.fixture-score {
  color: #00e676;
  font-size: 16px;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
  flex-shrink: 0;
}

.fixture-result {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 8px;
}

.result-win {
  background: #22c55e;
  color: #ffffff;
}

.result-draw {
  background: #f59e0b;
  color: #ffffff;
}

.result-loss {
  background: #ef4444;
  color: #ffffff;
}


/* Standings Table Styling */
.standings-container {
  width: 100%;
}

.standings-title {
  color: #e2e8f0;
  font-size: 16px;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.standings-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.standings-table thead {
  background: rgba(0, 0, 0, 0.4);
}

.standings-table th {
  padding: 12px 10px;
  text-align: left;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.standings-table td {
  padding: 12px 10px;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.standings-table tbody tr {
  transition: background 0.2s ease;
}

.standings-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.standings-table tbody tr.current-team {
  background: rgba(0, 230, 118, 0.15);
  box-shadow: inset 3px 0 0 var(--green);
}

.standings-rank {
  width: 50px;
  text-align: center !important;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}

.rank-badge.rank-champions {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.rank-badge.rank-europa {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.rank-badge.rank-relegation {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.standings-team {
  min-width: 200px;
}

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

.team-cell img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.team-cell span {
  font-weight: 500;
}

.standings-points {
  font-weight: 700;
  color: var(--green);
}

.standings-form {
  display: flex;
  gap: 4px;
}

.form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.form-win {
  background: rgba(0, 230, 118, 0.2);
  color: var(--green);
}

.form-draw {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.form-loss {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.form-unknown {
  background: rgba(100, 116, 139, 0.2);
  color: #64748b;
}

.standings-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.legend-color.rank-champions {
  background: rgba(59, 130, 246, 0.3);
  border: 1px solid #3b82f6;
}

.legend-color.rank-europa {
  background: rgba(239, 68, 68, 0.3);
  border: 1px solid #ef4444;
}

.legend-color.rank-relegation {
  background: rgba(239, 68, 68, 0.3);
  border: 1px solid #ef4444;
}

/* Standings Controls */
.standings-controls {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-bottom: 15px;
  align-items: center;
}

.standings-league-select {
  flex: 0 0 auto;
  min-width: 250px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.standings-league-select:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.standings-league-select:focus {
  outline: none;
  border-color: var(--green);
}

.standings-league-select option {
  background: #1a1f26;
  color: #e5e7eb;
}

.standings-tabs {
  display: flex;
  flex: 1;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 6px;
}

.standings-tab {
  flex: 1;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.standings-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
}

.standings-tab.active {
  background: var(--green);
  color: #1a1f26;
}

/* Players content wrapper */
.players-content {
  padding: 20px;
}

.player-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-name-cell span {
  cursor: pointer;
  transition: color 0.2s ease;
}

.player-name-cell span:hover {
  color: #00e676;
  text-decoration: underline;
}

.player-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.player-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Clickable team styles */
.clickable-team {
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
}

.clickable-team:hover {
  background: rgba(0, 230, 118, 0.1);
}

.clickable-team:hover .team-name {
  color: var(--green);
}

/* Match detail modal - clickable team names */
.match-header-inline .clickable-team-name,
.match-header-inline .clickable-team-logo {
  cursor: pointer;
  transition: all 0.2s;
}

.match-header-inline .clickable-team-name:hover {
  color: var(--green);
  text-decoration: underline;
}

.match-header-inline .clickable-team-logo:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Team favorite star */
.team-favorite-star {
  font-size: 20px;
  color: #fbbf24;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0 10px;
}

.team-favorite-star:hover {
  transform: scale(1.2);
  color: #f59e0b;
}

.team-favorite-star.fa-solid {
  color: #f59e0b;
}

/* Adjust team-info layout to accommodate stars */
.match-header-inline .team-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Team search actions container */
.team-search-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Team delete button */
.team-delete-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.team-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  transform: scale(1.05);
}


/* ============================================
   Enhanced Team Details Info Styles
   ============================================ */

.team-info-container {
    padding: 20px;
}

.team-info-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.team-info-section-title {
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-info-section-title i {
    color: #00e676;
    font-size: 18px;
}

/* Team Info Grid - Updated */
.team-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.team-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.team-info-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.team-info-item-full {
    grid-column: 1 / -1;
}

.team-info-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-info-label i {
    color: #64748b;
    font-size: 12px;
}

.team-info-value {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
}

/* Coach Info Card */
.coach-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.coach-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 230, 118, 0.3);
}

.coach-details h4 {
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.coach-details p {
    color: #94a3b8;
    font-size: 13px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coach-details i {
    color: #64748b;
    font-size: 12px;
}

/* Venue Image */
.venue-image-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.venue-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* Trophies Grid */
.trophies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.trophy-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.trophy-card:hover {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.trophy-icon {
    font-size: 32px;
    color: #ffd700;
    min-width: 40px;
    text-align: center;
}

.trophy-details h4 {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.trophy-season {
    color: #94a3b8;
    font-size: 12px;
    margin: 3px 0;
}

.trophy-times {
    color: #ffd700;
    font-size: 11px;
    font-weight: 600;
    margin: 3px 0;
}

/* Sidelined Players */
.sidelined-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidelined-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.sidelined-card.injury {
    background: rgba(255, 59, 59, 0.05);
    border-color: rgba(255, 59, 59, 0.2);
}

.sidelined-card.suspension {
    background: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.2);
}

.sidelined-card:hover {
    transform: translateX(5px);
}

.sidelined-icon {
    font-size: 28px;
    min-width: 40px;
    text-align: center;
}

.sidelined-card.injury .sidelined-icon {
    color: #ff3b3b;
}

.sidelined-card.suspension .sidelined-icon {
    color: #ffc107;
}

.sidelined-details h4 {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.sidelined-reason {
    color: #94a3b8;
    font-size: 12px;
    margin: 3px 0;
    font-weight: 600;
}

.sidelined-dates {
    color: #64748b;
    font-size: 11px;
    margin: 5px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidelined-dates i {
    font-size: 10px;
}

/* Data Source Badge */
.team-info-source {
    text-align: center;
    padding: 12px;
    background: rgba(0, 230, 118, 0.05);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.team-info-source i {
    color: #00e676;
}


/* Unavailable Data Message */
.team-info-unavailable {
    padding: 30px;
    text-align: center;
    background: rgba(255, 193, 7, 0.05);
    border: 1px dashed rgba(255, 193, 7, 0.3);
    border-radius: 10px;
}

.team-info-unavailable i {
    font-size: 32px;
    color: #ffc107;
    margin-bottom: 15px;
    display: block;
}

.team-info-unavailable p {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}


/* ============================================
   Team Statistics Styles
   ============================================ */

.team-stats-container {
    padding: 20px;
}

.stats-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.stats-section-title {
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-section-title i {
    color: #00e676;
    font-size: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-card-success {
    border-color: rgba(0, 230, 118, 0.3);
    background: rgba(0, 230, 118, 0.05);
}

.stat-card-danger {
    border-color: rgba(255, 59, 59, 0.3);
    background: rgba(255, 59, 59, 0.05);
}

.stat-label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.stat-value {
    color: #e2e8f0;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-sublabel {
    color: #64748b;
    font-size: 11px;
}

/* Time Distribution Bars */
.time-distribution {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.time-bar {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    align-items: center;
    gap: 15px;
}

.time-label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.time-bar-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.time-bar-fill {
    background: linear-gradient(90deg, #00e676, #00c965);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.time-bar-fill-danger {
    background: linear-gradient(90deg, #ff3b3b, #ff5252);
}

.time-value {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================
   ENHANCED PLAYER TABLE STYLES
   ============================================ */

/* Main position section with collapsible header */
.players-main-section {
  margin-bottom: 25px;
}

.players-main-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.players-main-header:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.15));
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.players-main-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.position-toggle-icon {
  transition: transform 0.3s ease;
  color: #3b82f6;
  font-size: 14px;
}

.player-count {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  margin-left: 5px;
}

/* Subdivisions container */
.players-subdivisions {
  display: block;
  padding-left: 20px;
}

/* Sub-position header */
.players-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid #3b82f6;
  margin-bottom: 10px;
  border-radius: 4px;
}

.sub-position-name {
  color: #3b82f6;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.sub-player-count {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

/* Enhanced player table */
.players-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.players-table thead {
  background: rgba(0, 0, 0, 0.4);
}

.players-table th {
  padding: 12px 10px;
  text-align: left;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.players-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.players-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.1);
}

.players-table td {
  padding: 12px 10px;
  color: #e2e8f0;
  font-size: 13px;
}

/* Player rating with color coding */
.player-rating {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}

.rating-excellent {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.rating-good {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.rating-average {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.rating-poor {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.rating-no-data {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
  cursor: help;
}

/* Captain badge */
.captain-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 14px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Per 90 minutes stats */
.per90-stat {
  color: #3b82f6;
  font-weight: 600;
  font-size: 11px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .players-table {
    font-size: 12px;
  }
  
  .players-table th,
  .players-table td {
    padding: 10px 8px;
  }
}

@media (max-width: 768px) {
  .players-subdivisions {
    padding-left: 10px;
  }
  
  .players-table {
    font-size: 11px;
  }
  
  .players-table th,
  .players-table td {
    padding: 8px 6px;
  }
  
  .player-name-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* ============================================
   PHASE 2: PLAYER CONTROLS (SEARCH, FILTER, SORT)
   ============================================ */

/* Phase 2 CSS removed - search/filter/sort functionality removed per user request */

/* Clickable player rows for Phase 3 */
.players-table tbody tr {
  cursor: pointer;
}

.players-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.15);
}

/* ============================================
   PHASE 3: PLAYER DETAILS MODAL
   ============================================ */

.player-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.player-modal {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

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

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: rotate(90deg);
}

.player-modal-header {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-modal-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #3b82f6;
  object-fit: cover;
}

.player-modal-info h2 {
  margin: 0 0 10px 0;
  color: #e2e8f0;
  font-size: 28px;
  font-weight: 700;
}

.player-modal-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.player-modal-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 14px;
}

.player-modal-meta i {
  color: #3b82f6;
}

.player-modal-body {
  padding: 30px;
}

.player-modal-section {
  margin-bottom: 30px;
}

.player-modal-section:last-child {
  margin-bottom: 0;
}

.player-modal-section h3 {
  color: #e2e8f0;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-modal-section h3 i {
  color: #3b82f6;
}

.player-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.player-info-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-info-item .label {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.player-info-item .value {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
}

.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.player-stats-grid:last-child {
  margin-bottom: 0;
}

.stat-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s ease;
}

.stat-box:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.stat-box.stat-excellent {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.stat-box.stat-good {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
}

.stat-box.stat-average {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
}

.stat-box.stat-warning {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
}

.stat-box.stat-danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.stat-icon {
  font-size: 24px;
  color: #3b82f6;
  margin-bottom: 10px;
}

.stat-box.stat-excellent .stat-icon {
  color: #22c55e;
}

.stat-box.stat-warning .stat-icon {
  color: #fbbf24;
}

.stat-box.stat-danger .stat-icon {
  color: #ef4444;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Transfer History Styles */
.transfers-timeline {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.transfer-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: rgba(15, 52, 96, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.transfer-item:hover {
  background: rgba(15, 52, 96, 0.5);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateX(5px);
}

.transfer-date {
  min-width: 100px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  padding-top: 2px;
}

.transfer-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transfer-teams {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.transfer-from {
  color: #ef4444;
}

.transfer-to {
  color: #22c55e;
}

.transfer-arrow {
  color: #3b82f6;
  font-size: 12px;
}

.transfer-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
}

.transfer-type {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.transfer-fee {
  color: #fbbf24;
  font-weight: 700;
}

.no-data-message,
.error-message {
  text-align: center;
  padding: 30px;
  color: #64748b;
  font-size: 14px;
}

.error-message {
  color: #ef4444;
}

.no-data-message i,
.error-message i {
  display: block;
  font-size: 32px;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* Responsive for modal */
@media (max-width: 768px) {
  .player-modal-header {
    flex-direction: column;
    text-align: center;
  }
  
  .player-modal-meta {
    justify-content: center;
  }
  
  .player-info-grid,
  .player-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .transfer-item {
    flex-direction: column;
    gap: 10px;
  }
  
  .transfer-date {
    min-width: auto;
  }
  
  .transfer-teams {
    flex-wrap: wrap;
  }
}


/* ============================================
   ENHANCED LIVE MATCH CARD - PROFESSIONAL
   ============================================ */

.live-match-card {
  padding: 20px 16px;
  background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.live-match-league {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
}

.live-match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.live-team-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.live-team-logo:hover {
  transform: scale(1.05);
}

.live-team-name {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
  max-width: 100px;
  line-height: 1.2;
}

.live-match-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 100px;
}

.live-score-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.live-score-home,
.live-score-away {
  min-width: 32px;
  text-align: center;
}

.live-score-separator {
  color: #64748b;
  font-weight: 400;
  font-size: 20px;
}

.live-match-time {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 0.3px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
  position: relative;
  animation: livePulse 2s ease-in-out infinite;
}

.live-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: #ef4444;
  border-radius: 50%;
  animation: liveRipple 2s ease-out infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.9);
  }
}

@keyframes liveRipple {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.8;
  }
  100% {
    width: 250%;
    height: 250%;
    opacity: 0;
  }
}

.live-time-text {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  min-width: 50px;
  text-align: center;
}

/* Watch Live Button - Smaller */
.watch-live-btn {
  margin-top: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
}

.watch-live-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.watch-live-btn:active {
  transform: translateY(0);
}

.watch-live-btn i {
  font-size: 10px;
}

/* Horizontal Carousel Navigation */
.carousel-nav-horizontal {
  display: flex;
  gap: 8px;
}

#carousel-prev,
#carousel-next {
  width: 32px !important;
  height: 32px !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

#carousel-prev:hover,
#carousel-next:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

#carousel-prev:active,
#carousel-next:active {
  transform: scale(0.95) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .live-match-card {
    padding: 16px 12px;
  }
  
  .live-team-logo {
    width: 45px;
    height: 45px;
  }
  
  .live-team-name {
    font-size: 10px;
    max-width: 90px;
  }
  
  .live-score-numbers {
    font-size: 24px;
  }
  
  .live-match-time {
    padding: 5px 10px;
    font-size: 10px;
  }
  
  .watch-live-btn {
    padding: 5px 14px;
    font-size: 10px;
  }
  
  #carousel-prev,
  #carousel-next {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }
}


/* =========================
   Team & Player Details View (Center Column)
   ========================= */
.detail-view-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #1e2329;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.back-btn:hover {
  background: #2d3439;
  border-color: #00e676;
  color: #00e676;
}

.back-btn i {
  font-size: 11px;
}

#team-details-content,
#player-details-content {
  padding: 15px;
  /* Removed max-height and overflow - content flows naturally with page scroll */
}

/* Team Details in Center View */
.team-detail-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, #1e2329 0%, #2d3439 100%);
  border-radius: 8px;
  margin-bottom: 15px;
}

.team-detail-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.team-detail-info h1 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.team-detail-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #9ca3af;
}

.team-detail-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Player Details in Center View */
.player-detail-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, #1e2329 0%, #2d3439 100%);
  border-radius: 8px;
  margin-bottom: 15px;
}

.player-detail-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00e676;
}

.player-detail-info h1 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.player-detail-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #9ca3af;
}

.player-detail-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Sections */
.detail-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.detail-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section h3 i {
  color: #00e676;
  font-size: 14px;
}

/* Tabs in Detail View */
.detail-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 15px;
  overflow-x: auto;
}

.detail-tab {
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  color: #7b8794;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.detail-tab:hover {
  color: #fff;
}

.detail-tab.active {
  color: #00e676;
  border-bottom-color: #00e676;
}

.detail-tab-content {
  display: none;
}

.detail-tab-content.active {
  display: block;
}

/* Player info grid - make smaller */
.player-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.player-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-info-item .label {
  font-size: 11px;
  color: #7b8794;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.player-info-item .value {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
}

/* Player stats grid - make smaller */
.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stat-box {
  background: #1e2329;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  transition: all 0.2s;
}

.stat-box:hover {
  border-color: #00e676;
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 18px;
  color: #00e676;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 10px;
  color: #7b8794;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-box.stat-excellent {
  border-color: #00e676;
  background: rgba(0, 230, 118, 0.05);
}

.stat-box.stat-good {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.05);
}

.stat-box.stat-warning {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.05);
}

.stat-box.stat-danger {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

/* Priority League Styles */
.priority-league {
  border: 1px solid rgba(0, 230, 118, 0.3) !important;
  background: rgba(0, 230, 118, 0.02) !important;
  box-shadow: 0 2px 8px rgba(0, 230, 118, 0.1);
}

.priority-league .league-header {
  background: rgba(0, 230, 118, 0.05);
  border-bottom: 1px solid rgba(0, 230, 118, 0.2);
}

.priority-league .league-name-text {
  font-weight: 600;
  color: #fff !important;
}

.priority-badge {
  animation: priorityGlow 2s ease-in-out infinite alternate;
}

@keyframes priorityGlow {
  0% { 
    background: #00e676 !important;
    box-shadow: 0 0 5px rgba(0, 230, 118, 0.3);
  }
  100% { 
    background: #00ff88 !important;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
  }
}

/* Priority league match rows */
.priority-league .match-row {
  border-left: 2px solid rgba(0, 230, 118, 0.3);
  background: rgba(0, 230, 118, 0.01);
}

.priority-league .match-row:hover {
  background: rgba(0, 230, 118, 0.05);
  border-left-color: #00e676;
}
/* League Search Styles */
#league-search-input:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.1);
}

#league-search-input::placeholder {
  color: #6b7280;
  font-size: 11px;
}

.league-search-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Custom scrollbar for search results */
#league-search-results::-webkit-scrollbar {
  width: 4px;
}

#league-search-results::-webkit-scrollbar-track {
  background: var(--panel);
}

#league-search-results::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

#league-search-results::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}

/* Fix star icon hover effect in Top Countries */
#countries-list .fa-star {
  pointer-events: none !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#countries-list .fa-star:hover,
#countries-list .fa-star:focus,
#countries-list .fa-star:active {
  background: transparent !important;
  color: #00e676 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Disable all hover effects on star icons */
.fa-star {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.fa-star:hover,
.fa-star:focus,
.fa-star:active {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Additional fix for FontAwesome star icon hover effects */
i.fa-star,
.fa-solid.fa-star {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

i.fa-star:hover,
i.fa-star:focus,
i.fa-star:active,
.fa-solid.fa-star:hover,
.fa-solid.fa-star:focus,
.fa-solid.fa-star:active {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* Remove any default button-like behavior from icons */
#countries-list i {
  cursor: default !important;
  pointer-events: none !important;
}

/* ============================================
   SPORTMONKS ADVANCED FEATURES STYLES
   ============================================ */

/* TV Stations Display */
.tv-stations-container {
  margin: 15px 0;
  padding: 12px;
  background: linear-gradient(135deg, #1a1e22 0%, #21262b 100%);
  border-radius: 8px;
  border-left: 4px solid #00e676;
}

.tv-stations-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tv-stations-title i {
  color: #00e676;
}

.tv-stations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tv-station-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--panel);
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text);
  transition: all 0.2s ease;
}

.tv-station-item:hover {
  border-color: #00e676;
  box-shadow: 0 2px 4px rgba(0,230,118,0.2);
}

.tv-station-logo {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

/* Commentaries Section */
.commentaries-container {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.commentaries-header {
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  color: #000;
  padding: 15px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.commentaries-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 0;
}

.commentary-item {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
  position: relative;
}

.commentary-item:hover {
  background-color: var(--panel-2);
}

.commentary-item.important {
  background: linear-gradient(90deg, rgba(255,193,7,0.1) 0%, transparent 100%);
  border-left: 4px solid #ffc107;
}

.commentary-item.goal {
  background: linear-gradient(90deg, rgba(0,230,118,0.1) 0%, transparent 100%);
  border-left: 4px solid #00e676;
}

.commentary-minute {
  font-weight: 700;
  color: #00e676;
  font-size: 14px;
  margin-right: 10px;
  min-width: 35px;
  display: inline-block;
}

.commentary-text {
  color: var(--text);
  line-height: 1.4;
  font-size: 14px;
}

.commentary-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

/* Advanced Statistics */
.advanced-stats-container {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.advanced-stats-header {
  background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
  color: white;
  padding: 15px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.advanced-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.team-advanced-stats {
  background: var(--panel-2);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--border);
}

.team-stats-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  text-align: center;
}

.advanced-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

.stat-name {
  font-size: 13px;
  color: var(--muted);
}

.stat-value {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

/* Ball Coordinates Visualization */
.ball-coordinates-container {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ball-coordinates-header {
  background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
  color: #000;
  padding: 15px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.football-field {
  position: relative;
  width: calc(100% - 40px);
  height: 300px;
  background: linear-gradient(90deg, #2d5a27 0%, #4a7c59 50%, #2d5a27 100%);
  margin: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #fff;
}

.field-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, white 1px, transparent 1px),
    linear-gradient(to bottom, white 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
}

.ball-position {
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255,255,255,0.8);
  transition: all 0.3s ease;
  z-index: 10;
}

.player-position {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  transition: all 0.3s ease;
  z-index: 5;
}

.player-position.home {
  background: #00e676;
}

.player-position.away {
  background: #ff3b3b;
}

/* Trends Analysis Charts */
.trends-container {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.trends-header {
  background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
  color: white;
  padding: 15px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trends-tabs {
  display: flex;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}

.trend-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.trend-tab.active {
  background: var(--panel);
  color: #00e676;
  font-weight: 600;
  border-bottom: 2px solid #00e676;
}

.trend-tab:hover {
  background: var(--panel);
  color: var(--text);
}

.trend-chart-container {
  padding: 20px;
  height: 300px;
}

.trend-chart {
  width: 100%;
  height: 100%;
}

/* ===== ADVANCED TRENDS LAYOUT ===== */
.trends-advanced-container {
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.trends-header-advanced {
  background: linear-gradient(135deg, #1a1e22 0%, #252b31 100%);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #00e676;
}

.trends-title-section {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
  font-size: 18px;
  font-weight: 700;
}

.trends-title-section i {
  color: #00e676;
  font-size: 20px;
}

.trends-period {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 400;
}

/* Stats Grid */
.trends-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 20px;
  background: var(--panel-2);
}

.trend-stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.trend-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.15);
  border-color: #00e676;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
  margin-bottom: 2px;
}

.stat-sublabel {
  font-size: 10px;
  color: #64748b;
}

/* Charts Section */
.trends-charts-section {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 15px;
  padding: 20px;
}

.trend-chart-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.chart-card-header {
  background: var(--panel-2);
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-card-header h4 {
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-card-header i {
  color: #00e676;
}

.chart-tabs-mini {
  display: flex;
  gap: 5px;
}

.chart-tab-mini {
  background: var(--panel);
  border: 1px solid var(--border);
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chart-tab-mini.active {
  background: #00e676;
  color: #000;
  border-color: #00e676;
}

.chart-tab-mini:hover {
  border-color: #00e676;
  color: #00e676;
}

.chart-canvas-wrapper {
  padding: 20px;
  height: 250px;
}

.chart-canvas-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Detailed Stats Table */
.trends-detailed-stats {
  padding: 20px;
  background: var(--panel-2);
  border-top: 1px solid var(--border);
}

.trends-detailed-stats h4 {
  font-size: 14px;
  color: #e2e8f0;
  font-weight: 600;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trends-detailed-stats i {
  color: #00e676;
}

.stats-table-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stats-table-row {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-label {
  font-size: 12px;
  color: #94a3b8;
}

.stats-value {
  font-size: 16px;
  font-weight: 700;
  color: #00e676;
}

.trends-demo-notice {
  padding: 15px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  background: var(--panel);
  border-top: 1px solid var(--border);
}

.trends-demo-notice i {
  color: #17a2b8;
  margin-right: 6px;
}

/* Responsive */
@media (max-width: 1200px) {
  .trends-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trends-charts-section {
    grid-template-columns: 1fr;
  }
  
  .stats-table-grid {
    grid-template-columns: 1fr;
  }
}

/* Live Standings */
.live-standings-container {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.live-standings-header {
  background: linear-gradient(135deg, #ff3b3b 0%, #fd7e14 100%);
  color: white;
  padding: 15px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ff3b3b;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
}

.standings-table th {
  background: var(--panel-2);
  padding: 12px 8px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.standings-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}

.standings-table tr:hover {
  background-color: var(--panel-2);
}

.position-cell {
  font-weight: 700;
  color: #00e676;
  text-align: center;
  width: 40px;
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-logo-small {
  width: 20px;
  height: 20px;
  border-radius: 2px;
}

.team-name {
  font-weight: 500;
  color: var(--text);
}

.form-indicators {
  display: flex;
  gap: 2px;
}

.form-indicator {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.form-indicator.W {
  background: #00e676;
  color: #000;
}

.form-indicator.D {
  background: #ffc107;
  color: #000;
}

.form-indicator.L {
  background: #ff3b3b;
}

/* Professional Enhancement Styles */
.professional-card {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.professional-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transform: translateY(-2px);
  border-color: #00e676;
}

.gradient-header {
  background: linear-gradient(135deg, var(--primary-color, #00e676) 0%, var(--secondary-color, #00c853) 100%);
  color: #000;
  padding: 15px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-source-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  color: #00e676;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  border: 1px solid var(--border);
}

.loading-skeleton {
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  height: 20px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.error-state {
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.error-state i {
  font-size: 24px;
  margin-bottom: 8px;
  color: #ff3b3b;
}

/* Enhanced Match Detail Tabs */
.match-detail-tabs {
  display: flex;
  background: var(--panel-2);
  border-radius: 8px;
  margin: 15px 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.match-detail-tab {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.match-detail-tab.active {
  background: var(--panel);
  color: #00e676;
  font-weight: 600;
}

.match-detail-tab:hover {
  color: var(--text);
  background: var(--panel);
}

.match-detail-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #00e676;
}

/* Enhanced Loading States */
.advanced-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--muted);
}

.advanced-loading i {
  font-size: 32px;
  margin-bottom: 12px;
  color: #00e676;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.advanced-loading-text {
  font-size: 14px;
  font-weight: 500;
}

/* Responsive Design for Advanced Features */
@media (max-width: 768px) {
  .advanced-stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }
  
  .tv-stations-list {
    flex-direction: column;
  }
  
  .trends-tabs {
    flex-wrap: wrap;
  }
  
  .trend-tab {
    min-width: 80px;
    font-size: 11px;
    padding: 10px 8px;
  }
  
  .standings-table {
    font-size: 11px;
  }
  
  .standings-table th,
  .standings-table td {
    padding: 8px 4px;
  }
  
  .football-field {
    height: 200px;
    margin: 10px;
  }
  
  .match-detail-tabs {
    flex-wrap: wrap;
  }
  
  .match-detail-tab {
    min-width: 25%;
    font-size: 11px;
    padding: 10px 8px;
  }
  
  .commentaries-content {
    max-height: 300px;
  }
  
  .commentary-item {
    padding: 10px 15px;
  }
  
  .trend-chart-container {
    height: 250px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .advanced-stats-grid {
    padding: 10px;
    gap: 10px;
  }
  
  .team-advanced-stats {
    padding: 10px;
  }
  
  .football-field {
    height: 150px;
    margin: 10px 5px;
  }
  
  .trends-header,
  .commentaries-header,
  .advanced-stats-header,
  .ball-coordinates-header,
  .live-standings-header {
    padding: 12px 15px;
    font-size: 14px;
  }
}

/* ========== MATCH DETAILS VIEW ========== */
.match-detail-header {
    background: linear-gradient(135deg, #1a1d23 0%, #252b31 25%, #2d3439 50%, #353c43 75%, #3d444b 100%);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.match-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.match-league-info-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    position: absolute;
    top: 20px;
    left: 24px;
    z-index: 2;
}

.league-logo-md {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    background: rgba(255, 255, 255, 0.95);
    padding: 3px;
    border-radius: 6px;
}

.match-score-center {
    text-align: center;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.match-datetime-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
}

.match-date-lg {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 600;
    margin-right: 12px;
}

.match-time-lg {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.match-time-lg.live-time {
    color: #ef4444;
    font-weight: 700;
}

.score-display-lg {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
    letter-spacing: 4px;
}

.vs-display-lg {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
    letter-spacing: 3px;
}

.match-status-lg {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.match-status-lg.status-live {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.match-status-lg.status-abnormal-lg {
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.2);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.team-side {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.team-logo-xl {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
    background: rgba(255, 255, 255, 0.95);
    padding: 6px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.team-logo-xl.clickable-team:hover {
    transform: scale(1.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.team-name-lg {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.2s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 150px;
}

.team-name-lg.clickable-team:hover {
    color: #cbd5e1;
}

.team-favorite-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.team-favorite-btn:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    transform: scale(1.15);
}

.team-favorite-btn.active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
}

.match-time {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
}

.match-league-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
}

.league-logo-sm {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

/* Detail tabs */
.detail-tabs {
    display: flex;
    gap: 6px;
    background: transparent;
    padding: 0;
    padding-left: 12px;
    margin-bottom: 8px;
    margin-top: -8px;
    justify-content: flex-start;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    overflow-y: hidden;
}

.detail-tabs::-webkit-scrollbar {
    display: none;
}

.detail-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.detail-tab {
    flex: 0 0 auto;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    margin-bottom: -2px;
}

.detail-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.detail-tab.active {
    background: transparent;
    color: var(--green);
    border-color: transparent;
    border-bottom: 3px solid var(--green);
}

.detail-tab:not(.active) {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tab content */
.detail-tab-content {
    display: none;
    background: var(--panel);
    border-radius: 8px;
    padding: 20px;
    min-height: 300px;
}

.detail-tab-content.active {
    display: block;
}

/* Back button */
.detail-view-header {
    margin-bottom: 15px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:hover {
    background: var(--panel-2);
    border-color: var(--green);
    color: var(--green);
}

.back-btn i {
    font-size: 11px;
}

/* ========== TRENDS COMPARISON ========== */
.trends-comparison-container {
    max-width: 100%;
}

.trends-comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.team-trends-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.team-trends-label img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.trends-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.trends-title i {
    color: var(--green);
    font-size: 14px;
}

.trends-period {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}

/* Comparison Grid */
.trends-comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.comparison-stat-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 15px;
    background: var(--panel-2);
    border-radius: 8px;
    padding: 15px;
}

.stat-value-home,
.stat-value-away {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.stat-value-home {
    color: var(--green);
}

.stat-value-away {
    color: #ff3b3b;
}

.stat-label-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.stat-label-center i {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 3px;
}

.stat-label-center span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.stat-label-center small {
    font-size: 11px;
    color: var(--muted);
}

/* Chart Container */
.trends-chart-container {
    background: var(--panel-2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.chart-header {
    margin-bottom: 15px;
}

.chart-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.chart-header i {
    color: var(--green);
    font-size: 13px;
}

.chart-canvas-wrapper {
    position: relative;
    height: 220px;
}

.demo-data-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    color: #ffc107;
    font-size: 12px;
}

.demo-data-notice i {
    font-size: 12px;
}


/* Live Match Statistics Inline Display */
.live-stats-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.stat-badge i {
  font-size: 9px;
}

.stat-badge.yellow-card {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.stat-badge.yellow-card i {
  color: #ffc107;
}

.stat-badge.red-card {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.stat-badge.red-card i {
  color: #f44336;
}

.stat-badge.corner {
  background: rgba(33, 150, 243, 0.15);
  color: #2196f3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.stat-badge.corner i {
  color: #2196f3;
}

/* Adjust team-line to accommodate stats */
.team-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}


/* Featured Badge with Subtle Glow Effect */
.featured-badge {
  background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 50%, #1e293b 100%);
  color: #fbbf24;
  font-size: 8px;
  padding: 2px 5px;
  border-radius: 8px;
  font-weight: 700;
  margin-left: 5px;
  letter-spacing: 0.3px;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.5),
               0 0 10px rgba(251, 191, 36, 0.3);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.25),
              0 0 15px rgba(251, 191, 36, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: subtle-glow-pulse 3s ease-in-out infinite;
  position: relative;
  display: inline-block;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Subtle glow pulse animation */
@keyframes subtle-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.25),
                0 0 15px rgba(251, 191, 36, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.5),
                 0 0 10px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.35),
                0 0 20px rgba(251, 191, 36, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.6),
                 0 0 12px rgba(251, 191, 36, 0.4);
  }
}

/* Hover effect for featured badge */
.featured-badge:hover {
  transform: scale(1.03);
  transition: transform 0.2s ease;
}


/* ========================================
   PROFESSIONAL LEAGUE HEADER REDESIGN
   ======================================== */

/* League Group Container */
.league-group {
  margin-bottom: 2px;
  background: var(--panel);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}

/* League Header */
.league-header {
  background: linear-gradient(135deg, #1e2530 0%, #252d3a 100%);
  border-left: 3px solid #00e676;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.league-header:hover {
  background: linear-gradient(135deg, #252d3a 0%, #2a3442 100%);
  border-left-color: #00ff88;
}

.league-header:active {
  transform: scale(0.995);
}

/* League Header Content */
.league-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 12px;
  gap: 12px;
  width: 100%;
}

/* Left Side - League Info */
.league-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 70%;
}

.league-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.league-title-wrapper {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.league-country {
  color: #8b95a5;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.league-name {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right Side - Controls */
.league-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
  justify-content: flex-end;
}

.match-count-badge {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(0, 230, 118, 0.2);
  transition: all 0.2s ease;
  min-width: 20px;
  text-align: center;
}

.league-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b95a5;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.league-toggle-btn:hover {
  background: rgba(0, 230, 118, 0.1);
  border-color: rgba(0, 230, 118, 0.3);
  color: #00e676;
}

.league-toggle-btn i {
  font-size: 10px;
  transition: transform 0.2s ease;
}

/* League Matches Container */
.league-matches-container {
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Priority League Styling */
.priority-league .league-header {
  background: linear-gradient(135deg, #1a2e26 0%, #1e3530 100%);
  border-left-color: #fbbf24;
  border-bottom: none;
}

.priority-league .league-header:hover {
  background: linear-gradient(135deg, #1e3530 0%, #233d38 100%);
  border-left-color: #fcd34d;
}

.priority-league .league-country {
  color: #a0aec0;
}

.priority-league .league-name {
  color: #f7fafc;
  font-weight: 700;
}

.priority-league .match-count-badge {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .league-header-content {
    padding: 8px 12px;
  }
  
  .league-country {
    font-size: 10px;
  }
  
  .league-name {
    font-size: 12px;
  }
  
  .match-count-badge {
    font-size: 9px;
    padding: 3px 6px;
  }
  
  .league-toggle-btn {
    width: 24px;
    height: 24px;
  }
}

/* Animation for expanding/collapsing */
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 2000px;
  }
}

.league-matches-container.expanded {
  animation: slideDown 0.3s ease;
}
