/* ==========================================================================
   SUMQAYIT BK - OFFICIAL SPORTS CLUB STYLESHEET
   Brand Colors from logo.png:
   - Deep Club Navy: #0a1931, #0f2b5c
   - Vivid Sport Red: #de1b38, #b8142b
   - Basketball Orange: #ff6b00, #ea580c
   - Clean Whites & Athletic Grays: #ffffff, #f8fafc, #f1f5f9, #e2e8f0
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Brand Palette */
  --c-navy-950: #061021;
  --c-navy-900: #0a1931;
  --c-navy-800: #0f2b5c;
  --c-navy-700: #173b7d;
  --c-navy-600: #1e4b9e;

  --c-red-700: #b8142b;
  --c-red-600: #de1b38;
  --c-red-500: #ef233c;
  --c-red-100: #ffe5e8;

  --c-orange-600: #ea580c;
  --c-orange-500: #ff6b00;
  --c-orange-400: #fb923c;
  --c-orange-100: #ffedd5;

  --c-surface: #ffffff;
  --c-bg: #f8fafc;
  --c-bg-alt: #f1f5f9;
  --c-border: #e2e8f0;
  --c-border-dark: #1e293b;

  --c-text-main: #0f172a;
  --c-text-muted: #64748b;
  --c-text-light: #94a3b8;
  --c-text-inverse: #ffffff;

  /* Elevations */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.07);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --shadow-glow-red: 0 0 20px rgba(222, 27, 56, 0.35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --container-max: 1280px;
  --header-height: 80px;
  --ribbon-height: 48px;
}

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

html {
  font-family: var(--font-body);
  color: var(--c-text-main);
  background-color: var(--c-bg);
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

button, input, select, textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   SCHEDULE & RESULTS MATCHES RIBBON
   ========================================================================== */
.match-ribbon-wrapper {
  background: var(--c-navy-950);
  margin-top: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.8125rem;
  height: var(--ribbon-height);
  position: relative;
  z-index: 40;
  overflow: hidden;
}

.match-ribbon-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.ribbon-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--c-red-600);
  padding: 0 1rem;
  height: 100%;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.75rem;
  flex-shrink: 0;
  color: #fff;
  text-decoration: none;
}

.ribbon-scroll {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

/* Continuous marquee: two identical tracks slide left by one track width. */
.ribbon-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  flex-shrink: 0;
  animation: ribbon-marquee var(--ribbon-duration, 40s) linear infinite;
}

.ribbon-scroll:hover .ribbon-track,
.ribbon-scroll:focus-within .ribbon-track {
  animation-play-state: paused;
}

@keyframes ribbon-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-scroll { overflow-x: auto; }
  .ribbon-track { animation: none; }
  .ribbon-track[aria-hidden="true"] { display: none; }
}

.ribbon-scroll::-webkit-scrollbar {
  display: none;
}

.ribbon-match-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.ribbon-match-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.ribbon-badge-status {
  padding: 0.15rem 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

.ribbon-badge-status.final {
  background: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.ribbon-badge-status.scheduled {
  background: var(--c-orange-500);
  color: #fff;
}

.ribbon-teams-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.ribbon-team-name {
  color: #e2e8f0;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ribbon-team-score {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.ribbon-vs {
  color: #94a3b8;
  font-size: 0.75rem;
}

.ribbon-date {
  color: #94a3b8;
  font-size: 0.75rem;
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */
.site-header {
  background: var(--c-surface);
  border-bottom: 2px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

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

.header-logo {
  height: 48px;
  width: auto;
  transition: transform 0.25s ease;
}

.header-logo:hover {
  transform: scale(1.04);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-main-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--c-navy-900);
  letter-spacing: -0.5px;
}

.brand-main-title span {
  color: var(--c-red-600);
}

.brand-sub-title {
  display: none;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  min-width: 0;
}

@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

  .header-inner {
    gap: 0.5rem;
  }

  .header-brand {
    min-width: 0;
  }

  .header-logo {
    height: 40px;
  }

  .brand-main-title {
    font-size: 1.05rem;
  }

  .header-actions {
    flex-shrink: 0;
    gap: 0.4rem;
  }

  .lang-btn {
    padding: 0.2rem 0.45rem;
  }

  .mobile-nav-toggle {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .brand-main-title {
    font-size: 0.92rem;
  }

  .header-logo {
    height: 34px;
  }
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-navy-900);
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--c-red-600);
  background-color: var(--c-red-100);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  min-width: 240px;
  display: none;
  z-index: 100;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-end > .nav-dropdown-menu {
  left: auto;
  right: 0;
}

.nav-dropdown-branch {
  position: relative;
}

.nav-dropdown-branch > .nav-dropdown-menu {
  top: 0;
  left: auto;
  right: calc(100% - 6px);
  min-width: 220px;
}

.nav-dropdown-branch:hover > .nav-dropdown-menu,
.nav-dropdown-branch:focus-within > .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-navy-900);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-item.has-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 0.85rem;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.is-active {
  background: var(--c-bg-alt);
  color: var(--c-red-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--c-bg-alt);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid var(--c-border);
}

.lang-btn {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-text-muted);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--c-navy-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
  color: var(--c-navy-900);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--c-navy-900);
}

