/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ts-red: #C8102E;
  --ts-red-light: #e01535;
  --ts-red-dark: #a00d24;
  --ts-blue: #111111;
  --ts-blue-dark: #000000;
  --ts-blue-light: #333333;
  --ts-gold: #888888;
  --ts-gold-light: #aaaaaa;
  --ts-white: #ffffff;
  --bg: #f5f5f5;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a6270;
  --text-light: #9ca3af;
  --border: #e2e2e2;
  --shadow: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.11);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --header-bg: #ffffff;
  --footer-bg: #111111;
}

[data-theme="dark"] {
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --text: #f0f0f0;
  --text-muted: #a0a0a0;
  --text-light: #666;
  --border: #2a2a2a;
  --shadow: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --header-bg: #141414;
  --footer-bg: #0a0a0a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== HEADER ==================== */
.header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  border-bottom: 3px solid var(--ts-red);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ts-red);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--ts-red);
  color: var(--ts-gold);
  font-weight: 900;
  font-size: 13px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.logo-icon.small { width: 36px; height: 36px; font-size: 12px; }

.logo-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--ts-red);
}

.logo-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ts-blue);
  line-height: 1;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--ts-red);
  background: rgba(122,18,25,0.07);
}

.mobile-search-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.mobile-search-toggle:hover { background: var(--border); }

.mobile-search-bar {
  display: none;
  padding: 8px 16px 10px;
  border-top: 1px solid var(--border);
  background: var(--header-bg);
  position: relative;
}
.mobile-search-bar.open { display: block; }

.mobile-search-bar-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  box-sizing: border-box;
}
.mobile-search-bar-input:focus { border-color: var(--ts-red); }

.mobile-search-bar .search-dropdown {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% - 2px);
  z-index: 200;
}

@media (max-width: 640px) {
  .header-search { display: none; }
  .mobile-search-toggle { display: flex; }
}

/* ==================== HEADER SEARCH ==================== */
.header-search {
  position: relative;
  flex: 1;
  margin: 0 24px;
}

.header-search-input {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 14px;
  border: 2px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, width 0.3s, box-shadow 0.2s;
  outline: none;
}

.header-search-input:focus {
  border-color: var(--ts-red);
  box-shadow: 0 0 0 3px rgba(122,18,25,0.08);
  background: var(--bg-card);
}

.header-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 200;
  overflow: hidden;
  display: none;
}

.search-dropdown.open { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #f9f9f9; }

.search-result-thumb {
  width: 44px;
  height: 36px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--ts-red-dark), var(--ts-blue));
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.search-result-info { min-width: 0; }

.search-result-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}

.search-result-meta {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 2px;
}

.search-no-result {
  padding: 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.search-see-all {
  display: block;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ts-red);
  text-align: center;
  background: #fafafa;
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}

.search-see-all:hover { background: #f0f0f0; }

/* Mobile search */
.mobile-search-wrap {
  position: relative;
  padding: 8px 16px 4px;
}

.mobile-search-input {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  border: 2px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
}

.mobile-search-input:focus { border-color: var(--ts-red); }

.mobile-search-wrap .search-dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 16px;
  right: 16px;
  max-height: 260px;
  overflow-y: auto;
}

/* ==================== SLIDER ==================== */
.slider-section {
  position: relative;
  background: var(--bg);
  padding: 24px 0;
}

.slider-section .container {
  position: relative;
}

.slider {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .slider { height: 300px; }
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
  cursor: grab;
}
.slider-track:active { cursor: grabbing; }

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.slide:hover .slide-bg { transform: scale(1.02); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.1) 100%
  );
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
}

@media (max-width: 640px) {
  .slide-content { padding: 20px; }
}

