/*
 * players.css — Shared structural styles for the GB Ultimate players app
 *
 * Uses federation tokens from the federation theme file (e.g. uku.css).
 * Never references hard-coded colour values — always uses --fed-* tokens.
 * Never overrides Bootstrap classes — all selectors use .cs-* namespacing.
 *
 * Load order in HTML:
 *   1. bootstrap.min.css
 *   2. {federation}.css   (e.g. uku.css)
 *   3. players.css
 */

/* ── Base ────────────────────────────────────────────────────────────────── */

body {
    font-family: var(--fed-font);
    background-color: #f4f5f7;
    color: #1a2744;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */

.cs-navbar {
    background-color: var(--fed-primary);
    padding: 0.75rem 1rem;
}

.cs-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.cs-navbar-logomark {
    width: 32px;
    height: 32px;
    background-color: var(--fed-accent);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-navbar-title {
    color: var(--fed-on-primary);
    font-family: var(--fed-font);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.cs-navbar-subtitle {
    color: var(--fed-on-primary-muted);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cs-navbar-toggler {
    border: none;
    background: none;
    padding: 0.25rem;
    cursor: pointer;
}

.cs-navbar-toggler span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--fed-on-primary-muted);
    border-radius: 2px;
    margin: 5px 0;
    transition: background-color 0.2s;
}

.cs-navbar-toggler:hover span {
    background-color: var(--fed-on-primary);
}

.cs-navbar-logo{
    max-width: 200px;
}

/* ── Page hero (landing) ─────────────────────────────────────────────────── */

.cs-page-hero {
    background-color: var(--fed-primary);
    padding: 2.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.cs-hero-lion {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    max-width: 50%;
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
}

@media (min-width: 768px) {
    .cs-hero-lion {
        display: block;
    }
}

.cs-page-hero-year {
    color: var(--fed-accent);
    font-family: var(--fed-font);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.cs-page-hero-title {
    color: var(--fed-on-primary);
    font-family: var(--fed-font);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.01em;
    margin-bottom: 0.625rem;
}

.cs-page-hero-sub {
    color: var(--fed-on-primary-muted);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
}

/* ── Section labels ──────────────────────────────────────────────────────── */

.cs-section-label {
    font-family: var(--fed-font);
    font-size: 1.5rem;
    font-weight: 600;
    color: #5a6478;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ── Squad card (landing page) ───────────────────────────────────────────── */

.cs-squad-card {
    background-color: var(--fed-on-primary);
    border-radius: 12px;
    overflow: hidden;
    border: 0.5px solid #e2e5ea;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cs-squad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(26, 39, 68, 0.12);
    color: inherit;
}

.cs-squad-card-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    background-color: var(--fed-primary);
    overflow: hidden;
}

.cs-squad-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.cs-squad-card-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.12;
}

.cs-squad-card-photo-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(17, 27, 48, 0.65) 100%);
}

.cs-category-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: var(--fed-accent-dark);
    color: var(--fed-on-accent);
    font-family: var(--fed-font);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
}

.cs-squad-card-body {
    padding: 1rem 1.125rem 1.125rem;
}

.cs-squad-card-name {
    font-family: var(--fed-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fed-primary);
    letter-spacing: 0.01em;
    margin-bottom: 0.75rem;
}

.cs-squad-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}

.cs-squad-meta-label {
    font-size: 0.6875rem;
    color: #5a6478;
    margin-bottom: 0.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.cs-squad-meta-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fed-primary);
    line-height: 1.3;
}

.cs-squad-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 0.5px solid #e2e5ea;
}

.cs-squad-sponsor-line {
    font-size: 0.75rem;
    color: #5a6478;
}

.cs-squad-sponsor-line strong {
    color: var(--fed-primary);
    font-weight: 600;
}

.cs-squad-card-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fed-accent);
    display: flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    white-space: nowrap;
}

/* ── Squad page — team hero ──────────────────────────────────────────────── */

.cs-team-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-bottom: 14px solid var(--fed-primary);
}


.cs-team-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.cs-team-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.1;
}

.cs-team-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(17, 27, 48, 0.95) 100%);
}

.cs-team-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.25rem 0rem;
}

@media (min-width: 768px) {
    .cs-team-hero-content {
        padding: 2rem 2.5rem 2rem;
    }
}

