/* Mondial 2026 - Design System */
/* Dark Theme + Glass Panels + Red Accents — adapted from LeFootNew structure */

:root {
    --primary-glow: rgba(228, 0, 43, 0.4);
    --primary-400: #ff2d55;
    --primary-500: #E4002B;
    --primary-600: #c4001f;
    --primary-800: #7a0014;
    --shadow-glow-primary: 0 0 20px rgba(228, 0, 43, 0.3);

    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-card-dark: #0F0F0F;
    --bg-glass: rgba(10, 10, 10, 0.6);
    --bg-glass-hover: rgba(10, 10, 10, 0.8);
    --bg-glass-light: rgba(255, 255, 255, 0.1);
    --bg-glass-light-strong: rgba(255, 255, 255, 0.15);
    --bg-card-glass-dark: rgba(20, 20, 20, 0.6);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-strong: rgba(255, 255, 255, 0.2);
    --border-glass-light: rgba(255, 255, 255, 0.3);
    --border-card: #222;

    --text-primary: #ffffff;
    --text-secondary: #d4d4d4;
    --text-muted: #a3a3a3;
    --text-grey: #A1A1AA;
    --text-subtle: #737373;
    --text-disabled: #525252;
    --text-dark: #1A1A1A;

    --accent-primary: #E4002B;
    --accent-primary-light: #ff2d55;
    --accent-primary-dark: #c4001f;
    --accent-primary-bg: rgba(228, 0, 43, 0.1);
    --accent-primary-border: rgba(228, 0, 43, 0.2);

    --gold: #D4A843;
    --gold-bg: rgba(212, 168, 67, 0.1);
    --gold-border: rgba(212, 168, 67, 0.2);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 30px rgba(0, 0, 0, 0.3);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 32px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    --glass-blur: blur(24px);
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(at 0% 0%, rgba(255,255,255,0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(228, 0, 43, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-secondary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background-color: rgba(228, 0, 43, 0.2); color: var(--primary-500); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: var(--radius-md); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.1) transparent; }

/* ===== Glass Panel ===== */
.glass-panel {
    background: var(--bg-card-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* ===== Tabs ===== */
.tabs {
    display: flex; align-items: center; gap: 0.25rem; padding: 0.25rem;
    background: rgba(255, 255, 255, 0.05); border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle); overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    padding: 0.5rem 1rem; font-size: 0.75rem; font-weight: 500;
    color: var(--text-muted); border-radius: var(--radius-md); cursor: pointer;
    transition: all var(--transition-fast); white-space: nowrap; flex-shrink: 0;
    background: none; border: none; font-family: inherit;
}
.tab:hover { color: var(--text-primary); }
.tab-active { background: var(--text-primary); color: var(--bg-primary); box-shadow: var(--shadow-sm); }

/* ===== Filter tabs ===== */
.filter-tab {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.5rem 1rem; font-size: 0.8125rem; font-weight: 500;
    color: var(--text-grey); background: transparent; border: none;
    border-radius: var(--radius-lg); cursor: pointer;
    transition: all 0.2s ease; white-space: nowrap; font-family: inherit;
}
.filter-tab:hover { color: var(--text-primary); }
.filter-tab-active, .filter-tab.active { background: white; color: var(--text-dark); }

/* ===== Card ===== */
.card {
    background: var(--bg-glass); backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); overflow: hidden;
}
.card-header {
    padding: 0.75rem 1rem; background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500;
    border-radius: var(--radius-lg); border: 1px solid transparent;
    cursor: pointer; transition: all var(--transition-fast); font-family: inherit;
}
.btn-primary { background: var(--primary-500); color: white; border: none; }
.btn-primary:hover {
    background: var(--primary-400); transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-glow), 0 4px 12px rgba(228, 0, 43, 0.3);
}
.btn-ghost { background: transparent; color: var(--text-muted); border: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }

/* ===== Badge ===== */
.badge {
    display: inline-flex; align-items: center; padding: 0.25rem 0.625rem;
    font-size: 0.625rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; border-radius: var(--radius-full);
}
.badge-host { background: var(--gold-bg); border: 1px solid var(--gold-border); color: var(--gold); }
.badge-conf { background: rgba(255,255,255,0.05); border: 1px solid var(--border-light); color: var(--text-muted); }
.badge-accent { background: var(--accent-primary-bg); border: 1px solid var(--accent-primary-border); color: var(--primary-500); }
.badge-live {
    background: rgba(228, 0, 43, 0.18);
    border: 1px solid rgba(228, 0, 43, 0.6);
    color: #ff4d6d;
    display: inline-flex; align-items: center;
}
.badge-live::before {
    content: ''; width: 6px; height: 6px;
    background: #ff4d6d; border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.7);
    animation: live-pulse 1.4s infinite;
}
@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(255, 77, 109, 0.7); }
    70%  { box-shadow: 0 0 0 6px rgba(255, 77, 109, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(255, 77, 109, 0);   }
}

