/*
======================================================================
KICKOFF PRO CHILD - Internal Pages Styles
Premium Thai Sports Portal - All Pages Unified Design
======================================================================
   Consistent with Homepage | Premium Quality | High Contrast
======================================================================
*/

/* =====================================================================
   PAGE HEADER
   ===================================================================== */

.kp-page-header {
    background: linear-gradient(135deg, rgba(217,119,6,0.08) 0%, rgba(245,158,11,0.04) 100%);
    padding: 3rem 0;
    color: #0F172A;
    position: relative;
    overflow: hidden;
}

.kp-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.kp-page-header .kp-container {
    position: relative;
    z-index: 1;
}

.kp-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kp-page-header h1 i {
    color: #D97706;
}

.kp-page-header p {
    font-size: 1rem;
    color: #475569;
    margin: 0;
}

/* =====================================================================
   PAGE CONTENT
   ===================================================================== */

.kp-page-content {
    padding: 3rem 0;
    min-height: 60vh;
}

.kp-page {
    background: #FFFFFF;
}

/* =====================================================================
   FILTER BAR
   ===================================================================== */

.kp-filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 0.75rem;
    background: #F5F7FA;
    border-radius: 12px;
}

.kp-filter-bar .kp-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.kp-filter-bar .kp-tab:hover {
    color: #165DFF;
    background: #FFFFFF;
}

.kp-filter-bar .kp-tab.active {
    background: #165DFF;
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(22, 93, 255, 0.25);
}

/* =====================================================================
   MATCH LIST
   ===================================================================== */

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

.kp-match-item {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    padding: 1.25rem;
    transition: all 0.2s ease-out;
}

.kp-match-item:hover {
    border-color: #165DFF;
    box-shadow: 0 4px 16px rgba(22, 93, 255, 0.1);
    transform: translateY(-2px);
}

.kp-match-item.is-live {
    border-color: #FF4D4F;
    box-shadow: 0 4px 16px rgba(255, 77, 79, 0.1);
}

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

.kp-match-league-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #F5F7FA;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #333647;
}

.kp-match-league-tag .league-icon {
    font-size: 0.875rem;
}

/* =====================================================================
   SCHEDULE PAGE
   ===================================================================== */

.kp-schedule-page .kp-schedule-list {
    display: grid;
    gap: 2rem;
}

.kp-schedule-date-group {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.kp-schedule-date-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(22, 93, 255, 0.08), rgba(22, 93, 255, 0.04));
    font-size: 1rem;
    font-weight: 600;
    color: #165DFF;
    margin: 0;
    border-bottom: 1px solid #E2E8F0;
}

.kp-schedule-date-title i {
    font-size: 1.125rem;
}

.kp-schedule-items {
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.kp-schedule-item {
    background: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #F1F5F9;
    padding: 1rem;
    transition: all 0.2s ease-out;
}

.kp-schedule-item:hover {
    border-color: #165DFF;
    background: rgba(22, 93, 255, 0.02);
}

.kp-schedule-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.kp-schedule-item-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.kp-schedule-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.kp-schedule-team-emblem {
    font-size: 1.5rem;
}

.kp-schedule-team-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1D2129;
    text-align: center;
}

.kp-schedule-vs {
    padding: 0.5rem 1rem;
    background: #F5F7FA;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.kp-schedule-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #475569;
}

/* =====================================================================
   STANDINGS PAGE
   ===================================================================== */

