.summary-main-container {
    display: flex;
    gap: 24px;
    margin: 24px 0;
}

.summary-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-col-main {
    flex: 3 1 0%;
    min-width: 0;
}

.summary-col-side {
    flex: 1 1 0%;
    /* min-width: 250px;
    max-width: 350px; */
}

.summary-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 5px;
    min-height: 120px;
}

.player-summary-section {
    min-height: 220px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.player-summary-top {
    display: flex;
    flex-direction: row;
    background: #111;
    color: #fff;
    border-radius: 10px 10px 0 0;
    padding: 8px 10px 5px 10px;
    align-items: center;
}

.player-summary-avatar-col {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: #888;
}

.player-summary-main-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 24px;
}

.player-summary-title-row {
    font-size: 1.3em;
    font-weight: bold;
    display: flex;
    align-items: baseline;
    gap: 0;
}

.player-name-placeholder {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
}

.player-summary-title {
    font-size: 1.2em;
    color: #fff;
}

.tier-box {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
}

.weapon-icon {
    height: 32px;
    filter: brightness(0);
    object-fit: contain;
}

.player-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.player-summary-table th, .player-summary-table td {
    padding: 6px 12px;
    text-align: center;
}

.player-summary-table th {
    color: #fff;
    font-weight: 600;
    background: #222;
}

.player-summary-table td {
    color: #fff;
    background: #222;
}

.player-summary-table .specials-cell {
    max-width: 200px;
    font-size: 0.8em;
    line-height: 1.2;
    text-align: left;
    padding: 6px 8px;
}

.player-summary-bottom {
    background: #fff;
    color: #111;
    border-radius: 0 0 10px 10px;
    padding: 10px 24px 5px 24px;
}

.player-summary-bottom-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 5px;
}

.player-summary-bottom-table th, .player-summary-bottom-table td {
    padding: 6px 12px;
    text-align: center;
}

.player-summary-bottom-table th {
    color: #111;
    font-weight: 600;
    background: #f5f5f5;
}

.player-summary-bottom-table td {
    color: #111;
    background: #fff;
}

.tier-restrictions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-top: 1px solid #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

.tier-restrictions-title {
    font-weight: 700;
    font-size: 0.9em;
    color: #222;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.tier-selector {
    display: flex;
    gap: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    flex: 1;
    min-width: 0;
}

.tier-btn {
    padding: 4px 8px;
    background: #f5f5f5;
    color: #222;
    font-weight: 600;
    font-size: 0.75em;
    text-transform: uppercase;
    cursor: help;
    border: none;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.tier-btn:hover {
    filter: brightness(0.95);
}

.tier-btn.active {
    color: #fff;
}

.tier-restrictions-link-row {
    padding: 0 10px 10px 10px;
    text-align: center;
}

.tier-restrictions-link {
    color: #1976d2;
    text-decoration: underline;
    font-size: 0.8em;
    transition: color 0.2s ease;
}

.tier-restrictions-link:hover {
    color: #1565c0;
}

.leaderboard-section {
    min-height: 320px;
}

.leaderboard-section h2 {
    text-align: center;
    margin: 0 0 16px 0;
}

.tier-winners-container {
    display: flex;
    gap: 12px;
    margin: 16px 10px;
    flex-wrap: wrap;
}

.tier-winner-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 200px;
    flex: 1;
    min-height: 80px;
}

