/* ---------- Base ---------- */
:root {
    --bg: #0a0e16;
    --surface: #12182a;
    --surface-2: #161d31;
    --border: #232c42;
    --lime: #c6f135;
    --lime-dim: #9fc925;
    --text: #f4f6f9;
    --text-dim: #9aa4bc;
    --text-dimmer: #6c7690;
    --live-red: #e5304a;
    --radius: 14px;
    --radius-sm: 10px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

h1, h2, h3, h4, p {
    margin: 0;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

.accent {
    color: var(--lime);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.btn-primary {
    background: var(--lime);
    color: #10160c;
}

.btn-primary:hover {
    background: var(--lime-dim);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.btn-pill {
    padding: 10px 18px;
    font-size: 14px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10, 14, 22, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.logo-mark {
    color: var(--lime);
    display: inline-flex;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dim);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--text);
}

.main-nav a.active {
    color: var(--lime);
    border-bottom-color: var(--lime);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.icon-btn:hover {
    border-color: var(--lime);
}

.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 18px;
}

/* ---------- Search overlay ---------- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 13, 0.9);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    z-index: 60;
}

.search-overlay.open {
    display: flex;
}

.search-box {
    width: min(560px, 90vw);
    display: flex;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 10px 10px 20px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 16px;
}

.search-box button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--surface-2);
    color: var(--text);
}

/* ---------- Section headings ---------- */
.section {
    padding: 40px 0 0;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-head h2 {
    font-size: 20px;
    font-weight: 800;
}

.link-more {
    color: var(--lime);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live-red);
    margin-left: 4px;
}

/* ---------- Hero ---------- */
.hero {
    padding-top: 44px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
}

.hero-text p {
    margin-top: 18px;
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 26px;
}

.hero-media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-dots {
    position: absolute;
    left: 24px;
    bottom: 20px;
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.dot.active {
    background: var(--lime);
    width: 22px;
    border-radius: 4px;
}

/* ---------- Court media placeholders ---------- */
.court-media,
.card-media {
    background:
        radial-gradient(ellipse at 60% 12%, rgba(255, 244, 214, 0.35), rgba(255, 244, 214, 0) 42%),
        linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 42%, var(--court1) 43%, var(--court2) 100%);
}

.g1 { --sky1: #17233a; --sky2: #223655; --court1: #7a4a2e; --court2: #4a2c1b; }
.g2 { --sky1: #131a2e; --sky2: #1f3350; --court1: #2e5c52; --court2: #1a332d; }
.g3 { --sky1: #1b1530; --sky2: #2c2354; --court1: #5a3a63; --court2: #33203a; }
.g4 { --sky1: #101c2a; --sky2: #1c3348; --court1: #274a63; --court2: #16293a; }
.g5 { --sky1: #1a1420; --sky2: #33253d; --court1: #6b3e35; --court2: #3c221d; }
.g6 { --sky1: #0f1c22; --sky2: #1a3339; --court1: #2f5c46; --court2: #1a3327; }

/* ---------- Horizontal scroll rows ---------- */
.scroll-row-wrap {
    position: relative;
}

.scroll-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 4px 0 20px;
    scrollbar-width: thin;
}

.scroll-btn {
    position: absolute;
    right: -6px;
    top: 40%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    border-color: var(--lime);
    color: var(--lime);
}

/* ---------- Cards ---------- */
.card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-media {
    position: relative;
    aspect-ratio: 4 / 3;
}

.card-body {
    padding: 14px;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
}

.card-sub {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-dim);
}

.card-sub.dim {
    color: var(--text-dimmer);
}

/* club cards */
.club-card .card-body {
    padding-top: 28px;
}

.dots-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 14, 22, 0.55);
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.club-badge {
    position: absolute;
    bottom: -20px;
    left: 14px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--lime);
    background: #0c101b;
    color: var(--lime);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 8.5px;
    font-weight: 800;
    line-height: 1.15;
    padding: 2px;
}

.status-line {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--lime);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
}

/* highlight / live badges */
.badge-duration,
.badge-live,
.badge-viewers,
.badge-capture {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(6, 8, 13, 0.65);
    color: #fff;
}

.badge-duration {
    top: 10px;
    right: 10px;
}

.badge-capture {
    left: 10px;
    bottom: 10px;
}

.badge-live {
    top: 10px;
    left: 10px;
    background: var(--live-red);
    letter-spacing: 0.4px;
}

.badge-viewers {
    top: 10px;
    right: 10px;
}

.card-meta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-dim);
}

.likes {
    color: var(--text-dim);
}

.video-trigger {
    cursor: pointer;
}

/* tournament cards */
.tourney-card {
    flex: 0 0 280px;
    display: flex;
    gap: 14px;
    padding: 16px;
    align-items: flex-start;
}

.tourney-date {
    flex-shrink: 0;
    width: 58px;
    border: 1px solid var(--lime);
    border-radius: var(--radius-sm);
    padding: 8px 4px;
    text-align: center;
}

.tourney-date span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--lime);
}

