/**
 * Stili frontend Tornei Padel — allineati al tema dark Padel Club.
 */
:root {
    --tp-court: #c8ff00;
    --tp-court-dark: #0b101b;
    --tp-court-light: #1a2233;
    --tp-line: rgba(255, 255, 255, 0.12);
    --tp-ball: #c8ff00;
    --tp-ball-shadow: #a2d400;
    --tp-navy: #f2f4f8;
    --tp-surface: #0b101b;
    --tp-card: #141a28;
    --tp-text: #f2f4f8;
    --tp-muted: #8b93a7;
    --tp-radius: 10px;
    --tp-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    --tp-font: "Outfit", system-ui, sans-serif;
    --tp-content-width: 92%;
}

.tp-page,
.tp-shortcode {
    font-family: var(--tp-font);
    color: var(--tp-text);
    width: min(var(--tp-content-width), calc(100% - 2rem));
    max-width: none;
    margin-inline: auto;
}

/* Shortcode dentro pagina WordPress già allargata dal tema. */
.tp-app-page .pc-container .tp-shortcode {
    width: 100%;
    margin-inline: 0;
}

.tp-page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #070b14 0%, #141a28 55%, #1a2233 100%);
    color: #fff;
    border-radius: var(--tp-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.tp-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 49%, var(--tp-line) 49%, var(--tp-line) 51%, transparent 51%),
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,.06) 39px, rgba(255,255,255,.06) 40px);
    opacity: 0.35;
    pointer-events: none;
}

.tp-page-header h1 {
    position: relative;
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tp-page-header p,
.tp-breadcrumb {
    position: relative;
    margin: 0;
    opacity: 0.9;
}

.tp-page-header__dates,
.tp-page-header .tp-reg-dates {
    margin-top: 0.65rem;
    opacity: 0.85;
}

.tp-page-header__time,
.tp-page-header .tp-tournament-time {
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
    opacity: 0.85;
    font-size: 0.95rem;
}

.tp-breadcrumb a {
    color: var(--tp-ball);
    text-decoration: none;
}

.tp-live-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.35rem 0.85rem;
    background: rgba(0,0,0,.2);
    border-radius: 999px;
    font-size: 0.85rem;
}

.tp-live-pulse::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    animation: tp-pulse 1.5s ease infinite;
}

.tp-live-pulse.is-error::before {
    background: #ffb347;
    animation: none;
}

@keyframes tp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.tp-tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.tp-tournament-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: var(--tp-card);
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow);
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.tp-tournament-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tp-tournament-card__poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(160deg, #0d1320 0%, #1a2233 100%);
}

.tp-tournament-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tp-tournament-card:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 255, 0, 0.45);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.tp-tournament-card h2,
.tp-tournament-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: var(--tp-navy);
}

.tp-tournament-card__body .tp-btn {
    margin-top: auto;
    align-self: flex-start;
}

.tp-tournament-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.2rem 0.6rem;
    background: #ff4757;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 4px;
}

.tp-tournament-dates {
    color: var(--tp-muted);
    font-size: 0.9rem;
    margin: 0 0 0.2rem;
}

.tp-tournament-time {
    color: var(--tp-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.tp-btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    background: var(--tp-ball);
    color: #0b101b !important;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.tp-btn:hover {
    background: #e0ff66;
}

.tp-btn--ghost {
    background: transparent;
    color: var(--tp-text) !important;
    border: 2px solid rgba(255, 255, 255, 0.28);
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
}

.tp-btn--ghost:hover {
    background: rgba(200, 255, 0, 0.08);
    color: var(--tp-ball) !important;
}

.tp-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.tp-live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.tp-panel {
    background: var(--tp-card);
    border-radius: var(--tp-radius);
    padding: 1.5rem;
    box-shadow: var(--tp-shadow);
    border-top: 4px solid var(--tp-ball);
}

.tp-panel h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--tp-court-dark);
}

.tp-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tp-standings-table th,
.tp-standings-table td {
    padding: 0.55rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid #e8f0f2;
}

