/* SportM v2 — mirrors React app (Ocean Deep palette)
   Version: 2.0.0 */

:root {
  --c-bg: #fafbfc;
  --c-fg: #0c2340;
  --c-muted: #f5f6f8;
  --c-muted-2: #eef0f3;
  --c-border: #e4e7eb;
  --c-text-soft: #6b7280;
  --c-card: #ffffff;
  --c-accent: #1976d2;
  --c-red: #c8102e;
  --grad-nav: linear-gradient(90deg, #001028 0%, #002a5c 45%, #0a4a92 75%, #1976d2 100%);
  --radius: 0.5rem;
  --shadow-sm: 0 1px 2px rgba(12, 35, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(12, 35, 64, 0.08);
  --shadow-xl: 0 20px 40px rgba(12, 35, 64, 0.18);
  --font: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-weight: 800; letter-spacing: -0.01em; margin: 0; }

.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1000; background: #fff; padding: .5rem 1rem; }

/* ===== Header ===== */
.site-header { box-shadow: var(--shadow-sm); }

.brand-band {
  position: sticky; top: 0; z-index: 40;
  background: var(--grad-nav);
  color: #fff;
}
.brand-band__inner {
  display: flex; justify-content: center; align-items: center;
  padding: 1.75rem 1rem 1rem;
}
.brand-logo img { max-height: 56px; width: auto; }
@media (min-width: 768px) { .brand-logo img { max-height: 64px; } }
.brand-logo__text {
  font-size: 2rem; font-weight: 900; color: #fff; letter-spacing: -0.02em;
}
.brand-logo__accent { color: var(--c-red); }

.primary-nav {
  background: var(--grad-nav);
  color: #fff;
}
.primary-nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex; align-items: stretch;
  gap: 0;
  padding: 0 1rem;
  min-height: 44px;
}
.primary-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex: 1; justify-content: center;
  flex-wrap: wrap;
}
.primary-nav__list li a {
  display: inline-flex; align-items: center;
  padding: 0 1.25rem; height: 44px;
  color: rgba(255,255,255,0.9);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  transition: background-color .15s, color .15s;
}
.primary-nav__list li a:hover,
.primary-nav__list li.current-cat a,
.primary-nav__list li.current-menu-item a { background: var(--c-red); color: #fff; }

.nav-search {
  display: flex; align-items: stretch; gap: 0;
  margin-left: auto; align-self: center; height: 32px;
}
.nav-search input {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0 .65rem; background: #fff; color: var(--c-fg);
  font-size: 12px; outline: none; min-width: 220px;
  border-radius: 3px 0 0 3px;
}
.nav-search button {
  border: 0; background: var(--c-accent); color: #fff;
  padding: 0 .9rem; cursor: pointer; font-weight: 700; font-size: 14px;
  border-radius: 0 3px 3px 0;
}
.nav-search button:hover { background: var(--c-red); }

.nav-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 999px;
  margin-right: .4rem; vertical-align: middle;
}
.nav-dot--red { background: var(--c-red); }
.nav-dot--gold { background: #ffd700; }
.primary-nav__list li.nav-special a.strong { color: #fff; font-weight: 800; }

.leagues-strip {
  background: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
}
.leagues-strip__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: .5rem 1rem;
  display: flex; align-items: center; gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.leagues-strip__inner::-webkit-scrollbar { display: none; }
.league-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  flex-shrink: 0;
  background: #fff; color: var(--c-fg);
  border: 1px solid var(--c-border); border-radius: 999px;
  padding: .25rem .65rem;
  font-size: 11px; font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.league-chip img { width: 16px; height: 16px; object-fit: contain; }
.league-chip:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; }

/* ===== Layout ===== */
.site-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
}
.section { margin-top: 2rem; }
.section:first-child { margin-top: 1.25rem; }

/* Top grid: 5fr / 3fr / 300px */
.top-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .top-grid { grid-template-columns: 5fr 3fr 300px; align-items: stretch; }
}
.hero-stack { display: flex; flex-direction: column; gap: 1rem; min-height: 420px; }
.hero-stack > a { flex: 1; min-height: 200px; }

/* ===== Cards ===== */
.card { display: block; color: inherit; transition: transform .3s; }
.card__media {
  position: relative; overflow: hidden;
  background: #0c2340;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s;
}
.card:hover .card__media img { transform: scale(1.05); }
.card__media-fallback {
  position: absolute; inset: 0; display: block;
}

