/* ==========================================
   WorldReferee Dark Theme – onefootball-inspired
   ========================================== */

/* === PAGE WIDTH (matches onefootball ~1280px) === */
@media (min-width: 1200px) {
    .container {
        max-width: 1280px !important;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1360px !important;
    }
}

:root {
    --bg: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-elevated: #222222;
    --text: #f0f0f0;
    --text-muted: #888;
    --accent: #5eaf00;
    --border: rgba(255,255,255,0.08);
}

/* === BASE === */
html, body {
    color: var(--text) !important;
}

html, body, #wrapper {
    background-color: #0f0f0f !important;
    background-image: none !important;
}

a {
    color: var(--text);
}

a:hover {
    color: var(--accent);
}

/* =========================================
   TOP NEWS TICKER
   ========================================= */
.wr-ticker {
    background: #161616;
    border-bottom: 1px solid var(--border);
    height: 34px;
    overflow: hidden;
}

.wr-ticker .container {
    height: 100%;
}

.wr-ticker-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0;
}

.wr-ticker-label {
    flex-shrink: 0;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    margin-right: 16px;
    border-radius: 2px;
}

.wr-ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.wr-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
}

.wr-ticker-track:hover {
    animation-play-state: paused;
}

.wr-ticker-item {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    padding-right: 40px;
    transition: color 0.2s;
}

.wr-ticker-item:hover {
    color: var(--text) !important;
}

.wr-ticker-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 10px;
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   NAVBAR
   ========================================= */
.wr-navbar {
    background: #111;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 200;
}

/* Sticky */
#sticker.stick {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.wr-navbar-inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 24px;
}

/* Logo */
.wr-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.wr-logo img {
    height: 34px;
    width: auto;
    display: block;
    margin: 0 8px;
}

/* Nav */
.wr-nav {
    flex: 1;
}

.wr-nav > ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wr-nav > ul > li {
    position: relative;
}

.wr-nav > ul > li > a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #bbb !important;
    white-space: nowrap;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.wr-nav > ul > li > a:hover,
.wr-nav > ul > li.active > a {
    color: var(--text) !important;
    background: rgba(255,255,255,0.06);
}

/* Dropdowns */
.wr-nav > ul > li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1c1c1c;
    border: 1px solid var(--border);
    border-radius: 6px;
    min-width: 180px;
    list-style: none;
    margin: 0;
    padding: 10px 0 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 300;
}

.wr-nav > ul > li:hover > ul {
    display: block;
}

.wr-nav > ul > li > ul > li > a {
    display: block;
    padding: 9px 16px;
    font-size: 13px;
    color: #aaa !important;
    transition: color 0.15s, background 0.15s;
}

.wr-nav > ul > li > ul > li > a:hover {
    color: var(--text) !important;
    background: rgba(255,255,255,0.05);
}

/* Actions */
.wr-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Search */
.wr-search {
    position: relative;
    display: flex;
    align-items: center;
}

.wr-search .search-input {
    display: none;
    background: #222;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 13px;
    padding: 6px 10px;
    width: 180px;
    outline: none;
}

.wr-search .search-input:focus {
    border-color: var(--accent);
}

.wr-search .search-button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.wr-search .search-button:hover {
    color: var(--text);
}

.wr-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1c1c1c;
    border: 1px solid var(--border);
    border-radius: 6px;
    list-style: none;
    margin: 4px 0 0;
    padding: 4px 0;
    z-index: 400;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.wr-autocomplete li {
    padding: 8px 14px;
    font-size: 13px;
    color: #bbb;
    cursor: pointer;
}

.wr-autocomplete li:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

/* Login button */
.wr-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #bbb !important;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.wr-login-btn:hover {
    color: var(--text) !important;
    border-color: var(--accent);
}

/* Mobile nav (meanmenu) */
.mean-container .mean-bar {
    background: #111 !important;
    border-bottom: 1px solid var(--border) !important;
}

.mean-container .mean-nav {
    background: #151515 !important;
}

