body {
    z-index: 2;
}

/* Page Background handled in ads.css */

.as-banner-top {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto 1.2rem auto;
    display: flex;

    /* Professional Sidebar Match Card Styles */
    .as-match-list-pro {
        display: flex;
        flex-direction: column;
        background: #23273a;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        padding: 12px 18px 10px 18px;
        transition: box-shadow 0.2s, background 0.2s;
        position: relative;
    }

    .as-match-list-item.is-live .as-match-list-pro {
        background: #1a3a2a;
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.08);
    }

    .as-match-list-pro-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
    }

    .as-badge {
        font-size: 11px;
        font-weight: 600;
        padding: 2px 10px;
        border-radius: 6px;
        background: #2d3748;
        color: #fff;
        letter-spacing: 0.5px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    .as-badge-live {
        background: #ef4444;
        color: #fff;
    }

    .as-badge-upcoming {
        background: #4a9d6d;
        color: #fff;
    }

    .as-badge-finished {
        background: #64748b;
        color: #fff;
    }

    .as-match-list-league-pro {
        font-size: 12px;
        color: #a3e635;
        font-weight: 500;
        background: #181c24;
        border-radius: 5px;
        padding: 2px 8px;
        margin-left: 4px;
    }

    .as-match-list-pro-body {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }

    .as-match-list-pro-team {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 80px;
        min-width: 80px;
        gap: 4px;
    }

    .as-match-list-logo-pro {
        width: 32px;
        height: 32px;
        object-fit: contain;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #e5e7eb;
        margin-bottom: 2px;
    }

    .as-match-list-team-name-pro {
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        margin-bottom: 2px;
        letter-spacing: 0.2px;
    }

    .as-flag-pro {
        display: inline-block;
        margin-top: 2px;
    }

    .as-match-list-pro-score {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #181c24;
        border-radius: 8px;
        min-width: 56px;
        height: 38px;
        font-size: 18px;
        font-weight: 700;
        color: #fff;
        margin: 0 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    .as-score-home-pro {
        color: #fff200;
        font-size: 18px;
        font-weight: 700;
    }

    .as-score-away-pro {
        color: #1e40af;
        font-size: 18px;
        font-weight: 700;
    }

    .as-score-separator-pro {
        color: #fff;
        margin: 0 4px;
        font-size: 18px;
        font-weight: 700;
    }

    .as-score-vs-pro {
        color: #b6b6b6;
        font-size: 15px;
        font-weight: 500;
    }

    .as-match-list-pro-watch {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80px;
        min-width: 80px;
    }

    .as-btn-watch-pro {
        background: linear-gradient(90deg, #4a9d6d 0%, #1a3a2a 100%);
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 7px 18px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        transition: background 0.2s, box-shadow 0.2s;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .as-btn-watch-pro:hover {
        background: linear-gradient(90deg, #1a3a2a 0%, #4a9d6d 100%);
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.12);
    }

    display: block;
}

.as-banner-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    display: block;
}

.as-match-main-classic {
    margin: 0 auto;
    max-width: 700px;
    min-width: 320px;
    padding: 2rem 0 2rem 0;
    background: transparent;
    display: block;
}

@media (max-width: 1200px) {
    .as-match-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .as-sidebar-banner,
    .as-sidebar-matches {
        display: none;
    }
}

.as-sidebar-banner {
    grid-column: 1;
    position: sticky;
    top: 40px;
    align-self: flex-start;
    z-index: 2;
    width: 220px;
    min-width: 180px;
    max-width: 240px;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.as-sidebar-banner .as-banner-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    display: block;
}

.as-match-main {
    grid-column: 2;
    min-width: 0;
    width: 100%;
    z-index: 1;
}

.as-sidebar-matches {
    grid-column: 3;
    top: 40px;
    align-self: flex-start;
    z-index: 2;
    width: 340px;
    min-width: 260px;
    max-width: 380px;
    background: var(--as-bg-card);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.as-sidebar-header {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--as-text-primary);
}

.as-matches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.as-empty-state {
    color: var(--as-text-muted);
    text-align: center;
    padding: 2rem 0;
}

/*
Theme Name: EfendiSpor
Theme URI: http://efendispor.com
Author: EfendiSpor Team
Author URI: http://efendispor.com
Description: Modern ve kullanışlı canlı maç izleme teması
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aylakspor
Tags: sports, streaming, dark, modern
*/

/* ================================
   CSS Variables - Modern Color Palette
   ================================ */
:root {
    /* Primary Colors - Modern Blue/Purple Gradient */
    --as-primary: #2563eb;
    --as-primary-dark: #1e40af;
    --as-primary-light: #3b82f6;
    --as-accent: #8b5cf6;
    --as-accent-dark: #7c3aed;

    /* Background Colors - Dark Theme */
    --as-bg-primary: #0c1815;
    --as-bg-bahiscom: #0b1513;
    --as-bg-secondary: #131836;
    --as-bg-tertiary: #1a1f3a;
    --as-bg-card: rgba(255, 255, 255, 0.05);
    --as-bg-hover: rgba(255, 255, 255, 0.08);

    /* Text Colors */
    --as-text-primary: #ffffff;
    --as-text-secondary: #94a3b8;
    --as-text-muted: #64748b;

    /* Status Colors */
    --as-live: #ef4444;
    --as-live-glow: rgba(239, 68, 68, 0.3);
    --as-success: #10b981;
    --as-warning: #f59e0b;
    --as-info: #06b6d4;

    /* Border & Shadow */
    --as-border: rgba(255, 255, 255, 0.1);
    --as-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --as-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);

    /* Spacing */
    --as-container-max: 1920px;
    --as-spacing-xs: 0.5rem;
    --as-spacing-sm: 1rem;
    --as-spacing-md: 1.5rem;
    --as-spacing-lg: 2rem;
    --as-spacing-xl: 3rem;

    /* Border Radius */
    --as-radius-sm: 0.5rem;
    --as-radius-md: 0.75rem;
    --as-radius-lg: 1rem;
    --as-radius-xl: 1.5rem;

    /* Transitions */
    --as-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   Reset & Base Styles
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--as-bg-bahiscom);
    color: var(--as-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================================
   Typography
   ================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--as-spacing-sm);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--as-spacing-sm);
}

