:root {
    --brand-navy: #0B1F4D;
    --brand-navy-dark: #050F28;
    --brand-red: #E11D2E;
    --brand-red-hover: #C01120;
    --bg-page: #F2F4F8;
    --bg-surface: #FFFFFF;
    --bg-muted: #EDF1F7;
    --text-main: #0F172A;
    --text-muted: #526075;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 10px rgba(7, 20, 48, 0.05);
    --shadow-md: 0 10px 28px rgba(7, 20, 48, 0.10);
    --gold: #F59E0B;
}

[data-theme="dark"] {
    --bg-page: #060D1E;
    --bg-surface: #0D1936;
    --bg-muted: #14254D;
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --border-color: #1E325C;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
}

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}
body {
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--brand-navy-dark) 0%, var(--brand-navy) 100%);
    box-shadow: 0 6px 24px rgba(5, 15, 40, 0.28);
}
.top-utility-bar {
    background: rgba(0, 0, 0, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 0;
    font-size: 12.5px;
    color: #CBD5E1;
}
.live-dot-badge {
    display: inline-flex; align-items: center; gap: 6px;
    color: #34D399; font-weight: 800; font-size: 12px;
}
.live-dot-badge .dot {
    width: 8px; height: 8px; border-radius: 50%; background: #10B981;
    display: inline-block; animation: pulseDot 1.4s infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.35); } }
@keyframes pulseBadge { 0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5); } 60% { box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); } }

.btn-utility-theme, .btn-utility-user, .btn-utility-admin {
    padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.16); color: #F1F5F9; background: rgba(255, 255, 255, 0.08);
    transition: .2s;
}
.btn-utility-theme:hover, .btn-utility-user:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.btn-utility-admin { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.btn-utility-admin:hover { background: var(--brand-red-hover); color: #fff; }

.brand-logo img {
    height: 52px; width: auto;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45));
}
.main-navbar .nav-link {
    color: #E2E8F0 !important; font-weight: 700; font-size: 13.5px;
    padding: 7px 10px !important; border-radius: 10px; transition: .2s; white-space: nowrap;
}
.main-navbar .nav-link:hover, .main-navbar .nav-link.active {
    background: var(--brand-red); color: #FFFFFF !important;
}