.mean-container .mean-nav ul li a {
    color: #aaa !important;
    border-top-color: var(--border) !important;
}

.mean-container .mean-nav ul li a:hover {
    color: var(--accent) !important;
}

.mean-container a.meanmenu-reveal {
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.mean-container a.meanmenu-reveal span {
    background: var(--text) !important;
}

/* === LIGHT BG OVERRIDES === */
.item-box-light-md-less30,
.item-box-light-md-less20,
.item-box-light-md-less10,
.item-box-light-md,
.item-box-light-lg,
.item-box-light-mix,
.bg-body,
.stay-connected-light,
.ticker,
.ticker-content,
.ticker-wrapper,
.newsletter-area,
.login-form,
.stylish-input-group,
.feeding-text-dark2,
[class*="box-padding"],
[style*="background-color: #fff"],
[style*="background-color:#fff"],
[style*="background: #fff"],
[style*="background:#fff"],
[style*="background: white"],
[style*="background:white"] {
    background-color: var(--bg-card) !important;
    color: var(--text) !important;
}

/* === GREEN COLOR FIXES (#43a047 → #5eaf00) === */
.color-apple,
.topic-border.color-apple,
.topic-box-lg.color-apple,
.topic-box-sm.color-apple {
    background-color: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
}

.color-apple:before {
    border-top-color: var(--accent) !important;
}

.color-apple:after {
    background-color: var(--accent) !important;
}

.owl-prev,
.owl-next,
.owl-controls .owl-prev,
.owl-controls .owl-next,
.color-apple .owl-controls .owl-prev:hover,
.color-apple .owl-controls .owl-next:hover {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

/* === ROUNDED IMAGES === */
img.img-fluid,
.img-overlay-70 img,
.position-relative img {
    border-radius: 8px !important;
}

/* === SECTIONS & CARDS === */
section {
    background-color: transparent !important;
}

.bg-body,
.bg-secondary-accent {
    background-color: var(--bg-card) !important;
}

.item-shadow-gray {
    background-color: var(--bg-card) !important;
    box-shadow: none !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    overflow: hidden;
}

/* Section headings */
.topic-border {
    border-bottom: 2px solid var(--border) !important;
}

.topic-box-lg {
    background-color: transparent !important;
    color: var(--text) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding-left: 0 !important;
    border-left: 3px solid var(--accent);
    padding-left: 10px !important;
}

.topic-box-lg.color-apple,
.topic-box-lg.color-cod-gray {
    background-color: transparent !important;
    color: var(--text) !important;
}

.topic-box-sm {
    background-color: rgba(94, 175, 0, 0.12) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(94, 175, 0, 0.25) !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    border-radius: 3px !important;
}

/* === TYPOGRAPHY === */
.title-medium-dark,
.title-semibold-dark,
.title-regular-dark,
h1, h2, h3, h4, h5, h6 {
    color: var(--text) !important;
}

.title-medium-dark a,
.title-semibold-dark a,
.title-regular-dark a,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: var(--text) !important;
}

.title-medium-dark a:hover,
.title-semibold-dark a:hover,
.title-regular-dark a:hover,
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover {
    color: var(--accent) !important;
}

.title-medium-light,
.title-semibold-light,
.title-regular-light {
    color: var(--text) !important;
}

.title-medium-light a,
.title-semibold-light a,
.title-regular-light a {
    color: var(--text) !important;
}

.title-medium-light a:hover,
.title-semibold-light a:hover,
.title-regular-light a:hover {
    color: var(--accent) !important;
}

.post-date-dark ul li,
.post-date-light ul li {
    color: var(--text-muted) !important;
}

.post-date-dark ul li i,
.post-date-light ul li i {
    color: var(--accent) !important;
}

p {
    color: var(--text-muted) !important;
}

/* === SPOTLIGHT REFEREE CARDS === */
.stay-connected-light li.facebook {
    background-color: var(--bg-elevated) !important;
    border: none !important;
}

.stay-connected-light li p {
    color: var(--text) !important;
}

/* White card bg override for referee cards */
div[style*="background: white"] {
    background: var(--bg-card) !important;
}

/* === SIDEBAR === */
.sidebar-box {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
}

.archive-list li {
    border-bottom: 1px solid var(--border) !important;
}

.archive-list li a {
    color: var(--text) !important;
}

.archive-list li a:hover {
    color: var(--accent) !important;
}

.archive-list li span {
    color: var(--text-muted) !important;
}

.sidebar-tags li a {
    background-color: var(--bg-elevated) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border) !important;
    border-radius: 4px !important;
}