.kp-standings-page .kp-standings-table {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.kp-standings-page .kp-standings-table thead {
    background: linear-gradient(135deg, #F0F5FF, #E8EEFF);
}

.kp-standings-page .kp-standings-table th {
    padding: 1rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #165DFF;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #E2E8F0;
}

.kp-standings-page .kp-standings-table th:first-child {
    text-align: center;
    width: 50px;
}

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

.kp-standings-page .kp-standings-table td {
    padding: 0.875rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #333647;
    font-weight: 400;
    border-bottom: 1px solid #F1F5F9;
}

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

.kp-standings-page .kp-standings-table tbody tr {
    transition: background 0.15s;
}

.kp-standings-page .kp-standings-table tbody tr:nth-child(even) {
    background: #FAFBFC;
}

.kp-standings-page .kp-standings-table tbody tr:hover {
    background: rgba(22, 93, 255, 0.04);
}

/* Position badges */
.kp-standings-page .kp-pos-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    background: #F5F7FA;
    color: #333647;
}

.kp-standings-page .kp-pos-badge.champion,
.kp-standings-page tr:nth-child(1) .kp-pos-badge {
    background: linear-gradient(135deg, #FF9500, #FFAA33);
    color: #FFFFFF;
}

.kp-standings-page tr:nth-child(2) .kp-pos-badge {
    background: #64748B;
    color: #FFFFFF;
}

.kp-standings-page tr:nth-child(3) .kp-pos-badge {
    background: #475569;
    color: #FFFFFF;
}

.kp-standings-page tr:nth-child(4) .kp-pos-badge {
    background: #64748B;
    color: #FFFFFF;
}

.kp-standings-page tr.relegation .kp-pos-badge {
    background: rgba(255, 77, 79, 0.1);
    color: #FF4D4F;
}

/* Points highlight */
.kp-standings-page .kp-points {
    font-size: 1rem;
    font-weight: 700;
    color: #165DFF;
}

/* Team cell */
.kp-standings-page .kp-team-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kp-standings-page .kp-team-cell .kp-team-icon {
    font-size: 1.25rem;
}

.kp-standings-page .kp-team-cell .kp-team-name {
    font-weight: 500;
    color: #1D2129;
}

/* Result colors */
.kp-standings-page .kp-won { color: #10B981; font-weight: 600; }
.kp-standings-page .kp-drawn { color: #475569; }
.kp-standings-page .kp-lost { color: #FF4D4F; font-weight: 600; }
.kp-standings-page .kp-gd-positive { color: #10B981; font-weight: 600; }
.kp-standings-page .kp-gd-negative { color: #FF4D4F; font-weight: 600; }

/* =====================================================================
   NEWS PAGE
   ===================================================================== */

.kp-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.kp-news-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    transition: all 0.2s ease-out;
}

.kp-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(22, 93, 255, 0.1);
    border-color: #165DFF;
}

.kp-news-card-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #F0F5FF, #E8EEFF);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kp-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.kp-news-card:hover .kp-news-card-image img {
    transform: scale(1.05);
}

.kp-news-card-placeholder {
    font-size: 4rem;
    opacity: 0.5;
}

.kp-news-card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: #FF9500;
    color: #FFFFFF;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.kp-news-card-body {
    padding: 1.25rem;
}

.kp-news-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1D2129;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kp-news-card-title a {
    color: inherit;
    text-decoration: none;
}

.kp-news-card-title a:hover {
    color: #165DFF;
}

.kp-news-card-excerpt {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kp-news-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #475569;
}

.kp-news-card-meta i {
    margin-right: 0.25rem;
}

/* =====================================================================
   HIGHLIGHTS PAGE
   ===================================================================== */

.kp-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.kp-highlight-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    transition: all 0.2s ease-out;
}

.kp-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(22, 93, 255, 0.1);
    border-color: #165DFF;
}

.kp-highlight-thumb {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kp-highlight-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kp-highlight-placeholder {
    font-size: 4rem;
    opacity: 0.5;
}

.kp-highlight-duration {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.kp-highlight-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.kp-highlight-card:hover .kp-highlight-overlay {
    opacity: 1;
}

.kp-highlight-play-btn {
    width: 64px;
    height: 64px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #165DFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.2s ease-out;
}

.kp-highlight-card:hover .kp-highlight-play-btn {
    transform: scale(1);
}

.kp-highlight-body {
    padding: 1rem;
}

.kp-highlight-category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #F5F7FA;
    color: #333647;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.kp-highlight-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1D2129;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.kp-highlight-title a {
    color: inherit;
    text-decoration: none;
}

.kp-highlight-title a:hover {
    color: #165DFF;
}

.kp-highlight-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: #475569;
}

/* =====================================================================
   CONTACT PAGE
   ===================================================================== */

.kp-contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.kp-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease-out;
}

