/*
======================================================================
KICKOFF PRO CHILD - Homepage Styles
Premium Thai Football Portal - Complete Layout System
======================================================================
*/

/* =====================================================================
   2. HEADER - 品牌导航栏
   ===================================================================== */

.kp-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.kp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 12px 0;
}

.kp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.kp-logo-icon {
    font-size: 32px;
}

.kp-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #D97706;
}

.kp-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.kp-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.kp-nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #0F172A;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.kp-nav-menu a:hover {
    color: #D97706;
    background: rgba(217, 119, 6, 0.08);
}

.kp-nav-menu a.active {
    color: #D97706;
    font-weight: 600;
}

.kp-nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(135deg, #D97706 0%, #FBBF24 100%);
    border-radius: 2px;
}

.kp-nav-menu a i {
    font-size: 14px;
}

.kp-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.kp-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.kp-search-box i {
    position: absolute;
    left: 12px;
    color: #475569;
    font-size: 14px;
}

.kp-search-input {
    width: 200px;
    padding: 10px 12px 10px 36px;
    font-size: 14px;
    color: #0F172A;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    transition: all 0.2s;
}

.kp-search-input:focus {
    outline: none;
    border-color: #D97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
    width: 240px;
}

.kp-search-input::placeholder {
    color: #CBD5E1;
}