.sidebar-tags li a:hover {
    background-color: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
}

/* === FEATURED IMAGE OVERLAY === */
.img-overlay-70::after,
.img-overlay-70:after {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%) !important;
}

.mask-content-lg {
    background: none !important;
}

.mask-content-lg h2 a {
    color: #fff !important;
}

/* === CATEGORY BOX === */
.category-box-layout1 .content h3 a {
    color: #fff !important;
}

/* === VIDEO SECTION === */
.hover-show-play-btn .bg-body {
    background-color: var(--bg-card) !important;
}

/* === FOOTER === */
footer, .footer-area-bottom {
    background-color: #0a0a0a !important;
    border-top: 1px solid var(--border) !important;
    padding: 30px 0 !important;
}

footer p, footer a {
    color: var(--text-muted) !important;
}

footer a:hover {
    color: var(--accent) !important;
}

/* === AUTOCOMPLETE DROPDOWN === */
.dropdown-menu {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
}

.dropdown-menu li {
    color: var(--text) !important;
    border-bottom: 1px solid var(--border);
}

.dropdown-menu li:hover {
    background-color: var(--bg-elevated) !important;
    color: var(--accent) !important;
}

/* === SCROLL UP BUTTON === */
#scrollUp {
    background-color: var(--accent) !important;
    color: #fff !important;
    border-radius: 4px !important;
}

/* === MOBILE MENU === */
.meanmenu-reveal {
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.mean-container .mean-nav {
    background-color: #111 !important;
}

.mean-container .mean-nav ul li a {
    color: var(--text-muted) !important;
    border-top-color: var(--border) !important;
}

.mean-container .mean-nav ul li a:hover {
    color: var(--accent) !important;
}

/* === HR / DIVIDERS === */
hr {
    border-color: var(--border) !important;
}

/* === FORM INPUTS === */
input, textarea, select {
    background-color: var(--bg-elevated) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

/* === BREADCRUMBS === */
.breadcrumb-area,
.page-header {
    background-color: #111 !important;
    border-bottom: 1px solid var(--border) !important;
}

.breadcrumb-item a,
.breadcrumb-item.active {
    color: var(--text-muted) !important;
}

.breadcrumb-item a:hover {
    color: var(--accent) !important;
}

/* =========================================
   FOOTER
   ========================================= */
.wr-footer {
    background: #0a0a0a;
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 60px 0 0;
}

.wr-footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
    .wr-footer-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .wr-footer-cols {
        grid-template-columns: 1fr;
    }
}

.wr-footer-col h4 {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted) !important;
    margin: 0 0 16px !important;
}

.wr-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wr-footer-col ul li {
    margin-bottom: 10px;
}

.wr-footer-col ul li a {
    font-size: 14px;
    color: #777 !important;
    text-decoration: none !important;
    transition: color 0.15s;
}

.wr-footer-col ul li a:hover {
    color: var(--text) !important;
}

.wr-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    gap: 16px;
}