.tier-winner-avatar {
    flex: 0 0 80px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tier-winner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tier-winner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tier-winner-header {
    padding: 8px 12px 4px 12px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
}

.tier-winner-details {
    background: #000;
    color: #fff;
    padding: 4px 12px 8px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tier-winner-name {
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: 2px;
}

.tier-winner-kdr {
    font-size: 0.8em;
    font-weight: 600;
}

.leaderboard-table-container {
    margin-top: 16px;
    padding: 0px 10px 10px 10px;
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.leaderboard-table th {
    background: #000;
    font-weight: 700;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    cursor: pointer;
    user-select: none;
}

.leaderboard-table th:hover {
    background: #333;
}

.leaderboard-table th.sort-asc::after {
    content: ' ▲';
    color: #fff;
    font-weight: bold;
}

.leaderboard-table th.sort-desc::after {
    content: ' ▼';
    color: #fff;
    font-weight: bold;
}

.leaderboard-table td {
    background: #fff;
    color: #333;
}

.leaderboard-table tbody tr:hover {
    background: #f8f8f8;
}

.leaderboard-table .player-cell {
    text-align: left;
    font-weight: 500;
}

.leaderboard-table .rank-cell {
    font-weight: 600;
    color: #666;
}

.leaderboard-table .kdr-cell {
    font-weight: 600;
}

.leaderboard-table .vs-1yr-cell {
    font-weight: 600;
    background: rgba(0, 0, 0, 0.08) !important;
    border-radius: 4px;
    margin: 2px;
    padding: 4px 6px !important;
}

.leaderboard-table .vs-1yr-positive {
    color: #4CAF50;
}

.leaderboard-table .vs-1yr-negative {
    color: #f44336;
}

.leaderboard-table .vs-1yr-neutral {
    color: #666;
}

.leaderboard-table .weapon-cell {
    text-align: center;
}

.leaderboard-table .tier-cell {
    text-align: center;
}

.leaderboard-table .weapon-icon-small {
    height: 20px;
    filter: brightness(0);
    object-fit: contain;
}

.leaderboard-table .tier-box-small {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    font-size: 0.8em;
}

.leaderboard-table .tier-row {
    color: #fff;
}

.leaderboard-table .tier-row td {
    background: transparent !important;
}

.leaderboard-table .tier-row .vs-1yr-cell {
    background: rgba(0, 0, 0, 0.3) !important;
}

.leaderboard-table .tier-row .weapon-cell img {
    filter: brightness(0) !important;
}

.leaderboard-table .tier-row .tier-cell {
    color: #000 !important;
}

.leaderboard-table .tier-row:hover {
    filter: brightness(1.1);
}

.leaderboard-table .current-user-row {
    outline: 3px solid #00ff00;
    outline-offset: -3px;
    font-weight: 600;
}

.highlights-section {
    min-height: 180px;
}

.awards-section {
    min-height: 180px;
}

.header-title {
    text-align: left;
    margin-bottom: 16px;
}

.header-title h1 {
    font-size: 1.5em;
    margin: 0;
}

.highlights-section h2 {
    margin: 5px 0 5px 0;
    padding: 0;
    text-align: center;
}

.awards-section h2 {
    text-align: center;
}

.highlights-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.highlight-item.highlight-ribbon {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-radius: 8px;
    border: none;
    min-height: 60px;
    box-shadow: 0 4px 4px rgba(0,0,0,0.1);
    background: #eee;
    position: relative;
    min-width: 325px;
    overflow: hidden;
}

.highlight-ribbon-header {
    display: flex;
    align-items: stretch;
    transition: background-color 0.2s ease;
}

.highlight-ribbon-header:hover {
    filter: brightness(0.95);
}

.highlight-ribbon-body {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1;
    position: relative;
}

.expand-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    color: #666;
    transition: transform 0.3s ease, color 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

.highlight-ribbon-header:hover .expand-icon {
    color: #333;
}

.highlight-item.highlight-ribbon.expanded .expand-icon {
    transform: translateY(-50%) rotate(180deg);
}

.highlight-ribbon-img {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px;
}

.highlight-ribbon-img img {
    /* width: 100%; */
    /* height: 100%; */
    object-fit: contain;
    filter: none;
}

.highlight-ribbon-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.highlight-ribbon-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px;
    padding-right: 30px;
}

.highlight-ribbon-title {
    font-weight: 700;
    font-size: 0.9em;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.highlight-ribbon-rank-small {
    flex: 0 0 auto;
}

.highlight-ribbon-rank-small span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-weight: 700;
    font-size: 0.8em;
    border: 1px solid #ddd;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.highlight-ribbon-row2 {
    display: flex;
    background-color: #fff;
    flex-direction: column;
    gap: 2px;
    padding: 2px;
}

.highlight-ribbon-winner {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
}

.highlight-ribbon-value {
    font-size: 0.8em;
    color: #666;
}

.highlight-ribbon-metric {
    font-size: 0.8em;
    font-weight: 400;
    color: #666;
    margin-left: 4px;
}

/* Award Winners List - Accordion Styles */
.award-winners-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background: #f9f9f9;
}

.highlight-item.highlight-ribbon.expanded .award-winners-list {
    max-height: 600px;
    border-top: 1px solid #ddd;
}

.award-winners-content {
    padding: 8px 0;
}

.winner-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.winner-row:hover {
    background: #f5f5f5;
}

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

.winner-rank {
    font-weight: 700;
    font-size: 0.85em;
    color: #666;
    min-width: 30px;
    text-align: center;
}

.winner-name {
    flex: 1;
    font-size: 0.85em;
    color: #333;
    font-weight: 500;
}

.winner-value {
    font-weight: 600;
    font-size: 0.85em;
    color: #333;
    min-width: 50px;
    text-align: right;
}

.current-user-winner {
    background: #e8f5e9 !important;
    border-left: 3px solid #4CAF50;
    font-weight: 600;
}

.current-user-winner .winner-name {
    color: #2e7d32;
    font-weight: 600;
}

.current-user-winner .winner-value {
    color: #2e7d32;
}

.no-winners {
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 0.85em;
    padding: 12px;
}

.no-highlights {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 16px;
}

.highlights-error {
    text-align: center;
    color: #f44336;
    font-style: italic;
    margin-top: 16px;
}

.show-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    color: #222;
    font-weight: 600;
    font-size: 0.75em;
    text-transform: uppercase;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.show-more-btn:hover {
    background: #e0e0e0;
    border-color: #bbb;
}

.show-more-icon {
    font-size: 1.2em;
    font-weight: bold;
}

.show-more-btn span {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

/* Override main content styling for this page */
#main-content {
    background: transparent;
    box-shadow: none;
}

/* Tier Restrictions Section */
.tier-restrictions-section {
    min-height: auto;
    padding: 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 10px;
}

.tier-restrictions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tier-restrictions-title {
    font-weight: 700;
    font-size: 0.9em;
    color: #222;
    text-transform: uppercase;
}

.current-tier {
    font-weight: 700;
    font-size: 0.9em;
    color: #222;
}

.tier-selector {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.tier-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: #f5f5f5;
    color: #222;
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tier-btn:hover {
    filter: brightness(0.95);
}

.tier-btn.active {
    color: #fff;
}

.tier-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

.tier-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

.tier-restrictions-link {
    text-align: center;
}

.tier-restrictions-link a {
    color: #1976d2;
    text-decoration: underline;
    font-size: 0.85em;
    transition: color 0.2s ease;
}

.tier-restrictions-link a:hover {
    color: #1565c0;
}

.show-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    color: #222;
    font-weight: 600;
    font-size: 0.75em;
    text-transform: uppercase;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.show-more-btn:hover {
    background: #e0e0e0;
    border-color: #bbb;
}

.show-more-icon {
    font-size: 1.2em;
    font-weight: bold;
}

.leaderboard-table .attn-cell {
    font-weight: 600;
    text-align: center;
}

.leaderboard-table .player-cell {
    text-align: center;
    font-weight: 500;
}

.leaderboard-table .team-cell {
    text-align: center;
    font-weight: 600;
    color: #666;
}

/* Highlights and Awards section header links */
.highlights-section h2 a,
.awards-section h2 a {
    transition: text-decoration 0.2s ease;
}

.highlights-section h2 a:hover,
.awards-section h2 a:hover {
    text-decoration: underline !important;
}

/* Clickable stats in leaderboard */
.leaderboard-table .clickable-stat {
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-weight: 600;
}

.leaderboard-table tbody tr .clickable-stat:hover {
    background-color: rgba(139, 0, 0, 0.1) !important;
    transform: scale(1.05);
}

/* Special hover effect for tier rows */
.leaderboard-table .tier-row .clickable-stat:hover {
    background-color: rgba(0, 0, 0, 0.3) !important;
} 