a {
    color: var(--as-primary-light);
    text-decoration: none;
    transition: var(--as-transition);
}

a:hover {
    color: var(--as-accent);
}

/* ================================
   Container & Layout
   ================================ */
.as-container {
    max-width: var(--as-container-max);
    margin: 0 auto;
    padding: 0 var(--as-spacing-md);
}

.as-section {
    padding: var(--as-spacing-xl) 0;
}

/* ================================
   Gradient Background
   ================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background: linear-gradient(180deg,
            rgba(37, 99, 235, 0.1) 0%,
            rgba(139, 92, 246, 0.05) 50%,
            transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* ================================
   Cards & Glassmorphism
   ================================ */
.as-card {
    background: var(--as-bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius-lg);
    padding: var(--as-spacing-md);
    transition: var(--as-transition);
}

.as-card:hover {
    background: var(--as-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--as-shadow-lg);
}

.as-card-solid {
    background: var(--as-bg-secondary);
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius-lg);
    padding: var(--as-spacing-md);
}

/* ================================
   Buttons
   ================================ */
.as-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--as-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--as-transition);
    text-decoration: none;
}

.as-btn-primary {
    background: linear-gradient(135deg, var(--as-primary) 0%, var(--as-accent) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.as-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.as-btn-secondary {
    background: var(--as-bg-card);
    color: var(--as-text-primary);
    border: 1px solid var(--as-border);
}

.as-btn-secondary:hover {
    background: var(--as-bg-hover);
    border-color: var(--as-primary);
}

.as-btn-live {
    background: var(--as-live);
    color: white;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--as-live-glow);
    }

    50% {
        box-shadow: 0 0 0 8px transparent;
    }
}