.cs-team-hero-category {
    color: var(--fed-accent);
    font-family: var(--fed-font);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.375rem;
}

.cs-team-hero-name {
    color: var(--fed-on-primary);
    font-family: var(--fed-font);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.01em;
}

/* ── Info bar (squad page) ───────────────────────────────────────────────── */

.cs-info-bar {
    background-color: var(--fed-primary);
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}

.cs-info-bar-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.cs-info-bar-item {
    padding: 0.875rem 1rem;
    border-right: 0.5px solid rgba(255, 255, 255, 0.08);
}

.cs-info-bar-item:last-child {
    border-right: none;
}

.cs-info-bar-label {
    color: var(--fed-on-primary-muted);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.cs-info-bar-value {
    color: var(--fed-on-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ── Sponsor ribbon ──────────────────────────────────────────────────────── */

.cs-sponsor-ribbon {
    background-color: var(--fed-on-primary);
    border-bottom: 0.5px solid #e2e5ea;
    padding: 0.625rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cs-sponsor-ribbon-label {
    font-size: 0.6875rem;
    color: #5a6478;
    white-space: nowrap;
}

.cs-sponsor-logo {
    max-height: 26px;
    width: auto;
}

.cs-sponsor-logo-placeholder {
    height: 24px;
    width: 90px;
    background-color: #e2e5ea;
    border-radius: 3px;
}

/* ── Player grid ─────────────────────────────────────────────────────────── */

.cs-player-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .cs-player-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .cs-player-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cs-player-card {
    background-color: var(--fed-on-primary);
    border-radius: 10px;
    overflow: hidden;
    border: 0.5px solid #e2e5ea;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cs-player-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 39, 68, 0.1);
    color: inherit;
}

.cs-player-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #d0d5e0;
    overflow: hidden;
}

.cs-player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.cs-player-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.25;
}

.cs-shirt-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background-color: var(--fed-accent-dark);
    color: var(--fed-on-primary);
    font-family: var(--fed-font);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.4;
}

.cs-player-card-info {
    padding: 0.625rem 0.75rem 0.75rem;
}

.cs-player-card-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--fed-primary);
    line-height: 1.25;
}

/* ── Coaching staff ──────────────────────────────────────────────────────── */

.cs-coach-card {
    background-color: var(--fed-on-primary);
    border-radius: 10px;
    border: 0.5px solid #e2e5ea;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.cs-coach-avatar {
    width: 184px;
    height: 184px;
    border-radius: 50%;
    background-color: var(--fed-primary);
    color: var(--fed-on-primary);
    font-family: var(--fed-font);
    font-size: 3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cs-coach-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-coach-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--fed-primary);
    line-height: 1.25;
}

.cs-coach-role {
    font-size: 0.8125rem;
    color: #5a6478;
    margin-top: 0.125rem;
}

/* ── Business sponsors (player page) ────────────────────────────────────── */

.cs-sponsor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.cs-sponsor-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    text-decoration: none;
    transition: border-color 0.15s;
}

a.cs-sponsor-item:hover {
    border-color: var(--fed-primary);
}

.cs-sponsor-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.cs-sponsor-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--fed-primary);
}

/* ── Support CTA block (squad page) ─────────────────────────────────────── */

.cs-support-block {
    background-color: var(--fed-on-primary);
    border-radius: 12px;
    border: 0.5px solid #e2e5ea;
    padding: 1.5rem;
    text-align: center;
}

.cs-support-block-title {
    font-family: var(--fed-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fed-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.cs-support-block-sub {
    font-size: 0.875rem;
    color: #5a6478;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.cs-btn-primary {
    background-color: var(--fed-accent);
    color: var(--fed-on-accent);
    border: none;
    border-radius: 7px;
    padding: 0.65rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--fed-font);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.cs-btn-primary:hover {
    background-color: var(--fed-accent-dark);
    color: var(--fed-on-accent);
    transform: translateY(-1px);
}

.cs-btn-primary:active {
    transform: translateY(0);
}

.cs-btn-primary-full {
    display: block;
    width: 100%;
    text-align: center;
}

.cs-btn-outline-navy {
    background-color: var(--fed-primary);
    color: var(--fed-on-primary);
    border: none;
    border-radius: 6px;
    padding: 0.45rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--fed-font);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.cs-btn-outline-navy:hover {
    background-color: var(--fed-primary-mid);
    color: var(--fed-on-primary);
}

/* ── Player page — hero ──────────────────────────────────────────────────── */

.cs-player-hero {
    position: relative;
    width: 100%;
    background-color: var(--fed-primary);
    overflow: hidden;
}

.cs-player-hero-inner {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .cs-player-hero-inner {
        flex-direction: row;
        min-height: 520px;
    }
}

.cs-player-hero-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cs-player-hero-photo-wrap {
        width: 50%;
    }
}

@media (min-width: 1200px) {
    .cs-player-hero-photo-wrap {
        width: 40%;
    }
}

.cs-player-hero-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.cs-player-hero-photo-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--fed-primary-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.2;
}

