.attendance-page .main-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px;
}

#standings-section {
    flex: 0 0 240px;
    order: 1 !important;
    position: sticky;
    top: 20px;
}

#schedule-section {
    flex: 1;
    order: 2 !important;
    min-width: 0;
}

/* Sidebar */
.team-nav-btn { font-size: 0.75rem !important; font-weight: 700 !important; text-transform: uppercase; }

/* League Overview */
.league-hero {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 40px; border-radius: 20px; text-align: center; margin-bottom: 25px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}
.hero-stat .value { font-size: 4.5rem; font-weight: 900; color: #fff; line-height: 1; margin: 15px 0; }

.high-low-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hl-card { background: #1e293b; padding: 20px; border-radius: 15px; border-left: 6px solid #38bdf8; }
.hl-card.high { border-left-color: #22c55e; }
.hl-card.low { border-left-color: #ef4444; }
.hl-val { display: block; font-size: 2rem; font-weight: 900; color: #fff; }

/* Team Detail Card */
.team-detail-card {
    background: #1e293b; border-radius: 20px; padding: 30px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Logo & Header in Card */
.detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.header-left { display: flex; align-items: center; gap: 20px; }

.team-logo-wrapper {
    width: 64px; height: 64px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); border: 2px solid rgba(56, 189, 248, 0.3);
}
.team-logo-main { width: 100%; height: 100%; object-fit: contain; }

.title-group h2 { font-size: 2rem; color: #fff; margin: 0; line-height: 1; }
.wiki-link { font-size: 0.7rem; color: #38bdf8; text-decoration: none; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }
.wiki-link:hover { opacity: 1; text-decoration: underline; }

.main-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; }
.stat-box { background: rgba(0,0,0,0.2); padding: 20px; border-radius: 12px; text-align: center; }
.stat-box .val { font-size: 2.5rem; font-weight: 900; color: #fff; display: block; }

.info-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; font-size: 0.85rem; color: #94a3b8; }

.utilization-area { margin-top: 25px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }
.progress-bar { background: #020617; height: 10px; border-radius: 5px; margin-top: 8px; overflow: hidden; }
.progress-bar .fill { background: #38bdf8; height: 100%; box-shadow: 0 0 10px rgba(56, 189, 248, 0.4); }

/* Game Log Table */
.game-log-container { margin-top: 30px; background: rgba(0, 0, 0, 0.15); border-radius: 12px; padding: 20px; }
.log-title { font-size: 0.8rem; text-transform: uppercase; color: #38bdf8; margin-bottom: 15px; letter-spacing: 1px; }
.game-log-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.game-log-table th { text-align: left; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #94a3b8; }
.game-log-table td { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.game-log-table tr:last-child td { border-bottom: none; }

/* Trend Badges */
.trend-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; }
.trend-badge.up { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.trend-badge.down { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

@media (max-width: 950px) {
    .attendance-page .main-container { flex-direction: column !important; }
    #standings-section { width: 100% !important; flex: none; position: static; }
    .high-low-grid, .main-stats-row, .info-footer { grid-template-columns: 1fr; }
}