.tp-standings-table th {
    color: var(--tp-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tp-standings-table tbody tr:hover {
    background: var(--tp-surface);
}

.tp-match-feed {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-match-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid #e8f0f2;
}

.tp-match-item--live {
    border-left: 3px solid #ff4757;
    padding-left: 0.75rem;
    margin-left: -0.75rem;
}

.tp-match-item--finished {
    opacity: 0.85;
}

.tp-match-teams {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.tp-match-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.tp-match-meta__left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
}

.tp-btn--segui {
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.4rem 0.9rem;
    background: var(--tp-court);
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.tp-btn--segui:hover {
    background: var(--tp-court-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

/* ── Pagina singola partita (vista campo) ─ */
.tp-page-header--compact {
    margin-bottom: 1rem;
}

.tp-match-live__headline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.5rem;
}

.tp-match-live__round {
    margin: 0;
    width: 100%;
    font-size: 0.9rem;
    opacity: 0.9;
}

.tp-match-live__headline .tp-match-court,
.tp-match-live__headline .tp-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1;
}

.tp-match-live__headline .tp-match-court {
    background: #fff;
    color: var(--tp-court-dark);
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tp-match-live__headline .tp-status-badge--live {
    background: rgba(232, 197, 71, 0.18);
    color: var(--tp-ball);
    border: 2px solid var(--tp-ball);
    box-shadow: 0 0 14px rgba(232, 197, 71, 0.35);
    animation: tp-pulse-badge 1.5s ease infinite;
}

.tp-match-live__headline .tp-status-badge--scheduled {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.45);
}

.tp-match-live__headline .tp-status-badge--finished {
    background: rgba(255, 255, 255, 0.92);
    color: #2e7d32;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.tp-status-badge--live {
    background: #ffe8ea;
    color: #ff4757;
}

.tp-status-badge--finished {
    background: #e8f5e9;
    color: #2e7d32;
}

.tp-match-court-view {
    position: relative;
    min-height: min(72vh, 720px);
    border-radius: var(--tp-radius);
    overflow: hidden;
    box-shadow: var(--tp-shadow);
}

.tp-match-court-view__backdrop,
.tp-match-court-view__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tp-match-court-view__image {
    object-fit: cover;
    object-position: center;
}

.tp-match-court-view__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 47, 56, 0.5) 0%, rgba(8, 47, 56, 0.12) 42%, rgba(8, 47, 56, 0.12) 58%, rgba(8, 47, 56, 0.5) 100%),
        linear-gradient(180deg, rgba(8, 47, 56, 0.3) 0%, transparent 35%, transparent 65%, rgba(8, 47, 56, 0.3) 100%);
}

.tp-match-court-view__overlay {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    min-height: min(72vh, 720px);
    height: 100%;
}

.tp-match-court-view__half {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
}

.tp-match-court-view__half--left {
    grid-column: 1;
    justify-content: center;
    padding-right: 2.5rem;
}

.tp-match-court-view__half--right {
    grid-column: 2;
    justify-content: center;
    padding-left: 2.5rem;
}

.tp-match-court-view__team {
    text-align: center;
    color: #fff;
    max-width: 100%;
    width: min(100%, 320px);
}

