/* ---------- 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: 1420px;
}

* {
    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);
    margin-left: -7px;
}

/* ---------- 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(--lime);
    border: 1px solid var(--lime);
}

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

.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: 24px 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;
}

.section-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 24px;
}

.carousel-arrow {
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(6, 8, 13, 0.75);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding-bottom: 5px;
    padding-left: 9px;
}

.carousel-arrow:hover {
    border-color: var(--lime);
    color: var(--lime);
}

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

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

.hero-media {
    position: relative;
    height: 600px;
    overflow: hidden;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 900ms ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #131d33;
}

.hero-slide[data-slide="0"] .hero-bg {
    background-position: 50% 78%;
}
.hero-slide[data-slide="1"] .hero-bg {
    background-position: 50% 78%;
}
.hero-slide[data-slide="2"] .hero-bg {
    background-position: 50% 84%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 8, 13, 0.88) 0%, rgba(6, 8, 13, 0.68) 32%, rgba(6, 8, 13, 0.32) 56%, rgba(6, 8, 13, 0) 78%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 560px;
    padding-top: 12px;
}

.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-dots {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

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

.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;
    scrollbar-width: thin;
}

/* ---------- 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-media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.area-tennis img { object-position: center 45%; }
.milano img      { object-position: center 50%; }
.riverside img   { object-position: center 40%; }
.parma img       { object-position: center 48%; }
.verona img      { object-position: center 42%; }
.sunvalley img   { object-position: center 50%; }
.napoli img      { object-position: center 46%; }
.firenze img     { object-position: center 44%; }

.card-body {
    padding: 14px;
}

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

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

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

/* club cards */
.club-card {
    position: relative;
    aspect-ratio: 0.7;
    display: flex;
    flex-direction: column;
}

.club-card .card-media {
    aspect-ratio: unset;
    flex: 0 0 60%;
    position: relative;
}

.club-card .card-media::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(18, 24, 42, 0) 0%, var(--surface) 100%);
    pointer-events: none;
}

.club-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 34px 14px 20px;
}

.club-card .card-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.club-card .card-sub {
    font-size: 14px;
    color: var(--text-dim);
}

.club-card .status-line {
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.club-card .dots-btn {
    width: 36px;
    height: 36px;
    top: 12px;
    right: 12px;
    font-size: 18px;
    background: rgba(10, 14, 22, 0.6);
}

.club-card .club-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 98px;
    height: 98px;
    z-index: 2;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.carousel-row {
    scrollbar-width: none;
    scroll-behavior: smooth;
    --carousel-visible: 6;
}

.carousel-row::-webkit-scrollbar {
    display: none;
}

.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: 66px;
    height: 66px;
    border-radius: 50%;
    border: 2px solid var(--lime);
    background: rgba(12, 16, 27, 0.5);
    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;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(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: 4px;
    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;
}

/* highlight cards */
.highlight-card {
    aspect-ratio: 1.15;
    display: flex;
    flex-direction: column;
}

.highlight-card .card-media {
    aspect-ratio: unset;
    flex: 0 0 72%;
}

.highlight-card .card-body {
    flex: 1;
}

.highlight-card .card-title {
    font-size: 17px;
    font-weight: 800;
}

.highlight-card .likes {
    font-size: 11px;
}

/* live cards */
.live-card {
    aspect-ratio: 1.5;
    display: flex;
    flex-direction: column;
}

.live-card .card-media {
    aspect-ratio: unset;
    flex: 0 0 72%;
}

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

.live-location {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
}

.live-club {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}

.live-separator {
    font-size: 14px;
    color: var(--text-dimmer);
}

.live-court {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dim);
}

.live-players {
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-dim);
}

/* Individual crop control per highlight image; edit the percentage to fine-tune. */
.highlight1 img { object-position: center 90%; }
.highlight2 img { object-position: center 90%; }
.highlight3 img { object-position: center 90%; }
.highlight4 img { object-position: center 90%; }
.highlight5 img { object-position: center 90%; }
.highlight6 img { object-position: center 90%; }
.highlight7 img { object-position: center 90%; }
.highlight8 img { object-position: center 90%; }

