/* =========================================
   MODERN SPORTS STREAMING WEBSITE - CSS
   Premium Dark Theme with Animations
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Outfit:wght@700;900&display=swap');

/* ---- CSS Variables ---- */
:root {
    --bg-dark:       #07080d;
    --bg-card:       rgba(18, 21, 32, 0.85);
    --bg-hover:      rgba(30, 35, 52, 0.95);
    --primary:       #00e5ff;
    --primary-dim:   rgba(0, 229, 255, 0.12);
    --primary-glow:  rgba(0, 229, 255, 0.55);
    --secondary:     #ff2d78;
    --secondary-dim: rgba(255, 45, 120, 0.12);
    --secondary-glow:rgba(255, 45, 120, 0.55);
    --gold:          #ffd700;
    --gold-glow:     rgba(255, 215, 0, 0.45);
    --text-main:     #e8eaf6;
    --text-muted:    #7b82a0;
    --border:        rgba(255,255,255,0.07);
    --live-color:    #ff3333;
    --font-ar:       'Cairo', sans-serif;
    --font-heading:  'Outfit', sans-serif;
    --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition:    all 0.35s var(--ease);
    --glass:         blur(18px) saturate(180%);
    --radius-lg:     24px;
    --radius-md:     14px;
    --radius-sm:     8px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0, 229, 255, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(255, 45, 120, 0.05) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-ar);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(0,229,255,0.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ==================================
   NAVBAR
   ================================== */
.custom-nav {
    background: rgba(7, 8, 13, 0.8) !important;
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    transition: var(--transition);
    z-index: 1000;
}

.custom-nav.scrolled {
    background: rgba(7, 8, 13, 0.97) !important;
    box-shadow: 0 4px 40px rgba(0, 229, 255, 0.08);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--primary) !important;
    text-shadow: 0 0 18px var(--primary-glow);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.navbar-brand:hover {
    text-shadow: 0 0 32px var(--primary-glow), 0 0 64px var(--primary-glow);
    transform: scale(1.03);
}

.navbar-brand i {
    color: var(--gold);
    filter: drop-shadow(0 0 10px var(--gold-glow));
    animation: trophy-pulse 3s ease-in-out infinite;
}

@keyframes trophy-pulse {
    0%, 100% { filter: drop-shadow(0 0 8px var(--gold-glow)); transform: rotate(0deg); }
    50%       { filter: drop-shadow(0 0 20px var(--gold-glow)); transform: rotate(-8deg) scale(1.1); }
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    left: 50%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
    box-shadow: 0 0 8px var(--primary-glow);
}

.nav-link:hover::after,
.nav-link.active::after {
    right: 10%;
    left: 10%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-dim) !important;
}

/* Search */
.form-control.nav-search {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.45rem 1rem !important;
    font-family: var(--font-ar);
    transition: var(--transition);
    min-width: 180px;
}

.form-control.nav-search:focus {
    background: rgba(0,229,255,0.06) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(0,229,255,0.12) !important;
    outline: none;
}

.form-control.nav-search::placeholder { color: var(--text-muted); }

.btn-search {
    background: linear-gradient(135deg, var(--primary), #0099cc);
    border: none;
    color: #07080d;
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 0.45rem 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,229,255,0.3);
}

.btn-search:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0,229,255,0.5);
}

.navbar-toggler {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--primary-dim) !important; }

/* ==================================
   SECTION HEADINGS
   ================================== */
.section-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.section-title .icon-glow {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
    font-size: 1.3rem;
    animation: icon-bounce 2.5s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px) scale(1.1); }
}

/* ==================================
   MATCH CARD
   ================================== */
.match-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border-radius: var(--radius-lg);
    padding: 26px 22px 22px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

/* Shimmer top line on hover */
.match-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, transparent);
    transition: var(--transition);
}
.match-card:hover::before {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Glow border on hover */
.match-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    box-shadow: 0 0 0 1px rgba(0,229,255,0.5), inset 0 0 30px rgba(0,229,255,0.04);
    pointer-events: none;
}
.match-card:hover::after { opacity: 1; }

.match-card:hover {
    transform: translateY(-8px) scale(1.015);
    background: var(--bg-hover);
    box-shadow: 0 20px 60px rgba(0, 229, 255, 0.1), 0 8px 30px rgba(0,0,0,0.5);
}

/* Moving background particles on the card */
.match-card .card-bg-art {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,229,255,0.04) 0%, transparent 70%);
    left: -30px;
    bottom: -30px;
    pointer-events: none;
    transition: var(--transition);
}
.match-card:hover .card-bg-art {
    transform: scale(1.5);
    background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
}

