*,*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: #111827;
    background: #fff;
    margin: 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

@media(min-width:1024px) {
    .header-inner {
        height: 80px;
        padding: 0 2rem;
    }
}

.nav-logo {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2px;
}

@media(min-width:1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-link-item {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: color .15s, background .15s;
    white-space: nowrap;
}

.nav-link-item:hover {
    color: #f54342;
    background: #fff0f0;
}

.nav-link-item.active {
    color: #f54342;
    background: #fff0f0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login {
    display: none;
    padding: 10px 20px;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    background: #374151;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    transition: background .15s;
}

.btn-login:hover {
    background: #1f2937;
    color: #fff;
}

@media(min-width:576px) {
    .btn-login {
        display: inline-flex;
        align-items: center;
    }
}

.btn-subscribe {
    display: none;
    padding: 10px 20px;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    background: #f54342;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    transition: background .15s;
}

.btn-subscribe:hover {
    background: #d93a39;
    color: #fff;
}

@media(min-width:576px) {
    .btn-subscribe {
        display: inline-flex;
        align-items: center;
    }
}

.btn-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-hamburger:hover {
    background: rgba(0, 0, 0, 0.05);
}

@media(min-width:1024px) {
    .btn-hamburger {
        display: none;
    }
}

/* ── Mobile nav drawer ── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 1049;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 12px 1rem 16px;
    flex-direction: column;
    gap: 2px;
}

@media(min-width:1024px) {
    .mobile-nav {
        top: 80px;
    }
}

.mobile-nav.open {
    display: flex;
}

@media(min-width:1024px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-link {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: .9375rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: color .15s, background .15s;
    display: block;
}

.mobile-nav-link:hover {
    color: #f54342;
    background: #fff0f0;
}

.mobile-nav-link.active {
    color: #f54342;
    background: #fff0f0;
}

.mobile-nav-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 4px;
}

.mobile-nav-actions {
    display: flex;
    gap: 8px;
    padding: 4px 0 0;
}

.mobile-nav-actions a {
    flex: 1;
    justify-content: center;
    text-align: center;
}

/* ════════════════════════════════
MAIN / PAGE HEADER
════════════════════════════════ */
main {
    padding-top: 80px;
}

.page-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 40px 0 56px;
}

.page-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media(min-width:1024px) {
    .page-header-inner {
        padding: 0 2rem;
    }
}

.ar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .875rem;
    color: #6b7280;
    margin-bottom: 24px;
}

.ar-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    text-decoration: none;
    transition: color .2s;
}

.ar-breadcrumb a:hover {
    color: #f54342;
}

.ar-breadcrumb .sep {
    color: #d1d5db;
    font-size: .75rem;
}

.ar-breadcrumb .current {
    color: #111827;
    font-weight: 500;
}

.page-header h1 {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 900;
    color: #111827;
    letter-spacing: -.02em;
    margin: 0;
}

.page-header .subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ── Controls row ── */
.header-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

@media(min-width:576px) {
    .header-controls {
        flex-direction: row;
        align-items: center;
    }
}

/* Search */
.search-wrap {
    position: relative;
    flex: 1;
    max-width: 448px;
}

.search-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: .875rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    border-radius: 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #111827;
    font-size: .875rem;
    outline: none;
    transition: border-color .2s;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-input:focus {
    border-color: rgba(245, 67, 66, 0.5);
}

/* Filter pills */
.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: .875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all .2s;
    background: #f3f4f6;
    color: #6b7280;
    white-space: nowrap;
}

.filter-pill:hover {
    background: #e5e7eb;
    color: #374151;
}

.filter-pill.active {
    background: #f54342;
    color: #fff;
}

/* ════════════════════════════════
ATHLETES GRID
════════════════════════════════ */
.athletes-section {
    padding: 40px 0 56px;
}

.athletes-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media(min-width:1024px) {
    .athletes-inner {
        padding: 0 2rem;
    }
}

.athletes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media(min-width:576px) {
    .athletes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media(min-width:1024px) {
    .athletes-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* hide/show */
.athlete-item {
    display: block;
}

.athlete-item.hidden {
    display: none !important;
}

/* ════════════════════════════════
ATHLETE CARD
════════════════════════════════ */
.athlete-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: border-color .3s, box-shadow .3s;
    text-decoration: none;
    display: block;
}

.athlete-card:hover {
    border-color: rgba(245, 67, 66, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 260px;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
    display: block;
}

.athlete-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
}

/* badges */
.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge-top {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(245, 67, 66, 0.9);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}

.badge-rising {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}

/* score */
.card-score {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.card-score span {
    color: #f54342;
    font-weight: 700;
    font-size: .875rem;
}

/* info */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.card-info h3 {
    font-weight: 900;
    color: #fff;
    font-size: 1.125rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s;
}

.athlete-card:hover .card-info h3 {
    color: #f54342;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: .875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.card-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.card-school {
    font-size: .875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

/* ── Empty state ── */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 16px;
    color: #9ca3af;
    display: none;
}

.empty-state i {
    font-size: 2.5rem;
    display: block;
    margin: 0 auto 12px;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}