@media (max-width: 1024px) {
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--c-red-600);
  color: #fff;
  box-shadow: 0 4px 12px rgba(222, 27, 56, 0.3);
}

.btn-primary:hover {
  background: var(--c-red-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(222, 27, 56, 0.4);
}

.btn-navy {
  background: var(--c-navy-900);
  color: #fff;
}

.btn-navy:hover {
  background: var(--c-navy-800);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--c-navy-900);
  border: 2px solid var(--c-navy-900);
}

.btn-outline:hover {
  background: var(--c-navy-900);
  color: #fff;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-red {
  background: var(--c-red-100);
  color: var(--c-red-600);
}

.badge-navy {
  background: rgba(10, 25, 49, 0.08);
  color: var(--c-navy-900);
}

.badge-orange {
  background: var(--c-orange-100);
  color: var(--c-orange-600);
}

/* ==========================================================================
   HOMEPAGE HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--c-bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-featured-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--c-navy-950);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 440px;
  transition: transform 0.3s ease;
}

.hero-featured-card:hover {
  transform: translateY(-3px);
}

.hero-cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-featured-card:hover .hero-cover-img {
  transform: scale(1.05);
}

.hero-card-overlay {
  position: relative;
  z-index: 10;
  padding: 2.5rem 2rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 16, 33, 0.95) 60%);
  color: #fff;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: #cbd5e1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-side-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-mini-card {
  display: flex;
  gap: 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.hero-mini-card:hover {
  transform: translateX(4px);
  border-color: var(--c-red-600);
  box-shadow: var(--shadow-md);
}

.hero-mini-thumb {
  width: 110px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.hero-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mini-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-mini-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--c-navy-900);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-mini-date {
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

/* ==========================================================================
   NEXT MATCH SPOTLIGHT & COUNTDOWN
   ========================================================================== */
.next-match-section {
  padding: 2.5rem 0;
  background: var(--c-navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.next-match-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 27, 56, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.next-match-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .next-match-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.next-match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.next-match-team-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.next-match-team-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}

.next-match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.countdown-timer-wrap {
  display: flex;
  gap: 0.75rem;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  min-width: 58px;
}

.countdown-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--c-orange-500);
  line-height: 1;
}

.countdown-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 0.25rem;
}

.next-match-info {
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--c-bg-alt);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  border-bottom: 2px solid var(--c-border);
  padding-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--c-navy-900);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--c-red-600);
}

/* News Grid */
.news-filters {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  padding: 0.4rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.news-filter-scroll {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.news-filter-scroll::-webkit-scrollbar {
  display: none;
}

.news-filter-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--c-bg-alt);
  color: var(--c-navy-900);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.news-filter-chip:hover {
  background: #fff;
  border-color: var(--c-border);
  color: var(--c-navy-900);
}

.news-filter-chip.is-active {
  background: var(--c-navy-900);
  color: #fff;
  border-color: var(--c-navy-900);
}

.news-filter-chip.is-active:hover {
  background: var(--c-navy-800);
  color: #fff;
}

.news-filter-arrow {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-full);
  background: var(--c-bg-alt);
  color: var(--c-navy-900);
  cursor: pointer;
}

.news-filter-arrow:hover {
  background: var(--c-navy-900);
  color: #fff;
}

.news-filter-arrow[hidden] {
  display: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.news-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(222, 27, 56, 0.3);
}

.news-card-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
  background: var(--c-navy-950);
}

.news-card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-thumb img {
  transform: scale(1.06);
}

.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

.news-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-navy-900);
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.news-card:hover .news-card-title {
  color: var(--c-red-600);
}

.news-card-excerpt {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-red-600);
}