/* ---- Teams Container ---- */
.teams-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex: 1;
}

.team {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.team-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent);
    padding: 4px;
}

.match-card:hover .team-logo {
    transform: scale(1.15) rotate(6deg);
    filter: drop-shadow(0 8px 20px rgba(0,229,255,0.35));
}

.team-name {
    font-family: var(--font-ar);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

/* ---- VS Center ---- */
.match-info-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.vs-label {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.match-time {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    letter-spacing: 0.5px;
}

.match-league {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

/* ---- Card Footer ---- */
.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--primary), #0099cc);
    color: #07080d;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 7px 16px;
    border-radius: 99px;
    transition: var(--transition);
    font-family: var(--font-ar);
    box-shadow: 0 4px 14px rgba(0,229,255,0.3);
}
.match-card:hover .watch-btn {
    box-shadow: 0 6px 20px rgba(0,229,255,0.5);
    transform: scale(1.05);
}

/* ==================================
   BADGES
   ================================== */
.badge-live {
    background: rgba(255, 51, 51, 0.15);
    color: var(--live-color);
    border: 1px solid rgba(255,51,51,0.4);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: pulse-live 2s infinite;
    backdrop-filter: blur(4px);
    font-family: var(--font-ar);
}

.badge-live::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--live-color);
    border-radius: 50%;
    animation: dot-pulse 1.2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,51,51,0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(255,51,51,0); }
}
@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.7); }
}

.badge-upcoming {
    background: rgba(0,229,255,0.12);
    color: var(--primary);
    border: 1px solid rgba(0,229,255,0.3);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--font-ar);
}

.badge-finished {
    background: rgba(120,130,150,0.12);
    color: var(--text-muted);
    border: 1px solid rgba(120,130,150,0.25);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--font-ar);
}

/* ==================================
   NO MATCHES STATE
   ================================== */
.no-matches {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-matches i {
    font-size: 5rem;
    color: rgba(0,229,255,0.2);
    margin-bottom: 1.5rem;
    display: block;
}

/* ==================================
   VIDEO PLAYER
   ================================== */
.video-js {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.vjs-big-play-button {
    background: linear-gradient(135deg, var(--primary), #0099cc) !important;
    border: none !important;
    color: #07080d !important;
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    line-height: 80px !important;
    margin-top: -40px !important;
    margin-left: -40px !important;
    box-shadow: 0 0 30px var(--primary-glow) !important;
    transition: var(--transition) !important;
}
.vjs-big-play-button:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 0 50px var(--primary-glow) !important;
}

/* ==================================
   SERVER SWITCHER
   ================================== */
.server-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.server-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ar);
    font-size: 0.88rem;
}
.server-btn:hover {
    background: var(--bg-hover);
    color: var(--text-main);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.server-btn.active {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,229,255,0.2);
}

/* ==================================
   FOOTER
   ================================== */
footer {
    background: rgba(10, 11, 18, 0.98);
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 2rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 14px var(--primary-glow);
    margin-bottom: 0.5rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.footer-seo-text {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.9;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255,255,255,0.03);
}
.footer-social a:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,229,255,0.25);
}

.footer-divider {
    border-color: var(--border) !important;
    margin: 2rem 0 1.5rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ==================================
   HERO / MATCH PAGE
   ================================== */
.match-hero-bg {
    background: linear-gradient(135deg, rgba(0,229,255,0.06) 0%, transparent 50%, rgba(255,45,120,0.04) 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.match-title-hero {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

/* ==================================
   CATEGORY PAGE
   ================================== */
.cat-header {
    text-align: center;
    padding: 40px 0 28px;
}

.cat-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--text-main));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================================
   AOS CUSTOM OVERRIDES
   ================================== */
[data-aos="fade-up"] {
    transform: translateY(30px);
}

/* ==================================
   ANIMATION UTILITIES
   ================================== */
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 10px var(--primary-glow); }
    50%       { box-shadow: 0 0 30px var(--primary-glow), 0 0 60px rgba(0,229,255,0.15); }
}

.animate-glow { animation: glow-pulse 3s ease-in-out infinite; }
.animate-float { animation: float-y 4s ease-in-out infinite; }
.animate-fade-up { animation: fade-in-up 0.6s var(--ease) both; }

/* ==================================
   RESPONSIVE
   ================================== */
@media (max-width: 768px) {
    .navbar-brand { font-size: 1.3rem; }
    .team-logo { width: 52px; height: 52px; }
    .match-card { padding: 18px 16px 16px; }
    .section-title { font-size: 1.3rem; }
    .team-name { max-width: 80px; font-size: 0.82rem; }
    .match-time { font-size: 1rem; }
}

