/* ============================================
   Athlete Template - Main Stylesheet
   ============================================ */

:root {
    --primary:   #1a1a2e;
    --accent:    #e94560;
    --light:     #f4f4f8;
    --dark:      #0f0f1a;
    --text:      #333;
    --text-muted:#666;
    --white:     #fff;
    --radius:    8px;
    --shadow:    0 4px 20px rgba(0,0,0,.12);
    --transition:0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- NAVBAR ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 60px;
}

.nav-brand {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255,255,255,.8);
    font-size: .9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---- HERO ---- */
.hero {
    min-height: 80vh;
    background: var(--primary) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Gradient overlay — dark at bottom for readability */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.65) 100%);
}

/* Placeholder gradient when no photo */
.hero.hero-no-photo {
    background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 70%, var(--accent)) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 2rem;
    max-width: 800px;
}

.hero-school {
    font-size: clamp(.8rem, 2vw, 1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin: 0 0 .5rem;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
    margin: 0 0 .5rem;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin: .5rem 0;
    color: var(--accent);
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    height: 2px;
    width: 40px;
    background: var(--accent);
    border-radius: 2px;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,.9);
    margin: .4rem 0;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-details {
    font-size: .95rem;
    color: rgba(255,255,255,.7);
    margin: .5rem 0 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- SPORT PAGE HERO ---- */
.sport-hero {
    min-height: 55vh;
    background: var(--primary) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.sport-hero.hero-no-photo {
    background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 60%, #000) 100%);
}

.sport-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.7) 100%);
}

.sport-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 2rem;
}

.sport-hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    margin: 0;
    text-shadow: 0 2px 16px rgba(0,0,0,.4);
}

.sport-hero-sport {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin: .3rem 0 .75rem;
    line-height: 1;
}

.sport-hero-jersey {
    display: inline-block;
    border: 2px solid rgba(255,255,255,.7);
    border-radius: 30px;
    padding: .3rem 1.2rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .6rem;
}

.sport-hero-position {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    margin: 0;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-block;
    padding: .65rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .9rem;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover { background: #c73652; border-color: #c73652; }

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.6);
}

.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* ---- SECTIONS ---- */
.section { padding: 5rem 0; }
.section:nth-child(even) { background: var(--light); }
.section.contact-section,
.section.contact-section:nth-child(even),
.section.contact-section:nth-child(odd) {
    background: var(--primary) !important;
    color: #fff !important;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: .75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* ---- SPORTS GRID ---- */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.sport-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: block;
    min-height: 280px;
    background: var(--primary);
}

.sport-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.sport-card:hover .sport-card-img { transform: scale(1.04); }

/* The background photo layer */
.sport-card-img {
    position: absolute;
    inset: 0;
    background: center/cover no-repeat;
    transition: transform .4s ease;
}

/* Placeholder gradient when no photo set */
.sport-card-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 60%, var(--accent)) 100%) !important;
}

/* Gradient scrim — dark at bottom so text is readable */
.sport-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.75) 70%, rgba(0,0,0,.88) 100%);
    z-index: 1;
}

/* Text overlay at bottom */
.sport-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    z-index: 2;
    color: #fff;
}

.sport-card-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin: 0 0 .25rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.sport-card-body h3 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    margin: 0 0 .4rem;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.sport-card-body p {
    color: rgba(255,255,255,.75);
    font-size: .82rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---- MINI STATS ---- */
.mini-stats {
    display: flex;
    gap: 1rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255,255,255,.2);
}

.mini-stat { text-align: center; }
.mini-stat-value { display: block; font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.mini-stat-label { font-size: .65rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .5px; }

/* ---- STAT CARDS ---- */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: .8rem;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: .4rem;
}

/* ---- SCHEDULE TABLE ---- */
.table-wrap { overflow-x: auto; }

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.schedule-table th {
    background: var(--primary);
    color: var(--white);
    padding: .75rem 1rem;
    text-align: left;
    font-weight: 600;
}

.schedule-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid #eee;
}

