.panel-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 14px 0 6px;
}

.panel-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    color: #1a0a0c;
    background: #fff;
    border: 1px solid rgba(210, 31, 33, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.panel-nav__link:hover {
    filter: brightness(1.03);
}

.panel-nav__link--active {
    background: linear-gradient(180deg, #c41828 0%, #8b0000 100%);
    color: #fff;
    border-color: #6d0a14;
}

.panel-nav--public .panel-nav__link {
    color: #1a0a0c;
}

.semanal-help {
    margin: 0 0 14px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.45;
}

.hipodromo-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.hipodromo-days-grid label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 4px;
    color: #333;
}

.hipodromo-days-grid input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.semanal-howto {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff8e8;
    border: 1px solid #e6c36a;
    color: #3d2a0a;
    font-size: 0.95rem;
    line-height: 1.5;
}

.day-tabs-label {
    margin: 12px 0 6px;
    font-weight: 800;
    color: #8b0000;
    font-size: 1rem;
}

.day-tabs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
    padding: 12px;
    border-radius: 12px;
    background: #f4eeeb;
    border: 2px dashed rgba(210, 31, 33, 0.35);
}

.day-tab {
    padding: 10px 18px !important;
    border-radius: 999px !important;
    border: 2px solid #c9b8b0 !important;
    background: #fff !important;
    color: #333 !important;
    font-weight: 800 !important;
    cursor: pointer;
    min-width: 6.5rem;
}

.day-tab--active {
    background: linear-gradient(180deg, #c41828 0%, #8b0000 100%) !important;
    color: #fff !important;
    border-color: #6d0a14 !important;
    box-shadow: 0 2px 10px rgba(139, 0, 0, 0.35);
}

.day-hip-banner {
    margin: 0 0 12px;
    font-weight: 600;
    color: #5c3a32;
}

.semanal-edit-wrap {
    overflow-x: auto;
}

#semanal-players-table input[type="number"],
#semanal-players-table input[type="text"],
#semanal-races-table input {
    width: 100%;
    min-width: 3.2rem;
    padding: 8px;
    box-sizing: border-box;
}

.day-pts-cell {
    font-weight: 700;
    background: #f4eeeb;
}

.day-empty-row {
    opacity: 0.72;
}

.day-empty-cell {
    color: #9a8f88 !important;
    background: #f0ece9 !important;
}

.semanal-week-label {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ps-red-dark, #8b0000);
    min-height: 1.5rem;
    margin-bottom: 6px;
}

.hipodromo-days-public {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 10px 0 4px;
}

.hip-chip {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #2a1510;
    font-size: 0.85rem;
    border: 1px solid rgba(210, 31, 33, 0.25);
}

/* Podio semanal embebido en la polla del día — una fila visible, no oculta */
.weekly-podium-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(210, 31, 33, 0.28);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #3a322e;
    font-size: 0.9rem;
    line-height: 1.35;
}

.weekly-podium-strip__label {
    font-weight: 800;
    color: #8b0000;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.weekly-podium-line {
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 4px;
    color: #444;
}

.weekly-podium-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-weight: 600;
}

