.info-box {
    margin-bottom: 20px;
}
.info-box-number {
    font-size: 24px;
    font-weight: bold;
}
.badge {
    font-size: 12px;
    padding: 5px 8px;
    font-weight: normal;
}
.label-success {
    background-color: #22e48d !important;
}
.label-warning {
    background-color: #fac062 !important;
}
.label-info {
    background: linear-gradient(135deg, #ff9933 0%, #e6841f 100%) !important;
}
.label-danger {
    background-color: #f17f70 !important;
}
.bg-yellow {
    background-color: #fac062 !important;
}
.bg-blue {
    background: linear-gradient(135deg, #ff9933 0%, #e6841f 100%) !important;
}
.bg-gray {
    background-color: #95a5a6 !important;
}
.bg-green {
    background-color: #22e48d !important;
}
.bg-orange {
    background-color: #f39c12 !important;
}
.bg-red {
    background-color: #dd4b39 !important;
}
.bg-pink {
    background-color: #ec5c8c !important;
}

.overall-rank-column {
    /* background-color: #f8f9fa !important; */
    /* border-right: 2px solid #dee2e6 !important; */
}
.rank-explanation {
    font-size: 14px;
    color: #666;
    /* margin-bottom: 15px; */
    /* padding: 8px; */
    /* background-color: #f8f9fa; */
    /* border-radius: 4px; */
    /* border-left: 4px solid #007cba; */
}
        /* Custom class for a well-styled rounded select */
.select-rounded {
            border-radius: 20rem !important; /* The !important might be needed to override defaults */
            /* You can also use a specific pixel value, e.g., border-radius: 10px; */
}

/* Runner Modal Styles */
.runner-modal-content {
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.runner-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.runner-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
    flex: 1;
}

.runner-status {
    margin-left: 15px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge i {
    margin-right: 5px;
}

.runner-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.info-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

.info-badge i {
    margin-right: 4px;
}

button.info-badge.js-share-runner {
    cursor: pointer;
    background-color: #fff8f0;
    border-color: #e6841f;
}

button.info-badge.js-share-runner:hover {
    background-color: #ffe8cc;
}

.section-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.runner-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.detail-item {
    flex: 0 1 auto;
    text-align: center;
    margin-left: 10px;
    margin-right:10px;
}

.detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

.detail-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.ranking-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ranking-item {
    text-align: center;
}

.ranking-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

.ranking-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.action-section {
    text-align: center;
    margin-bottom: 20px;
}

.recap-btn {
    background: linear-gradient(135deg, #ff9933 0%, #e6841f 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.recap-btn:hover {
    background: linear-gradient(135deg, #e6841f 0%, #ff9933 100%);
}

.recap-btn i {
    margin-right: 6px;
}

.checkpoint-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.checkpoint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.checkpoint-title {
    font-size: 11px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

.checkpoint-header i {
    color: #666;
    font-size: 12px;
}

.checkpoint-details {
    margin-top: 15px;
    font-size: 12px;
}

.checkpoint-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 11px;
}

.checkpoint-item:last-child {
    border-bottom: none;
}

.checkpoint-name {
    font-weight: 500;
    color: #333;
    flex: 1;
    font-size: 11px;
}

.checkpoint-distance {
    color: #666;
    font-size: 10px;
    font-weight: 500;
    margin: 0 15px;
    min-width: 60px;
    text-align: center;
}

.checkpoint-time {
    color: #333;
    font-weight: 500;
    min-width: 80px;
    text-align: right;
    font-size: 11px;
}
.country-flag {
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Content Header Responsive Styles */
.content-header {
    /* padding: 15px 0; */
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.content-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}
.leaderboard-card-header {
    background: linear-gradient(135deg, #ff9933 0%, #e6841f 100%);
    color: white;
    padding: 15px;
    text-align: center;
}

.box-body .table a[href] {
    color: #ff9933;
}
.box-body .table a[href]:hover {
    color: #e6841f;
}

.leaderboard-card-header h4 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.leaderboard-card-date {
    font-weight: 600;
    font-size: 14px;
    /*opacity: 0.9;*/
}

/* Mobile responsive styles for content-header */
@media screen and (max-width: 768px) {
    .content-header {
        /* padding: 12px 15px; */
        /* margin-bottom: 15px; */
    }

    .content-header > div {
        justify-content: center; /* Center content on mobile */
    }

    .content-header h3 {
        font-size: 20px;
        line-height: 1.3;
        text-align: center;
    }
    .col-md-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
    .leaderboard-card-header {
        padding: 12px;
    }

    .leaderboard-card-header h4 {
        font-size: 16px;
    }
}

.col-md-6 {
        width: 100%;
    }

@media screen and (max-width: 480px) {
    .content-header {
        /* padding: 10px 12px; */
        /* margin-bottom: 12px; */
    }
    .leaderboard-card-header h4 {
        font-size: 15px;
        text-transform: uppercase;
    }

    .content-header h3 {
        font-size: 18px;
        line-height: 1.4;
        text-align: center;
    }
}

@media screen and (max-width: 360px) {
    .content-header {
        /* padding: 8px 10px; */
        /* margin-bottom: 10px; */
    }

    .content-header h3 {
        font-size: 16px;
        line-height: 1.4;
        text-align: center;
        max-width: 100%;
    }
}

/* Additional safeguard for very long titles */
.content-header h3 {
    min-width: 0; /* Allow flex shrinking */
}

/* Runner Search and Gender Filter Responsive Layout */
.runner-filter-container {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.runner-search-section {
    flex: 1;
    text-align: left;
}

.gender-filter-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

#runnerSearch {
    display: inline-block;
    width: 220px;
    margin-right: 10px;
}

#genderFilter {
    display: inline-block;
    width: auto;
    /* margin-right: 10px; */
}

/* Mobile responsive layout for search and filter */
@media screen and (max-width: 768px) {
    .runner-filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .runner-search-section,
    .gender-filter-section {
        text-align: center;
    }

    #runnerSearch {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0;
    }

    #genderFilter {
        width: 100%;
        margin-right: 0;
    }

    .gender-filter-section {
        justify-content: center;
        flex-wrap: wrap;
    }

    .gender-filter-section .btn {
        margin-top: 8px;
    }
}

@media screen and (max-width: 480px) {
    .runner-filter-container {
        gap: 10px;
    }

    #runnerSearch {
        font-size: 14px;
        padding: 8px 12px;
    }

    #genderFilter {
        font-size: 14px;
        padding: 8px 12px;
    }

    .gender-filter-section .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Hide reload and export buttons on small screens */
@media screen and (max-width: 768px) {
    #reload_data, .btn-group {
        display: none !important;
    }
}

/* Show reload and export buttons on larger screens */
@media screen and (min-width: 769px) {
    #reload_data {
        display: inline-block !important;
    }
    .btn-group {
        display: none !important;
    }
}

/* Dropdown styling */
.dropdown-menu {
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333;
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Modal adjustments */
#runnerModal .modal-dialog {
    max-width: 520px;
    margin: 1rem auto;
}

#runnerModal .modal-content {
    border-radius: 12px;
    border: 1px solid #2a2a2e;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
    max-height: 90vh;
    overflow: hidden;
    width: 100%;
    background: #121214;
    color: #fff;
}