.slide-category {
  display: inline-block;
  background: var(--ts-gold);
  color: var(--ts-red-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.slide-title {
  color: #fff;
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  max-width: 700px;
}

.slide-summary {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  max-width: 600px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-meta {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.slide-date {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}

.slide-read-more {
  background: var(--ts-red);
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.slide-read-more:hover { background: var(--ts-red-light); }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
}

.slider-btn:hover { background: rgba(255,255,255,0.3); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  right: 40px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  padding: 0;
}

.dot.active {
  background: var(--ts-gold);
  width: 24px;
  border-radius: 4px;
}

.slider-empty {
  background: linear-gradient(135deg, var(--ts-red-dark), var(--ts-blue));
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
}

.slider-empty a { color: var(--ts-gold); text-decoration: underline; }

/* ==================== SLIDER + TRANSFERS ROW ==================== */
.slider-transfers-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.slider-col {
  flex: 1 1 0;
  min-width: 0;
}
.transfers-col {
  width: 300px;
  flex-shrink: 0;
}
.transfers-col .sidebar-card {
  height: 100%;
  overflow-y: auto;
}
@media (max-width: 900px) {
  .slider-transfers-row { flex-direction: column; }
  .slider-col { width: 100%; flex: none; }
  .transfers-col { width: 100%; display: none; }
}

@media (min-width: 901px) {
  .sidebar-transfers-bottom { display: none; }
}

/* ==================== TICKER ==================== */
.ticker {
  background: var(--bg);
  overflow: hidden;
  padding: 0 0 16px;
}

.ticker-inner {
  display: flex;
  align-items: center;
  height: 38px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 0;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-right: 16px;
  border-right: 1px solid rgba(255,255,255,0.12);
  margin-right: 16px;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ts-red);
  flex-shrink: 0;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.ticker-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  animation: ticker 35s linear infinite;
  padding-left: 100%;
}

.ticker-text:hover { animation-play-state: paused; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ==================== MAIN LAYOUT ==================== */
.main { padding: 40px 20px; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

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

/* ==================== SECTION HEADER ==================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--ts-red);
  border-radius: 2px;
}

.see-all {
  color: var(--ts-red);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.see-all:hover { color: var(--ts-red-light); }

/* ==================== NEWS GRID ==================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-grid.all-news {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

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

.news-card-image {
  height: 180px;
  position: relative;
  flex-shrink: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: linear-gradient(135deg, var(--ts-red-dark), #2d7fa8);
  background-size: cover;
  background-position: center;
}

.news-card-image .category-badge,
.news-card-image .branch-badge {
  position: relative;
  z-index: 1;
}

.news-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-summary {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.news-card-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.news-card-date { display: flex; align-items: center; gap: 4px; }

.category-badge {
  background: var(--ts-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
}

.category-badge.transfer { background: var(--ts-gold); color: #1a1a1a; }
.category-badge.mac      { background: var(--ts-red); }
.category-badge.taraftar { background: var(--ts-blue); }
.category-badge.yonetim  { background: var(--ts-blue-dark); }
.category-badge.diger    { background: #6b7280; }

/* ==================== EMPTY STATE ==================== */
.empty-box {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-box p { color: var(--text-muted); margin-bottom: 24px; }

/* ==================== SIDEBAR ==================== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.sidebar-accordion-header { display: flex; align-items: center; padding: 0 0 10px; pointer-events: none; }
.sidebar-accordion-header .sidebar-title-wrap { flex: 1; }
.sidebar-chevron { display: none; }
.sidebar-accordion-body { padding: 0; }

.sidebar-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ts-red);
  color: var(--text);
}

.team-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.team-badge {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--ts-red-dark), var(--ts-red));
  color: var(--ts-gold);
  font-weight: 900;
  font-size: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.team-name { font-weight: 700; font-size: 16px; }
.team-league { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.team-stats { display: flex; flex-direction: column; gap: 10px; }

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.stat-item:last-child { border-bottom: none; }
.stat-label { color: var(--text-muted); }
.stat-value { font-weight: 700; color: var(--text); }

.haber-ekle-card { background: linear-gradient(135deg, var(--ts-red-dark) 0%, var(--ts-red) 60%, var(--ts-blue-dark) 100%); color: #fff; }
.haber-ekle-card .sidebar-title { color: #fff; border-color: var(--ts-gold); }
.haber-ekle-card p { color: rgba(255,255,255,0.8); margin-bottom: 16px; font-size: 13px; }

.popular-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s;
}

.popular-item:hover { opacity: 0.8; }
.popular-item:last-child { border-bottom: none; }

.popular-num {
  width: 24px;
  height: 24px;
  background: var(--ts-red);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.popular-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.no-news-text { color: var(--text-muted); font-size: 13px; }

/* ==================== PAGE HERO ==================== */
.page-hero {
  background: linear-gradient(135deg, var(--ts-red-dark) 0%, var(--ts-red) 60%, var(--ts-blue-dark) 100%);
  color: #fff;
  padding: 48px 0 40px;
}

.page-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  margin-bottom: 8px;
}

.page-hero p { color: rgba(255,255,255,0.75); font-size: 16px; }

.admin-hero { background: linear-gradient(135deg, var(--ts-blue-dark) 0%, var(--ts-blue) 50%, var(--ts-red) 100%); }

/* ==================== TEAM BANNER ADMIN ==================== */
.team-banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.team-banner-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.team-banner-preview {
  height: 110px;
  background: linear-gradient(135deg, var(--ts-red-dark), var(--ts-red));
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.team-banner-empty-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.team-banner-overlay {
  width: 100%;
  padding: 6px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.team-banner-actions {
  padding: 8px 10px;
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ==================== FILTER BAR ==================== */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.search-input, .category-select {
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color 0.2s;
}

.search-input { flex: 1; min-width: 200px; }
.search-input:focus, .category-select:focus {
  outline: none;
  border-color: var(--ts-red);
}

/* ==================== ARTICLE ==================== */
.article {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-header { padding: 32px 32px 24px; border-bottom: 1px solid var(--border); }
.article-category { margin-bottom: 12px; }
.article-title { font-size: clamp(22px, 4vw, 34px); font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.article-meta { display: flex; gap: 20px; color: var(--text-muted); font-size: 13px; }

.article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.article-body {
  padding: 32px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.article-body p { margin-bottom: 16px; }

.article-loading { padding: 60px; text-align: center; color: var(--text-muted); }
.article-views { color: var(--text-muted); font-size: 13px; }

/* ==================== SHARE ==================== */
.article-share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 1.25rem 32px;
  border-top: 1px solid var(--border);
}
.article-share-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  font-family: inherit;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-twitter { background: #000; color: #fff; }
.share-whatsapp { background: #25D366; color: #fff; }
.share-copy { background: var(--card-bg); color: var(--text-primary); border: 1px solid var(--border); }

/* ==================== LOAD MORE ==================== */
.load-more-btn {
  padding: 0.75rem 2.5rem;
  background: var(--card-bg);
  color: var(--text-primary);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.load-more-btn:hover {
  border-color: var(--ts-red);
  color: var(--ts-red);
  background: var(--bg);
}

/* ==================== COMMENTS ==================== */
.comments-section {
  padding: 32px;
  border-top: 2px solid var(--border);
  margin-top: 0;
}
.comments-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ts-red);
  display: inline-block;
}
.comments-list { margin-bottom: 32px; }
.no-comments-text { color: var(--text-muted); font-size: 14px; }
.comment-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.comment-name { font-weight: 700; font-size: 14px; color: var(--ts-red); }
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-text { font-size: 14px; line-height: 1.6; color: var(--text); }
.comment-form-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.comment-form-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.comment-msg { margin-top: 10px; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.comment-msg-success { background: #d4edda; color: #155724; }
.comment-msg-error { background: #f8d7da; color: #721c24; }

.recent-sidebar-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s;
}

.recent-sidebar-item:last-child { border-bottom: none; }
.recent-sidebar-item:hover { opacity: 0.7; }

.recent-thumb {
  width: 60px;
  height: 50px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--ts-red-dark), var(--ts-blue));
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.recent-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== ANALYTICS ==================== */
.analytics-section { padding: 32px 0 0; }
.analytics-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-danger:hover { background: #b91c1c; }

.members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.members-table thead {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}
.members-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.members-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.members-table tbody tr:hover { background: var(--bg); }
.members-table tbody tr:last-child td { border-bottom: none; }

.stat-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.stat-card.accent { background: var(--ts-red); color: #fff; border-color: var(--ts-red); }
.stat-card.accent .stat-label { color: rgba(255,255,255,0.8); }
.stat-card.accent .stat-value { color: #fff; }
.stat-icon { font-size: 22px; margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--ts-red); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.analytics-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.analytics-card-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 10px; }

.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-bottom: 4px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-label-top { font-size: 11px; font-weight: 700; color: var(--text-muted); height: 18px; }
.bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; background: var(--ts-red); border-radius: 4px 4px 0 0; min-height: 2px; transition: height 0.4s; }
.bar-label { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

.analytics-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
.analytics-row .analytics-card { margin-bottom: 0; }

.breakdown-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.breakdown-label { font-size: 13px; color: var(--text); min-width: 100px; }
.breakdown-bar-wrap { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.breakdown-bar { height: 100%; background: var(--ts-red); border-radius: 4px; min-width: 2px; }
.breakdown-count { font-size: 13px; font-weight: 700; color: var(--text); min-width: 30px; text-align: right; }

.analytics-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.analytics-table th { text-align: left; padding: 8px 10px; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.analytics-table td { padding: 10px 10px; border-bottom: 1px solid var(--border); color: var(--text); }
.analytics-table tr:last-child td { border-bottom: none; }
.analytics-table a { color: var(--ts-red); text-decoration: none; }
.analytics-table a:hover { text-decoration: underline; }
.analytics-table .rank { font-weight: 800; color: var(--text-muted); width: 28px; }

.analytics-comment-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.analytics-comment-row:last-child { border-bottom: none; }
.analytics-comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 13px; flex-wrap: wrap; }
.analytics-comment-news { color: var(--text-muted); }
.analytics-comment-date { color: var(--text-muted); margin-left: auto; }
.analytics-comment-text { font-size: 13px; color: var(--text); line-height: 1.5; }

@media (max-width: 900px) {
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
  .analytics-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .analytics-table th:nth-child(3), .analytics-table td:nth-child(3) { display: none; }
}

/* ==================== ADMIN ==================== */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

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

.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ts-red);
}

.form-group { margin-bottom: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--ts-red);
  box-shadow: 0 0 0 3px rgba(139,0,0,0.1);
  background: #fff;
}

.form-textarea { resize: vertical; min-height: 80px; }

.char-count {
  text-align: right;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

.toggle-wrap { margin-top: 8px; }

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.toggle input { display: none; }

.toggle-track {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-track::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle input:checked + .toggle-track { background: var(--ts-red); }
.toggle input:checked + .toggle-track::after { transform: translateX(20px); }

.toggle-label { font-size: 13px; color: var(--text-muted); }

/* Image upload tabs */
.image-upload-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.img-tab {
  flex: 1;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.img-tab.active {
  background: var(--ts-red);
  color: #fff;
}

/* File drop zone */
.file-drop-zone {
  display: block;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg);
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: var(--ts-red);
  background: rgba(122,18,25,0.03);
}

.file-drop-icon { font-size: 28px; margin-bottom: 6px; }
.file-drop-text { font-size: 13px; font-weight: 600; color: var(--text); }
.file-drop-sub { font-size: 11px; color: var(--text-light); margin-top: 4px; }

.image-preview {
  margin-top: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  position: relative;
}

.image-preview img { width: 100%; height: 160px; object-fit: cover; display: block; }

.img-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.img-remove-btn:hover { background: rgba(122,18,25,0.85); }

.image-size-hint {
  margin-top: 10px;
  background: #f0f7ff;
  border: 1px solid #c8dff5;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hint-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
}

.hint-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

.hint-row strong { color: var(--ts-blue-dark); }

.hint-note {
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid #c8dff5;
  padding-top: 8px;
  margin-top: 2px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.form-message.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.form-message.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ==================== ADMIN LIST ==================== */
.admin-list-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  max-height: 80vh;
  overflow-y: auto;
}

.admin-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.news-count {
  background: var(--ts-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.admin-news-list { display: flex; flex-direction: column; gap: 12px; }

.admin-news-item {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  gap: 12px;
  transition: border-color 0.2s;
}

.admin-news-item:hover { border-color: var(--ts-red); }

.admin-news-thumb {
  width: 70px;
  height: 60px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--ts-red-dark), var(--ts-blue));
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.admin-news-body { flex: 1; min-width: 0; }

.admin-news-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.admin-news-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
}

.slider-badge {
  background: var(--ts-gold);
  color: var(--ts-red-dark);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
}

.admin-news-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }

.btn-icon {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-edit { background: #dbeafe; color: #1e40af; }
.btn-edit:hover { background: #bfdbfe; }
.btn-delete { background: #fee2e2; color: #991b1b; }
.btn-delete:hover { background: #fca5a5; }
.btn-slider-on { background: #fef9c3; color: #92400e; font-size: 16px; }
.btn-slider-on:hover { background: #fde68a; }
.btn-slider-off { background: #f3f4f6; color: #9ca3af; font-size: 16px; }
.btn-slider-off:hover { background: #e5e7eb; color: #374151; }

/* ==================== BUTTONS ==================== */
.btn-primary {
  background: var(--ts-red);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover { background: var(--ts-red-light); transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover { border-color: var(--ts-red); color: var(--ts-red); }
.full-width { width: 100%; }

/* ==================== FOOTER ==================== */
.footer {
  margin-top: 80px;
  position: relative;
}

.footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--ts-red) 0%, var(--ts-gold) 50%, var(--ts-red) 100%);
}

.footer-top {
  background: linear-gradient(160deg, #161616 0%, #1f1f1f 60%, #121212 100%);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}

/* Hexagon / diamond grid motif */
.footer-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      60deg,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      -60deg,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.018) 0px,
      rgba(255,255,255,0.018) 1px,
      transparent 1px,
      transparent 40px
    );
  pointer-events: none;
}

.footer-top::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,0,0,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-col-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ts-gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Brand column */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--ts-red) 60%, #a00000 100%);
  color: var(--ts-gold);
  font-weight: 900;
  font-size: 13px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(198,0,0,0.35);
}

.footer-logo-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.3px;
}

.footer-logo-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ts-gold);
  margin-top: 3px;
}

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 270px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  text-decoration: none;
}

.footer-social-btn:hover {
  background: var(--ts-red);
  border-color: var(--ts-red);
  color: #fff;
  transform: translateY(-2px);
}

/* Links */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s, padding-left 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.footer-links a::before {
  content: '';
  width: 5px;
  height: 2px;
  background: var(--ts-red);
  border-radius: 2px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: width 0.2s, opacity 0.2s;
}

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

.footer-links a:hover::before {
  width: 10px;
  opacity: 1;
}

.footer-motif-left {
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 40px solid rgba(198,0,0,0.06);
  pointer-events: none;
}

.footer-motif-center {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}

.footer-motif-center::after {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.03);
}

/* Divider */
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 0;
}

/* Bottom bar */
.footer-bottom {
  background: #0e0e0e;
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}

.footer-bottom-badge span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ts-red);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}


/* ==================== STATIC PAGES ==================== */
.static-page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 60px;
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
}
.static-page-content h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 36px 0 12px;
  color: var(--text);
  border-left: 4px solid var(--ts-red);
  padding-left: 12px;
}
.static-page-content h2:first-child { margin-top: 0; }
.static-page-content p { margin-bottom: 14px; color: var(--text-muted); }
.static-page-content ul { padding-left: 20px; margin-bottom: 14px; color: var(--text-muted); }
.static-page-content ul li { margin-bottom: 6px; }
.static-page-content a { color: var(--ts-red); text-decoration: underline; }

/* ==================== BRANCH NAV ==================== */
.branch-nav {
  background: var(--ts-blue);
  border-bottom: 3px solid var(--ts-gold);
  position: sticky;
  top: 70px;
  z-index: 90;
}

.branch-nav .container {
  max-width: 1100px;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
}
.branch-nav .container::-webkit-scrollbar { display: none; }
.branch-nav .container.dragging { cursor: grabbing; user-select: none; }

.branch-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 46px;
  white-space: nowrap;
  padding: 0;
}

.branch-link {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 100%;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  position: relative;
  transition: all 0.2s;
  white-space: nowrap;
}
.branch-link + .branch-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.branch-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.branch-link.active {
  background: var(--ts-red);
  color: #fff;
  border-color: transparent;
}

.branch-icon { display: none; }

/* Branch badge on news cards */
.news-card-image {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 4px;
  padding: 10px;
}

.branch-badge {
  display: inline-block;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* Branch pill in article */
.branch-pill {
  display: inline-block;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-left: 8px;
  vertical-align: middle;
  transition: opacity 0.2s;
}

.branch-pill:hover { opacity: 0.85; }

/* Branch mini badge in admin list */
.branch-mini-badge {
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Mobile branch divider */
.mobile-branch-divider {
  padding: 10px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ts-red);
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ==================== DASHBOARD LAYOUT ==================== */
.admin-body { background: #f0f2f5; }

.dashboard {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.dash-sidebar {
  width: 240px;
  background: #1a1d23;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform 0.3s;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dash-brand-icon {
  width: 40px; height: 40px;
  background: var(--ts-red);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 14px;
  flex-shrink: 0;
}
.dash-brand-title { font-weight: 800; color: #fff; font-size: 15px; line-height: 1.2; }
.dash-brand-sub { font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }

.dash-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.dash-nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.dash-nav-item.active { background: var(--ts-red); color: #fff; }
.dash-nav-icon { font-size: 16px; }
.dash-nav-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 22px;
  text-align: center;
}
.dash-nav-item.active .dash-nav-badge { background: rgba(255,255,255,0.25); }

.dash-sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-site-link, .dash-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.dash-site-link { color: rgba(255,255,255,0.5); }
.dash-site-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.dash-logout { color: rgba(255,100,100,0.7); background: transparent; border: none; font-family: inherit; width: 100%; text-align: left; }
.dash-logout:hover { background: rgba(255,60,60,0.1); color: #ff6b6b; }

/* Main */
.dash-main {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.dash-topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.dash-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}
.dash-topbar-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.dash-topbar-right { margin-left: auto; }
.dash-topbar-date { font-size: 13px; color: var(--text-muted); }
.dash-refresh-btn {
  background: #f0f2f5;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s;
  font-family: inherit;
}
.dash-refresh-btn:hover { background: var(--border); }

/* Tabs */
.dash-tab { display: none; padding: 28px 32px; flex: 1; }
.dash-tab.active { display: block; }

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dash-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

/* Form card inside dashboard */
.dash-form-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
}
.dash-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* Mobile dashboard */
@media (max-width: 768px) {
  .dash-sidebar {
    transform: translateX(-100%);
  }
  .dash-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  }
  .dash-main { margin-left: 0; }
  .dash-hamburger { display: block; }
  .dash-topbar { padding: 0 16px; }
  .dash-tab { padding: 20px 16px; }
  .dash-form-card { padding: 20px; }
  .dash-form-row { grid-template-columns: 1fr; }
  .dash-topbar-date { display: none; }
}

/* ==================== ADMIN LOGIN ==================== */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--ts-red-dark) 0%, #1a1a1a 60%, var(--ts-blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.admin-login-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.admin-login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.admin-login-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.admin-login-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap .form-input {
  padding-right: 44px;
}

.login-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.login-eye:hover { opacity: 1; }

.login-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .admin-login-box { padding: 28px 20px; }
  .admin-login-title { font-size: 18px; }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--ts-red); border-radius: 3px; }

/* ==================== RESPONSIVE ==================== */

/* --- Tablet: 768px --- */
@media (max-width: 768px) {

  /* Header */
  .header-inner { height: 60px; }
  .logo-title { font-size: 16px; }
  .logo-icon { width: 38px; height: 38px; font-size: 12px; }
  .header-search { margin: 0 12px; }

  /* Branch nav sticky offset */
  .branch-nav { top: 60px; }
  .branch-nav-inner { height: 42px; }
  .branch-link { padding: 0 14px; font-size: 12px; }

  /* Slider */
  .slider { height: 300px; max-width: 100%; }
  .slide-content { padding: 20px 16px; }
  .slide-title { font-size: 18px; }
  .slide-summary { display: none; }
  .slide-meta { margin-top: 8px; gap: 10px; }
  .slider-btn { width: 36px; height: 36px; font-size: 18px; }
  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }
  .slider-dots { bottom: 12px; right: 16px; }

  /* Ticker */
  .ticker-label { padding: 0 12px; font-size: 9px; letter-spacing: 1.5px; }
  .ticker-text { font-size: 12px; }

  /* Main padding */
  .main { padding: 24px 16px; }

  /* News grid: 2 sütun tablet */
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .news-grid.all-news { grid-template-columns: repeat(2, 1fr); }
  .news-card-image { height: 150px; padding: 8px; }
  .news-card-image .category-badge { font-size: 9px; padding: 2px 7px; }
  .news-card-image .branch-badge { font-size: 9px; padding: 2px 6px; }

  /* Content grid: sidebar alta */
  .content-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Sidebar accordion */
  .sidebar { flex-direction: column; overflow-x: visible; gap: 10px; padding-bottom: 0; }
  .sidebar-card { min-width: unset; flex-shrink: unset; padding: 0; overflow: hidden; }
  .sidebar-accordion-header { padding: 14px 16px; cursor: pointer; pointer-events: auto; }
  .sidebar-accordion-header .sidebar-title, .sidebar-accordion-header .sidebar-title-wrap { margin: 0; font-size: 14px; }
  .sidebar-chevron { display: block; font-size: 20px; color: var(--text-muted); transition: transform 0.25s; flex-shrink: 0; }
  .sidebar-card.open .sidebar-chevron { transform: rotate(90deg); }
  .sidebar-accordion-body { display: none; padding: 0 16px 14px; }
  .sidebar-card.open .sidebar-accordion-body { display: block; }

  /* Article */
  .article-header { padding: 20px 16px 16px; }
  .article-body { padding: 16px; font-size: 15px; }
  .article-image { height: 220px; }
  .article-meta { flex-wrap: wrap; gap: 8px; }

  /* Filter bar */
  .filter-bar { flex-direction: column; gap: 8px; }
  .search-input, .category-select { width: 100%; min-width: unset; }

  /* Page hero */
  .page-hero { padding: 32px 0 24px; }

  /* Admin */
  .admin-grid { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-list-section { max-height: none; }

  /* Footer */
  .footer { margin-top: 40px; }
  .footer-top { padding: 36px 0 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-desc { max-width: none; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* --- Mobil: 480px --- */
@media (max-width: 480px) {

  /* Header */
  .header-inner { height: 56px; }
  .logo-title { font-size: 15px; }
  .logo-sub { display: none; }
  .logo-icon { width: 36px; height: 36px; }
  .header-search { display: none; }

  /* Branch nav */
  .branch-nav { top: 56px; }
  .branch-nav-inner { height: 40px; padding: 0; }
  .branch-link { padding: 0 12px; font-size: 11.5px; }

  /* Slider */
  .slider { height: 240px; }
  .slide-content { padding: 14px 12px; }
  .slide-title { font-size: 16px; line-height: 1.3; }
  .slide-category { font-size: 9px; padding: 3px 7px; margin-bottom: 6px; }
  .slide-read-more { padding: 5px 12px; font-size: 12px; }
  .slider-btn { width: 32px; height: 32px; font-size: 16px; }
  .slider-btn.prev { left: 6px; }
  .slider-btn.next { right: 6px; }

  /* News grid: 1 sütun mobil */
  .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .news-grid.all-news { grid-template-columns: 1fr; }
  .news-card { flex-direction: row; height: 110px; }
  .news-card-image { width: 110px; height: 110px; flex-shrink: 0; border-radius: 0; padding: 6px; gap: 3px; }
  .news-card-image .branch-badge { display: none; }
  .news-card-image .category-badge { font-size: 9px; padding: 2px 6px; }
  .news-card-body { padding: 10px 12px; justify-content: center; }
  .news-card-title { font-size: 13px; -webkit-line-clamp: 3; }
  .news-card-summary { display: none; }
  .news-card-footer { margin-top: 6px; padding-top: 6px; }

  /* Section header */
  .section-title { font-size: 18px; }

  /* Sidebar accordion */
  .sidebar-card { min-width: unset; }

  /* Main padding */
  .main { padding: 16px 12px; }

  /* Article */
  .article-image { height: 180px; }
  .article-header { padding: 16px 12px 12px; }
  .article-title { font-size: 20px; }
  .article-body { padding: 12px; font-size: 14px; line-height: 1.75; }

  /* Branch pill in article */
  .branch-pill { display: block; margin-left: 0; margin-top: 6px; }

  /* Buttons */
  .btn-primary, .btn-secondary { padding: 11px 18px; font-size: 13px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn-primary,
  .form-actions .btn-secondary { width: 100%; text-align: center; }

  /* Admin item */
  .admin-news-item { flex-wrap: wrap; }
  .admin-news-actions { flex-direction: row; width: 100%; }
  .btn-icon { flex: 1; text-align: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-top { padding: 28px 0 20px; }
  .footer-bottom-right { display: none; }

  /* Mobile branch divider */
  .mobile-branch-divider { border-top-color: var(--border); color: var(--ts-red); }

  /* Page hero */
  .page-hero { padding: 24px 0 20px; }
  .page-hero h1 { font-size: 24px; }
  .page-hero p { font-size: 14px; }
}

/* --- Küçük mobil: 360px --- */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .branch-link { padding: 0 10px; font-size: 11px; }
  .slider { height: 220px; }
  .news-card { height: 100px; }
  .news-card-image { width: 100px; height: 100px; }
}

/* ==================== TRANSFER SIDEBAR ==================== */
.tr-table {
  width: 100%;
  border-collapse: collapse;
}

.tr-table thead th {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 4px 8px;
  border-bottom: 2px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.tr-table thead th:nth-child(1) { width: auto; }
.tr-table thead th:nth-child(2) { width: 76px; text-align: center; }
.tr-table thead th:nth-child(3) { width: 62px; text-align: right; }

.tr-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.tr-table tbody tr:last-child { border-bottom: none; }
.tr-table tbody tr:hover { background: var(--bg); }

.tr-table td {
  padding: 7px 4px;
  vertical-align: middle;
}
.tr-table td:nth-child(2) { text-align: center; }

.tr-player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tr-pimg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  background: var(--bg);
  display: block;
}
.tr-pimg-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.tr-pname {
  font-size: 12px;
  font-weight: 700;
  color: var(--ts-red);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.tr-pmeta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}
.tr-ppos {
  font-size: 10px;
  color: var(--text-muted);
}
.tr-pstatus {
  font-size: 10px;
  font-weight: 600;
}

.tr-clubs-cell {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tr2-club-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px;
}
.tr2-club-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.tr-fee-cell {
  text-align: right;
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  width: 56px;
}

/* ==================== MULTI-SELECT BRANCH ==================== */
.multi-select-wrap { position: relative; }

.multi-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: 8px;
}
.multi-select-trigger:hover { border-color: var(--ts-red); }
.multi-select-arrow { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

.multi-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 200;
  max-height: 240px;
  overflow-y: auto;
}
.multi-select-dropdown.open { display: block; }

.multi-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: background 0.15s;
}
.multi-select-option:hover { background: var(--bg); }
.multi-select-option input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--ts-red); }
.multi-select-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* News card team badges */
.news-card-badges { position: absolute; bottom: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.news-team-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  white-space: nowrap;
}

/* ==================== TRANSFER TEAM LOGOS ==================== */
.transfer-team-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}
.transfer-team-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Admin logos grid */
.logos-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.logo-admin-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.logo-admin-preview {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.logo-admin-img { width: 44px; height: 44px; object-fit: contain; }
.logo-admin-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.logo-admin-name {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  line-height: 1.3;
}
.logo-admin-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.logo-upload-label { cursor: pointer; }

/* ==================== STANDINGS SIDEBAR ==================== */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.standings-table thead th {
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 600;
  padding: 5px 4px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.standings-table thead th:nth-child(2) { text-align: left; }
.standings-table tbody td {
  padding: 5px 4px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.standings-table tbody tr:last-child td { border-bottom: none; }
.standings-table tbody td:nth-child(2) { text-align: left; }

.st-rank {
  font-weight: 700;
  color: var(--text-muted);
  width: 18px;
}
.st-team {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.st-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.st-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}
.st-name {
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.st-points { font-weight: 800; color: var(--ts-red); }

.st-ucl1 td:first-child { border-left: 3px solid #1565c0; }
.st-ucl2 td:first-child { border-left: 3px solid #42a5f5; }
.st-uel  td:first-child { border-left: 3px solid #e65100; }
.st-uecl td:first-child { border-left: 3px solid #2e7d32; }
.st-rel  td:first-child { border-left: 3px solid #c62828; }

.standings-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 4px 4px;
  font-size: 10px;
  color: var(--text-muted);
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
}

/* Admin standings table */
.admin-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-standings-table thead th {
  background: var(--bg);
  padding: 10px 8px;
  text-align: center;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.admin-standings-table tbody td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.admin-standings-table tbody tr:hover { background: var(--bg); }
.st-admin-actions { display: flex; gap: 6px; justify-content: center; }

/* ==================== SITE LOGO ==================== */
.site-logo-header {
  height: 56px;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.site-logo-footer {
  height: 60px;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .site-logo-header {
  filter: brightness(0) invert(1);
}

.settings-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  padding: 20px;
}
.settings-logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* ==================== THEME TOGGLE ==================== */
.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tgl-track {
  display: flex;
  align-items: center;
  width: 52px;
  height: 26px;
  border-radius: 13px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 2px;
  transition: background 0.25s, border-color 0.25s;
  position: relative;
}
.tgl-track.tgl-dark {
  background: rgba(30,40,70,0.7);
  border-color: rgba(255,255,255,0.12);
}
.tgl-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: var(--ts-blue);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.25s, background 0.25s, color 0.25s;
  transform: translateX(0);
  flex-shrink: 0;
}
.tgl-dark .tgl-thumb {
  transform: translateX(26px);
  background: var(--ts-gold);
  color: #1a1a2e;
}
.theme-toggle-btn:hover .tgl-track { border-color: rgba(255,255,255,0.4); }

/* ==================== AUTH ==================== */
.auth-btn-wrap { position: relative; display: flex; align-items: center; }

.auth-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.auth-icon-btn:hover { background: var(--bg); color: var(--ts-red); }

.user-avatar-btn { cursor: pointer; }
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ts-red);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.user-avatar:hover { border-color: var(--ts-red-dark); }

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  z-index: 500;
  padding: 10px 0;
}
.user-menu-name {
  padding: 4px 16px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.user-menu-email {
  padding: 0 16px 4px;
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
}
.user-menu-item {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  display: block;
  transition: background 0.15s;
}
.user-menu-item:hover { background: var(--bg); }

/* Auth Modal */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.auth-modal-overlay.open { opacity: 1; }

.auth-modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
  padding: 28px 28px 24px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s;
}
.auth-modal-overlay.open .auth-modal { transform: translateY(0); }

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.auth-modal-close:hover { color: var(--text); }

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 8px;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.auth-tab.active {
  background: var(--bg-card);
  color: var(--ts-red);
  box-shadow: var(--shadow);
}

.captcha-group {
  background: var(--bg);
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 12px 14px 8px;
}

.captcha-label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  display: block;
  margin-bottom: 8px;
}

.auth-error {
  background: #fff0f0;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  margin-top: 8px;
}

/* Touch dostu — hover efektlerini kaldır */
@media (hover: none) {
  .news-card:hover { transform: none; box-shadow: var(--shadow); }
  .btn-primary:hover { transform: none; }
  .news-card:active { opacity: 0.92; }
  .branch-link:active { background: rgba(255,255,255,0.2); }
}

/* ===== WC2026 GROUPS ===== */
.wc-group-card {
  background: var(--bg-card);
}

.wc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.wc-table th {
  color: var(--text-muted);
  font-weight: 600;
  padding: 4px 4px;
  text-align: center;
}
.wc-table td {
  padding: 5px 4px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.wc-team-cell {
  text-align: left !important;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}
.wc-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.wc-team-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
.wc-turkey-row td { font-weight: 700; color: var(--primary); }
.wc-qualify { background: rgba(200,16,46,0.04); }
.wc-pts { font-weight: 700; }

.wc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.wc-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ts-red);
  background: transparent;
  color: var(--ts-red);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.wc-nav-btn:hover:not(:disabled) {
  background: var(--ts-red);
  color: #fff;
}
.wc-nav-btn:disabled {
  border-color: var(--border);
  color: var(--text-muted);
  cursor: default;
}
.wc-nav-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.wc-nav-count {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ===== WC PAGE ===== */
.wc-page-hero {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a0a 50%, #C8102E 100%);
  padding: 40px 0 36px;
  position: relative;
  overflow: hidden;
}
.wc-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.wc-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.wc-hero-badge {
  display: inline-block;
  background: var(--ts-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.wc-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.1;
}
.wc-hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  margin: 0 0 14px;
}
.wc-hero-turkey {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 6px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.wc-hero-turkey img { width: 24px; height: 17px; object-fit: cover; border-radius: 2px; }
.wc-hero-logo img {
  max-height: 90px;
  max-width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.wc-tabs-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px;
  z-index: 90;
}
.wc-tabs {
  display: flex;
  gap: 0;
}
.wc-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.wc-tab:hover { color: var(--text); }
.wc-tab.active { color: var(--ts-red); border-bottom-color: var(--ts-red); }

.wc-tab-content { display: none; }
.wc-tab-content.active { display: block; }

.wc-groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 0;
}
@media (max-width: 900px) { .wc-groups-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .wc-groups-grid { grid-template-columns: 1fr; } }

.wc-full-group-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.wc-full-group-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ts-red);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.wc-page-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
}
.wc-page-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 15px;
  flex-wrap: wrap;
  gap: 8px;
}

.wc-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.wc-stats-table th {
  padding: 10px 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.5px;
}
.wc-stats-table td {
  padding: 9px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.wc-stats-table tr:last-child td { border-bottom: none; }
.wc-stats-table tr:hover td { background: var(--bg); }

@media (max-width: 480px) {
  .wc-hero-title { font-size: 22px; }
  .wc-hero-sub { font-size: 12px; }
  .wc-tab { padding: 12px 14px; font-size: 13px; }
}

/* ===== SEGMENTED CONTROL ===== */
.seg-ctrl {
  display: inline-flex;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 0;
}
.seg-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), width 0.22s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  z-index: 0;
}
.seg-btn {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.18s;
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.seg-btn.active { color: var(--text); }
.seg-btn:hover:not(.active) { color: var(--text); }

@media (max-width: 480px) {
  .seg-btn { padding: 5px 10px; font-size: 11px; }
}

/* ===== FIXTURE TICKER BAR ===== */
.fixture-bar {
  background: #0d0d1a;
  border-bottom: 1px solid rgba(200,16,46,0.3);
  overflow: hidden;
  height: 46px;
  display: flex;
  align-items: center;
}
.fixture-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: fixtureTicker 30s linear infinite;
  will-change: transform;
}
.fixture-track:hover { animation-play-state: paused; }
@keyframes fixtureTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.fixture-item {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  cursor: default;
  min-width: 320px;
}
.fixture-team-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.fixture-flag {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.fixture-team {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.2px;
}
.fixture-tr {
  color: #fff;
  font-weight: 800;
}
.fixture-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 0 6px;
}
.fixture-date {
  font-size: 9.5px;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.3px;
}
.fixture-time {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(200,16,46,0.15);
  border: 1px solid rgba(200,16,46,0.35);
  border-radius: 4px;
  padding: 1px 8px;
  line-height: 1.5;
  letter-spacing: 0.5px;
}
.fixture-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
  align-self: center;
  margin: 0 4px;
}

/* ===== WC NAV LINK ===== */
.branch-link-wc {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 6px !important;
  color: rgba(255,255,255,0.9) !important;
  margin: 0 4px !important;
  padding: 0 14px !important;
  transition: background 0.2s, color 0.2s !important;
}
.branch-link-wc img {
  display: inline-block !important;
  background: #fff;
  border-radius: 4px;
  padding: 2px 3px;
  height: 18px;
  width: auto;
  max-width: 60px;
  vertical-align: middle;
  flex-shrink: 0;
  margin-right: 5px;
}
.branch-link-wc:hover {
  background: rgba(255,255,255,0.13) !important;
  color: #fff !important;
}
.branch-link-wc.active {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.35) !important;
}