/* Individual crop control per live image; edit the percentage to fine-tune. */
.live1 img { object-position: center 90%; }
.live2 img { object-position: center 90%; }
.live3 img { object-position: center 90%; }
.live4 img { object-position: center 90%; }
.live5 img { object-position: center 90%; }
.live6 img { object-position: center 90%; }
.live7 img { object-position: center 90%; }
.live8 img { object-position: center 100%; }

/* 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);
}

#tourneyRow {
    --carousel-visible: 5;
}

#liveRow {
    --carousel-visible: 3;
}

#highlightRow {
    --carousel-visible: 4;
}

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

.sponsor-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.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;
    justify-content: center;
    gap: 66px;
    flex: 1;
    flex-wrap: nowrap;
}

.sponsor-logo-img {
    display: block;
    height: 32px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.25s;
}

.sponsor-logo-img:hover {
    opacity: 1;
}

.logo-head {
    height: 24px;
}

.logo-wilson {
    height: 30px;
}

.logo-babolat {
    height: 28px;
}

.logo-lavazza {
    height: 42px;
}

.logo-nike {
    height: 26px;
}

.logo-jollysport {
    height: 32px;
}

/* ---------- Discovery banner ---------- */
.discovery-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 200px;
    background:
        linear-gradient(90deg, rgba(6, 8, 13, 0.88) 0%, rgba(6, 8, 13, 0.62) 35%, rgba(6, 8, 13, 0.22) 65%, rgba(6, 8, 13, 0) 85%),
        url('../assets/images/map-discovery-bg.png');
    background-size: 100%;
    background-position: 100% 70%;
    background-repeat: no-repeat, no-repeat;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    padding: 0 48px;
}

.map-pin-icon {
    width: 84px;
    aspect-ratio: 104 / 128;
    flex-shrink: 0;
}

.map-pin-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.map-pin-small {
    width: 22px;
    height: 28px;
    flex-shrink: 0;
}

.map-pin-small svg {
    width: 100%;
    height: 100%;
    display: block;
}

.map-pin-shape {
    fill: #C8FF1A;
}

.map-pin-hole {
    fill: #09121D;
}

.map-pin-center {
    fill: #C8FF1A;
}

.map-pin-shadow {
    fill: rgba(200, 255, 26, .22);
}

.discovery-text {
    flex: 1;
}

.discovery-text h3 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.discovery-text p {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.5;
    max-width: 600px;
}

.discovery-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    width: 200px;
    height: 44px;
    background: var(--lime);
    color: #10160c;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
}

.discovery-cta:hover {
    background: var(--lime-dim);
}

.discovery-cta .map-pin-shape,
.discovery-cta .map-pin-hole,
.discovery-cta .map-pin-center,
.discovery-cta .map-pin-shadow {
    fill: #10160c;
}

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

.benefit {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 32px;
    border-right: 1px solid var(--border);
}

.benefit:first-child {
    padding-left: 0;
}

.benefit:last-child {
    padding-right: 0;
    border-right: none;
}

.benefit-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: block;
}

.benefit h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

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

/* ---------- CTA strip ---------- */
.cta-strip {
    margin-top: 0px;
    padding: 24px 0 40px;
}

.cta-inner {
    display: flex;
    align-items: center;
    gap: 0px;
    height: 140px;
    padding: 0 52px;
}

.cta-avatar {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    
}

.cta-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 999px;
}

.cta-text {
    flex: 1;
}

.cta-title {
    font-size: 21px;
    font-weight: 800;
    color: #fff;
}

.cta-sub {
    margin-top: 4px;
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.5;
}

.cta-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    width: 200px;
    height: 44px;
    background: var(--lime);
    color: #10160c;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
}

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

.cta-register-btn .map-pin-shape,
.cta-register-btn .map-pin-hole,
.cta-register-btn .map-pin-center,
.cta-register-btn .map-pin-shadow {
    fill: #10160c;
}