.tourney-date strong {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

.tourney-players {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--lime);
}

/* ---------- Sponsor strip ---------- */
.sponsor-strip {
    margin-top: 40px;
}

.sponsor-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 28px;
}

.sponsor-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--lime);
    line-height: 1.5;
    flex-shrink: 0;
}

.sponsor-logos {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
    flex: 1;
}

.sponsor-logo {
    font-weight: 800;
    font-size: 17px;
    color: var(--text-dim);
    white-space: nowrap;
}

.sponsor-wilson {
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
}

.sponsor-tp {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.2;
}

.sponsor-tp small {
    font-weight: 400;
    font-size: 10px;
    color: var(--text-dimmer);
}

/* ---------- Discovery banner ---------- */
.discovery-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #14210f, #0d130c);
    border: 1px solid #2b4321;
    border-radius: var(--radius);
    padding: 32px;
}

.discovery-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.discovery-text {
    flex: 1;
}

.discovery-text h3 {
    font-size: 19px;
    font-weight: 800;
}

.discovery-text p {
    margin-top: 6px;
    color: var(--text-dim);
    font-size: 14px;
    max-width: 520px;
}

/* ---------- Benefits ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.benefit h4 {
    font-size: 15px;
    font-weight: 700;
}

.benefit p {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ---------- CTA strip ---------- */
.cta-strip {
    margin-top: 48px;
    border-top: 1px solid var(--border);
    padding: 24px 0 40px;
}

.cta-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.cta-inner p {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

/* ---------- Video modal ---------- */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 13, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 70;
    padding: 20px;
}

.video-modal.open {
    display: flex;
}

.video-modal-inner {
    position: relative;
    width: min(720px, 100%);
}

.video-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
}

.video-modal-body {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.video-modal-body p {
    color: #fff;
    font-weight: 600;
    background: rgba(6, 8, 13, 0.55);
    padding: 10px 18px;
    border-radius: 999px;
}

/* ---------- Live modal ---------- */
.live-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    pointer-events: none;
}

.live-modal.open {
    visibility: visible;
    pointer-events: auto;
}

.live-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(6, 8, 13, 0.75);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.live-modal.open .live-backdrop {
    opacity: 1;
}

.live-modal-inner {
    position: relative;
    width: min(960px, 100%);
    max-height: 90vh;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transform: scale(0.96) translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.live-modal.open .live-modal-inner {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.live-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.live-modal-head h2 {
    font-size: 17px;
    font-weight: 700;
}

.live-modal-head h2::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--live-red);
    vertical-align: middle;
    animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.live-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-close,
.live-maximize {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.live-close:hover,
.live-maximize:hover {
    border-color: var(--text-dimmer);
}

.live-modal-body {
    display: flex;
    padding: 18px;
    background: var(--bg);
}

.live-modal-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    border: none;
    border-radius: var(--radius-sm);
    background: #000;
}

.live-modal.fullscreen {
    padding: 0;
}

.live-modal.fullscreen .live-backdrop {
    display: none;
}

.live-modal.fullscreen .live-modal-inner {
    width: 100vw;
    height: 100vh;
    max-height: none;
    border: none;
    border-radius: 0;
}

.live-modal.fullscreen .live-modal-body {
    flex: 1;
    padding: 0;
}

.live-modal.fullscreen .live-modal-body iframe {
    flex: 1;
    height: auto;
    max-height: none;
    border-radius: 0;
}

@media (max-width: 600px) {
    .live-modal {
        padding: 0;
    }

    .live-modal-inner {
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        border: none;
    }

    .live-modal-body {
        flex: 1;
    }

    .live-modal-body iframe {
        flex: 1;
        height: 100%;
        aspect-ratio: auto;
        max-height: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 34px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 32px;
    }
}

@media (max-width: 860px) {
    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 32px 18px;
        display: none;
    }

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

    .main-nav a {
        padding: 8px 0;
        border-bottom: none;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 18px;
    }

    .header-inner {
        gap: 10px;
    }

    .logo {
        font-size: 16px;
    }

    .btn-pill {
        padding: 8px 12px;
        font-size: 13px;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
    }

    .hero {
        padding-top: 28px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .card {
        flex: 0 0 168px;
    }

    .tourney-card {
        flex: 0 0 240px;
    }

    .discovery-banner {
        flex-direction: column;
        text-align: center;
    }

    .discovery-text p {
        max-width: none;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .sponsor-inner {
        justify-content: center;
        text-align: center;
    }

    .sponsor-logos {
        justify-content: center;
    }
}