#runnerModal .modal-body,
#runnerModal .runner-modal-footer {
    background: #121214;
    color: #fff;
}

#runnerModal .runner-modal-content,
#runnerModal .runner-modal-content .runner-name,
#runnerModal .runner-modal-content .detail-label,
#runnerModal .runner-modal-content .detail-value,
#runnerModal .runner-modal-content .ranking-label,
#runnerModal .runner-modal-content .ranking-value,
#runnerModal .runner-modal-content .checkpoint-title,
#runnerModal .runner-modal-content .checkpoint-name,
#runnerModal .runner-modal-content .checkpoint-time,
#runnerModal .runner-modal-content .checkpoint-distance,
#runnerModal .runner-modal-content .checkpoint-header i {
    color: #fff;
}

#runnerModal .runner-modal-content .info-badge {
    background: #1e1e22;
    border-color: #3a3a40;
    color: #fff;
}

#runnerModal .runner-modal-content .section-divider,
#runnerModal .runner-modal-content .checkpoint-section {
    border-top-color: rgba(255, 255, 255, 0.15);
}

#runnerModal .runner-modal-content .checkpoint-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

#runnerModal .modal-body {
    padding: 20px;
    padding-bottom: 12px;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#runnerModal .runner-modal-footer {
    padding: 12px 20px 20px;
}

#runnerModal .runner-modal-close {
    min-width: 120px;
}