.wr-footer-logo img {
    height: 28px;
    width: auto;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.wr-footer-logo:hover img {
    opacity: 0.8;
}

.wr-footer-bottom p {
    font-size: 13px;
    color: var(--text-muted) !important;
    margin: 0 !important;
}

/* suppress old footer styles */
footer.wr-footer .footer-area-bottom,
footer, .footer-area-bottom {
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

/* =========================================
   HOMEPAGE COMPONENTS
   ========================================= */

/* Sections */
.wr-section {
    padding: 40px 0;
}

.wr-section-dark {
    background: #0a0a0a !important;
}

/* Section header label */
.wr-section-header {
    margin-bottom: 24px;
}

.wr-section-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

/* Tags */
.wr-tag {
    display: inline-block;
    align-self: flex-start;
    width: fit-content;
    background: rgba(94, 175, 0, 0.12);
    color: var(--accent);
    border: 1px solid rgba(94, 175, 0, 0.25);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.wr-tag-sm {
    display: inline-block;
    background: rgba(94, 175, 0, 0.12);
    color: var(--accent);
    border: 1px solid rgba(94, 175, 0, 0.25);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.wr-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* === HERO SPLIT === */
.wr-hero-split {
    display: flex;
    height: 420px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.wr-hero-image-side {
    flex: 0 0 65%;
    display: block;
    overflow: hidden;
    position: relative;
}

.wr-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
    transition: transform 0.4s ease;
}

.wr-hero-image-side:hover .wr-hero-img {
    transform: scale(1.03);
}

.wr-hero-text-side {
    flex: 1;
    background: var(--bg-card);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.wr-hero-meta {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted) !important;
    margin: 0 !important;
}

.wr-hero-meta svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.wr-hero-title {
    font-size: clamp(18px, 1.8vw, 26px) !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    line-height: 1.35 !important;
    margin: 0 !important;
}

.wr-hero-title a {
    color: var(--text) !important;
}

.wr-hero-title a:hover {
    color: var(--accent) !important;
}

.wr-hero-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.wr-hero-cta {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent) !important;
    text-decoration: none !important;
    transition: letter-spacing 0.2s;
}

.wr-hero-cta:hover {
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .wr-hero-split {
        flex-direction: column;
        height: auto;
    }
    .wr-hero-image-side {
        flex: none;
        height: 220px;
    }
    .wr-hero-text-side {
        padding: 24px 20px;
    }
}

/* === NEWS LIST === */
.wr-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wr-news-item {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.wr-news-item:hover {
    border-color: rgba(255,255,255,0.18);
}

.wr-news-thumb {
    flex-shrink: 0;
    width: 130px;
    display: block;
}

.wr-news-thumb img {
    width: 130px;
    height: 90px;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
    transition: opacity 0.2s;
}

.wr-news-item:hover .wr-news-thumb img {
    opacity: 0.85;
}

.wr-news-body {
    flex: 1;
    padding: 10px 14px;
    min-width: 0;
}

.wr-news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.wr-news-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 0 5px !important;
}

.wr-news-title a {
    color: var(--text) !important;
}

.wr-news-title a:hover {
    color: var(--accent) !important;
}

.wr-news-excerpt {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === SIDEBAR BOXES === */
.wr-sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.wr-sidebar-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    margin-bottom: 18px;
}

/* Referee grid */
.wr-referee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.wr-referee-card {
    display: block;
    background: var(--bg-elevated);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none !important;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.wr-referee-card:hover {
    border-color: var(--accent);
}

.wr-referee-card > img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
}

.wr-referee-info {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 7px;
    background: var(--bg-elevated);
}

.wr-referee-info span {
    font-size: 11px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wr-flag {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

/* Most visited */
.wr-most-visited {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wr-most-visited li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.wr-most-visited li:last-child {
    border-bottom: none;
}

.wr-most-visited li a {
    color: var(--text) !important;
    font-weight: 500;
}

.wr-most-visited li a:hover {
    color: var(--accent) !important;
}

.wr-most-visited li span {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* === VIDEO GRID === */
.wr-video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media (max-width: 1100px) {
    .wr-video-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
    .wr-video-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .wr-video-grid { grid-template-columns: repeat(2, 1fr); }
}

.wr-video-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.wr-video-card:hover {
    border-color: rgba(255,255,255,0.18);
}

.wr-video-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.wr-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
    transition: opacity 0.2s;
}

.wr-video-card:hover .wr-video-thumb img {
    opacity: 0.8;
}

.wr-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    border: 2px solid rgba(255,255,255,0.5);
}

.wr-play-btn svg {
    width: 18px;
    height: 18px;
    color: #fff;
    margin-left: 2px;
}

.wr-video-card:hover .wr-play-btn {
    background: var(--accent);
    border-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.wr-video-info {
    padding: 10px 12px 12px;
}

.wr-video-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 4px 0 0 !important;
    line-height: 1.4 !important;
    color: var(--text) !important;
}

/* === 4-COL NEWS GRID === */
.wr-news-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.wr-news-grid-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none !important;
    transition: border-color 0.2s;
}

.wr-news-grid-card:hover {
    border-color: rgba(255,255,255,0.18);
}

.wr-news-grid-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.wr-news-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.wr-news-grid-card:hover .wr-news-grid-thumb img {
    opacity: 0.85;
}

.wr-news-grid-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.wr-news-grid-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wr-news-grid-excerpt {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.wr-news-grid-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text) !important;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 992px) {
    .wr-news-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .wr-news-grid-4 { grid-template-columns: 1fr; }
}

/* === CATEGORIES GRID === */
.wr-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .wr-categories-grid { grid-template-columns: 1fr; }
}

.wr-category-card {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    text-decoration: none !important;
}

.wr-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px !important;
    display: block;
    transition: transform 0.4s ease;
    filter: grayscale(20%) brightness(0.85);
}

.wr-category-card:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

.wr-category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 22px 22px;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
    border-radius: 0 0 10px 10px;
}