/* ================================
   Badges
   ================================ */
.as-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--as-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.as-badge-live {
    background: var(--as-live);
    color: white;
    animation: pulse-badge 1.5s infinite;
}

.as-badge-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.as-badge-upcoming {
    background: var(--as-info);
    color: white;
}

.as-badge-finished {
    background: var(--as-bg-card);
    color: var(--as-text-secondary);
}

/* ================================
   Grid System
   ================================ */
.as-grid {
    display: grid;
    gap: var(--as-spacing-md);
}

.as-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.as-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.as-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ================================
   Utilities
   ================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--as-text-muted);
}

.text-secondary {
    color: var(--as-text-secondary);
}

.mt-1 {
    margin-top: var(--as-spacing-xs);
}

.mt-2 {
    margin-top: var(--as-spacing-sm);
}

.mt-3 {
    margin-top: var(--as-spacing-md);
}

.mt-4 {
    margin-top: var(--as-spacing-lg);
}

.mb-1 {
    margin-bottom: var(--as-spacing-xs);
}

.mb-2 {
    margin-bottom: var(--as-spacing-sm);
}

.mb-3 {
    margin-bottom: var(--as-spacing-md);
}

.mb-4 {
    margin-bottom: var(--as-spacing-lg);
}

.hidden {
    display: none !important;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 1200px) {
    .as-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .as-grid-2,
    .as-grid-3,
    .as-grid-4 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* ================================
   Loading & Animations
   ================================ */
.as-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--as-border);
    border-top-color: var(--as-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   Scrollbar
   ================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--as-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--as-bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--as-primary);
}

.kf-main-player {
    position: relative;
    border-radius: var(--kf-radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: var(--kf-shadow-xl);
}

.kf-main-player video,
.kf-main-player iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide native video controls - Chrome/Safari/Edge */
.kf-main-player video::-webkit-media-controls,
.kf-main-player video::-webkit-media-controls-panel,
.kf-main-player video::-webkit-media-controls-panel-container,
.kf-main-player video::-webkit-media-controls-start-playback-button,
.kf-main-player video::-webkit-media-controls-play-button,
.kf-main-player video::-webkit-media-controls-timeline,
.kf-main-player video::-webkit-media-controls-timeline-container,
.kf-main-player video::-webkit-media-controls-current-time-display,
.kf-main-player video::-webkit-media-controls-time-remaining-display,
.kf-main-player video::-webkit-media-controls-mute-button,
.kf-main-player video::-webkit-media-controls-volume-slider,
.kf-main-player video::-webkit-media-controls-volume-slider-container,
.kf-main-player video::-webkit-media-controls-fullscreen-button,
.kf-main-player video::-webkit-media-controls-enclosure,
.kf-main-player video::-webkit-media-controls-overlay-play-button,
.kf-main-player video::-webkit-media-controls-overlay-enclosure,
.kf-main-player video::-internal-media-controls-overflow-button,
.kf-main-player video::-webkit-media-controls-toggle-closed-captions-button {
    display: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

video::-webkit-media-controls {
    display: none !important;
}

/* Firefox ve diğer tarayıcılar için */
video {
    object-fit: cover;
    /* Ekstra stil */
}

/* Firefox */
.kf-main-player video::-moz-media-controls,
.kf-main-player video::-moz-media-controls-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* IE/Edge Legacy */
.kf-main-player video::-ms-media-controls {
    display: none !important;
}

/* Additional video element styling to prevent controls */
.kf-main-player video,
.kf-main-player .kf-video-player {
    -webkit-media-controls: none !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.kf-main-player .kf-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.kf-main-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Player Loading State */
.kf-player-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--kf-spacing-md);
    z-index: 20;
    color: white;
}

/* Unmute Button */
.kf-unmute-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 25;
    display: flex;
    align-items: center;
    gap: var(--kf-spacing-sm);
    padding: var(--kf-spacing-md) var(--kf-spacing-lg);
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--kf-accent);
    border-radius: var(--kf-radius-lg);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: pulse-unmute 2s ease-in-out infinite;
}