/* Mobile gradient — bottom of photo fades into navy */
.cs-player-hero-photo-gradient-mobile {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--fed-primary));
    display: block;
}

@media (min-width: 768px) {
    .cs-player-hero-photo-gradient-mobile {
        display: none;
    }
}

/* Desktop gradient — right edge of photo fades into navy content panel */
.cs-player-hero-photo-gradient-desktop {
    display: none;
}

@media (min-width: 768px) {
    .cs-player-hero-photo-gradient-desktop {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 140px;
        background: linear-gradient(to right, transparent, var(--fed-primary));
    }
}

.cs-player-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    z-index: 2;
}

@media (min-width: 768px) {
    .cs-player-hero-content {
        position: static;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 3rem 2.5rem 2.5rem 1.5rem;
    }
}

.cs-player-hero-breadcrumb {
    color: var(--fed-on-primary);
    font-family: var(--fed-font);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0.875rem;
}

.cs-player-hero-breadcrumb:hover {
    color: var(--fed-on-primary);
}

.cs-player-hero-number-ghost {
    font-family: var(--fed-font);
    font-size: clamp(7rem, 18vw, 11rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
    letter-spacing: -0.04em;
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

@media (min-width: 768px) {
    .cs-player-hero-number-ghost {
        position: static;
        font-size: clamp(5rem, 10vw, 9rem);
        margin-bottom: -1rem;
        color: rgba(255, 255, 255, 0.2);
        align-self: flex-end;
    }
}

.cs-player-hero-name-row {
    display: flex;
    align-items: flex-end;
    gap: 0.875rem;
    position: relative;
    z-index: 2;
}

.cs-player-hero-shirt {
    background-color: var(--fed-accent-dark);
    color: var(--fed-on-accent);
    font-family: var(--fed-font);
    font-size: 2rem;
    font-weight: 700;
    width: 56px;
    height: 56px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-player-hero-name {
    color: var(--fed-on-primary);
    font-family: var(--fed-font);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: 0.01em;
}

.cs-player-hero-name .firstname {
    font-size: clamp(1.5rem, 4vw, 2rem);
    display: block;
}

.cs-player-hero-name .surname {
    font-size: clamp(2rem, 6vw, 3rem);
    display: block;
}

/* ── Player page — bio card ──────────────────────────────────────────────── */

.cs-bio-card {
    background-color: var(--fed-on-primary);
    border-radius: 10px;
    border: 0.5px solid #e2e5ea;
    padding: 1.125rem 1.25rem;
}

.cs-bio-text {
    font-size: 0.9375rem;
    color: #2a3a5a;
    line-height: 1.75;
}

.cs-bio-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 0.5px solid #e2e5ea;
}

.cs-bio-meta-label {
    font-size: 0.6875rem;
    color: #5a6478;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.cs-bio-meta-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fed-primary);
    line-height: 1.3;
}

/* ── Player page — gallery carousel ─────────────────────────────────────── */

.cs-gallery-wrap {
    position: relative;
}

.cs-gallery-stage {
    position: relative;
}

.cs-gallery-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1;
    transition: opacity 0.2s;
    padding: 0;
}

.cs-gallery-prev {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.45), transparent);
}

.cs-gallery-next {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.45), transparent);
}

.cs-gallery-arrow[aria-disabled="true"] {
    opacity: 0;
    pointer-events: none;
}

@media (hover: hover) {
    .cs-gallery-prev:not([aria-disabled="true"]),
    .cs-gallery-next:not([aria-disabled="true"]) {
        opacity: 0;
    }

    .cs-gallery-stage:hover .cs-gallery-prev:not([aria-disabled="true"]),
    .cs-gallery-stage:hover .cs-gallery-next:not([aria-disabled="true"]) {
        opacity: 1;
    }
}

