.athletes-portal {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.athlete-back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #C8102E;
    text-decoration: none;
}

.athlete-back-link:hover { text-decoration: underline; }

.athlete-portal-header {
    margin-bottom: 2rem;
    text-align: center;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.athlete-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1A5C4A;
    margin-bottom: 0.5rem;
}

.athlete-portal-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.75rem;
}

.athlete-portal-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.athlete-portal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
}

.athlete-portal-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: #C8102E;
    text-decoration: none;
}

.athlete-portal-link:hover { text-decoration: underline; }

.athlete-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.athlete-search-field {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.athlete-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.athlete-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    background: #fff;
}

.athlete-search-input:focus {
    outline: none;
    border-color: #C8102E;
    box-shadow: 0 0 0 3px rgba(200,16,46,0.12);
}

.athlete-search-btn {
    padding: 0.75rem 1.25rem;
    background: #C8102E;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
}

.athlete-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
}

.athlete-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.athlete-category-tab {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.athlete-category-tab--active {
    background: #1A5C4A;
    color: #fff;
    border-color: #1A5C4A;
}

.athlete-results-meta {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.athlete-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.athlete-card {
    display: flex;
    flex-direction: column;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.athlete-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.athlete-card--badminton { border-top: 4px solid #C8102E; }
.athlete-card--parabadminton { border-top: 4px solid #1A5C4A; }

.athlete-card-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f3f4f6;
}

.athlete-card-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: #d1d5db;
    background: linear-gradient(135deg, #f9fafb, #e5e7eb);
}

.athlete-card-body { padding: 1.25rem; }

.athlete-card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #C8102E;
    margin-bottom: 0.35rem;
}

.athlete-card--parabadminton .athlete-card-category { color: #1A5C4A; }

.athlete-card-name {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #111827;
}

.athlete-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.athlete-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.athlete-card-excerpt {
    font-size: 0.85rem;
    line-height: 1.55;
    color: #4b5563;
}

.athlete-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: 0.85rem;
    border: 1px dashed #e5e7eb;
}

.athlete-empty i {
    font-size: 2.5rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.athlete-empty-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.athlete-empty-text {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.athlete-empty-link {
    color: #C8102E;
    font-weight: 700;
    text-decoration: none;
}

.athlete-pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2rem;
}

.athlete-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.athlete-pagination-btn--active {
    background: #C8102E;
    color: #fff;
    border-color: #C8102E;
}

/* Profile / detail page */
.athletes-detail-page { max-width: 72rem; padding-top: 0; }

.athlete-profile {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.athlete-profile--badminton .athlete-profile-banner {
    background: linear-gradient(135deg, #C8102E 0%, #991b1b 55%, #1A5C4A 100%);
}

.athlete-profile--parabadminton .athlete-profile-banner {
    background: linear-gradient(135deg, #1A5C4A 0%, #14503f 55%, #0f3d31 100%);
}

.athlete-profile-banner {
    color: #fff;
    padding: 2rem 2rem 2.5rem;
}

.athlete-profile-banner-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-end;
}

.athlete-profile-photo-wrap {
    flex-shrink: 0;
    width: 200px;
}

.athlete-profile-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 0.85rem;
    border: 3px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.athlete-profile-photo.athlete-card-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.athlete-profile-headline { flex: 1; min-width: 220px; }

.athlete-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.athlete-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.athlete-profile-badge--cat {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.45);
}

.athlete-profile-badge--active {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.45);
}

.athlete-profile-badge--inactive {
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.85;
}

.athlete-profile-name {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.athlete-profile-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    max-width: 36rem;
}

.athlete-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.athlete-stat-pill {
    padding: 0.6rem 1rem;
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 5rem;
}

.athlete-stat-pill-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.athlete-stat-pill-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-top: 0.2rem;
}

.athlete-profile-body { padding: 0 2rem 2rem; }

.athlete-profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    margin-top: -1.5rem;
    align-items: start;
}

.athlete-profile-sidebar .athlete-profile-section--card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.athlete-profile-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: #1A5C4A;
    margin-bottom: 1rem;
}

.athlete-profile-section h2 i { color: #C8102E; font-size: 0.9rem; }

.athlete-info-list { display: flex; flex-direction: column; gap: 0.85rem; }

.athlete-info-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.athlete-info-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C8102E;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.athlete-info-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.athlete-info-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
}

.athlete-profile-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.athlete-profile-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    padding: 1.5rem;
}

.athlete-profile-section--full {
    margin-top: 1.5rem;
}

.athlete-profile-bio {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
}

.athlete-profile-empty {
    color: #6b7280;
    font-size: 0.95rem;
    padding: 1rem 0;
}

.athlete-comp-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
}

.athlete-comp-item {
    display: grid;
    grid-template-columns: 1.25rem 1fr;
    gap: 1rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.athlete-comp-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 1.25rem;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.athlete-comp-marker {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    background: #C8102E;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #C8102E;
    margin-top: 0.35rem;
    z-index: 1;
}

.athlete-profile--parabadminton .athlete-comp-marker {
    background: #1A5C4A;
    box-shadow: 0 0 0 2px #1A5C4A;
}

.athlete-comp-body {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.athlete-comp-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.athlete-comp-head h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.athlete-comp-result {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #b45309;
    background: #fffbeb;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.athlete-comp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.athlete-comp-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.athlete-comp-meta i { color: #9ca3af; font-size: 0.75rem; }

.athlete-comp-notes {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.55;
}

.athlete-achievements {
    list-style: none;
    padding: 0;
}

.athlete-achievements li {
    position: relative;
    padding: 0.6rem 0 0.6rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
}

.athlete-achievements li::before {
    content: '\f091';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #d97706;
    font-size: 0.85rem;
}

.athlete-rank-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.athlete-rank-card {
    min-width: 5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #1A5C4A, #14503f);
    color: #fff;
    text-align: center;
}

.athlete-rank-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.athlete-rank-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .athlete-profile-grid { grid-template-columns: 1fr; margin-top: 1rem; }
    .athlete-profile-banner { padding: 1.5rem; }
    .athlete-profile-banner-inner { flex-direction: column; align-items: center; text-align: center; }
    .athlete-profile-photo-wrap { width: 160px; }
    .athlete-profile-badges,
    .athlete-stat-row { justify-content: center; }
    .athlete-profile-body { padding: 0 1rem 1.5rem; }
    .athlete-profile-name { font-size: 1.65rem; }
}

@media (max-width: 640px) {
    .athletes-portal { padding: 2rem 1rem 3rem; }
    .athlete-portal-title { font-size: 1.75rem; }
}