.kf-unmute-btn:hover {
    background: var(--kf-accent);
    transform: translate(-50%, -50%) scale(1.05);
}

.kf-unmute-btn svg {
    flex-shrink: 0;
}

@keyframes pulse-unmute {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(74, 157, 109, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(74, 157, 109, 0);
    }
}

.kf-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--kf-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Player Error State */
.kf-player-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--kf-spacing-md);
    z-index: 20;
    color: white;
    text-align: center;
    padding: var(--kf-spacing-xl);
}

.kf-player-error svg {
    color: var(--kf-live);
}

.kf-btn-retry {
    margin-top: var(--kf-spacing-sm);
    padding: var(--kf-spacing-sm) var(--kf-spacing-lg);
    background: var(--kf-accent);
    color: white;
    border-radius: var(--kf-radius-full);
    font-weight: 500;
    transition: background var(--kf-transition-fast);
}

.kf-btn-retry:hover {
    background: var(--kf-accent-hover);
}

/* Video Player Controls */
.kf-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--kf-spacing-md) var(--kf-spacing-lg);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: center;
    gap: var(--kf-spacing-md);
    opacity: 0;
    transition: opacity var(--kf-transition-fast);
    z-index: 15;
}

.kf-main-player:hover .kf-video-controls,
.kf-video-controls:focus-within {
    opacity: 1;
}

.kf-control-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--kf-radius-full);
    color: white;
    transition: all var(--kf-transition-fast);
}

.kf-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.kf-control-btn svg {
    width: 20px;
    height: 20px;
}

.kf-btn-play svg {
    width: 24px;
    height: 24px;
}

.kf-volume-container {
    display: flex;
    align-items: center;
    gap: var(--kf-spacing-sm);
}

.kf-volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
}

.kf-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--kf-accent);
    border-radius: 50%;
    cursor: pointer;
}

.kf-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--kf-accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.kf-seek-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--kf-spacing-sm);
}

.kf-seek-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
}

.kf-seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--kf-accent);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--kf-transition-fast);
}

.kf-seek-container:hover .kf-seek-slider::-webkit-slider-thumb {
    opacity: 1;
}

.kf-seek-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--kf-accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.kf-time-display {
    font-size: var(--kf-font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    font-family: monospace;
    min-width: 45px;
    text-align: center;
}

.kf-control-spacer {
    flex: 1;
}

.kf-control-right {
    display: flex;
    align-items: center;
    gap: var(--kf-spacing-sm);
}

/* Quality Selector */
.kf-quality-container {
    position: relative;
}

.kf-btn-quality {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--kf-radius-full);
    color: white;
    font-size: var(--kf-font-size-sm);
    transition: all var(--kf-transition-fast);
}

.kf-btn-quality:hover {
    background: rgba(255, 255, 255, 0.2);
}

.kf-btn-quality svg {
    width: 16px;
    height: 16px;
}

.kf-quality-label {
    font-weight: 500;
}

.kf-quality-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: var(--kf-radius-md);
    padding: var(--kf-spacing-xs);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--kf-transition-fast);
    z-index: 100;
}

.kf-quality-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.kf-quality-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--kf-font-size-sm);
    border-radius: var(--kf-radius-sm);
    transition: all var(--kf-transition-fast);
}

.kf-quality-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.kf-quality-option.active {
    background: var(--kf-accent);
    color: white;
}

.kf-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            transparent 30%,
            transparent 70%,
            rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

.kf-player-badge {
    position: absolute;
    top: var(--kf-spacing-md);
    left: var(--kf-spacing-md);
    display: flex;
    align-items: center;
    gap: var(--kf-spacing-sm);
    z-index: 10;
}

.kf-live-badge {
    background: var(--kf-live);
    color: white;
    padding: var(--kf-spacing-xs) var(--kf-spacing-sm);
    border-radius: var(--kf-radius-sm);
    font-size: var(--kf-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: var(--kf-spacing-xs);
    transition: background 0.3s ease;
}

.kf-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: var(--kf-radius-full);
    animation: pulse 1.5s infinite;
}