/* ==========================================================================
   STANDINGS TABLE
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
}

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

.standings-table th {
  background: var(--c-navy-900);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.85rem 1rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.standings-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-main);
}

.standings-table tr:hover {
  background: var(--c-bg-alt);
}

.standings-table tr.highlight {
  background: var(--c-red-100);
  font-weight: 700;
}

.standings-rank {
  font-family: var(--font-display);
  font-weight: 800;
  width: 40px;
}

.standings-team-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.standings-team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ==========================================================================
   ROSTER & PLAYER CARDS
   ========================================================================== */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.player-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

a.player-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.player-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--c-red-600);
}

.player-thumb-wrap {
  display: block;
  position: relative;
  width: 100%;
  /* 3:4 — the ratio of the roster photos, so they show uncropped. */
  padding-top: 133.333%;
  background: linear-gradient(180deg, var(--c-navy-800) 0%, var(--c-navy-950) 100%);
  overflow: hidden;
}

.player-thumb-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Other ratios crop from the bottom, never the head. */
  object-position: center top;
  transform-origin: center top;
  transition: transform 0.4s ease;
}

.player-card:hover .player-thumb-wrap img {
  transform: scale(1.05);
}

.person-profile {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 320px 1fr;
}

.person-profile-photo {
  background: linear-gradient(180deg, var(--c-navy-800) 0%, var(--c-navy-950) 100%);
  min-height: 400px;
}

.person-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.person-profile-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.person-profile-name {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--c-navy-900);
  margin-bottom: 0.5rem;
}

.person-profile-position {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-red-600);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.person-profile-about {
  border-top: 1px solid var(--c-border);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.person-profile-about h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-navy-900);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

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

  .person-profile-photo {
    min-height: 280px;
    max-height: 420px;
  }

  .person-profile-body {
    padding: 1.5rem;
  }
}

.player-jersey-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.25rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1;
}

.player-info {
  padding: 1.25rem;
  text-align: center;
}

.player-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--c-navy-900);
  margin-bottom: 0.25rem;
}

.player-position {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-red-600);
  text-transform: uppercase;
}

/* ==========================================================================
   PHOTO GALLERY & INSIDE VIDEOS
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.album-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background: var(--c-navy-950);
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-card:hover img {
  transform: scale(1.08);
}

.album-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 16, 33, 0.9) 80%);
  color: #fff;
}

.album-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.album-card-meta {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ==========================================================================
   SUMQAYIT BK INSIDE
   ========================================================================== */
.inside-band {
  background: var(--c-navy-900);
  color: #fff;
  padding: 3.5rem 0;
}

.inside-band-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.inside-page-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.inside-page-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--c-red-600);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inside-cat-rail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 2rem;
  min-width: 0;
}

.inside-cat-scroll {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.inside-cat-scroll::-webkit-scrollbar {
  display: none;
}

.inside-cat-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: var(--c-navy-900);
  color: #fff;
  cursor: pointer;
}

.inside-cat-arrow:hover {
  background: var(--c-red-600);
}

.inside-cat-arrow[hidden] {
  display: none;
}

.inside-cat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: var(--c-navy-900);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.inside-cat span {
  color: #fda4af;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.inside-cat:hover {
  background: var(--c-navy-800);
  color: #fff;
}

.inside-cat.is-active {
  background: var(--c-red-600);
}

.inside-cat.is-active span {
  color: #fff;
}

.inside-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--c-red-600);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inside-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
}

.inside-all {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.inside-all:hover {
  background: #fff;
  color: var(--c-navy-900);
}

.inside-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  align-items: stretch;
}

.inside-layout.is-single {
  grid-template-columns: minmax(0, 860px);
}

.inside-lead-media,
.inside-row-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #071222;
  cursor: pointer;
  overflow: hidden;
}

.inside-lead-media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}

.inside-lead-media img,
.inside-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inside-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
}

.inside-play svg {
  width: 64px;
  height: 64px;
  padding: 16px;
  border-radius: 50%;
  background: var(--c-red-600);
  box-shadow: 0 0 24px rgba(222, 27, 56, 0.45);
}

.inside-lead-copy {
  padding-top: 1rem;
}

.inside-lead-copy h3,
.inside-row h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.3;
}

.inside-lead-copy h3 {
  font-size: 1.45rem;
  margin-top: 0.55rem;
}

.inside-lead-copy h3 a,
.inside-row h3 a {
  color: #fff;
  text-decoration: none;
}

.inside-lead-copy h3 a:hover,
.inside-row h3 a:hover {
  color: #fecaca;
}

.inside-lead-copy p {
  margin-top: 0.5rem;
  color: #cbd5e1;
}

