/* ============================================================
   KOORA LIVE THE ULTIMATE SINGULARITY EDITION (v12.0)
   OLED Black 2.0 | Liquid Mercury | Super-Nova Glow | Zero-Latency
   ============================================================ */

:root {
    --sg-bg: #000000; /* Pure OLED Black */
    --sg-surface: rgba(255, 255, 255, 0.03);
    --sg-primary: #00ff88; /* Singularity Emerald */
    --sg-cyan: #00f0ff; /* Mercury Cyan */
    --sg-gold: #ffcc00; /* Imperial Gold */
    --sg-accent: #ff0055; /* Super-Nova Red */
    --sg-text: #ffffff;
    --sg-text-dim: #94a3b8;
    --sg-border: rgba(0, 255, 136, 0.16);
    --sg-glow: rgba(0, 255, 136, 0.35);
    --sg-gradient: linear-gradient(135deg, #00ff88 0%, #00f0ff 100%);
    --sg-mercury: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 100%);
    
    /* Match Status Colors (Dark) */
    --st-live-bg: #ff0055;
    --st-live-text: #ffffff;
    --st-soon-bg: #f59e0b;
    --st-soon-text: #ffffff;
    --st-ended-bg: #10b981;
    --st-ended-text: #ffffff;
    --st-sch-bg: #3b82f6;
    --st-sch-text: #ffffff;

    --sg-radius: 30px;
    --sg-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--sg-bg);
    color: var(--sg-text);
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% -10%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(0, 240, 255, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
}

.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Singularity Floating Dock */
.elite-main-header {
    position: fixed;
    top: 25px;
    left: 0;
    right: 0;
    z-index: 100000;
}

.header-inner {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(35px) saturate(220%);
    -webkit-backdrop-filter: blur(35px) saturate(220%);
    border: 1px solid rgba(0, 255, 136, 0.22);
    border-radius: 100px;
    padding: 14px 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 50px 120px rgba(0,0,0,0.95), 0 0 50px rgba(0, 255, 136, 0.1);
}

.logo-zenith .mark {
    background: var(--sg-gradient);
    color: #000;
    width: 45px;
    height: 45px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 22px;
    box-shadow: 0 0 30px var(--sg-glow);
}

.logo-zenith .text {
    color: #fff;
    font-weight: 900;
    font-size: 25px;
    letter-spacing: -0.5px;
}

/* Navigation Menu */
.zn-nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.zn-nav-menu a {
    color: var(--sg-text-dim);
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    transition: color 0.3s ease;
}

.zn-nav-menu a:hover,
.zn-nav-menu .current-menu-item a {
    color: var(--sg-primary);
    text-shadow: 0 0 15px var(--sg-glow);
}

/* Singularity Date Switcher */
.elite-date-switcher {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 170px auto 50px;
    max-width: 760px;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
    border-radius: 26px;
    border: 1px solid var(--sg-border);
    backdrop-filter: blur(25px);
}

.elite-date-btn {
    flex: 1;
    padding: 16px 25px;
    border: none;
    background: transparent;
    color: var(--sg-text-dim);
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.5s var(--sg-ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.elite-date-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.elite-date-btn.active {
    background: var(--sg-gradient);
    color: #000 !important;
    box-shadow: 0 20px 50px rgba(0, 255, 136, 0.4);
    transform: translateY(-4px) scale(1.02);
}

/* Singularity Match Card (Liquid Mercury Glass) */
.grid-master {
    display: grid;
    gap: 22px;
    padding-bottom: 130px;
}

.elite-match-card {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    padding: 28px 48px;
    display: grid;
    grid-template-columns: 1fr 180px 1fr 260px;
    align-items: center;
    gap: 35px;
    transition: all 0.7s var(--sg-ease);
    position: relative;
    overflow: hidden;
}

.elite-match-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 4px; height: 100%;
    background: var(--sg-gradient);
    opacity: 0.3;
    transition: 0.5s;
}

.elite-match-card:hover {
    transform: translateY(-12px) scale(1.01);
    border-color: var(--sg-primary);
    box-shadow: 0 60px 120px rgba(0,0,0,1), 0 0 50px rgba(0, 255, 136, 0.2);
}

.elite-match-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 25px var(--sg-primary);
}