/* ===== Hero ===== */
.hero-section {
    position: relative; width: 100%; height: 340px;
    padding: 24px; display: flex; flex-direction: column;
    border-radius: var(--radius-2xl); overflow: hidden;
}
.hero-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 20%;
    z-index: 0;
}
.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.75) 100%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 10; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.hero-title { font-size: 52px; font-weight: 800; line-height: 1.05; letter-spacing: -1px; color: var(--text-primary); }
.hero-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 520px; line-height: 1.7; }

@media (max-width: 640px) {
    .hero-section { height: 260px; padding: 16px; border-radius: var(--radius-xl); }
    .hero-title { font-size: 28px; }
    main { padding-top: 3.5rem !important; padding-left: 0.75rem !important; padding-right: 0.75rem !important; gap: 1rem !important; }
    #site-header { height: 3.5rem !important; }
    #site-header .h-full { height: 3.5rem; }
}

/* ===== Group Card ===== */
.group-team-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}
.group-team-row:last-child { border-bottom: none; }
.group-team-row:hover { background: rgba(255,255,255,0.02); }

/* ===== Venue Card ===== */
.venue-img-area {
    height: 180px; position: relative; overflow: hidden;
    display: flex; align-items: flex-end; padding: 1rem;
}
.venue-img-area::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,15,15,0.95) 0%, rgba(15,15,15,0.2) 60%, transparent 100%);
    z-index: 1;
}
.venue-img-label { position: relative; z-index: 2; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); }

/* ===== Stade Card link ===== */
.stade-card-link { transition: transform var(--transition-fast), border-color var(--transition-fast); }
.stade-card-link:hover { transform: translateY(-4px); border-color: rgba(228,0,43,0.3); }

/* ===== Stade Hero (stade detail page) ===== */
.stade-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-card);
    min-height: 280px;
    display: flex;
    align-items: flex-end;
}
.stade-hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.stade-hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.55) 50%, rgba(5,5,5,0.2) 100%);
}
.stade-hero-content {
    position: relative; z-index: 2;
    padding: 1.5rem;
    width: 100%;
}
@media (min-width: 640px) {
    .stade-hero { min-height: 340px; }
    .stade-hero-content { padding: 2rem; }
}

/* ===== Stade Meta Grid ===== */
.stade-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .stade-meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

/* ===== Stade Map ===== */
.stade-map {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(255,255,255,0.02);
}
.stade-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(0.2) brightness(0.85) contrast(1.05);
}

/* ===== Team Card ===== */
.team-card-link {
    display: block; text-decoration: none; color: inherit;
    transition: all 0.3s ease;
}
.team-card-link:hover { transform: translateY(-4px); }
.team-card-link:hover .glass-panel { border-color: rgba(228,0,43,0.3); }

/* ===== Standings Table ===== */
.standings-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.standings-table th {
    padding: 0.5rem 0.25rem; font-size: 0.625rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-subtle);
    text-align: left; border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}