/* Video badge — bottom-left play circle over media */
.card__video {
  position: absolute; left: .5rem; top: .5rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(0,0,0,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.7);
}
.card--hero .card__video { width: 56px; height: 56px; }
.card--thumb .card__video, .card--small .card__video { width: 28px; height: 28px; left: .25rem; top: .25rem; }
.card__video svg { width: 20px; height: 20px; }

/* World Cup widget block (inside featured card) */
.wc-widget {
  border-top: 1px solid var(--c-border); padding-top: .75rem;
  background: linear-gradient(135deg, #0a1f44, #1f3a93); color: #fff;
  border-radius: 0.5rem; padding: .85rem; margin-top: auto;
}
.wc-widget__head {
  display: flex; align-items: center; gap: .5rem;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: #ffd700;
}
.wc-widget__title {
  margin-top: .35rem; font-size: 14px; font-weight: 900; line-height: 1.2;
}
.wc-widget__more {
  display: inline-block; margin-top: .5rem;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: #ffd700;
}

/* Hero variant */
.card--hero {
  position: relative; height: 100%;
  border-radius: 0.75rem; overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.card--hero .card__media { position: absolute; inset: 0; }
.card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.55) 45%, transparent);
  pointer-events: none;
}
.card__hero-meta {
  position: absolute; inset: auto 0 0 0;
  padding: 1.25rem; color: #fff;
}
.card__hero-title {
  font-size: 1.25rem; font-weight: 900; line-height: 1.15;
  margin-top: .5rem;
}
@media (min-width: 768px) {
  .card__hero-title { font-size: 1.4rem; }
}

/* Medium variant (16:10 image + title) */
.card--medium {
  display: flex; flex-direction: column; height: 100%;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.card--medium .card__media { aspect-ratio: 16/10; }
.card--medium .card__body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card--medium .card__title {
  font-size: 1.125rem; font-weight: 900; line-height: 1.2;
  transition: color .15s;
}
.card--medium:hover .card__title { color: var(--c-accent); }

/* Small variant (thumbnail + title) */
.card--small, .card--thumb {
  display: grid; grid-template-columns: 120px 1fr; gap: .75rem;
  align-items: start;
}
.card--small .card__media, .card--thumb .card__media {
  aspect-ratio: 4/3; border-radius: 4px; overflow: hidden;
}
.card--small .card__body, .card--thumb .card__body { padding: 0; }
.card--small .card__title, .card--thumb .card__title {
  font-size: 13px; font-weight: 800; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: .25rem;
}
.card--small:hover .card__title, .card--thumb:hover .card__title { color: var(--c-accent); }

/* Category badge */
.cat-badge {
  display: inline-block;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: #fff; padding: .25rem .5rem; border-radius: 3px;
  align-self: flex-start;
}
.cat-badge--sm { font-size: 10px; padding: .15rem .4rem; }

/* Middle column white card (featured + extras) */
.featured-card {
  height: 100%;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex; flex-direction: column; gap: .75rem;
  box-shadow: var(--shadow-sm);
}
.featured-card__media {
  aspect-ratio: 16/9; border-radius: 4px; overflow: hidden;
}
.featured-card__media img { width: 100%; height: 100%; object-fit: cover; }
.featured-card__title {
  font-size: 1rem; font-weight: 900; line-height: 1.3; margin-top: .5rem;
}
.featured-card__extra {
  border-top: 1px solid var(--c-border); padding-top: .75rem;
}
.featured-card__extra h4 {
  font-size: 13px; font-weight: 800; line-height: 1.3;
}
.featured-card__extra .date {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--c-text-soft);
  margin-top: .25rem;
}

