/* Matchmaking, tournaments, court calendar, coaches and verified courts. */

.stage-hero {
    margin: 0 0 16px;
    padding: 32px 26px 24px;
    border-radius: 24px;
    color: #fff;
    background:
        linear-gradient(118deg, rgba(6, 20, 15, .94), rgba(18, 92, 68, .72)),
        url("/assets/tennis-court-hero.jpg") center 38% / cover;
}

.stage-hero h1,
.stage-hero h2,
.stage-hero p,
.stage-kicker,
.stage-back,
.stage-metrics,
.tour-feature,
.tour-feature h2,
.tour-feature p,
.coach-plate.is-lead,
.coach-plate.is-lead h2,
.coach-plate.is-lead p,
.coach-plate.is-lead a,
.coach-plate.is-lead dt,
.coach-plate.is-lead dd {
    color: #fff;
}

.stage-kicker,
.stage-back,
.board-kicker {
    margin: 0 0 8px;
    color: #f3ff9a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.stage-back {
    display: inline-block;
    text-decoration: none;
}

.stage-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -.03em;
}

.stage-hero p,
.tour-feature p {
    max-width: 640px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .9);
}

.stage-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 18px;
    font-size: 14px;
}

.stage-metrics strong,
.tour-meter strong {
    color: #f3ff9a;
    font-size: 26px;
    font-variant-numeric: tabular-nums;
}

.stage-actions,
.ticket-top,
.slot-line,
.offer-row,
.court-filter,
.score-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.stage-actions {
    margin-top: 18px;
}

.board-feature {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}

.board-feature h2,
.day-heading,
.ticket-panel h2,
.venue-card h2,
.coach-plate h2,
.tour-card h2,
.stage-card h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.02em;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.feature-hit {
    display: grid;
    gap: 8px;
    min-height: 112px;
    padding: 14px;
    border-radius: 16px;
    color: #fff;
    background: #0c2b20;
    text-decoration: none;
}

.feature-hit time strong,
.ticket-time strong,
.score-mid strong {
    display: block;
    font-size: 28px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
    line-height: 1;
}

.feature-hit h3,
.feature-hit p,
.feature-hit span {
    margin: 0;
    color: rgba(255, 255, 255, .86);
}

.feature-hit h3 {
    color: #fff;
    font-size: 16px;
}

.ticket-list,
.tour-grid,
.coach-grid,
.stage-grid,
.venue-list,
.score-list,
.day-board,
.offer-stack {
    display: grid;
    gap: 12px;
}

.tour-grid,
.coach-grid,
.stage-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.match-ticket,
.tour-card,
.stage-card,
.coach-plate,
.venue-card,
.court-block,
.offer-row,
.score-row,
.roster-row {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    color: inherit;
}

.match-ticket {
    display: grid;
    grid-template-columns: 112px 1fr;
    overflow: hidden;
}

.ticket-time {
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 16px 12px;
    background: #0c2b20;
    color: #fff;
    text-align: center;
}

.ticket-time span,
.score-mid span,
.coach-plate .stage-note,
.stage-meta,
.stage-note {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
}

.ticket-time span {
    color: rgba(255, 255, 255, .78);
}

.ticket-body,
.tour-card,
.stage-card,
.coach-plate,
.court-block,
.venue-card {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.ticket-body > .btn,
.coach-plate .btn,
.venue-main > .btn,
.stage-card > .btn,
.stage-card form,
.offer-row form {
    justify-self: start;
    width: auto;
}

.ticket-top {
    justify-content: space-between;
    align-items: flex-start;
}

.stage-chip,
.fee-chip,
.level-chip {
    display: inline-flex;
    width: fit-content;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--lime);
    color: #06140f;
    font-size: 12px;
    font-weight: 800;
}

.fee-chip,
.level-chip,
.chip-done {
    background: var(--surface-tint);
    color: var(--ink-800);
}

.chip-live {
    background: #ef6b42;
    color: #fff;
}

.stage-person {
    display: flex;
    gap: 10px;
    align-items: center;
}

.stage-person a,
.coach-plate h2 a,
.tour-card,
.feature-hit:hover {
    color: var(--ink-900);
    text-decoration: none;
}

.tour-card:hover,
.coach-plate:hover,
.match-ticket:hover {
    border-color: var(--green-600);
}

.apply-fold {
    border-top: 1px solid var(--line);
    padding-top: 8px;
}

.apply-fold summary {
    cursor: pointer;
    font-weight: 800;
}

.apply-box,
.book-box {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.tour-feature {
    display: grid;
    grid-template-columns: 1.4fr .7fr;
    gap: 18px;
    align-items: end;
    margin: 0 0 16px;
    padding: 28px 24px;
    border-radius: 24px;
    text-decoration: none;
    background:
        linear-gradient(120deg, rgba(7, 26, 20, .92), rgba(23, 106, 75, .78)),
        url("/assets/tennis-court-hero.jpg") center 60% / cover;
}

.tour-feature h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.tour-meter {
    display: grid;
    gap: 8px;
    align-content: end;
}

.meter {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
}

.meter > span {
    display: block;
    width: 0;
    height: 100%;
    background: #f3ff9a;
}

.meter-ink {
    background: var(--surface-tint);
}

.meter-ink > span {
    background: var(--green-700);
}

.meter-10 > span { width: 10%; }
.meter-20 > span { width: 20%; }
.meter-30 > span { width: 30%; }
.meter-40 > span { width: 40%; }
.meter-50 > span { width: 50%; }
.meter-60 > span { width: 60%; }
.meter-70 > span { width: 70%; }
.meter-80 > span { width: 80%; }
.meter-90 > span { width: 90%; }
.meter-100 > span { width: 100%; }

.roster {
    display: grid;
    gap: 8px;
}

.roster-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
}

