/* ============================================================
   Soi Kèo Auto – Match Slider
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.ska-slider-wrap {
    position: relative;
    width: 100%;
    font-family: inherit;
    margin: 20px 0;
}

/* ── Header ──────────────────────────────────────────────── */
.ska-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}
.ska-slider-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}
.ska-title-icon {
    font-size: 20px;
}
.ska-slider-nav {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.ska-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #0073aa;
    background: #fff;
    color: #0073aa;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, transform .15s;
    padding: 0;
    user-select: none;
}
.ska-nav-btn:hover {
    background: #0073aa;
    color: #fff;
}
.ska-nav-btn:active {
    transform: scale(.92);
}
.ska-nav-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* ── Viewport + Track ────────────────────────────────────── */
.ska-slider-viewport {
    overflow: hidden;
    width: 100%;
    /* Clip shadow của card */
    padding-bottom: 4px;
}

.ska-slider-track {
    display: flex;
    gap: 14px;
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    cursor: grab;
    user-select: none;
}
.ska-slider-track.ska-dragging {
    cursor: grabbing;
    transition: none;
}

/* ── Card ────────────────────────────────────────────────── */
/* Width được set trong responsive blocks bên dưới */

.ska-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 14px 12px 12px;
}

/* ── League Badge ────────────────────────────────────────── */
.ska-card-league {
    text-align: center;
    margin-bottom: 10px;
}
.ska-league-badge {
    display: inline-block;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Match Row ───────────────────────────────────────────── */
.ska-card-match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 0 10px;
}

/* ── Team Block ──────────────────────────────────────────── */
.ska-card-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.ska-team-logo-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #eef0f4;
}
.ska-team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}
.ska-logo-fallback {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 50%;
    text-transform: uppercase;
}
.ska-team-name {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: #1a1a2e;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ── Center ──────────────────────────────────────────────── */
.ska-card-center {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 56px;
}
.ska-match-date {
    font-size: 11px;
    color: #888;
    font-weight: 600;
    white-space: nowrap;
}
.ska-vs-badge {
    background: linear-gradient(135deg, #1a3a5c, #0073aa);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
    line-height: 1;
}
.ska-match-hour {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #e05a0c;
    font-weight: 700;
    white-space: nowrap;
}
.ska-match-hour svg {
    flex-shrink: 0;
    stroke: #e05a0c;
}

/* ── Footer ──────────────────────────────────────────────── */
.ska-card-footer {
    border-top: 1px solid #f0f2f5;
    padding-top: 10px;
    text-align: center;
}
.ska-read-more {
    font-size: 12px;
    color: #0073aa;
    font-weight: 600;
    transition: color .2s;
}
.ska-card-link:hover .ska-read-more {
    color: #005177;
}

/* ── Responsive ──────────────────────────────────────────── */

/* Mobile default: 1.5 bài */
.ska-card {
    flex: 0 0 calc( (100% - 14px) / 1.5 );
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
    overflow: hidden;
    border: 1px solid #eef0f4;
    transition: box-shadow .2s, transform .2s;
}
.ska-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.14);
    transform: translateY(-2px);
}

/* Tablet (600px+): 2.5 bài */
@media (min-width: 600px) {
    .ska-card {
        flex: 0 0 calc( (100% - 2 * 14px) / 2.5 );
    }
    .ska-team-logo-wrap {
        width: 58px;
        height: 58px;
    }
    .ska-team-logo {
        width: 44px;
        height: 44px;
    }
    .ska-team-name {
        font-size: 13px;
    }
}

/* Desktop (992px+): 2.5 bài */
@media (min-width: 992px) {
    .ska-card {
        flex: 0 0 calc( (100% - 2 * 14px) / 2.5 );
    }
    .ska-team-logo-wrap {
        width: 64px;
        height: 64px;
    }
    .ska-team-logo {
        width: 48px;
        height: 48px;
    }
    .ska-card-link {
        padding: 16px 14px 14px;
    }
    .ska-vs-badge {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* Large (1280px+): 3.5 bài */
@media (min-width: 1280px) {
    .ska-card {
        flex: 0 0 calc( (100% - 3 * 14px) / 3.5 );
    }
    .ska-team-name {
        font-size: 13px;
    }
}

/* ── Sapo (đoạn mở đầu bài viết) ────────────────────────── */
.ska-sapo {
    font-size: 16px;
    line-height: 1.75;
    color: #444;
    font-weight: 500;
    border-left: 4px solid #0073aa;
    padding: 12px 16px;
    background: #f0f7ff;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
    font-style: italic;
}
