/* ==========================================================================
   SRPSKI DERBI (srpskiderbi.com) - Glavni stilovi sajta
   Svetla tema, savremeni sportski magazin sa retro sportskim karakterom.
   ========================================================================== */

:root {
  --bg-page: #fbfaf7;
  --bg-surface: #ffffff;
  --bg-subtle: #f3f1ea;
  --bg-card: #ffffff;
  --bg-dark: #12151a;
  
  --text-main: #181c20;
  --text-muted: #5c6570;
  --text-light: #828d99;
  
  --color-red: #c21a22;
  --color-red-hover: #9e141a;
  --color-red-subtle: #fef2f2;
  
  --color-black: #111317;
  --color-gold: #b45309;
  --color-gold-subtle: #fef3c7;
  
  --border-light: #e5e2d8;
  --border-subtle: #edeae2;
  --border-dark: #22272f;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);

  --font-serif: "Merriweather", "Georgia", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Playfair Display", "Georgia", serif;

  --container-max: 1200px;
  --content-max: 760px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-red);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-red-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Top Bar & Header
   -------------------------------------------------------------------------- */
.top-notice-bar {
  background: var(--bg-dark);
  color: #c9d1d9;
  font-size: 0.8125rem;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--border-dark);
  text-align: center;
}

.top-notice-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.top-notice-inner span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-header {
  background: var(--bg-surface);
  border-bottom: 2px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-crest {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-red) 50%, var(--color-black) 50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.35rem 0.2rem;
  position: relative;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-red);
  text-decoration: none;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-red);
}

.mobile-only-nav-item {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-search-btn:hover {
  background: #eae7dd;
  color: var(--text-main);
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-main);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero / Intro Section (Not oversized, strictly useful)
   -------------------------------------------------------------------------- */
.home-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 2.5rem 1.25rem;
}

.home-hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.hero-lead-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 820px;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.live-search-box {
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  max-width: 650px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.live-search-box:focus-within {
  border-color: var(--color-red);
  box-shadow: var(--shadow-md);
}

.search-icon-badge {
  color: var(--text-light);
  font-size: 1.1rem;
  padding: 0 0.5rem;
}

.live-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text-main);
  background: transparent;
}

.live-search-submit {
  background: var(--color-red);
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.live-search-submit:hover {
  background: var(--color-red-hover);
}

/* Quick Navigation Cards */
.quick-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.quick-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-red);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.quick-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.quick-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.quick-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Container & Layout
   -------------------------------------------------------------------------- */
.main-wrapper {
  max-width: var(--container-max);
  margin: 2rem auto;
  padding: 0 1.25rem;
  width: 100%;
  flex: 1;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* --------------------------------------------------------------------------
   Typography for Long Editorial Articles (>10.000 characters)
   -------------------------------------------------------------------------- */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.article-breadcrumbs {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.article-breadcrumbs a {
  color: var(--text-muted);
}

.article-breadcrumbs a:hover {
  color: var(--color-red);
}

.article-category-badge {
  display: inline-block;
  background: var(--color-red-subtle);
  color: var(--color-red);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.article-summary-lead {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.65;
  color: #333d47;
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--color-red);
  padding-left: 1.25rem;
  font-style: italic;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* Match Header Scorecard */
.match-scorecard {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.scorecard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.scorecard-teams-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.team-card-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
}

.team-card-role {
  font-size: 0.8125rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-main);
  letter-spacing: 2px;
}

.score-halftime {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.scorecard-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  background: var(--bg-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
}

.scorecard-detail-item strong {
  color: var(--text-main);
}

/* Editorial Body Text */
.editorial-content {
  font-family: var(--font-sans);
  font-size: 1.1875rem; /* ~19px */
  line-height: 1.75;
  color: #272d34;
  max-width: var(--content-max);
}

.editorial-content p {
  margin-bottom: 1.5rem;
}

.editorial-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.3;
  color: var(--text-main);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border-light);
}

.editorial-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.editorial-content ul, .editorial-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.editorial-content li {
  margin-bottom: 0.5rem;
}

.editorial-content blockquote {
  border-left: 4px solid var(--color-red);
  background: var(--bg-subtle);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: #2a313a;
}

/* Table of Contents (Sidreni linkovi) */
.toc-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
}

.toc-list a {
  color: var(--text-main);
}

.toc-list a:hover {
  color: var(--color-red);
  text-decoration: underline;
}

/* Lineups Grid */
.lineups-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

.lineups-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 1rem;
}