.inside-chip {
  display: inline-block;
  color: #fecaca;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inside-side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.inside-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0.85rem;
  align-items: center;
}

.inside-row-media {
  height: 84px;
  border-radius: 12px;
}

.inside-row h3 {
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .inside-layout,
  .inside-row {
    grid-template-columns: 1fr;
  }

  .inside-row-media {
    height: 180px;
  }
}

/* ==========================================================================
   BASKETBALL AND BUSINESS
   ========================================================================== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.business-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 132px;
  padding: 1.25rem 1.35rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  color: var(--c-navy-900);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.business-card:hover {
  border-color: var(--c-red-600);
  transform: translateY(-2px);
}

.business-card-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c-red-600);
}

.business-card h2,
.business-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--c-navy-900);
}

.business-card p {
  color: var(--c-text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.business-posts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.business-post {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

.business-post-cover {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: var(--c-bg-alt);
  border-radius: var(--radius-md);
}

.business-post-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--c-navy-900);
  margin-bottom: 0.5rem;
}

.business-post-intro {
  color: var(--c-text-muted);
  margin-bottom: 0.75rem;
}

.business-post-body {
  color: var(--c-navy-900);
  line-height: 1.7;
}

.business-empty {
  color: var(--c-text-muted);
  padding: 3rem 0;
}

@media (max-width: 900px) {
  .business-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .business-grid,
  .business-post {
    grid-template-columns: 1fr;
  }

  .ribbon-label-text {
    display: none;
  }

  .ribbon-label {
    padding: 0 0.75rem;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 800px) {
  .contact-layout,
  .contact-split {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SPONSORS & PARTNERS
   ========================================================================== */
.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
}

.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 160px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.sponsor-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--c-navy-950);
  color: #fff;
  margin-top: auto;
  border-top: 3px solid var(--c-red-600);
}

.footer-main {
  padding: 4rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

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

.footer-col {
  min-width: 0;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.footer-links-list a,
.footer-desc,
.footer-bottom {
  overflow-wrap: anywhere;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--c-red-600);
  transform: translateY(-2px);
}

.footer-column-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--c-red-600);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-list a {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.footer-links-list a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .footer-main {
    padding: 2.25rem 0 1.75rem;
  }

  .footer-grid {
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
  }

  .footer-bottom > div {
    max-width: 100%;
  }
}

/* ==========================================================================
   MODALS & LIGHTBOX
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 16, 33, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

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

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumbs-bar {
  padding: 1rem 0;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  font-size: 0.8125rem;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  color: var(--c-text-muted);
}

.breadcrumbs-list a:hover {
  color: var(--c-red-600);
}

.breadcrumbs-separator {
  color: var(--c-text-light);
}

/* ==========================================================================
   MOBILE MENU DRAWER
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(22rem, 100%);
  height: 100dvh;
  max-height: 100dvh;
  background: var(--c-surface);
  z-index: 200;
  box-shadow: var(--shadow-xl);
  transform: translateX(-100%);
  transition: transform 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 640px) {
  .mobile-drawer {
    width: 100%;
  }
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  display: none;
}

.mobile-drawer-backdrop.open {
  display: block;
}

/* Completely hide mobile drawer on desktop */
@media (min-width: 1025px) {
  .mobile-drawer,
  .mobile-drawer-backdrop {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--c-border);
}

.mobile-drawer-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 1rem 1.5rem;
}

.drawer-close-btn {
  position: static;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-bg-alt);
  color: var(--c-navy-900);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-drawer ul {
  list-style: none;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-nav-links > li > a,
.mobile-nav-group summary {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-navy-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--c-border);
}

.mobile-nav-group summary {
  list-style: none;
  cursor: pointer;
}

.mobile-nav-group summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-group summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 0.2rem;
  flex-shrink: 0;
}

.mobile-nav-group[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.mobile-nav-sub,
.mobile-nav-tree {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0.7rem 0.85rem;
  border-left: 2px solid var(--c-red-100);
}

.mobile-nav-tree ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.75rem;
}

.mobile-nav-sub a,
.mobile-nav-tree a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
  padding: 0.4rem 0;
  color: var(--c-navy-800);
}

.mobile-nav-tree a.is-active {
  color: var(--c-red-600);
}

/* ==========================================================================
   ABL points table (FIBA layout: O / Q / M / X / +/-), styled after the
   club's "Turnir cədvəli" graphics: navy header, red rank badges, red points
   column and a dashed red playoff cut-off line.
   ========================================================================== */