/* ---------- 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-container {
        max-width: none;
        padding: 0 12px;
    }

    .hero-bg {
        background-position: 66% 40%;
    }

    .hero-media {
        height: min(600px, 62vw);
    }

    .hero-text h1 {
        font-size: clamp(26px, 4vw + 12px, 34px);
    }

    .hero-text p {
        font-size: clamp(13px, 1.6vw + 8px, 16px);
    }

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

    .benefit {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 16px 20px;
    }

    .benefit:first-child {
        padding-left: 0;
    }

    .benefit:last-child {
        padding-right: 20px;
        border-bottom: none;
    }

    .benefit:nth-child(odd) {
        padding-left: 0;
    }

    .benefit:nth-child(even) {
        padding-right: 0;
    }

    .benefit:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .carousel-row {
        --carousel-visible: 3;
    }

    #tourneyRow {
        --carousel-visible: 2;
    }

    #highlightRow {
        --carousel-visible: 2;
    }

    #liveRow {
        --carousel-visible: 2;
    }

    /* Let card height follow content instead of a fixed aspect-ratio once
       columns get narrow, so text can never be clipped by a locked ratio. */
    .club-card,
    .highlight-card,
    .live-card {
        aspect-ratio: unset;
    }

    .club-card .card-media,
    .highlight-card .card-media,
    .live-card .card-media {
        flex: none;
    }

    .club-card .card-body,
    .highlight-card .card-body,
    .live-card .card-body {
        flex: none;
    }

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

    .highlight-card .card-media,
    .live-card .card-media {
        aspect-ratio: 16 / 10;
    }

    .club-card .club-badge {
        width: min(80px, 22vw);
        height: min(80px, 22vw);
        font-size: 11px;
    }

    .club-card .card-body {
        padding: 26px 12px 16px;
    }

    .club-card .card-title {
        font-size: 16px;
    }

    .club-card .dots-btn {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .discovery-banner {
        height: auto;
        padding: 24px 28px;
        gap: 16px;
    }

    .map-pin-icon {
        width: 56px;
    }

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

    .discovery-text p {
        font-size: 13px;
    }

    .discovery-cta {
        width: 168px;
        height: 42px;
        font-size: 14px;
    }

    .cta-inner {
        height: auto;
        padding: 20px 28px;
        gap: 16px;
    }

    .cta-avatar {
        width: 72px;
        height: 72px;
    }

    .cta-title {
        font-size: 18px;
    }

    .cta-register-btn {
        width: 168px;
        height: 42px;
        font-size: 14px;
    }

    .sponsor-logos {
        gap: 28px;
    }

    .sponsor-logo-img {
        height: 28px;
    }
}

@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;
    }

    .sponsor-logos {
        justify-content: flex-start;
        gap: 24px;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .sponsor-logos::-webkit-scrollbar {
        display: none;
    }

    .sponsor-logo-img {
        height: 24px;
    }
}