.lineup-col-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.3rem;
  color: var(--text-main);
}

.lineup-player-list {
  list-style: none;
  padding: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* Video Player Box with Safe Fallback */
.video-feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.video-player-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
}

.video-player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta-bar {
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.video-fallback-notice {
  padding: 1.75rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-gold);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* FAQ Box */
.faq-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2.5rem 0;
}

.faq-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Sources & Bibliography */
.sources-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.sources-box h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.sources-list {
  padding-left: 1.25rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Sidebar Components
   -------------------------------------------------------------------------- */
.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-nav-list {
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.95;
}

.sidebar-nav-list a {
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar-nav-list a:hover {
  color: var(--color-red);
}

/* --------------------------------------------------------------------------
   Tables (Statistika, Arhiva utakmica)
   -------------------------------------------------------------------------- */
.data-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.75rem 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

.data-table th {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.data-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: #272d34;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background-color: #faf8f2;
}

.badge-derby {
  display: inline-block;
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.badge-cup {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Internal Useful Links Block (Iznad footera na unutrašnjim stranama)
   -------------------------------------------------------------------------- */
.internal-useful-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 2.5rem 1.25rem;
  margin-top: 4rem;
}

.internal-useful-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.internal-useful-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.internal-useful-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem 1.25rem;
  font-size: 0.875rem;
}

.internal-useful-grid a {
  color: var(--text-muted);
}

.internal-useful-grid a:hover {
  color: var(--color-red);
}

/* --------------------------------------------------------------------------
   Footer: Prijatelji sajta i prava
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: #c9d1d9;
  padding: 3rem 1.25rem 2rem;
  border-top: 3px solid var(--color-red);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-friends-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-friends-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.875rem;
}

.footer-friends-grid a {
  color: #8b949e;
}

.footer-friends-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #8b949e;
}

.footer-editorial-disclaimer {
  max-width: 680px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    order: 2;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .top-notice-bar {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  .header-inner {
    padding: 0.65rem 1rem;
    gap: 0.75rem;
  }

  .brand-area {
    gap: 0.65rem;
    min-width: 0;
  }

  .brand-crest {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .brand-name {
    font-size: 1.25rem;
    white-space: nowrap;
  }

  .brand-tagline {
    font-size: 0.7rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-search-btn {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    flex-shrink: 0;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus-visible {
    background: #eae7dd;
    color: var(--color-red);
  }

  .hero-main-title {
    font-size: 1.85rem;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 2px solid var(--border-light);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }

  .main-nav.is-open .nav-link {
    padding: 0.6rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-light);
  }

  .main-nav.is-open .nav-link.active::after {
    display: none;
  }

  .main-nav.is-open .nav-link.active {
    color: var(--color-red);
    font-weight: 700;
  }

  .mobile-only-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-red) !important;
    font-weight: 700;
    margin-top: 0.25rem;
  }

  .scorecard-teams-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .lineups-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.15rem;
  }

  .brand-tagline {
    font-size: 0.6875rem;
  }
}

/* --------------------------------------------------------------------------
   Enhanced Editorial Video Cards & Player UI
   -------------------------------------------------------------------------- */
.video-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-red);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.video-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #181c22;
  overflow: hidden;
}

.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-card-thumb img {
  transform: scale(1.04);
}

.video-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(194, 26, 34, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-card:hover .video-play-btn {
  transform: scale(1.12);
  background: var(--color-red);
}

.video-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(17, 19, 23, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.video-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--text-main);
  margin: 0.5rem 0 0.4rem;
}

.video-card:hover .video-card-title {
  color: var(--color-red);
}

.video-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.85rem;
}

.video-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  margin-top: auto;
}

.video-action-link {
  font-weight: 700;
  color: var(--color-red);
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Match Page Video Player Hero Box */
.video-player-hero-box {
  background: #111317;
  color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-dark);
}

.video-player-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0c0f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-player-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.video-screen-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  text-align: center;
}

.video-screen-play {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--color-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(194, 26, 34, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}

.video-screen-play:hover {
  transform: scale(1.1);
  background: var(--color-red-hover);
}

.video-screen-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  max-width: 600px;
}

.video-screen-meta {
  font-size: 0.84rem;
  color: #cbd5e1;
}

.video-player-info-bar {
  padding: 1rem 1.5rem;
  background: #181c22;
  border-top: 1px solid #22272f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.video-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #94a3b8;
}

