/* Soccer captura moderna — plantillasoccer.php */
.soccer-captura {
    width: min(720px, 100%);
    max-width: 720px;
    margin: 0 auto;
    padding: 0 8px 20px;
    display: block !important;
    float: none !important;
}

.soccer-captura__form {
    width: 100%;
    display: block;
}

.soccer-board {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(160deg, #022c22 0%, #0f172a 55%, #1a0b0b 100%);
    border: 1px solid rgba(250, 204, 21, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.soccer-board__legend {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: #facc15;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(2, 6, 23, 0.55);
    border-bottom: 1px solid rgba(250, 204, 21, 0.15);
}

.soccer-board__legend span:nth-child(2) { text-align: center; }
.soccer-board__legend span:last-child { text-align: right; }

.soccer-board__list {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.soccer-match {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: #f8fafc !important;
    box-shadow: 0 2px 8px rgba(2, 6, 23, 0.1);
}

.soccer-match__side {
    min-width: 0;
    display: block;
}

.soccer-match__side > input[type="radio"],
.soccer-match__mid > input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
}

.soccer-team {
    display: flex !important;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 4px 6px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    color: #0f172a !important;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    user-select: none;
    box-sizing: border-box;
}

.soccer-team--away {
    flex-direction: row;
    justify-content: flex-end;
    text-align: right;
}

.soccer-team:hover {
    border-color: #86efac;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.18);
}

.soccer-match__side input[type="radio"]:checked + .soccer-team {
    border-color: #16a34a !important;
    background: linear-gradient(145deg, rgba(22, 163, 74, 0.14), rgba(250, 204, 21, 0.14)), #fff !important;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.22), 0 8px 18px rgba(22, 163, 74, 0.22);
}

.soccer-team__badge {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #14532d;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.soccer-match__side input[type="radio"]:checked + .soccer-team .soccer-team__badge {
    color: #052e16;
    background: #facc15;
    border-color: #eab308;
}

.soccer-team__crest,
.soccer-team img.teams {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.soccer-team__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(0.65rem, 2.4vw, 0.8rem) !important;
    font-weight: 700 !important;
    line-height: 1.1;
    text-transform: uppercase;
    color: #0f172a !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.soccer-match__mid {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.soccer-draw {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 38px;
    min-height: 36px;
    margin: 0;
    border-radius: 999px;
    border: 1.5px solid #e2e8f0;
    background: #fff !important;
    color: #854d0e;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.soccer-draw:hover {
    border-color: #fde047;
    transform: scale(1.04);
}

.soccer-match__mid input[type="radio"]:checked + .soccer-draw {
    border-color: #eab308 !important;
    background: linear-gradient(160deg, #fef08a, #facc15) !important;
    box-shadow: 0 6px 16px rgba(234, 179, 8, 0.35);
}

.soccer-draw__letter {
    font-size: 0.8rem;
    font-weight: 800;
    color: #854d0e;
    line-height: 1;
}

.soccer-draw__label {
    display: none;
}

.soccer-match__vs {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 800;
    color: #b91c1c !important;
    background: #fee2e2 !important;
    border: 1px solid #fecaca;
}

.soccer-board__meta {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap !important;
    padding: 8px 12px;
    color: #facc15 !important;
    background: radial-gradient(circle at 80% -20%, rgba(1, 97, 22, 0.35), transparent 45%),
        linear-gradient(135deg, #020617, #1f0a0a);
    border-top: 1px solid rgba(250, 204, 21, 0.18);
    white-space: nowrap;
}

.soccer-meta__item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.soccer-meta__item--end {
    text-align: right;
    margin-left: auto;
    justify-content: flex-end;
}

.soccer-meta__label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
    color: #facc15;
    white-space: nowrap;
    flex: 0 0 auto;
}

.soccer-meta__value {
    font-size: 0.8rem;
    font-weight: 700;
    color: #facc15 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.soccer-captura__footer {
    margin-top: 10px;
    display: block;
}

.soccer-total {
    display: flex !important;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #fff;
}

.soccer-total__label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.soccer-total strong,
.soccer-total #costoTotal {
    font-size: 1.2rem !important;
    color: #facc15 !important;
    border-bottom: 2px solid rgba(250, 204, 21, 0.45);
    padding-bottom: 2px;
}

.soccer-alias {
    max-width: 420px;
    margin: 0 auto 10px;
}

.soccer-alias__group {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.soccer-alias__icon {
    background: #ecfdf5 !important;
    border: 1px solid #86efac !important;
    border-right: 0 !important;
}

.soccer-alias__input,
#alias.soccer-alias__input {
    height: 40px !important;
    border: 1px solid #86efac !important;
    background: #f8fafc !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.soccer-acciones {
    padding: 10px;
    border-radius: 14px;
    background: radial-gradient(circle at 20% 0%, rgba(34, 197, 94, 0.18), transparent 45%),
        linear-gradient(135deg, #020617, #0f172a);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.soccer-acciones__btn {
    height: 40px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}

.soccer-acciones__btn--wa {
    background: linear-gradient(135deg, #128c7e, #25d366) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.soccer-saved {
    margin-top: 18px;
    padding: 0 4px 8px;
    width: 100%;
}

.soccer-saved__title {
    text-align: center;
    color: #e2e8f0;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.soccer-saved__table {
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .soccer-captura { padding: 0 6px 18px; }

    .soccer-board__list {
        gap: 4px;
        padding: 5px;
    }

    .soccer-match {
        gap: 3px;
        padding: 3px;
    }

    .soccer-team,
    .soccer-team--away {
        min-height: 32px;
        padding: 3px 5px;
        gap: 4px;
    }

    .soccer-team__badge {
        width: 20px;
        height: 20px;
        font-size: 0.62rem;
    }

    .soccer-team__crest,
    .soccer-team img.teams {
        width: 24px !important;
        height: 24px !important;
    }

    .soccer-team__name { font-size: 0.62rem !important; }

    .soccer-match__mid { min-width: 34px; }

    .soccer-draw {
        width: 34px;
        min-height: 32px;
    }

    .soccer-acciones__btn span { font-size: 0.75rem; }
    .soccer-acciones__btn--save span { font-size: 0.68rem; }
}