.roster-row h3,
.offer-row h3,
.court-block h3 {
    margin: 0;
    font-size: 17px;
}

.roster-seed {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--surface-tint);
    font-weight: 800;
}

.score-row {
    display: grid;
    grid-template-columns: 1fr 180px 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px;
}

.score-side {
    display: grid;
    gap: 2px;
}

.score-side.is-end {
    text-align: right;
}

.score-side strong {
    font-size: 18px;
}

.score-side.is-winner strong {
    color: var(--green-700);
}

.score-mid {
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
}

.day-rail {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
}

.day-pill {
    display: grid;
    flex: 0 0 72px;
    justify-items: center;
    gap: 2px;
    min-height: 78px;
    padding: 8px 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--ink-900);
    font: inherit;
    cursor: pointer;
}

.day-pill strong {
    font-size: 22px;
    line-height: 1;
}

.day-pill.is-on,
.day-pill[aria-selected="true"] {
    border-color: transparent;
    background: #0c2b20;
    color: #fff;
}

.day-stage.is-enhanced .day-board {
    display: none;
}

.day-stage.is-enhanced .day-board.is-on {
    display: grid;
}

.court-block header p,
.coach-stats,
.venue-card p,
.stage-card p,
.tour-card p {
    margin: 0;
}

.slot-table {
    display: grid;
    gap: 8px;
}

.slot-line {
    display: grid;
    grid-template-columns: 108px 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--surface-soft);
}

.slot-line time {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.slot-price {
    margin: 0;
    text-align: right;
}

.slot-price strong {
    display: block;
    font-size: 18px;
}

.price-was {
    color: var(--text-soft);
    text-decoration: line-through;
}

.side-boards {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 12px;
    align-items: start;
}

.offer-row {
    justify-content: space-between;
    padding: 14px;
}

.coach-plate {
    grid-template-columns: 64px 1fr;
    align-items: start;
}

.coach-plate.is-lead {
    grid-template-columns: 88px 1fr;
    margin-bottom: 12px;
    padding: 22px;
    border: 0;
    background:
        linear-gradient(135deg, rgba(8, 28, 20, .94), rgba(23, 106, 75, .88)),
        url("/assets/tennis-court-hero.jpg") center / cover;
}

.coach-mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--lime);
    color: #06140f;
    font-size: 28px;
    font-weight: 800;
}

.coach-plate.is-lead .coach-mark {
    width: 88px;
    height: 88px;
    font-size: 36px;
}

.coach-lead {
    max-width: 680px;
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.6;
}

.coach-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 8px 0;
}

.coach-stats div {
    display: grid;
    gap: 2px;
}

.coach-stats dt {
    color: var(--text-soft);
    font-size: 12px;
}

.coach-stats dd {
    margin: 0;
    font-weight: 800;
}

.coach-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.court-filter {
    align-items: end;
    margin-bottom: 14px;
}

.court-filter .form-group {
    min-width: 180px;
    margin: 0;
}

.venue-card {
    grid-template-columns: 1.3fr .7fr;
    gap: 16px;
}

.venue-main,
.venue-quotes {
    display: grid;
    gap: 8px;
    align-content: start;
}

.venue-quotes {
    padding: 14px;
    border-radius: 16px;
    background: var(--surface-soft);
}

.venue-quotes blockquote {
    margin: 0;
}

.venue-quotes p {
    margin: 0;
}

.quote-score {
    font-weight: 800;
    letter-spacing: .08em;
}

.quote-score span,
.venue-quotes footer {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

body.is-android-app .stage-hero,
body.is-android-app .tour-feature {
    margin-right: 0;
    margin-left: 0;
    border-radius: 0;
}

@media (max-width: 860px) {
    .feature-row,
    .side-boards,
    .tour-feature,
    .venue-card,
    .score-row,
    .slot-line {
        grid-template-columns: 1fr;
    }

    .score-side.is-end,
    .slot-price {
        text-align: left;
    }
}

@media (max-width: 720px) {
    .stage-hero,
    .tour-feature {
        margin-right: 12px;
        margin-left: 12px;
    }

    body.is-android-app .stage-hero,
    body.is-android-app .tour-feature {
        margin-right: 0;
        margin-left: 0;
    }

    .match-ticket,
    .coach-plate,
    .coach-plate.is-lead {
        grid-template-columns: 1fr;
    }

    .ticket-time {
        grid-template-columns: auto auto auto;
        justify-content: start;
        text-align: left;
    }

    .ticket-time strong {
        font-size: 22px;
    }
}