/* Responsive modal styles */
@media screen and (max-width: 768px) {
    #runnerModal .modal-dialog {
        margin: 10px;
        width: calc(100% - 20px);
        max-width: none;
        min-height: calc(100vh - 2rem);
    }

    #runnerModal .modal-content {
        width: 100%;
    }
    #runnerModal .modal-body {
        padding: 15px;
        max-height: 70vh;
    }

    /* Make modal content more compact on mobile */
    .runner-modal-content {
        font-size: 14px;
    }

    .runner-name {
        font-size: 20px;
    }

    .runner-badges {
        flex-wrap: wrap;
        gap: 6px;
    }

    .info-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    .detail-row {
        /* flex-direction: column; */
        gap: 15px;
        align-items: center;
    }

    .detail-item {
        margin: 0;
        text-align: center;
    }

    .ranking-section {
        /* grid-template-columns: 1fr; */
        gap: 15px;
    }

    .checkpoint-item {
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 4px;
    }

    .checkpoint-time {
        text-align: left;
        min-width: auto;
    }
}

@media screen and (max-width: 480px) {
    #runnerModal .modal-dialog {
        margin: 5px;
        width: calc(100% - 10px);
        max-width: 95vw;
    }

    #runnerModal .modal-body {
        padding: 20px;
        max-height: 75vh;
    }

    .runner-name {
        font-size: 18px;
    }

    .status-badge {
        font-size: 11px;
        padding: 4px 8px;
    }

    .runner-badges {
        gap: 4px;
    }

    .ranking-value {
        font-size: 20px;
    }
    .checkpoint-title {
        font-size: 11px;
    }
    .checkpoint-section {
        padding-top: 10px;
    }
    .checkpoint-details,
    .checkpoint-item,
    .checkpoint-name,
    .checkpoint-time {
        font-size: 10px;
    }
    .checkpoint-distance {
        font-size: 9px;
    }
}

/* Leaderboard Responsive Styles */
.leaderboard-header {
    display: none;
    background: #1a1a1e;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
    font-weight: bold;
    padding: 12px 0;
    border-radius: 8px 8px 0 0;
}

@media (min-width: 768px) {
    .leaderboard-header {
        display: flex !important;
        flex-direction: row;
        align-items: left;
        width: 100%;
        box-sizing: border-box;
    }

    .leaderboard-header .header-cell {
        text-align: left;
        padding: 8px 6px;
        font-size: 12px;
        color: #fff;
        text-transform: uppercase;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: left;
        box-sizing: border-box;
    }

    .header-cell:nth-child(1) { flex: 0 0 3%; max-width: 5%; }
    .header-cell:nth-child(2) { flex: 0 0 5%; max-width: 6%; }
    .header-cell:nth-child(3) { flex: 0 0 4%; max-width: 5%; }
    .header-cell:nth-child(4) { flex: 0 0 24%; max-width: 24%; }
    .header-cell:nth-child(5) { flex: 0 0 7%; max-width: 10%; }
    .header-cell:nth-child(6) { flex: 0 0 7%; max-width: 9%; }
    .header-cell:nth-child(7) { flex: 0 0 10%; max-width: 17%; }
    .header-cell:nth-child(8) { flex: 0 0 14%; max-width: 17%; }
    .header-cell:nth-child(9) { flex: 0 0 11%; max-width: 17%; }
    .header-cell:nth-child(10) { flex: 0 0 7%; max-width: 8%; }
    .header-cell:nth-child(11) { flex: 0 0 6%; max-width: 6%; }
}

.leaderboard-container {
    margin-top: 10px;
    font-size: 12px;
}

.runner-row {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    margin-bottom: 0px;
    border-radius: 8px;
    overflow: hidden;
    font-size: 12px;
}

.runner-row:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.runner-row:last-child {
    border-bottom: none;
}

/* Mobile View */
.runner-mobile {
    display: block;
    padding: 15px;
}