/* Halftime Badge Styles */
.kf-live-badge.kf-halftime-badge {
    background: #f59e0b;
}

.kf-live-badge.kf-halftime-badge::before {
    display: none;
}

.kf-halftime-icon {
    font-size: 0.9em;
    margin-right: 2px;
}

/* Halftime Header State */
.kf-match-header-live.kf-halftime {
    background: linear-gradient(135deg, #78350f 0%, #451a03 100%);
}

.kf-score-badge {
    background: var(--kf-score-bg);
    backdrop-filter: blur(10px);
    color: white;
    padding: var(--kf-spacing-xs) var(--kf-spacing-sm);
    border-radius: var(--kf-radius-sm);
    font-size: var(--kf-font-size-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--kf-spacing-sm);
}

.kf-score-badge img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.kf-player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--kf-spacing-md);
    display: flex;
    align-items: center;
    gap: var(--kf-spacing-md);
    z-index: 10;
}

.kf-control-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--kf-radius-full);
    transition: background var(--kf-transition-fast);
}

.kf-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.kf-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--kf-radius-full);
    overflow: hidden;
    cursor: pointer;
}

.kf-progress-fill {
    height: 100%;
    background: var(--kf-accent);
    width: 35%;
    border-radius: var(--kf-radius-full);
    transition: width var(--kf-transition-fast);
}

.kf-time-display {
    font-size: var(--kf-font-size-sm);
    color: white;
    font-variant-numeric: tabular-nums;
}

/* ========================================
   Live Matches Grid
   ======================================== */
.kf-matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--kf-spacing-md);
}

.kf-match-card {
    position: relative;
    border-radius: var(--kf-radius-md);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--kf-card-bg);
    border: 1px solid var(--kf-card-border);
    cursor: pointer;
    transition: transform var(--kf-transition-fast), box-shadow var(--kf-transition-fast);
}

.kf-match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--kf-shadow-lg);
}

.kf-match-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kf-match-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
}

.kf-match-card-badge {
    position: absolute;
    top: var(--kf-spacing-sm);
    left: var(--kf-spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--kf-spacing-xs);
}

.kf-match-card-live {
    position: absolute;
    top: var(--kf-spacing-sm);
    right: var(--kf-spacing-sm);
    background: var(--kf-live);
    color: white;
    padding: 2px 8px;
    border-radius: var(--kf-radius-sm);
    font-size: var(--kf-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.kf-match-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--kf-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--kf-transition-fast);
}

.kf-match-card:hover .kf-match-card-play {
    opacity: 1;
}

.kf-match-card-play svg {
    width: 20px;
    height: 20px;
    color: var(--kf-primary);
    margin-left: 2px;
}

.kf-match-card-info {
    position: absolute;
    bottom: var(--kf-spacing-sm);
    left: var(--kf-spacing-sm);
    right: var(--kf-spacing-sm);
    color: white;
    font-size: var(--kf-font-size-sm);
}

/* Dynamic Match Image - Generated when no thumbnail */
.kf-match-card-dynamic .kf-dynamic-match-image {
    width: 100%;
    height: 100%;
}

.kf-match-card-dynamic .kf-overlay {
    transition: background var(--kf-transition-fast);
}

.kf-match-card-dynamic:hover .kf-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.85) 100%) !important;
}