@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-container {
        max-width: none;
        padding: 0;
    }

    .hero-media {
        height: min(560px, 148vw);
        border-radius: 0;
    }

    .hero-bg {
        background-position: 82% 50%;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(6, 8, 13, 0.92) 0%, rgba(6, 8, 13, 0.8) 38%, rgba(6, 8, 13, 0.5) 62%, rgba(6, 8, 13, 0.18) 88%);
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: clamp(23px, 7vw, 28px);
    }

    .hero-text p {
        font-size: 14px;
    }

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

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

    .section-block {
        padding: 18px 16px;
    }

    .carousel-row {
        --carousel-visible: 2;
    }

    #tourneyRow {
        --carousel-visible: 1;
    }

    #highlightRow {
        --carousel-visible: 1.12;
    }

    #liveRow {
        --carousel-visible: 1.1;
    }

    .club-card .club-badge {
        width: 68px;
        height: 68px;
        font-size: 9.5px;
    }

    .club-card .card-body {
        padding: 22px 10px 14px;
    }

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

    .club-card .card-sub {
        font-size: 12px;
    }

    .discovery-banner {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 28px 20px;
        gap: 14px;
    }

    .map-pin-icon {
        width: 72px;
    }

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

    .discovery-cta {
        width: 100%;
        height: 58px;
    }

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

    .benefit {
        padding: 16px 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .benefit:first-child {
        padding-top: 0;
    }

    .benefit:last-child {
        border-bottom: none;
        padding-bottom: 0;
        padding-right: 0;
    }

    .benefit:nth-child(even) {
        padding-right: 0;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .cta-register-btn {
        width: 100%;
        height: 54px;
        font-size: 15px;
    }
}

/* Card width for all carousel rows is driven by --carousel-visible (set per breakpoint above);
   placed last so it wins over .card/.tourney-card's base flex-basis at every screen size. */
.carousel-card {
    flex: 0 0 calc((100% - (var(--carousel-visible) - 1) * 16px) / var(--carousel-visible));
}

/* ─── Mobile CSS Custom Properties (Placeholders) ─── */
:root {
    /* Mobile Typography */
    --mobile-font-display: system-ui, -apple-system, sans-serif;
    --mobile-font-ui: system-ui, -apple-system, sans-serif;

    /* Mobile Typography Sizes */
    --mobile-headline-size: 28px;
    --mobile-subheading-size: 16px;
    --mobile-body-size: 14px;
    --mobile-label-size: 12px;

    /* Mobile Colors */
    --mobile-bg: #0a0e16;
    --mobile-surface: #12182a;
    --mobile-text: #f4f6f9;
    --mobile-text-dim: #9aa4bc;
    --mobile-accent: #c6f135;
    --mobile-overlay-dark: rgba(6, 8, 13, 0.75);
    --mobile-overlay-medium: rgba(6, 8, 13, 0.5);

    /* Mobile Spacing */
    --mobile-spacing-xs: 8px;
    --mobile-spacing-sm: 12px;
    --mobile-spacing-md: 16px;
    --mobile-spacing-lg: 24px;
    --mobile-spacing-xl: 32px;

    /* Mobile Layout */
    --mobile-header-height: 56px;
    --mobile-nav-height: 64px;
    --mobile-section-height: 100vh;

    /* Mobile Button */
    --mobile-btn-height: 48px;
    --mobile-btn-radius: 999px;

    /* Mobile Transitions */
    --mobile-transition-fast: 150ms ease;
    --mobile-transition-normal: 300ms ease;
}

/* ─── Mobile Homepage Container ─── */
.mobile-homepage {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--mobile-bg);
    color: var(--mobile-text);
    font-family: var(--mobile-font-ui);
    overflow: hidden;
    z-index: 100;
}

