@import url('https://fonts.googleapis.com/css2?family=Anton&family=DM+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    background-color: #0d0d0d;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

body.has-navbar {
    padding-top: 90px;
    justify-content: flex-start;
}

.reg-wrap {
    background: #111111;
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
    border: 1px solid #222;
}

.reg-wrap.reg-wrap-wide {
    max-width: 560px;
}

/* ── Header ── */
.reg-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}
.reg-logo-mark {
    width: 38px;
    height: 38px;
    background: #BAFD00;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.reg-logo-mark i { font-size: 22px; color: #111; }
.reg-title    { font-size: 22px; font-weight: 600; color: #fff; line-height: 1.2; }
.reg-subtitle { font-size: 14px; color: #666; margin-top: 2px; }

.reg-logo-img {
    text-align: center;
    margin-top: -20px;
}
.reg-logo-img img {
    width: 400px;
    max-width: 100%;
}

.divider { height: 1px; background: #222; margin-bottom: 28px; }

/* ── Badge ── */
.badge-accesso,
.badge-atleta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(186,253,0,.08);
    border: 1px solid rgba(186,253,0,.2);
    color: #BAFD00;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.badge-accesso i,
.badge-atleta i { font-size: 15px; }

/* ── Alert ── */
.alert {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.alert i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-danger  { background: rgba(226,75,74,.12);  border: 1px solid rgba(226,75,74,.3);  color: #f87171; }
.alert-success { background: rgba(186,253,0,.10);  border: 1px solid rgba(186,253,0,.3);  color: #BAFD00; }

/* ── Form layout ── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group.mb { margin-bottom: 14px; }
.form-group.mb-lg { margin-bottom: 24px; }

label {
    font-size: 13px;
    font-weight: 600;
    color: #BAFD00;
    letter-spacing: .07em;
    text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    padding: 10px 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    width: 100%;
}
input::placeholder { color: #444; }
input:focus {
    border-color: #BAFD00;
    box-shadow: 0 0 0 3px rgba(186,253,0,.12);
}

/* codice mattigas — testo verde */
.input-code { color: #BAFD00; letter-spacing: .06em; }
.input-code::placeholder { color: #333; letter-spacing: normal; }

.field-hint { font-size: 13px; color: #555; }

/* ── Submit ── */
.btn-login,
.btn-register {
    width: 100%;
    background: #BAFD00;
    color: #111;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    padding: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s, transform .1s;
    font-family: inherit;
}
.btn-register { margin-top: 8px; }
.btn-login i,
.btn-register i { font-size: 20px; }
.btn-login:hover,
.btn-register:hover  { background: #cbff1a; }
.btn-login:active,
.btn-register:active { transform: scale(.98); }

/* ── Menu ── */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 14px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: border-color .15s, background .15s;
}
.menu-item i:first-child {
    font-size: 20px;
    color: #BAFD00;
}
.menu-item span { flex: 1; }
.menu-item .menu-arrow {
    font-size: 18px;
    color: #555;
}
.menu-item:hover {
    border-color: #BAFD00;
    background: #1f1f1f;
}

/* ── Footer link ── */
.login-link,
.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
    color: #555;
}
.login-link a,
.register-link a { color: #BAFD00; text-decoration: none; }
.login-link a:hover,
.register-link a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 480px) {
    .reg-wrap { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; }
}

/* ── Calendario settimanale ── */
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.cal-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #BAFD00;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
}
.cal-nav-btn:hover { border-color: #BAFD00; background: #1f1f1f; }

.cal-title { text-align: center; }
.cal-title-main { font-size: 18px; font-weight: 700; color: #fff; }
.cal-title-sub { font-size: 14px; color: #666; margin-top: 2px; }

.cal-today-link {
    color: #BAFD00;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid rgba(186,253,0,.25);
    padding: 4px 12px;
    border-radius: 20px;
}
.cal-today-link:hover { text-decoration: underline; }

.cal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cal-day {
    display: flex;
    gap: 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 12px;
}
.cal-day-today {
    border-color: #BAFD00;
    background: rgba(186,253,0,.04);
}

.cal-day-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    flex-shrink: 0;
    padding-top: 2px;
}
.cal-day-name {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.cal-day-today .cal-day-name { color: #BAFD00; }
.cal-day-num {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}

.cal-day-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cal-empty {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-size: 15px;
    text-decoration: none;
    padding: 8px 0;
    transition: color .15s;
}
.cal-empty:hover { color: #BAFD00; }
.cal-empty i { font-size: 17px; }

.cal-wod-card {
    display: block;
    background: #1f1f1f;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px 12px;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.cal-wod-card:hover { border-color: #BAFD00; background: #222; }

.cal-wod-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* Il titolo deve poter troncare: su schermi stretti, senza questo,
   occupa la sua larghezza minima e spinge il badge "Completato"
   fuori dallo span, sopra le iconcine di commenti e classifica. */
.cal-wod-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cal-badge-custom {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(186,253,0,.1);
    border: 1px solid rgba(186,253,0,.25);
    color: #BAFD00;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    flex-shrink: 0;
}
.cal-badge-custom i { font-size: 13px; }

.cal-wod-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.cal-tag {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    background: #2a2a2a;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cal-add-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    padding: 4px 0;
    transition: color .15s;
}
.cal-add-more:hover { color: #BAFD00; }
.cal-add-more i { font-size: 15px; }

@media (max-width: 480px) {
    .cal-day { padding: 10px; gap: 8px; }
    .cal-day-label { min-width: 36px; }
}

/* ── Textarea & Select ── */
textarea, select {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    padding: 10px 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    width: 100%;
    resize: vertical;
}
textarea::placeholder { color: #444; }
textarea:focus, select:focus {
    border-color: #BAFD00;
    box-shadow: 0 0 0 3px rgba(186,253,0,.12);
}
select { cursor: pointer; }

/* ── Athlete checklist ── */
.athlete-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 14px;
    max-height: 220px;
    overflow-y: auto;
}
.athlete-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 400;
    color: #ddd;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    padding: 3px 0;
}
.athlete-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #BAFD00;
    cursor: pointer;
}

/* ── Vista WOD del giorno (atleta) ── */
.wod-day-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wod-empty-day {
    text-align: center;
    color: #555;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.wod-empty-day i { font-size: 34px; color: #444; }
.wod-empty-day p { font-size: 16px; }

.wod-card-full {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 18px;
}

.wod-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.wod-card-header h3 {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
}

/* Badge "completato": solo la spunta, senza scritta.
   La stringa "Completato" occupava ~85px e su schermi stretti
   spingeva le iconcine di commenti/classifica sopra il badge. */
.wod-status-done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(186,253,0,.1);
    border: 1px solid rgba(186,253,0,.25);
    color: #BAFD00;
    font-size: 13px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
}
.wod-status-done i { font-size: 14px; }

.wod-section {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #222;
}
.wod-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wod-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #BAFD00;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 6px;
}
.wod-section-title i { font-size: 16px; }

.wod-section-text {
    font-size: 15px;
    color: #ccc;
    line-height: 1.6;
}

/* ── Lista risultati ── */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 14px 16px;
}

.result-card-header {
    margin-bottom: 8px;
}
.result-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.result-date {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-top: 1px solid #222;
    font-size: 15px;
}
.result-row-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
}
.result-row-label i { font-size: 16px; color: #BAFD00; }

.result-row-value {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
}

.result-badge {
    font-size: 12px;
    font-weight: 700;
    color: #BAFD00;
    background: rgba(186,253,0,.1);
    border: 1px solid rgba(186,253,0,.25);
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

/* ── Elenco atleti (coach) ── */
.athlete-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.athlete-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 6px 6px 6px 16px;
}
.athlete-row:hover { border-color: #BAFD00; }

.athlete-row-info {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 6px 0;
    min-width: 0;
}
.athlete-row-name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.athlete-row-email {
    color: #666;
    font-size: 14px;
    margin-top: 2px;
}

.athlete-row form { flex-shrink: 0; }

.athlete-delete-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: border-color .15s, background .15s;
}
.athlete-delete-btn:hover {
    border-color: #f87171;
    background: rgba(226,75,74,.08);
}

/* ── Leaderboard ── */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px 14px;
}

.leaderboard-pos {
    font-size: 18px;
    font-weight: 700;
    color: #BAFD00;
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.leaderboard-name {
    flex: 1;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    min-width: 0;
}

.leaderboard-value {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ── WOD card con bottone classifica (coach) ── */
.cal-wod-card-wrap {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.cal-wod-card-wrap .cal-wod-card {
    flex: 1;
    min-width: 0;
}
.cal-leaderboard-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
    background: #1f1f1f;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #BAFD00;
    font-size: 18px;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.cal-leaderboard-btn:hover {
    border-color: #BAFD00;
    background: #222;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    background: #111111;
    border: none;
    border-bottom: 1px solid #222;
    border-radius: 0;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 1000;
    box-sizing: border-box;
    min-height: 74px;
}

.navbar-logo img {
    height: 58px;
    width: auto;
    display: block;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.navbar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color .15s, background .15s;
}
.navbar-link i { font-size: 18px; }
.navbar-link:hover {
    color: #BAFD00;
    background: rgba(186,253,0,.06);
}

.navbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 80px;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 80px;
    justify-content: flex-end;
}
.navbar-user i { font-size: 22px; color: #BAFD00; }
.navbar-user-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

@media (max-width: 480px) {
    .navbar { padding: 8px 10px; gap: 6px; }
    .navbar-link-text { display: none; }
    .navbar-link { padding: 8px; }
    .navbar-user span { display: none; }
}

/* ── Leaderboard: gruppi per livello ── */
.leaderboard-group-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 14px 0 8px;
}
.leaderboard-group-title:first-of-type { margin-top: 0; }
.leaderboard-group-title i { font-size: 16px; }

.leaderboard-group-elite { color: #BAFD00; }
.leaderboard-group-rx { color: #ccc; }
.leaderboard-group-scaled { color: #888; }

.leaderboard-row-podium {
    border-color: rgba(186,253,0,.25);
    background: rgba(186,253,0,.04);
}

/* ── Medagliere settimanale ── */
.medal-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.medal-table-header {
    display: grid;
    grid-template-columns: 1fr repeat(3, auto);
    gap: 10px;
    align-items: end;
    padding: 0 14px 8px;
    border-bottom: 1px solid #2a2a2a;
}

.medal-row {
    display: grid;
    grid-template-columns: 1fr repeat(3, auto);
    gap: 10px;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px 14px;
}

.medal-col-name {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.medal-col-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.medal-table-header .medal-col-group {
    gap: 6px;
}

.medal-group-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.medal-icons {
    display: flex;
    gap: 10px;
    font-size: 15px;
}

.medal-row .medal-col-group {
    flex-direction: row;
    gap: 10px;
}

.medal-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    font-size: 15px;
    font-weight: 700;
    color: #ccc;
}

@media (max-width: 600px) {
    .medal-table-header,
    .medal-row {
        grid-template-columns: 1fr repeat(3, 60px);
        gap: 4px;
        font-size: 13px;
    }
    .medal-icons { gap: 6px; font-size: 13px; }
    .medal-row .medal-col-group { gap: 6px; }
}

/* ── Link medagliere settimanale (domenica) ── */
.cal-medal-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(186,253,0,.06);
    border: 1px solid rgba(186,253,0,.2);
    color: #BAFD00;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: background .15s, border-color .15s;
}
.cal-medal-link i { font-size: 18px; }
.cal-medal-link:hover {
    background: rgba(186,253,0,.12);
    border-color: rgba(186,253,0,.4);
}

/* ── Lista record personali (profilo) ── */
.pr-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pr-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px 14px;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.pr-row:hover {
    border-color: #BAFD00;
    background: #1f1f1f;
}

.pr-name {
    flex: 1;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    min-width: 0;
}

.pr-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.pr-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #BAFD00;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}
.pr-value small {
    color: #666;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pr-arrow {
    font-size: 18px;
    color: #555;
    flex-shrink: 0;
}

/* ── Grafico storico record ── */
.record-chart-wrap {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 14px 10px 6px;
}
.record-chart {
    width: 100%;
    height: auto;
    display: block;
}
.record-chart-label {
    font-size: 11px;
    fill: #666;
    font-family: inherit;
}
.record-chart-value {
    font-size: 12px;
    font-weight: 700;
    fill: #BAFD00;
    font-family: inherit;
}

/* ── Nota nei risultati ── */
.result-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #222;
    font-size: 14px;
    color: #999;
    font-style: italic;
    line-height: 1.5;
}
.result-note i {
    color: #BAFD00;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    font-style: normal;
}

/* ── Frase descrittiva risultato settimanale ── */
.result-block {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #222;
}

.result-block-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #BAFD00;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 6px;
}
.result-block-title i { font-size: 16px; }

.result-block-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 6px;
}

.result-sentence {
    font-size: 15px;
    color: #ccc;
    line-height: 1.6;
}
.result-sentence strong {
    color: #fff;
    font-weight: 700;
}

/* ── Azioni form (salva/elimina) ── */
.form-actions {
    margin-top: 8px;
}

.btn-delete {
    width: 100%;
    background: transparent;
    color: #f87171;
    border: 1px solid rgba(226,75,74,.3);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s, border-color .15s;
    font-family: inherit;
}
.btn-delete i { font-size: 19px; }
.btn-delete:hover {
    background: rgba(226,75,74,.08);
    border-color: #f87171;
}

/* ── Result card cliccabile (storico record) ── */
.result-card-link {
    display: block;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.result-card-link:hover {
    border-color: #BAFD00;
    background: #1f1f1f;
}
.result-card-link .result-row-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Stato inserimento score (coach) ── */
.athlete-status-group {
    margin-bottom: 14px;
}

.athlete-status-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}
.athlete-status-label i { font-size: 16px; }
.athlete-status-pending { color: #f0a64a; }
.athlete-status-done { color: #BAFD00; }

.athlete-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.athlete-status-chip {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 14px;
}
.athlete-status-chip-pending {
    background: rgba(240,166,74,.1);
    border: 1px solid rgba(240,166,74,.25);
    color: #f0a64a;
}
.athlete-status-chip-done {
    background: rgba(186,253,0,.06);
    border: 1px solid rgba(186,253,0,.2);
    color: #999;
}

/* ── YouTube embed ── */
.yt-embed-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.yt-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* ── Sezione commenti ── */
.commenti-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.commenti-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.commento-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px 14px;
}
.commento-mio {
    border-color: rgba(186,253,0,.2);
    background: rgba(186,253,0,.03);
}

.commento-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.commento-autore {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
    color: #BAFD00;
}
.commento-autore i { font-size: 16px; }

.commento-data {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    flex-shrink: 0;
}

.commento-delete-btn {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 15px;
    padding: 0;
    line-height: 1;
    transition: color .15s;
}
.commento-delete-btn:hover { color: #f87171; }

.commento-testo {
    font-size: 15px;
    color: #ccc;
    line-height: 1.6;
}

.commento-form { margin-top: 8px; }

.commento-input-wrap {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.commento-input-wrap textarea {
    flex: 1;
    resize: none;
    min-height: 44px;
}

.commento-submit-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #BAFD00;
    color: #111;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.commento-submit-btn:hover { background: #cbff1a; }

/* ── Sezione commenti ── */
.commenti-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #222;
}
.commenti-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.commento-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px 14px;
}
.commento-mio {
    border-color: rgba(186,253,0,.2);
    background: rgba(186,253,0,.03);
}
.commento-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.commento-autore {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
    color: #BAFD00;
}
.commento-autore i { font-size: 16px; }
.commento-data {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    flex-shrink: 0;
}
.commento-delete-btn {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 15px;
    padding: 0;
    line-height: 1;
    transition: color .15s;
}
.commento-delete-btn:hover { color: #f87171; }
.commento-testo {
    font-size: 15px;
    color: #ccc;
    line-height: 1.6;
}
.commento-form { margin-top: 8px; }
.commento-input-wrap {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.commento-input-wrap textarea {
    flex: 1;
    resize: none;
    min-height: 44px;
}
.commento-submit-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #BAFD00;
    color: #111;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.commento-submit-btn:hover { background: #cbff1a; }

/* ── Like commenti ── */
.commento-footer {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #222;
}
.commento-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #555;
    font-size: 15px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: color .15s, background .15s;
    font-family: inherit;
}
.commento-like-btn:hover {
    color: #f87171;
    background: rgba(248,113,113,.08);
}
.commento-like-btn i { font-size: 17px; }
.commento-like-attivo {
    color: #f87171;
}
.commento-like-attivo i { color: #f87171; }

/* ── Like count button e modal ── */
.commento-like-count {
    background: none;
    border: none;
    color: #f87171;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background .15s;
    font-family: inherit;
}
.commento-like-count:hover {
    background: rgba(248,113,113,.1);
    text-decoration: underline;
}

.like-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.like-modal-box {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    overflow: hidden;
}
.like-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #222;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.like-modal-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    transition: color .15s;
}
.like-modal-close:hover { color: #fff; }
.like-modal-list {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}
.like-modal-nome {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #ccc;
}
.like-modal-nome i { color: #BAFD00; font-size: 18px; }
