html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Haber detay sayfası */
.haber-detay-page {
  color: #1f2937;
}

.haber-detay-content {
  line-height: 1.85;
  font-size: 1.0625rem;
  color: #374151;
}

.haber-detay-content p {
  margin-bottom: 1.25rem;
}

.haber-detay-content br {
  display: block;
  margin-bottom: 0.5rem;
}

.haber-detay-content a {
  color: #008036;
  text-decoration: underline;
}

.haber-detay-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

.haber-detay-video,
.haber-detay-content .iha-haber-video {
  background: #0f172a;
  border-radius: 1rem;
  overflow: hidden;
}

.haber-detay-video video,
.haber-detay-content .iha-haber-video video,
.haber-detay-content video {
  width: 100%;
  max-height: 70vh;
  display: block;
  background: #000;
}

.haber-detay-share-btn {
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.haber-detay-share-btn:hover {
  transform: translateY(-1px);
}

/* Resim stilleri */
.haber-resim-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f3f4f6;
  min-height: 300px;
}

.haber-resim-container img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Haber kartı başlık sınırlaması */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* bg-red-600 override - Yeşil renk */
.bg-red-600 {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(0 128 54) !important;
}

nav.bg-red-600 {
  background-color: #008036 !important;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-link:hover {
  transition: color 0.2s ease;
}

/* Süper Lig puan tablosu (dikey liste) */
.sl-standings-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.sl-standings-scroll {
  overflow-x: auto;
}

.sl-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 520px;
}

.sl-standings-table thead th {
  color: #8b1538;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 12px 10px;
  border-bottom: 1px solid #ececec;
  background: #fafafa;
  white-space: nowrap;
}

.sl-standings-table tbody td {
  padding: 11px 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #1f2937;
  vertical-align: middle;
}

.sl-standings-row:last-child td {
  border-bottom: none;
}

.sl-standings-row:hover td {
  background: #f9fafb;
}

.sl-col-rank {
  width: 44px;
  padding-left: 14px !important;
  position: relative;
}

.sl-zone-top .sl-col-rank::before,
.sl-zone-drop .sl-col-rank::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
}

.sl-zone-top .sl-col-rank::before {
  background: #2563eb;
}

.sl-zone-drop .sl-col-rank::before {
  background: #dc2626;
}

.sl-rank-num {
  font-weight: 600;
  color: #374151;
}

.sl-col-team {
  text-align: left;
  min-width: 160px;
}

.sl-col-team .sl-team-name {
  font-weight: 600;
  color: #111827;
  display: block;
  line-height: 1.35;
}

.sl-col-stat {
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #4b5563;
  width: 42px;
}

.sl-col-points {
  font-weight: 700;
  color: #111827;
}

.sl-empty {
  text-align: center;
  color: #6b7280;
  padding: 24px !important;
}

.sl-standings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 14px;
  background: #fafafa;
  border-top: 1px solid #ececec;
  font-size: 0.75rem;
  color: #6b7280;
}

.sl-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sl-legend-bar {
  width: 12px;
  height: 4px;
  border-radius: 2px;
}

.sl-legend-top {
  background: #2563eb;
}

.sl-legend-drop {
  background: #dc2626;
}

@media (max-width: 640px) {
  .sl-standings-table {
    font-size: 0.8125rem;
  }

  .sl-standings-table thead th,
  .sl-standings-table tbody td {
    padding: 9px 6px;
  }

  .sl-col-team {
    min-width: 120px;
  }
}

/* Canlı skor widget (StatsPerform tarzı) */
.cs-widget {
  font-size: 0.875rem;
}

.cs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.cs-nav-title {
  font-weight: 700;
  color: #1f2937;
}

.cs-nav-dates {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-date-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: white;
  border: 1px solid #e5e7eb;
  color: #374151;
  transition: all 0.15s ease;
}

.cs-date-btn:hover {
  border-color: #008036;
  color: #008036;
}

.cs-date-current {
  font-weight: 600;
  color: #008036;
  min-width: 90px;
  text-align: center;
}

.cs-body {
  max-height: 520px;
  overflow-y: auto;
}

.cs-empty {
  padding: 48px 24px;
  text-align: center;
}

.cs-competition {
  border-bottom: 1px solid #e5e7eb;
}