.schedule-table tr:hover td { background: #f9f9f9; }
.schedule-table tr.win td:last-child { color: green; font-weight: 600; }
.schedule-table tr.loss td:last-child { color: var(--accent); font-weight: 600; }

/* ---- VIDEOS ---- */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.video-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

.video-embed video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
    border-radius: var(--radius);
    background: #000;
}

.video-title { margin-top: .5rem; font-weight: 600; }

/* ---- PHOTO GRID ---- */
.gallery-group { margin-bottom: 2.5rem; }
.gallery-title { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .75rem;
}

.photo-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.photo-item:hover img { transform: scale(1.05); }

/* ---- LIGHTBOX ---- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

/* ---- CONTACT ---- */
.contact-section { background: var(--primary) !important; color: var(--white) !important; }
.contact-section .section-title { color: var(--white) !important; }
.contact-section .section-title::after { background: var(--accent); }
.contact-intro { color: rgba(255,255,255,.8); margin-bottom: 1.5rem; }
.contact-links { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- BIO ---- */
.bio-text { max-width: 700px; font-size: 1.05rem; line-height: 1.8; color: var(--text); }

/* ---- NAV LEFT / MASCOT ---- */
.nav-left { display: flex; align-items: center; gap: .6rem; }
.nav-mascot { height: 36px; width: 36px; object-fit: contain; border-radius: 4px; }

/* ---- EXTERNAL NAV LINK ---- */
.nav-external {
    color: var(--accent) !important;
    font-weight: 700 !important;
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: .2rem .75rem !important;
    font-size: .8rem !important;
    transition: all .2s;
}
.nav-external:hover { background: var(--accent); color: #fff !important; }

/* ---- FOOTER ---- */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,.6);
    padding: 1.5rem;
    font-size: .85rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy { margin: 0; }
.footer-admin-link {
    color: rgba(255,255,255,.3);
    text-decoration: none;
    font-size: .78rem;
    transition: color .2s;
}
.footer-admin-link:hover { color: rgba(255,255,255,.7); }

/* ---- SOCIAL ICONS ---- */
.footer-social { display: flex; align-items: center; gap: .5rem; }

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    transition: color .2s, transform .2s;
    padding: .25rem;
}

.social-icon:hover { color: #fff; transform: translateY(-2px); }
.social-icon.social-empty { opacity: .3; cursor: default; }
.social-icon.hudl-icon:hover { color: #ff6b00; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0,0,0,.3);
    }

    .nav-links.open { display: flex; }

    .nav-links li a {
        display: block;
        padding: .75rem 1.5rem;
    }

    .navbar { position: relative; }

    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   10FILE ADDITIONS
   ============================================ */

/* ---- FOOTER 3-COLUMN ---- */
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
}

.footer-left  { display: flex; align-items: center; justify-content: flex-start; }
.footer-center { text-align: center; }
.footer-right { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }

.footer-mascot {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .7;
}

.footer-mascot-placeholder {
    width: 48px;
    height: 48px;
}

.footer-copy { margin: 0; font-size: .82rem; color: rgba(255,255,255,.6); }

.footer-tos-link {
    background: none;
    border: none;
    color: rgba(255,255,255,.35);
    font-size: .75rem;
    cursor: pointer;
    padding: 0;
    display: block;
    margin: .2rem auto 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-tos-link:hover { color: rgba(255,255,255,.7); }

.footer-admin-link {
    color: rgba(255,255,255,.25);
    text-decoration: none;
    font-size: .72rem;
    display: block;
    margin-top: .15rem;
    transition: color .2s;
}
.footer-admin-link:hover { color: rgba(255,255,255,.6); }

/* ---- TOS MODAL ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    max-width: 680px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    z-index: 1;
}

.modal-body {
    overflow-y: auto;
    padding: 2rem;
    flex: 1;
}

.tos-text {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: .88rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

/* ---- SPORT CONTENT GRID (showcase + stats) ---- */
.sport-content-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .sport-content-grid { grid-template-columns: 1fr; }
}

.showcase-col { position: relative; }

.showcase-photo {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    max-height: 340px;
}