.kp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.kp-btn-primary {
    background: linear-gradient(135deg, #D97706 0%, #FBBF24 100%);
    color: #FFFFFF;
}

.kp-btn-primary:hover {
    background: linear-gradient(135deg, #B45309 0%, #D97706 100%);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    transform: translateY(-1px);
}

.kp-btn-secondary {
    background: #F8FAFC;
    color: #334155;
    border: 1px solid #E2E8F0;
}

.kp-btn-secondary:hover {
    background: #F1F5F9;
    border-color: #D97706;
    color: #D97706;
}

.kp-btn-outline {
    background: transparent;
    color: #D97706;
    border: 1px solid #D97706;
}

.kp-btn-outline:hover {
    background: rgba(217, 119, 6, 0.08);
}

.kp-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.kp-btn-hero {
    padding: 12px 28px;
    font-size: 15px;
    background: linear-gradient(135deg, #D97706 0%, #FBBF24 100%);
    color: #FFFFFF;
    border-radius: 10px;
}

.kp-btn-hero:hover {
    background: linear-gradient(135deg, #B45309 0%, #D97706 100%);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
    transform: translateY(-2px);
}

.kp-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 18px;
    color: #334155;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .kp-nav-menu a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .kp-search-input {
        width: 160px;
    }
    
    .kp-search-input:focus {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .kp-header {
        top: 36px;
    }
    
    .kp-header-inner {
        flex-wrap: wrap;
    }
    
    .kp-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        border-bottom: 1px solid #E2E8F0;
        padding: 16px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    }
    
    .kp-nav.is-open {
        display: block;
    }
    
    .kp-nav-menu {
        flex-direction: column;
        gap: 4px;
    }
    
    .kp-nav-menu a {
        width: 100%;
        padding: 12px 16px;
    }
    
    .kp-menu-toggle {
        display: flex;
    }
    
    .kp-search-box {
        display: none;
    }
}

/* =====================================================================
   3. LEAGUE TABS - 联赛分类Tab
   ===================================================================== */

.kp-league-tabs-bar {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 12px 0;
    position: sticky;
    top: 64px;
    z-index: 50;
}

.kp-league-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.kp-league-tabs::-webkit-scrollbar {
    display: none;
}

.kp-league-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.kp-league-tab:hover {
    border-color: #D97706;
    color: #D97706;
}

.kp-league-tab.active {
    background: linear-gradient(135deg, #D97706 0%, #FBBF24 100%);
    border-color: transparent;
    color: #FFFFFF;
    font-weight: 600;
}

@media (max-width: 768px) {
    .kp-league-tabs-bar {
        top: 56px;
    }
    
    .kp-league-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* =====================================================================
   4. HERO SPLIT - Two-Column Equal-Height Hero (首屏核心)
   ===================================================================== */

.kp-hero-split-section {
    background: #F8FAFC;
    padding: 24px 0 32px;
}

.kp-hero-split {
    display: flex;
    align-items: stretch;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.10);
}

/* ---- LEFT: 红色渐变 Hero 区 ---- */
.kp-hero-split-left {
    flex: 0 0 50%;
    width: 50%;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.kp-hero-split-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.kp-hero-split-left::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.kp-hero-split-left-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
    width: 100%;
}

.kp-hero-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.kp-hero-league-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.kp-hero-league-icon {
    font-size: 14px;
}

.kp-hero-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #FFFFFF;
    color: #DC2626;
    font-size: 12px;
    font-weight: 800;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: heroLivePulse 1.8s ease-in-out infinite;
}

@keyframes heroLivePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

.kp-hero-live-dot {
    width: 7px;
    height: 7px;
    background: #DC2626;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

.kp-hero-match-time-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.kp-hero-fixture-title {
    margin-bottom: 28px;
}

.kp-hero-fixture-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.kp-hero-fixture-headline {
    font-size: 26px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.kp-hero-match-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.kp-hero-team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
.kp-team-link:hover .kp-hero-team-name,
.kp-team-link:hover .kp-team-name {
    color: #D97706;
}
.kp-team-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.kp-team-link-row:hover .kp-team-name {
    color: #D97706;
}

.kp-hero-team-badge {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: transform 0.3s;
}

.kp-hero-team-block:hover .kp-hero-team-badge {
    transform: scale(1.05);
}

.kp-hero-team-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.kp-hero-team-emoji {
    font-size: 32px;
}

.kp-hero-team-name {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    line-height: 1.3;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-hero-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.kp-hero-score-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kp-hero-score-n {
    font-size: 48px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
    min-width: 40px;
    text-align: center;
}

.kp-hero-score-sep {
    font-size: 36px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
}

.kp-hero-score-vs {
    font-size: 32px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
}

.kp-hero-elapsed-tag {
    padding: 4px 14px;
    background: #FFFFFF;
    color: #DC2626;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
}

.kp-hero-elapsed-tag--ht {
    background: #FBBF24;
    color: #92400E;
}

.kp-hero-kickoff-label {
    padding: 4px 14px;
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.kp-hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: #FFFFFF;
    color: #DC2626;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    align-self: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.01em;
}

.kp-hero-cta-btn:hover {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.kp-hero-cta-btn i {
    font-size: 13px;
}

/* ---- RIGHT: 白色直播区 ---- */
.kp-hero-split-right {
    flex: 0 0 50%;
    width: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.kp-hero-split-right-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 32px 28px;
}

.kp-live-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #F1F5F9;
}

.kp-live-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.01em;
}

.kp-live-pulse-dot {
    width: 10px;
    height: 10px;
    background: #EF4444;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.kp-live-section-count {
    font-size: 13px;
    font-weight: 600;
    color: #EF4444;
    background: rgba(239, 68, 68, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
}

.kp-live-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
}

/* Override shortcode live match card styles for hero grid */
.kp-live-cards-grid .kp-match-card {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kp-live-cards-grid .kp-match-card:hover {
    border-color: #D97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12);
    transform: translateY(-1px);
}

.kp-live-cards-grid .kp-match-card.is-live {
    border-left: 3px solid #EF4444;
}

.kp-live-cards-grid .kp-match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #F8FAFC;
}

.kp-live-cards-grid .kp-match-league-tag {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.kp-live-cards-grid .kp-live-badge-premium {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.kp-live-cards-grid .kp-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.kp-live-cards-grid .kp-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.kp-live-cards-grid .kp-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.kp-live-cards-grid .kp-team-emblem {
    display: none;
}

.kp-live-cards-grid .kp-team-name {
    font-size: 11px;
    font-weight: 600;
    color: #1E293B;
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kp-live-cards-grid .kp-match-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.kp-live-cards-grid .kp-match-score .score {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
}

.kp-live-cards-grid .kp-match-score .score-divider {
    font-size: 12px;
    color: #475569;
}

.kp-live-cards-grid .kp-live-time {
    font-size: 11px;
    font-weight: 700;
    color: #EF4444;
}

.kp-live-cards-grid .kp-match-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid #F8FAFC;
    margin-top: auto;
}

.kp-live-cards-grid .kp-match-minute {
    font-size: 11px;
    font-weight: 600;
    color: #EF4444;
}

.kp-live-cards-grid .kp-btn-pill {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #D97706 0%, #FBBF24 100%);
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kp-live-cards-grid .kp-btn-pill:hover {
    background: linear-gradient(135deg, #B45309 0%, #D97706 100%);
    transform: scale(1.02);
}

.kp-live-cards-grid .kp-match-time-badge {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

/* No live state */
.kp-hero-no-live {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 16px;
    text-align: center;
    flex: 1;
}

.kp-hero-no-live-icon {
    font-size: 40px;
    opacity: 0.5;
}

.kp-hero-no-live p {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin: 0;
}

.kp-hero-no-live-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #D97706;
    background: rgba(217, 119, 6, 0.08);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.kp-hero-no-live-link:hover {
    background: rgba(217, 119, 6, 0.15);
    color: #B45309;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .kp-hero-split {
        flex-direction: column;
        border-radius: 16px;
    }

    .kp-hero-split-left,
    .kp-hero-split-right {
        flex: none;
        width: 100%;
    }

    .kp-hero-split-left {
        min-height: 340px;
    }

    .kp-hero-split-right-inner {
        padding: 24px 20px;
    }

    .kp-live-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .kp-hero-split-section {
        padding: 16px 0 24px;
    }

    .kp-hero-split {
        border-radius: 12px;
        gap: 0;
    }

    .kp-hero-split-left {
        min-height: 280px;
    }

    .kp-hero-split-left-inner {
        padding: 28px 24px;
    }

    .kp-hero-fixture-headline {
        font-size: 20px;
    }

    .kp-hero-match-area {
        gap: 16px;
        margin-bottom: 24px;
    }

    .kp-hero-team-badge {
        width: 56px;
        height: 56px;
    }

    .kp-hero-team-logo {
        width: 36px;
        height: 36px;
    }

    .kp-hero-team-emoji {
        font-size: 24px;
    }

    .kp-hero-team-name {
        font-size: 11px;
        max-width: 72px;
    }

    .kp-hero-score-n {
        font-size: 36px;
        min-width: 30px;
    }

    .kp-hero-score-sep {
        font-size: 28px;
    }

    .kp-hero-score-vs {
        font-size: 24px;
    }

    .kp-hero-cta-btn {
        padding: 10px 24px;
        font-size: 13px;
    }

    .kp-hero-split-right-inner {
        padding: 20px 16px;
    }

    .kp-live-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .kp-live-section-title {
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .kp-live-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   5. HERO SECTION - 焦点轮播Banner (legacy, unused but kept)
   ===================================================================== */

.kp-hero-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    padding: 32px 0;
    position: relative;
    overflow: hidden;
}
.kp-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(217,119,6,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(59,130,246,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.kp-hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: stretch;
}
/* Left: Match List */
.kp-hero-matches-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.kp-hero-title {
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
}
.kp-hero-icon { font-size: 24px; }
.kp-hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(239,68,68,0.2);
    border: 1px solid rgba(239,68,68,0.4);
    border-radius: 20px;
    color: #FCA5A5;
    font-size: 12px;
    font-weight: 700;
}
.kp-hero-live-badge .kp-live-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #EF4444;
    animation: kp-pulse 1.5s ease-in-out infinite;
}
.kp-hero-match-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kp-hero-match-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.kp-hero-match-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}
.kp-hero-match-live {
    border-color: rgba(239,68,68,0.3);
    background: rgba(239,68,68,0.06);
}
.kp-hero-match-live:hover {
    background: rgba(239,68,68,0.12);
}
.kp-hero-match-league {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}
.kp-hero-match-league img { border-radius: 2px; }
.kp-hero-match-minute {
    color: #EF4444;
    font-weight: 700;
    font-size: 11px;
}
.kp-hero-match-teams {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.kp-hero-match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #FFFFFF;
}
.kp-hero-match-team img { border-radius: 3px; flex-shrink: 0; }
.kp-hero-team-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-hero-team-score {
    font-weight: 800;
    font-size: 15px;
    color: #FFFFFF;
    min-width: 18px;
    text-align: center;
}
.kp-hero-match-time { text-align: right; }
.kp-hero-status-live {
    display: inline-block;
    padding: 3px 8px;
    background: #EF4444;
    color: #FFF;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    animation: kp-pulse 1.5s ease-in-out infinite;
}
.kp-hero-status-ft {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}
.kp-hero-status-ns {
    font-size: 14px;
    font-weight: 700;
    color: #FBBF24;
}
.kp-hero-no-match {
    text-align: center;
    padding: 32px 16px;
    color: rgba(255,255,255,0.5);
}
.kp-hero-no-match p { margin: 0 0 8px; font-size: 14px; }
.kp-hero-no-match a { color: #FBBF24; text-decoration: none; font-size: 14px; font-weight: 600; }

/* Right: Live CTA */
.kp-hero-cta {
    display: flex;
    align-items: stretch;
}
.kp-hero-cta-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.kp-hero-cta-inner::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    pointer-events: none;
}
.kp-hero-cta-inner::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -30px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.kp-hero-cta-icon { font-size: 48px; margin-bottom: 12px; position: relative; z-index: 1; }
.kp-hero-cta-title {
    font-size: 20px;
    font-weight: 800;
    color: #FFF;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}
.kp-hero-cta-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 20px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}
.kp-hero-cta-btn {
    position: relative;
    z-index: 1;
    background: #FFF !important;
    color: #B45309 !important;
    font-size: 16px;
    font-weight: 800;
    padding: 14px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    width: 100%;
    justify-content: center;
}
.kp-hero-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.kp-hero-cta-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}
.kp-hero-cta-links a {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.kp-hero-cta-links a:hover { color: #FFF; }

/* Hero buttons (reused) */
.kp-btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #D97706, #F59E0B);
    color: #FFF;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(217,119,6,0.3);
    min-height: 44px;
}
.kp-btn-hero-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(217,119,6,0.4); }
.kp-btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
    min-height: 44px;
}
.kp-btn-hero-secondary:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }

/* Quick Access Grid */
.kp-quick-access {
    background: #FFF;
    padding: 24px 0;
    border-bottom: 1px solid #F1F5F9;
}
.kp-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.kp-quick-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s;
    min-height: 56px;
}
.kp-quick-card:hover { background: #FFFBEB; border-color: #FBBF24; color: #92400E; }
.kp-quick-icon { font-size: 24px; flex-shrink: 0; }
.kp-quick-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kp-quick-label { font-size: 13px; font-weight: 700; color: #0F172A; white-space: nowrap; }
.kp-quick-sub { font-size: 11px; color: #475569; white-space: nowrap; }

/* Leagues Grid (home.php version) */
.kp-leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.kp-league-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #FFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s;
    min-height: 48px;
}
.kp-league-card:hover { background: #FFFBEB; border-color: #FBBF24; }
.kp-league-flag { font-size: 20px; flex-shrink: 0; }
.kp-league-name { font-size: 14px; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-league-arrow { font-size: 12px; color: #475569; transition: all 0.2s; }
.kp-league-card:hover .kp-league-arrow { color: #D97706; transform: translateX(3px); }

/* Live Grid (home.php version) */
.kp-live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

/* Home News Section */
.kp-home-news-section { background: #F8FAFC; }
.kp-home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.kp-home-news-card {
    background: #FFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    transition: all 0.2s;
}
.kp-home-news-card:hover { border-color: #FBBF24; box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-2px); }
.kp-home-news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.kp-home-news-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #F1F5F9;
}
.kp-home-news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.kp-home-news-card:hover .kp-home-news-thumb { transform: scale(1.05); }
.kp-home-news-category {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 6px;
    color: #FFF;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}
.kp-home-news-body {
    padding: 14px 16px;
}
.kp-home-news-title {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kp-home-news-excerpt {
    font-size: 13px;
    color: #475569;
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kp-home-news-meta {
    font-size: 12px;
    color: #475569;
    display: flex;
    gap: 12px;
}
.kp-home-news-meta i { margin-right: 4px; }

.kp-hero-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.kp-hero-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.kp-hero-slide {
    display: none;
    position: relative;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    min-height: 380px;
}

.kp-hero-slide.active {
    display: block;
}

.kp-hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
}

.kp-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    min-height: 380px;
    text-align: center;
}

.kp-hero-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.kp-hero-league {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.kp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.kp-hero-match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
}

.kp-hero-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.kp-hero-team-emblem {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.kp-hero-team-name {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}

.kp-hero-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.kp-hero-score-num {
    font-size: 56px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
}

.kp-hero-score-sep {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.5);
}

.kp-hero-live-time {
    padding: 6px 14px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
}

.kp-hero-match-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(217, 119, 6, 0.8);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
}

.kp-hero-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.kp-hero-prev,
.kp-hero-next {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.kp-hero-prev:hover,
.kp-hero-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.kp-hero-dots {
    display: flex;
    gap: 8px;
}

.kp-hero-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.kp-hero-dot.active {
    background: linear-gradient(135deg, #D97706 0%, #FBBF24 100%);
    width: 28px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .kp-hero-section {
        padding: 20px 0;
    }
    
    .kp-hero-slide {
        min-height: 320px;
    }
    
    .kp-hero-content {
        padding: 32px 20px;
        min-height: 320px;
    }
    
    .kp-hero-match {
        gap: 24px;
    }
    
    .kp-hero-team-emblem {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .kp-hero-team-name {
        font-size: 14px;
    }
    
    .kp-hero-score-num {
        font-size: 40px;
    }
    /* home.php Hero mobile */
    .kp-hero-layout { grid-template-columns: 1fr; gap: 16px; }
    .kp-hero-title { font-size: 18px; }
    .kp-hero-icon { font-size: 20px; }
    .kp-hero-match-card { padding: 10px 12px; }
    .kp-hero-match-team { font-size: 12px; }
    .kp-hero-team-score { font-size: 13px; }
    .kp-hero-cta-inner { padding: 24px 16px; }
    .kp-hero-cta-icon { font-size: 36px; }
    .kp-hero-cta-title { font-size: 17px; }
    .kp-hero-cta-desc { font-size: 12px; }
    .kp-hero-cta-links { gap: 12px; }
    /* Quick access mobile */
    .kp-quick-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .kp-quick-card { padding: 10px 12px; min-height: 48px; }
    .kp-quick-icon { font-size: 20px; }
    .kp-quick-label { font-size: 12px; }
    .kp-quick-sub { font-size: 11px; }
    /* Leagues grid mobile */
    .kp-leagues-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
    .kp-league-card { padding: 10px 12px; }
    .kp-league-name { font-size: 13px; }
    /* Live grid mobile */
    .kp-live-grid { grid-template-columns: 1fr; }
    /* News grid mobile */
    .kp-home-news-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .kp-home-news-title { font-size: 14px; }
    .kp-home-news-excerpt { font-size: 12px; }
    .kp-home-news-body { padding: 12px; }
}

/* =====================================================================
   5. MAIN CONTENT - 日期筛选栏
   ===================================================================== */

.kp-main-content {
    background: #FFFFFF;
    padding: 32px 0;
}

.kp-content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

.kp-main-area {
    min-width: 0;
}

.kp-date-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.kp-date-tabs {
    display: flex;
    gap: 8px;
}

.kp-date-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.kp-date-tab:hover {
    border-color: #D97706;
    color: #D97706;
}

.kp-date-tab.active {
    background: linear-gradient(135deg, #D97706 0%, #FBBF24 100%);
    border-color: transparent;
    color: #FFFFFF;
    font-weight: 600;
}

.kp-filter-actions {
    display: flex;
    gap: 8px;
}

.kp-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.kp-filter-btn:hover {
    border-color: #D97706;
    color: #D97706;
}

.kp-filter-btn.active {
    background: rgba(217, 119, 6, 0.08);
    border-color: #D97706;
    color: #D97706;
}

@media (max-width: 768px) {
    .kp-content-layout {
        grid-template-columns: 1fr;
    }
    
    .kp-sidebar {
        display: block;
        order: 10;
    }
    
    .kp-date-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .kp-date-tabs {
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .kp-date-tab {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .kp-date-tab i {
        display: none;
    }
    
    .kp-filter-actions {
        width: 100%;
    }
    
    .kp-filter-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .kp-match-card {
        padding: 14px;
        border-radius: 10px;
    }
    
    .kp-match-card-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .kp-match-league-name {
        font-size: 12px;
    }
    
    .kp-match-card-body {
        gap: 6px;
    }
    
    .kp-team-emblem-sm {
        width: 40px;
        height: 40px;
    }
    
    .kp-team-emblem-sm img {
        width: 28px;
        height: 28px;
    }
    
    .kp-team-name {
        font-size: 12px;
    }
    
    .kp-match-center {
        padding: 0 10px;
    }
    
    .kp-live-score {
        padding: 6px 12px;
        gap: 8px;
    }
    
    .kp-score-num {
        font-size: 22px;
        min-width: 24px;
    }
    
    .kp-score-sep {
        font-size: 16px;
    }
    
    .kp-vs-text {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .kp-match-card-footer {
        padding-top: 8px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .kp-match-status {
        font-size: 12px;
    }
    
    .kp-match-time {
        font-size: 12px;
    }
    
    .kp-main-content {
        padding: 20px 0;
    }
    
    .kp-match-list {
        gap: 10px;
    }
    
    .kp-load-more {
        margin-top: 16px;
    }
    
    .kp-league-tabs-bar {
        top: 56px;
        padding: 8px 0;
    }
    
    .kp-seo-content {
        padding: 2rem 0;
    }
    
    .kp-seo-text h2 {
        font-size: 1.2rem;
    }
    
    .kp-seo-text p {
        font-size: 0.875rem;
    }
    
    .kp-faq-section h2 {
        font-size: 1.15rem;
    }
    
    .kp-faq-item summary {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    .kp-faq-item p {
        padding: 0 1rem 0.875rem;
        font-size: 0.8125rem;
    }
}

/* =====================================================================
   6. MATCH LIST - 核心赛事列表
   ===================================================================== */

.kp-match-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kp-match-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s;
}

.kp-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-color: #D97706;
}

.kp-match-card.is-live {
    border-left: 4px solid #D97706;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.15);
}

.kp-match-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.kp-match-league-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kp-match-league-icon {
    font-size: 18px;
}

.kp-match-league-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.kp-match-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kp-match-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #475569;
}

.kp-match-minute {
    font-size: 13px;
    font-weight: 600;
    color: #EF4444;
}

.kp-match-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.kp-match-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.kp-match-team:last-child {
    flex-direction: column;
}

.kp-team-emblem-sm {
    width: 52px;
    height: 52px;
    background: #F8FAFC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.kp-team-emblem-sm img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.kp-team-emblem-sm .kp-team-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kp-team-name {
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    text-align: center;
    line-height: 1.3;
}

.kp-match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
}

.kp-live-score {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: #F8FAFC;
    border-radius: 10px;
}

.kp-live-score.is-live {
    background: rgba(239, 68, 68, 0.08);
}

.kp-score-num {
    font-size: 28px;
    font-weight: 700;
    color: #0F172A;
    min-width: 36px;
    text-align: center;
}

.kp-live-score.is-live .kp-score-num {
    color: #EF4444;
}

.kp-score-sep {
    font-size: 20px;
    color: #475569;
}

.kp-vs-text {
    padding: 10px 20px;
    background: #F8FAFC;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #475569;
}

.kp-half-time {
    font-size: 12px;
    color: #475569;
}

.kp-match-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
}

.kp-match-status {
    font-size: 13px;
    color: #475569;
}

.kp-load-more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* =====================================================================
   7. SIDEBAR - 右侧固定数据栏
   ===================================================================== */

.kp-sidebar {
    position: sticky;
    top: 220px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kp-sidebar-widget {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.kp-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), rgba(245, 158, 11, 0.04));
    border-bottom: 1px solid #F1F5F9;
}

.kp-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.kp-widget-title i {
    color: #D97706;
}

.kp-widget-link {
    font-size: 12px;
    font-weight: 500;
    color: #D97706;
    text-decoration: none;
}

.kp-widget-link:hover {
    text-decoration: underline;
}

.kp-widget-content {
    padding: 12px;
}

/* Standings Mini Table */
.kp-standings-mini {
    width: 100%;
    border-collapse: collapse;
}

.kp-standings-mini th {
    padding: 8px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #B45309;
    text-transform: uppercase;
    background: rgba(217, 119, 6, 0.06);
}

.kp-standings-mini td {
    padding: 10px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #F1F5F9;
}

.kp-standings-mini tr:hover td {
    background: rgba(217, 119, 6, 0.04);
}

.kp-standings-mini tr.champion td {
    background: rgba(217, 119, 6, 0.08);
}

.kp-standings-mini tr.top-3 td {
    background: rgba(217, 119, 6, 0.04);
}

.kp-pos-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: #F1F5F9;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.kp-pos-mini.champion {
    background: linear-gradient(135deg, #D97706 0%, #FBBF24 100%);
    color: #FFFFFF;
}

.kp-team-cell-mini {
    font-weight: 500;
    color: #0F172A;
}

.kp-points-mini {
    font-weight: 700;
    color: #D97706;
}

/* Scorers Mini List */
.kp-scorers-mini {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kp-scorer-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #F8FAFC;
    transition: all 0.2s;
}

.kp-scorer-mini:last-child {
    margin-bottom: 0;
}

.kp-scorer-mini:hover {
    background: rgba(217, 119, 6, 0.08);
}

.kp-scorer-rank {
    font-size: 16px;
    min-width: 28px;
}

.kp-scorer-name-mini {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #0F172A;
}

.kp-scorer-goals-mini {
    font-size: 12px;
    font-weight: 600;
    color: #D97706;
}

/* Teams Mini Grid */
.kp-teams-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.kp-team-mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    background: #F8FAFC;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.kp-team-mini-card:hover {
    background: rgba(217, 119, 6, 0.08);
}

.kp-team-mini-emblem {
    font-size: 24px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kp-team-mini-emblem img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.kp-team-mini-emblem .kp-team-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kp-team-mini-name {
    font-size: 11px;
    font-weight: 500;
    color: #334155;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .kp-sidebar {
        display: block;
        order: 10;
    }
}

/* =====================================================================
   8. LEAGUES SECTION - 底部联赛快捷入口
   ===================================================================== */

.kp-leagues-section {
    background: #F8FAFC;
    padding: 48px 0;
}

.kp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.kp-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.kp-section-title i {
    color: #D97706;
}

.kp-all-leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.kp-league-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.kp-league-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.12);
    border-color: #D97706;
}

.kp-league-card.is-featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), #FFFFFF);
    border-color: #D97706;
}

.kp-league-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #D97706 0%, #FBBF24 100%);
}

.kp-league-card.is-featured .kp-league-top-bar {
    height: 5px;
}

.kp-league-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 12px;
}

.kp-league-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kp-league-name {
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    text-align: center;
    margin-bottom: 4px;
}

.kp-league-match-count {
    font-size: 12px;
    color: #475569;
}

.kp-league-badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 2px 8px;
    background: #D97706;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .kp-league-card.is-featured {
        grid-column: span 1;
    }
    
    .kp-all-leagues-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .kp-hero-fixture-headline {
        font-size: 17px;
    }
    
    .kp-hero-fixture-label {
        font-size: 11px;
    }
    
    .kp-hero-badge-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .kp-hero-match-area {
        gap: 10px;
    }
    
    .kp-hero-team-badge {
        width: 48px;
        height: 48px;
    }
    
    .kp-hero-team-logo {
        width: 30px;
        height: 30px;
    }
    
    .kp-hero-team-name {
        font-size: 11px;
        max-width: 60px;
    }
    
    .kp-hero-score-n {
        font-size: 28px;
    }
    
    .kp-hero-score-sep {
        font-size: 22px;
    }
    
    .kp-hero-score-vs {
        font-size: 20px;
    }
    
    .kp-hero-cta-btn {
        padding: 8px 18px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
    
    .kp-hero-split-left-inner {
        padding: 20px 16px;
    }
    
    .kp-match-card {
        padding: 10px;
    }
    
    .kp-team-emblem-sm {
        width: 34px;
        height: 34px;
    }
    
    .kp-team-emblem-sm img {
        width: 24px;
        height: 24px;
    }
    
    .kp-team-name {
        font-size: 11px;
    }
    
    .kp-score-num {
        font-size: 20px;
    }
    
    .kp-date-tab {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .kp-league-tab {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .kp-seo-text h2 {
        font-size: 1.05rem;
    }
    
    .kp-seo-text p {
        font-size: 0.8125rem;
    }
    
    .kp-faq-item summary {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }
    /* home.php Hero 480px */
    .kp-hero-layout { grid-template-columns: 1fr; }
    .kp-hero-title { font-size: 16px; }
    .kp-hero-cta-inner { padding: 20px 12px; }
    .kp-hero-cta-links { flex-wrap: wrap; gap: 8px; }
    /* Quick access 480px */
    .kp-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .kp-quick-card { padding: 8px 10px; }
    /* Leagues grid 480px */
    .kp-leagues-grid { grid-template-columns: repeat(2, 1fr); }
    .kp-league-card { padding: 8px 10px; }
    .kp-league-name { font-size: 12px; }
    /* News grid 480px */
    .kp-home-news-grid { grid-template-columns: 1fr; gap: 10px; }
    .kp-home-news-title { font-size: 13px; }
    .kp-home-news-body { padding: 10px 12px; }
}

/* =====================================================================
   LIVE BADGE
   ===================================================================== */

.kp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.kp-live-dot {
    width: 6px;
    height: 6px;
    background: #FFFFFF;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* =====================================================================
   MOBILE BOTTOM NAV
   ===================================================================== */

.kp-mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .kp-mobile-bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #FFFFFF;
        border-top: 1px solid #E2E8F0;
        padding: 8px 0;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
        z-index: 9999;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    }
    
    .kp-mobile-bottom-nav-inner {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }
    
    .kp-mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 16px;
        color: #475569;
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
    }
    
    .kp-mobile-bottom-nav a i {
        font-size: 20px;
    }
    
    .kp-mobile-bottom-nav a.active,
    .kp-mobile-bottom-nav a:hover {
        color: #D97706;
    }
    
    body {
        padding-bottom: 70px;
    }
}

.kp-seo-content {
    padding: 3rem 0;
    background: #F8FAFC;
}

.kp-seo-content .kp-container {
    max-width: 900px;
}

.kp-seo-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 1rem;
}

.kp-seo-text p {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.8;
    margin: 0 0 0.75rem;
}

.kp-seo-text a {
    color: #D97706;
    text-decoration: underline;
    font-weight: 500;
}

.kp-seo-text a:hover {
    color: #B45309;
}

.kp-faq-section {
    margin-top: 2.5rem;
}

.kp-faq-section h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 1.25rem;
}

.kp-faq-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.kp-faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1E293B;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kp-faq-item summary::-webkit-details-marker {
    display: none;
}

.kp-faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: #475569;
    transition: transform 0.2s;
}

.kp-faq-item[open] summary::after {
    content: '−';
}

.kp-faq-item p {
    padding: 0 1.25rem 1rem;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

.kp-faq-item a {
    color: #D97706;
    text-decoration: underline;
    font-weight: 500;
}

/* =====================================================================
   TOP SCORERS SECTION - 射手榜
   ===================================================================== */

.kp-scorers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.kp-scorers-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #F1F5F9;
}

.kp-scorers-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    border-bottom: 1px solid #FDE68A;
}

.kp-scorers-card-header .kp-scorers-league-flag {
    font-size: 20px;
}

.kp-scorers-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #92400E;
    margin: 0;
    flex: 1;
}