.team-zn { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.logo-zn-frame {
    width: 68px;
    height: 68px;
    padding: 12px;
    background: var(--sg-mercury);
    border-radius: 22px;
    border: 1px solid var(--sg-border);
    box-shadow: inset 0 0 25px rgba(255,255,255,0.03);
}

.team-name-zn {
    font-size: 19px;
    font-weight: 950;
    color: #fff;
    text-align: center;
}

/* Score Box */
.score-box-zn {
    font-size: 48px;
    font-weight: 950;
    color: var(--sg-primary);
    text-shadow: 0 0 35px var(--sg-glow);
    text-align: center;
    letter-spacing: -2px;
}

.score-box-zn.live {
    color: var(--sg-gold);
    text-shadow: 0 0 40px rgba(255, 204, 0, 0.65);
}

.status-zn {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--sg-text-dim);
    margin-top: 8px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Status Specific Colors */
.status-zn.status-live {
    background: var(--st-live-bg) !important;
    color: var(--st-live-text) !important;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
    animation: singularityPulse 2s infinite;
}

.status-zn.status-soon {
    background: var(--st-soon-bg) !important;
    color: var(--st-soon-text) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.status-zn.status-ended {
    background: var(--st-ended-bg) !important;
    color: var(--st-ended-text) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.status-zn.status-scheduled {
    background: var(--st-sch-bg) !important;
    color: var(--st-sch-text) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Light Mode Overrides */
[data-theme='light'] .status-zn.status-live { box-shadow: 0 4px 12px rgba(255, 0, 85, 0.3); }
[data-theme='light'] .status-zn.status-soon { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
[data-theme='light'] .status-zn.status-ended { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
[data-theme='light'] .status-zn.status-scheduled { box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

@keyframes singularityPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.8); }
    70% { box-shadow: 0 0 0 20px rgba(255, 0, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0); }
}

/* Action Button */
.btn-watch-zn {
    background: var(--sg-gradient);
    color: #000 !important;
    padding: 16px 32px;
    border-radius: 20px;
    font-weight: 950;
    font-size: 15px;
    text-decoration: none !important;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.35);
    transition: 0.4s var(--sg-ease);
    display: block;
}

.btn-watch-zn:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 240, 255, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .elite-match-card {
        grid-template-columns: 1fr 120px 1fr;
        padding: 22px 20px;
        gap: 20px;
    }
    .action-zn {
        grid-column: 1 / -1;
        border-top: 1px solid var(--sg-border);
        padding-top: 18px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .btn-watch-zn { width: 100%; padding: 12px; }
}

@media (max-width: 480px) {
    .header-inner { padding: 10px 15px; width: 90%; margin: 0 auto; }
    .logo-zenith .text { font-size: 18px; }
    .logo-zenith .mark { width: 35px; height: 35px; font-size: 18px; }
    
    .elite-date-switcher { margin-top: 130px; gap: 5px; padding: 5px; }
    .elite-date-btn { padding: 10px 5px; font-size: 12px; border-radius: 12px; }
    .elite-date-btn i { display: none; } /* Hide icons on very small screens to save space */
    
    .elite-match-card { padding: 18px 15px; border-radius: 20px; gap: 10px; }
    .team-name-zn { font-size: 13px; font-weight: 800; }
    .score-box-zn { font-size: 28px; }
    .logo-zn-frame { width: 45px; height: 45px; padding: 8px; border-radius: 14px; }
    .status-zn { font-size: 9px; padding: 4px 12px; }
    
    .premium-meta-zn { flex-direction: row !important; justify-content: center; gap: 10px !important; flex-wrap: wrap; }
}

@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .elite-date-btn { font-size: 11px; }
    .team-name-zn { font-size: 12px; }
    .score-box-zn { font-size: 24px; }
}

.zn-reveal { animation: sgReveal 1.5s var(--sg-ease) forwards; opacity: 0; }
@keyframes sgReveal {
    from { opacity: 0; transform: translateY(50px) scale(0.95); filter: blur(20px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}


/* ============================================================
   FINAL MOBILE OVERFLOW GUARD — Koora Live Singularity
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

.elite-match-card,
.elite-match-card > *,
.team-zn,
.score-zn,
.action-zn,
.league-zn,
.premium-meta-zn,
.premium-meta-zn span {
    min-width: 0;
    max-width: 100%;
}

.elite-match-card img {
    display: block;
    max-width: 100%;
    height: auto;
}

.team-name-zn,
.league-zn,
.premium-meta-zn span {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.team-name-zn {
    line-height: 1.45;
    text-align: center;
}

.league-zn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    line-height: 1.5;
}

.premium-meta-zn {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.premium-meta-zn span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sg-text-dim);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.premium-meta-zn .league-zn { color: var(--sg-gold); }
.premium-meta-zn .time-zn { color: var(--sg-cyan); }


.btn-watch-zn {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.45;
}

.score-box-zn { white-space: nowrap; }
.status-zn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.35; }

@media (max-width: 992px) {
    .elite-match-card {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(0, 110px) minmax(0, 1fr);
        overflow: hidden;
    }

    .team-zn,
    .score-zn,
    .action-zn { overflow: hidden; }

    .action-zn .premium-meta-zn,
    .action-zn .league-zn,
    .action-zn .btn-watch-zn { width: 100%; }
}

@media (max-width: 480px) {
    .container { width: 100%; max-width: 100%; padding-left: 12px !important; padding-right: 12px !important; }
    .elite-match-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 74px) minmax(0, 1fr);
        padding: 16px 10px;
        gap: 8px;
    }
    .team-name-zn {
        font-size: clamp(11px, 3.4vw, 14px);
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .score-box-zn { font-size: clamp(22px, 7vw, 30px); letter-spacing: -1px; }
    .status-zn { font-size: 8px; padding: 4px 6px; }
    .action-zn { padding-top: 14px; gap: 10px; }
    .premium-meta-zn { margin-bottom: 0 !important; }
    .btn-watch-zn { padding: 11px 8px; font-size: 13px; }
}

@media (max-width: 360px) {
    .elite-match-card { grid-template-columns: minmax(0, 1fr) minmax(0, 64px) minmax(0, 1fr); padding-left: 8px; padding-right: 8px; }
    .team-name-zn { font-size: 11px; }
    .score-box-zn { font-size: 22px; }
    .btn-watch-zn { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .elite-match-card, .btn-watch-zn, .elite-date-btn, .zn-reveal { transition: none !important; animation: none !important; }
}

/* ============================================================
   KOORA LIVE REFERENCE MATCH SKIN
   ============================================================ */
/* Koora Live Reference Skin — an original implementation inspired by the requested layout */
:root {
  --ref-bg: #0a0c12;
  --ref-panel: #12151f;
  --ref-panel-2: #171b28;
  --ref-border: #262c3b;
  --ref-text: #e9edf5;
  --ref-muted: #aeb8c8;
  --ref-red: #b51818;
  --ref-red-2: #d21f1f;
  --ref-blue: #3f6fd6;
  --ref-green: #0a9c3a;
  --ref-gold: #f5a600;
  --ref-radius: 10px;
  --ref-shadow: 0 6px 20px -8px rgba(0,0,0,.55);
}

html { background: var(--ref-bg); }
body.koora-reference-theme {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--ref-bg);
  color: var(--ref-text);
  font-family: "Tajawal", "Arial", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
body.koora-reference-theme a { color: inherit; }
body.koora-reference-theme button,
body.koora-reference-theme a { -webkit-tap-highlight-color: transparent; }

.kora-site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 74px;
  background: #12151f;
  border-bottom: 1px solid var(--ref-border);
  box-shadow: 0 2px 16px -6px rgba(0,0,0,.55);
}
.kora-site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #8f1212, #d21f1f, #f5a600, #8f1212);
}
.kora-header-shell {
  width: min(92%, 1080px);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.kora-brand-block { flex: 0 0 auto; }
.kora-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.kora-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #d21f1f, #8f1212);
  box-shadow: 0 5px 14px rgba(181,24,24,.35);
  font-size: 20px;
  font-weight: 900;
}
.kora-brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.kora-brand-copy strong { font-size: 17px; font-weight: 800; }
.kora-brand-copy small { color: #9ba7ba; font-size: 9px; direction: ltr; text-align: right; }
.kora-network-nav { display: flex; align-items: center; gap: 5px; min-width: 0; }
.kora-network-nav a {
  padding: 5px 7px;
  color: #d7deeb;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.kora-network-nav a:hover { color: #fff; border-bottom-color: var(--ref-red-2); }
.kora-social-nav { display: flex; align-items: center; gap: 5px; }
.kora-social-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 5px;
  color: #fff;
  background: var(--social-color);
  font-size: 12px;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
.kora-social-icon:hover { transform: translateY(-2px); filter: brightness(1.15); }
.kora-theme-toggle-desktop {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 12px;
  border: 1px solid var(--ref-border);
  border-radius: 50%;
  background: var(--ref-panel-2);
  color: var(--ref-gold);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.kora-theme-toggle-desktop i { font-size: 16px; }
.kora-theme-toggle-desktop:hover {
  background: var(--ref-gold);
  color: #000;
  border-color: var(--ref-gold);
}
.kora-menu-toggle { display: none; border: 0; background: var(--ref-red-2); color: #fff; width: 38px; height: 38px; border-radius: 8px; }
.kora-site-des {
  width: min(92%, 1080px);
  height: 35px;
  margin: 10px auto 18px;
  display: grid;
  place-items: center;
  color: #75b48b;
  background: #0c241b;
  border: 1px solid #103e2b;
  border-radius: var(--ref-radius);
  font-size: 12px;
}
.kora-site-des span { margin: 0 4px; color: #4e8563; }
.kora-mobile-nav { display: none; }

.kora-reference-main { padding: 0 0 48px; }
.kora-reference-container { width: min(92%, 1080px); margin: 0 auto; }
.kora-page-title {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 14px;
  margin-bottom: 8px;
  background: var(--ref-panel);
  border-radius: var(--ref-radius);
  border: 1px solid var(--ref-border);
}
.kora-page-title h1 { margin: 0; color: #f0f3f9; font-size: 14px; font-weight: 700; }
.kora-date-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 9px; }
.kora-date-tabs .elite-date-btn {
  display: block;
  padding: 8px 6px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.kora-date-tabs .elite-date-btn:nth-child(1) { background: linear-gradient(135deg,#5580e0,#3457b8); }
.kora-date-tabs .elite-date-btn:nth-child(2) { background: linear-gradient(135deg,#d21f1f,#8f1212); box-shadow: 0 4px 12px -4px rgba(181,24,24,.55); }
.kora-date-tabs .elite-date-btn:nth-child(3) { background: linear-gradient(135deg,#ffc23d,#e59400); color: #251a00; }
.kora-date-tabs .elite-date-btn:hover,
.kora-date-tabs .elite-date-btn.active { transform: translateY(-2px); filter: brightness(1.08); }

.kora-matches-container { display: flex; flex-direction: column; gap: 8px; }
.elite-match-card.kora-match-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--ref-panel);
  border: 1px solid var(--ref-border);
  border-radius: 4px;
  box-shadow: var(--ref-shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.elite-match-card.kora-match-card:hover { transform: translateY(-2px); border-color: rgba(181,24,24,.7); box-shadow: 0 12px 24px -14px rgba(181,24,24,.8); }
.kora-match-link { display: block; min-width: 0; color: inherit; text-decoration: none; }
.kora-match-head {
  min-width: 0;
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255,255,255,.045);
  color: var(--ref-muted);
  font-size: 10px;
}
.kora-match-league, .kora-match-status { min-width: 0; display: inline-flex; align-items: center; gap: 5px; }
.kora-match-league span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kora-match-league img { width: 16px; height: 16px; object-fit: contain; }
.kora-match-status { color: #ff9f3f; white-space: nowrap; }
.kora-match-status.is-live { color: #ff5555; }
.kora-match-status.is-ended { color: #ff9f3f; }
.kora-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 5px rgba(229,57,53,.15); }
.kora-match-body {
  min-width: 0;
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}
.kora-team { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.kora-team-home { order: 1; }
.kora-team-away { order: 3; flex-direction: row-reverse; }
.kora-team-logo { flex: 0 0 55px; width: 55px; height: 55px; display: grid; place-items: center; overflow: hidden; }
.kora-team-logo img { display: block; width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.team-name-zn { min-width: 0; overflow-wrap: anywhere; word-break: break-word; color: #e6ebf4; font-size: 13px; line-height: 1.4; text-align: center; }
.kora-match-center { order: 2; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.kora-score { direction: ltr; color: #fff; font-size: 26px; font-weight: 900; line-height: 1.1; letter-spacing: 1px; }
.kora-score b { padding: 0 3px; color: #cfd5e1; font-weight: 500; }
.kora-match-time { margin-top: 4px; color: #aeb8c8; font-size: 11px; direction: ltr; }
.kora-center-status { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; margin-top: 4px; padding: 2px 9px; border-radius: 12px; background: #717d8c; color: #fff; font-size: 10px; }
.kora-center-status.is-live { background: #b51818; }
.kora-match-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 6px 10px; border-top: 1px solid rgba(255,255,255,.05); color: #8792a4; font-size: 10px; }
.kora-match-channel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kora-watch-hint { color: #e0a332; white-space: nowrap; }
.kora-empty-state { padding: 55px 20px; text-align: center; background: var(--ref-panel); border: 1px solid var(--ref-border); border-radius: 4px; color: var(--ref-muted); }
.kora-empty-state i { display: block; margin-bottom: 10px; color: #718096; font-size: 36px; }
.kora-empty-state h2 { margin: 0 0 5px; font-size: 18px; color: #e6ebf4; }
.kora-empty-state p { margin: 0; font-size: 12px; }

.kora-news-section { margin-top: 28px; }
.kora-section-heading { border-right: 3px solid var(--ref-red-2); padding-right: 10px; margin-bottom: 12px; }
.kora-section-heading h2 { margin: 0; font-size: 18px; color: #edf1f7; }
.kora-news-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.kora-news-card { min-width: 0; overflow: hidden; background: var(--ref-panel); border: 1px solid var(--ref-border); border-radius: 5px; }
.kora-news-thumb { display: block; height: 125px; background: #171b28; overflow: hidden; }
.kora-news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kora-news-placeholder { height: 100%; display: grid; place-items: center; color: #657084; font-size: 28px; }
.kora-news-content { padding: 9px 10px 11px; }
.kora-news-content h3 { margin: 0 0 5px; font-size: 12px; line-height: 1.5; }
.kora-news-content h3 a { text-decoration: none; }
.kora-news-content time { color: #8490a4; font-size: 10px; }
.kora-no-news { grid-column: 1 / -1; color: var(--ref-muted); text-align: center; }

@media (max-width: 800px) {
  .kora-header-shell { width: calc(100% - 24px); }
  .kora-network-nav { display: none; }
  .kora-menu-toggle { display: block; }
  .kora-social-nav { margin-right: auto; }
  .kora-reference-container, .kora-site-des { width: calc(100% - 24px); }
  .kora-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .kora-site-header { height: 62px; }
  .kora-brand-mark { width: 32px; height: 32px; font-size: 17px; }
  .kora-brand-copy strong { font-size: 14px; }
  .kora-social-icon:nth-child(n+4) { display: none; }
  .kora-site-des { margin-top: 8px; margin-bottom: 10px; height: 32px; font-size: 11px; }
  .kora-page-title { min-height: 38px; padding-inline: 10px; }
  .kora-page-title h1 { font-size: 12px; }
  .kora-date-tabs { gap: 5px; }
  .kora-date-tabs .elite-date-btn { padding: 7px 3px; font-size: 10px; }
  .kora-match-head { padding-inline: 7px; font-size: 9px; }
  .kora-match-body { grid-template-columns: minmax(0,1fr) 70px minmax(0,1fr); gap: 3px; min-height: 140px; padding: 8px 5px; }
  .kora-team { flex-direction: column; gap: 3px; }
  .kora-team-away { flex-direction: column; }
  .kora-team-logo { flex-basis: 48px; width: 48px; height: 48px; }
  .kora-team-logo img { width: 45px; height: 45px; }
  .team-name-zn { width: 100%; font-size: 11px; }
  .kora-score { font-size: 19px; }
  .kora-match-time { font-size: 10px; }
  .kora-match-foot { font-size: 9px; padding-inline: 7px; }
  .kora-news-grid { grid-template-columns: 1fr; }
  .kora-news-thumb { height: 145px; }
}
@media (max-width: 340px) {
  .kora-header-shell, .kora-reference-container, .kora-site-des { width: calc(100% - 16px); }
  .kora-social-nav { gap: 3px; }
  .kora-social-icon { width: 22px; height: 22px; font-size: 10px; }
  .kora-match-body { grid-template-columns: minmax(0,1fr) 62px minmax(0,1fr); }
  .team-name-zn { font-size: 10px; }
  .kora-score { font-size: 17px; }
}

.kora-footer { margin-top: 35px; padding: 22px 12px 80px; border-top: 1px solid var(--ref-border); background: #0c0e16; }
.kora-footer-inner { width: min(92%, 1080px); margin: 0 auto; text-align: center; }
.kora-footer-brand { color: #e9edf5; font-weight: 800; }
.kora-footer-brand span { color: var(--ref-red-2); margin: 0 3px; }
.kora-footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.kora-footer-links a { color: #aeb8c8; font-size: 12px; text-decoration: none; }
.kora-footer-links a:hover { color: #fff; }
.kora-footer p { margin: 0; color: #748096; font-size: 10px; }
@media (max-width: 800px) {
  .kora-mobile-nav {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 56px;
    background: rgba(18,21,31,.97);
    border-top: 1px solid var(--ref-border);
    box-shadow: 0 -6px 18px rgba(0,0,0,.28);
    backdrop-filter: blur(8px);
  }
  .kora-mobile-nav a, .kora-mobile-nav button {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: #b7c0cf;
    font: inherit;
    font-size: 9px;
    text-decoration: none;
    cursor: pointer;
  }
  .kora-mobile-nav a:first-child { color: #ff9a34; }
  .kora-mobile-nav i { font-size: 16px; }
  .kora-footer { padding-bottom: 75px; }
  .kora-mobile-nav.is-open { display: grid; }
  .kora-network-nav.is-open {
    position: absolute;
    top: 62px;
    right: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px;
    background: #12151f;
    border: 1px solid var(--ref-border);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,.45);
  }
}
body.koora-reference-theme.light-mode {
  --ref-bg: #e8eff9;
  --ref-panel: #ffffff;
  --ref-panel-2: #f4f7fb;
  --ref-border: #dbe6f5;
  --ref-text: #2b303b;
  --ref-muted: #718096;
  
  /* Match Status Colors (Light) */
  --st-live-bg: #d21f1f;
  --st-live-text: #ffffff;
  --st-soon-bg: #f5a600;
  --st-soon-text: #ffffff;
  --st-ended-bg: #718096;
  --st-ended-text: #ffffff;
  --st-sch-bg: #edf2f7;
  --st-sch-text: #4a5568;

  background: var(--ref-bg);
  color: var(--ref-text);
}
body.koora-reference-theme.light-mode .kora-site-header,
body.koora-reference-theme.light-mode .kora-mobile-nav { background: #fff; }
body.koora-reference-theme.light-mode .kora-brand-copy strong,
body.koora-reference-theme.light-mode .kora-page-title h1,
body.koora-reference-theme.light-mode .kora-section-heading h2,
body.koora-reference-theme.light-mode .kora-empty-state h2,
body.koora-reference-theme.light-mode .kora-news-content h3 a,
body.koora-reference-theme.light-mode .team-name-zn { color: #2b303b; }
body.koora-reference-theme.light-mode .kora-network-nav a { color: #475569; }
body.koora-reference-theme.light-mode .kora-footer { background: #f4f7fb; }

/* Final specificity guard: neutralize legacy Singularity card rules */
.elite-match-card.kora-match-card {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  padding: 0 !important;
  border-radius: 4px !important;
  background: var(--ref-panel) !important;
  backdrop-filter: none !important;
}
.elite-match-card.kora-match-card .team-name-zn {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
@media (max-width: 560px) {
  .elite-match-card.kora-match-card .team-name-zn { width: 100% !important; font-size: 11px !important; }
}
body.koora-reference-theme.light-mode .elite-match-card.kora-match-card .team-name-zn { color: #2b303b !important; }

/* Automatic Match Status Colors (Adaptive) */
.match-status.status-live { background: var(--st-live-bg) !important; color: var(--st-live-text) !important; box-shadow: 0 0 15px rgba(255, 0, 85, 0.3); animation: livePulse 2s infinite; }
.match-status.status-soon { background: var(--st-soon-bg) !important; color: var(--st-soon-text) !important; font-weight: 800; }
.match-status.status-ended { background: var(--st-ended-bg) !important; color: var(--st-ended-text) !important; opacity: 0.9; }
.match-status.status-scheduled { background: var(--st-sch-bg) !important; color: var(--st-sch-text) !important; }

@keyframes livePulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Page Live: Upcoming Item Live Now Style */
.upcoming-item.is-live-now { border-right: 4px solid #ff0055; background: rgba(255, 0, 85, 0.05); }
.upcoming-item.is-live-now .vs { color: #ff0055; font-weight: 800; animation: livePulse 1.5s infinite; }
