/* ═══════════════════════════════════════════════════════════
   BARÇA CANADA - Complete Fan Media Site
   ═══════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blaugrana: #a50044;
    --barca-blue: #004d98;
    --gold: #edbb00;
    --dark: #0a0a14;
    --dark-2: #12121e;
    --dark-3: #1a1a2e;
    --gray-50: #fafafa;
    --gray-100: #f5f5f7;
    --gray-200: #e8e8ec;
    --gray-400: #9999a8;
    --gray-500: #6b6b7b;
    --gray-700: #3a3a4a;
    --white: #ffffff;
    --red: #dc2626;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --font: 'Inter', sans-serif;
    --font-title: 'Montserrat', sans-serif;
}

body { font-family: var(--font); background: var(--dark); color: var(--gray-200); line-height: 1.7; font-size: 17px; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* ── Top Bar ─────────────────────────────────────── */
.top-bar { background: var(--dark); padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; }
.top-links { display: flex; gap: 16px; }
.top-links a { font-size: 11px; color: var(--gray-400); font-weight: 500; transition: color 0.2s; }
.top-links a:hover { color: var(--gold); }
.top-social { display: flex; gap: 8px; }
.top-social a { font-size: 10px; color: var(--gray-400); font-weight: 700; background: rgba(255,255,255,0.06); padding: 3px 8px; border-radius: 3px; transition: background 0.2s; }
.top-social a:hover { background: var(--blaugrana); color: #fff; }

/* ── Header ─────────────────────────────────────── */
.header { background: var(--dark-2); padding: 12px 0; }
.header-inner { display: flex; align-items: center; gap: 20px; }
.logo-text { font-family: var(--font-title); font-size: 26px; font-weight: 900; letter-spacing: 1px; white-space: nowrap; }
.logo-text-sm { font-size: 18px; margin-bottom: 8px; }
.logo-barca { color: var(--blaugrana); }
.logo-canada { color: var(--white); }
.logo-mobile { display: none; }
.header-search { flex: 1; max-width: 360px; position: relative; margin-left: 30px; }
.header-search input { width: 100%; padding: 9px 40px 9px 14px; border: none; border-radius: 6px; background: rgba(255,255,255,0.08); color: #fff; font-size: 13px; }
.header-search input::placeholder { color: var(--gray-400); }
.header-search input:focus { outline: none; background: rgba(255,255,255,0.12); }
.search-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--gray-400); cursor: pointer; }
.header-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.dark-toggle { background: rgba(255,255,255,0.08); border: none; color: #fff; width: 44px; height: 24px; border-radius: 12px; cursor: pointer; position: relative; transition: background 0.3s; padding: 0; overflow: hidden; }
.dark-toggle::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); transition: transform 0.4s cubic-bezier(0.68,-0.55,0.265,1.55), background 0.3s; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.dark-toggle .icon-sun, .dark-toggle .icon-moon { position: absolute; top: 50%; transform: translateY(-50%); font-size: 12px; transition: opacity 0.3s; }
.dark-toggle .icon-sun { left: 5px; opacity: 1; }
.dark-toggle .icon-moon { right: 5px; opacity: 0.5; }
[data-theme="dark"] .dark-toggle { background: rgba(255,255,255,0.15); }
[data-theme="dark"] .dark-toggle::before { transform: translateX(20px); background: #8b9dc3; }
.dark-toggle:hover { background: rgba(255,255,255,0.2); }

/* ── Navigation ─────────────────────────────────── */
.nav { background: linear-gradient(90deg, var(--blaugrana), var(--barca-blue)); position: sticky; top: 0; z-index: 1000; box-shadow: 0 3px 15px rgba(0,0,0,0.2); }
.nav-inner { display: flex; align-items: center; min-height: 48px; }
.nav-menu { list-style: none; display: flex; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: block; padding: 14px 16px; color: #fff; font-size: 16px; font-weight: 600; transition: background 0.2s; }
.nav-menu > li > a:hover, .nav-menu > li > a.active { background: rgba(0,0,0,0.2); }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 200px; border-radius: 0 0 8px 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); list-style: none; z-index: 100; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a { display: block; padding: 10px 16px; font-size: 13px; color: #e0e0e8; border-bottom: 1px solid rgba(255,255,255,0.06); transition: background 0.2s; }
.dropdown li a:hover { background: var(--gray-100); color: var(--blaugrana); }
.dropdown li:last-child a { border-bottom: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 12px 0; position: relative; width: 28px; height: 28px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; position: absolute; left: 3px; transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); }
.nav-toggle span:nth-child(1) { top: 6px; }
.nav-toggle span:nth-child(2) { top: 13px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.active span:nth-child(1) { top: 13px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.nav-toggle.active span:nth-child(3) { top: 13px; transform: rotate(-45deg); }

/* Nav right tools - visible on mobile in the gradient bar */
.nav-right-tools { display: none; margin-left: auto; align-items: center; gap: 8px; }
.nav-search-mini { position: relative; }
.nav-search-mini input { width: 120px; padding: 7px 12px; border-radius: 6px; border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 12px; transition: width 0.3s; }
.nav-search-mini input::placeholder { color: rgba(255,255,255,0.6); }
.nav-search-mini input:focus { width: 160px; background: rgba(255,255,255,0.25); outline: none; }

/* ── Hero Section ─────────────────────────────────── */
.hero-section { padding: 20px 0; background: var(--dark); }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; height: 420px; }
.hero-main { position: relative; border-radius: var(--radius); overflow: hidden; }
.hero-main-link { display: block; height: 100%; }
.hero-main-link img { width: 100%; height: 100%; object-fit: cover; }
.hero-main-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 24px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); }
.hero-main-overlay h1 { font-family: var(--font-title); font-size: 32px; font-weight: 800; color: #fff; line-height: 1.3; margin-top: 10px; }
.hero-meta { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,0.6); display: flex; gap: 12px; }
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.hero-side-card { flex: 1; position: relative; border-radius: var(--radius); overflow: hidden; }
.hero-side-card a { display: block; height: 100%; }
.hero-side-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-side-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); }
.hero-side-overlay h3 { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.3; margin-top: 6px; }