.kf-match-card-dynamic .kf-logo img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.kf-match-card-dynamic .kf-date,
.kf-match-card-dynamic .kf-time,
.kf-match-card-dynamic .kf-vs,
.kf-match-card-dynamic .kf-name,
.kf-match-card-dynamic .kf-match-title,
.kf-match-card-dynamic .kf-branding {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dynamic image responsive adjustments */
@media (max-width: 768px) {
    .kf-dynamic-match-image .kf-teams {
        gap: 10px !important;
    }

    .kf-dynamic-match-image .kf-logo {
        width: 22px !important;
        height: 22px !important;
    }

    .kf-dynamic-match-image .kf-team-names {
        font-size: 10px !important;
    }

    .kf-dynamic-match-image .kf-date {
        font-size: 12px !important;
    }

    .kf-dynamic-match-image .kf-time {
        font-size: 10px !important;
    }

    .kf-dynamic-match-image .kf-vs {
        font-size: 14px !important;
    }
}

/* ========================================
   Upcoming Matches Sidebar - Minimal Design
   ======================================== */
.kf-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: var(--kf-spacing-lg);
}

.kf-upcoming {
    background: var(--kf-card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--kf-radius-lg);
    border: 1px solid var(--kf-card-border);
    padding: var(--kf-spacing-lg);
}

.kf-upcoming-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--kf-spacing-md);
}

.kf-upcoming-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--kf-text-primary);
    margin: 0;
}

.kf-upcoming-more {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--kf-radius-full);
    color: var(--kf-text-muted);
    transition: var(--kf-transition-fast);
}

.kf-upcoming-more:hover {
    background: var(--kf-accent);
    color: white;
}

.kf-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: var(--kf-spacing-sm);
}

/* Match Item - Minimal Card */
.kf-upcoming-item {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--kf-radius-lg);
    padding: 10px 12px;
    transition: var(--kf-transition-fast);
    text-decoration: none;
}

.kf-upcoming-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.kf-upcoming-item.is-live {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

/* Teams Row - Name left, Logo right */
.kf-match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.kf-match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* Home team: Name first, then logo - align right */
.kf-match-team:first-child {
    flex-direction: row;
    justify-content: flex-end;
    text-align: right;
}

/* Away team: Logo first, then name - align left */
.kf-match-team-away {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
}

.kf-team-logo {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.kf-team-initial {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--kf-text-muted);
}

.kf-team-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--kf-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

/* Match Time/Live - Center */
.kf-match-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 8px;
}

.kf-match-time {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--kf-accent);
    background: rgba(74, 157, 109, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
}

.kf-match-live {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kf-pulse {
    width: 8px;
    height: 8px;
    background: var(--kf-live);
    border-radius: 50%;
    animation: kf-pulse 2s infinite;
}

/* Meta Row - Simplified Single Line */
.kf-match-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.kf-match-meta-simple {
    justify-content: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--kf-text-muted);
}

.kf-meta-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.kf-meta-time {
    color: var(--kf-accent);
    font-weight: 500;
}

.kf-meta-separator {
    opacity: 0.4;
    font-size: 0.6rem;
}

.kf-meta-league {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kf-match-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--kf-live);
    text-transform: uppercase;
}

.kf-match-datetime {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: var(--kf-text-muted);
}

.kf-stream-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: var(--kf-accent);
    border-radius: 50%;
    color: white;
}