.kp-contact-card:hover {
    border-color: #165DFF;
    box-shadow: 0 4px 16px rgba(22, 93, 255, 0.08);
}

.kp-contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.kp-contact-icon.email { background: rgba(22, 93, 255, 0.1); color: #165DFF; }
.kp-contact-icon.line { background: rgba(0, 185, 0, 0.1); color: #00B900; }
.kp-contact-icon.facebook { background: rgba(24, 119, 242, 0.1); color: #1877F2; }
.kp-contact-icon.phone { background: rgba(16, 185, 129, 0.1); color: #10B981; }

.kp-contact-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1D2129;
    margin: 0 0 0.25rem;
}

.kp-contact-info p {
    font-size: 0.875rem;
    color: #475569;
    margin: 0;
}

.kp-contact-info a {
    color: #165DFF;
    font-weight: 500;
}

/* Contact Form */
.kp-contact-form {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    padding: 2rem;
}

.kp-contact-form h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1D2129;
    margin: 0 0 1.5rem;
}

.kp-form-group {
    margin-bottom: 1.25rem;
}

.kp-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1D2129;
    margin-bottom: 0.5rem;
}

.kp-form-group input,
.kp-form-group textarea,
.kp-form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    color: #333647;
    transition: all 0.2s ease-out;
}

.kp-form-group input:focus,
.kp-form-group textarea:focus,
.kp-form-group select:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.kp-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* =====================================================================
   LEGAL PAGES
   ===================================================================== */

.kp-legal-content {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    padding: 2.5rem;
}

.kp-legal-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1D2129;
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid #165DFF;
}

.kp-legal-content h2:first-child {
    margin-top: 0;
}

.kp-legal-content p {
    font-size: 1rem;
    color: #333647;
    line-height: 1.8;
    margin: 0 0 1rem;
}

.kp-legal-content ul {
    padding-left: 1.5rem;
    margin: 0 0 1.5rem;
}

.kp-legal-content li {
    font-size: 1rem;
    color: #333647;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.kp-legal-content a {
    color: #165DFF;
    font-weight: 500;
}

.kp-legal-content strong {
    color: #1D2129;
}