.showcase-placeholder {
    width: 100%;
    height: 240px;
    border: 2px dashed rgba(0,0,0,.12);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: .85rem;
    text-align: center;
    gap: .5rem;
}
.showcase-placeholder span { font-size: 2rem; }

/* ---- COACH BOX ---- */
.coach-box {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--accent);
    background: rgba(0,0,0,.03);
    border-radius: 0 8px 8px 0;
}
.coach-box-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin: 0 0 .2rem;
}
.coach-box-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 .25rem;
}
.coach-box-email {
    font-size: .82rem;
    color: var(--accent);
    text-decoration: none;
}
.coach-box-email:hover { text-decoration: underline; }

/* ---- GALLERY COLLAPSIBLE ---- */
.gallery-group {
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    overflow: hidden;
}

.gallery-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background .2s;
}
.gallery-toggle:hover { background: color-mix(in srgb, var(--primary) 85%, #000); }

.gallery-toggle-title {
    font-weight: 700;
    font-size: 1rem;
    flex: 1;
}
.gallery-toggle-count {
    font-size: .78rem;
    opacity: .7;
}
.gallery-toggle-icon {
    font-size: 1rem;
    transition: transform .2s;
}

.gallery-body {
    padding: 1.25rem;
    background: #fff;
}

/* ---- THUMBNAIL GRID ---- */
.thumb-grid-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: .5rem;
}

.thumb-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    aspect-ratio: 1;
    transition: transform .2s, box-shadow .2s;
}
.thumb-btn:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- LIGHTBOX ---- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.93);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.lightbox-img-wrap {
    max-width: calc(100vw - 140px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: calc(90vh - 50px);
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.lightbox-caption {
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    margin: .6rem 0 0;
    text-align: center;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
    line-height: 1;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.25); }

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ---- COMMENTS ---- */
.comments-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0,0,0,.08);
}

.comments-title {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin: 0 0 .75rem;
}

.comment-item {
    padding: .6rem 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: .88rem;
}
.comment-item:last-of-type { border-bottom: none; }
.comment-item strong { color: var(--primary); }
.comment-date { font-size: .75rem; color: #999; margin-left: .5rem; }
.comment-item p { margin: .3rem 0 0; line-height: 1.5; color: #444; }

.comment-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: .88rem;
}
.comment-form textarea { resize: vertical; }

/* ---- RESPONSIVE FOOTER ---- */
@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-left  { justify-content: center; }
    .footer-right { justify-content: center; }
}

/* ---- CONTACT FORM ---- */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-family: inherit;
    font-size: .95rem;
    box-sizing: border-box;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.45); }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--accent); background: rgba(255,255,255,.12); }
.contact-form textarea { resize: vertical; min-height: 120px; }
@media (max-width: 480px) {
    .contact-form-row { grid-template-columns: 1fr; }
}

/* ============================================
   17FILE — COMPREHENSIVE MOBILE STYLES
   ============================================ */