.standings-table td { padding: 0.5rem 0.25rem; border-bottom: 1px solid var(--border-subtle); }
.standings-table tbody tr:last-child td { border-bottom: none; }
.standings-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.standings-table .pos { width: 24px; text-align: center; font-weight: 700; }
.standings-table .qual { color: #22c55e; }
.standings-table .team { max-width: 0; overflow: hidden; }
.standings-table .team-cell { display: flex; align-items: center; gap: 0.375rem; min-width: 0; }
.standings-table .team-cell > a,
.standings-table .team-cell > span:not([class*="font-mono"]) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.standings-table .team-cell > .flag-icon { flex-shrink: 0; }
.standings-table .team-cell > span[class*="font-mono"] { flex-shrink: 0; }
.standings-table .pts { font-weight: 700; color: var(--gold); text-align: center; white-space: nowrap; }
.standings-table .num { text-align: center; color: var(--text-muted); white-space: nowrap; }
@media (min-width: 640px) {
    .standings-table th,
    .standings-table td { padding: 0.625rem 0.75rem; }
    .standings-table .team-cell { gap: 0.5rem; }
    .standings-table .pos { width: 32px; }
}

/* Mobile standings: hide secondary stats, expandable detail rows */
.mobile-ranking-details { display: none; }

@media (max-width: 767px) {
    .mobile-hide-stat { display: none; }

    .standings-table .team-cell .flag-icon {
        width: 30px; height: 20px; flex-shrink: 0; object-fit: cover;
    }
    .standings-table .team { min-width: 110px; }
    .standings-table .team-cell { gap: 0.5rem; }
    .standings-table th.num,
    .standings-table td.num,
    .standings-table td.pts { padding-left: 0.2rem; padding-right: 0.2rem; font-size: 0.75rem; }

    .ranking-row { cursor: pointer; -webkit-tap-highlight-color: transparent; }

    .mobile-ranking-details.open { display: table-row; }
    .mobile-ranking-details td {
        padding: 0.5rem 1rem; border-bottom: 1px solid var(--border-subtle);
        background: rgba(255,255,255,0.015);
    }
    .mobile-ranking-details-content {
        display: flex; gap: 1.25rem; flex-wrap: wrap;
        color: var(--text-muted); font-size: 0.8125rem;
    }
    .mobile-ranking-details-content span { white-space: nowrap; }
}

@media (min-width: 768px) {
    .ranking-row[role="button"] { cursor: default; }
    .mobile-ranking-details { display: none !important; }
}

/* ===== Flag images ===== */
.flag-icon { display: inline-block; vertical-align: middle; border-radius: 2px; object-fit: cover; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.flag-placeholder { display: inline-block; width: 24px; height: 16px; background: rgba(255,255,255,0.04); border-radius: 2px; border: 1px dashed rgba(255,255,255,0.1); }
.flag-placeholder-sm { width: 20px; height: 13px; }

/* ===== Key Date Row ===== */
.date-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.875rem 1rem; border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}
.date-row:last-child { border-bottom: none; }
.date-row:hover { background: rgba(255,255,255,0.02); }

/* ===== Info Item ===== */
.info-item { padding: 1.25rem; background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.info-label { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-subtle); margin-bottom: 0.375rem; font-weight: 600; }
.info-value { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); }

/* ===== Team Hero (equipe page) ===== */
.team-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: stretch;
    padding: 1.25rem;
    background: var(--bg-card-dark);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.team-hero-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.team-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.team-hero-image {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    justify-self: center;
    background: rgba(255,255,255,0.02);
}
.team-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (min-width: 640px) {
    .team-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .team-hero { grid-template-columns: minmax(0, 1fr) 240px; gap: 2rem; }
    .team-hero-image {
        max-width: none;
        width: 240px;
        aspect-ratio: auto;
        align-self: stretch;
        justify-self: end;
        min-height: 320px;
    }
}

/* ===== Team page two-column layout (main + articles sidebar) ===== */
.team-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "side" "main";
    gap: 1.25rem;
}
.team-main { grid-area: main; min-width: 0; }
.team-side { grid-area: side; min-width: 0; }
@media (min-width: 1024px) {
    .team-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        grid-template-areas: "main side";
        gap: 1.5rem;
    }
    .team-side-sticky {
        position: sticky;
        top: 80px;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        padding-right: 4px;
    }
    .team-side-sticky::-webkit-scrollbar { width: 6px; }
    .team-side-sticky::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
}

/* When a team has no articles at all, drop the sidebar and let main take full width */
.team-layout.team-layout--no-side {
    grid-template-columns: 1fr;
    grid-template-areas: "main";
}
.team-layout.team-layout--no-side .team-side { display: none; }

/* ===== Article Sections (team page) ===== */
.article-sections { display: flex; flex-direction: column; gap: 1.5rem; }
.article-section { background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); padding: 1rem 1rem 1.25rem; }
.article-section-header {
    display: flex; align-items: center; gap: 0.5rem;
    padding-bottom: 0.75rem; margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}
.article-section-title { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin: 0; }
.article-section-hint { font-size: 0.6875rem; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.08em; }
.article-section-count {
    margin-left: auto; font-size: 0.6875rem; font-weight: 600;
    color: var(--text-subtle); background: rgba(255,255,255,0.04);
    padding: 0.125rem 0.5rem; border-radius: var(--radius-full); min-width: 24px; text-align: center;
}