.weekly-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    min-width: 1.35rem;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.weekly-medal--1 {
    background: linear-gradient(160deg, #fffef5, #ffd700 45%, #e6a800);
    color: #4a3500;
    box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.55), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.weekly-medal--2 {
    background: linear-gradient(165deg, #ffffff, #d8dee8 42%, #8f98a8);
    color: #1a1f26;
    box-shadow: 0 0 0 2px rgba(118, 128, 145, 0.65), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.weekly-medal--3 {
    background: linear-gradient(165deg, #fdf8f0, #e8b88c 38%, #9b5c28);
    color: #2c1507;
    box-shadow: 0 0 0 2px rgba(168, 102, 54, 0.65), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.weekly-podium-inline i {
    font-style: normal;
    font-weight: 700;
    opacity: 0.8;
    font-size: 0.84rem;
}

.weekly-podium-sep {
    margin: 0 4px;
    opacity: 0.4;
}

.weekly-podium-strip__link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    background: linear-gradient(180deg, #c41828 0%, #8b0000 100%);
    border: 1px solid #6d0a14;
    border-radius: 8px;
    padding: 8px 16px;
    min-height: 2.35rem;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.25);
}

.weekly-podium-strip__link:hover {
    filter: brightness(1.06);
    color: #fff;
}

@media (max-width: 640px) {
    .weekly-podium-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }

    .weekly-podium-line {
        flex: 1 1 auto;
        justify-content: flex-start;
        row-gap: 8px;
    }

    .weekly-podium-strip__link {
        width: 100%;
        min-height: 2.6rem;
    }
}

.semanal-hint-tap {
    margin: 0 0 10px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
}

.day-pts-cell {
    position: relative;
    user-select: none;
    white-space: nowrap;
}

.day-pts-cell--today {
    background: rgba(210, 31, 33, 0.08) !important;
    font-weight: 800;
}

.day-pts-tap {
    cursor: pointer;
}

.day-pts-tap:hover,
.day-pts-tap--open {
    background: rgba(210, 31, 33, 0.12) !important;
}

.day-horses-peek {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 3px;
    width: 1.05rem;
    height: 1.05rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    color: #6a5a54;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    opacity: 0.72;
}

.day-horses-peek:hover,
.day-pts-tap--open .day-horses-peek {
    opacity: 1;
    background: rgba(210, 31, 33, 0.18);
    color: #8b0000;
}

.player-day-detail-row td {
    background: #f3f0ed !important;
    padding: 6px 10px !important;
    text-align: left !important;
    border-bottom: 1px solid #e0d8d4;
}

.player-day-detail-row--today td {
    background: #faf6f0 !important;
}

.player-day-detail {
    color: #555;
    font-size: 0.82rem;
    line-height: 1.35;
}

/* Una sola línea: nombre · día + chips de caballos (scroll horizontal si no caben) */
.player-day-detail--oneline {
    display: block;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    line-height: 1.6;
}

.player-day-detail__who {
    display: inline;
    color: #6b3a2e;
    margin-right: 6px;
}

.player-day-detail__who strong {
    color: #6b3a2e;
    font-size: 0.82rem;
}

.player-day-detail__hoy {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8b0000;
    opacity: 0.85;
}

.player-day-detail__empty {
    display: inline;
    opacity: 0.65;
    font-size: 0.78rem;
}

.pick-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.pick-chip-row--inline {
    display: inline;
    margin-top: 0;
    white-space: nowrap;
}

.pick-chip {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 6px;
    background: #e8e4e0;
    color: #444;
    font-size: 0.72rem;
    margin-right: 4px;
    vertical-align: middle;
}

.pick-chip b {
    color: #222;
}

.pick-chip i {
    font-style: normal;
    opacity: 0.75;
    margin-left: 2px;
}

.pick-chip--hit {
    background: #e7f6ea;
    color: #1e5c2f;
    box-shadow: inset 0 0 0 1px rgba(46, 125, 50, 0.25);
}

.semanal-official-results {
    margin: 18px 0 10px;
    padding: 12px 14px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #6a6560;
}

.semanal-official-results__title {
    margin: 0 0 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #7a716a;
    letter-spacing: 0.02em;
}

.official-day {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.official-day:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.official-day--empty {
    opacity: 0.7;
}

.official-day__head {
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: #5c534f;
}

.official-day__muted {
    color: #9a9088;
    font-weight: 500;
}

.official-day__races {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.official-race {
    font-size: 0.72rem;
    color: #8a827a;
    background: #f0ece8;
    padding: 3px 7px;
    border-radius: 4px;
}

.official-race em {
    font-style: normal;
    font-weight: 700;
    color: #6d645c;
    margin-right: 2px;
}

.official-ret {
    color: #a07860;
}