/* ---- 768px: Tablets & large phones ---- */
@media (max-width: 768px) {

    /* Hero */
    .hero { min-height: 85vh; }
    .hero-content { padding: 1.5rem; text-align: center; }
    .hero-content h1 { font-size: clamp(2.2rem, 11vw, 3.5rem); }
    .hero-ctas { justify-content: center; gap: .75rem; }
    .hero-ctas .btn { padding: .6rem 1.2rem; font-size: .88rem; }

    /* Sport hero */
    .sport-hero-content { padding: 1.5rem; text-align: center; }
    .sport-hero-name { font-size: clamp(2rem, 10vw, 3.5rem); }
    .sport-hero-sport { font-size: clamp(1.2rem, 6vw, 2rem); }

    /* Change hero image button — keep it usable on mobile */
    #_heroUploadBtn {
        top: .6rem !important;
        right: .6rem !important;
        font-size: .78rem !important;
        padding: .4rem .8rem !important;
    }

    /* Section spacing */
    .section { padding: 2.5rem 0; }
    .container { padding: 0 1rem; }

    /* Sport content grid already collapses at 768, but add spacing */
    .sport-content-grid { gap: 1.25rem; }

    /* Stat cards — 2 col max on mobile */
    .stat-cards { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .stat-card { padding: 1.1rem .75rem; }
    .stat-value { font-size: 1.6rem; }

    /* Schedule table — horizontal scroll */
    .table-wrap { margin: 0 -1rem; padding: 0 1rem; }
    .schedule-table { font-size: .82rem; }
    .schedule-table th, .schedule-table td { padding: .5rem .6rem; }

    /* Videos — single column */
    .videos-grid { grid-template-columns: 1fr; }

    /* Photos — 2 col */
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }

    /* Gallery toggle */
    .gallery-toggle { padding: .75rem 1rem; }

    /* Coach box */
    .coach-box { padding: 1rem 1.1rem; }

    /* Bio text */
    .bio-text { font-size: .95rem; line-height: 1.7; }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: .5rem;
    }
    .footer-left, .footer-right { justify-content: center; }

    /* Edit Mode button — smaller, bottom-left on mobile so it's less obstructive */
    #editModeBtn, [id="editModeBtn"] {
        font-size: .8rem !important;
        padding: .45rem .9rem !important;
    }
}

/* ---- 480px: Small phones ---- */
@media (max-width: 480px) {

    /* Nav */
    .navbar { padding: 0 1rem; }
    .nav-brand { font-size: 1rem; }

    /* Hero */
    .hero { min-height: 80vh; }
    .hero-content { padding: 1rem; }
    .hero-content h1 { font-size: clamp(1.9rem, 12vw, 2.8rem); letter-spacing: 1px; }
    .hero-sub { font-size: .88rem; letter-spacing: 1px; }
    .hero-details { font-size: .78rem; }
    .hero-divider { margin: .3rem 0; }

    /* Sport hero */
    .sport-hero { min-height: 40vh; }
    .sport-hero-name { font-size: clamp(1.8rem, 11vw, 2.8rem); letter-spacing: 1px; }
    .sport-hero-sport { font-size: clamp(1rem, 6vw, 1.6rem); letter-spacing: 2px; }
    .sport-hero-jersey { font-size: .88rem; padding: .25rem 1rem; }
    .sport-hero-position { font-size: .82rem; letter-spacing: 2px; }

    /* Section title */
    .section-title { font-size: 1.3rem; }

    /* Sport cards — full width single column */
    .sports-grid { grid-template-columns: 1fr; gap: 1rem; }
    .sport-card { min-height: 220px; }

    /* Stat cards — 2 col tight */
    .stat-cards { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .stat-card { padding: .9rem .6rem; }
    .stat-value { font-size: 1.4rem; }
    .stat-label { font-size: .72rem; }

    /* Mini stats on sport cards */
    .mini-stats { gap: .75rem; }
    .mini-stat-value { font-size: 1.1rem; }

    /* Schedule — card-style on tiny screens */
    .schedule-table thead { display: none; }
    .schedule-table tr {
        display: block;
        border: 1px solid #eee;
        border-radius: 8px;
        margin-bottom: .6rem;
        padding: .6rem .75rem;
    }
    .schedule-table td {
        display: flex;
        justify-content: space-between;
        padding: .2rem 0;
        border: none;
        font-size: .85rem;
    }
    .schedule-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #666;
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .5px;
    }

    /* Videos */
    .videos-grid { grid-template-columns: 1fr; gap: 1rem; }
    .video-title { font-size: .88rem; }

    /* Photos */
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: .4rem; }

    /* Contact form */
    .contact-form-row { grid-template-columns: 1fr; }
    .contact-form input, .contact-form textarea { font-size: .9rem; }

    /* Showcase photo */
    .showcase-photo { max-height: 260px; }

    /* Coach box */
    .coach-box { padding: .9rem 1rem; }
    .coach-box-label { font-size: .72rem; }
    .coach-box-name { font-size: 1rem; }

    /* Section padding */
    .section { padding: 2rem 0; }
    .container { padding: 0 .9rem; }
}
