/* Ranking Page Styles - CHỈ TỐI ƯU IMAGES, GIỮ NGUYÊN TEXT STYLING ĐẸP */

.ranking-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.ranking-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ranking-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.ranking-categories {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Category Navigation - GIỮ NGUYÊN STYLING ĐẸP */
.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    background: white;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 5px;
}

.category-btn {
    background: transparent;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #666;
    white-space: nowrap;
}

.category-btn.active {
    background: #e74c3c;
    color: white;
}

.category-btn:hover:not(.active) {
    background: #f8f9fa;
    color: #e74c3c;
}

/* Content Sections - GIỮ NGUYÊN */
.ranking-content {
    display: none;
}

.ranking-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Season Selector - GIỮ NGUYÊN */
.season-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.season-selector h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.season-dropdown {
    padding: 10px 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.season-dropdown:focus {
    outline: none;
    border-color: #e74c3c;
}

/* DVA Teams Performance - GIỮ NGUYÊN STYLING ĐẸP */
.dva-teams-section {
    margin-bottom: 4rem;
}

.dva-teams-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.dva-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.team-performance-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #e74c3c;
    transition: all 0.3s ease;
}

.team-performance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.team-header h4 {
    font-size: 1.3rem;
    color: #333;
    margin: 0;
}

.rank-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.rank-1 { background: #f39c12; }
.rank-2 { background: #95a5a6; }
.rank-3 { background: #cd7f32; }
.rank-4, .rank-5 { background: #3498db; }
.rank-6 { background: #9b59b6; }

.performance-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat .label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
}

.recent-form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-label {
    font-weight: 600;
    color: #666;
}

.form-indicators {
    display: flex;
    gap: 5px;
}

.form-result {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
}

.form-result.win {
    background: #27ae60;
}

.form-result.loss {
    background: #e74c3c;
}

.form-result.draw {
    background: #f39c12;
}

/* League Table - GIỮ NGUYÊN STYLING ĐẸP */
.league-table-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-filters,
.table-view-toggle {
    display: flex;
    gap: 0.5rem;
}

.filter-btn,
.view-btn {
    padding: 8px 16px;
    border: 2px solid #eee;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn.active,
.view-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.filter-btn:hover:not(.active),
.view-btn:hover:not(.active) {
    border-color: #e74c3c;
    color: #e74c3c;
}

.table-wrapper {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.league-table {
    width: 100%;
    border-collapse: collapse;
}

.league-table th {
    background: #333;
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.league-table th:hover {
    background: #555;
}

.league-table th.sortable::after {
    content: ' ↕';
    opacity: 0.5;
    margin-left: 5px;
}

.league-table th.sort-asc::after {
    content: ' ↑';
    opacity: 1;
    color: #e74c3c;
}

.league-table th.sort-desc::after {
    content: ' ↓';
    opacity: 1;
    color: #e74c3c;
}

.league-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.league-table tr:hover {
    background: #f8f9fa;
}

.league-table .position {
    font-weight: 700;
    color: #333;
    width: 50px;
    text-align: center;
}

.league-table .team-name {
    font-weight: 600;
    color: #333;
    min-width: 150px;
}

.league-table .dva-team {
    background: linear-gradient(45deg, #fff, #ffe6e6);
    border-left: 4px solid #e74c3c;
}

.league-table .dva-team .team-name {
    color: #e74c3c;
    font-weight: 700;
}

/* Position indicators */
.league-table tr.champions {
    border-left: 4px solid #f39c12;
}

.league-table tr.playoffs {
    border-left: 4px solid #3498db;
}

.league-table tr.relegation {
    border-left: 4px solid #e74c3c;
}

/* Table Legend */
.table-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.legend-color {
    width: 20px;
    height: 4px;
    border-radius: 2px;
}

.legend-color.champions {
    background: #f39c12;
}

.legend-color.playoffs {
    background: #3498db;
}

.legend-color.relegation {
    background: #e74c3c;
}

/* Tournament Brackets - GIỮ NGUYÊN STYLING ĐẸP */
.tournament-selector {
    margin-bottom: 3rem;
}

.tournament-selector h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.tournament-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tournament-btn {
    padding: 12px 24px;
    border: 2px solid #eee;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #666;
}

.tournament-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.tournament-btn:hover:not(.active) {
    border-color: #e74c3c;
    color: #e74c3c;
}

.bracket-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bracket-header {
    text-align: center;
    margin-bottom: 3rem;
}

.bracket-header h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.bracket-header p {
    color: #666;
}

.bracket-rounds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.bracket-round h5 {
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e74c3c;
}

.matches {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.match-card.final {
    background: linear-gradient(45deg, #fff, #fff5f5);
    border-color: #e74c3c;
}

.match-card.upcoming {
    border-color: #3498db;
    background: linear-gradient(45deg, #fff, #f0f8ff);
}

.match-teams {
    margin-bottom: 0.5rem;
}

.team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.team:last-child {
    border-bottom: none;
}

.team.winner .team-name {
    font-weight: 700;
    color: #27ae60;
}

.team.dva-team .team-name {
    color: #e74c3c;
    font-weight: 700;
}

.team-name {
    font-weight: 600;
    color: #333;
}

.score {
    font-weight: 700;
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
    color: #666;
}

.team.winner .score {
    color: #27ae60;
}

.match-info {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.match-time {
    display: block;
    color: #3498db;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Player Stats - GIỮ NGUYÊN TEXT STYLING */
.stats-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stats-btn {
    padding: 12px 20px;
    border: 2px solid #eee;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #666;
}

.stats-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.stats-btn:hover:not(.active) {
    border-color: #e74c3c;
    color: #e74c3c;
}

.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.player-stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.player-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.player-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stat-rank {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.stat-rank.rank-1 {
    background: #f39c12;
}

.stat-rank.rank-2 {
    background: #95a5a6;
}

.stat-rank.rank-3 {
    background: #cd7f32;
}

/* ===== CHỈ TỐI ƯU PHẦN IMAGE LOADING - KHÔNG THAY ĐỔI STYLING ===== */

/* Enhanced Player Avatar Styles - TỐI ƯU CHỈ IMAGES */
.player-avatar-small {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.player-avatar-small:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ⚡ OPTIMIZED IMAGE LOADING - CHỈ TỐI ƯU LOAD IMAGES */
.player-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* TỐI ƯU: Load ngay lập tức, không lazy loading */
    opacity: 1;
    /* TỐI ƯU: Optimize image rendering */
    image-rendering: optimizeQuality;
    /* TỐI ƯU: Async decoding for better performance */
    decoding: async;
    /* TỐI ƯU: Prevent layout shift */
    width: 80px;
    height: 80px;
}

/* TỐI ƯU: Loaded state - immediate visibility */
.player-avatar-small img.loaded {
    opacity: 1;
}

/* Fallback initials styling when no image - GIỮ NGUYÊN */
.player-avatar-small .avatar-initials {
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* DVA player special styling - GIỮ NGUYÊN */
.player-stat-card.dva-player .player-avatar-small {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
}

/* Different gradient colors for different ranks - GIỮ NGUYÊN */
.player-stat-card .player-avatar-small.rank-1-avatar {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    border-color: #f39c12;
}

.player-stat-card .player-avatar-small.rank-2-avatar {
    background: linear-gradient(135deg, #95a5a6, #bdc3c7);
    border-color: #95a5a6;
}

.player-stat-card .player-avatar-small.rank-3-avatar {
    background: linear-gradient(135deg, #cd7f32, #d4ac6a);
    border-color: #cd7f32;
}

/* Avatar placeholder when image fails to load - GIỮ NGUYÊN */
.player-avatar-small.error {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    border-color: #95a5a6;
}

.player-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.player-team {
    font-size: 0.9rem;
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Championship Podium Styles - TỐI ƯU CHỈ IMAGES */
.championship-section {
    margin-bottom: 4rem;
}

.championship-section h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.championship-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    border-radius: 2px;
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.podium-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    min-width: 280px;
    border: 3px solid transparent;
}

.podium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.podium-card.first-place {
    border-color: #f39c12;
    background: linear-gradient(135deg, #fff, #fff9e6);
    transform: scale(1.1);
    z-index: 3;
    height: 500px;
}

.podium-card.second-place {
    border-color: #95a5a6;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    z-index: 2;
    height: 420px;
}

.podium-card.third-place {
    border-color: #cd7f32;
    background: linear-gradient(135deg, #fff, #fdf4e6);
    z-index: 1;
    height: 340px;
}

.rank-crown {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.rank-crown.champion {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
}

.podium-card.second-place .rank-crown {
    background: linear-gradient(135deg, #95a5a6, #bdc3c7);
}

.podium-card.third-place .rank-crown {
    background: linear-gradient(135deg, #cd7f32, #d4ac6a);
}

.team-logo {
    width: 100px;
    height: 100px;
    margin: 2rem auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #eee;
    transition: all 0.3s ease;
}

.team-logo.champion-logo {
    border-color: #f39c12;
    width: 120px;
    height: 120px;
}

/* ⚡ OPTIMIZED TEAM LOGO LOADING - CHỈ TỐI ƯU IMAGES */
.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* TỐI ƯU: Load ngay lập tức */
    opacity: 1;
    /* TỐI ƯU: Optimize image rendering */
    image-rendering: optimizeQuality;
    decoding: async;
}

/* TỐI ƯU: Loaded state */
.team-logo img.loaded {
    opacity: 1;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.podium-card .team-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.rank-title {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 1rem;
}

.champion-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.team-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-stats .stat {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-stats .label {
    font-size: 0.9rem;
    color: #666;
}

.team-stats .value {
    font-weight: 700;
    color: #333;
}

/* Dream Team Awards Styles - TỐI ƯU CHỈ IMAGES */
.dream-team-section {
    margin-top: 4rem;
}

.dream-team-section h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.dream-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.award-category {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #e74c3c;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.category-title i {
    color: #e74c3c;
    font-size: 1.2rem;
}

.awards-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.awards-group.single-award {
    justify-content: center;
}

.dream-team-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    min-width: 200px;
    border: 2px solid transparent;
}

.dream-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.dream-team-card.gold-award {
    background: linear-gradient(135deg, #fff9e6, #ffffff);
    border-color: #f39c12;
}

.dream-team-card.silver-award {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-color: #95a5a6;
}

.award-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.silver-award .award-badge {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.player-avatar-dream {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 1rem auto;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dream-team-card.gold-award .player-avatar-dream {
    border-color: #f39c12;
}

.dream-team-card.silver-award .player-avatar-dream {
    border-color: #95a5a6;
}

.player-avatar-dream:hover {
    transform: scale(1.05);
}

/* ⚡ OPTIMIZED DREAM TEAM AVATAR LOADING - CHỈ TỐI ƯU IMAGES */
.player-avatar-dream img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* TỐI ƯU: Load ngay lập tức */
    opacity: 1;
    /* TỐI ƯU: Optimize rendering */
    image-rendering: optimizeQuality;
    decoding: async;
}

/* TỐI ƯU: Loaded state */
.player-avatar-dream img.loaded {
    opacity: 1;
}

.dream-team-card .player-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.dream-team-card .player-team {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #666;
}

.dream-team-card .player-team.dva-team {
    color: #e74c3c;
}

.award-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.award-stats .stat {
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.award-stats .label {
    color: #666;
}

.award-stats .value {
    font-weight: 700;
    color: #333;
}

/* Season Records - GIỮ NGUYÊN STYLING ĐẸP */
.records-section h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.achievement-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.achievement-card h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.achievement-value {
    font-size: 2rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.achievement-holder {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.achievement-date {
    font-size: 0.9rem;
    color: #666;
}

/* Timeline */
.season-milestones h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e74c3c;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 120px;
    text-align: center;
    font-weight: 700;
    color: #e74c3c;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h5 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* Loading states */
.loading-content {
    text-align: center;
    padding: 4rem;
    color: #666;
}

.loading-content i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Fade in animation for cards */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design - GIỮ NGUYÊN TẤT CẢ MEDIA QUERIES */
@media (max-width: 768px) {
    .ranking-header h1 {
        font-size: 2.5rem;
    }

    .category-tabs {
        padding: 10px 5px;
    }

    .category-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .dva-teams-grid {
        grid-template-columns: 1fr;
    }

    .performance-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .table-filters,
    .table-view-toggle {
        justify-content: center;
    }

    .league-table {
        font-size: 0.8rem;
    }

    .league-table th,
    .league-table td {
        padding: 10px 5px;
    }

    .bracket-rounds {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 60px;
    }

    .timeline-date {
        position: absolute;
        left: -60px;
        flex: none;
        width: 100px;
    }

    /* TỐI ƯU: Responsive avatar sizing CHỈ CHO IMAGES */
    .player-avatar-small {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
    }
    
    .player-avatar-small .avatar-initials {
        font-size: 1.4rem;
    }
    
    .team-logo,
    .team-logo.champion-logo {
        width: 80px;
        height: 80px;
    }
    
    .player-avatar-dream {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .ranking-header h1 {
        font-size: 2rem;
    }

    .season-selector {
        flex-direction: column;
        text-align: center;
    }

    .team-performance-card {
        padding: 1.5rem;
    }

    .performance-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .recent-form {
        justify-content: center;
        flex-wrap: wrap;
    }

    .podium-container {
        flex-direction: column;
        align-items: center;
    }

    .podium-card {
        min-width: 250px;
    }

    .podium-card.first-place {
        order: -1;
        transform: none;
        margin-bottom: 2rem;
    }

    .dream-team-grid {
        grid-template-columns: 1fr;
    }

    .awards-group {
        flex-direction: column;
    }

    /* TỐI ƯU: Mobile image sizes CHỈ CHO IMAGES */
    .player-avatar-small {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    .player-avatar-small .avatar-initials {
        font-size: 1.2rem;
    }
    
    .team-logo,
    .team-logo.champion-logo {
        width: 70px;
        height: 70px;
    }
    
    .player-avatar-dream {
        width: 60px;
        height: 60px;
    }
}

/* ===== CHỈ TỐI ƯU IMAGE LOADING - KHÔNG THAY ĐỔI STYLING ===== */

/* TỐI ƯU: Optimize tất cả images để load immediate */
img {
    /* TỐI ƯU: Better image quality */
    image-rendering: optimizeQuality;
    /* TỐI ƯU: Non-blocking decode */
    decoding: async;
    /* TỐI ƯU: Prevent layout shifts */
    max-width: 100%;
    height: auto;
}

/* TỐI ƯU: Loaded state cho tất cả images */
img.loaded {
    opacity: 1 !important;
}