.article-grid {
    display: grid; grid-template-columns: 1fr; gap: 0.875rem;
}
@media (min-width: 768px) {
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Sidebar context: keep cards 1-column even on wide screens */
.team-side .article-grid { grid-template-columns: 1fr; }
.team-side .article-card-img { height: 110px; }
.team-side .article-section { padding: 0.75rem 0.75rem 1rem; }
.team-side .article-section-header { padding-bottom: 0.5rem; margin-bottom: 0.5rem; }

/* Listing page context: 3 columns on wide screens */
@media (min-width: 1024px) {
    .article-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.article-empty {
    padding: 1.25rem; text-align: center; color: var(--text-subtle);
    font-size: 0.8125rem; font-style: italic;
}
.article-empty-block {
    background: var(--bg-glass); border: 1px dashed var(--border-light);
    border-radius: var(--radius-lg);
}

/* ===== Article Card ===== */
.article-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.article-card:hover { transform: translateY(-2px); border-color: rgba(228,0,43,0.3); }
.article-card-img {
    height: 140px; background-size: cover; background-position: center;
    background-color: rgba(255,255,255,0.03);
    position: relative;
}
.article-card-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    color: var(--text-subtle); background-image: none !important;
}
.article-card-body { padding: 0.875rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.article-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.article-card-title { font-size: 0.9375rem; font-weight: 700; color: var(--text-primary); line-height: 1.35; margin: 0; }
.article-card-excerpt { font-size: 0.8125rem; color: var(--text-grey); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-footer { margin-top: auto; padding-top: 0.5rem; font-size: 0.6875rem; color: var(--text-subtle); border-top: 1px solid var(--border-subtle); }

/* Label badges */
.article-label {
    display: inline-flex; align-items: center;
    font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-light);
    color: var(--text-muted);
}
.article-label-apercu { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: #93c5fd; }
.article-label-resume { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.3); color: #86efac; }
.article-label-revue  { background: rgba(228,0,43,0.12);  border-color: rgba(228,0,43,0.3);  color: #ff6b85; }

/* Other-team chips inside cards */
.article-team-badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; font-size: 0.625rem; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.06em; }
.article-team-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.125rem 0.375rem; background: rgba(255,255,255,0.04); border-radius: var(--radius-sm); color: var(--text-muted); text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ===== Article Detail page ===== */
.article-detail {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.article-hero-img {
    width: 100%; aspect-ratio: 16 / 9;
    background-size: cover; background-position: center;
    background-color: rgba(255,255,255,0.03);
}
.article-detail-header { padding: 1.5rem 1.5rem 0.75rem; }
.article-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.75rem; color: var(--text-subtle); }
.article-detail-date::before { content: '·'; margin-right: 0.5rem; opacity: 0.5; }
.article-detail-title { font-size: 1.625rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; margin: 0 0 0.5rem; }
.article-detail-excerpt { font-size: 1rem; color: var(--text-grey); line-height: 1.6; margin: 0 0 0.75rem; }
.article-detail-teams { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.article-team-chip {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.25rem 0.625rem; background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-light); border-radius: var(--radius-full);
    font-size: 0.75rem; color: var(--text-muted);
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
.article-team-chip:hover { border-color: rgba(228,0,43,0.4); color: var(--text-primary); }

/* Reading area - the article's own inline <style> is stripped before render,
   so we restyle .mr-article here to match the dark site theme.
   Selectors are forced with :where(...) priority semantics via specificity to
   override any residual classes that might ship with future articles. */
.article-detail-body {
    background: transparent;
    color: var(--text-primary);
    padding: 1.25rem 1.5rem 1.75rem;
    font-size: 1rem;
    line-height: 1.7;
}
.article-detail-body .mr-article { color: var(--text-grey); font-size: 1rem; line-height: 1.7; }
.article-detail-body .mr-article p { margin: 0 0 1.1rem; color: var(--text-grey); }
.article-detail-body .mr-article p:last-child { margin-bottom: 0; }
.article-detail-body .mr-article h1,
.article-detail-body .mr-article h2,
.article-detail-body .mr-article h3,
.article-detail-body .mr-article h4 { color: var(--text-primary); font-weight: 700; line-height: 1.3; }
.article-detail-body .mr-article h1 { font-size: 1.5rem; margin: 1.5rem 0 0.75rem; }
.article-detail-body .mr-article h2 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border-subtle); }
.article-detail-body .mr-article h3 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; }
.article-detail-body .mr-article a,
.article-detail-body a { color: #ff6b85; text-decoration: underline; text-decoration-color: rgba(228,0,43,0.4); text-underline-offset: 3px; }
.article-detail-body .mr-article a:hover { color: #ff8a9f; }
.article-detail-body .mr-article strong { color: var(--text-primary); font-weight: 600; }
.article-detail-body .mr-article em { font-style: italic; color: var(--text-muted); }
.article-detail-body .mr-article ul,
.article-detail-body .mr-article ol { margin: 0.75rem 0 1.1rem; padding-left: 1.5rem; color: var(--text-grey); }
.article-detail-body .mr-article li { margin: 0.4rem 0; }
.article-detail-body .mr-article li::marker { color: var(--primary-500); }
.article-detail-body .mr-article blockquote {
    margin: 1.25rem 0;
    padding: 0.75rem 1.1rem;
    border-left: 3px solid var(--primary-500);
    background: rgba(228,0,43,0.06);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-style: italic;
}
.article-detail-body .mr-article hr {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid var(--border-subtle);
}
.article-detail-body .mr-article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}
.article-detail-body .mr-article code {
    background: rgba(255,255,255,0.06);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.875em;
    color: #ffb4c0;
}
.article-detail-body .mr-article pre {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    overflow-x: auto;
    margin: 1.25rem 0;
}
.article-detail-body .mr-article pre code {
    background: transparent;
    padding: 0;
    color: var(--text-grey);
}
.article-detail-body .mr-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.article-detail-body .mr-article table th,
.article-detail-body .mr-article table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}
.article-detail-body .mr-article table th {
    background-color: rgba(255,255,255,0.04);
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
}
.article-detail-body .mr-article table tr:last-child td { border-bottom: none; }
.article-detail-body .mr-article table tr:hover td { background-color: rgba(255,255,255,0.02); }

@media (min-width: 640px) {
    .article-detail-header { padding: 2rem 2rem 1rem; }
    .article-detail-body { padding: 1.5rem 2.25rem 2.5rem; font-size: 1.0625rem; }
    .article-detail-body .mr-article h1 { font-size: 1.75rem; }
    .article-detail-body .mr-article h2 { font-size: 1.4rem; }
    .article-detail-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .article-section { padding: 0.875rem 0.75rem 1rem; }
    .article-card-img { height: 120px; }
    .article-card-title { font-size: 0.875rem; }
}

/* ===== Mobile nav ===== */
.mobile-nav-link { -webkit-tap-highlight-color: transparent; transition: opacity 0.15s ease; }
.mobile-nav-link:active { opacity: 0.6; }

/* ===== Mobile logo centering ===== */
@media (max-width: 767px) {
    .mobile-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===== Plus bottom-sheet ===== */
.plus-menu-overlay {
    position: fixed;
    inset: 0;
    bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.plus-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}
.plus-menu-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card-dark);
    border-top: 1px solid var(--border-card);
    border-radius: 1rem 1rem 0 0;
    padding: 1.25rem 1rem;
    padding-bottom: 1.25rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.plus-menu-overlay.open .plus-menu-sheet {
    transform: translateY(0);
}
.plus-menu-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}
.plus-menu-link:hover,
.plus-menu-link:active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}
@media (min-width: 1024px) {
    .plus-menu-overlay { display: none !important; }
}