.cs-competition:last-child {
  border-bottom: none;
}

.cs-competition-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f1f5f9;
  font-weight: 700;
  color: #334155;
  font-size: 0.8125rem;
}

.cs-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.cs-competition-count {
  color: #94a3b8;
  font-weight: 500;
}

.cs-match {
  border-top: 1px solid #f1f5f9;
}

.cs-match-main {
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  transition: background 0.15s ease;
}

.cs-match-main:hover {
  background: #f0fdf4;
}

.cs-match-teams-link {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.cs-match-teams-link:hover .cs-team {
  color: #008036;
}

.cs-kickoff {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
}

.cs-kickoff-live {
  color: #dc2626;
  animation: cs-pulse 1.5s ease infinite;
}

.cs-kickoff-ft {
  color: #64748b;
}

@keyframes cs-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.cs-team {
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

.cs-team-home {
  text-align: right;
}

.cs-team-away {
  text-align: left;
}

.cs-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 800;
  color: #0f172a;
  min-width: 56px;
  padding: 4px 8px;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.8125rem;
}

.cs-score-live {
  background: #fef2f2;
  color: #dc2626;
}

.cs-vs {
  color: #94a3b8;
  font-weight: 500;
}

.cs-vs-only {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.cs-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 6px;
}

.cs-toggle:hover {
  background: #e2e8f0;
  color: #334155;
}

.cs-toggle.open i {
  transform: rotate(180deg);
}

.cs-goals {
  padding: 8px 16px 12px;
  background: #fafafa;
  border-top: 1px dashed #e2e8f0;
}

.cs-goals.hidden {
  display: none;
}

.cs-goal-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  font-size: 0.75rem;
}

.cs-goal-home {
  text-align: right;
  color: #334155;
}

.cs-goal-away {
  text-align: left;
  color: #334155;
}

.cs-goal-empty {
  visibility: hidden;
}

.cs-goal-min {
  color: #94a3b8;
  margin: 0 4px;
}

.cs-goal-score {
  font-weight: 700;
  color: #64748b;
  font-size: 0.6875rem;
}

.cs-footer {
  padding: 8px 16px;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}

@media (max-width: 640px) {
  .cs-match-main {
    grid-template-columns: 44px 1fr auto 1fr 24px;
    gap: 6px;
    padding: 8px 10px;
  }

  .cs-team {
    font-size: 0.8125rem;
  }
}

/* Videolar sayfası */
.vid-hero iframe {
  border: 0;
}

.vid-badge {
  display: inline-block;
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.vid-filter-bar {
  scrollbar-width: thin;
}

.vid-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4b5563;
  background: #f3f4f6;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}

.vid-filter-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.vid-filter-btn.active {
  background: #008036;
  color: white;
  border-color: #008036;
  box-shadow: 0 2px 8px rgba(0, 128, 54, 0.25);
}

.vid-filter-btn.active[style*="--vid-accent"] {
  background: var(--vid-accent);
  border-color: var(--vid-accent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--vid-accent) 35%, transparent);
}

.vid-filter-count {
  font-size: 0.6875rem;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.12);
  padding: 1px 6px;
  border-radius: 9999px;
}

.vid-filter-btn.active .vid-filter-count {
  background: rgba(255, 255, 255, 0.25);
}

.vid-section.vid-hidden {
  display: none;
}

.vid-side-list [data-vid-cat].vid-hidden {
  display: none;
}

.vid-card:hover {
  border-color: #bbf7d0;
}

.vid-section-title {
  flex: 1;
  min-width: 0;
}

/* Canlı skor sayfa teması (#dc2626) */
.page-canli-skor .cs-date-current {
  color: #dc2626;
}

.page-canli-skor .cs-date-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.page-canli-skor .cs-match-main:hover {
  background: #fef2f2;
}

.page-canli-skor .cs-match-teams-link:hover .cs-team {
  color: #dc2626;
}

/* Videolar sayfa teması (#111827) */
.page-videolar .vid-filter-btn.active {
  background: #111827;
  border-color: #111827;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.35);
}

.page-videolar .vid-filter-btn.active[style*="--vid-accent"] {
  background: var(--vid-accent);
  border-color: var(--vid-accent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--vid-accent) 35%, transparent);
}

.page-videolar .vid-card:hover {
  border-color: #d1d5db;
}