/* Only show mobile homepage below 600px */
@media (max-width: 600px) {
    /* ═══════════════════════════════════════════════════════════
       SHOW MOBILE HOMEPAGE & HIDE DESKTOP CONTENT
       ═══════════════════════════════════════════════════════════ */

    .mobile-homepage {
        display: flex;
        flex-direction: column;
    }

    /* Hide ALL desktop/tablet homepage elements (but NOT mobile main) */
    .site-header,
    .search-overlay,
    main:not(.mobile-main),
    .video-modal,
    .live-modal {
        display: none !important;
    }

    /* ─── Mobile Header ─── */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--mobile-header-height);
        background: rgba(10, 14, 22, 0.95);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(198, 241, 53, 0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 var(--mobile-spacing-md);
        z-index: 40;
    }

    .mobile-header-btn {
        height: 32px;
        padding: 0 12px;
        border: 1px solid rgba(198, 241, 53, 0.2);
        border-radius: 999px;
        background: transparent;
        color: var(--mobile-text);
        font-size: var(--mobile-label-size);
        font-weight: 600;
        cursor: pointer;
        transition: all var(--mobile-transition-fast);
    }

    .mobile-header-btn:active {
        background: rgba(198, 241, 53, 0.1);
        border-color: var(--mobile-accent);
    }

    .mobile-header-logo {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 0.3px;
    }

    .mobile-logo-mark {
        color: var(--mobile-accent);
        font-size: 12px;
    }

    .mobile-header-logo .accent {
        color: var(--mobile-accent);
        margin-left: -3px;
    }

    /* ─── Mobile Main (scrollable sections) ─── */
    .mobile-main {
        flex: 1;
        overflow-y: scroll;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
        padding-top: var(--mobile-header-height);
        padding-bottom: var(--mobile-nav-height);
    }

    .mobile-main::-webkit-scrollbar {
        display: none;
    }

    .mobile-sections-container {
        display: flex;
        flex-direction: column;
    }

    /* ─── Mobile Section (full-screen vertical slides) ─── */
    .mobile-section {
        position: relative;
        width: 100%;
        height: 100vh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        overflow: hidden;
    }

    /* Background image */
    .mobile-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: var(--mobile-bg-position, 50% 50%);
        background-repeat: no-repeat;
        z-index: -2;
    }

    /* Overlay gradient */
    .mobile-section::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            180deg,
            rgba(6, 8, 13, 0.2) 0%,
            rgba(6, 8, 13, 0.5) 50%,
            rgba(6, 8, 13, 0.8) 100%
        );
        z-index: -1;
    }

    /* ─── Mobile Section Content ─── */
    .mobile-section-content {
        position: relative;
        z-index: 1;
        padding: var(--mobile-spacing-lg);
        padding-bottom: calc(var(--mobile-spacing-xl) + var(--mobile-spacing-md));
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .mobile-section-headline {
        font-size: var(--mobile-headline-size);
        font-weight: 800;
        line-height: 1.2;
        margin: 0 0 var(--mobile-spacing-md) 0;
        color: var(--mobile-text);
    }

    .mobile-section-highlight {
        font-size: var(--mobile-subheading-size);
        font-weight: 700;
        line-height: 1.4;
        margin: 0 0 var(--mobile-spacing-lg) 0;
        color: var(--mobile-accent);
    }

    .mobile-section-cta-block {
        display: flex;
        flex-direction: column;
        gap: var(--mobile-spacing-md);
        margin-bottom: var(--mobile-spacing-lg);
    }

    .mobile-section-btn {
        height: var(--mobile-btn-height);
        padding: 0 var(--mobile-spacing-lg);
        border: none;
        border-radius: var(--mobile-btn-radius);
        background: var(--mobile-accent);
        color: #10160c;
        font-size: var(--mobile-body-size);
        font-weight: 700;
        cursor: pointer;
        transition: all var(--mobile-transition-fast);
    }

    .mobile-section-btn:active {
        opacity: 0.9;
        transform: scale(0.98);
    }

    .mobile-section-description {
        font-size: 12px;
        line-height: 1.5;
        color: var(--mobile-text-dim);
        margin: 0;
    }

    /* ─── Scroll Indicator ─── */
    .mobile-scroll-indicator {
        position: absolute;
        bottom: calc(var(--mobile-nav-height) + var(--mobile-spacing-lg));
        left: 50%;
        transform: translateX(-50%);
        font-size: 20px;
        animation: mobile-pulse 2s ease-in-out infinite;
        z-index: 2;
    }

    @keyframes mobile-pulse {
        0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
        50% { opacity: 1; transform: translateX(-50%) translateY(4px); }
    }

    /* ─── Mobile Bottom Navigation ─── */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--mobile-nav-height);
        background: rgba(10, 14, 22, 0.95);
        backdrop-filter: blur(8px);
        border-top: 1px solid rgba(198, 241, 53, 0.1);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 40;
    }

    .mobile-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: none;
        border: none;
        color: var(--mobile-text-dim);
        font-size: 10px;
        font-weight: 600;
        cursor: pointer;
        padding: var(--mobile-spacing-sm);
        transition: all var(--mobile-transition-fast);
    }

    .mobile-nav-btn.active {
        color: var(--mobile-accent);
    }

    .mobile-nav-icon {
        font-size: 20px;
        display: block;
    }

    .mobile-nav-label {
        display: block;
        letter-spacing: 0.5px;
    }

    /* ─── Mobile Utilities ─── */
    .mobile-homepage .accent {
        color: var(--mobile-accent);
    }

}

/* ════════════════════════════════════════════════════════════
   END MOBILE HOMEPAGE CSS
   ════════════════════════════════════════════════════════════ */