.wr-category-overlay h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 6px !important;
}

.wr-category-arrow {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s;
}

.wr-category-card:hover .wr-category-arrow {
    transform: translateX(4px);
}

/* === ARTICLES LIST === */
.wr-articles-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wr-article-card {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.wr-article-card:hover {
    border-color: rgba(255,255,255,0.18);
}

.wr-article-thumb {
    flex-shrink: 0;
    width: 220px;
    display: block;
}

.wr-article-thumb img {
    width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
    transition: opacity 0.2s;
}

.wr-article-card:hover .wr-article-thumb img {
    opacity: 0.85;
}

.wr-article-body {
    flex: 1;
    padding: 12px 16px;
    min-width: 0;
}

.wr-article-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 6px 0 8px !important;
}

.wr-article-title a {
    color: var(--text) !important;
}

.wr-article-title a:hover {
    color: var(--accent) !important;
}

/* === SHORT NEWS GRID === */
.wr-short-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.wr-short-news-card {
    display: block;
    background: var(--bg-elevated);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none !important;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.wr-short-news-card:hover {
    border-color: var(--accent);
}

.wr-short-news-thumb {
    position: relative;
}

.wr-short-news-thumb img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
}

.wr-short-news-thumb .wr-tag-sm {
    position: absolute;
    top: 6px;
    left: 6px;
}