.tp-match-court-view__team-name {
    margin: 0 0 0.35rem;
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.tp-match-court-view__players {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    opacity: 0.92;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.tp-match-court-view__sets {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tp-match-court-view__set-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.45rem 0.7rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--tp-court-dark);
    border-radius: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    font-family: ui-monospace, monospace;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tp-match-court-view__net {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.tp-match-court-view__score-total {
    padding: 0.5rem 1.25rem;
    background: rgba(232, 197, 71, 0.95);
    color: var(--tp-navy);
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: ui-monospace, monospace;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.tp-match-court-view--live .tp-match-court-view__score-total {
    animation: tp-pulse-badge 1.5s ease infinite;
}

.tp-match-court {
    padding: 0.15rem 0.55rem;
    background: rgba(26, 122, 140, 0.12);
    border-radius: 4px;
    font-weight: 600;
    color: var(--tp-court-dark);
    font-size: 0.75rem;
}

.tp-match-time {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tp-muted);
}

.tp-status-badge {
    padding: 0.15rem 0.5rem;
    background: var(--tp-surface);
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--tp-muted);
}

.tp-match-item--live .tp-status-badge {
    background: #ffe8ea;
    color: #ff4757;
    animation: tp-pulse-badge 1.5s ease infinite;
}

@keyframes tp-pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.tp-match-winner {
    font-size: 0.85rem;
    color: var(--tp-court-dark);
    font-weight: 600;
}

.tp-match-phase-title {
    margin: 1.25rem 0 0.75rem;
    font-size: 0.95rem;
    color: var(--tp-court-dark);
    font-weight: 700;
}

.tp-match-phase-title:first-of-type {
    margin-top: 0;
}

.tp-match-round {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tp-muted);
    margin-bottom: 0.25rem;
}

.tp-match-score {
    font-family: ui-monospace, monospace;
    color: var(--tp-court-dark);
    font-weight: 600;
}

.tp-empty,
.tp-empty-sm {
    color: var(--tp-muted);
    text-align: center;
    padding: 2rem;
}

.tp-group-standings + .tp-group-standings {
    margin-top: 1.5rem;
}

.tp-group-standings h3 {
    font-size: 0.95rem;
    color: var(--tp-court);
    margin: 0 0 0.75rem;
}

/* Ranking ELO — badge livelli */
.tp-ranking__lead {
    margin: 0 0 1.25rem;
    color: var(--tp-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tp-ranking__footnote {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: var(--tp-muted);
    line-height: 1.45;
}

.tp-ranking__table-wrap {
    overflow-x: auto;
}

.tp-rank-player-name {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-width: 0;
}

.tp-rank-player-name__text {
    font-weight: 600;
}

.tp-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    border: 1px solid transparent;
    white-space: nowrap;
    vertical-align: middle;
}

.tp-rank-badge--rookie {
    color: #e8eefc;
    background: linear-gradient(145deg, #5a6478, #3d4556);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tp-rank-badge--bronze {
    color: #2a1808;
    background: linear-gradient(145deg, #e8a86a, #a66b32);
    border-color: rgba(255, 220, 160, 0.35);
    box-shadow: 0 1px 8px rgba(166, 107, 50, 0.35);
}

.tp-rank-badge--silver {
    color: #1a2230;
    background: linear-gradient(145deg, #f0f4fa, #9aa8bc);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 8px rgba(154, 168, 188, 0.3);
}

.tp-rank-badge--gold {
    color: #2a1f05;
    background: linear-gradient(145deg, #ffe566, #c9a227);
    border-color: rgba(255, 240, 160, 0.5);
    box-shadow: 0 1px 10px rgba(201, 162, 39, 0.4);
}

.tp-rank-badge--platinum {
    color: #e8f7ff;
    background: linear-gradient(145deg, #5ce8ff, #2a7fd4);
    border-color: rgba(180, 240, 255, 0.45);
    box-shadow: 0 1px 12px rgba(42, 127, 212, 0.45);
}

.tp-rank-badge--elite {
    color: #ffe8f0;
    background: linear-gradient(135deg, #7c2d6a 0%, #4a1028 45%, #1a0818 100%);
    border-color: rgba(255, 120, 160, 0.35);
    box-shadow: 0 2px 14px rgba(124, 45, 106, 0.45);
}

.tp-rank-levels-legend {
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(26, 122, 140, 0.15);
    border-radius: var(--tp-radius);
    background: var(--tp-card);
    box-shadow: var(--tp-shadow);
}

.tp-rank-levels-legend__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--tp-court-dark);
}

.tp-rank-levels-legend__lead {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
    color: var(--tp-muted);
}

.tp-rank-levels-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px 14px;
}

.tp-rank-levels-grid__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(26, 122, 140, 0.12);
    background: var(--tp-surface);
}

.tp-rank-levels-grid__range {
    font-size: 13px;
    font-weight: 700;
    color: var(--tp-text);
}

.tp-rank-levels-grid__meaning {
    font-size: 12px;
    color: var(--tp-muted);
    line-height: 1.35;
}

.tp-ranking-table__player {
    min-width: 10rem;
}

.tp-ranking-table__badge {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
}

.tp-ranking-table .tp-rank-player-name__text,
.tp-ranking-table__player-link {
    font-weight: 500;
}

.tp-ranking-table__player-link {
    color: inherit;
    text-decoration: none;
}

.tp-ranking-table__player-link:hover,
.tp-ranking-table__player-link:focus-visible {
    color: var(--tp-ball);
    text-decoration: underline;
}

/* Pagina pubblica statistiche giocatore */
.tp-player-page__elo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0.5rem 0 0;
    font-size: 1.15rem;
}

.tp-player-page__elo strong {
    font-size: 1.75rem;
    font-weight: 800;
}

.tp-player-page__rank {
    color: var(--tp-muted);
    font-size: 0.95rem;
}

.tp-player-stats,
.tp-player-chart,
.tp-player-history {
    margin: 1.5rem 0 0;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(200, 255, 0, 0.12);
    border-radius: var(--tp-radius);
    background: var(--tp-card);
    box-shadow: var(--tp-shadow);
}

.tp-player-stats__title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    color: var(--tp-text);
}

.tp-player-stat-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.tp-player-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(200, 255, 0, 0.1);
    background: var(--tp-surface);
}

.tp-player-stat__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tp-muted);
}