.cs-gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cs-gallery-track::-webkit-scrollbar {
    display: none;
}

.cs-gallery-slide {
    width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    aspect-ratio: 16 / 9;
    position: relative;
    flex-shrink: 0;
    background-color: var(--fed-primary);
    overflow: hidden;
}

.cs-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-gallery-slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.12;
}

.cs-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem 0.875rem;
    background: linear-gradient(transparent, rgba(17, 27, 48, 0.85));
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.cs-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0.625rem 0 0;
}

.cs-gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #c8cdd8;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cs-gallery-dot.active {
    background-color: var(--fed-primary);
}

.cs-gallery-dot:focus {
    outline: 2px solid var(--fed-accent);
    outline-offset: 2px;
}

/* ── Player page — video strip ───────────────────────────────────────────── */

.cs-video-strip {
    display: flex;
    gap: 0.625rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.25rem;
}

.cs-video-strip::-webkit-scrollbar {
    display: none;
}

.cs-video-thumb {
    min-width: 130px;
    height: 230px;
    border-radius: 10px;
    background-color: var(--fed-primary-mid);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border: 0.5px solid #e2e5ea;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.cs-video-thumb:hover {
    transform: scale(1.02);
}

.cs-video-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-video-play-btn {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
}

.cs-video-thumb:hover .cs-video-play-btn {
    background-color: rgba(255, 255, 255, 0.28);
}

.cs-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 2;
}

.cs-video-title {
    position: absolute;
    bottom: 26px;
    left: 8px;
    right: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.35;
    z-index: 2;
}

/* ── Pinned sponsorship bar (player page) ────────────────────────────────── */

.cs-pinned-sponsor {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--fed-on-primary);
    border-top: 0.5px solid #e2e5ea;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(26, 39, 68, 0.08);
}

@media (min-width: 768px) {
    .cs-pinned-sponsor {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 12px 12px 0 0;
    }
}

.cs-pinned-sponsor-text {
    flex: 1;
    min-width: 0;
}

.cs-pinned-sponsor-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fed-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-pinned-sponsor-sub {
    font-size: 0.75rem;
    color: #5a6478;
    margin-top: 1px;
}