/* Sidebar */
.news-sidebar {
  display: flex; flex-direction: column;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  height: 100%; max-height: 720px;
}
.news-sidebar__tabs {
  display: flex; gap: 0.125rem; border-bottom: 1px solid var(--c-border);
  padding: 0 .5rem;
}
.news-sidebar__tab {
  padding: .75rem .5rem .5rem;
  font-size: 12px; font-weight: 700; color: var(--c-text-soft);
  border-bottom: 2px solid transparent;
}
.news-sidebar__tab--active { color: var(--c-fg); border-bottom-color: var(--c-fg); }
.news-sidebar__list { overflow-y: auto; flex: 1; }
.news-sidebar__item {
  display: grid; grid-template-columns: 8px 1fr; gap: .75rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--c-border);
  transition: background .15s;
}
.news-sidebar__item:hover { background: var(--c-muted); }
.news-sidebar__dot {
  margin-top: .4rem; width: 6px; height: 6px; border-radius: 999px;
}
.news-sidebar__cat {
  font-size: 12px; font-weight: 700;
}
.news-sidebar__title {
  font-size: 14px; font-weight: 700; line-height: 1.3;
  margin-top: .25rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-sidebar__item:hover .news-sidebar__title { color: var(--c-accent); }

/* 4-card row */
.cards-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .cards-grid--four { grid-template-columns: repeat(4, 1fr); }
  .cards-grid--two  { grid-template-columns: 1fr 1fr; }
}

/* Category sections */
.cat-section {
  margin-top: 2.5rem;
  background: rgba(238, 240, 243, 0.55);
  border-radius: 0.75rem;
  padding: 1rem;
}
@media (min-width: 1024px) { .cat-section { padding: 1.5rem; } }
.cat-section__head {
  display: flex; justify-content: space-between; align-items: end;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: .75rem; margin-bottom: 1.25rem;
}
.cat-section__title-wrap {
  display: flex; align-items: center; gap: .75rem;
}
.cat-section__bar {
  display: inline-block; width: 6px; height: 24px; border-radius: 2px;
}
.cat-section__title {
  font-size: 1.25rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .08em;
}
@media (min-width: 1024px) {
  .cat-section__title { font-size: 1.5rem; }
}
.cat-section__more {
  font-size: 12px; font-weight: 700; color: var(--c-text-soft);
  text-transform: uppercase; letter-spacing: .08em;
}
.cat-section__more:hover { color: var(--c-fg); }
.cat-section__thumbs { margin-top: 1.25rem; }

/* Article single */
.article {
  max-width: 800px; margin: 1.5rem auto; padding: 0 1rem;
  background: var(--c-card);
}
.article__cat { margin-bottom: 1rem; }
.article__title {
  font-size: 2rem; line-height: 1.15; margin-bottom: .75rem;
}
.article__meta {
  color: var(--c-text-soft); font-size: 14px;
  margin-bottom: 1.5rem;
}
.article__thumb {
  margin-bottom: 1.5rem; border-radius: var(--radius); overflow: hidden;
}
.article__content { font-size: 1rem; line-height: 1.7; }
.article__content p { margin: 0 0 1rem; }
.article__content h2, .article__content h3 { margin: 1.5rem 0 .75rem; }
.article__content img { border-radius: 4px; margin: 1rem 0; }
.article__content a { color: var(--c-accent); text-decoration: underline; }

/* Pagination */
.pagination {
  display: flex; gap: .5rem; justify-content: center; margin: 2rem 0;
}
.pagination a, .pagination span {
  padding: .5rem .85rem; border: 1px solid var(--c-border);
  border-radius: 3px; font-weight: 700; font-size: 14px;
  background: #fff;
}
.pagination .current { background: var(--c-fg); color: #fff; border-color: var(--c-fg); }

/* Footer */
.site-footer { margin-top: 4rem; background: #fff; border-top: 1px solid var(--c-border); }
.site-footer__brands-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 1rem;
}
.site-footer__follow {
  display: flex; align-items: center; gap: .75rem;
  background: var(--c-red); color: #fff;
  padding: .85rem 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  border-radius: 3px; font-size: 13px;
}
.site-footer__follow a { color: #fff; font-size: 12px; }
.site-footer__links {
  border-top: 1px solid var(--c-border);
  padding: 1rem;
}
.site-footer__links .footer-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: center; max-width: var(--maxw); margin: 0 auto;
  font-size: 14px;
}
.site-footer__links a:hover { color: var(--c-red); }
.site-footer__copy {
  border-top: 1px solid var(--c-border);
  padding: 1rem; text-align: center;
  font-size: 12px; color: var(--c-text-soft);
  max-width: var(--maxw); margin: 0 auto;
}
.site-footer__version {
  display: inline-block; margin-left: .75rem; opacity: .7;
}