.kp-scorers-card-header .kp-scorers-link {
    font-size: 12px;
    color: #D97706;
    text-decoration: none;
    font-weight: 600;
}

.kp-scorers-list {
    padding: 8px 0;
}

.kp-scorer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    transition: background 0.2s;
}

.kp-scorer-item:hover {
    background: #FFFBEB;
}

.kp-scorer-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #64748B;
    flex-shrink: 0;
}

.kp-scorer-item:first-child .kp-scorer-rank {
    background: #D97706;
    color: #fff;
}

.kp-scorer-item:nth-child(2) .kp-scorer-rank {
    background: #94A3B8;
    color: #fff;
}

.kp-scorer-item:nth-child(3) .kp-scorer-rank {
    background: #B45309;
    color: #fff;
}

.kp-scorer-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #F1F5F9;
    flex-shrink: 0;
    background: #F8FAFC;
}

.kp-scorer-info {
    flex: 1;
    min-width: 0;
}

.kp-scorer-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kp-scorer-team {
    display: block;
    font-size: 12px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kp-scorer-goals {
    font-size: 14px;
    font-weight: 700;
    color: #D97706;
    white-space: nowrap;
}

/* =====================================================================
   STAR PLAYERS SECTION - 球星展示
   ===================================================================== */

.kp-stars-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.kp-star-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px 16px;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #F1F5F9;
    transition: all 0.25s ease;
    text-align: center;
}

