/* ==========================================================================
   Go4Kora Front Theme — Clean Foundation
   ========================================================================== */

:root {
  --site-max: 1280px;
  --header-h: 72px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.14);
  --brand: #f0a306;
  --brand-strong: #dd8f00;
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-dark: #0f172a;
  --surface-dark-2: #162235;
  --line: #dbe3ee;
  --text: #162235;
  --text-soft: #526276;
  --text-faint: #7c8ca1;
  --danger: #ef4444;
  --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: changa, "Cairo", sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: linear-gradient(180deg, #f5f8fc 0%, var(--bg) 180px, var(--bg) 100%);
  color: var(--text);
  direction: ltr;
  font-family: changa, "Cairo", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  padding-top: var(--header-h);
  overflow-x: hidden;
}
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: color var(--transition), background-color var(--transition), border-color var(--transition), opacity var(--transition), transform var(--transition); }
a:hover { color: inherit; }
img { border: 0; display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, h4, h5, h6 { margin: 0; }
.container { width: 100%; max-width: calc(var(--site-max) + 24px); margin-inline: auto; padding-inline: 12px; }
#content-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 24px; padding-bottom: 8px; }
#content-wrap > .page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.page-main, .page-side { min-width: 0; }
.sidebar-card, .home-section-card, .home-latest-card, .home-taxonomy-card, .views-card, .home-inline-ad, .archive-card, .article-card, .match-summary, .video-shell { background: var(--surface); border: 1px solid rgba(200, 212, 227, 0.9); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.site-header { position: relative; z-index: 1000; }
#top-bar { position: fixed; inset: 0 0 auto; z-index: 1000; background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-dark-2) 100%); min-height: var(--header-h); border-bottom: 1px solid rgba(255,255,255,0.06); box-shadow: 0 10px 35px rgba(15, 23, 42, 0.35); }
.top-bar__inner { min-height: var(--header-h); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.top-bar__brand, .top-bar__actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-bar__actions { justify-content: flex-end; }
#site-logo { display: inline-flex; align-items: center; min-width: 0; }
#site-logo img { width: auto; max-width: min(100%, 220px); height: 42px; object-fit: contain; }
.top-bar__nav { min-width: 0; }
.search-ico { display: block; }
.top_bar_links { display: flex; align-items: center; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.top_bar_links::-webkit-scrollbar { display: none; }
.top_bar_links li { flex: 0 0 auto; }
.top_bar_links a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: #d8e2ee; font-size: 14px; font-weight: 700; }
.top_bar_links a:hover, .top_bar_links a.active, .top_bar_links li.active a { background: rgba(255,255,255,0.1); color: #ffffff; }
#menu-toggle, #search-toggle, .match-home-link { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border: none; border-radius: 50px; background: rgba(255,255,255,0.08); color: #d8e2ee; flex-shrink: 0; }
#menu-toggle:hover, #search-toggle:hover, .match-home-link:hover { background: rgba(255,255,255,0.14); color: #ffffff; }
#menu-toggle { display: none; position: relative; width: 42px; padding: 0; border-radius: 50%; }
#menu-toggle::before, #menu-toggle::after, #menu-toggle span { content: ""; position: absolute; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--transition), opacity var(--transition); }
#menu-toggle::before { transform: translateY(-6px); }
#menu-toggle::after { transform: translateY(6px); }
#menu-toggle span { transform: translateY(0); }
#header-overlay { position: fixed; inset: 0; z-index: 1080; background: rgba(2, 6, 23, 0.58); backdrop-filter: blur(2px); }
#header-overlay[hidden], #quick-search-panel[hidden] { display: none !important; }
#mobile-drawer { position: fixed; inset: 0 0 0 auto; z-index: 1090; width: min(360px, 86vw); background: var(--surface); color: var(--text); box-shadow: -18px 0 50px rgba(15, 23, 42, 0.16); transform: translateX(100%); transition: transform var(--transition); display: flex; flex-direction: column; }
#mobile-drawer.is-open { transform: translateX(0); }
.drawer-head, .search-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.drawer-head strong, .search-sheet__head strong { font-size: 18px; font-weight: 800; }
.drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 24px; line-height: 1; }
.drawer-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; overflow-y: auto; }
.drawer-body a, .search-sheet__results a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 14px; border-radius: 14px; color: var(--text); font-size: 15px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); }
.drawer-body a:hover, .search-sheet__results a:hover, .search-sheet__results a.is-highlighted { background: rgba(240, 163, 6, 0.08); border-color: rgba(240, 163, 6, 0.24); color: var(--brand-strong); }
.search-sheet { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-start; justify-content: center; padding: calc(var(--header-h) + 16px) 14px 18px; }
.search-sheet__dialog { width: min(700px, 100%); max-height: calc(100vh - var(--header-h) - 32px); background: var(--surface); border-radius: var(--radius-md); box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14); overflow: hidden; display: flex; flex-direction: column; }
.search-sheet__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 16px 18px 8px; }
.search-sheet__form input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); }
.search-sheet__form input:focus { outline: none; border-color: rgba(240, 163, 6, 0.5); box-shadow: 0 0 0 4px rgba(240, 163, 6, 0.12); }
.search-sheet__form button { min-width: 108px; min-height: 48px; padding: 0 18px; border: none; border-radius: 14px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%); color: #fff; font-weight: 800; }
.search-sheet__note { padding: 0 18px 12px; font-size: 13px; color: var(--text-soft); }
.search-sheet__results { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 18px; overflow: auto; }
#section-links { background: rgba(15, 23, 42, 0.96); border-bottom: 1px solid rgba(255,255,255,0.06); overflow-x: auto; scrollbar-width: none; }
#section-links::-webkit-scrollbar { display: none; }
#section-links .container, #section-links .list, #section-links .slywrapper, #section-links .slybody { display: flex; align-items: stretch; }
#section-links h1 { display: contents; }
#section-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 16px; color: #96a6bb; font-size: 13px; font-weight: 700; border-bottom: 2px solid transparent; white-space: nowrap; }
#section-links a:hover, #section-links a.active { color: #ffffff; border-bottom-color: var(--brand); }
#fex-right-left { display: grid; grid-template-columns: 160px 160px; gap: 12px; justify-content: space-between; margin-bottom: 4px; }
#fex-right-left.has-single-ad { grid-template-columns: 160px; justify-content: start; }
.bnrside { width: 100%; min-height: 90px; border-radius: 16px; overflow: hidden; transition: transform var(--transition); }
.bnrside.is-stuck { position: sticky; top: calc(var(--header-h) + 18px); }
#top-content { padding-top: 12px; }
.five { width: 100%; max-width: calc(var(--site-max) + 24px); margin-inline: auto; padding-inline: 12px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.home-hero__item { min-width: 0; }
.home-hero__card { position: relative; display: block; min-height: 388px; height: 100%; border-radius: var(--radius-lg); overflow: hidden; background: #0f172a; box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08); }
.home-hero__item--secondary .home-hero__card { min-height: 388px; }
.home-hero__media, .home-hero__media img { width: 100%; height: 100%; }
.home-hero__media { position: absolute; inset: 0; }
.home-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.18) 36%, rgba(15, 23, 42, 0.9) 100%); }
.home-hero__media img { object-fit: cover; transition: transform 0.4s ease; }
.home-hero__card:hover .home-hero__media img { transform: scale(1.05); }
.home-hero__content { position: absolute; inset: auto 0 0; z-index: 2; display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.home-hero__title { font-size: 30px; line-height: 1.42; font-weight: 800; color: #ffffff; }
.home-hero__item--secondary .home-hero__title { font-size: 20px; }
.home-news-context { display: inline-flex; align-items: center; width: fit-content; min-height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,0.12); color: #ffffff; font-size: 12px; font-weight: 800; backdrop-filter: blur(8px); }
.home-news-context a { color: inherit; }
.m_adv, [class*="-adv"] { margin: 0; text-align: center; overflow: hidden; }
.m_adv img, [class*="-adv"] img { max-width: 100%; height: auto; }
.home-sections { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.18fr) minmax(280px, 1fr); gap: 18px; max-width: calc(var(--site-max) + 24px); margin: 18px auto 0; padding-inline: 12px; align-items: start; }
.home-sections__column { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.home-sections__column--side, .home-sections__column--center, .home-views-card, .home-taxonomy-card__label, .bnr-right, .bnr-left, .alba_hfrb-adv { min-width: 0; }
.home-section-card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.home-section-card__title { position: relative; padding-inline-start: 14px; font-size: 18px; font-weight: 800; color: var(--text); }
.home-section-card__title::before { content: ""; position: absolute; inset: 3px auto 3px 0; width: 4px; border-radius: 999px; background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%); }
.home-section-card__more { color: var(--brand-strong); font-size: 13px; font-weight: 800; }
.home-section-card__feature { position: relative; display: block; overflow: hidden; border-bottom: 1px solid var(--line); }
.home-section-card__feature img { width: 100%; height: 230px; object-fit: cover; transition: transform 0.35s ease; }
.home-section-card__feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.78) 100%); }
.home-section-card__feature:hover img { transform: scale(1.04); }
.home-section-card__feature h3 { position: absolute; inset: auto 0 0; z-index: 2; padding: 18px 20px 20px; color: #ffffff; font-size: 19px; line-height: 1.6; }
.home-section-card__item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); color: var(--text); }
.home-section-card__item:last-child { border-bottom: none; }
.home-section-card__item:hover { color: var(--brand-strong); }
.home-section-card__item img { width: 96px; height: 68px; object-fit: cover; border-radius: 12px; }
.home-section-card__item span { font-size: 14px; font-weight: 700; line-height: 1.7; }
.home-spotlight-card .home-section-card__head { background: linear-gradient(135deg, rgba(240, 163, 6, 0.12) 0%, rgba(240, 163, 6, 0.02) 100%); }
.home-spotlight-card__context { padding: 12px 20px 0; }
.home-spotlight-card__context a { color: var(--brand-strong); font-size: 13px; font-weight: 800; }
.media-container { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.media-container:last-of-type { border-bottom: none; }
.media-img { width: 120px; height: 82px; border-radius: 14px; overflow: hidden; background: #dbe3ee; }
.media-img a, .media-img img { width: 100%; height: 100%; }
.media-img img { object-fit: cover; transition: transform 0.3s ease; }
.media-img a:hover img { transform: scale(1.05); }
.media-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.media-body > a:first-child { color: var(--text); font-size: 16px; font-weight: 800; line-height: 1.75; }
.media-body > a:first-child:hover { color: var(--brand-strong); }
.section_link { width: fit-content; color: var(--text-soft); font-size: 12px; font-weight: 800; }
.section_link:hover { color: var(--brand-strong); }
.more-news { display: flex; align-items: center; justify-content: center; min-height: 54px; margin: 16px 20px 20px; border-radius: 14px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%); color: #ffffff; font-size: 14px; font-weight: 800; box-shadow: 0 12px 28px rgba(221, 143, 0, 0.18); }
.more-news:hover { transform: translateY(-1px); color: #ffffff; }
.views-card h6 { position: relative; padding: 18px 20px 14px 34px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 800; color: var(--text); }
.views-card h6::before { content: ""; position: absolute; inset: 18px auto 14px 20px; width: 4px; border-radius: 999px; background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%); }
.views-card a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--text); }
.views-card a:last-child { border-bottom: none; }
.views-card a:hover { color: var(--brand-strong); }
.views-card a span { display: inline-flex; align-items: center; justify-content: center; width: 34px; min-height: 34px; border-radius: 50%; background: rgba(240, 163, 6, 0.12); color: var(--brand-strong); font-size: 13px; font-weight: 900; }
.views-card a strong { font-size: 14px; line-height: 1.7; font-weight: 700; }
.home-taxonomy-card { overflow: hidden; background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); }
.home-taxonomy-card .home-section-card__head { background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-dark-2) 100%); border-bottom-color: rgba(255,255,255,0.06); }
.home-taxonomy-card .home-section-card__title { color: #ffffff; }
.home-taxonomy-card .home-section-card__title::before { background: rgba(255,255,255,0.6); }
.home-taxonomy-card__list { display: flex; flex-direction: column; }
.home-taxonomy-card__link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--text); }
.home-taxonomy-card__link:last-child { border-bottom: none; }
.home-taxonomy-card__link:hover { background: rgba(240, 163, 6, 0.08); color: var(--brand-strong); }
.home-taxonomy-card__arrow { font-size: 20px; color: var(--text-faint); }
.home-inline-ad { padding: 18px; text-align: center; }
.sidebar-stack { display: flex; flex-direction: column; gap: 18px; }
.sidebar-block-title { position: relative; display: flex; align-items: center; min-height: 56px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 800; color: var(--text); }
.sidebar-block-title::before { content: ""; width: 4px; height: 26px; border-radius: 999px; background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%); margin-inline-end: 12px; }
.sidebar-latest-card, .sidebar-views-card { overflow: hidden; }
.sidebar-news-list { display: flex; flex-direction: column; }
.sidebar-news-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.sidebar-news-card:last-child { border-bottom: none; }
.sidebar-news-card--featured { display: block; padding: 0; }
.sidebar-news-card--featured .sidebar-news-card__image { width: 100%; height: 190px; border-radius: 0; }
.sidebar-news-card--featured .sidebar-news-card__body { padding: 16px 20px 18px; }
.sidebar-news-card__image { width: 88px; height: 62px; border-radius: 12px; overflow: hidden; background: #dbe3ee; }
.sidebar-news-card__image img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-news-card__body { min-width: 0; }
.sidebar-news-card__body a { font-size: 14px; line-height: 1.7; font-weight: 700; color: var(--text); }
.sidebar-news-card__body a:hover { color: var(--brand-strong); }
.archive-card { overflow: hidden; }
.archive-card__head, .article-card__head { display: flex; align-items: center; min-height: 64px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.archive-card__head h1, .archive-card__head label, .article-card__head h1 { font-size: 20px; font-weight: 800; }
.archive-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.archive-feed li { border-bottom: 1px solid var(--line); }
.archive-feed li a { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 20px; color: var(--text); }
.archive-feed li a:hover { background: rgba(240, 163, 6, 0.05); }
.archive-feed img { width: 132px; height: 92px; object-fit: cover; border-radius: 14px; }
.archive-feed h6 { font-size: 16px; line-height: 1.7; font-weight: 800; }
.archive-feed span { display: block; margin-top: 6px; color: var(--text-soft); font-size: 12px; font-weight: 700; }
.article-card { overflow: hidden; }
.article-card__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: unset; padding: 22px 24px 18px; }
.article-card__title { font-size: 32px; line-height: 1.5; font-weight: 800; color: var(--text); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--text-soft); font-size: 13px; font-weight: 700; }
.article-meta .author { color: var(--brand-strong); }
.article-content-card { padding: 0 24px 28px; }
.article-content-card > img.responsive-img, .article-content-card #details_content > img { width: 100%; max-height: 540px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 20px; }
#details_content { color: var(--text); font-size: 16px; line-height: 2; }
#details_content p { margin-top: 0; margin-bottom: 16px; }
#details_content a { color: var(--brand-strong); text-decoration: underline; }
#details_content h1, #details_content h2, #details_content h3, #details_content h4 { margin: 24px 0 12px; line-height: 1.6; }
#details_content ul, #details_content ol { list-style: disc; padding-inline-start: 24px; margin-bottom: 18px; }
#details_content ol { list-style: decimal; }
#details_content blockquote { margin: 20px 0; padding: 16px 18px; border-inline-start: 4px solid var(--brand); background: rgba(240, 163, 6, 0.06); border-radius: 0 14px 14px 0; }
.match-page { min-width: 0; }
.match-summary { overflow: hidden; }
.match-summary--live { border-color: rgba(239, 68, 68, 0.38); box-shadow: 0 18px 45px rgba(239, 68, 68, 0.08); }
.match-summary__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 22px 24px; }
.match-summary__team { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; min-width: 0; }
.match-summary__logo { width: 92px; height: 92px; border-radius: 20px; background: var(--surface-muted); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 14px; }
.match-summary__logo img { width: 100%; height: 100%; object-fit: contain; }
.match-summary__name { font-size: 20px; line-height: 1.5; font-weight: 800; }
.match-summary__center { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.match-summary__versus { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; min-height: 72px; padding: 0 16px; border-radius: 50%; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%); color: #fff; font-size: 24px; font-weight: 900; box-shadow: 0 18px 36px rgba(221, 143, 0, 0.22); }
.match-summary__competition { color: var(--text-soft); font-size: 13px; font-weight: 800; }
.match-summary__status { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(15, 23, 42, 0.06); color: var(--text); font-size: 12px; font-weight: 800; }
.match-summary--live .match-summary__status { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.video-shell { padding: 18px; }
.video-frame { position: relative; overflow: hidden; border-radius: var(--radius-md); background: #000; aspect-ratio: 16 / 9; }
.video-frame iframe, .video-frame .video-iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.match-page .article-card__head { padding-bottom: 8px; }
.match-page .article-card__title { font-size: 26px; }
.old-player { margin: 4px 0 20px; padding: 12px; border-radius: 18px; background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%); border: 1px solid rgba(15, 23, 42, 0.06); }
.old-player__note { margin-bottom: 10px; color: #64748b; font-size: 13px; line-height: 1.6; text-align: center; }
.old-player .albaplayer_name { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.old-player .albaplayer_name li { list-style: none; margin: 0; padding: 0; }
.old-player .albaplayer_name a { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; color: #1e293b; border: 1px solid #e2e8f0; text-decoration: none; font-size: 13px; font-weight: 800; }
.old-player .albaplayer_name li.is-active a { background: #0f172a; border-color: #0f172a; color: #fff; }
.old-player__frame { position: relative; width: 100%; overflow: hidden; border-radius: 14px; background: #0b1220; aspect-ratio: 16 / 9; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16); }
.old-player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.old-player__catch { position: absolute; inset: 0; z-index: 3; cursor: pointer; background: transparent; }
.old-player__standby { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: radial-gradient(120% 120% at 50% 0%, #101b2e 0%, #0b1220 55%, #070d18 100%); color: #e2e8f0; text-align: center; padding: 20px; }
.old-player__standby.is-hidden { display: none; }
.old-player__standby-icon { color: #38bdf8; opacity: .9; animation: standby-pulse 2s ease-in-out infinite; }
.old-player__standby-title { font-size: 16px; font-weight: 800; letter-spacing: .2px; }
.old-player__standby-msg { font-size: 13px; color: #94a3b8; max-width: 320px; line-height: 1.5; }
@keyframes standby-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.old-player__catch.is-hidden { display: none; }
#error-block { width: 100%; }
.error-page { display: flex; align-items: center; justify-content: center; min-height: 520px; padding: 30px 16px; }
.error-page__box { width: min(760px, 100%); padding: 44px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08); text-align: center; }
.error-page__code { font-size: clamp(64px, 12vw, 110px); line-height: 1; font-weight: 900; color: var(--brand-strong); margin-bottom: 18px; }
.error-page__title { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.error-page__text { color: var(--text-soft); font-size: 16px; line-height: 1.9; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 24px 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 800; }
.pagination a:hover, .pagination span.current { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%); border-color: transparent; color: #fff; }
img.lazy { opacity: 0; transition: opacity 0.35s ease; }
img.lazy.is-loaded, img.lazy[src]:not([src=""]) { opacity: 1; }
.site-footer { margin-top: 40px; background: linear-gradient(135deg, var(--surface-dark) 0%, #101a2a 100%); color: #9fb0c4; }
.site-footer__inner { padding: 30px 12px 0; }
.footer-brand { display: flex; align-items: center; justify-content: center; min-height: 60px; margin-bottom: 12px; color: #ffffff; font-size: 20px; font-weight: 800; }
.footer-copy { padding: 16px 0 20px; border-top: 1px solid rgba(255,255,255,0.07); text-align: center; font-size: 13px; color: #8ca0b7; }
.footer-copy a { color: #ffffff; font-weight: 700; }
@media (max-width: 1199px) {
  .home-hero { grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 0.95fr)); }
  .home-hero__card, .home-hero__item--secondary .home-hero__card { min-height: 340px; }
  .home-hero__title { font-size: 26px; }
  .home-hero__item--secondary .home-hero__title { font-size: 18px; }
  .home-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-sections__column--center { grid-column: 1 / -1; order: -1; }
  #content-wrap > .page-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  #fex-right-left { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-feed { grid-template-columns: minmax(0, 1fr); }
  .archive-feed li a { grid-template-columns: 110px minmax(0, 1fr); }
}
@media (max-width: 768px) {
  :root { --header-h: 62px; }
  body { font-size: 14px; }
  .container, .five, .home-sections { padding-inline: 10px; }
  .top-bar__inner { gap: 10px; }
  #menu-toggle { display: inline-flex; }
  .top-bar__nav { display: none; }
  #site-logo img { height: 36px; max-width: 176px; }
  .search-sheet { padding: calc(var(--header-h) + 10px) 10px 14px; }
  .search-sheet__dialog { max-height: calc(100vh - var(--header-h) - 18px); border-radius: 16px; }
  .home-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-hero__item--primary { grid-column: 1 / -1; }
  .home-hero__card { min-height: 290px; border-radius: 20px; }
  .home-hero__item--secondary .home-hero__card { min-height: 210px; border-radius: 18px; }
  .home-hero__content { padding: 18px; }
  .home-hero__title { font-size: 23px; }
  .home-hero__item--secondary .home-hero__title { font-size: 16px; }
  .home-sections { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-sections__column { gap: 14px; }
  .home-section-card__head, .views-card h6, .sidebar-block-title, .archive-card__head, .article-card__head { padding-inline: 16px; }
  .media-container, .home-section-card__item, .views-card a, .home-taxonomy-card__link, .sidebar-news-card, .archive-feed li a { padding-inline: 16px; }
  .media-container { grid-template-columns: 94px minmax(0, 1fr); gap: 12px; }
  .media-img { width: 94px; height: 68px; }
  .home-section-card__feature img { height: 210px; }
  .home-section-card__feature h3 { padding: 16px; font-size: 17px; }
  .home-section-card__item { grid-template-columns: 78px minmax(0, 1fr); }
  .home-section-card__item img { width: 78px; height: 56px; }
  .home-section-card__item span, .views-card a strong, .sidebar-news-card__body a { font-size: 13px; }
  .article-card__title { font-size: 24px; }
  .article-content-card { padding-inline: 16px; padding-bottom: 22px; }
  .match-summary__inner { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 16px; }
  .match-summary__center { order: -1; }
  .match-summary__logo { width: 78px; height: 78px; }
  .match-summary__name { font-size: 18px; }
  .video-shell { padding: 12px; }
  #fex-right-left { display: none; }
}
@media (max-width: 560px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .home-hero__item--primary { grid-column: auto; }
  .home-hero__card { min-height: 248px; border-radius: 18px; }
  .home-hero__item--secondary .home-hero__card { min-height: 184px; }
  .home-hero__title { font-size: 20px; }
  .home-hero__item--secondary .home-hero__title { font-size: 15px; }
  .search-sheet__form { grid-template-columns: minmax(0, 1fr); }
  .archive-feed li a { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
  .archive-feed img { width: 88px; height: 64px; }
  .article-meta { gap: 8px 12px; }
  .error-page__box { padding: 34px 18px; }
}
@media (max-width: 400px) {
  #site-logo img { max-width: 154px; }
  .home-hero__card { min-height: 226px; }
  .home-hero__item--secondary .home-hero__card { min-height: 170px; }
}

@media (max-width: 768px) {
  .match-page .old-player {
    width: auto;
    max-width: none;
    margin: 8px 0 16px;
    padding: 10px;
    border-radius: 16px;
    box-sizing: border-box;
  }
  .match-page .old-player__frame {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
    max-height: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  }
}

/* ===================== Scoreboard (match result) ===================== */
.sb {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 0 24px 18px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #101a2c 0%, var(--surface-dark) 55%, #1b2740 100%);
  box-shadow: var(--shadow-md);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 80% at 50% -20%, rgba(240, 163, 6, 0.18), transparent);
  pointer-events: none;
}
.sb__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}
.sb__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.sb__name {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  color: #fff;
  overflow-wrap: anywhere;
}
.sb__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 130px;
}
.sb__score {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 2px;
  direction: ltr;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.sb__score.is-live { color: var(--brand); text-shadow: 0 0 18px rgba(240, 163, 6, 0.45); }
.sb__score.is-done { color: #e8edf5; }
.sb__status {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  white-space: nowrap;
}
.sb__status.is-live {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.sb__status.is-live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--danger);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: sbBlink 1.3s ease-in-out infinite;
}
.sb__status.is-done { background: rgba(255, 255, 255, 0.16); color: #e2e8f0; }
.sb.is-live { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35), var(--shadow-md); }
.sb.is-done { opacity: 0.96; }
@keyframes sbBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

@media (max-width: 640px) {
  .sb { margin: 0 12px 14px; padding: 14px 10px; gap: 8px; }
  .sb__logo { width: 42px; height: 42px; }
  .sb__name { font-size: 13px; }
  .sb__score { font-size: 30px; }
  .sb__mid { min-width: 90px; }
}