.tp-player-stat__value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tp-text);
}

.tp-player-stat__hint {
    font-size: 0.8rem;
    color: var(--tp-muted);
}

.tp-player-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 1rem;
}

.tp-player-form__label {
    font-size: 0.85rem;
    color: var(--tp-muted);
}

.tp-player-form__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
}

.tp-player-form__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
}

.tp-player-form__pill--win {
    background: rgba(200, 255, 0, 0.18);
    color: var(--tp-ball);
}

.tp-player-form__pill--loss {
    background: rgba(255, 80, 100, 0.18);
    color: #ff8a9a;
}

.tp-player-chart__wrap {
    max-width: 36rem;
}

.tp-player-chart__canvas {
    display: block;
    width: 100%;
    height: 120px;
}

.tp-delta--up {
    color: #9dff7a;
}

.tp-delta--down {
    color: #ff8a9a;
}

/* Iscrizione torneo */
.tp-reg-panel {
    max-width: 36rem;
    margin: 0 auto 2.5rem;
    overflow: visible;
}

.tp-reg-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--tp-muted);
}

.tp-reg-badge--open,
.tp-reg-badge--live {
    color: var(--tp-ball);
    border-color: rgba(200, 255, 0, 0.35);
    background: rgba(200, 255, 0, 0.1);
}

.tp-reg-badge--full {
    color: #ffb4a2;
    border-color: rgba(255, 180, 162, 0.4);
}

.tp-reg-dates,
.tp-reg-message,
.tp-reg-meta {
    color: var(--tp-muted);
    margin: 0.35rem 0;
}

.tp-registration .tp-tournament-time {
    color: var(--tp-muted);
    margin: 0.15rem 0 0.5rem;
    font-size: 0.95rem;
}

.tp-reg-notice {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.tp-reg-notice--ok {
    background: rgba(200, 255, 0, 0.12);
    color: var(--tp-ball);
}

.tp-reg-notice--err {
    background: rgba(255, 80, 100, 0.12);
    color: #ff8a9a;
}

.tp-reg-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.tp-reg-field {
    display: grid;
    gap: 0.35rem;
}

.tp-reg-field label {
    font-weight: 600;
    font-size: 0.9rem;
}

.tp-reg-field input[type="text"],
.tp-reg-field input[type="email"],
.tp-reg-field input[type="tel"] {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.25);
    color: var(--tp-text);
}

.tp-reg-field input[readonly] {
    opacity: 0.75;
}

.tp-reg-field .description {
    margin: 0;
    font-size: 0.8rem;
    color: var(--tp-muted);
}

.tp-reg-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .tp-reg-field-row {
        grid-template-columns: 1fr;
    }
}

.tp-reg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tp-reg-mine {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tp-tournament-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.tp-tournament-card__status {
    align-self: flex-start;
    margin-bottom: 0.75rem;
}

.tp-player-autocomplete {
    position: relative;
    width: 100%;
}

.tp-player-autocomplete__input {
    width: 100%;
    min-width: 0;
}

.tp-player-autocomplete__list {
    position: absolute;
    z-index: 100;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #c3d9de;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(12, 34, 51, 0.18);
    max-height: 240px;
    overflow-y: auto;
}

.tp-player-autocomplete__option,
.tp-player-autocomplete__status {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tp-player-autocomplete__option:hover,
.tp-player-autocomplete__option.is-active {
    background: #eef8fa;
}

.tp-player-autocomplete__name {
    font-weight: 600;
    color: #0c2233;
    line-height: 1.3;
}

.tp-player-autocomplete__meta {
    font-size: 11px;
    color: #5a7a86;
}

.tp-player-autocomplete__status {
    cursor: default;
    color: #5a7a86;
    font-size: 12px;
}