.kp-star-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(217,119,6,0.15);
    border-color: #FDE68A;
}

.kp-star-photo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 3px solid #FDE68A;
    background: #FFFBEB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kp-star-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kp-star-photo-fallback {
    font-size: 32px;
    display: none;
}

.kp-star-info {
    width: 100%;
}

.kp-star-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kp-star-team-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.kp-star-team-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.kp-star-team-row span {
    font-size: 11px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kp-star-nationality {
    display: block;
    font-size: 11px;
    color: #94A3B8;
}

/* =====================================================================
   MULTI-LEAGUE STANDINGS SECTION - 多联赛积分榜
   ===================================================================== */

.kp-standings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.kp-standings-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #F1F5F9;
}

.kp-standings-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    border-bottom: 1px solid #FDE68A;
}

.kp-standings-card-header span:first-child {
    font-size: 20px;
}

.kp-standings-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #92400E;
    margin: 0;
    flex: 1;
}

.kp-standings-card-header .kp-standings-link {
    font-size: 12px;
    color: #D97706;
    text-decoration: none;
    font-weight: 600;
}

.kp-standings-home {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.kp-standings-home thead th {
    padding: 8px 6px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.kp-standings-home thead th:nth-child(2) {
    text-align: left;
}

.kp-standings-home tbody td {
    padding: 7px 6px;
    text-align: center;
    color: #334155;
    border-bottom: 1px solid #F1F5F9;
}

.kp-standings-home tbody td:nth-child(2) {
    text-align: left;
}

.kp-standings-home tbody tr:hover {
    background: #FFFBEB;
}

.kp-standings-home .kp-points-mini {
    font-weight: 700;
    color: #D97706;
}

/* =====================================================================
   FINISHED MATCHES SECTION - 近期赛果
   ===================================================================== */

.kp-finished-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.kp-finished-card {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #F1F5F9;
    transition: all 0.2s;
    position: relative;
}

.kp-finished-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #FDE68A;
}

.kp-finished-league {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #64748B;
}

.kp-finished-league img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.kp-finished-teams {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kp-finished-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.kp-finished-team:last-child {
    flex-direction: row-reverse;
    text-align: right;
}

.kp-finished-team img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.kp-finished-team span {
    font-size: 13px;
    font-weight: 600;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kp-finished-score {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    flex-shrink: 0;
    padding: 0 4px;
}

.kp-finished-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 600;
    color: #10B981;
    background: #ECFDF5;
    padding: 2px 8px;
    border-radius: 10px;
}

/* =====================================================================
   RESPONSIVE - 新板块响应式
   ===================================================================== */

@media (max-width: 1024px) {
    .kp-scorers-grid {
        grid-template-columns: 1fr;
    }
    .kp-stars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .kp-standings-grid {
        grid-template-columns: 1fr;
    }
    .kp-finished-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kp-stars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .kp-finished-grid {
        grid-template-columns: 1fr;
    }
    .kp-scorer-item {
        padding: 8px 12px;
    }
    .kp-star-card {
        padding: 16px 8px 12px;
    }
    .kp-star-photo-wrap {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .kp-stars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .kp-standings-grid {
        gap: 12px;
    }
}