.points-table-card {
  background: var(--c-surface, #fff);
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--c-border, #e5e7eb);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.06));
  overflow: hidden;
}
.points-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-display);
}
.points-table thead th {
  background: var(--c-navy-900);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 0.75rem;
  white-space: nowrap;
}
.points-table th.pt-team { text-align: left; }
.points-table thead th.pt-points { background: var(--c-red-600); }
.points-table tbody td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--c-border, #e5e7eb);
  vertical-align: middle;
  color: var(--c-navy-900);
}
.points-table tbody tr:last-child td { border-bottom: 0; }
.points-table .pt-rank { width: 56px; text-align: center; }
.points-table .pt-num { width: 64px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.points-table td.pt-points {
  background: var(--c-red-600);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}
.points-table td.pt-diff { color: var(--c-navy-700); }
.pt-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--c-red-600);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}
.pt-team-cell { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.pt-logo {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pt-logo img { width: 100%; height: 100%; object-fit: contain; }
.pt-logo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--c-navy-800);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pt-team-name {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.points-table tbody tr.is-club td { background: var(--c-red-100); }
.points-table tbody tr.is-club td.pt-points { background: var(--c-red-700); }
.points-table tbody tr.is-playoff-cutoff td { border-bottom: 2px dashed var(--c-red-600); }
.pt-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--c-text-muted, #6b7280);
  border-top: 1px solid var(--c-border, #e5e7eb);
}
.pt-legend-line { width: 28px; border-top: 2px dashed var(--c-red-600); }
@media (max-width: 640px) {
  .points-table thead th, .points-table tbody td { padding: 0.6rem 0.4rem; }
  .points-table .pt-num { width: 32px; font-size: 0.8125rem; }
  .points-table .pt-rank { width: 36px; }
  .points-table td.pt-diff, .points-table th.pt-diff { width: 44px; padding-right: 0.6rem; }
  .pt-rank-badge { width: 24px; height: 24px; font-size: 0.75rem; }
  .pt-logo { width: 28px; height: 28px; }
  .pt-team-name { font-size: 0.8125rem; }
}


/* ==========================================================================
   Homepage symmetry: hero side stack matches the featured card height, and
   the news grids use a fixed column count with only full rows (see home view).
   ========================================================================== */
.hero-grid { align-items: stretch; }
.hero-side-list > .hero-mini-card {
  flex: 1 1 0;
  align-items: center;
  min-height: 0;
}
.hero-side-list > .hero-mini-card .hero-mini-thumb {
  height: 100%;
  max-height: 120px;
  min-height: 80px;
  width: 140px;
}
.news-grid.is-symmetric {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 992px) {
  .hero-side-list > .hero-mini-card { flex: 0 0 auto; }
  .news-grid.is-symmetric { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .news-grid.is-symmetric { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Ad slots (managed in backoffice → Reklamlar)
   ========================================================================== */
.ad-slot { padding: 1.5rem 0; }
.ad-slot .container { position: relative; }
.ad-rotator {
  position: relative;
  display: grid;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-bg-alt, #f1f5f9);
}
.ad-item {
  grid-area: 1 / 1;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.ad-item.is-active { opacity: 1; visibility: visible; }
.ad-item img { display: block; width: 100%; height: auto; }
.ad-label {
  position: absolute;
  top: 0.4rem;
  right: 1.9rem;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(6, 16, 33, 0.55);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  pointer-events: none;
}

/* ---- Gallery album: photos keep their own ratio (no cropping), row order kept ---- */
.photo-masonry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.photo-masonry-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.photo-masonry-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.photo-masonry-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 1024px) {
  .photo-masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .photo-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
}

/* ---- Gallery lightbox: arrows and counter ---- */
[data-gallery-lightbox] .modal-content {
  position: relative;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: var(--c-red-600);
  transform: translateY(-50%) scale(1.06);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

[data-gallery-lightbox].is-single .lightbox-nav,
[data-gallery-lightbox].is-single .lightbox-counter {
  display: none;
}

@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---- Article cover (news, business, Inside): never crop the photo ----
   The whole image is shown; any side space is filled with a blurred copy. */
.article-cover {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
  background: var(--c-navy-950);
  isolation: isolate;
}

.article-cover::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: var(--cover-url) center / cover no-repeat;
  filter: blur(28px) brightness(0.55);
  z-index: -1;
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}

/* Developer credit in the footer's bottom row */
.footer-credit {
  color: #64748b;
}

.footer-credit a {
  color: #cbd5e1;
  font-weight: 600;
  text-decoration: none;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: #fff;
  text-decoration: underline;
}