/* Match Tags */
.kf-match-tags {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.kf-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.kf-tag-sport {
    background: rgba(74, 157, 109, 0.12);
    color: var(--kf-accent);
}

.kf-tag-league {
    background: rgba(255, 255, 255, 0.06);
    color: var(--kf-text-muted);
}

.kf-tag-custom {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
}

.kf-tag-icon {
    font-size: 0.7rem;
}

/* Empty State */
.kf-upcoming-empty {
    text-align: center;
    padding: var(--kf-spacing-xl) var(--kf-spacing-md);
    color: var(--kf-text-muted);
}

.kf-upcoming-empty svg {
    opacity: 0.3;
    margin-bottom: var(--kf-spacing-sm);
}

.kf-upcoming-empty p {
    margin: 0;
    font-size: var(--kf-font-size-sm);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .kf-content {
        grid-template-columns: 1fr;
    }

    .kf-sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .kf-header-nav {
        display: none;
    }

    .kf-mobile-toggle {
        display: flex;
    }

    .kf-live-indicator .kf-live-text {
        display: none;
    }

    .kf-live-indicator {
        padding: var(--kf-spacing-xs) var(--kf-spacing-sm);
    }

    .kf-main {
        padding-top: 70px;
    }

    .kf-content {
        padding: var(--kf-spacing-md);
    }

    .kf-matches-grid {
        grid-template-columns: 1fr;
    }

    .kf-tabs {
        overflow-x: auto;
        max-width: 100%;
    }
}

/* ========================================
   Utilities
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kf-skeleton {
    background: linear-gradient(90deg, var(--kf-card-bg) 25%, var(--kf-card-bg-hover) 50%, var(--kf-card-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   WordPress Specific
   ======================================== */
.wp-block-post-content {
    max-width: none;
}

.entry-content {
    max-width: none;
}

/* Admin bar fix */
body.admin-bar .kf-top-header {
    top: 32px;
}

body.admin-bar .kf-main {
    padding-top: 102px;
}

body.admin-bar .kf-search-overlay,
body.admin-bar .kf-mobile-nav {
    top: 102px;
}

@media (max-width: 782px) {
    body.admin-bar .kf-top-header {
        top: 46px;
    }

    body.admin-bar .kf-main {
        padding-top: 116px;
    }

    body.admin-bar .kf-search-overlay,
    body.admin-bar .kf-mobile-nav {
        top: 116px;
    }
}

/* ========================================
   Single Match Page
   ======================================== */
.kf-single-match {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--kf-spacing-xl);
}

@media (max-width: 1200px) {
    .kf-single-match {
        grid-template-columns: 1fr;
    }
}

.kf-match-single {
    background: var(--kf-card-bg);
    border-radius: var(--kf-radius-lg);
    border: 1px solid var(--kf-card-border);
    overflow: hidden;
}

/* Match Header - Minimal Design */
.kf-match-header {
    padding: 0;
    background: linear-gradient(180deg, rgba(15, 30, 22, 0.98) 0%, rgba(20, 40, 30, 0.95) 100%);
    position: relative;
}

.kf-match-teams-display {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
    text-align: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .kf-match-teams-display {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .kf-team-display {
        flex-direction: row;
        padding: var(--kf-spacing-lg);
        gap: var(--kf-spacing-md);
        text-align: left;
    }

    .kf-team-away {
        flex-direction: row-reverse;
        text-align: right;
    }

    .kf-match-score-display {
        padding: var(--kf-spacing-lg) !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
}

.kf-team-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--kf-spacing-md) var(--kf-spacing-lg);
}

.kf-team-logo-large {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    padding: 10px;
}

.kf-team-logo-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kf-team-logo-placeholder {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.kf-team-name-large {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--kf-text-primary);
    margin: 0;
}

/* Score Display - Center */
.kf-match-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: var(--kf-spacing-md) var(--kf-spacing-xl);
    background: rgba(0, 0, 0, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 140px;
}

.kf-live-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--kf-live);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kf-live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: kf-pulse 1.5s infinite;
}

.kf-match-minute {
    opacity: 0.9;
    margin-left: 2px;
}

.kf-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.kf-status-finished {
    background: rgba(255, 255, 255, 0.1);
    color: var(--kf-text-secondary);
}

.kf-status-postponed {
    background: #f59e0b;
    color: white;
}

.kf-score-large {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--kf-text-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.kf-score-large span {
    min-width: 36px;
    text-align: center;
}

.kf-score-separator {
    opacity: 0.3;
    font-weight: 300;
}

.kf-match-datetime {
    font-size: 0.75rem;
    color: var(--kf-text-muted);
}

/* Match Info Bar */
.kf-match-info-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--kf-spacing-lg);
    padding: var(--kf-spacing-sm) var(--kf-spacing-lg);
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.kf-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--kf-text-muted);
}

.kf-info-item svg {
    opacity: 0.5;
}

/* Player Wrap */
.kf-player-wrap {
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
    margin: var(--kf-spacing-md);
    border-radius: 12px;
    overflow: hidden;
}

/* Waiting Screen */