/* Legal notice boxes */
.kp-notice-box {
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.kp-notice-box.info {
    background: rgba(22, 93, 255, 0.08);
    border: 1px solid rgba(22, 93, 255, 0.2);
}

.kp-notice-box.warning {
    background: rgba(255, 149, 0, 0.08);
    border: 1px solid rgba(255, 149, 0, 0.3);
}

.kp-notice-box h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.kp-notice-box.info h3 { color: #165DFF; }
.kp-notice-box.warning h3 { color: #FF9500; }

.kp-notice-box p {
    font-size: 0.9375rem;
    margin: 0;
}

/* =====================================================================
   EMPTY STATE
   ===================================================================== */

.kp-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.kp-empty-state-icon {
    font-size: 4rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.kp-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1D2129;
    margin: 0 0 0.5rem;
}

.kp-empty-state p {
    font-size: 0.9375rem;
    color: #475569;
    margin: 0 0 1.5rem;
}

/* =====================================================================
   LOADING STATES
   ===================================================================== */

.kp-skeleton {
    background: linear-gradient(90deg, #F5F7FA 25%, #E2E8F0 50%, #F5F7FA 75%);
    background-size: 200% 100%;
    animation: kp-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes kp-skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.kp-skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.kp-skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

.kp-skeleton-image {
    height: 200px;
}

/* =====================================================================
   BUTTONS & BADGES - Premium
   ===================================================================== */

/* Premium Pill Buttons */
.kp-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-out;
    cursor: pointer;
    border: none;
}

.kp-btn-pill-primary {
    background: #165DFF;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(22, 93, 255, 0.25);
}

.kp-btn-pill-primary:hover {
    background: #0040D6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.35);
}

.kp-btn-pill-secondary {
    background: transparent;
    color: #165DFF;
    border: 2px solid #165DFF;
}

.kp-btn-pill-secondary:hover {
    background: #165DFF;
    color: #FFFFFF;
}

.kp-btn-pill-danger {
    background: #FF4D4F;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.25);
}

.kp-btn-pill-danger:hover {
    background: #E63E40;
    transform: translateY(-1px);
}

/* Premium Badges */
.kp-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.kp-badge-blue {
    background: rgba(22, 93, 255, 0.1);
    color: #165DFF;
}

.kp-badge-red {
    background: rgba(255, 77, 79, 0.1);
    color: #FF4D4F;
}

.kp-badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.kp-badge-gold {
    background: rgba(255, 149, 0, 0.1);
    color: #FF9500;
}

.kp-badge-gray {
    background: #F5F7FA;
    color: #475569;
}

/* Live Badge Premium */
.kp-live-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: #FF4D4F;
    color: #FFFFFF;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

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

@keyframes kp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* =====================================================================
   ICONS & EMBLEMS
   ===================================================================== */

.kp-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #F5F7FA;
    border-radius: 12px;
    font-size: 1.5rem;
}

.kp-icon-box-primary {
    background: rgba(22, 93, 255, 0.1);
    color: #165DFF;
}

.kp-icon-box-light {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
}

/* Team Emblems */
.kp-team-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #F5F7FA;
    border-radius: 50%;
    font-size: 1.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

/* League Icons */
.kp-league-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #F5F7FA;
    border-radius: 8px;
    font-size: 1rem;
}

/* =====================================================================
   TRANSITIONS & ANIMATIONS
   ===================================================================== */

.kp-transition-all {
    transition: all 0.2s ease-out;
}

.kp-transition-transform {
    transition: transform 0.2s ease-out;
}

.kp-transition-colors {
    transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out;
}

/* Hover Effects */
.kp-hover-lift {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.kp-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(22, 93, 255, 0.12);
}

.kp-hover-scale {
    transition: transform 0.2s ease-out;
}

.kp-hover-scale:hover {
    transform: scale(1.02);
}

/* Focus States */
.kp-focus-ring:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.2);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 1024px) {
    .kp-news-grid,
    .kp-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kp-page-header {
        padding: 2rem 0;
    }
    
    .kp-page-header h1 {
        font-size: 1.5rem;
    }
    
    .kp-page-content {
        padding: 2rem 0;
    }
    
    .kp-news-grid,
    .kp-highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .kp-contact-cards {
        grid-template-columns: 1fr;
    }
    
    .kp-filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .kp-filter-bar::-webkit-scrollbar {
        display: none;
    }
    
    .kp-schedule-item-teams {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .kp-schedule-vs {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .kp-match-card {
        padding: 1rem;
    }
    
    .kp-news-card-body {
        padding: 1rem;
    }
    
    .kp-legal-content {
        padding: 1.5rem;
    }
    
    .kp-contact-form {
        padding: 1.5rem;
    }
}

/* =====================================================================
   PRINT STYLES
   ===================================================================== */

@media print {
    .kp-filter-bar,
    .kp-pagination,
    .kp-back-to-top,
    footer,
    nav {
        display: none !important;
    }
    
    .kp-page-header {
        background: none !important;
        color: #000 !important;
        padding: 1rem 0;
    }
    
    .kp-page-header h1 {
        color: #000 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* =====================================================================
   ACCESSIBILITY
   ===================================================================== */

/* Skip link */
.kp-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #165DFF;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    z-index: 10000;
    transition: top 0.2s;
}

.kp-skip-link:focus {
    top: 0;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .kp-match-card,
    .kp-news-card,
    .kp-highlight-card {
        border-width: 2px;
        border-color: #000;
    }
    
    .kp-btn-pill-primary,
    .kp-live-badge-premium {
        border: 2px solid currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================================
   IMAGE LOADING
   ===================================================================== */

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src*="placeholder"]) {
    opacity: 1;
}

img.lazy-load {
    background: #F5F7FA;
}

/* =====================================================================
   VIDEO CONTAINER - Stream Embed
   ===================================================================== */

.kp-video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.kp-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.kp-stream-wrapper {
    max-width: 100%;
}

.kp-stream-wrapper .kp-video-container {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(22, 93, 255, 0.15);
}

.kp-stream-info {
    text-align: center;
    padding: 0.75rem;
    background: #F5F7FA;
    border-radius: 0 0 12px 12px;
}

.kp-stream-info p {
    font-size: 0.8125rem;
    color: #475569;
    margin: 0;
}

/* =====================================================================
   TEAM CARDS
   ===================================================================== */

.kp-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.kp-team-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease-out;
}

.kp-team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(22, 93, 255, 0.1);
    border-color: #165DFF;
}

.kp-team-card-logo {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kp-team-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kp-team-card-logo .kp-team-emoji {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
}

.kp-team-card-logo img[src] + .kp-team-emoji {
    display: none;
}

.kp-team-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1D2129;
    margin: 0 0 0.25rem;
}

.kp-team-card-league {
    font-size: 0.8125rem;
    color: #475569;
    margin: 0;
}

/* =====================================================================
   SCORER CARDS
   ===================================================================== */

.kp-scorer-avatar {
    width: 44px;
    height: 44px;
    background: #F5F7FA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #475569;
    overflow: hidden;
}

.kp-scorer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================================
   NO STREAM PLACEHOLDER
   ===================================================================== */

.kp-no-stream {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #F5F7FA;
    border-radius: 12px;
    text-align: center;
}

.kp-no-stream-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.kp-no-stream-message {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1D2129;
    margin: 0 0 0.5rem;
}

.kp-no-stream-hint {
    font-size: 0.875rem;
    color: #475569;
    margin: 0;
}

/* =====================================================================
   API DATA STYLES
   ===================================================================== */

.kp-live-matches {
    display: grid;
    gap: 1rem;
}

.kp-live-matches .kp-match-card {
    margin-bottom: 0;
}

/* Live time badge */
.kp-live-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 0.25rem 0.5rem;
    background: #FF4D4F;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 0.5rem;
}