.header-search-form { width: 220px; }
.header-search-form .form-control {
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff; border-radius: 0 10px 10px 0 !important; font-size: 13px;
}
.header-search-form .form-control::placeholder { color: #CBD5E1; }
.header-search-form .form-control:focus { background: rgba(255,255,255,0.18); box-shadow: none; border-color: var(--brand-red); color: #fff; }
.btn-search-submit {
    background: var(--brand-red); color: #fff; border: 1px solid var(--brand-red);
    border-radius: 10px 0 0 10px !important;
}
.btn-search-submit:hover { background: var(--brand-red-hover); color: #fff; }

/* Breaking Bar */
.breaking-bar { background: var(--brand-red); color: #fff; font-size: 13.5px; font-weight: 700; }
.breaking-inner { height: 38px; overflow: hidden; }
.breaking-label { background: var(--brand-navy-dark); color: #fff; padding: 2px 11px; border-radius: 6px; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.breaking-track-wrap { flex: 1; overflow: hidden; }
.breaking-track { display: inline-flex; gap: 38px; white-space: nowrap; animation: tickerScroll var(--ticker-speed, 32s) linear infinite; }
.breaking-track:hover { animation-play-state: paused; }
.breaking-item { display: inline-flex; align-items: center; gap: 7px; }
.breaking-item:hover { text-decoration: underline; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }

/* Surfaces & Buttons */
.jm-card {
    background: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm);
}
.btn-navy { background: var(--brand-navy); color: #fff; border: none; font-weight: 700; border-radius: 10px; }
.btn-navy:hover { filter: brightness(1.18); color: #fff; }
.btn-accent { background: var(--brand-red); color: #fff; border: none; font-weight: 700; border-radius: 10px; }
.btn-accent:hover { background: var(--brand-red-hover); color: #fff; }

/* Section Headers */
.section-block { margin-bottom: 30px; }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.section-title {
    margin: 0; font-size: 20px; font-weight: 900;
    display: inline-flex; align-items: center; gap: 10px;
}
.section-title::before {
    content: ""; width: 5px; height: 22px; border-radius: 4px;
    background: var(--brand-red); display: inline-block;
}
.section-sub { display: block; font-size: 13px; color: var(--text-muted); margin-right: 15px; }
.section-more { color: var(--brand-red); font-weight: 800; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.section-more:hover { text-decoration: underline; color: var(--brand-red-hover); }

/* Status Badges */
.cat-badge { display: inline-block; background: var(--brand-red); color: #fff; padding: 3px 10px; border-radius: 7px; font-size: 11.5px; font-weight: 800; }
.badge-live { background: #059669; color: #FFFFFF; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; animation: pulseBadge 1.8s infinite; }
.badge-halftime { background: #F59E0B; color: #111827; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge-finished { background: #64748B; color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge-scheduled { background: var(--brand-navy); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge-postponed { background: #EF4444; color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }

/* Match Cards */
.match-mini-card {
    background: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: 15px; padding: 13px 15px; box-shadow: var(--shadow-sm);
    transition: transform .2s, border-color .2s, box-shadow .2s;
    display: flex; flex-direction: column; justify-content: space-between; gap: 10px; height: 100%;
}
.match-mini-card:hover { transform: translateY(-3px); border-color: var(--brand-red); box-shadow: var(--shadow-md); }
.match-mini-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-muted); font-weight: 700; }
.match-mini-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.match-mini-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; font-size: 12.5px; font-weight: 800; }
.match-mini-team img {
    width: 40px; height: 40px; object-fit: contain;
    background: #fff; padding: 4px; border-radius: 10px; border: 1px solid var(--border-color);
}
.match-score-box {
    background: var(--bg-muted); padding: 6px 12px; border-radius: 10px;
    font-weight: 900; font-size: 17px; min-width: 68px; text-align: center; direction: ltr;
}
.match-mini-foot {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11.5px; color: var(--text-muted); border-top: 1px dashed var(--border-color); padding-top: 7px;
}

/* Hero Editorial */
.hero-main {
    position: relative; border-radius: 18px; overflow: hidden; min-height: 455px; height: 100%;
    display: flex; align-items: flex-end; box-shadow: var(--shadow-md); background: #071430;
}
.hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.hero-main:hover img { transform: scale(1.04); }
.hero-overlay {
    position: relative; z-index: 2; width: 100%; padding: 26px;
    background: linear-gradient(to top, rgba(5, 15, 40, 0.96) 15%, rgba(5, 15, 40, 0.72) 60%, transparent 100%);
    color: #fff;
}
.hero-overlay h1 { margin: 10px 0 8px; font-size: 24px; line-height: 1.38; font-weight: 900; }
.hero-overlay p { margin: 0; color: #CBD5E1; font-size: 14px; }
.hero-meta { display: flex; gap: 16px; font-size: 12px; color: #CBD5E1; margin-top: 10px; }

.hero-side-stack { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.news-side-item {
    display: flex; gap: 12px; background: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: 14px; padding: 9px; align-items: center; transition: .2s; flex: 1;
}
.news-side-item:hover { border-color: var(--brand-red); transform: translateX(-3px); box-shadow: var(--shadow-sm); }
.news-side-item img { width: 110px; height: 78px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.news-side-item h3 {
    margin: 4px 0; font-size: 13.5px; font-weight: 800; line-height: 1.42;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-side-meta { font-size: 11.5px; color: var(--text-muted); display: flex; gap: 10px; }

/* News & Goal Cards */
.news-card, .goal-card, .player-card {
    background: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; height: 100%;
}
.news-card:hover, .goal-card:hover, .player-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-red);
}
.news-card-img, .goal-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #071430; display: block; }
.news-card-img img, .goal-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.news-card:hover .news-card-img img, .goal-card:hover .goal-thumb img { transform: scale(1.05); }
.news-card-img .cat-badge { position: absolute; top: 10px; right: 10px; }
.news-card-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
.news-card-body h3 {
    margin: 0 0 8px; font-size: 15.5px; font-weight: 800; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-body p {
    margin: 0 0 12px; font-size: 13px; color: var(--text-muted); flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-foot {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border-color); padding-top: 10px;
}

.goal-thumb { cursor: pointer; }
.play-circle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(225, 29, 46, 0.92); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); transition: transform .2s;
}
.goal-card:hover .play-circle { transform: translate(-50%, -50%) scale(1.1); }
.goal-min-badge { position: absolute; bottom: 10px; left: 10px; background: rgba(5, 15, 40, 0.88); color: #fff; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 800; }
.goal-body { padding: 14px 15px; display: flex; flex-direction: column; flex: 1; }
.goal-body h4 { margin: 0 0 8px; font-size: 15px; font-weight: 800; line-height: 1.45; flex: 1; }
.goal-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); margin-top: 8px; border-top: 1px solid var(--border-color); padding-top: 8px; }

/* Club & Nation Cards */
.club-card {
    background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 16px;
    padding: 15px 10px; text-align: center; box-shadow: var(--shadow-sm);
    transition: transform .2s, border-color .2s, box-shadow .2s;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 100%;
}
.club-card::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--club-color, var(--brand-navy)); }
.club-card:hover { transform: translateY(-4px); border-color: var(--brand-red); box-shadow: var(--shadow-md); }
.club-crest-wrap {
    width: 68px; height: 68px; border-radius: 16px; background: #FFFFFF;
    border: 1px solid var(--border-color); padding: 7px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 9px;
}
.club-crest-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.club-card h4 { margin: 0 0 3px; font-size: 14px; font-weight: 800; }
.club-card .club-league { font-size: 11.5px; color: var(--text-muted); margin-bottom: 7px; }

/* Player Cards */
.player-photo-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, #071430, #163578); }
.player-photo-wrap img.player-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s; }
.player-card:hover .player-photo-wrap img.player-img { transform: scale(1.05); }
.player-club-chip {
    position: absolute; bottom: 8px; right: 8px; display: inline-flex; align-items: center; gap: 6px;
    background: rgba(5, 15, 40, 0.88); color: #fff; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
}
.player-club-chip img { width: 18px; height: 18px; object-fit: contain; background: #fff; border-radius: 50%; padding: 1px; }
.player-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.player-card-body h4 { margin: 0; font-size: 15px; font-weight: 900; }
.player-stats-row { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); font-weight: 700; }
.player-avatar-sm { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: top center; border: 2px solid var(--border-color); flex-shrink: 0; }

/* Carousels */
.carousel-shell { position: relative; }
.carousel-track {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 10px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; flex-shrink: 0; }
.carousel-clubs > .club-card,
.carousel-nations > .club-card { flex: 0 0 calc((100% - 70px) / 6); min-width: 155px; }
.carousel-news > .news-card { flex: 0 0 calc((100% - 42px) / 4); min-width: 265px; }
.carousel-matches > .match-mini-card { flex: 0 0 calc((100% - 42px) / 4); min-width: 265px; }

.carousel-arrow {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1.5px solid var(--border-color); background: var(--bg-surface); color: var(--text-main);
    font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm); transition: .2s;
}
.carousel-arrow:hover { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }

/* Stars */
.stars-wrap { display: inline-flex; align-items: center; gap: 2px; direction: ltr; }
.star-item { font-size: 13.5px; color: #CBD5E1; background: none; border: none; padding: 0 1px; line-height: 1; }
.star-item.filled, .star-item.half { color: var(--gold); }
.stars-interactive .star-item { cursor: pointer; font-size: 17px; transition: transform .15s; }
.stars-interactive .star-item:hover { transform: scale(1.22); color: var(--gold); }
.rating-box { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.rating-text { font-size: 12px; color: var(--text-muted); font-weight: 700; }

/* Polls */
.poll-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); }
.poll-card h4 { margin: 0 0 14px; font-size: 15.5px; font-weight: 800; }
.poll-option-btn {
    width: 100%; text-align: right; background: var(--bg-muted); border: 1.5px solid var(--border-color);
    border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer; position: relative; overflow: hidden;
    display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--text-main); font-size: 13.5px;
}
.poll-option-btn:hover, .poll-option-btn.voted { border-color: var(--brand-red); }
.poll-bar-fill { position: absolute; top: 0; right: 0; bottom: 0; background: rgba(225, 29, 46, 0.16); z-index: 0; transition: width .4s ease; }
.poll-option-btn span { position: relative; z-index: 1; }

/* Tables */
.sports-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sports-table th, .sports-table td { padding: 8px 6px; border-bottom: 1px solid var(--border-color); text-align: center; white-space: nowrap; }
.sports-table th { background: var(--bg-muted); font-weight: 800; color: var(--text-muted); font-size: 12px; }
.sports-table td.team-cell, .sports-table th.team-cell { text-align: right; }
.sports-table .player-avatar-sm { width: 32px; height: 32px; }
.team-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.team-inline img { width: 22px; height: 22px; object-fit: contain; background: #fff; border-radius: 6px; padding: 1px; }
.pts-cell { font-weight: 900; color: var(--brand-red); font-size: 14.5px; }

/* Match Detail Hero & Stats */
.match-hero-card {
    background: linear-gradient(135deg, var(--brand-navy-dark) 0%, #102D6B 100%);
    color: #fff; border-radius: 20px; padding: 26px 22px; margin-bottom: 20px; box-shadow: var(--shadow-md);
}
.match-hero-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; color: #CBD5E1; font-size: 13px; }
.match-hero-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; text-align: center; }
.match-hero-club img { width: 78px; height: 78px; object-fit: contain; background: rgba(255,255,255,0.95); padding: 6px; border-radius: 16px; margin: 0 auto 10px; }
.match-hero-club h2 { margin: 0; font-size: 19px; font-weight: 900; }
.match-hero-score { font-size: 42px; font-weight: 900; direction: ltr; letter-spacing: 3px; }
.match-hero-meta { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: #E2E8F0; }

.stat-row { margin-bottom: 14px; }
.stat-row-labels { display: flex; justify-content: space-between; font-weight: 800; font-size: 13px; margin-bottom: 5px; }
.stat-bars { display: flex; height: 9px; border-radius: 999px; overflow: hidden; background: var(--bg-muted); gap: 3px; }
.stat-bar-home { background: var(--brand-navy); border-radius: 0 999px 999px 0; }
.stat-bar-away { background: var(--brand-red); border-radius: 999px 0 0 999px; }

.timeline-item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--border-color); }
.timeline-min { background: var(--brand-navy); color: #fff; font-weight: 800; padding: 3px 10px; border-radius: 8px; font-size: 12px; min-width: 46px; text-align: center; }

/* Comments */
.comment-form { background: var(--bg-muted); padding: 16px; border-radius: 14px; margin-bottom: 18px; }
.comment-form .form-control { background: var(--bg-surface); color: var(--text-main); border-color: var(--border-color); }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.comment-reply { margin-top: 10px; padding: 10px 14px; background: var(--bg-muted); border-radius: 12px; border-bottom: none; }
.comment-admin { border-right: 3px solid var(--brand-red); padding-right: 12px; }
.comment-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--brand-navy); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.comment-time { font-size: 11.5px; color: var(--text-muted); }
.comment-text { margin: 4px 0 8px; font-size: 14px; }
.comment-actions { display: flex; gap: 12px; }
.btn-comment-act { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.btn-comment-act:hover { background: var(--bg-muted); color: var(--brand-red); }
.replying-banner { display: flex; justify-content: space-between; align-items: center; background: #FEE2E2; color: #991B1B; padding: 6px 12px; border-radius: 8px; margin-bottom: 10px; font-size: 13px; }

/* Filter Pills & Promo */
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-pill { padding: 7px 15px; border-radius: 999px; background: var(--bg-surface); border: 1px solid var(--border-color); font-weight: 700; font-size: 13px; transition: .2s; }
.filter-pill.active, .filter-pill:hover { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }
.ad-promo-banner {
    background: linear-gradient(120deg, var(--brand-navy) 0%, #163885 100%);
    color: #fff; padding: 18px 22px; border-radius: 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.ad-promo-banner strong { display: block; font-size: 16px; }
.ad-promo-banner span { font-size: 13px; color: #CBD5E1; }

/* Auth */
.auth-card { border-radius: 18px; }
.auth-brand-banner { background: linear-gradient(135deg, var(--brand-navy-dark), var(--brand-navy)); border-radius: 14px; padding: 16px; text-align: center; margin-bottom: 18px; }
.auth-brand-banner img { height: 62px; width: auto; margin: 0 auto; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--bg-muted); padding: 5px; border-radius: 12px; margin-bottom: 18px; }
.auth-tab-btn { border: none; background: transparent; color: var(--text-muted); font-weight: 800; font-size: 14px; padding: 9px 12px; border-radius: 9px; cursor: pointer; transition: .2s; }
.auth-tab-btn.active { background: var(--brand-navy); color: #fff; }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-left: 42px; }
.pass-eye { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted); }
.auth-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--brand-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; flex-shrink: 0; }

/* Footer & Back-to-top */
.site-footer { background: var(--brand-navy-dark); color: #E2E8F0; border-top: 4px solid var(--brand-red); }
.footer-logo { max-width: 175px; }
.footer-desc { font-size: 13.5px; color: #CBD5E1; line-height: 1.75; }
.footer-heading { font-size: 15.5px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-links li { margin-bottom: 8px; font-size: 13.5px; color: #E2E8F0; }
.footer-links li a:hover { color: #FCA5A5; }
.social-icon-btn {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.14);
    color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: .2s;
}
.social-icon-btn:hover { background: var(--brand-red); color: #fff; }
.footer-bottom { background: rgba(0, 0, 0, .35); color: #CBD5E1; }

.scroll-top-btn {
    position: fixed; bottom: 24px; left: 24px; z-index: 150;
    width: 46px; height: 46px; border-radius: 50%;
    background: #0A1E4A; color: #FFFFFF; border: 2px solid var(--brand-red);
    font-size: 17px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 26px rgba(5, 15, 40, 0.42);
    opacity: 0; pointer-events: none; transform: translateY(14px); transition: .25s;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--brand-red); transform: translateY(-3px); }

.article-cover { width: 100%; max-height: 440px; object-fit: cover; border-radius: 14px; margin-bottom: 18px; }
.article-body { font-size: 16.5px; line-height: 1.9; }
.empty-muted { color: var(--text-muted); font-size: 14px; text-align: center; padding: 20px 0; }

/* Responsive Tweaks */
@media (max-width: 1199px) {
    .carousel-clubs > .club-card, .carousel-nations > .club-card { flex: 0 0 calc((100% - 42px) / 4); }
    .carousel-news > .news-card, .carousel-matches > .match-mini-card { flex: 0 0 calc((100% - 28px) / 3); }
    .header-search-form { width: 195px; }
}
@media (max-width: 991px) {
    .header-search-form { width: 100%; }
    .carousel-news > .news-card, .carousel-matches > .match-mini-card { flex: 0 0 calc((100% - 14px) / 2); }
}
@media (max-width: 767px) {
    .brand-logo img { height: 42px; }
    .hero-main { min-height: 270px; }
    .hero-overlay { padding: 18px 14px; }
    .hero-overlay h1 { font-size: 18.5px; }
    .news-side-item img { width: 92px; height: 68px; }
    .carousel-clubs > .club-card, .carousel-nations > .club-card { flex: 0 0 calc((100% - 14px) / 2.25); min-width: 138px; }
    .carousel-news > .news-card, .carousel-matches > .match-mini-card { flex: 0 0 84%; min-width: 248px; }
    .match-hero-card { padding: 18px 14px; }
    .match-hero-club img { width: 52px; height: 52px; }
    .match-hero-club h2 { font-size: 14px; }
    .match-hero-score { font-size: 28px; }
    .scroll-top-btn { bottom: 16px; left: 16px; width: 42px; height: 42px; }
}

/* Transfers Cards & Carousel */
.carousel-transfers { gap: 14px; }
.carousel-transfers > .transfer-card { flex: 0 0 calc((100% - 28px) / 3); min-width: 280px; }
.transfer-card {
    background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 16px;
    padding: 15px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 11px;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.transfer-card:hover { transform: translateY(-4px); border-color: var(--brand-red); box-shadow: var(--shadow-md); }
.transfer-player-head { display: flex; align-items: center; gap: 11px; }
.transfer-avatar {
    width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top center;
    border: 2px solid var(--brand-red); flex-shrink: 0; background: var(--bg-muted);
}
.transfer-avatar-placeholder {
    width: 52px; height: 52px; border-radius: 50%; background: var(--brand-navy); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.transfer-route {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
    background: var(--bg-muted); border-radius: 12px; padding: 10px 10px;
}
.transfer-club { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: 12px; font-weight: 800; }
.transfer-club img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; border: 1px solid var(--border-color); }
.transfer-club-fallback { width: 34px; height: 34px; background: var(--brand-navy); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.transfer-arrow { font-size: 16px; color: var(--brand-red); }

/* Match Live Clock & Penalties Extras */
.match-pen-pill {
    display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 800;
    background: rgba(225, 29, 46, 0.12); color: var(--brand-red); padding: 1px 7px; border-radius: 999px;
}
.match-countdown { font-size: 11px; font-weight: 800; color: #059669; margin-top: 2px; direction: ltr; }

/* Standings Form Badges & Stats Tabs */
.form-dots { display: inline-flex; align-items: center; gap: 3px; }
.form-dot {
    width: 19px; height: 19px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 900; color: #fff;
}
.form-W { background: #059669; }
.form-D { background: #64748B; }
.form-L { background: #DC2626; }

.stats-nav-pills .nav-link {
    background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border-color);
    border-radius: 999px; font-weight: 800; font-size: 13px; padding: 8px 16px;
}
.stats-nav-pills .nav-link.active { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }

@media (max-width: 1199px) {
    .carousel-transfers > .transfer-card { flex: 0 0 calc((100% - 14px) / 2); }
}
@media (max-width: 767px) {
    .carousel-transfers > .transfer-card { flex: 0 0 86%; min-width: 260px; }
}