@media (min-width: 768px) {
    .runner-mobile {
        display: none;
    }
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.mobile-ranks {
    display: flex;
    gap: 15px;
}

.mobile-rank-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rank-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.mobile-badge {
    font-size: 11px !important;
    padding: 3px 6px !important;
}

.mobile-status {
    flex-shrink: 0;
}

.mobile-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-main-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.runner-name-mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.runner-name-mobile strong {
    font-size: 14px;
    color: #333;
}

.bib-mobile {
    font-size: 11px;
    color: #666;
    font-weight: normal;
}

.runner-details-mobile {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.detail-item-mobile {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #666;
}

.mobile-times {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
    margin-top: 8px;
}

.time-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 80px;
}

.time-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.time-value {
    font-size: 11px;
    color: #333;
    font-weight: bold;
}

/* Desktop View */
.runner-desktop {
    display: none;
}

@media (min-width: 768px) {
    .runner-desktop {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
    }

    .runner-cell {
        /* text-align: center; */
        padding-left: 0px;
        /* padding: 8px 4px; */
        display: flex;
        align-items: flex-start;
        /* justify-content: center; */
        box-sizing: border-box;
        word-wrap: nowrap;
        font-size: 12px;
    }

    .runner-cell:nth-child(1) { flex: 0 0 2%; max-width: 2%; padding-left: 10px;}
    .runner-cell:nth-child(2) { flex: 0 0 1%; max-width: 1%; }
    .runner-cell:nth-child(3) { flex: 0 0 2%; max-width: 5%; }
    .runner-cell:nth-child(4) { flex: 0 0 21%; max-width: 21%; text-align: left; justify-content: flex-start; }
    .runner-cell:nth-child(5) { flex: 0 0 4%; max-width: 4%; }
    .runner-cell:nth-child(6) { flex: 0 0 4%; max-width: 4%; }
    .runner-cell:nth-child(7) { flex: 0 0 8%; max-width: 8%; }
    .runner-cell:nth-child(8) { flex: 0 0 11%; max-width: 12%; }
    .runner-cell:nth-child(9) { flex: 0 0 8%; max-width: 8%; }
    .runner-cell:nth-child(10) { flex: 0 0 0%; max-width: 5%; }
    .runner-cell:nth-child(11) { flex: 0 0 8%; max-width: 8%; }
}

/* Custom Pagination */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 0px;
    padding: 20px 0;
    /* border-top: 1px solid #eee; */
}

.pagination-btn {
    background: linear-gradient(135deg, #ff9933 0%, #e6841f 100%);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e6841f 0%, #ff9933 100%);
}

.pagination-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Hide DataTable wrapper if it exists */
#tableleaderboard_wrapper {
    display: none !important;
}

/* Desktop-only class */
.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: block;
    }
}
.content {
    padding: 15px;
	padding-left: 15px;
    padding-right: 15px;
}

/* Event Cards Styles */
.event-cards-container {
    margin-bottom: 15px;
    margin-left: -10px;
}

.event-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /*margin-top: 20px;*/
}

.event-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.leaderboard-live-card .overlay,
.leaderboard-card .overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    border-radius: inherit;
    color: #fff;
    font-size: 2rem;
}

.leaderboard-card {
    border: none;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
    cursor: pointer;
}

.leaderboard-card:hover:not(.current-event) {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.25);
    border-color: #ff9933;
}

.event-card:hover:not(.current-event) {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #ff9933;
}

.event-card.current-event {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff8 0%, #ffffff 100%);
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.2);
}

.event-card.current-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.event-card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    flex: 1;
}

.event-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    /*margin-right: 10px;*/
    /*margin-bottom: 10px;*/
}

.event-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.event-date i {
    color: #ff9933;
    font-size: 16px;
}

.event-info {
    display: flex;
    gap: 15px;
}

.event-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 500;
}

.detail-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.current-event-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.current-event-indicator i {
    font-size: 10px;
}

/* Responsive Event Cards */
@media screen and (max-width: 768px) {
    .event-cards-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .event-card {
        padding: 15px;
    }

    .event-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .event-card-header h4 {
        font-size: 16px;
    }

    .event-status-badge {
        align-self: flex-start;
        border-color: #999999;
    }

    .event-info {
        flex-direction: column;
        gap: 8px;
    }
}

@media screen and (max-width: 480px) {
    .event-card {
        padding: 12px;
    }

    .event-card-header h4 {
        font-size: 15px;
    }

    .event-date {
        font-size: 13px;
    }

    .detail-value {
        font-size: 13px;
    }
}

.leaderboard-card-category {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.leaderboard-card-category .event-status-badge {
    font-size: 14px;
    padding: 8px 16px;
}

.leaderboard-card-category .event-status-badge.lb-cat-badge {
    background: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
}

.leaderboard-card-category .event-status-badge.lb-cat-badge.is-current {
    background: linear-gradient(135deg, #ff9933 0%, #e6841f 100%);
    border-color: #e6841f;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 153, 51, 0.35), 0 4px 12px rgba(255, 153, 51, 0.3);
    font-weight: 700;
}
.gun_time {
    display: block;
}
.mobile_gun_time {
    display: none;
}
@media screen and (max-width: 768px) {
    .gun_time {
        display: none;
    }
    .mobile_gun_time {
        display: block;
    }
}