/* Score display */
.kp-match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.kp-match-score .score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1D2129;
    min-width: 30px;
    text-align: center;
}

.kp-match-score .score-divider {
    font-size: 1.25rem;
    color: #475569;
}

/* Team logo */
.kp-team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

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

.kp-team-logo-xs {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.kp-team-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

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

.kp-schedule-team-emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

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

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

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

/* Responsive for teams */
@media (max-width: 768px) {
    .kp-teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kp-team-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .kp-teams-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   SOFASCORE LIVE
   ===================================================================== */

.kp-sofascore-live {
    display: grid;
    gap: 1rem;
}

/* =====================================================================
   MATCH DETAIL PAGE
   ===================================================================== */

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

.kp-match-detail-header {
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(22, 93, 255, 0.08), rgba(22, 93, 255, 0.04));
    border-bottom: 1px solid #E2E8F0;
}

.kp-match-detail-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1rem;
    gap: 2rem;
}

.kp-match-detail-team {
    flex: 1;
    text-align: center;
}

.kp-match-detail-team-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}

.kp-match-detail-team-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1D2129;
}

.kp-match-detail-score {
    text-align: center;
    padding: 1rem;
}

.kp-match-detail-score .score {
    font-size: 3rem;
    font-weight: 700;
    color: #1D2129;
}

.kp-match-detail-score .status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #FF4D4F;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 0.5rem;
}