/* ==================================
   UTILITY CLASSES
   ================================== */
.text-primary-glow {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.glass-box {
    background: var(--bg-card);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.gradient-line {
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 99px;
    margin: 1.5rem 0;
}

/* ==================================
   BOOTSTRAP OVERRIDES (Dark Theme)
   ================================== */

/* Pagination */
.pagination {
    gap: 6px;
}

.page-item .page-link {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 16px;
    font-weight: 600;
    font-family: var(--font-ar);
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.page-item .page-link:hover {
    background: var(--primary-dim) !important;
    border-color: rgba(0,229,255,0.4) !important;
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,229,255,0.15);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), #0099cc) !important;
    border-color: var(--primary) !important;
    color: #07080d !important;
    box-shadow: 0 4px 18px rgba(0,229,255,0.35);
}

.page-item.disabled .page-link {
    opacity: 0.35;
    pointer-events: none;
}

/* Tables */
.table {
    color: var(--text-main) !important;
    border-color: var(--border) !important;
    font-family: var(--font-ar);
}

.table th {
    color: var(--text-muted) !important;
    background: rgba(0,229,255,0.04) !important;
    border-color: var(--border) !important;
    font-weight: 600;
    font-size: 0.88rem;
}

.table td {
    color: var(--text-main) !important;
    border-color: var(--border) !important;
    font-size: 0.92rem;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background: rgba(255,255,255,0.02) !important;
    color: var(--text-main) !important;
}

.table-bordered > :not(caption) > * > * {
    border-color: var(--border) !important;
}

/* Alerts */
.alert {
    border-radius: var(--radius-md);
    border: 1px solid;
    font-family: var(--font-ar);
}

.alert-warning {
    background: rgba(255,193,7,0.08) !important;
    border-color: rgba(255,193,7,0.25) !important;
    color: #ffc107 !important;
}

.alert-info {
    background: rgba(0,229,255,0.08) !important;
    border-color: rgba(0,229,255,0.25) !important;
    color: var(--primary) !important;
}

.alert-success {
    background: rgba(40,167,69,0.08) !important;
    border-color: rgba(40,167,69,0.25) !important;
    color: #28a745 !important;
}

/* Badge overrides */
.badge.bg-dark {
    background: rgba(255,255,255,0.06) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border);
    font-family: var(--font-ar);
    font-weight: 600;
}

.badge.bg-success {
    background: rgba(40,167,69,0.15) !important;
    color: #4caf50 !important;
    border: 1px solid rgba(40,167,69,0.3) !important;
}

/* Bootstrap btn overrides still in match.blade */
.btn-outline-secondary {
    border-color: var(--border) !important;
    color: var(--text-muted) !important;
    border-radius: 50% !important;
    width: 42px;
    height: 42px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: var(--transition) !important;
    background: rgba(255,255,255,0.03) !important;
}

.btn-outline-secondary:hover {
    background: var(--primary-dim) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 6px 20px rgba(0,229,255,0.2) !important;
}

/* ==================================
   MATCH PAGE EXTRAS
   ================================== */

/* Finished match overlay */
.match-ended-box {
    text-align: center;
    padding: 60px 20px;
}

.match-ended-box i {
    font-size: 4.5rem;
    color: var(--gold);
    filter: drop-shadow(0 0 16px var(--gold-glow));
    display: block;
    margin-bottom: 1rem;
    animation: float-y 3s ease-in-out infinite;
}

/* Upcoming match video overlay */
.upcoming-overlay {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,193,7,0.3);
    border-radius: var(--radius-md);
    padding: 10px 24px;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

/* ==================================
   HOME PAGE - MATCH COUNT BADGE
   ================================== */
.match-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-dim);
    border: 1px solid rgba(0,229,255,0.25);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 99px;
    font-family: var(--font-ar);
    margin-right: auto;
}

/* ==================================
   LOADING SKELETON (optional)
   ================================== */
@keyframes skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 0%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 100%
    );
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.6s infinite;
    border-radius: var(--radius-sm);
}

/* ==================================
   SCROLLBAR STYLED FOR PLAYER
   ================================== */
.server-switcher::-webkit-scrollbar {
    height: 4px;
}
.server-switcher::-webkit-scrollbar-thumb {
    background: rgba(0,229,255,0.3);
    border-radius: 99px;
}


/* ==================================
   BACKGROUND CANVAS
   ================================== */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* كل المحتوى فوق الـ canvas */
.custom-nav,
main,
footer,
.container {
    position: relative;
    z-index: 1;
}