/* Pad page bottom so content isn't hidden behind pinned bar */
.cs-has-pinned-bar {
    padding-bottom: 80px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.cs-footer {
    background-color: var(--fed-primary-deep);
    padding: 2rem 0;
    margin-top: 3rem;
}

.cs-footer-brand {
    font-family: var(--fed-font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fed-on-primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.cs-footer-sub {
    font-size: 0.75rem;
    color: var(--fed-on-primary-muted);
    line-height: 1.5;
}

.cs-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .cs-footer-links {
        justify-content: flex-end;
    }
}

.cs-footer-links a {
    font-size: 0.8125rem;
    color: var(--fed-on-primary-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.cs-footer-links a:hover {
    color: var(--fed-on-primary);
}

/* ── Utilities ───────────────────────────────────────────────────────────── */

.cs-divider {
    border: none;
    border-top: 0.5px solid #e2e5ea;
    margin: 0;
}

/* ── Gallery carousel ────────────────────────────────────────────────────── */

.cs-gallery-img {
    max-height: 520px;
    object-fit: cover;
    border-radius: 8px;
}

/* ── Sponsor page specific styles ────────────────────────────────────── */

.sp-hero {
    background-color: var(--fed-primary);
    padding: 2rem 0 2.5rem;
}

.sp-hero-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sp-hero-photo {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background-color: var(--fed-primary-mid);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.sp-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 1;
}

.sp-hero-player--team {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.sp-hero-photo--team {
    width: 280px;
    height: 140px;
    aspect-ratio: 2 / 1;
    border-radius: 8px;
}

.sp-hero-shirt {
    background-color: var(--fed-accent);
    color: var(--fed-on-accent);
    font-family: var(--fed-font);
    font-size: 1rem;
    font-weight: 700;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-hero-name {
    color: var(--fed-on-primary);
    font-family: var(--fed-font);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.sp-hero-squad {
    color: var(--fed-on-primary-muted);
    font-size: 0.8125rem;
    margin-top: 0.2rem;
}

.sp-hero-title {
    color: var(--fed-on-primary);
    font-family: var(--fed-font);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.sp-hero-sub {
    color: var(--fed-on-primary-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ── Cost breakdown ───────────────────────────────────────────────────── */

.sp-cost-card {
    background-color: #fff;
    border-radius: 12px;
    border: 0.5px solid #e2e5ea;
    overflow: hidden;
}

.sp-cost-header {
    background-color: var(--fed-primary);
    padding: 1rem 1.25rem;
}

.sp-cost-header-title {
    color: var(--fed-on-primary);
    font-family: var(--fed-font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.125rem;
}

.sp-cost-header-sub {
    color: var(--fed-on-primary-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

.sp-cost-table {
    width: 100%;
    border-collapse: collapse;
}

.sp-cost-table td {
    padding: 0.8rem;
    font-size: 0.875rem;
    border-bottom: 0.5px solid #e2e5ea;
    vertical-align: top;
}

.sp-cost-table tr:last-child td {
    border-bottom: none;
}

.sp-cost-table .sp-cost-item {
    color: #2a3a5a;
    line-height: 1.4;
}

.sp-cost-table .sp-cost-item h5{
    font-weight: bold;
    font-size: 0.9rem;
}

.sp-cost-table .sp-cost-icon-cell {
    width: 52px;
    padding-right: 0;
    vertical-align: top;
    padding-top: 0.625rem;
}

.sp-cost-table .sp-cost-amount {
    text-align: right;
    font-weight: 600;
    color: var(--fed-primary);
    white-space: nowrap;
}

.sp-cost-total-row td {
    background-color: #f4f5f7;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--fed-primary);
    border-top: 1.5px solid #e2e5ea;
}

.sp-cost-estimate {
    font-size: 0.6875rem;
    color: #5a6478;
    font-weight: 400;
}

/* ── Donation form card ───────────────────────────────────────────────── */

.sp-form-card {
    background-color: #fff;
    border-radius: 12px;
    border: 0.5px solid #e2e5ea;
    padding: 1.5rem;
}

.sp-form-title {
    font-family: var(--fed-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fed-primary);
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
}

/* Amount presets */
.sp-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.625rem;
}

.sp-amount-btn {
    background-color: #f4f5f7;
    border: 1.5px solid #e2e5ea;
    border-radius: 8px;
    padding: 0.625rem 0.25rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    font-family: var(--fed-font);
}

.sp-amount-btn:hover {
    border-color: var(--fed-primary);
    background-color: #edf0f5;
}

.sp-amount-btn.active {
    border-color: var(--fed-primary);
    background-color: var(--fed-primary);
}

.sp-amount-btn .sp-amount-value {
    display: block;
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--fed-primary);
    font-family: var(--fed-font);
    line-height: 1.1;
}

.sp-amount-btn.active .sp-amount-value {
    color: var(--fed-on-primary);
}

.sp-amount-btn .sp-amount-label {
    display: block;
    font-size: 0.625rem;
    color: #5a6478;
    margin-top: 0.2rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sp-amount-btn.active .sp-amount-label {
    color: var(--fed-on-primary-muted);
}

/* Custom amount */
.sp-custom-amount-wrap {
    position: relative;
    margin-bottom: 1.25rem;
}

.sp-custom-amount-prefix {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 600;
    color: #5a6478;
    pointer-events: none;
}

.sp-custom-amount-input {
    width: 100%;
    border: 1.5px solid #e2e5ea;
    border-radius: 8px;
    padding: 0.625rem 0.875rem 0.625rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fed-primary);
    font-family: var(--fed-font);
    background-color: #f4f5f7;
    transition: border-color 0.15s, background-color 0.15s;
}

.sp-custom-amount-input:focus {
    outline: none;
    border-color: var(--fed-primary);
    background-color: #fff;
}

.sp-custom-amount-input::placeholder {
    color: #b0b8c8;
    font-weight: 400;
}

/* Sponsor type */
.sp-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.sp-type-btn {
    border: 1.5px solid #e2e5ea;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    background-color: #f4f5f7;
    text-align: left;
}

.sp-type-btn:hover {
    border-color: var(--fed-primary);
    background-color: #edf0f5;
}

.sp-type-btn.active {
    border-color: var(--fed-primary);
    background-color: #edf0f5;
}

.sp-type-btn .sp-type-icon {
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
    display: block;
    line-height: 1;
}

.sp-type-btn .sp-type-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fed-primary);
    display: block;
    line-height: 1.2;
}

.sp-type-btn .sp-type-sub {
    font-size: 0.6875rem;
    color: #5a6478;
    display: block;
    margin-top: 0.2rem;
    line-height: 1.35;
}

/* Form fields */
.sp-field-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fed-primary);
    display: block;
    margin-bottom: 0.375rem;
}

.sp-field-label .sp-optional {
    font-weight: 400;
    color: #5a6478;
    font-size: 0.75rem;
}

.sp-input {
    width: 100%;
    border: 1.5px solid #e2e5ea;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: var(--fed-primary);
    font-family: var(--fed-font);
    background-color: #fff;
    transition: border-color 0.15s;
}

.sp-input:focus {
    outline: none;
    border-color: var(--fed-primary);
}

.sp-input::placeholder {
    color: #b0b8c8;
}

.sp-textarea {
    resize: vertical;
    min-height: 90px;
}

/* Business logo upload */
.sp-logo-upload {
    border: 1.5px dashed #c8d0dc;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    background-color: #f9fafb;
}

.sp-logo-upload:hover {
    border-color: var(--fed-primary);
    background-color: #f4f5f7;
}

.sp-logo-upload--dragover {
    border-color: var(--fed-primary);
    border-style: solid;
    background-color: #eef0f8;
    outline: 2px solid var(--fed-primary);
    outline-offset: -2px;
}

.sp-logo-upload--selected {
    border-color: #198754;
    border-style: solid;
    background-color: #f6fdf8;
}

.sp-logo-upload-default {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sp-logo-upload--selected .sp-logo-upload-default {
    display: none;
}

.sp-logo-upload-preview {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sp-logo-upload--selected .sp-logo-upload-preview {
    display: flex;
}

.sp-logo-preview-img {
    max-height: 56px;
    max-width: 160px;
    object-fit: contain;
}

.sp-logo-preview-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #198754;
}

.sp-logo-preview-change {
    font-size: 0.75rem;
    color: #5a6478;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.sp-logo-upload-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fed-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.sp-logo-upload-sub {
    font-size: 0.75rem;
    color: #5a6478;
}

/* Stripe payment element container */
.sp-stripe-wrap {
    border: 1.5px solid #e2e5ea;
    border-radius: 8px;
    padding: 0.875rem;
    background-color: #fff;
    min-height: 50px;
}

/* Security note */
.sp-security-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #5a6478;
    line-height: 1.5;
}

.sp-security-note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Submit */
.sp-submit-btn {
    background-color: var(--fed-accent);
    color: var(--fed-on-accent);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--fed-font);
    width: 100%;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sp-submit-btn:hover {
    background-color: var(--fed-accent-dark);
    transform: translateY(-1px);
}

.sp-submit-btn:active {
    transform: translateY(0);
}

.sp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Business-only field visibility */
.sp-business-only {
    display: none;
}

.sp-business-only.visible {
    display: block;
}

/* Impact context */
.sp-impact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 0.5px solid #e2e5ea;
}

.sp-impact-item:last-child {
    border-bottom: none;
}

.sp-impact-icon,
.sp-cost-icon {
    width: 36px;
    height: 36px;
    background-color: var(--fed-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-impact-amount {
    font-family: var(--fed-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--fed-primary);
    line-height: 1.1;
}

.sp-impact-desc {
    font-size: 0.8125rem;
    color: #5a6478;
    margin-top: 0.125rem;
    line-height: 1.4;
}

/* Divider label */
.sp-divider-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.sp-divider-label::before,
.sp-divider-label::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background-color: #e2e5ea;
}

.sp-divider-label span {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #5a6478;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Sticky summary on desktop */
@media (min-width: 992px) {
    .sp-sticky-sidebar {
        position: sticky;
        top: 1.5rem;
    }
}

/* Processing overlay */
.sp-processing {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(17, 27, 48, 0.6);
    z-index: 200;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.sp-processing.visible {
    display: flex;
}

.sp-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: sp-spin 0.8s linear infinite;
}

.sp-processing-text {
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
}

@keyframes sp-spin {
    to { transform: rotate(360deg); }
}