.wr-short-news-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === TAG PILLS === */
.wr-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wr-tag-pill {
    display: inline-block;
    background: var(--bg-elevated);
    color: var(--text-muted) !important;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.wr-tag-pill span {
    color: var(--text-muted);
    font-size: 11px;
}

.wr-tag-pill:hover {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
}

.wr-tag-pill:hover span {
    color: rgba(255,255,255,0.8);
}

/* Responsive tweaks */
@media (max-width: 992px) {
    .wr-news-thumb { width: 110px; }
    .wr-news-thumb img { width: 110px; height: 78px; }
    .wr-article-thumb { width: 130px; }
    .wr-article-thumb img { width: 130px; height: 90px; }
}

@media (max-width: 576px) {
    .wr-hero-title { font-size: 16px !important; }
    .wr-news-thumb { width: 90px; }
    .wr-news-thumb img { width: 90px; height: 65px; }
    .wr-article-thumb { width: 100px; }
    .wr-article-thumb img { width: 100px; height: 70px; }
    .wr-referee-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === STATS BAR === */
.wr-stats-bar {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.wr-stat-item {
    flex: 1;
    padding: 22px 12px;
    text-align: center;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
}

.wr-stat-item:last-child {
    border-right: none;
}

.wr-stat-num {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 5px;
}

.wr-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

/* === CONFEDERATION GRID === */
.wr-conf-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width: 992px) {
    .wr-conf-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .wr-conf-grid { grid-template-columns: repeat(2, 1fr); }
}

.wr-conf-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none !important;
    transition: border-color 0.2s, background 0.2s;
    gap: 5px;
}

.wr-conf-card:hover {
    border-color: var(--accent);
    background: var(--bg-elevated);
}

.wr-conf-acronym {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.wr-conf-name {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
}

.wr-conf-region {
    font-size: 10px;
    color: #555;
    margin-top: 2px;
    text-align: center;
}

/* === PAGINATION === */
.pagination .page-link {
    background-color: var(--bg-card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

/* === STORY / ARTICLE PAGE === */
.wr-story-body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
}
.wr-story-body p { margin-bottom: 1.2em; }
.wr-story-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 1.8em 0 0.6em;
}
.wr-story-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 1.4em 0 0.5em;
}
.wr-story-body ul, .wr-story-body ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}
.wr-story-body li { margin-bottom: 0.4em; }
.wr-story-body strong { color: var(--text); }
.wr-story-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    display: block;
}
.wr-story-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.wr-story-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    margin: 0 0 24px;
}
@media (max-width: 768px) {
    .wr-story-title { font-size: 22px; }
}
.wr-prev-next {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.wr-prev-next-item {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    text-decoration: none;
    transition: border-color 0.2s;
    display: block;
}
.wr-prev-next-item:hover {
    border-color: var(--accent);
    text-decoration: none;
}
.wr-prev-next-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.wr-prev-next-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.wr-prev-next-item:hover .wr-prev-next-title { color: var(--accent); }
.wr-prev-next-item.wr-next { text-align: right; }
.wr-sidebar-card {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}
.wr-sidebar-card:last-child { border-bottom: none; }
.wr-sidebar-card:hover { text-decoration: none; }
.wr-sidebar-thumb {
    width: 70px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
}
.wr-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wr-sidebar-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}
.wr-sidebar-card:hover .wr-sidebar-card-title { color: var(--accent); }
.wr-sidebar-card-date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.wr-sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.wr-sidebar-box-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--accent);
    margin-bottom: 14px;
}

/* === BREADCRUMB === */
.wr-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.wr-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}
.wr-breadcrumb a:hover { color: var(--accent); }

/* === PAGE HERO TITLE === */
.wr-page-hero-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
    line-height: 1.2;
}
.wr-page-hero-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* === COUNTRY GRID === */
.wr-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.wr-country-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    min-height: 54px;
}
.wr-country-card:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* === SUBREGION PILLS === */
.wr-subregion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.wr-subregion-pill {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.wr-subregion-pill:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    text-decoration: none;
}

/* === REFEREE LIST === */
.wr-referee-list {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.wr-referee-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    padding: 13px 18px;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.wr-referee-row:last-child { border-bottom: none; }
.wr-referee-row:hover {
    background: var(--bg-hover, #1e1e1e);
    text-decoration: none;
}
.wr-referee-row-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}
.wr-referee-row:hover .wr-referee-row-name { color: var(--accent); }
.wr-referee-row-meta {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* === MATCH HISTORY === */
.wr-match-group { margin-bottom: 28px; }
.wr-match-group-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    background: rgba(94,175,0,0.07);
    border-left: 3px solid var(--accent);
    border-radius: 4px 4px 0 0;
}
.wr-match-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}
.wr-match-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.wr-match-table tr:last-child td { border-bottom: none; }
.wr-match-table tr:hover td { background: rgba(255,255,255,0.03); }
.wr-match-home { font-weight: 500; }
.wr-match-result { font-weight: 700; color: var(--accent); white-space: nowrap; }
.wr-match-date { color: var(--text-muted); white-space: nowrap; }
.wr-match-stage { color: var(--text-muted); font-size: 12px; }