.video-watch-external-btn {
  background: var(--color-red);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.video-watch-external-btn:hover {
  background: var(--color-red-hover);
  text-decoration: none;
}

/* ==========================================================================
   Klupski vizuelni identitet ("šmek")
   Crvena zvezda = Crveno (#c8102e), Partizan = Crno (#111827), Oba kluba = Pola-pola!
   ========================================================================== */

/* Club Card Accents */
.club-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.club-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.club-card.club-zvezda {
  border-top: 4px solid #c8102e;
}
.club-card.club-zvezda:hover {
  border-color: #fca5a5;
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.09);
}

.club-card.club-partizan {
  border-top: 4px solid #111827;
}
.club-card.club-partizan:hover {
  border-color: #9ca3af;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
}

.club-card.club-dual {
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
.club-card.club-dual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, #c8102e 50%, #111827 50%);
}
.club-card.club-dual:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.club-card.club-neutral {
  border-top: 4px solid #b45309;
}

/* Club Badges */
.badge-club {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.badge-club.badge-zvezda {
  background: #c8102e;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(200, 16, 46, 0.25);
}

.badge-club.badge-partizan {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.badge-club.badge-dual {
  background: linear-gradient(135deg, #c8102e 50%, #111827 50%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.badge-club.badge-neutral {
  background: #4b5563;
  color: #ffffff;
}

/* Dual Split Badge Component */
.badge-split {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 1px solid #222;
}
.badge-split-red {
  background: #c8102e;
  color: #fff;
  padding: 0.25rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.badge-split-black {
  background: #111827;
  color: #fff;
  padding: 0.25rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Match Table Row Winners */
.match-table-row.winner-zvezda {
  background: rgba(254, 242, 242, 0.5);
}
.match-table-row.winner-zvezda:hover {
  background: #fee2e2;
}
.match-table-row.winner-partizan {
  background: rgba(243, 244, 246, 0.6);
}
.match-table-row.winner-partizan:hover {
  background: #e5e7eb;
}

.score-zvezda {
  color: #c8102e;
  font-weight: 800;
}
.score-partizan {
  color: #111827;
  font-weight: 800;
}
.score-draw {
  color: #4b5563;
  font-weight: 700;
}

/* Action Buttons in Utakmice Table */
.btn-action-story {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #c8102e;
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 6px rgba(200, 16, 46, 0.25);
}
.btn-action-story:hover {
  background: #991b1b;
  transform: translateY(-1px);
  text-decoration: none;
}

.badge-archive {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  white-space: nowrap;
}

/* Comparison Bars in Stats */
.comparison-bar-container {
  display: flex;
  height: 28px;
  border-radius: 14px;
  overflow: hidden;
  margin: 1.25rem 0;
  background: #e5e7eb;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.comparison-bar-zvezda {
  background: #c8102e;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease;
}
.comparison-bar-draw {
  background: #9ca3af;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease;
}
.comparison-bar-partizan {
  background: #111827;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease;
}

/* Video Card Thumbnail Component (without iframe) */
.video-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  border-radius: var(--radius-sm);
  display: block;
}
.video-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s ease;
  opacity: 0.85;
}
.video-card-thumb-wrap:hover .video-card-thumb-img {
  transform: scale(1.05);
  opacity: 0.95;
}
.video-card-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-card-thumb-wrap:hover .video-card-play-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: #c8102e;
}
.video-card-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Enhanced Statistics Section Styles */
.stat-subnav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
.stat-subnav-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.stat-subnav-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-red);
}
.stat-subnav-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: #fef2f2;
  color: var(--color-red);
}
.stat-subnav-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.stat-subnav-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Two-column dashboard widgets */
.stat-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.stat-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.stat-widget-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Rank Badges */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.78rem;
}
.rank-1 {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #78350f;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}
.rank-2 {
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
  color: #1f2937;
}
.rank-3 {
  background: linear-gradient(135deg, #fed7aa, #d97706);
  color: #7c2d12;
}
.rank-other {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

/* Stat Value Pill */
.stat-pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}
.stat-pill-red {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.stat-pill-dark {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
}

/* Trivia Cards Grid */
.trivia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.trivia-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trivia-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.trivia-card.trivia-black {
  border-left-color: #111827;
}
.trivia-card.trivia-gold {
  border-left-color: #f59e0b;
}
.trivia-card-icon {
  font-size: 1.35rem;
  color: var(--color-red);
  margin-bottom: 0.5rem;
}
.trivia-black .trivia-card-icon {
  color: #111827;
}
.trivia-gold .trivia-card-icon {
  color: #d97706;
}
.trivia-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.trivia-card-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