/* ===== Footer accordion ===== */
.footer-accordion summary { list-style: none; -webkit-tap-highlight-color: transparent; }
.footer-accordion summary::-webkit-details-marker { display: none; }
.footer-accordion[open] .footer-chevron { transform: rotate(180deg); }

/* ===== Countdown Banner ===== */
.countdown-banner {
    position: relative;
    display: block;
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(30, 5, 10, 0.9) 50%, rgba(15, 15, 15, 0.95) 100%);
    border: 1px solid rgba(228, 0, 43, 0.15);
    border-radius: var(--radius-xl);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.countdown-banner:hover { border-color: rgba(228, 0, 43, 0.45); }
.countdown-banner:focus-visible { outline: 2px solid #E4002B; outline-offset: 2px; }
.countdown-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background-image: url('../images/Netbet-fr_Desktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.countdown-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-primary);
}
.countdown-units {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    padding: 0.75rem 0.5rem;
}
.countdown-unit .cd-value {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.countdown-unit .cd-label {
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    margin-top: 0.25rem;
}
.countdown-sep {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-500);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 1rem;
}
.countdown-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(228, 0, 43, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 640px) {
    .countdown-inner {
        padding: 1rem 0.5rem;
        gap: 0.5rem;
        background-image: url('../images/Netbet-fr_Mobile.png');
    }
    .countdown-unit { min-width: 56px; padding: 0.5rem 0.25rem; }
    .countdown-unit .cd-value { font-size: 1.5rem; }
    .countdown-sep { font-size: 1rem; margin-bottom: 0.75rem; }
}

/* ===== Animations ===== */
.fade-in { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.slide-up { animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .tab { padding: 0.375rem 0.75rem; font-size: 0.6875rem; }
}