/* Tags */
.tag { display: inline-block; padding: 3px 9px; border-radius: 3px; font-size: 10px; font-weight: 700; color: #fff; letter-spacing: 0.3px; text-transform: uppercase; }
.tag-liga { background: var(--barca-blue); }
.tag-mercato { background: #16a34a; }
.tag-ucl { background: #1e3a5f; }
.tag-analyse { background: #7c3aed; }
.tag-notes { background: #ea580c; }
.tag-conference { background: #6b7280; }
.tag-canada { background: #dc2626; }

/* ── Content Layout ─────────────────────────────── */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
.section { padding: 40px 0; background: var(--dark-2); }
.section-alt { background: var(--dark-3); }
.section-title { font-family: var(--font-title); font-size: 30px; font-weight: 800; margin-bottom: 24px; padding-left: 14px; border-left: 4px solid var(--blaugrana); color: var(--white); }

/* ── Articles Grid ─────────────────────────────── */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.article-card { background: var(--dark-3); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.3); transition: transform 0.3s, box-shadow 0.3s; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.article-card-img { display: block; position: relative; height: 180px; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-img .tag { position: absolute; top: 10px; left: 10px; }
.article-card-body { padding: 16px; }
.article-card-body h3 { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.article-card-body h3 a { color: var(--white); transition: color 0.2s; }
.article-card-body h3 a:hover { color: var(--blaugrana); }
.article-card-body p { font-size: 15px; color: var(--gray-400); line-height: 1.5; margin-bottom: 10px; }
.article-card-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--gray-400); }
.article-card-meta .author { font-weight: 600; }

.btn-load-more { display: block; width: 100%; padding: 14px; margin-top: 24px; background: var(--dark-3); border: 2px solid rgba(255,255,255,0.1); border-radius: var(--radius); font-size: 14px; font-weight: 600; color: #e0e0e8; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.btn-load-more:hover { border-color: var(--blaugrana); color: var(--blaugrana); }

/* ── Sidebar ─────────────────────────────────────── */
.sidebar-widget { background: var(--dark-3); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.widget-title { font-family: var(--font-title); font-size: 18px; font-weight: 800; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--blaugrana); text-transform: uppercase; letter-spacing: 0.5px; color: var(--white); }

/* Match Widget */
.widget-match { text-align: center; }
.widget-match-league { font-size: 11px; color: var(--blaugrana); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.widget-match-teams { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 10px; }
.wm-team { font-size: 20px; font-weight: 900; color: #ffffff; }
.wm-vs { font-size: 12px; color: var(--gray-400); font-weight: 600; }
.widget-match-info { font-size: 13px; font-weight: 600; color: #ffffff; }
.widget-match-venue { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* Social Buttons */
.social-buttons { display: flex; flex-direction: column; gap: 8px; }
.social-btn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; transition: opacity 0.2s; }
.social-btn:hover { opacity: 0.85; }
.social-fb { background: #1877f2; color: #fff; }
.social-tw { background: #0f1419; color: #fff; }
.social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.social-yt { background: #ff0000; color: #fff; }
.social-tk { background: #010101; color: #fff; }
.social-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; background: rgba(255,255,255,0.2); border-radius: 50%; }
.social-info { flex: 1; }
.social-info strong { display: block; font-size: 13px; }
.social-info small { font-size: 10px; opacity: 0.8; }
.social-follow { font-size: 11px; font-weight: 700; background: rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 4px; }

/* Trending */
.trending-list { display: flex; flex-direction: column; gap: 0; }
.trending-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 16px; font-weight: 500; color: var(--gray-200); transition: color 0.2s; }
.trending-item:hover { color: var(--blaugrana); }
.trending-item:last-child { border-bottom: none; }
.trending-num { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--blaugrana); color: #fff; border-radius: 50%; font-size: 11px; font-weight: 800; flex-shrink: 0; }

/* Classement */
.classement-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.classement-table th { text-align: left; padding: 8px 6px; border-bottom: 2px solid var(--gray-200); font-weight: 700; color: var(--gray-500); font-size: 11px; text-transform: uppercase; }
.classement-table td { padding: 8px 6px; border-bottom: 1px solid var(--gray-200); }
.classement-table tr.highlight { background: rgba(165,0,68,0.06); font-weight: 700; }
.classement-table tr.highlight td { color: var(--blaugrana); }

/* ── Canada Section ─────────────────────────────── */
.canada-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.canada-card { background: var(--dark-3); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.3); transition: transform 0.3s; }
.canada-card:hover { transform: translateY(-3px); }
.canada-icon { font-size: 32px; margin-bottom: 12px; }
.canada-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.canada-card p { font-size: 14px; color: var(--gray-500); line-height: 1.5; }

/* ── Trophées Section ──────────────────────────────── */
.section-trophees { background: var(--dark); padding: 50px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.trophees-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trophee-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 16px 24px; background: linear-gradient(180deg, var(--dark-3) 0%, var(--dark-2) 100%); border-radius: 14px; border: 1px solid rgba(255,255,255,0.06); transition: transform 0.3s, border-color 0.3s; }
.trophee-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.trophee-card img { height: 100px; width: auto; object-fit: contain; margin-bottom: 16px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }
.trophee-name { font-size: 11px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.trophee-count { font-family: var(--font-title); font-size: 28px; font-weight: 900; color: var(--white); line-height: 1.2; }
.trophee-count small { font-size: 13px; font-weight: 600; color: var(--blaugrana); }

@media (max-width: 768px) {
    .trophees-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .trophee-card { padding: 20px 12px 18px; }
    .trophee-card img { height: 70px; }
    .trophee-count { font-size: 22px; }
}

/* ── Newsletter ─────────────────────────────────── */
.section-newsletter { background: linear-gradient(135deg, var(--blaugrana), var(--barca-blue)); padding: 40px 0; }
.newsletter-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.newsletter-text h3 { font-family: var(--font-title); font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.newsletter-text p { font-size: 16px; color: rgba(255,255,255,0.7); }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { padding: 12px 18px; border: none; border-radius: 6px; font-size: 14px; width: 280px; }
.newsletter-form input:focus { outline: none; }
.newsletter-form button { padding: 12px 24px; background: var(--gold); color: var(--dark); border: none; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.newsletter-form button:hover { background: #ffd000; }

/* ── Footer ─────────────────────────────────────── */
.footer { background: var(--dark); padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-col h5 { color: var(--white); font-size: 13px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; font-size: 13px; color: var(--gray-400); margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-about { font-size: 12px; color: var(--gray-400); line-height: 1.6; margin-top: 6px; }
.footer-newsletter { display: flex; gap: 6px; margin-top: 10px; }
.footer-newsletter input { flex: 1; padding: 8px 12px; border: none; border-radius: 4px; font-size: 12px; background: rgba(255,255,255,0.08); color: #fff; }
.footer-newsletter input::placeholder { color: var(--gray-500); }
.footer-newsletter button { padding: 8px 14px; background: var(--blaugrana); color: #fff; border: none; border-radius: 4px; font-size: 12px; font-weight: 700; cursor: pointer; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px; text-align: center; }
.footer-legal { display: flex; justify-content: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.footer-legal a { font-size: 11px; color: var(--gray-400); transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold); }
.footer-social-bottom { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.footer-social-bottom a { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.06); color: var(--gray-400); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; transition: background 0.2s; }
.footer-social-bottom a:hover { background: var(--blaugrana); color: #fff; }
.footer-copy { font-size: 11px; color: var(--gray-500); }

/* ── Dark Mode ─────────────────────────────────── */
[data-theme="dark"] { --gray-100: #0f0f1a; --gray-50: #0c0c18; --gray-200: #1e1e30; --white: #16162a; --gray-700: #e0e0e8; --gray-500: #9999aa; --gray-400: #777; --shadow: 0 2px 12px rgba(0,0,0,0.2); }
[data-theme="dark"] body { background: #0a0a14; }
[data-theme="dark"] .article-card-body h3 a,
[data-theme="dark"] .canada-card h4,
[data-theme="dark"] .section-title,
[data-theme="dark"] .widget-title,
[data-theme="dark"] .trending-item,
[data-theme="dark"] .wm-team { color: #f0f0f0; }
[data-theme="dark"] .dropdown { background: var(--dark-3); }
[data-theme="dark"] .dropdown li a { color: #ccc; border-bottom-color: rgba(255,255,255,0.05); }
[data-theme="dark"] .dropdown li a:hover { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .classement-table th { color: #888; }
[data-theme="dark"] .classement-table td { color: #ccc; border-bottom-color: rgba(255,255,255,0.05); }
[data-theme="dark"] .header-search input { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .btn-load-more { background: var(--dark-3); border-color: rgba(255,255,255,0.1); color: #ccc; }

/* ── Large Screens ─────────────────────────────────── */
@media (min-width: 1600px) {
    .container { max-width: 1600px; padding: 0 60px; }
    .articles-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-grid { height: 500px; }
}
@media (min-width: 2000px) {
    .container { max-width: 1900px; padding: 0 80px; }
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .canada-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .hero-grid { grid-template-columns: 1fr; height: auto; }
    .hero-main { height: 280px; }
    .hero-side { flex-direction: row; gap: 8px; }
    .hero-side-card { height: 160px; }
    .content-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .newsletter-card { flex-direction: column; text-align: center; }
    .newsletter-form input { width: 100%; }
    .sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .container { padding: 0 12px; }
    .top-bar { display: none; }
    .logo-desktop { display: none; }
    .logo-mobile { display: inline; font-family: var(--font-title); font-size: 26px; font-weight: 900; }
    .header-search { margin-left: 12px; }
    .header-search input { padding: 8px 34px 8px 10px; font-size: 12px; }
    .nav-toggle { display: block; }
    .nav-menu { display: none; flex-direction: column; width: 100%; }
    .nav-menu.active { display: flex; }
    .nav-menu > li > a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .dropdown { position: static; box-shadow: none; border-radius: 0; }
    .has-dropdown:hover .dropdown { display: none; }
    .has-dropdown.open .dropdown { display: block; }
    .dropdown li a { padding-left: 32px; }
    .hero-grid { gap: 6px; }
    .hero-main { height: 220px; }
    .hero-main-overlay h1 { font-size: 18px; }
    .hero-side { flex-direction: column; }
    .hero-side-card { height: 140px; }
    .section { padding: 24px 0; }
    .content-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .canada-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { width: 100%; }
    .header-inner { padding: 0 4px; }
    .nav-inner { padding: 0 4px; }
    .trophees-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .players-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ADDITIONAL PAGES STYLES
   ═══════════════════════════════════════════════════════════ */

/* ── Article Page ─────────────────────────────────── */
.article-page { max-width: 760px; margin: 0 auto; }
.article-title { font-family: var(--font-title); font-size: 32px; font-weight: 900; line-height: 1.25; margin: 14px 0 16px; color: #ffffff; }
.article-meta-full { font-size: 13px; color: #cccccc; margin-bottom: 24px; }
.article-hero-img { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
.article-video { position: relative; width: 100%; padding-bottom: 56.25%; margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.article-video iframe, .article-video video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.article-content { font-size: 16px; line-height: 1.85; color: #e0e0e8; }
.article-content p { margin-bottom: 18px; }
.article-share { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--gray-200); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.article-share strong { font-size: 13px; color: #ffffff; }
.share-btn { display: inline-block; padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; transition: opacity 0.2s; }
.share-btn:hover { opacity: 0.85; }
.share-btn:nth-of-type(1) { background: #1877f2; }
.share-btn:nth-of-type(2) { background: #0f1419; }
.share-btn:nth-of-type(3) { background: #25d366; }

/* ── Videos Page ─────────────────────────────────── */
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s; }
.video-card:hover { transform: translateY(-3px); }
.video-card-player { position: relative; width: 100%; padding-bottom: 56.25%; }
.video-card-player iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-card-body { padding: 14px 16px; }
.video-card-body h3 { font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; color: #ffffff; }
.video-card-cat { font-size: 11px; font-weight: 600; color: var(--blaugrana); text-transform: uppercase; letter-spacing: 0.3px; }

/* ── Effectif / Squad Page ────────────────────────── */
.position-title { font-family: var(--font-title); font-size: 16px; font-weight: 800; margin: 28px 0 14px; padding: 8px 14px; background: linear-gradient(90deg, var(--blaugrana), var(--barca-blue)); color: #fff; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.player-card { display: flex; align-items: center; gap: 14px; background: var(--dark-3); padding: 14px 18px; border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,0.3); transition: transform 0.2s; }
.player-card:hover { transform: translateX(4px); }
.player-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.15); flex-shrink: 0; }
.player-number { width: 36px; height: 36px; background: var(--barca-blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 14px; font-weight: 900; flex-shrink: 0; }
.player-info strong { display: block; font-size: 16px; font-weight: 700; color: var(--white); }
.player-info span { font-size: 14px; color: var(--gray-400); }

/* ── Calendar Page ────────────────────────────────── */
.calendar-filters { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.cal-filter { padding: 8px 18px; border: 2px solid var(--gray-200); border-radius: 20px; background: var(--white); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.cal-filter:hover { border-color: var(--blaugrana); color: var(--blaugrana); }
.cal-filter.active { background: var(--blaugrana); border-color: var(--blaugrana); color: #fff; }
.calendar-list { display: flex; flex-direction: column; gap: 0; }
.cal-month { font-family: var(--font-title); font-size: 14px; font-weight: 800; color: var(--blaugrana); text-transform: uppercase; letter-spacing: 0.5px; padding: 16px 0 8px; border-bottom: 2px solid var(--blaugrana); margin-top: 12px; }
.cal-match { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--white); border-bottom: 1px solid var(--gray-200); border-radius: 0; transition: background 0.2s; }
.cal-match:hover { background: var(--gray-50); }
.cal-match:last-child { border-bottom: none; }
.cal-date { text-align: center; min-width: 50px; }
.cal-day { display: block; font-family: var(--font-title); font-size: 22px; font-weight: 900; color: #ffffff; line-height: 1; }
.cal-month-sm { display: block; font-size: 11px; color: var(--gray-400); text-transform: uppercase; margin-top: 2px; }
.cal-info { flex: 1; }
.cal-info strong { display: block; font-size: 14px; font-weight: 700; color: #ffffff; margin-bottom: 2px; }
.cal-info span { font-size: 12px; color: #bbbbbb; }
.cal-venue { font-size: 12px; color: var(--gray-400); white-space: nowrap; }

/* ── Club Info Grid ───────────────────────────────── */
.club-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.club-info-card { background: var(--white); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.club-info-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.club-info-card strong { display: block; font-size: 13px; font-weight: 700; color: var(--blaugrana); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px; }
.club-info-card span { font-size: 14px; color: #e0e0e8; }
[data-theme="dark"] .club-info-card { background: var(--dark-3); }
[data-theme="dark"] .club-info-card span { color: #ccc; }
@media (max-width: 768px) { .club-info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .club-info-grid { grid-template-columns: 1fr; } }

/* ── History Section ──────────────────────────────── */
.history-content { max-width: 860px; font-size: 15px; line-height: 1.85; color: #e0e0e8; }
.history-content p { margin-bottom: 18px; }
.history-content h3 { font-family: var(--font-title); font-size: 18px; font-weight: 800; color: var(--blaugrana); margin: 32px 0 12px; padding-left: 12px; border-left: 3px solid var(--gold); }
.palmares-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.palmares-item { background: var(--white); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.palmares-count { display: block; font-family: var(--font-title); font-size: 36px; font-weight: 900; color: var(--blaugrana); line-height: 1; }
.palmares-label { display: block; font-size: 13px; font-weight: 600; color: #cccccc; margin-top: 6px; }
[data-theme="dark"] .history-content { color: #ccc; }
[data-theme="dark"] .history-content h3 { color: var(--gold); }
[data-theme="dark"] .palmares-item { background: var(--dark-3); }
[data-theme="dark"] .palmares-count { color: var(--gold); }
@media (max-width: 600px) {
    .palmares-grid { grid-template-columns: repeat(2, 1fr); }
    .history-content h3 { font-size: 16px; }
}

/* ── Live Scores Widget ───────────────────────────── */
.scores-widget { background: var(--dark); border-radius: var(--radius); padding: 16px; margin-bottom: 24px; }
.scores-widget-title { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.scores-widget iframe { width: 100%; height: 500px; border: none; border-radius: 6px; }

/* ── Language Toggle ──────────────────────────────── */
.lang-toggle { display: flex; gap: 0; border-radius: 4px; overflow: hidden; border: 1px solid rgba(255,255,255,0.15); }
.lang-btn { padding: 5px 10px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.6); background: transparent; border: none; cursor: pointer; transition: all 0.2s; }
.lang-btn.active { background: var(--gold); color: var(--dark); }
.lang-btn:hover:not(.active) { color: #fff; }

/* ── Dark mode extras ─────────────────────────────── */
[data-theme="dark"] .article-title,
[data-theme="dark"] .video-card-body h3,
[data-theme="dark"] .player-info strong,
[data-theme="dark"] .cal-day,
[data-theme="dark"] .cal-info strong { color: #f0f0f0; }
[data-theme="dark"] .player-card,
[data-theme="dark"] .video-card,
[data-theme="dark"] .cal-match { background: var(--dark-3); }
[data-theme="dark"] .cal-match:hover { background: var(--dark-2); }
[data-theme="dark"] .cal-filter { background: var(--dark-3); border-color: rgba(255,255,255,0.1); color: #ccc; }
[data-theme="dark"] .position-title { background: linear-gradient(90deg, var(--blaugrana), var(--barca-blue)); }
[data-theme="dark"] .share-btn { opacity: 0.9; }
[data-theme="dark"] .wm-team,
[data-theme="dark"] .widget-match-info,
[data-theme="dark"] .article-content,
[data-theme="dark"] .club-info-card span,
[data-theme="dark"] .history-content,
[data-theme="dark"] .dropdown li a,
[data-theme="dark"] .hero-meta,
[data-theme="dark"] .article-card-meta,
[data-theme="dark"] .article-meta-full,
[data-theme="dark"] .cal-info span,
[data-theme="dark"] .cal-venue,
[data-theme="dark"] .widget-match-venue,
[data-theme="dark"] .player-info span,
[data-theme="dark"] .footer-col a,
[data-theme="dark"] .footer-about,
[data-theme="dark"] .canada-card p { color: #e0e0e8; }

/* ── Responsive extras ────────────────────────────── */
@media (max-width: 768px) {
    .videos-grid { grid-template-columns: repeat(2, 1fr); }
    .article-title { font-size: 24px; }
    .cal-match { flex-wrap: wrap; gap: 10px; }
    .cal-venue { width: 100%; padding-left: 66px; }
    .content-layout { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; height: auto; }
    .hero-side { flex-direction: row; }
    .top-bar { display: none; }
}
@media (max-width: 600px) {
    .videos-grid { grid-template-columns: 1fr; }
    .players-grid { grid-template-columns: 1fr; }
    .calendar-filters { gap: 6px; }
    .cal-filter { padding: 6px 12px; font-size: 12px; }
    .article-title { font-size: 20px; }
    .articles-grid { grid-template-columns: 1fr; }
    .hero-side { flex-direction: column; }

    /* Mobile header: show full logo, hide search/lang/dark from header */
    .header-search { display: none; }
    .header-right { display: none; }
    .logo-mobile { display: none !important; }
    .logo-desktop { display: inline !important; font-size: 22px; }

    /* Nav bar bigger on mobile */
    .nav-inner { min-height: 52px; padding: 6px 20px; }

    /* Show nav right tools on mobile */
    .nav-right-tools { display: flex; }

    /* Nav toggle always visible */
    .nav-toggle { display: block; position: relative; z-index: 10001; }
    .nav-menu { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; width: 75%; max-width: 300px; background: rgba(10,10,20,0.97); backdrop-filter: blur(12px); z-index: 10000; padding: 80px 24px 24px; overflow-y: auto; transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); box-shadow: 4px 0 30px rgba(0,0,0,0.5); }
    .nav-menu.active { transform: translateX(0); }
    .nav-menu > li > a { padding: 16px 0; font-size: 18px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-menu .dropdown { position: static; background: transparent; box-shadow: none; display: none; }
    .nav-menu .has-dropdown.open .dropdown { display: block; }
    .nav-menu .dropdown li a { color: rgba(255,255,255,0.7); border-bottom: none; padding: 10px 16px; font-size: 15px; }

    /* Overlay behind menu */
    .nav-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
    .nav.menu-open .nav-overlay { opacity: 1; pointer-events: auto; }

    /* Hamburger stays on top */
    .nav { position: relative; }
}


/* ── Next Match (sidebar droite) ──────────────────── */
.hero-with-match { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: stretch; }
.next-match-card { background: linear-gradient(180deg, #1a1f3d 0%, #0f1225 100%); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 24px 20px; text-align: center; display: flex; flex-direction: column; }
.next-match-label { font-family: var(--font-title); font-size: 14px; font-weight: 700; color: #ffffff; margin-bottom: 20px; }
.next-match-teams { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 24px; }
.nm-team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 90px; }
.nm-logo { width: 60px; height: 60px; object-fit: contain; }
.nm-name { font-size: 13px; font-weight: 700; }
.nm-home { color: #5b9bd5; }
.nm-away { color: #4ade80; }
.nm-versus { font-family: var(--font-title); font-size: 26px; font-weight: 900; color: var(--gold); font-style: italic; }
.nm-details { text-align: center; margin-bottom: 20px; padding: 16px 8px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.nm-datetime { font-size: 15px; font-weight: 700; color: #ffffff; margin-bottom: 6px; }
.nm-league { font-size: 13px; color: #cccccc; margin-bottom: 4px; }
.nm-venue { font-size: 13px; color: #999999; }
.nm-countdown { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); margin-top: auto; }
.nm-cd-item { display: flex; flex-direction: column; align-items: center; min-width: 44px; background: rgba(255,255,255,0.06); border-radius: 8px; padding: 8px 6px; }
.nm-cd-item span { font-family: var(--font-title); font-size: 22px; font-weight: 900; color: #ffffff; line-height: 1; }
.nm-cd-item small { font-size: 10px; color: var(--gold); font-weight: 600; margin-top: 4px; }
.nm-cd-sep { font-family: var(--font-title); font-size: 18px; font-weight: 900; color: var(--blaugrana); }
@media (max-width: 1024px) {
    .hero-with-match { grid-template-columns: 1fr 300px; }
}
@media (max-width: 768px) {
    .hero-with-match { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .nm-logo { width: 46px; height: 46px; }
    .nm-name { font-size: 12px; }
    .nm-versus { font-size: 20px; }
    .nm-cd-item span { font-size: 18px; }
    .nm-cd-item { min-width: 38px; padding: 6px 4px; }
}

.article-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

/* ── Skeleton Loading ─────────────────────────────── */
.skeleton { position: relative; overflow: hidden; background: var(--gray-200); border-radius: var(--radius); }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.skeleton-card { height: 280px; border-radius: var(--radius); }
.skeleton-text { height: 16px; margin: 8px 0; border-radius: 4px; }
.skeleton-text.short { width: 60%; }

/* ── Liga Standings Table ────────────────────────── */
.liga-standings { width: 100%; border-collapse: collapse; font-size: 16px; }
.liga-standings th { text-align: left; padding: 14px 10px; border-bottom: 2px solid var(--blaugrana); font-weight: 700; color: #ffffff; font-size: 14px; text-transform: uppercase; }
.liga-standings td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); color: #ffffff; }
.liga-standings tbody tr:hover { background: rgba(255,255,255,0.06); }
.liga-standings .barca-row { background: rgba(165,0,68,0.2); }
.liga-standings .barca-row td { color: #ffffff; font-weight: 700; }
.liga-standings .team-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #ffffff; }
.liga-standings .team-cell img { border-radius: 2px; }
@media(max-width:600px){
    .liga-standings { font-size: 14px; }
    .liga-standings th, .liga-standings td { padding: 10px 6px; }
}

/* ── Pull to Refresh indicator ────────────────────── */
.ptr-indicator { text-align: center; padding: 12px; color: var(--blaugrana); font-size: 13px; font-weight: 600; display: none; }
.ptr-indicator.active { display: block; animation: fadeIn 0.3s; }

/* ── Smooth nav active indicator ──────────────────── */
.nav-menu a { position: relative; transition: color 0.2s; }
.nav-menu a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 3px; background: var(--blaugrana); border-radius: 3px; }

/* ── Install App Banner ───────────────────────────── */
.install-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark-2); color: #fff; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; z-index: 9999; box-shadow: 0 -4px 20px rgba(0,0,0,0.3); transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.install-banner.show { transform: translateY(0); }
