.hidden {
  display: none !important;
}


* { box-sizing: border-box; }

:root {
  --bg: #070d19;
  --panel: #101a2f;
  --panel-2: #0d1528;
  --panel-3: #13203a;
  --line: #1f2b43;
  --line-soft: rgba(255,255,255,0.08);
  --text: #f7f9ff;
  --muted: #a9b4c8;
  --blue: #2f5eff;
  --blue-soft: rgba(47, 94, 255, 0.16);
  --green: #13b981;
  --shadow: 0 18px 48px rgba(0,0,0,.28);
  --radius: 18px;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47,94,255,.12), transparent 22%),
    linear-gradient(180deg, #050b16 0%, #0a1223 100%);
  color: var(--text);
}

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

.navbar {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(7, 13, 25, 0.82);
}

.nav-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.site-logo img {
  display: block;
  width: clamp(172px, 20vw, 264px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

.brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-link,
.nav-user-chip {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  color: var(--text);
}

.nav-link.active {
  background: var(--blue);
  border-color: var(--blue);
}

.nav-button {
  cursor: pointer;
}

.page {
  max-width: 1180px;
  margin: 30px auto;
  padding: 0 20px 48px;
}

.narrow-page {
  max-width: 720px;
}

.intro-card,
.thread-card,
.thread-hero,
.comments-panel,
.side-panel,
.forum-board-card,
.auth-card,
.forum-list-wrap,
.forum-sidebar-card,
.forum-post-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.intro-card {
  margin-bottom: 28px;
}

h1, h2, h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-link {
  color: #8db3ff;
}

.thread-grid,
.comments,
.related-links {
  display: grid;
  gap: 16px;
  margin-top: 15px;
}

.thread-card h3,
.thread-hero h1 {
  margin: 14px 0 8px;
}

.meta-line, .kickoff, .league, .muted, .hero-meta, .board-meta {
  color: var(--muted);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}


.thread-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.thread-card-clickable {
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.thread-card-clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 18px 38px rgba(0,0,0,.28);
}

.thread-card-clickable .card-bottom {
  justify-content: flex-start;
}

.thread-hero-teams {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-team-logo {
  width: 34px;
  height: 34px;
}

.thread-kickoff-box {
  margin: 14px 0 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-soft);
}

.thread-kickoff-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.thread-kickoff-value {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.badge, .pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.badge.live { background: #065f46; }
.badge.upcoming { background: #1e3a8a; }
.badge.finished { background: #374151; }
.pill { background: var(--blue); }

.empty-state {
  padding: 16px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
}

.thread-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  margin-top: 18px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.comments-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-btn,
.auth-form button,
.stack-form button,
.pagination button {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--blue);
  color: white;
  cursor: pointer;
}

.comment-form {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 10px;
  margin-bottom: 16px;
}

.comment-form input,
.comment-form button,
.auth-form input,
.stack-form textarea {
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid #243041;
  background: #0b152b;
  color: white;
  width: 100%;
}

.auth-form,
.stack-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 16px;
}

.stack-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

.comment-card {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 14px;
  padding: 14px;
}

.comment-body {
  margin-top: 8px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.forum-link {
  color: #9fc2ff;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid #243041;
}

.auth-status {
  background: #0f172a;
  border: 1px solid #243041;
  padding: 10px 12px;
  border-radius: 12px;
}

.reply-target-preview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(75,124,255,.24);
  background: rgba(13, 21, 40, 0.96);
  border-radius: 16px;
}

.reply-target-preview.hidden {
  display: none;
}

.reply-target-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8ea8d8;
  margin-bottom: 4px;
}

.reply-target-author {
  font-weight: 800;
  color: #eef4ff;
  margin-bottom: 2px;
}

.reply-target-body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.reply-target-clear {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  flex: 0 0 auto;
}

.reply-target-clear:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.18);
}


.new-comments-notice {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
}

.new-comments-notice.hidden {
  display: none;
}

.new-comments-btn {
  min-width: 220px;
  max-width: min(90vw, 360px);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(75, 124, 255, 0.45);
  background: rgba(19, 34, 69, 0.96);
  color: #dce7ff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(75, 124, 255, 0.18);
  pointer-events: auto;
}

.new-comments-btn:hover {
  background: rgba(30, 49, 94, 0.98);
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pagination button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.back-link { display: inline-block; }

.teams-with-logos {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.team-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 999px;
  background: white;
}

.vs {
  opacity: 0.8;
}

.related-box {
  margin-top: 24px;
}

/* NEW FORUM UI */
.forum-page {
  display: grid;
  gap: 22px;
}

.forum-hero {
  min-height: 220px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  background:
    linear-gradient(120deg, rgba(18,37,83,.96), rgba(12,22,41,.85)),
    url("./assets/banners/bl.svg") center/cover no-repeat;
}

.forum-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,11,22,.15), rgba(5,11,22,.5));
}

.forum-hero-copy {
  position: relative;
  z-index: 1;
  padding: 36px;
  max-width: 760px;
}

.hero-kicker {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  letter-spacing: .06em;
}

.forum-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.forum-hero p {
  margin: 0;
  color: #d6def0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.forum-list-wrap {
  padding: 22px;
}

.forum-board-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.forum-board-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  padding: 18px;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.forum-board-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.2);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
}

.forum-row-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.forum-row-logo-wrap {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  flex: 0 0 auto;
}

.forum-row-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.forum-row-copy {
  min-width: 0;
}

.forum-row-title-line {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.forum-row-title-line h3 {
  margin: 0;
  font-size: 1.45rem;
}

.forum-row-copy p {
  margin: 8px 0 0;
}

.forum-row-side {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: right;
}

.forum-stat {
  display: grid;
  gap: 4px;
}

.forum-stat-label {
  color: var(--muted);
  font-size: .82rem;
}

.forum-enter {
  font-weight: 800;
  color: #9fc2ff;
}

.board-page {
  display: grid;
  gap: 20px;
}

.forum-room-hero {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.forum-room-banner {
  position: relative;
  min-height: 240px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  background-position: center;
  background-size: cover;
}

.forum-room-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,11,20,.78) 0%, rgba(8,14,26,.58) 50%, rgba(6,11,20,.72) 100%);
}

.forum-room-content {
  position: relative;
  z-index: 1;
  padding: 28px 34px;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 240px;
}

.forum-room-logo {
  width: 108px;
  height: 108px;
  object-fit: contain;
  border-radius: 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  padding: 10px;
}

.forum-room-copy h1 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.forum-room-copy p {
  margin: 0;
  max-width: 720px;
  color: #dbe6f7;
  line-height: 1.65;
}

.forum-room-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}

.forum-room-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.forum-sidebar-card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
}

.forum-post-panel {
  padding: 20px;
}

.forum-comments-top h2 {
  margin-bottom: 8px;
}

.forum-post-list {
  display: grid;
  gap: 14px;
}

.forum-post-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8,16,31,.9), rgba(10,18,36,.82));
}

.forum-post-user {
  padding-right: 14px;
  border-right: 1px solid var(--line-soft);
  display: grid;
  align-content: start;
  gap: 8px;
  justify-items: start;
}

.forum-post-user-compact {
  min-width: 0;
}

.forum-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

.forum-avatar-a { background: linear-gradient(135deg, #2f5eff, #19a7ff); }
.forum-avatar-b { background: linear-gradient(135deg, #ff4d6d, #ff7b00); }
.forum-avatar-c { background: linear-gradient(135deg, #13b981, #22c55e); }
.forum-avatar-d { background: linear-gradient(135deg, #7c3aed, #2f5eff); }
.forum-avatar-e { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.forum-avatar-f { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.forum-avatar-g { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.forum-avatar-h { background: linear-gradient(135deg, #64748b, #334155); }

.forum-user-meta {
  display: grid;
  gap: 4px;
}

.forum-user-meta strong {
  font-size: 1rem;
}

.forum-user-meta span {
  color: var(--muted);
  font-size: .86rem;
}

.forum-post-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.forum-post-author {
  font-weight: 800;
}

.forum-post-time {
  color: var(--muted);
  font-size: .9rem;
}

.forum-post-body {
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e7efff;
  font-size: 1rem;
}

.auth-card {
  max-width: 540px;
  margin: 50px auto;
}

.auth-card h1 {
  margin-bottom: 10px;
}

.accent-bl .pill, .accent-bl .hero-kicker { background: rgba(34,81,255,.22); }
.accent-el .pill, .accent-el .hero-kicker { background: rgba(255,157,0,.18); }
.accent-premier-league .pill, .accent-premier-league .hero-kicker { background: rgba(127,43,255,.18); }
.accent-la-liga .pill, .accent-la-liga .hero-kicker { background: rgba(255,77,109,.18); }
.accent-serie-a .pill, .accent-serie-a .hero-kicker { background: rgba(0,180,255,.18); }
.accent-bundesliga .pill, .accent-bundesliga .hero-kicker { background: rgba(255,64,64,.18); }
.accent-nb1 .pill, .accent-nb1 .hero-kicker { background: rgba(45,204,112,.18); }
.accent-off-topic .pill, .accent-off-topic .hero-kicker { background: rgba(156,163,175,.18); }

@media (max-width: 960px) {
  .forum-room-layout {
    grid-template-columns: 1fr;
  }

  .forum-room-sidebar {
    position: static;
  }

  .forum-board-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .forum-row-side {
    justify-content: space-between;
    text-align: left;
  }

  .forum-post-card {
    grid-template-columns: 1fr;
  }

  .forum-post-user {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding-right: 0;
    padding-bottom: 12px;
  }
}

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

  .comments-top {
    flex-direction: column;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-direction: column;
  }

  .forum-room-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .forum-hero-copy,
  .forum-room-content {
    padding: 24px;
  }
}


.profile-card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.profile-banner-preview {
  height: 220px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #16264d, #091224);
  background-size: cover;
  background-position: center;
  margin-bottom: 18px;
}

.profile-header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.profile-avatar-preview,
.forum-avatar-image {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.14);
  background: #0f172a;
}

.profile-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 24px;
}

.profile-field-group {
  display: grid;
  gap: 10px;
}

.profile-label {
  color: var(--muted);
  font-size: .95rem;
}

.secondary-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: white;
  cursor: pointer;
}

.auth-form input[type="file"] {
  padding: 10px;
}


.mini-banner {
  height: 28px;
  border-radius: 10px 10px 0 0;
  background-size: cover;
  background-position: center;
  margin-bottom: 6px;
}

.default-banner {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.forum-user-rank {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 6px;
}

.forum-user-postcount {
  font-size: 0.75rem;
  color: #64748b;
}


.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -4px;
  margin-bottom: 2px;
}


.forum-post-footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

.reply-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  color: #94a3b8;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease;
}

.reply-btn:hover {
  background: rgba(255,255,255,.08);
  color: white;
  border-color: rgba(255,255,255,.22);
}


.forum-post-body {
  display: grid;
  gap: 10px;
}

.forum-quote-block {
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-left: 4px solid #60a5fa;
  background: rgba(96, 165, 250, 0.08);
  color: #dbeafe;
  border-radius: 12px;
  padding: 12px 14px;
  line-height: 1.6;
}

.forum-empty-line {
  min-height: 8px;
}


.emoji-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 8px;
}

.emoji-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: white;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  min-width: 42px;
  text-align: center;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.emoji-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}


.forum-quote-block {
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-left: 4px solid #60a5fa;
  background: rgba(96, 165, 250, 0.08);
  color: #dbeafe;
  border-radius: 12px;
  padding: 12px 14px;
  line-height: 1.6;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.forum-quote-block.level-2 {
  background: rgba(148, 163, 184, 0.10);
  border-left-color: #94a3b8;
  margin-top: 10px;
}

.forum-quote-block.level-3 {
  background: rgba(255,255,255,0.06);
  border-left-color: #cbd5e1;
  margin-top: 10px;
}

.forum-quote-header {
  font-weight: 700;
  color: #dbeafe;
}

.forum-post-body {
  display: grid;
  gap: 12px;
}

.forum-empty-line {
  min-height: 8px;
}


/* ==== CLEAN HEADER (remove duplicated top username) ==== */
.forum-post-author {
  display: none !important;
}

.forum-post-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ==== RIGHT ALIGNED REPLY BUTTON ==== */
.forum-post-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

/* if reply button is not wrapped, force alignment */
.reply-btn,
.forum-post button {
  align-self: flex-end;
}


/* ==== CLEAN HEADER FIXED ==== */
.forum-post-author {
  display: none !important;
}

.forum-post-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ==== REPLY BUTTON RIGHT ==== */
.forum-post-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}


.forum-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 4px;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: white;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.reaction-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}

.reaction-btn.active {
  background: rgba(47, 94, 255, .22);
  border-color: rgba(96, 165, 250, .55);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, .2) inset;
}

.reaction-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.reaction-emoji {
  font-size: 1rem;
  line-height: 1;
}

.reaction-count {
  font-size: .88rem;
  font-weight: 700;
  color: #dbeafe;
}


/* Popup reaction system */

.forum-reaction-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.reaction-summary {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.reaction-summary-item {
  background: rgba(255,255,255,.06);
  padding: 4px 10px;
  border-radius: 999px;
}

.reaction-action {
  position: relative;
}

.reaction-main-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

.reaction-popup {
  position: absolute;
  bottom: 120%;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: #0f1a33;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all .2s ease;
}

.reaction-action:hover .reaction-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reaction-emoji-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform .15s ease;
}

.reaction-emoji-btn:hover {
  transform: scale(1.25);
}

.reaction-emoji-btn.active {
  filter: drop-shadow(0 0 6px rgba(96,165,250,.8));
}



/* ==== Reaction popup visibility + hover bridge fix ==== */
.reaction-action {
  position: relative;
  display: flex;
  align-items: center;
}

.reaction-main-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #f7f9ff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.reaction-main-btn:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.30);
  box-shadow: 0 0 0 1px rgba(96,165,250,.18) inset;
}

.reaction-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #0f1a33;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 20;
}

/* invisible bridge so hover doesn't break between button and popup */
.reaction-action::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 220px;
  height: 14px;
  background: transparent;
}

.reaction-action:hover .reaction-popup,
.reaction-action:focus-within .reaction-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reaction-summary {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.95;
  flex-wrap: wrap;
}

.reaction-summary-item {
  background: rgba(255,255,255,.06);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
}

.reaction-emoji-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
  line-height: 1;
}

.reaction-emoji-btn:hover {
  transform: scale(1.25);
  filter: brightness(1.1);
}

.reaction-emoji-btn.active {
  filter: drop-shadow(0 0 6px rgba(96,165,250,.8));
}


/* ===== Platform-ready interaction polish ===== */

.page,
.forum-room-layout,
.forum-post-panel,
.forum-list-wrap,
.forum-post-card,
.forum-board-row,
.nav-links,
.comments-top,
.forum-post-footer,
.forum-reaction-wrapper {
  min-width: 0;
}

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

button,
.nav-link,
.reaction-main-btn,
.reply-btn,
.emoji-btn,
.pagination button {
  touch-action: manipulation;
}

/* Reply button style aligned with reaction button */
.reply-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #f7f9ff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.reply-btn:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.30);
  box-shadow: 0 0 0 1px rgba(96,165,250,.18) inset;
}

.forum-post-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.forum-reaction-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.reaction-summary {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.95;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.reaction-summary-empty {
  display: none;
}

.reaction-summary-item {
  background: rgba(255,255,255,.06);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
}

.reaction-action {
  position: relative;
  display: flex;
  align-items: center;
}

.reaction-main-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #f7f9ff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.reaction-main-btn:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.30);
  box-shadow: 0 0 0 1px rgba(96,165,250,.18) inset;
}

.reaction-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #0f1a33;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 30;
}

.reaction-action::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 240px;
  height: 14px;
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .reaction-action:hover .reaction-popup,
  .reaction-action:focus-within .reaction-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.reaction-action.open .reaction-popup,
.reaction-action.open:focus-within .reaction-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reaction-emoji-btn {
  min-width: 42px;
  min-height: 42px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
  line-height: 1;
  border-radius: 999px;
}

.reaction-emoji-btn:hover {
  transform: scale(1.18);
  filter: brightness(1.1);
}

.reaction-emoji-btn.active {
  filter: drop-shadow(0 0 6px rgba(96,165,250,.8));
}

.reaction-emoji-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.forum-post-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.forum-post-author {
  display: none !important;
}

/* Better mobile/tablet responsiveness */
@media (max-width: 960px) {
  .page {
    padding: 0 14px 40px;
  }

  .forum-room-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .forum-room-sidebar {
    position: static;
  }

  .forum-post-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .forum-post-user {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .forum-room-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .forum-room-logo {
    width: 84px;
    height: 84px;
  }

  .forum-room-copy h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .forum-board-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .forum-row-side {
    justify-content: space-between;
    text-align: left;
    flex-wrap: wrap;
  }

  .forum-reaction-wrapper {
    justify-content: flex-start;
  }

  .forum-post-footer {
    justify-content: flex-start;
  }

  .reaction-popup {
    right: auto;
    left: 0;
    max-width: min(92vw, 360px);
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .reaction-action::before {
    left: 0;
    right: auto;
    width: 220px;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 14px 16px;
  }

  .brand {
    font-size: 20px;
  }

  .tagline {
    font-size: 13px;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-link,
  .nav-user-chip {
    padding: 9px 12px;
    font-size: 14px;
  }

  .forum-hero-copy,
  .forum-room-content,
  .forum-post-panel,
  .forum-list-wrap,
  .forum-sidebar-card {
    padding: 16px;
  }

  .forum-row-title-line h3,
  .forum-room-copy h1,
  h1, h2 {
    line-height: 1.15;
  }

  .stack-form textarea {
    min-height: 120px;
  }

  .emoji-panel {
    gap: 6px;
  }

  .emoji-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
  }

  .reaction-main-btn,
  .reply-btn {
    min-height: 42px;
  }

  .pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination button {
    width: 100%;
  }
}


.auth-role-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(47, 94, 255, .18);
  border: 1px solid rgba(96, 165, 250, .28);
  color: #dbeafe;
  font-size: .78rem;
  font-weight: 700;
}

.forum-user-role-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  margin-top: 6px;
}

.forum-user-role-badge.admin {
  background: rgba(239, 68, 68, .16);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, .28);
}

.forum-user-role-badge.moderator {
  background: rgba(245, 158, 11, .16);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, .28);
}

.post-action-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: #f7f9ff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.post-action-btn:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.28);
}

.post-action-btn:disabled,
.reply-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.forum-post-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

@media (max-width: 960px) {
  .forum-post-footer {
    justify-content: flex-start;
  }
}


.edit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 20, .72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 16px;
}

.edit-modal-overlay.hidden {
  display: none;
}

.edit-modal-card {
  width: min(920px, 100%);
  background: linear-gradient(180deg, rgba(16,26,47,.98), rgba(10,18,35,.98));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.edit-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.edit-modal-head h3 {
  margin: 0;
}

.edit-modal-close {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: white;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.edit-modal-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edit-modal-tools.hidden {
  display: none;
}

.edit-tool-btn,
.edit-tool-select {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: white;
  border-radius: 12px;
  padding: 8px 12px;
}

.edit-tool-btn {
  cursor: pointer;
  min-height: 42px;
}

.edit-modal-textarea {
  width: 100%;
  min-height: 240px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid #243041;
  background: #0b152b;
  color: white;
  padding: 14px;
  line-height: 1.6;
  font: inherit;
}

.edit-modal-note {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.edit-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.forum-post-body strong { font-weight: 800; }
.forum-post-body em { font-style: italic; }

@media (max-width: 640px) {
  .edit-modal-card {
    padding: 14px;
    border-radius: 16px;
  }

  .edit-modal-textarea {
    min-height: 180px;
  }

  .edit-modal-actions {
    justify-content: stretch;
  }

  .edit-modal-actions .post-action-btn,
  .edit-modal-actions .reply-btn {
    flex: 1 1 auto;
  }
}


.match-thread-panel .stack-form {
  margin-top: 12px;
}

.thread-comments-grid {
  gap: 16px;
}

.thread-layout .forum-post-panel {
  min-width: 0;
}

.thread-layout .forum-post-card {
  margin-top: 0;
}


.embedded-link {
  color: #93c5fd;
  text-decoration: underline;
  word-break: break-word;
}

.embedded-image-wrap {
  margin: 10px 0;
}

.embedded-image {
  display: block;
  max-width: min(100%, 520px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}


#thread-edit-modal-overlay.edit-modal-overlay {
  z-index: 1200;
}


.edit-modal-emoji-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


.score-strip {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 6px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line-soft);
}

.score-main {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.score-sub {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.thread-scoreboard {
  margin: 14px 0 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-soft);
}

.thread-score {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.thread-score-sub {
  margin-top: 4px;
  color: var(--muted);
}


.match-event-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.match-event-list.compact {
  margin-top: 12px;
}

.match-event-line {
  font-size: 14px;
  color: #d7def7;
}

.match-event-line.red {
  color: #ff8f8f;
}


.forum-post-card.new-comment-highlight {
  box-shadow: 0 0 0 2px rgba(75, 124, 255, 0.95), 0 0 26px rgba(75, 124, 255, 0.28);
  transition: box-shadow 0.25s ease;
}

.mini-banner { display: none !important; }
.forum-avatar, .forum-avatar-image { display: grid; }
.forum-avatar-image { display: block; }


.clipboard-image-preview {
  position: relative;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}

.clipboard-image-preview.hidden {
  display: none;
}

.clipboard-image-preview-head {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.clipboard-image-preview-img,
.comment-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 420px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.clipboard-image-clear {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: rgba(15,23,42,0.9);
  color: white;
  cursor: pointer;
}

.comment-image-wrap {
  margin: 10px 0 6px;
}

.comment-image-wrap a {
  display: inline-block;
}



/* =========================================================
   MOBILE INPUT UX PATCH
   - keeps original desktop/mobile styling intact
   - hides emoji panel on phones
   - keeps textarea compact
   - keeps submit button visible sooner
   ========================================================= */
@media (max-width: 640px) {
  .stack-form {
    gap: 10px;
  }

  .stack-form textarea {
    min-height: 84px;
    max-height: 120px;
    resize: none;
    padding: 12px 14px;
  }

  .stack-form .emoji-panel {
    display: none !important;
  }

  .stack-form .form-note,
  .stack-form > .muted {
    margin-top: 0;
    font-size: 13px;
    line-height: 1.4;
  }

  .stack-form button[type="submit"] {
    width: 100%;
    padding: 12px 14px;
  }

  .reply-target-preview {
    margin-bottom: 8px;
    padding: 10px 12px;
  }
}

@media (max-width: 420px) {
  .stack-form textarea {
    min-height: 76px;
  }

  .stack-form .form-note,
  .stack-form > .muted {
    font-size: 12px;
  }
}

/* =========================================================
   FOTELBALL – MOBILE ZOOM + COMMENT CARD FIX
   Append this to the END of your current client/styles.css
   ========================================================= */

@media (max-width: 640px) {
  /* iPhone input zoom fix */
  .stack-form textarea,
  .comment-form input,
  .auth-form input,
  .edit-modal-textarea,
  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  /* live/forum input should stay compact on focus too */
  .stack-form textarea:focus,
  .edit-modal-textarea:focus {
    font-size: 16px !important;
    min-height: 84px;
    max-height: 120px;
  }

  /* forum post cards */
  .forum-post-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .forum-post-user {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 12px;
    gap: 6px;
  }

  .forum-avatar,
  .forum-avatar-image {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .forum-post-user h3,
  .forum-post-user .forum-username,
  .forum-post-username {
    font-size: 16px;
    line-height: 1.2;
  }

  .forum-post-body,
  .comment-body {
    gap: 8px;
  }

  .forum-post-body,
  .comment-body,
  .forum-post-text,
  .comment-card,
  .comment-card .comment-body {
    font-size: 15px;
    line-height: 1.45;
  }

  .forum-post-head,
  .forum-post-header {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .forum-post-meta,
  .forum-post-date,
  .comment-meta,
  .reply-target-body {
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
  }

  /* action buttons: neat 2-column wrap */
  .forum-post-footer,
  .forum-post-actions {
    justify-content: flex-start !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .forum-post-footer .post-action-btn,
  .forum-post-footer .reply-btn,
  .forum-post-actions .post-action-btn,
  .forum-post-actions .reply-btn,
  .reaction-main-btn,
  .post-action-btn,
  .reply-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    text-align: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 15px;
  }

  /* wider reaction button if it sits alone */
  .reaction-main-btn {
    flex-basis: 100%;
  }

  /* compose area */
  .stack-form {
    gap: 10px;
  }

  .stack-form textarea {
    min-height: 84px;
    max-height: 120px;
    resize: none;
    padding: 12px 14px;
  }

  .stack-form .emoji-panel {
    display: none !important;
  }

  .stack-form .form-note,
  .stack-form > .muted {
    margin-top: 0;
    font-size: 13px;
    line-height: 1.4;
  }

  .stack-form button[type="submit"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
  }

  .reply-target-preview {
    margin-bottom: 8px;
    padding: 10px 12px;
  }
}

@media (max-width: 420px) {
  .forum-post-card {
    padding: 12px;
  }

  .forum-avatar,
  .forum-avatar-image {
    width: 52px;
    height: 52px;
  }

  .forum-post-footer .post-action-btn,
  .forum-post-footer .reply-btn,
  .forum-post-actions .post-action-btn,
  .forum-post-actions .reply-btn,
  .reaction-main-btn,
  .post-action-btn,
  .reply-btn {
    font-size: 14px;
    padding: 10px 10px;
  }

  .stack-form textarea {
    min-height: 76px;
  }

  .stack-form .form-note,
  .stack-form > .muted {
    font-size: 12px;
  }
}

/* =========================================================
   FOTELBALL – LAYOUT CLEANUP PATCH
   - smaller horizontal reaction button
   - reaction popup stays compact/horizontal
   - removes redundant top info boxes on forum/live pages
   - keeps only the useful related forum box on match page
   Append this to the END of client/styles.css
   ========================================================= */

.reaction-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.reaction-popup {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  max-width: min(92vw, 420px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.reaction-emoji-btn {
  min-width: 38px;
  min-height: 38px;
  font-size: 1.1rem;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .reaction-main-btn {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 6px 10px;
    font-size: 14px;
  }

  .reaction-popup {
    left: 0;
    right: auto;
    max-width: min(88vw, 320px);
    padding: 8px 10px;
    gap: 4px;
    flex-wrap: nowrap;
    border-radius: 999px;
  }

  .reaction-emoji-btn {
    min-width: 34px;
    min-height: 34px;
    font-size: 1rem;
  }
}

#thread-info,
.side-panel > h3,
.match-thread-panel .comments-top {
  display: none !important;
}

.thread-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.side-panel {
  order: 1;
  padding: 16px;
}

.match-thread-panel {
  order: 2;
}

.related-box {
  margin-top: 0;
}

.related-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.forum-room-sidebar {
  display: none !important;
}

.forum-room-layout {
  grid-template-columns: minmax(0, 1fr);
}

#board-header,
#thread-header {
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .side-panel,
  .forum-post-panel {
    padding: 16px;
  }

  .related-box .forum-link {
    width: 100%;
    justify-content: center;
  }
}


/* =========================================================
   FOTELBALL – FORUM CLEANUP PATCH
   - hides the top forum info block
   - hides the "Bejelentkezve" auth box
   ========================================================= */

.board-hidden-target {
  display: none !important;
}

.auth-box,
.auth-status {
  display: none !important;
}

/* =========================================================
   FORUM TOPIC NAME IN COMPOSE PATCH
   - hides the large forum header
   - shows current topic name in compose title
   - hides auth strip
   ========================================================= */

#board-header,
#board-sidebar-meta,
.auth-box,
.auth-status {
  display: none !important;
}

#compose-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text);
}

@media (max-width: 640px) {
  #compose-title {
    font-size: 16px;
    margin-bottom: 6px;
  }
}


/* =========================================================
   MATCH CENTER – CLEANER THREAD HEADER + UECL FORUM + SPLIT GOALS
   ========================================================= */

.thread-hidden-target {
  display: none !important;
}

.thread-layout-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.live-thread-panel-clean {
  padding: 18px;
}

.live-related-box {
  margin-top: 0;
  margin-bottom: 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line-soft);
}

.live-related-box h3 {
  margin: 0 0 10px;
}

.live-compose-head {
  margin-bottom: 10px;
}

.live-compose-head h3,
#live-compose-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.match-thread-panel #auth-box,
.auth-status {
  display: none !important;
}

.match-center-card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.match-league-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.match-league-name {
  color: var(--muted);
  font-size: 14px;
}

.match-scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.team-side {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 0;
}

.team-side.home {
  justify-content: flex-end;
  text-align: right;
}

.team-side.away {
  justify-content: flex-start;
  text-align: left;
}

.team-side span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-center {
  text-align: center;
}

.score-center .score {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.match-state {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.match-events-card {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.match-events-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
}

.match-event-list.compact.split-sides {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.match-events-col {
  display: grid;
  gap: 8px;
  min-height: 20px;
}

.match-events-col.away-col .match-event-row {
  grid-template-columns: 1fr 18px 40px;
  justify-items: end;
}

.match-event-row {
  display: grid;
  grid-template-columns: 40px 18px 1fr;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: #d7def7;
}

.match-event-row .event-minute {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  text-align: right;
}

.match-event-row .event-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.match-event-row .event-player {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-events-col.away-col .event-minute {
  text-align: left;
}

.match-events-col.away-col .event-player {
  text-align: right;
}

#thread-pagination {
  margin-top: 20px;
}

@media (max-width: 860px) {
  .match-scoreline {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .team-side.home,
  .team-side.away {
    justify-content: center;
    text-align: center;
  }

  .match-event-list.compact.split-sides {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .match-events-col.away-col .match-event-row,
  .match-event-row {
    grid-template-columns: 40px 18px 1fr;
    justify-items: start;
  }

  .match-events-col.away-col .event-minute,
  .match-event-row .event-minute {
    text-align: right;
  }

  .match-events-col.away-col .event-player {
    text-align: left;
  }

  .score-center .score {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .match-center-card,
  .live-thread-panel-clean {
    padding: 14px;
  }

  .live-compose-head h3,
  #live-compose-title {
    font-size: 16px;
  }

  .team-side {
    font-size: 16px;
  }

  .match-event-row {
    grid-template-columns: 36px 18px 1fr;
    gap: 8px;
    font-size: 12px;
  }
}


/* =========================================================
   DESKTOP WIDTH + COMPACT MATCH UI POLISH
   ========================================================= */

.page {
  max-width: 1040px;
  margin: 24px auto;
}

main.page > section > .section-head,
main.page > section > h2,
#live-threads,
#upcoming-threads,
#finished-threads,
.match-center-card,
.live-thread-panel-clean,
.forum-post-panel.compact-board-panel {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

main.page > section {
  margin-bottom: 22px;
}

.thread-grid {
  gap: 12px;
}

.compact-home-card {
  padding: 14px 16px;
}

.compact-home-top {
  margin-bottom: 8px;
}

.compact-home-teams {
  margin: 8px 0 6px !important;
  gap: 10px;
  font-size: 18px;
}

.compact-home-score {
  margin: 6px 0 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line-soft);
}

.compact-home-score .score-main {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.compact-home-score .score-sub {
  font-size: 12px;
  color: var(--muted);
}

.compact-home-bottom {
  margin-top: 8px;
}

.home-card-events.split-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.home-card-events-col {
  display: grid;
  gap: 6px;
  min-height: 18px;
}

.home-event-row {
  display: grid;
  grid-template-columns: 38px 18px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #d7def7;
}

.home-card-events-col.away-col .home-event-row {
  grid-template-columns: 1fr 18px 38px;
  justify-items: end;
}

.home-event-minute {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.home-card-events-col.away-col .home-event-minute {
  text-align: left;
}

.home-event-player {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-card-events-col.away-col .home-event-player {
  text-align: right;
}

.home-event-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.match-center-card {
  padding: 16px 18px;
  margin-bottom: 14px;
}

.match-league-row {
  margin-bottom: 10px;
}

.match-scoreline {
  gap: 14px;
}

.team-side {
  font-size: 16px;
}

.score-center .score {
  font-size: 34px;
}

.match-state {
  margin-top: 6px;
  font-size: 13px;
}

.match-events-card {
  margin-top: 14px;
  padding-top: 12px;
}

.match-events-card h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.match-event-list.compact.split-sides {
  gap: 16px;
}

.match-events-col {
  gap: 6px;
}

.match-event-row {
  padding: 4px 0;
  font-size: 13px;
}

.live-thread-panel-clean {
  padding: 16px 18px;
}

.live-related-box {
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.compact-compose textarea {
  min-height: 110px;
}

.pagination-bottom {
  margin-top: 16px;
}

@media (max-width: 860px) {
  .page {
    max-width: 100%;
    margin: 18px auto;
  }

  main.page > section > .section-head,
  main.page > section > h2,
  #live-threads,
  #upcoming-threads,
  #finished-threads,
  .match-center-card,
  .live-thread-panel-clean,
  .forum-post-panel.compact-board-panel {
    max-width: 100%;
  }

  .home-card-events.split-sides,
  .match-event-list.compact.split-sides {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-card-events-col.away-col .home-event-row,
  .home-event-row,
  .match-events-col.away-col .match-event-row,
  .match-event-row {
    grid-template-columns: 38px 18px 1fr;
    justify-items: start;
  }

  .home-card-events-col.away-col .home-event-minute,
  .match-events-col.away-col .event-minute {
    text-align: right;
  }

  .home-card-events-col.away-col .home-event-player,
  .match-events-col.away-col .event-player {
    text-align: left;
  }

  .compact-home-teams,
  .team-side {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 0 12px 36px;
    margin: 14px auto;
  }

  .compact-home-card,
  .match-center-card,
  .live-thread-panel-clean {
    padding: 12px 13px;
  }

  .compact-home-teams {
    font-size: 15px;
    gap: 8px;
  }

  .compact-home-score .score-main {
    font-size: 22px;
  }

  .compact-home-score .score-sub {
    font-size: 11px;
  }

  .home-event-row,
  .match-event-row {
    grid-template-columns: 34px 16px 1fr;
    gap: 6px;
    font-size: 12px;
  }

  .score-center .score {
    font-size: 30px;
  }

  .team-side {
    font-size: 15px;
  }

  .live-related-box h3,
  .live-compose-head h3,
  #live-compose-title {
    font-size: 15px;
  }

  .compact-compose textarea {
    min-height: 92px;
  }
}


/* =========================================================
   LEAGUE GROUPED HOME
   ========================================================= */

.league-groups {
  display: grid;
  gap: 26px;
}

.league-block {
  display: grid;
  gap: 14px;
}

.league-title {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.league-thread-list {
  display: grid;
  gap: 10px;
}

.league-thread-link {
  display: block;
  color: inherit;
}

.league-thread-card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.league-thread-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
}

.league-thread-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.league-thread-teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.league-thread-home,
.league-thread-away {
  min-width: 0;
}

.league-thread-vs {
  color: var(--muted);
}

.league-thread-meta {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-shrink: 0;
}

.league-thread-score {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.league-thread-minute {
  font-size: 28px;
  font-weight: 900;
  color: var(--muted);
  white-space: nowrap;
}

.league-thread-minute.live {
  color: #ff4d5e;
}

@media (max-width: 860px) {
  .league-title {
    font-size: 24px;
  }

  .league-thread-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .league-thread-teams {
    font-size: 20px;
  }

  .league-thread-meta {
    width: 100%;
    justify-content: space-between;
  }

  .league-thread-score {
    font-size: 28px;
  }

  .league-thread-minute {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 0 14px 38px;
  }

  .league-title {
    font-size: 21px;
  }

  .league-thread-card {
    padding: 12px 12px;
    border-radius: 14px;
  }

  .league-thread-teams {
    font-size: 17px;
    gap: 6px;
  }

  .league-thread-meta {
    align-items: center;
  }

  .league-thread-score {
    font-size: 24px;
  }

  .league-thread-minute {
    font-size: 18px;
  }
}



/* =========================================================
   CLEAN LEAGUE HOMEPAGE FINAL
   ========================================================= */

.league-groups {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.league-block {
  display: grid;
  gap: 10px;
}

.league-title {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--text);
}

.league-thread-list {
  display: grid;
  gap: 8px;
}

.league-thread-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.league-thread-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  min-height: 62px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.014));
  border: 1px solid rgba(255,255,255,.075);
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.league-thread-card:hover {
  transform: translateY(-1px);
  border-color: rgba(141, 179, 255, .34);
  background: linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.018));
}

.league-thread-teams {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.league-team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 24px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.24));
}

.league-team-logo.placeholder {
  display: inline-block;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.league-thread-vs {
  color: var(--muted);
  font-weight: 800;
}

.league-thread-meta {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 14px;
  white-space: nowrap;
  min-width: 150px;
}

.league-thread-score {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.045em;
  color: #fff;
}

.league-thread-minute {
  min-width: 52px;
  text-align: right;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.035em;
  color: var(--muted);
}

.league-thread-minute.live {
  color: #ff4964;
}

.league-thread-minute.finished {
  color: #aeb8ca;
}

@media (max-width: 860px) {
  .league-groups {
    max-width: 100%;
  }

  .league-title {
    font-size: 23px;
  }

  .league-thread-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .league-thread-teams {
    font-size: 19px;
  }

  .league-thread-meta {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .league-thread-score {
    font-size: 26px;
  }

  .league-thread-minute {
    font-size: 21px;
  }
}

@media (max-width: 560px) {
  .league-thread-card {
    padding: 11px 12px;
    border-radius: 14px;
  }

  .league-thread-teams {
    gap: 6px;
    font-size: 17px;
  }

  .league-team-logo {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .league-thread-score {
    font-size: 23px;
  }

  .league-thread-minute {
    font-size: 19px;
  }
}




/* =========================================================
   FOTELODDS HOME + BETSLIP
   ========================================================= */

.league-thread-mainline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.home-odds-mini {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.home-odds-mini span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 11px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.075);
  color: #d7e1f5;
  font-size: 12px;
  font-weight: 850;
}

.home-odds-mini b {
  color: #ff4964;
  font-weight: 950;
}

.fotel-betslip {
  position: fixed;
  top: 96px;
  right: 20px;
  width: min(360px, calc(100vw - 32px));
  z-index: 80;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255,73,100,.16), transparent 34%),
    linear-gradient(180deg, rgba(16,26,47,.98), rgba(9,15,29,.98));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 26px 70px rgba(0,0,0,.46);
}

.fotel-betslip.hidden {
  display: none;
}

.fotel-slip-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
}

.fotel-slip-kicker {
  color: #ff8da0;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.fotel-betslip h3 {
  margin: 5px 0 14px;
  font-size: 24px;
}

.fotel-slip-match {
  color: #dbe5ff;
  font-weight: 900;
  margin-bottom: 12px;
}

.fotel-slip-pick,
.fotel-slip-odds,
.fotel-slip-return,
.fotel-slip-stake {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.fotel-slip-pick span,
.fotel-slip-odds span,
.fotel-slip-return span,
.fotel-slip-stake span {
  color: var(--muted);
}

.fotel-slip-pick strong,
.fotel-slip-odds strong,
.fotel-slip-return strong {
  color: #fff;
}

.fotel-slip-stake input {
  width: 110px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color: #fff;
  font: inherit;
  text-align: right;
}

.fotel-slip-submit {
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.fotel-slip-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  .league-thread-mainline {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-odds-mini {
    grid-template-columns: repeat(3, 1fr);
  }

  .fotel-betslip {
    top: auto;
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
}




/* =========================================================
   FOTELODDS CLICKABLE HOME + SIDEBAR BETSLIP FINAL
   ========================================================= */

.league-thread-card {
  display: block;
}

.league-thread-open {
  display: block;
}

.league-thread-mainline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.home-odds-mini {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.home-odd-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.085);
  color: #d7e1f5;
  font-size: 12px;
  font-weight: 850;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.home-odd-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,73,100,.38);
  background: rgba(255,73,100,.09);
}

.home-odd-btn b {
  color: #ff4964;
  font-weight: 950;
}

.home-odd-btn span {
  color: #fff;
}

.fotel-betslip {
  position: fixed;
  top: 96px;
  right: 20px;
  width: min(360px, calc(100vw - 32px));
  z-index: 80;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255,73,100,.16), transparent 34%),
    linear-gradient(180deg, rgba(16,26,47,.98), rgba(9,15,29,.98));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 26px 70px rgba(0,0,0,.46);
}

.fotel-betslip.hidden {
  display: none;
}

.fotel-slip-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
}

.fotel-slip-kicker {
  color: #ff8da0;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.fotel-betslip h3 {
  margin: 5px 0 14px;
  font-size: 24px;
}

.fotel-slip-match {
  color: #dbe5ff;
  font-weight: 900;
  margin-bottom: 12px;
}

.fotel-slip-pick,
.fotel-slip-odds,
.fotel-slip-return,
.fotel-slip-stake {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.fotel-slip-pick span,
.fotel-slip-odds span,
.fotel-slip-return span,
.fotel-slip-stake span {
  color: var(--muted);
}

.fotel-slip-pick strong,
.fotel-slip-odds strong,
.fotel-slip-return strong {
  color: #fff;
}

.fotel-slip-stake input {
  width: 110px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color: #fff;
  font: inherit;
  text-align: right;
}

.fotel-slip-submit {
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.fotel-slip-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.fotel-mobile-slip-btn {
  display: none;
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 79;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 16px 40px rgba(0,0,0,.42);
}

.fotel-mobile-slip-btn.hidden {
  display: none;
}

.fotel-next-btn {
  cursor: pointer;
  text-align: left;
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  color: #cad5e8;
  font-size: 12px;
}

.fotel-next-btn:hover {
  border-color: rgba(255,73,100,.34);
  background: rgba(255,73,100,.08);
}

.fotel-next-btn b {
  float: right;
  color: #fff;
  font-size: 14px;
}

@media (max-width: 860px) {
  .league-thread-mainline {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-odds-mini {
    grid-template-columns: repeat(3, 1fr);
  }

  .fotel-betslip {
    top: auto;
    right: 12px;
    left: 12px;
    bottom: 74px;
    width: auto;
    max-height: 72vh;
    overflow: auto;
  }

  .fotel-mobile-slip-btn:not(.hidden) {
    display: block;
  }
}




/* =========================================================
   FOTELODDS PRO MARKETS + BACKEND BETTING
   ========================================================= */

.fotel-odds-card.pro {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255,73,100,.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.09);
}

.fotel-market-section {
  margin-top: 14px;
}

.fotel-market-title {
  display: block;
  margin-bottom: 8px;
  color: #dbe5ff;
  font-weight: 950;
  font-size: 15px;
}

.fotel-market-grid {
  display: grid;
  gap: 8px;
}

.fotel-market-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fotel-market-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fotel-market-odd {
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(7,13,25,.58);
  color: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.fotel-market-odd:hover {
  transform: translateY(-1px);
  border-color: rgba(255,73,100,.38);
  background: rgba(255,73,100,.08);
}

.fotel-market-odd span {
  min-width: 0;
  color: #dbe5ff;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fotel-market-odd strong {
  color: #fff;
  font-weight: 950;
  font-size: 16px;
}

.fotel-market-section.goal-lines {
  padding: 0;
  border: 0;
}

.fotel-market-section.goal-lines summary {
  cursor: pointer;
  list-style: none;
}

.fotel-market-section.goal-lines summary::-webkit-details-marker {
  display: none;
}

.fotel-goal-lines {
  display: grid;
  gap: 7px;
}

.fotel-goal-line-row {
  display: grid;
  grid-template-columns: 54px 1fr 1fr;
  align-items: center;
  gap: 8px;
}

.fotel-goal-line-row > span {
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.fotel-goal-line-row .fotel-market-odd {
  min-height: 40px;
  padding: 8px 10px;
}

@media (max-width: 720px) {
  .fotel-market-grid.three,
  .fotel-market-grid.two {
    grid-template-columns: 1fr;
  }

  .fotel-goal-line-row {
    grid-template-columns: 44px 1fr 1fr;
    gap: 6px;
  }

  .fotel-market-odd {
    min-height: 44px;
  }
}




/* =========================================================
   TIPPJEIM + LEADERBOARD
   ========================================================= */

.tips-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
  gap: 18px;
  align-items: start;
}

.tips-panel {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.014));
  border: 1px solid rgba(255,255,255,.085);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

.tips-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.tips-head h1,
.tips-head h2 {
  margin: 4px 0 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.tips-head h2 {
  font-size: 24px;
}

.tips-kicker {
  color: #ff8da0;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.coin-card {
  min-width: 126px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,73,100,.10);
  border: 1px solid rgba(255,73,100,.20);
  text-align: right;
}

.coin-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.coin-card strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: #fff;
}

.my-bets-list {
  display: grid;
  gap: 10px;
}

.bet-history-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(7,13,25,.52);
  border: 1px solid rgba(255,255,255,.08);
}

.bet-history-card.won {
  border-color: rgba(47, 211, 120, .30);
}

.bet-history-card.lost {
  border-color: rgba(255, 73, 100, .30);
}

.bet-history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bet-status {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255,255,255,.07);
  color: #dbe5ff;
}

.bet-status.won {
  background: rgba(47, 211, 120, .14);
  color: #6ff0a7;
}

.bet-status.lost {
  background: rgba(255, 73, 100, .14);
  color: #ff8da0;
}

.bet-history-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 14px;
}

.bet-history-grid span {
  color: var(--muted);
}

.bet-history-grid b {
  color: #fff;
}

.bet-history-time {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.leaderboard-list {
  display: grid;
  gap: 8px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}

.leaderboard-row .rank {
  color: #ff8da0;
  font-weight: 950;
}

.leaderboard-row strong {
  color: #fff;
}

.leaderboard-row span:last-child {
  color: #dbe5ff;
  font-weight: 900;
}

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

  .bet-history-grid {
    grid-template-columns: 1fr;
  }
}




/* =========================================================
   THREAD ODDS CLICK + DYNAMIC GOALLINES FIX
   ========================================================= */

.fotel-market-odd.disabled,
.fotel-market-odd:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
  border-color: rgba(255,255,255,.06) !important;
  background: rgba(255,255,255,.025) !important;
}




/* =========================================================
   PERIOD LEADERBOARD EXTENSION
   ========================================================= */

.period-tabs {
  max-width: 1180px;
  margin: 0 auto 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.period-tab {
  cursor: pointer;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  color: #dbe5ff;
  font-weight: 850;
}

.period-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.bet-history-card.open {
  border-color: rgba(141,179,255,.22);
}




/* =========================================================
   FOTELODDS MARKET PROTECTION
   ========================================================= */

.fotel-odds-card.suspended {
  position: relative;
}

.fotel-suspended-banner {
  margin: 12px 0 14px;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 190, 60, .12);
  border: 1px solid rgba(255, 190, 60, .26);
  color: #ffd891;
  font-weight: 850;
}

.fotel-market-odd.suspended,
.fotel-market-odd:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
  border-color: rgba(255,255,255,.06) !important;
  background: rgba(255,255,255,.025) !important;
}

.fotel-market-placeholder {
  min-height: 40px;
}


/* Fotelball Live Intelligence / Radar */
.fotel-intel-card {
  margin: 22px auto;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 10%, rgba(59, 130, 246, 0.14), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(244, 63, 94, 0.12), transparent 28%),
    rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
}

.intel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.intel-kicker {
  color: #93c5fd;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.intel-head h3 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.05;
}

.intel-badge {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  color: #dbeafe;
  background: rgba(15, 23, 42, .92);
  white-space: nowrap;
}

.intel-badge.hot { color: #fecaca; border-color: rgba(244,63,94,.45); }
.intel-badge.warning { color: #fde68a; border-color: rgba(245,158,11,.45); }
.intel-badge.live { color: #bbf7d0; border-color: rgba(34,197,94,.45); }

.intel-loading,
.intel-note {
  color: #cbd5e1;
  font-size: 14px;
}

.intel-scoreline-mini {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 8px 0 14px;
  color: #e5e7eb;
}

.intel-scoreline-mini strong:first-child { text-align: right; }
.intel-scoreline-mini strong:last-child { text-align: left; }
.intel-scoreline-mini span {
  font-size: 22px;
  font-weight: 1000;
  color: #fff;
}

.intel-confidence {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(2, 6, 23, .35);
  margin-bottom: 14px;
}

.intel-confidence span { color: #94a3b8; }
.intel-confidence strong { font-size: 22px; color: #bfdbfe; }

.intel-section-title {
  font-weight: 1000;
  color: #f8fafc;
  margin-bottom: 10px;
}

.intel-momentum { margin: 16px 0; }
.intel-momentum-row { margin: 10px 0; }
.intel-momentum-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}
.intel-momentum-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, .12);
}
.intel-momentum-track div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(59,130,246,.75), rgba(147,197,253,.95));
}
.intel-momentum-row.away .intel-momentum-track div {
  background: linear-gradient(90deg, rgba(244,63,94,.75), rgba(251,113,133,.95));
}

.intel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.intel-box,
.intel-community-poll {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 14px;
  background: rgba(2, 6, 23, .35);
}

.intel-box ul {
  margin: 0;
  padding-left: 18px;
  color: #dbeafe;
}

.intel-box li { margin: 8px 0; }
.intel-box p { color: #cbd5e1; margin: 0; }

.intel-community-poll {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.intel-community-poll span {
  display: block;
  color: #94a3b8;
  font-size: 13px;
  margin-top: 2px;
}

.intel-poll-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.intel-poll-buttons button {
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(15, 23, 42, .9);
  color: #f8fafc;
  font-weight: 900;
  cursor: pointer;
}

.intel-poll-buttons button:hover {
  border-color: rgba(96,165,250,.7);
  transform: translateY(-1px);
}

.intel-vote-feedback {
  width: 100%;
  color: #bfdbfe;
  font-weight: 800;
  font-size: 13px;
}

@media (max-width: 760px) {
  .intel-grid { grid-template-columns: 1fr; }
  .intel-scoreline-mini { grid-template-columns: 1fr; text-align: center; }
  .intel-scoreline-mini strong:first-child,
  .intel-scoreline-mini strong:last-child { text-align: center; }
  .intel-head { align-items: flex-start; }
}

.home-radar-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.10);
  color: #bfdbfe;
  font-weight: 800;
  font-size: 13px;
}

.intel-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intel-stat-row {
  display: grid;
  grid-template-columns: 86px 1fr 86px;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.intel-stat-row:last-child { border-bottom: 0; }
.intel-stat-row strong { font-size: 18px; color: #fff; }
.intel-stat-row strong:last-child { text-align: right; }
.intel-stat-row span { text-align: center; color: #bfdbfe; font-weight: 800; font-size: 13px; }
.intel-mini-note { margin: 10px 0 0; color: #93a4bd; font-size: 12px; line-height: 1.35; }

.intel-player-row {
  display: grid;
  grid-template-columns: 42px 1fr 46px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.intel-player-row:last-child { border-bottom: 0; }
.intel-player-row img, .intel-player-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(15,23,42,0.75);
}
.intel-player-avatar { display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.intel-player-row div strong { display: block; color: #fff; font-size: 14px; }
.intel-player-row div span { display: block; color: #93a4bd; font-size: 12px; line-height: 1.3; }
.intel-player-row > b {
  justify-self: end;
  background: rgba(34,197,94,0.16);
  color: #bbf7d0;
  border: 1px solid rgba(34,197,94,0.3);
  padding: 5px 8px;
  border-radius: 999px;
}

@media (max-width: 780px) {
  .intel-grid-wide { grid-template-columns: 1fr; }
  .intel-stat-row { grid-template-columns: 64px 1fr 64px; }
}

/* Live Intelligence V3 */
.home-radar-link{display:block;text-decoration:none;cursor:pointer;transition:transform .12s ease, border-color .12s ease, background .12s ease}
.home-radar-link:hover{transform:translateY(-1px);border-color:#5f8cff;background:rgba(44,91,255,.16)}
.home-radar-link b{float:right;color:#fff;background:rgba(44,91,255,.35);border:1px solid rgba(120,160,255,.3);border-radius:999px;padding:2px 10px;font-size:12px}
.goal-scorer-strip{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px auto 0;max-width:760px;width:100%}
.goal-scorer-strip>div{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;min-height:26px}
.goal-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.055);border-radius:999px;padding:5px 9px;font-size:12px;color:#eaf1ff;line-height:1}
.goal-chip b{color:#ff5f7f}.goal-chip.muted{opacity:.35}
.intel-expected-score{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:12px 14px;border-radius:14px;background:linear-gradient(90deg,rgba(52,100,255,.15),rgba(255,79,122,.12));border:1px solid rgba(126,166,255,.18)}
.intel-expected-score span{color:#b8c6e8;font-size:13px}.intel-expected-score strong{font-size:24px;color:#fff}
.intel-summary-box{margin:14px 0;padding:15px 16px;border-radius:16px;background:rgba(4,10,25,.55);border:1px solid rgba(134,165,255,.18)}
.intel-summary-box strong{display:block;margin-bottom:6px;color:#fff}.intel-summary-box p{margin:0;color:#dbe6ff;line-height:1.4}
.intel-event-box{grid-column:span 2}.intel-event-list{display:flex;flex-direction:column;gap:8px}.intel-event-row{display:grid;grid-template-columns:auto auto 1fr;gap:9px;align-items:center;padding:9px 10px;border-radius:12px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08)}
.intel-event-row.away{border-color:rgba(255,83,126,.22)}.intel-event-row.home{border-color:rgba(92,153,255,.22)}
.intel-event-minute{font-weight:900;color:#ff5f7f;min-width:32px}.intel-event-icon{font-size:16px}.intel-event-row strong{display:block;color:#fff;font-size:13px}.intel-event-row small{display:block;color:#aebbd7;font-size:12px;margin-top:2px}
@media(max-width:760px){.goal-scorer-strip{grid-template-columns:1fr}.intel-event-box{grid-column:span 1}.home-radar-link b{float:none;margin-left:8px}}

/* Fotelball Prediction Engine V1 */
.prediction-card{
  margin:22px auto 0;
  width:min(980px,100%);
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(95,132,255,.24);
  background:linear-gradient(180deg,rgba(13,24,53,.92),rgba(8,13,28,.94));
  box-shadow:0 18px 50px rgba(0,0,0,.24);
}
.prediction-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.prediction-kicker{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:#8fb1ff;font-weight:900}
.prediction-head h3{margin:3px 0 0;color:#fff;font-size:22px}
.prediction-badge{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);color:#dbeafe;font-weight:900;font-size:12px;white-space:nowrap}
.prediction-badge.live{color:#bbf7d0;border-color:rgba(34,197,94,.36)}
.prediction-badge.finished{color:#cbd5e1;border-color:rgba(148,163,184,.3)}
.prediction-loading{padding:16px;border-radius:16px;background:rgba(255,255,255,.045);color:#cbd5e1;line-height:1.45}
.prediction-scoreline{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:12px 0;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.prediction-scoreline strong:first-child{text-align:right}.prediction-scoreline strong:last-child{text-align:left}.prediction-scoreline span{font-size:24px;font-weight:1000;color:#fff}
.prediction-main-call{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0;padding:14px 16px;border-radius:18px;background:linear-gradient(90deg,rgba(68,116,255,.18),rgba(255,71,125,.13));border:1px solid rgba(126,166,255,.18)}
.prediction-main-call span{color:#b8c6e8;font-weight:800}.prediction-main-call strong{font-size:30px;color:#fff}
.prediction-summary{margin:14px 0;padding:14px 16px;border-radius:16px;background:rgba(3,8,20,.52);border:1px solid rgba(134,165,255,.16)}
.prediction-summary strong{display:block;color:#fff;margin-bottom:6px}.prediction-summary p{margin:0;color:#dbe6ff;line-height:1.45}
.prediction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.prediction-box{padding:14px;border-radius:18px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.09)}
.prediction-section-title{font-weight:1000;color:#fff;margin-bottom:10px;font-size:14px}
.prediction-bar-row{margin:10px 0}.prediction-bar-label{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#dbeafe;font-size:13px;font-weight:800}.prediction-bar-label b{color:#fff}
.prediction-bar-track{height:9px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;margin-top:6px}.prediction-bar-track div{height:100%;border-radius:999px;background:linear-gradient(90deg,#4f8cff,#7dd3fc)}
.prediction-bar-row.away .prediction-bar-track div{background:linear-gradient(90deg,#fb7185,#f97316)}.prediction-bar-row.draw .prediction-bar-track div{background:linear-gradient(90deg,#94a3b8,#cbd5e1)}
.prediction-stat-row{display:grid;grid-template-columns:72px 1fr 72px;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.07)}.prediction-stat-row:last-child{border-bottom:0}.prediction-stat-row strong{font-size:18px;color:#fff}.prediction-stat-row strong:last-child{text-align:right}.prediction-stat-row span{text-align:center;color:#bfdbfe;font-size:12px;font-weight:900}
.prediction-mini-note{margin:10px 0 0;color:#93a4bd;font-size:12px;line-height:1.35}.prediction-box p{color:#cbd5e1;line-height:1.45;margin:0}
.prediction-player-row{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.07)}.prediction-player-row:last-child{border-bottom:0}.prediction-player-row img,.prediction-player-avatar{width:34px;height:34px;border-radius:999px;background:rgba(96,165,250,.15);border:1px solid rgba(96,165,250,.24);object-fit:cover;display:flex;align-items:center;justify-content:center;font-weight:1000;color:#bfdbfe}.prediction-player-row strong{display:block;color:#fff;font-size:14px}.prediction-player-row span{display:block;color:#93a4bd;font-size:12px}.prediction-player-row>b{color:#fff}
.prediction-events{display:flex;flex-direction:column;gap:8px}.prediction-event-row{display:grid;grid-template-columns:38px 70px 1fr;gap:8px;align-items:center;padding:9px 10px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}.prediction-event-row b{color:#ff7a98}.prediction-event-row span{color:#fff;font-weight:900}.prediction-event-row small{color:#aebbd7}
.prediction-refresh-btn{margin-top:14px;width:100%;border:0;border-radius:14px;padding:12px 14px;background:linear-gradient(90deg,#3464ff,#ff4f7a);color:#fff;font-weight:1000;cursor:pointer}.prediction-refresh-btn:disabled{opacity:.65;cursor:not-allowed}
.home-radar-hint{display:block;margin-top:8px;padding:8px 10px;border-radius:12px;background:rgba(68,116,255,.12);border:1px solid rgba(68,116,255,.2);color:#cfe0ff;text-decoration:none;font-weight:800}.home-radar-hint b{float:right;color:#fff}
@media(max-width:760px){.prediction-grid{grid-template-columns:1fr}.prediction-scoreline{grid-template-columns:1fr;text-align:center}.prediction-scoreline strong:first-child,.prediction-scoreline strong:last-child{text-align:center}.prediction-head{align-items:flex-start}.prediction-event-row{grid-template-columns:34px 1fr}.prediction-event-row small{grid-column:2}}

/* Prediction Engine V4 - event aware priority alert */
.prediction-situation-alert{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin:12px 0;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(90deg,rgba(245,158,11,.16),rgba(239,68,68,.10));
  border:1px solid rgba(245,158,11,.35);
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}
.prediction-situation-alert b{display:block;color:#fff;font-size:15px;margin-bottom:5px}
.prediction-situation-alert p{margin:0;color:#fef3c7;line-height:1.4;font-size:13px}
.prediction-situation-alert>span{white-space:nowrap;padding:7px 10px;border-radius:999px;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.18);color:#fff;font-weight:1000;font-size:12px}
.prediction-situation-alert.penalty,.prediction-situation-alert.var-penalty{background:linear-gradient(90deg,rgba(245,158,11,.20),rgba(255,79,122,.14));border-color:rgba(245,158,11,.46)}
.prediction-situation-alert.red-card{background:linear-gradient(90deg,rgba(239,68,68,.22),rgba(127,29,29,.14));border-color:rgba(239,68,68,.46)}
.prediction-situation-alert.big-chance{background:linear-gradient(90deg,rgba(52,211,153,.18),rgba(59,130,246,.12));border-color:rgba(52,211,153,.42)}
.prediction-situation-alert.fresh-goal{background:linear-gradient(90deg,rgba(59,130,246,.18),rgba(236,72,153,.12));border-color:rgba(96,165,250,.42)}
@media(max-width:760px){.prediction-situation-alert{flex-direction:column}.prediction-situation-alert>span{align-self:flex-start}}

.prediction-mini-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #b7c7e8;
  font-size: 12px;
  line-height: 1.45;
}

/* Fotelball Live Pulse - community-first match experience */
.pulse-card {
  margin-top: 22px;
  border: 1px solid rgba(91, 141, 255, 0.35);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 34%), linear-gradient(135deg, rgba(13, 23, 47, 0.98), rgba(25, 17, 36, 0.98));
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}
.pulse-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.pulse-kicker {
  color: #8ab4ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pulse-head h3 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}
.pulse-badge {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 900;
  white-space: nowrap;
}
.pulse-badge.hot { background: rgba(255, 96, 120, .16); border-color: rgba(255, 96, 120, .45); }
.pulse-badge.angry, .pulse-badge.var { background: rgba(255, 184, 77, .16); border-color: rgba(255, 184, 77, .45); }
.pulse-badge.tactical { background: rgba(60, 220, 160, .14); border-color: rgba(60, 220, 160, .45); }
.pulse-story-box, .pulse-box, .pulse-loading {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(4, 11, 28, .58);
  border-radius: 16px;
  padding: 14px;
  color: #dce7ff;
}
.pulse-story-box { margin-bottom: 14px; }
.pulse-story-box strong, .pulse-section-title { color: #fff; font-weight: 900; }
.pulse-story-box p, .pulse-box p { margin: 7px 0 0; color: #d9e5ff; }
.pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pulse-section-title { margin-bottom: 10px; }
.pulse-big-number {
  font-size: 42px;
  font-weight: 1000;
  color: #fff;
  line-height: 1;
}
.pulse-mini-note, .pulse-footer-note {
  font-size: 12px;
  color: #9fb1d9 !important;
}
.pulse-footer-note { margin: 12px 4px 0; }
.pulse-reactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pulse-reactions span {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 800;
}
.pulse-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.pulse-side-actions button {
  border: 1px solid rgba(125, 166, 255, .28);
  background: rgba(37, 99, 235, .18);
  color: #fff;
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 900;
  cursor: pointer;
}
.pulse-side-actions button:hover { background: rgba(37, 99, 235, .34); }
.pulse-bar-row { margin: 10px 0; }
.pulse-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 5px;
}
.pulse-bar-track {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
}
.pulse-bar-track div { height: 100%; border-radius: 999px; background: #68a7ff; }
.pulse-bar-row.away .pulse-bar-track div { background: #ff5577; }
.pulse-bar-row.neutral .pulse-bar-track div { background: #a8b3c8; }
.pulse-hot-take {
  font-size: 16px;
  font-weight: 850;
  color: #fff !important;
}
.pulse-verdict-box strong { display: block; color: #fff; margin-bottom: 4px; }
@media (max-width: 760px) {
  .pulse-grid { grid-template-columns: 1fr; }
  .pulse-head h3 { font-size: 20px; }
  .pulse-card { padding: 14px; }
}

/* Live Pulse V2 – Event Verdict + Community AI Pulse */
.pulse-wide-box {
  grid-column: 1 / -1;
}

.pulse-ai-box ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.pulse-ai-box li {
  line-height: 1.35;
}

.pulse-community-prediction p {
  margin: 0 0 10px;
  color: var(--muted, #b7c4dd);
}

.pulse-event-verdict-list {
  display: grid;
  gap: 12px;
}

.pulse-event-verdict-item {
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(15, 23, 42, .42);
  border-radius: 14px;
  padding: 12px;
}

.pulse-event-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 6px;
}

.pulse-event-title strong {
  color: #fff;
}

.pulse-event-title span {
  color: #b7c4dd;
  font-size: 13px;
}

.pulse-verdict-box .pulse-side-actions {
  margin: 8px 0 10px;
}

/* Live Pulse V3 final community experience */
.pulse-head-final {
  align-items: flex-start;
  gap: 18px;
}
.pulse-head-sub {
  margin: 6px 0 0;
  color: #b8c4de;
  font-size: 13px;
  line-height: 1.4;
}
.pulse-main-story {
  border-color: rgba(96,165,250,.35);
  background: linear-gradient(135deg, rgba(37,99,235,.16), rgba(236,72,153,.08));
}
.pulse-final-grid {
  align-items: stretch;
}
.pulse-metric-box .pulse-big-number {
  font-size: 44px;
  line-height: 1;
}
.pulse-top-verdict {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(15,23,42,.55);
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.35;
}
.pulse-final-verdict {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(34,197,94,.26);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20,83,45,.25), rgba(14,165,233,.09));
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}
.pulse-final-verdict ul {
  margin: 10px 0 0 18px;
  padding: 0;
  color: #eaf2ff;
  line-height: 1.5;
}
.pulse-motm-list {
  display: grid;
  gap: 10px;
}
.pulse-motm-item button {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(96,165,250,.25);
  background: rgba(15,23,42,.58);
  color: #f8fbff;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  display: grid;
  gap: 4px;
}
.pulse-motm-item button:hover {
  border-color: rgba(96,165,250,.55);
  transform: translateY(-1px);
}
.pulse-motm-item button span {
  color: #aebbd3;
  font-size: 12px;
}
.pulse-chapter-list {
  display: grid;
  gap: 10px;
}
.pulse-chapter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(15,23,42,.48);
}
.pulse-chapter strong,
.pulse-chapter span {
  display: block;
}
.pulse-chapter span {
  margin-top: 3px;
  color: #aebbd3;
  font-size: 12px;
}
.pulse-chapter em {
  color: #fbcfe8;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  font-size: 12px;
}
.pulse-expert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pulse-expert-row:last-child { border-bottom: none; }
.pulse-expert-row span {
  color: #aebbd3;
  font-size: 12px;
  text-align: right;
}
.pulse-box.pulse-wide-box {
  grid-column: span 2;
}
@media (max-width: 760px) {
  .pulse-box.pulse-wide-box { grid-column: span 1; }
  .pulse-chapter { align-items: flex-start; flex-direction: column; }
  .pulse-chapter em { white-space: normal; }
}

/* === Fotelball threadfeed-v3-clean-ux === */
.live-thread-v3-page {
  max-width: 1040px;
  padding-top: 18px;
}

.thread-scorebar-v3 {
  position: sticky;
  top: 56px;
  z-index: 40;
  max-width: 920px;
  margin: 0 auto 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(15, 23, 42, .92));
  box-shadow: 0 14px 38px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
}

.thread-scorebar-v3 .match-center-top {
  display: grid;
  gap: 8px;
}

.thread-scorebar-v3 .match-league-row {
  margin-bottom: 0;
}

.thread-scorebar-v3 .match-scoreline {
  min-height: 46px;
}

.thread-scorebar-v3 .score {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
}

.thread-scorebar-v3 .team-side span {
  font-size: 14px;
}

.thread-scorebar-v3 .hero-team-logo {
  width: 26px;
  height: 26px;
}

.match-pulse-card-v3 {
  max-width: 920px;
  margin: 0 auto 14px;
}

.assistant-card-v3 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr);
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 20px;
  background: rgba(15, 23, 42, .88);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .22);
  padding: 14px;
}

.assistant-skeleton {
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 18px;
  background: rgba(15, 23, 42, .76);
  padding: 14px;
  color: rgba(226, 232, 240, .74);
}

.assistant-summary-v3,
.supporter-picker-v3 {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(2, 6, 23, .28);
  padding: 14px;
}

.assistant-kicker-v3 {
  color: #93c5fd;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 6px;
}

.assistant-summary-v3 h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 18px;
}

.assistant-summary-v3 p {
  margin: 0;
  color: rgba(226, 232, 240, .90);
  line-height: 1.45;
}

.assistant-meta-v3 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.assistant-meta-v3 span {
  border: 1px solid rgba(96, 165, 250, .20);
  border-radius: 999px;
  background: rgba(37, 99, 235, .14);
  color: rgba(219, 234, 254, .90);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
}

.supporter-actions-v3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-bottom: 10px;
}

.supporter-actions-v3 button,
.thread-event-vote-btn,
.threadfeed-demo-actions button {
  border: 1px solid rgba(34, 197, 94, .32);
  border-radius: 999px;
  background: rgba(20, 83, 45, .38);
  color: #ecfdf5;
  font-weight: 900;
  cursor: pointer;
  padding: 8px 10px;
}

.supporter-actions-v3 button:hover,
.thread-event-vote-btn:hover,
.threadfeed-demo-actions button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.supporter-picker-v3 small {
  display: block;
  color: rgba(226, 232, 240, .62);
  margin-top: 8px;
}

.supporter-bars-v3 .pulse-bar-row {
  margin: 7px 0;
}

.thread-layout-v3,
.thread-layout-threadfeed {
  display: block !important;
  max-width: 920px;
  margin: 0 auto;
}

.threadfeed-main-v3 {
  width: 100%;
  max-width: none;
  border-radius: 22px;
}

.related-box-v3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.related-v3-title {
  font-weight: 900;
  color: #fff;
}

.threadfeed-head-v3 {
  border: 1px solid rgba(96, 165, 250, .16);
  border-radius: 16px;
  background: rgba(37, 99, 235, .08);
  padding: 12px;
  margin-bottom: 12px;
}

.threadfeed-head-v3 h3 {
  margin-bottom: 4px;
}

.threadfeed-help {
  margin: 0;
  color: rgba(226, 232, 240, .68);
  font-size: 13px;
  line-height: 1.4;
}

.compact-compose-v3 {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  background: rgba(15, 23, 42, .70);
  padding: 12px;
}

.compact-compose-v3 textarea {
  min-height: 92px;
}

.emoji-panel-v3 {
  max-height: 92px;
  overflow: auto;
}

.threadfeed-demo-tools-v3 {
  margin: 12px 0;
  border: 1px dashed rgba(96, 165, 250, .28);
  border-radius: 16px;
  background: rgba(15, 23, 42, .55);
  padding: 10px 12px;
}

.threadfeed-demo-tools-v3 summary {
  cursor: pointer;
  font-weight: 900;
  color: rgba(219, 234, 254, .94);
}

.threadfeed-demo-tools-v3 p {
  color: rgba(226, 232, 240, .64);
  margin: 8px 0;
}

.threadfeed-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thread-comments-v3 {
  display: grid;
  gap: 12px;
}

.thread-event-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  border: 1px solid rgba(96, 165, 250, .26);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, .95), rgba(15, 23, 42, .82));
  padding: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.thread-event-card.goal,
.thread-event-card.penalty_goal {
  border-color: rgba(34, 197, 94, .42);
}

.thread-event-card.var,
.thread-event-card.var_goal,
.thread-event-card.var_penalty,
.thread-event-card.var_card {
  border-color: rgba(96, 165, 250, .45);
}

.thread-event-card.red_card {
  border-color: rgba(248, 113, 113, .45);
}

.thread-event-card.yellow_card {
  border-color: rgba(250, 204, 21, .42);
}

.thread-event-card.offside,
.thread-event-card.cancelled_goal,
.thread-event-card.penalty_missed {
  border-color: rgba(251, 146, 60, .42);
}

.thread-event-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(37, 99, 235, .18);
  font-size: 25px;
}

.thread-event-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.thread-event-kicker {
  color: #93c5fd;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
}

.thread-event-head h4 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 18px;
}

.thread-event-time {
  white-space: nowrap;
  color: rgba(226, 232, 240, .52);
  font-size: 12px;
}

.thread-event-desc {
  display: grid;
  gap: 3px;
  margin: 10px 0;
  color: rgba(226, 232, 240, .76);
  font-size: 13px;
}

.thread-event-vote-box {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(2, 6, 23, .30);
  padding: 12px;
  margin-top: 10px;
}

.thread-event-vote-box > strong {
  display: block;
  color: #fff;
  margin-bottom: 9px;
}

.thread-event-vote-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.thread-event-vote-btn.active {
  background: rgba(37, 99, 235, .56);
  border-color: rgba(147, 197, 253, .60);
}

.thread-event-vote-bar {
  margin: 7px 0;
}

.thread-event-vote-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(226, 232, 240, .80);
  font-size: 12px;
  font-weight: 800;
}

.thread-event-vote-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .22);
  overflow: hidden;
  margin-top: 4px;
}

.thread-event-vote-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(96, 165, 250, .88);
}

.thread-event-vote-bar.active .thread-event-vote-track i {
  background: rgba(34, 197, 94, .92);
}

.thread-event-foot {
  margin-top: 8px;
  color: rgba(226, 232, 240, .58);
  font-size: 12px;
}

.thread-event-actions {
  margin-top: 10px;
}

#match-pulse-card .pulse-grid,
#match-pulse-card .pulse-final-verdict,
#match-pulse-card .pulse-event-verdict-list,
#match-pulse-card .pulse-footer-note,
#match-pulse-card .pulse-story-box:not(.pulse-main-story) {
  display: none !important;
}

@media (max-width: 760px) {
  .live-thread-v3-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .thread-scorebar-v3 {
    top: 48px;
    border-radius: 0 0 18px 18px;
    margin-left: -10px;
    margin-right: -10px;
  }

  .thread-scorebar-v3 .match-scoreline {
    grid-template-columns: 1fr auto 1fr;
    gap: 7px;
  }

  .thread-scorebar-v3 .team-side {
    gap: 5px;
  }

  .thread-scorebar-v3 .team-side span {
    font-size: 12px;
  }

  .assistant-card-v3 {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .assistant-summary-v3,
  .supporter-picker-v3 {
    padding: 11px;
  }

  .assistant-meta-v3 span {
    font-size: 11px;
  }

  .related-box-v3 {
    align-items: flex-start;
    flex-direction: column;
  }

  .thread-event-card {
    grid-template-columns: 1fr;
  }

  .thread-event-icon {
    width: 42px;
    height: 42px;
  }

  .thread-event-head {
    display: grid;
  }

  .thread-event-time {
    white-space: normal;
  }
}

/* =========================================================
   THREADFEED V4 – Reddit-szerű válaszok API-események alatt
   ========================================================= */
.thread-event-card .thread-event-actions {
  display: none !important;
}

.event-replies {
  margin-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, .16);
  padding-top: 12px;
}

.event-replies-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.event-replies-head strong {
  color: rgba(226, 232, 240, .88);
  font-size: 13px;
}

.event-reply-toggle {
  border: 1px solid rgba(96, 165, 250, .30);
  border-radius: 999px;
  background: rgba(37, 99, 235, .16);
  color: rgba(219, 234, 254, .96);
  font-weight: 900;
  cursor: pointer;
  padding: 7px 10px;
  white-space: nowrap;
}

.event-reply-toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.event-reply-list {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}

.event-reply-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 14px;
  background: rgba(2, 6, 23, .28);
  position: relative;
}

.event-reply-item::before {
  content: "";
  position: absolute;
  left: 26px;
  top: -10px;
  width: 1px;
  height: 10px;
  background: rgba(148, 163, 184, .22);
}

.event-reply-avatar,
.event-reply-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(37, 99, 235, .76), rgba(14, 165, 233, .58));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, .12);
}

.event-reply-body {
  min-width: 0;
}

.event-reply-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.event-reply-meta strong {
  color: #fff;
  font-size: 13px;
}

.event-reply-meta span {
  color: rgba(226, 232, 240, .50);
  font-size: 11px;
  white-space: nowrap;
}

.event-reply-text {
  color: rgba(226, 232, 240, .88);
  line-height: 1.45;
  font-size: 14px;
  word-break: break-word;
}

.event-reply-empty {
  border: 1px dashed rgba(148, 163, 184, .18);
  border-radius: 14px;
  padding: 10px;
  color: rgba(226, 232, 240, .58);
  font-size: 13px;
  background: rgba(2, 6, 23, .18);
}

.event-reply-form {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: 14px;
  background: rgba(15, 23, 42, .70);
}

.event-reply-form.hidden {
  display: none !important;
}

.event-reply-input {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 12px;
  background: rgba(2, 6, 23, .55);
  color: #fff;
  padding: 10px;
  outline: none;
}

.event-reply-input:focus {
  border-color: rgba(96, 165, 250, .65);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

.event-reply-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.event-reply-image {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .event-replies-head {
    align-items: stretch;
    flex-direction: column;
  }

  .event-reply-toggle {
    width: 100%;
  }

  .event-reply-item {
    grid-template-columns: 30px 1fr;
    gap: 8px;
    padding: 9px;
  }

  .event-reply-avatar,
  .event-reply-avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .event-reply-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* =========================================================
   THREADFEED V5 – Event-first live thread
   Fórum érintetlen, live thread Reddit-stílusú event feed.
   ========================================================= */
.live-thread-v5-page {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 58px;
}

.thread-scorebar-v5 {
  position: sticky;
  top: 54px;
  z-index: 20;
  max-width: 760px;
  margin: 0 auto 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, .18);
  background: rgba(15, 23, 42, .96);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 44px rgba(0,0,0,.28);
}

.scorebar-v5-shell { padding: 14px 18px 12px; }
.scorebar-v5-top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(226,232,240,.72);
  font-size: 12px;
  margin-bottom: 9px;
}
.scorebar-v5-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}
.scorebar-v5-main .team-side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 900;
  color: #fff;
}
.scorebar-v5-main .team-side.home { justify-content: flex-end; }
.scorebar-v5-main .team-side.away { justify-content: flex-start; }
.scorebar-v5-main .team-side span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scorebar-v5-main .score-center {
  text-align: center;
  min-width: 110px;
}
.scorebar-v5-main .score {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 1000;
  letter-spacing: .02em;
  line-height: .95;
  color: #fff;
}
.scorebar-v5-main .match-state {
  margin-top: 5px;
  font-size: 12px;
  color: rgba(226,232,240,.72);
  font-weight: 800;
  text-transform: uppercase;
}
.status-pill.live { background: rgba(22, 163, 74, .18); color: #86efac; border-color: rgba(34,197,94,.25); }
.status-pill.finished { background: rgba(148,163,184,.14); color: rgba(226,232,240,.85); }
.goal-strip-v5 {
  margin-top: 11px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  color: rgba(219,234,254,.9);
  font-size: 12px;
}
.goal-strip-v5 span,
.goal-strip-v5.empty {
  border: 1px solid rgba(96,165,250,.18);
  background: rgba(37,99,235,.10);
  border-radius: 999px;
  padding: 5px 8px;
}

.match-assistant-v5 {
  max-width: 760px;
  margin: 0 auto 18px;
}
.assistant-card-v5 {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(230px, .9fr);
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, .18);
  background: rgba(15, 23, 42, .86);
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
}
.assistant-summary-v5,
.supporter-picker-v5 {
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(2, 6, 23, .22);
  border-radius: 15px;
  padding: 13px;
}
.eyebrow {
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 1000;
}
.assistant-summary-v5 h3,
.live-thread-intro-v5 h3 {
  margin: 4px 0 6px;
  font-size: 17px;
  color: #fff;
}
.assistant-summary-v5 p,
.live-thread-intro-v5 p {
  color: rgba(226,232,240,.82);
  margin: 0;
  line-height: 1.45;
}
.assistant-meta-v5 {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.assistant-meta-v5 span {
  border: 1px solid rgba(96,165,250,.24);
  background: rgba(37,99,235,.13);
  color: rgba(219,234,254,.92);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}
.supporter-picker-v5 {
  display: grid;
  gap: 8px;
}
.supporter-btn {
  border: 1px solid rgba(34,197,94,.35);
  background: rgba(16,185,129,.14);
  color: #fff;
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 1000;
  cursor: pointer;
}
.supporter-btn.active,
.supporter-btn:hover {
  background: rgba(37,99,235,.58);
  border-color: rgba(147,197,253,.8);
}
.supporter-bars-v5 {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}
.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(226,232,240,.88);
}
.bar-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(148,163,184,.18);
  overflow: hidden;
}
.bar-track i {
  display: block;
  height: 100%;
  background: #60a5fa;
  border-radius: inherit;
}

.thread-layout-v5,
.threadfeed-main-v5 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.threadfeed-main-v5 {
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, .18);
}
.live-thread-intro-v5 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(15,23,42,.58);
  margin-bottom: 12px;
}
.related-links-v5 {
  white-space: nowrap;
}
.event-auth-status,
.event-login-link {
  margin: 0 0 12px;
}
.event-feed-v5 {
  display: grid;
  gap: 13px;
}
.threadfeed-demo-tools-v5 {
  margin-bottom: 12px;
  border: 1px dashed rgba(96,165,250,.26);
  background: rgba(37,99,235,.08);
  border-radius: 15px;
  padding: 10px;
}
.threadfeed-demo-tools-v5 summary {
  cursor: pointer;
  font-weight: 1000;
  color: rgba(219,234,254,.95);
}
.threadfeed-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}
.threadfeed-demo-actions button {
  border: 1px solid rgba(96,165,250,.26);
  background: rgba(37,99,235,.18);
  color: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 900;
  cursor: pointer;
}

.event-first-card {
  border: 1px solid rgba(96,165,250,.22);
  background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(15,23,42,.70));
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.event-first-card.pre_match_prediction { border-color: rgba(168,85,247,.34); }
.event-first-card.lineup { border-color: rgba(59,130,246,.34); }
.event-first-card.goal,
.event-first-card.penalty_goal { border-color: rgba(34,197,94,.42); }
.event-first-card.var,
.event-first-card.var_goal,
.event-first-card.var_penalty,
.event-first-card.var_card { border-color: rgba(251,191,36,.42); }
.event-first-card.red_card { border-color: rgba(248,113,113,.42); }
.event-first-card.yellow_card { border-color: rgba(250,204,21,.42); }
.event-first-card.fulltime_verdict,
.event-first-card.motm { border-color: rgba(244,114,182,.35); }
.fotelball-commentary span {
  display: block;
  line-height: 1.45;
  margin-bottom: 4px;
}
.thread-event-kicker {
  color: #60a5fa;
  letter-spacing: .12em;
  font-weight: 1000;
}
.thread-event-card .thread-event-vote-box {
  margin-top: 12px;
}
.thread-event-vote-btn.active {
  background: rgba(37,99,235,.92) !important;
  border-color: rgba(191,219,254,.9) !important;
}
.event-reply-form:not(.hidden) {
  animation: v5ReplyIn .16s ease-out;
}
@keyframes v5ReplyIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .live-thread-v5-page { padding: 50px 9px 18px; }
  .thread-scorebar-v5 { top: 48px; margin-left: -9px; margin-right: -9px; border-radius: 0 0 18px 18px; }
  .scorebar-v5-shell { padding: 12px 10px 10px; }
  .scorebar-v5-main { gap: 8px; }
  .scorebar-v5-main .team-side { gap: 5px; font-size: 12px; }
  .scorebar-v5-main .score-center { min-width: 86px; }
  .scorebar-v5-main .score { font-size: 30px; }
  .assistant-card-v5 { grid-template-columns: 1fr; }
  .live-thread-intro-v5 { flex-direction: column; }
  .thread-event-card { grid-template-columns: 1fr; }
  .thread-event-icon { width: 42px; height: 42px; }
  .thread-event-head { display: grid; gap: 4px; }
  .thread-event-time { white-space: normal; }
}

/* =========================================================
   THREADFEED V6 – Reddit-style nested replies + draft-safe UX
   ========================================================= */
.event-feed-controls-v6 {
  margin: 0 0 12px;
}
.feed-order-card-v6 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(96, 165, 250, .18);
  background: rgba(15, 23, 42, .56);
  border-radius: 15px;
  padding: 10px 12px;
}
.feed-order-card-v6 strong {
  display: block;
  color: #fff;
  font-size: 14px;
}
.feed-order-card-v6 span {
  display: block;
  color: rgba(226, 232, 240, .62);
  font-size: 12px;
  margin-top: 2px;
}
.feed-order-buttons-v6 {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}
.feed-order-buttons-v6 button {
  border: 1px solid rgba(96, 165, 250, .22);
  background: rgba(15, 23, 42, .78);
  color: rgba(219, 234, 254, .9);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 900;
  cursor: pointer;
}
.feed-order-buttons-v6 button.active,
.feed-order-buttons-v6 button:hover {
  background: rgba(37, 99, 235, .62);
  border-color: rgba(147, 197, 253, .65);
  color: #fff;
}

.reddit-tree {
  display: grid;
  gap: 8px;
}
.event-reply-node {
  position: relative;
}
.event-reply-node.depth-1,
.event-reply-node.depth-2,
.event-reply-node.depth-3,
.event-reply-node.depth-4,
.event-reply-node.depth-5,
.event-reply-node.depth-6 {
  margin-left: 28px;
}
.event-reply-children {
  position: relative;
  margin-top: 8px;
  display: grid;
  gap: 8px;
}
.event-reply-children::before {
  content: "";
  position: absolute;
  left: -15px;
  top: -2px;
  bottom: 10px;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(96, 165, 250, .42), rgba(96, 165, 250, .08));
}
.reddit-reply-item {
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.reddit-reply-item:hover {
  border-color: rgba(96, 165, 250, .30);
  background: rgba(15, 23, 42, .48);
}
.event-reply-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.event-comment-reply-btn,
.event-reply-reaction-btn {
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(15, 23, 42, .68);
  color: rgba(226, 232, 240, .76);
  border-radius: 999px;
  padding: 5px 8px;
  font-weight: 850;
  font-size: 12px;
  cursor: pointer;
}
.event-comment-reply-btn:hover,
.event-reply-reaction-btn:hover,
.event-reply-reaction-btn.active {
  color: #fff;
  border-color: rgba(147, 197, 253, .56);
  background: rgba(37, 99, 235, .35);
}
.event-reply-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.event-reply-reaction-summary {
  color: rgba(226, 232, 240, .46);
  font-size: 12px;
}
.event-reply-form-hint {
  color: rgba(226, 232, 240, .54);
  font-size: 12px;
  line-height: 1.35;
}
.event-reply-input {
  min-height: 108px;
  line-height: 1.45;
}
.event-reply-input::placeholder {
  color: rgba(226, 232, 240, .42);
}
.event-reply-node .event-reply-form {
  margin-top: 9px;
  margin-left: 0;
  border-color: rgba(96, 165, 250, .18);
  background: rgba(2, 6, 23, .40);
}

@media (max-width: 700px) {
  .feed-order-card-v6 {
    align-items: stretch;
    flex-direction: column;
  }
  .feed-order-buttons-v6 {
    justify-content: flex-start;
  }
  .event-reply-node.depth-1,
  .event-reply-node.depth-2,
  .event-reply-node.depth-3,
  .event-reply-node.depth-4,
  .event-reply-node.depth-5,
  .event-reply-node.depth-6 {
    margin-left: 14px;
  }
  .event-reply-children::before {
    left: -8px;
  }
  .event-reply-reactions {
    width: 100%;
  }
}

/* Threadfeed v7: Reddit action bar refinements */
.event-reply-actions-row {
  position: relative;
}
.event-reaction-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.event-comment-react-btn {
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(15, 23, 42, .68);
  color: rgba(226, 232, 240, .76);
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 850;
  font-size: 12px;
  cursor: pointer;
}
.event-comment-react-btn:hover,
.event-comment-react-btn.active {
  color: #fff;
  border-color: rgba(147, 197, 253, .56);
  background: rgba(37, 99, 235, .35);
}
.event-reaction-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 40;
  display: flex;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(96, 165, 250, .32);
  border-radius: 999px;
  background: rgba(2, 6, 23, .96);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .38);
  backdrop-filter: blur(10px);
}
.event-reaction-popover.hidden,
.event-reply-emoji-row.hidden {
  display: none !important;
}
.event-reaction-option {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 999px;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}
.event-reaction-option:hover,
.event-reaction-option.active {
  transform: translateY(-1px);
  border-color: rgba(147, 197, 253, .62);
  background: rgba(37, 99, 235, .46);
}
.event-reaction-option b {
  font-size: 11px;
  color: rgba(226, 232, 240, .72);
}
.event-reaction-summary-chips {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.event-reaction-summary-chips span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .12);
  background: rgba(15, 23, 42, .48);
  color: rgba(226, 232, 240, .70);
}
.event-reply-emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 7px;
  border: 1px solid rgba(96, 165, 250, .16);
  border-radius: 12px;
  background: rgba(2, 6, 23, .36);
}
.reply-emoji-insert {
  min-width: 32px;
  height: 30px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
}
.reply-emoji-insert:hover {
  border-color: rgba(147, 197, 253, .55);
  background: rgba(37, 99, 235, .30);
}

/* =========================================================
   THREADFEED V8 – Lineup hardening + structured lineup card
   ========================================================= */
.lineup-force-btn-v8 {
  border-color: rgba(34,197,94,.28) !important;
  background: rgba(16,185,129,.14) !important;
}
.lineup-force-btn-v8:hover {
  background: rgba(16,185,129,.25) !important;
}
.lineup-sync-status-v8 {
  display: block;
  margin-top: 5px;
  color: rgba(191,219,254,.76);
  font-size: 11px;
  font-weight: 800;
}
.lineup-event-v8 {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}
.lineup-team-v8 {
  border: 1px solid rgba(96,165,250,.18);
  border-radius: 16px;
  background: rgba(2,6,23,.24);
  padding: 12px;
}
.lineup-team-head-v8 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.lineup-team-head-v8 img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.lineup-team-head-v8 h5 {
  margin: 0;
  color: #fff;
  font-size: 15px;
}
.lineup-team-head-v8 p {
  margin: 2px 0 0;
  color: rgba(226,232,240,.60);
  font-size: 12px;
  font-weight: 800;
}
.lineup-lists-v8 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.lineup-lists-v8 strong {
  display: block;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  margin-bottom: 8px;
}
.lineup-lists-v8 ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.lineup-lists-v8 li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(148,163,184,.10);
  border-radius: 11px;
  padding: 7px 8px;
  background: rgba(15,23,42,.38);
}
.lineup-lists-v8 li b {
  color: #dbeafe;
  font-size: 12px;
}
.lineup-lists-v8 li em {
  color: rgba(226,232,240,.90);
  font-style: normal;
  font-weight: 850;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lineup-lists-v8 li span {
  color: rgba(226,232,240,.56);
  font-size: 11px;
  font-weight: 900;
}
@media (max-width: 760px) {
  .lineup-lists-v8 { grid-template-columns: 1fr; }
  .lineup-lists-v8 li { grid-template-columns: 30px 1fr auto; }
}


/* =========================================================
   THREADFEED V9 – Sima live komment + API eseménykártyák
   ========================================================= */
.general-live-composer-v9 {
  margin: 14px 0 14px;
  border: 1px solid rgba(96, 165, 250, .20);
  background: rgba(15, 23, 42, .74);
  border-radius: 18px;
  padding: 13px;
  display: grid;
  gap: 10px;
}
.general-live-composer-v9.hidden { display: none !important; }
.general-live-composer-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.general-live-composer-head h4 { margin: 4px 0 0; color: #fff; font-size: 16px; }
.general-live-composer-head span { color: rgba(226,232,240,.58); font-size: 12px; white-space: nowrap; }
#general-comment-input {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 14px;
  background: rgba(2, 6, 23, .52);
  color: #fff;
  padding: 12px;
  outline: none;
  line-height: 1.45;
}
#general-comment-input:focus {
  border-color: rgba(96, 165, 250, .70);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .20);
}
.general-comment-emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.general-live-composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.general-live-comment-card-v9 {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(2, 6, 23, .38);
  border-radius: 18px;
  padding: 13px;
}
.general-live-comment-avatar-v9 img,
.general-live-comment-avatar-v9 span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(37, 99, 235, .84), rgba(14, 165, 233, .54));
  color: #fff;
  font-weight: 1000;
  border: 1px solid rgba(255,255,255,.14);
}
.general-live-comment-main-v9 { min-width: 0; }
.general-live-comment-meta-v9 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: rgba(226, 232, 240, .58);
  font-size: 12px;
}
.general-live-comment-meta-v9 strong { color: #fff; font-size: 14px; }
.general-live-comment-meta-v9 time { margin-left: auto; }
.general-live-comment-body-v9 {
  color: rgba(248, 250, 252, .92);
  line-height: 1.48;
  word-break: break-word;
}
.general-comment-actions-v9 {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.general-comment-actions-v9 .event-reaction-popover {
  bottom: 120%;
  left: 0;
  right: auto;
}
.event-feed-v5 .general-live-comment-card-v9 + .thread-event-card,
.event-feed-v5 .thread-event-card + .general-live-comment-card-v9,
.event-feed-v5 .general-live-comment-card-v9 + .general-live-comment-card-v9 {
  margin-top: 12px;
}

/* v10 stats + nested general live replies */
.stats-event-v10 {
  margin: 12px 0 14px;
  border: 1px solid rgba(87, 132, 255, 0.32);
  background: rgba(8, 19, 42, 0.72);
  border-radius: 14px;
  overflow: hidden;
}
.stats-teams-v10 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
.stats-teams-v10 > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(8, 19, 42, 0.95);
}
.stats-teams-v10 img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.stats-table-v10 {
  padding: 8px 12px 12px;
}
.stats-row-v10 {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-row-v10:last-child { border-bottom: 0; }
.stats-row-v10 span:first-child { text-align: left; font-weight: 800; }
.stats-row-v10 span:last-child { text-align: right; font-weight: 800; }
.stats-row-v10 b {
  text-align: center;
  color: rgba(226,235,255,0.82);
  font-size: 12px;
}
.general-comment-replies-v10 {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.general-replies-tree-v10 {
  margin-top: 8px;
}
.general-reddit-reply-v10 {
  background: rgba(12, 24, 48, 0.66);
}
.general-comment-actions-v9 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.general-live-comment-card-v9 .event-comment-reply-btn,
.general-live-comment-card-v9 .event-comment-react-btn {
  font-size: 12px;
}


/* ===== Fotelball v19 Match Story UI ===== */
.match-story-ui-v19 {
  margin: 14px 0 18px;
}

.match-story-loading-v19,
.match-story-shell-v19 {
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(16,26,47,.92), rgba(10,18,34,.92));
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
}

.match-story-loading-v19 {
  padding: 18px;
  color: var(--muted);
}

.match-story-shell-v19 {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.match-story-head-v19 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.match-story-head-v19 h3 {
  margin: 2px 0 0;
  font-size: 1.14rem;
}

.match-story-watch-v19 {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  min-width: 245px;
}

.match-story-watch-v19 > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,255,255,.07);
  font-size: 18px;
}

.match-story-watch-v19 strong {
  display: block;
  font-size: .94rem;
}

.match-story-watch-v19 small {
  display: block;
  margin-top: 2px;
  color: rgba(235,241,255,.68);
}

.match-story-watch-v19.hot {
  background: rgba(255,91,91,.12);
  border-color: rgba(255,91,91,.28);
}

.match-story-watch-v19.warm {
  background: rgba(255,183,77,.12);
  border-color: rgba(255,183,77,.26);
}

.match-story-watch-v19.cool {
  background: rgba(93,156,255,.10);
  border-color: rgba(93,156,255,.20);
}

.match-story-timeline-v19 {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 5px 2px 8px;
  scrollbar-width: thin;
}

.match-story-node-v19 {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 34px auto;
  grid-template-rows: auto auto;
  column-gap: 9px;
  row-gap: 1px;
  align-items: center;
  min-width: 128px;
  text-align: left;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 16px;
  padding: 10px 11px;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.match-story-node-v19:hover {
  transform: translateY(-1px);
  border-color: rgba(141,179,255,.42);
  background: rgba(141,179,255,.10);
}

.story-dot-v19 {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.07);
  font-size: 16px;
}

.story-minute-v19 {
  font-weight: 900;
  font-size: .9rem;
  color: #fff;
}

.story-label-v19 {
  color: rgba(235,241,255,.66);
  font-size: .78rem;
}

.match-story-node-v19.goal .story-dot-v19,
.match-story-node-v19.penalty_goal .story-dot-v19 {
  background: rgba(19,185,129,.18);
}

.match-story-node-v19.var .story-dot-v19 {
  background: rgba(255,183,77,.18);
}

.match-story-node-v19.red_card .story-dot-v19 {
  background: rgba(255,78,78,.20);
}

.match-story-node-v19.lineup .story-dot-v19 {
  background: rgba(141,179,255,.16);
}

.match-story-empty-v19 {
  padding: 12px 14px;
  color: var(--muted);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px dashed rgba(255,255,255,.10);
}

.match-state-card-v19 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  align-items: stretch;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}

.match-state-main-v19 p {
  margin: 5px 0 0;
  color: rgba(235,241,255,.80);
  line-height: 1.55;
}

.match-state-stats-v19 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
}

.match-state-stat-v19 {
  padding: 10px 12px;
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.055);
}

.match-state-stat-v19 span {
  display: block;
  color: rgba(235,241,255,.58);
  font-size: .78rem;
}

.match-state-stat-v19 strong {
  display: block;
  margin-top: 3px;
  font-size: .98rem;
}

.match-state-foot-v19 {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(235,241,255,.62);
  font-size: .82rem;
}

.match-state-foot-v19 span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.055);
}

.match-story-jump-highlight-v19 {
  animation: storyPulseV19 1.6s ease;
}

@keyframes storyPulseV19 {
  0% { box-shadow: 0 0 0 0 rgba(141,179,255,.55); }
  45% { box-shadow: 0 0 0 8px rgba(141,179,255,.16); }
  100% { box-shadow: 0 0 0 0 rgba(141,179,255,0); }
}

/* v19: the event cards carry the visual identity, not a fake pitch dashboard */
.thread-event-card.goal,
.thread-event-card.penalty_goal {
  border-color: rgba(19,185,129,.26);
  background: linear-gradient(180deg, rgba(19,185,129,.10), rgba(13,21,40,.94));
}

.thread-event-card.var {
  border-color: rgba(255,183,77,.26);
  background: linear-gradient(180deg, rgba(255,183,77,.10), rgba(13,21,40,.94));
}

.thread-event-card.red_card {
  border-color: rgba(255,78,78,.30);
  background: linear-gradient(180deg, rgba(255,78,78,.12), rgba(13,21,40,.94));
}

.thread-event-card.lineup {
  border-color: rgba(141,179,255,.24);
}

.thread-event-card.stats_snapshot,
.thread-event-card.halftime {
  border-color: rgba(93,156,255,.22);
  background: linear-gradient(180deg, rgba(93,156,255,.08), rgba(13,21,40,.94));
}

@media (max-width: 760px) {
  .match-state-card-v19 {
    grid-template-columns: 1fr;
  }
  .match-story-watch-v19 {
    width: 100%;
  }
}



/* ===== Fotelball v22 Community Core Cleanup ===== */

/* v22: hide any leftover game surfaces defensively */
#fotelproba-live,
.fotelproba-live-v20 {
  display: none !important;
}

/* Cleaner community match story */
.match-story-ui-v19 { margin: 12px 0 18px; }
.match-story-shell-v19 {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13,22,39,.96), rgba(9,16,29,.96));
  border: 1px solid rgba(255,255,255,.075);
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
}
.match-story-head-v19 h3 { font-size: 1.05rem; }
.match-story-watch-v19 { min-width: 220px; border-radius: 16px; }
.match-story-node-v19 {
  min-width: 118px;
  border-radius: 15px;
  background: rgba(255,255,255,.035);
}
.story-dot-v19 { border-radius: 12px; }
.match-state-card-v19 {
  border-radius: 16px;
  background: rgba(255,255,255,.028);
}

/* Event cards: cleaner Reddit-like match thread cards */
.thread-event-card,
.event-first-card {
  border-radius: 20px !important;
  border: 1px solid rgba(255,255,255,.085) !important;
  background: linear-gradient(180deg, rgba(17,25,42,.96), rgba(11,18,31,.96)) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.thread-event-card .thread-event-icon,
.event-first-card .thread-event-icon {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

/* Subtle event-specific accents */
.thread-event-card.goal,
.thread-event-card.penalty_goal,
.event-first-card.goal,
.event-first-card.penalty_goal {
  border-color: rgba(34,197,94,.28) !important;
  background: linear-gradient(180deg, rgba(34,197,94,.095), rgba(11,18,31,.96)) !important;
}
.thread-event-card.var,
.event-first-card.var {
  border-color: rgba(245,158,11,.30) !important;
  background: linear-gradient(180deg, rgba(245,158,11,.095), rgba(11,18,31,.96)) !important;
}
.thread-event-card.red_card,
.event-first-card.red_card {
  border-color: rgba(239,68,68,.32) !important;
  background: linear-gradient(180deg, rgba(239,68,68,.10), rgba(11,18,31,.96)) !important;
}
.thread-event-card.yellow_card,
.event-first-card.yellow_card { border-color: rgba(250,204,21,.24) !important; }
.thread-event-card.substitution,
.event-first-card.substitution { border-color: rgba(56,189,248,.22) !important; }
.thread-event-card.lineup,
.event-first-card.lineup { border-color: rgba(129,140,248,.28) !important; }
.thread-event-card.stats_snapshot,
.thread-event-card.halftime,
.event-first-card.stats_snapshot,
.event-first-card.halftime {
  border-color: rgba(96,165,250,.24) !important;
}

/* Community poll buttons, less game/betting feel */
.event-vote-options,
.thread-event-vote-options { gap: 8px !important; }
.event-vote-options button,
.thread-event-vote-options button,
[data-event-vote] {
  border-radius: 999px !important;
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: rgba(240,246,255,.92) !important;
}
.event-vote-options button:hover,
.thread-event-vote-options button:hover,
[data-event-vote]:hover {
  border-color: rgba(141,179,255,.38) !important;
  background: rgba(141,179,255,.10) !important;
}

/* Lineup card redesign */
.lineup-event-v8 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.lineup-team-v8 {
  border-radius: 18px !important;
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  padding: 14px !important;
}
.lineup-team-head-v8 {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.lineup-team-head-v8 img {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  padding: 4px;
}
.lineup-team-head-v8 h5 {
  margin: 0 0 3px !important;
  font-size: 1rem !important;
}
.lineup-team-head-v8 p {
  margin: 0 !important;
  color: rgba(235,241,255,.62) !important;
  font-size: .86rem !important;
}
.lineup-lists-v8 { gap: 12px !important; }
.lineup-lists-v8 strong {
  display: block;
  margin-bottom: 7px;
  color: rgba(235,241,255,.78);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lineup-lists-v8 ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lineup-lists-v8 li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.045);
}
.lineup-lists-v8 li em {
  font-style: normal;
  font-weight: 650;
}
.lineup-lists-v8 li span {
  margin-left: auto;
  color: rgba(235,241,255,.54);
  font-size: .78rem;
}

/* Stats snapshot redesign */
.stats-event-v10 {
  margin-top: 12px;
  border-radius: 18px !important;
  background: rgba(255,255,255,.032) !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  padding: 13px !important;
}
.stats-teams-v10 {
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.stats-teams-v10 img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  padding: 3px;
}
.stats-table-v10 {
  display: grid;
  gap: 6px;
}
.stats-row-v10 {
  border-radius: 12px;
  background: rgba(255,255,255,.032);
  border: 1px solid rgba(255,255,255,.045);
  padding: 8px 10px !important;
}
.stats-row-v10 b {
  color: rgba(235,241,255,.70);
  font-size: .82rem;
}
.stats-row-v10 span {
  font-weight: 800;
  color: #fff;
}

/* General live comments: slightly more Reddit-like */
.general-live-comment,
.thread-general-comment { border-radius: 18px !important; }
.comment-reply-tree,
.event-reply-list { border-left-color: rgba(141,179,255,.18) !important; }

@media (max-width: 860px) {
  .lineup-event-v8 { grid-template-columns: 1fr; }
  .match-state-card-v19 { grid-template-columns: 1fr; }
}



/* ===== Fotelball v25 Lineup Cleanup ===== */

/* Lineupnál csak a grafikus blokk a lényeg: stabil, olvasható, egymásba csúszás nélkül. */
.lineup-event-v25 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
  width: 100%;
  max-width: 100%;
}

.lineup-team-v25 {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 20px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.085);
  padding: 14px;
  overflow: hidden;
}

.lineup-team-head-v25 {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.lineup-team-head-v25 img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(255,255,255,.06);
  padding: 5px;
  object-fit: contain;
}

.lineup-team-head-v25 h5 {
  margin: 0 0 4px;
  font-size: 1.06rem;
  line-height: 1.15;
}

.lineup-team-head-v25 p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: rgba(235,241,255,.68);
  font-size: .86rem;
}

.lineup-team-head-v25 p span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.055);
}

.lineup-lists-v25 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr);
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.lineup-list-v25 {
  min-width: 0;
}

.lineup-list-v25 strong {
  display: block;
  margin-bottom: 8px;
  color: rgba(235,241,255,.78);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.lineup-list-v25 ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.lineup-list-v25 li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.045);
}

.lineup-list-v25 li b {
  min-width: 28px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(96,165,250,.14);
  color: #d9e8ff;
  font-size: .78rem;
}

.lineup-list-v25 li em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  font-weight: 800;
}

.lineup-list-v25 li span {
  justify-self: end;
  min-width: 24px;
  text-align: center;
  color: rgba(235,241,255,.58);
  font-size: .74rem;
  font-weight: 800;
}

/* Régi lineup osztályok defensive override: ha maradna régi markup cache-ből, ne csússzon szét. */
.lineup-event-v8 {
  grid-template-columns: 1fr !important;
}
.lineup-lists-v8 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  min-width: 0 !important;
}
.lineup-lists-v8 > div,
.lineup-team-v8 {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
.lineup-lists-v8 li {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  min-width: 0 !important;
}
.lineup-lists-v8 li em {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  .lineup-lists-v25,
  .lineup-lists-v8 {
    grid-template-columns: 1fr !important;
  }
}


/* ===== Fotelball v26 Community Polish ===== */

/* AI összegző: amíg nincs érdemi leszűrhető adat, ne mutasson generikus szöveget. */
.assistant-card-no-summary-v26 {
  grid-template-columns: minmax(230px, .9fr);
  justify-content: end;
}
.assistant-summary-empty-v26 {
  display: none !important;
}

/* Live thread intro: fórumajánló nélkül kompaktabb. */
.live-thread-intro-v5 {
  align-items: flex-start;
}
.live-thread-intro-v5 .related-links,
#related-forum-links {
  display: none !important;
}

/* Fejlesztői demo panel production nézetben nincs. */
#threadfeed-demo-events,
.threadfeed-demo-tools {
  display: none !important;
}

/* Mérföldkövek: kompakt ugrópont-sáv, ne lógjon ki a konténerből. */
.match-story-ui-v19 {
  max-width: 760px;
  margin: 12px auto 18px;
}
.milestones-shell-v26 {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13,22,39,.96), rgba(9,16,29,.96));
  border: 1px solid rgba(255,255,255,.075);
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
  padding: 13px 14px;
  overflow: hidden;
}
.milestones-head-v26 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.milestones-head-v26 h3 {
  margin: 3px 0 0;
  font-size: 1rem;
  line-height: 1.2;
}
.milestones-head-v26 > span {
  flex: 0 0 auto;
  border: 1px solid rgba(96,165,250,.18);
  background: rgba(37,99,235,.12);
  color: rgba(219,234,254,.88);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.milestones-list-v26 {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.milestone-pill-v26 {
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  color: rgba(245,249,255,.94);
  border-radius: 14px;
  padding: 8px 10px;
  cursor: pointer;
}
.milestone-pill-v26:hover {
  border-color: rgba(141,179,255,.35);
  background: rgba(141,179,255,.10);
}
.milestone-pill-v26 span {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
}
.milestone-pill-v26 b {
  color: #fff;
  font-size: .9rem;
}
.milestone-pill-v26 em {
  font-style: normal;
  color: rgba(235,241,255,.72);
  font-size: .78rem;
  white-space: nowrap;
}
.milestones-empty-v26 {
  color: rgba(235,241,255,.62);
  font-size: .9rem;
  padding: 4px 0;
}

/* Régi nagy Meccsfonal részek biztosan ne tartsanak helyet. */
.match-state-card-v19,
.match-story-watch-v19,
.match-story-timeline-v19 {
  max-width: 100%;
}

/* Mobil sticky scorebar: a két csapat + állás is maradjon látható, ne csak a gólszerző strip. */
@media (max-width: 760px) {
  .thread-scorebar-v5 {
    top: 0;
    z-index: 60;
    margin-left: -9px;
    margin-right: -9px;
    border-radius: 0 0 16px 16px;
  }
  .scorebar-v5-shell {
    padding: 8px 9px 7px;
  }
  .scorebar-v5-top {
    margin-bottom: 5px;
    font-size: 10px;
  }
  .scorebar-v5-main {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
  }
  .scorebar-v5-main .team-side {
    min-width: 0;
    gap: 4px;
    font-size: 11px;
  }
  .scorebar-v5-main .team-side img {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 auto;
  }
  .scorebar-v5-main .team-side span {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .scorebar-v5-main .score-center {
    min-width: 74px;
  }
  .scorebar-v5-main .score {
    font-size: 25px;
    line-height: .95;
  }
  .scorebar-v5-main .match-state {
    margin-top: 2px;
    font-size: 10px;
  }
  .goal-scorer-strip,
  .goal-strip-v5 {
    margin-top: 6px;
    font-size: 10px;
    gap: 4px;
  }
  .goal-chip,
  .goal-strip-v5 span,
  .goal-strip-v5.empty {
    padding: 3px 6px;
    font-size: 10px;
  }
  .assistant-card-no-summary-v26 {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .match-story-ui-v19 {
    margin: 10px auto 14px;
  }
  .milestones-head-v26 {
    align-items: flex-start;
  }
  .milestones-head-v26 > span {
    display: none;
  }
}


/* ===== Fotelball v27 Detail Polish ===== */

/* Pinned scorebar: nincs gólszerző strip, csak csapatok + állás. */
.thread-scorebar-v5 .goal-strip-v5,
.thread-scorebar-v5 .goal-scorer-strip {
  display: none !important;
}

/* AI összegző: gólszerzők tisztán, csapatonként. */
.assistant-goals-v27 {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.075);
}
.assistant-goals-title-v27 {
  color: rgba(219,234,254,.72);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.assistant-goals-grid-v27 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.assistant-goal-team-v27 {
  min-width: 0;
  border-radius: 15px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  padding: 10px;
}
.assistant-goal-team-v27.home {
  border-left: 3px solid rgba(96,165,250,.75);
}
.assistant-goal-team-v27.away {
  border-left: 3px solid rgba(34,197,94,.75);
}
.assistant-goal-team-head-v27 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.assistant-goal-team-head-v27 img {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255,255,255,.06);
  padding: 2px;
}
.assistant-goal-team-head-v27 strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
}
.assistant-goal-list-v27 {
  display: grid;
  gap: 6px;
}
.assistant-goal-row-v27 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}
.assistant-goal-row-v27 b {
  color: #fff;
  background: rgba(96,165,250,.16);
  border: 1px solid rgba(96,165,250,.20);
  padding: 3px 6px;
  border-radius: 999px;
  font-size: .76rem;
}
.assistant-goal-row-v27 span {
  min-width: 0;
  color: rgba(245,249,255,.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}
.assistant-goal-empty-v27 {
  color: rgba(235,241,255,.42);
}

/* Gólkártya: a Fotelball-kommentár legyen a fő cím, nagy fehér kiemeléssel. */
.goal-commentary-highlight-v27 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.34;
  font-weight: 950;
  letter-spacing: -.01em;
}
.goal-commentary-rest-v27 {
  color: rgba(235,241,255,.70) !important;
  font-size: .9rem !important;
}
.thread-event-card.goal .thread-event-head h4,
.thread-event-card.penalty_goal .thread-event-head h4,
.event-first-card.goal .thread-event-head h4,
.event-first-card.penalty_goal .thread-event-head h4 {
  font-size: .96rem;
  color: rgba(219,234,254,.72);
}

/* Stat kártya: csak grafikus rész, xG támogatással. */
.stats-event-v10 {
  margin-top: 0 !important;
}
.stats-row-v10:first-child {
  border-color: rgba(34,197,94,.18);
  background: rgba(34,197,94,.055);
}
.stats-row-v10:first-child b {
  color: #bbf7d0;
}

/* Mobilon is tiszta gólszerző blokk. */
@media (max-width: 760px) {
  .assistant-goals-grid-v27 {
    grid-template-columns: 1fr;
  }
  .assistant-goal-team-v27 {
    padding: 9px;
  }
  .goal-commentary-highlight-v27 {
    font-size: 1.04rem;
  }
}


/* ===== Fotelball v28 Event / HT Polish ===== */

/* Minden fontos API-event első kommentársora legyen erős, fehér, jól olvasható. */
.event-commentary-highlight-v28 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.34;
  font-weight: 950;
  letter-spacing: -.01em;
}

.event-commentary-rest-v28 {
  color: rgba(235,241,255,.70) !important;
  font-size: .9rem !important;
}

/* v27 goal highlight kompatibilitás */
.goal-commentary-highlight-v27 {
  color: #fff;
  font-weight: 950;
}

/* Félidei stat: a grafikus stat blokk kapjon kicsit "összefoglaló" érzetet. */
.thread-event-card.halftime_stats,
.event-first-card.halftime_stats {
  border-color: rgba(96,165,250,.30) !important;
  background: linear-gradient(180deg, rgba(96,165,250,.095), rgba(11,18,31,.96)) !important;
}

.thread-event-card.halftime_stats .thread-event-head h4,
.event-first-card.halftime_stats .thread-event-head h4 {
  color: #fff;
}

/* Ne legyen böngésző scroll-restoration miatti kellemetlen visszaugrás anchoroknál. */
html {
  scroll-behavior: auto;
}

@media (max-width: 760px) {
  .event-commentary-highlight-v28 {
    font-size: 1.04rem;
  }
}


/* ===== Fotelball v29 API / UX Stability ===== */

/* A felesleges live thread leíró blokk nincs a DOM-ban, de ha régi cache-ből maradna, rejtsük. */
.live-thread-intro-v5 {
  display: none !important;
}

/* Kommentelés erősebb kiemelése: legyen egyértelmű, hogy itt lehet beszállni. */
.general-live-composer-v9 {
  position: relative;
  border: 1px solid rgba(96,165,250,.26) !important;
  background:
    radial-gradient(circle at 18px 18px, rgba(96,165,250,.16), transparent 160px),
    linear-gradient(180deg, rgba(15,29,55,.98), rgba(9,16,29,.98)) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.035);
}

.general-live-composer-v9::before {
  content: "Írj a live threadbe";
  position: absolute;
  top: -11px;
  left: 16px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #173a78;
  border: 1px solid rgba(147,197,253,.34);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.general-live-composer-head h4 {
  font-size: 1.12rem !important;
}

.general-live-composer-v9 textarea {
  border-color: rgba(147,197,253,.28) !important;
  background: rgba(6,13,26,.78) !important;
}

/* API szó eltüntetése után a kártya eyebrow legyen letisztultabb. */
.thread-event-kicker {
  letter-spacing: .08em;
}

/* A múltbeli eventekhez tartozó állás/szöveg befagyasztva marad backend oldalon;
   vizuálisan is külön kezeljük az új fontos eseményeket. */
.thread-event-card .event-commentary-highlight-v28 {
  max-width: 96%;
}

@media (max-width: 760px) {
  .general-live-composer-v9::before {
    left: 12px;
  }
}


/* ===== Fotelball v30 Halftime Snapshot Fix ===== */

.milestones-login-cta-v30 {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(96,165,250,.22);
  background:
    radial-gradient(circle at 20px 20px, rgba(96,165,250,.16), transparent 160px),
    rgba(255,255,255,.035);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.milestones-login-cta-v30 strong {
  display: block;
  color: #fff;
  font-size: .98rem;
  margin-bottom: 3px;
}

.milestones-login-cta-v30 span {
  display: block;
  color: rgba(235,241,255,.70);
  font-size: .88rem;
}

.milestones-login-actions-v30 {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.milestones-login-actions-v30 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  border: 1px solid rgba(147,197,253,.26);
  background: rgba(37,99,235,.26);
}

.milestones-login-actions-v30 a:last-child {
  background: rgba(16,185,129,.16);
  border-color: rgba(16,185,129,.28);
}

@media (max-width: 760px) {
  .milestones-login-cta-v30 {
    align-items: stretch;
    flex-direction: column;
  }
  .milestones-login-actions-v30 {
    width: 100%;
  }
  .milestones-login-actions-v30 a {
    flex: 1;
  }
}

/* ===== Fotelball v47.4 date history nav ===== */
.home-date-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 18px;
  z-index: 5;
}

.date-nav-arrow,
.date-picker-current,
.date-picker-item {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.86);
  color: #e5e7eb;
  border-radius: 12px;
  min-height: 38px;
  font-weight: 800;
  cursor: pointer;
}

.date-nav-arrow {
  width: 40px;
  font-size: 22px;
}

.date-picker-wrap {
  position: relative;
}

.date-picker-current {
  min-width: 140px;
  padding: 0 14px;
}

.date-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 4px;
  width: 168px;
  max-height: 440px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.date-picker-menu.hidden {
  display: none;
}

.date-picker-item {
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border-color: transparent;
}

.date-picker-item.active {
  background: rgba(20, 83, 45, 0.95);
  border-color: rgba(34, 197, 94, 0.35);
  color: #ffffff;
}


/* ===== Fotelball v47.5 Thread UX + Summary Polish ===== */
.assistant-match-summary-v47 .eyebrow { display: none; }
.assistant-match-summary-v47 h3 { margin-top: 0; }
.assistant-goals-title-v27 small { color: rgba(148,163,184,.72); font-size: .72rem; font-weight: 800; text-transform: none; letter-spacing: 0; }
.assistant-mini-summary-v47 { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.075); }
.assistant-mini-summary-v47 ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.assistant-mini-summary-v47 li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; color: rgba(226,232,240,.9); font-size: .9rem; }
.assistant-mini-summary-v47 li b { border-radius: 999px; background: rgba(96,165,250,.18); border: 1px solid rgba(96,165,250,.25); padding: 3px 7px; color: #dbeafe; font-size: .78rem; }
.assistant-mini-summary-v47.red-cards li b { background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.28); color: #fee2e2; }
.home-red-card-badge { display: inline-flex; align-items: center; gap: 2px; margin-left: 7px; padding: 2px 6px; border-radius: 999px; border: 1px solid rgba(239,68,68,.35); background: rgba(127,29,29,.35); color: #fff; font-size: .72em; line-height: 1; vertical-align: middle; }
.event-first-card.pre_match_prediction .event-commentary-highlight-v28 { margin-top: 6px; color: #fff; font-weight: 1000; }
.event-first-card.pre_match_prediction .event-commentary-rest-v28 { display: none; }
@media (max-width: 760px) {
  .assistant-mini-summary-v47 li { grid-template-columns: 1fr; gap: 4px; }
}

/* ===== Fotelball v47.6 History Freeze + Summary Layout Fix ===== */
.match-assistant-v5 {
  max-width: 760px;
}
.assistant-card-v5 {
  grid-template-columns: 1fr !important;
}
.assistant-match-summary-v47 {
  width: 100%;
}
.assistant-goals-grid-v27,
.assistant-two-col-v476 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.assistant-goal-row-v27 span,
.assistant-mini-summary-v47 li span,
.assistant-event-team-v476 li span {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.25;
}
.assistant-event-team-v476 {
  min-width: 0;
  border-radius: 15px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  padding: 10px;
}
.assistant-event-team-v476.home { border-left: 3px solid rgba(96,165,250,.75); }
.assistant-event-team-v476.away { border-left: 3px solid rgba(34,197,94,.75); }
.assistant-event-team-v476 ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.assistant-event-team-v476 li {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: start;
  gap: 8px;
  color: rgba(226,232,240,.92);
  font-size: .9rem;
}
.assistant-event-team-v476 li.empty {
  display: block;
  color: rgba(235,241,255,.42);
}
.assistant-event-team-v476 li b {
  border-radius: 999px;
  background: rgba(96,165,250,.18);
  border: 1px solid rgba(96,165,250,.25);
  padding: 3px 7px;
  color: #dbeafe;
  font-size: .78rem;
}
.assistant-event-team-v476 li.red b {
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.28);
  color: #fee2e2;
}
.assistant-event-team-v476 li.yellow b {
  background: rgba(245,158,11,.16);
  border-color: rgba(245,158,11,.28);
  color: #fef3c7;
}
.supporter-picker-row-v476 {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(120px, 1fr));
  align-items: center;
  gap: 10px;
}
.supporter-picker-row-v476 .eyebrow {
  align-self: center;
}
.supporter-picker-row-v476 .supporter-bars-v5 {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 760px) {
  .assistant-goals-grid-v27,
  .assistant-two-col-v476,
  .supporter-picker-row-v476,
  .supporter-picker-row-v476 .supporter-bars-v5 {
    grid-template-columns: 1fr;
  }
  .assistant-event-team-v476 li {
    grid-template-columns: auto minmax(0,1fr);
  }
}

/* ===== Fotelball v47.7 Strict History Freeze + Lineup UX ===== */
.assistant-card-v477 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}
.assistant-match-summary-v477 {
  padding: 14px !important;
}
.assistant-summary-title-row-v477 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.assistant-summary-title-row-v477 h3 {
  margin: 0 !important;
}
.lineup-jump-btn-v477,
.lineup-top-jump-wrap-v477 button {
  border: 1px solid rgba(147,197,253,.30);
  background: rgba(37,99,235,.22);
  color: #eaf2ff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.lineup-jump-btn-v477:hover,
.lineup-top-jump-wrap-v477 button:hover {
  border-color: rgba(191,219,254,.65);
  background: rgba(37,99,235,.36);
}
.lineup-top-jump-wrap-v477 {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.supporter-picker-full-v477 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
  padding: 14px !important;
}
.supporter-buttons-row-v477 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.supporter-bars-row-v477 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 4px;
}
.summary-sub-row-v477 {
  grid-template-columns: auto minmax(0, 1.15fr) minmax(0, .85fr) !important;
  align-items: center !important;
}
.summary-sub-main-v477,
.summary-sub-out-v477 {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
.summary-sub-main-v477 strong {
  color: #fff;
  font-weight: 950;
}
.summary-sub-main-v477 i,
.summary-sub-out-v477 i {
  font-style: normal;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: .75rem;
}
.summary-sub-main-v477 i {
  background: rgba(34,197,94,.18);
  color: #bbf7d0;
  border: 1px solid rgba(34,197,94,.28);
}
.summary-sub-out-v477 {
  color: rgba(203,213,225,.74);
  font-size: .84rem;
}
.summary-sub-out-v477 i {
  background: rgba(148,163,184,.13);
  color: #cbd5e1;
  border: 1px solid rgba(148,163,184,.20);
}
.lineup-jump-shell-v477 .milestones-head-v26 .eyebrow {
  color: #60a5fa;
}
.lineup-jump-list-v477 {
  overflow: visible !important;
}
.lineup-jump-shell-v477 .milestone-pill-v26 {
  min-width: 220px;
}
@media (max-width: 760px) {
  .assistant-summary-title-row-v477,
  .supporter-buttons-row-v477,
  .supporter-bars-row-v477,
  .summary-sub-row-v477 {
    grid-template-columns: 1fr !important;
  }
  .assistant-summary-title-row-v477 {
    display: grid;
  }
  .lineup-jump-btn-v477 {
    width: 100%;
  }
}

/* ===== Fotelball v47.8 Strict No-API History + Inline Lineup/Stats ===== */
.summary-toggle-row-v478 {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.lineup-jump-btn-v477.active {
  border-color: rgba(52,211,153,.55);
  background: rgba(16,185,129,.22);
}
.summary-inline-panel-v478 {
  margin-top: 14px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(96,165,250,.16);
  background: rgba(3,7,18,.30);
}
.summary-inline-panel-v478.hidden {
  display: none !important;
}
.summary-inline-panel-v478 .lineup-event-v25,
.summary-inline-panel-v478 .stats-event-v10 {
  margin: 0;
}
.summary-inline-panel-v478 .lineup-team-v25 {
  background: rgba(15,23,42,.42);
}
.summary-top-btn-v478 {
  margin-top: 12px;
  border: 1px solid rgba(147,197,253,.30);
  background: rgba(37,99,235,.18);
  color: #eaf2ff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}
.summary-sub-row-v478 {
  grid-template-columns: auto minmax(0, 1fr) minmax(0, .9fr) !important;
}
.summary-sub-row-v478 .summary-sub-main-v477 {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.18);
}
.summary-sub-row-v478 .summary-sub-out-v477 {
  justify-self: end;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(148,163,184,.08);
  border: 1px solid rgba(148,163,184,.14);
}
.summary-sub-row-v478 .summary-sub-out-v477 strong,
.summary-sub-row-v478 .summary-sub-out-v477 {
  font-weight: 700;
}
@media (max-width: 760px) {
  .summary-toggle-row-v478 {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .summary-sub-row-v478 .summary-sub-out-v477 {
    justify-self: start;
  }
}

/* ===== Fotelball v47.10 MatchPoint Tabs + Performance Polish ===== */
.assistant-match-summary-v4710 {
  overflow: hidden;
}
.summary-tabs-v4710 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.summary-tab-btn-v4710 {
  border: 1px solid rgba(147,197,253,.24);
  background: rgba(15,23,42,.52);
  color: #eaf2ff;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  white-space: nowrap;
}
.summary-tab-btn-v4710:hover {
  border-color: rgba(191,219,254,.55);
  background: rgba(30,64,175,.30);
}
.summary-tab-btn-v4710.active {
  border-color: rgba(52,211,153,.60);
  background: rgba(16,185,129,.24);
  color: #ffffff;
}
.summary-panel-v4710 {
  display: none;
}
.summary-panel-v4710.active {
  display: block;
}
.summary-tabs-body-v4710 .assistant-mini-summary-v47:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.summary-panel-v4710 .empty-state.compact {
  padding: 16px;
  border-radius: 16px;
  background: rgba(15,23,42,.42);
  border: 1px dashed rgba(148,163,184,.22);
}
.date-nav-arrow.disabled,
.date-nav-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}
@media (max-width: 760px) {
  .summary-tabs-v4710 {
    grid-template-columns: 1fr;
  }
  .summary-tab-btn-v4710 {
    width: 100%;
  }
}

/* v48.5 Admin curation */
.admin-page {
  max-width: 1180px;
  margin: 0 auto;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin: 24px 0;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(10, 18, 34, 0.96), rgba(29, 56, 108, 0.88));
  color: #fff;
  box-shadow: 0 18px 45px rgba(3, 9, 24, 0.24);
}

.admin-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.admin-hero .muted {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.admin-warning {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff4d6;
  border: 1px solid #ffd670;
  color: #4d3511;
}

.admin-panel {
  display: grid;
  gap: 16px;
}

.admin-mode-tabs {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 33, 64, 0.08);
  width: fit-content;
  max-width: 100%;
}

.admin-mode-tab {
  border: 1px solid rgba(16, 33, 64, 0.1);
  background: transparent;
  color: #51607f;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.18s ease;
}

.admin-mode-tab:hover {
  color: #14213d;
  border-color: rgba(16, 33, 64, 0.18);
}

.admin-mode-tab.active {
  background: #0f2244;
  color: #fff;
  border-color: #0f2244;
  box-shadow: 0 10px 24px rgba(15, 34, 68, 0.18);
}

.admin-view-section {
  display: grid;
  gap: 1rem;
}

.admin-date-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 2px 12px;
}

.admin-date-tab {
  min-width: 90px;
  border: 1px solid rgba(16, 33, 64, 0.12);
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  color: #14213d;
}

.admin-date-tab span,
.admin-date-tab small {
  display: block;
}

.admin-date-tab small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.76rem;
}

.admin-date-tab.active {
  background: #0f2244;
  color: #fff;
  border-color: #0f2244;
}

.admin-date-tab.active small {
  color: rgba(255, 255, 255, 0.74);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 33, 64, 0.08);
}

.admin-filter-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  color: #14213d;
}

.admin-summary {
  color: #6b7280;
  font-weight: 700;
}

.admin-match-list {
  display: grid;
  gap: 12px;
}

.admin-match-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(16, 33, 64, 0.09);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.admin-match-card.is-hidden {
  opacity: 0.64;
  background: #f6f7fb;
}

.admin-match-league {
  color: #6b7280;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.admin-match-main h3 {
  margin: 6px 0;
  font-size: 1.08rem;
  color: #14213d;
}

.admin-match-main h3 span {
  display: inline-block;
  margin: 0 8px;
  color: #ff6a00;
}

.admin-match-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 0.86rem;
}

.admin-match-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-visibility-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 900;
  background: #eef2ff;
  color: #334155;
}

.admin-visibility-pill.public {
  background: #dcfce7;
  color: #166534;
}

.admin-visibility-pill.is-hidden-visibility {
  background: #fee2e2;
  color: #991b1b;
}

.admin-action-btn,
.primary-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.primary-btn {
  background: #ff6a00;
  color: #fff;
}

.admin-action-btn.public {
  background: #16a34a;
  color: #fff;
}

.admin-action-btn.danger {
  background: #dc2626;
  color: #fff;
}

.admin-action-btn.auto {
  background: #e5e7eb;
  color: #111827;
}

@media (max-width: 760px) {
  .admin-hero,
  .admin-match-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-match-actions {
    justify-content: flex-start;
  }
}

/* v48.7 Admin league scope curation */
.admin-league-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 33, 64, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.admin-section-head h2 {
  margin: 2px 0 6px;
  color: #14213d;
}

.admin-section-head .muted {
  margin: 0;
  max-width: 760px;
  color: #6b7280;
  line-height: 1.5;
}

.admin-league-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-league-tools input[type="search"] {
  min-width: 220px;
  border: 1px solid rgba(16, 33, 64, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  color: #14213d;
  background: #fff;
}

.admin-league-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-league-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(16, 33, 64, 0.09);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.admin-league-card.is-hidden {
  opacity: 0.64;
  background: #f6f7fb;
}

.admin-league-main h3 {
  margin: 4px 0 8px;
  color: #14213d;
  font-size: 1rem;
}

.admin-league-action-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-league-action-btn.public {
  background: #16a34a;
  color: #fff;
}

.admin-league-action-btn.danger {
  background: #dc2626;
  color: #fff;
}

.admin-league-action-btn.auto {
  background: #e5e7eb;
  color: #111827;
}

@media (max-width: 760px) {
  .admin-section-head {
    display: grid;
  }

  .admin-league-tools {
    justify-content: flex-start;
  }

  .admin-league-tools input[type="search"] {
    width: 100%;
    min-width: 0;
  }
}


/* v48.10 Manual league add */
.admin-manual-league-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .7fr) minmax(140px, .55fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(16, 33, 64, 0.1);
}

.admin-manual-league-form label {
  display: block;
  margin: 0 0 6px;
  font-size: .78rem;
  font-weight: 900;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.admin-manual-league-form input,
.admin-manual-league-form select {
  width: 100%;
  border: 1px solid rgba(16, 33, 64, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  color: #14213d;
  background: #fff;
}

.admin-manual-league-form .primary-btn {
  white-space: nowrap;
}

.admin-manual-league-hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .86rem;
}

.admin-league-card.is-manual {
  border-style: dashed;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

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

/* v48.11 admin loaded league cleanup */
.admin-loaded-leagues-panel {
  margin: 18px 0 20px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.34);
}
.admin-section-head.compact {
  margin-bottom: 12px;
}
.admin-loaded-league-list {
  display: grid;
  gap: 8px;
}
.admin-loaded-league-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.28);
}
.admin-loaded-league-row strong {
  display: block;
  font-size: 14px;
}
.admin-loaded-league-row small {
  display: block;
  margin-top: 3px;
  color: rgba(226, 232, 240, 0.68);
}
.admin-loaded-league-delete,
.admin-league-delete-btn,
.admin-scope-delete-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: #991b1b;
  white-space: nowrap;
}
.admin-loaded-league-delete:hover,
.admin-league-delete-btn:hover,
.admin-scope-delete-btn:hover {
  background: #b91c1c;
}
@media (max-width: 760px) {
  .admin-loaded-league-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* v48.12 total configured Fotelball scope overview */
.admin-total-scope-panel {
  margin: 10px 0 18px;
  padding: 16px;
  border: 1px solid rgba(22, 163, 74, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(248, 250, 252, 0.96));
}
.admin-scope-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.admin-scope-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(16, 185, 129, 0.16);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}
.admin-scope-card.is-hidden {
  opacity: 0.58;
  background: #f8fafc;
}
.admin-scope-action-btn {
  border: 0;
  border-radius: 12px;
  padding: 9px 11px;
  font-weight: 900;
  cursor: pointer;
}
.admin-scope-action-btn.public {
  background: #16a34a;
  color: #fff;
}
.admin-scope-action-btn.danger {
  background: #dc2626;
  color: #fff;
}
.admin-scope-action-btn.auto {
  background: #e5e7eb;
  color: #111827;
}

/* v48.15 Admin forum topic builder */
.admin-forum-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(8, 15, 30, 0.96));
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  color: #e5edff;
}
.admin-forum-panel h2,
.admin-forum-panel h3 {
  color: #fff;
}
.admin-forum-panel .muted {
  color: rgba(226, 232, 240, 0.72);
}
.admin-forum-board-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.admin-forum-board-form label {
  display: block;
  margin: 0 0 6px;
  font-size: .76rem;
  font-weight: 900;
  color: rgba(226, 232, 240, 0.76);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.admin-forum-board-form input,
.admin-forum-board-form select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  color: #e5edff;
  background: rgba(2, 6, 23, 0.55);
}
.admin-forum-board-form input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}
.admin-form-wide {
  grid-column: span 2;
}
.admin-forum-form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-forum-board-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.admin-forum-board-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.20);
}
.admin-forum-board-card.is-hidden {
  opacity: .62;
  border-style: dashed;
}
.admin-forum-board-logo,
.admin-forum-board-logo-img,
.admin-forum-board-logo-emoji {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}
.admin-forum-board-logo-img {
  display: block;
  object-fit: cover;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.admin-forum-board-logo-emoji {
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.26);
}
.admin-forum-board-main h3 {
  margin: 4px 0 6px;
  font-size: 1.05rem;
}
.admin-forum-board-main p {
  margin: 0 0 8px;
  color: rgba(226, 232, 240, 0.72);
}
.admin-forum-board-actions {
  display: flex;
  justify-content: flex-end;
}
.admin-forum-edit-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  color: #0b1020;
  background: #93c5fd;
}
.forum-row-logo-emoji,
.forum-room-logo-emoji {
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.5rem;
}
@media (max-width: 900px) {
  .admin-forum-board-form {
    grid-template-columns: 1fr;
  }
  .admin-form-wide {
    grid-column: auto;
  }
  .admin-forum-board-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .admin-forum-board-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .admin-mode-tabs {
    width: 100%;
    border-radius: 18px;
  }

  .admin-mode-tab {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .navbar {
    align-items: flex-start;
  }

  .site-logo img {
    width: min(220px, 72vw);
  }
}


.admin-important-events-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(20, 184, 166, 0.95));
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.admin-important-events-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}


/* Fotelball cikkek – v48.33 */

.articles-page,
.article-detail-page {
  display: grid;
  gap: 22px;
}

.articles-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border-radius: 26px;
  border: 1px solid rgba(96, 165, 250, .18);
  background:
    radial-gradient(circle at 12% 10%, rgba(47, 94, 255, .28), transparent 34%),
    linear-gradient(135deg, rgba(8,16,31,.95), rgba(12,22,42,.86));
  box-shadow: var(--shadow);
}

.articles-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.article-hero-cta,
.article-card,
.article-category-card {
  color: inherit;
  text-decoration: none;
}

.article-hero-cta {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight: 900;
  white-space: nowrap;
}

.article-category-section,
.article-category-view,
.article-compose-panel,
.article-comments-panel,
.article-empty-card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.article-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.article-category-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 34%),
    linear-gradient(180deg, rgba(8,16,31,.92), rgba(7,13,25,.82));
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.article-category-card:hover,
.article-category-card.active {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, .55);
  box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 0 1px rgba(96, 165, 250, .16) inset;
}

.article-category-logo-wrap {
  width: 108px;
  height: 108px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.10);
}

.article-category-logo-wrap img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.article-category-copy {
  display: grid;
  gap: 8px;
  text-align: center;
}

.article-category-group,
.article-card-kicker,
.article-image-source {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.article-category-copy h3 {
  margin: 0;
  font-size: 1.25rem;
}

.article-category-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.article-category-stats {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-category-stats span,
.article-card-bottom span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  color: #dbeafe;
  font-size: .84rem;
  font-weight: 800;
}

.article-category-latest {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  text-align: left;
}

.article-category-latest span {
  color: var(--muted);
  font-size: .75rem;
}

.article-category-latest strong {
  font-size: .9rem;
  line-height: 1.25;
}

.article-category-latest.empty {
  color: var(--muted);
  text-align: center;
}

.article-category-view {
  display: grid;
  gap: 20px;
}

.article-category-view.hidden,
.article-form.hidden,
.article-cover-preview.hidden,
#article-comment-form.hidden {
  display: none !important;
}

.article-category-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}

.article-category-header-logo {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.10);
  flex: 0 0 auto;
}

.article-category-header-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.article-form textarea {
  min-height: 240px;
}

.article-cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-label {
  display: block;
  margin: 0 0 8px;
  color: #dbeafe;
  font-weight: 900;
}

.article-cover-preview {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}

.article-cover-preview-head {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-cover-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
}

.article-list {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.article-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  overflow: hidden;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(8,16,31,.92), rgba(10,18,36,.82));
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96,165,250,.45);
  box-shadow: 0 18px 42px rgba(0,0,0,.32);
}

.article-card-cover {
  min-height: 170px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}

.article-card-cover img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  display: block;
}

.article-card-body {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.article-card-kicker,
.article-card-bottom {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.article-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
}

.article-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.article-card-bottom {
  margin-top: 6px;
}

.article-card-reactions-empty {
  color: var(--muted);
}

.article-detail-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(8,16,31,.94), rgba(10,18,36,.86));
  box-shadow: var(--shadow);
}

.article-detail-cover {
  position: relative;
  min-height: 340px;
  background: rgba(255,255,255,.04);
}

.article-detail-cover img {
  width: 100%;
  max-height: 520px;
  min-height: 340px;
  object-fit: cover;
  display: block;
}

.article-image-source {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.14);
  color: #e5e7eb;
}

.article-image-source a {
  color: #bfdbfe;
}

.article-detail-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px;
}

.article-detail-content h1 {
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: .98;
  margin: 10px 0 16px;
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 24px;
}

.article-detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.article-body {
  line-height: 1.78;
  font-size: 1.08rem;
  color: #e7efff;
}

.article-body p {
  margin: 0 0 1.1em;
}

.article-detail-reactions {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 10px;
}

.article-reaction-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-comments-panel {
  display: grid;
  gap: 14px;
}

.article-comment-card .forum-post-body p {
  margin: 0 0 .75em;
}

.article-comment-card .forum-post-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 780px) {
  .articles-hero,
  .article-category-header {
    display: grid;
  }

  .article-cover-grid,
  .article-card {
    grid-template-columns: 1fr;
  }

  .article-card-cover,
  .article-card-cover img {
    min-height: 210px;
  }

  .article-category-logo-wrap,
  .article-category-header-logo {
    margin: 0 auto;
  }

  .article-detail-cover,
  .article-detail-cover img {
    min-height: 240px;
  }

  .article-detail-content {
    padding: 20px;
  }
}


.home-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.home-pillar-card {
  color: inherit;
  text-decoration: none;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.home-pillar-card:hover,
.home-pillar-card.active {
  transform: translateY(-2px);
  border-color: rgba(96,165,250,.46);
  box-shadow: 0 16px 38px rgba(0,0,0,.30);
}

.home-pillar-number {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 900;
  background: rgba(47,94,255,.22);
  border: 1px solid rgba(96,165,250,.35);
}

.home-pillar-card h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.home-pillar-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: .93rem;
}

@media (max-width: 860px) {
  .home-pillar-grid {
    grid-template-columns: 1fr;
  }
}


/* v48.34 – Fotelball cikkek polish */

.compact-articles-hero {
  padding: 22px;
}

.article-category-card {
  min-height: 286px;
}

.article-category-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
}

.article-new-btn {
  min-width: 180px;
}

.article-category-page-header {
  padding: 24px;
  background:
    radial-gradient(circle at 14% 20%, rgba(47,94,255,.22), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border: 1px solid rgba(96,165,250,.20);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.article-compose-modern {
  overflow: hidden;
  padding: 0;
}

.article-compose-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 0% 0%, rgba(47,94,255,.18), transparent 35%),
    rgba(255,255,255,.025);
}

.article-compose-head h2 {
  margin-bottom: 8px;
}

.article-editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  padding: 20px;
}

.article-editor-main,
.article-editor-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.article-editor-side {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.025);
}

.article-editor-label {
  display: block;
  color: #dbeafe;
  font-weight: 900;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-title-input,
.article-body-input,
.article-editor-side input,
.article-form input,
.article-form textarea {
  width: 100%;
  color: #eef5ff;
  background: rgba(4, 10, 22, .76);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.article-title-input:focus,
.article-body-input:focus,
.article-editor-side input:focus,
.article-form input:focus,
.article-form textarea:focus {
  border-color: rgba(96,165,250,.62);
  box-shadow: 0 0 0 3px rgba(47,94,255,.16);
}

.article-title-input {
  font-size: 1.15rem;
  font-weight: 900;
}

.article-body-input {
  min-height: 420px;
  resize: vertical;
  line-height: 1.65;
}

.article-upload-card {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(96,165,250,.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(47,94,255,.20), transparent 45%),
    rgba(255,255,255,.035);
  cursor: pointer;
  overflow: hidden;
}

.article-upload-card input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.article-upload-card.has-file {
  border-color: rgba(19,185,129,.65);
  background:
    radial-gradient(circle at 50% 0%, rgba(19,185,129,.18), transparent 45%),
    rgba(255,255,255,.04);
}

.article-upload-icon {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.article-upload-card strong {
  font-size: 1.02rem;
}

.article-upload-card span {
  color: var(--muted);
  font-size: .86rem;
}

.article-url-fold {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.article-editor-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.article-editor-actions .primary-btn,
.article-new-btn {
  border: 0;
  color: white;
  background: linear-gradient(135deg, #2563eb, #2f5eff);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
}

.article-editor-actions .primary-btn:disabled {
  opacity: .65;
  cursor: wait;
}

.article-cover-preview img {
  max-height: 220px;
}

/* admin cikk kategória logó */
#admin-article-category-list .admin-forum-board-logo img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

#admin-article-category-list .admin-forum-board-logo span {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(47,94,255,.18);
  border: 1px solid rgba(96,165,250,.28);
  font-weight: 900;
}

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

  .article-category-toolbar,
  .article-compose-head {
    display: grid;
  }

  .article-new-btn,
  .article-editor-actions .primary-btn {
    width: 100%;
  }
}


/* v48.35 – Article edit + reddit-style article comments */

.article-detail-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.article-edit-toggle {
  cursor: pointer;
}

.article-edit-panel.hidden {
  display: none !important;
}

.article-edit-panel {
  margin-top: -4px;
}

.article-edit-panel-inner {
  margin-bottom: 20px;
}

.article-comment-tree {
  display: grid;
  gap: 14px;
}

.article-comment-node {
  display: grid;
  gap: 10px;
}

.article-comment-children {
  margin-left: 42px;
  padding-left: 18px;
  border-left: 2px solid rgba(96, 165, 250, .22);
  display: grid;
  gap: 12px;
}

.article-comment-node.depth-3 .article-comment-children,
.article-comment-node.depth-4 .article-comment-children {
  margin-left: 20px;
}

.article-comment-card {
  grid-template-columns: 118px 1fr;
}

.article-comment-user {
  min-width: 0;
}

.article-comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.article-comment-actions .article-reaction-row {
  margin: 0;
}

.article-inline-reply-form {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(96,165,250,.18);
  background: rgba(255,255,255,.03);
}

.article-inline-reply-form.hidden {
  display: none !important;
}

.article-inline-reply-input {
  width: 100%;
  color: #eef5ff;
  background: rgba(4, 10, 22, .76);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  padding: 12px;
  resize: vertical;
  outline: none;
}

.article-inline-reply-input:focus {
  border-color: rgba(96,165,250,.62);
  box-shadow: 0 0 0 3px rgba(47,94,255,.16);
}

.article-inline-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.article-inline-reply-actions .reply-btn {
  border: 0;
  color: white;
  background: linear-gradient(135deg, #2563eb, #2f5eff);
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 900;
  cursor: pointer;
}

.article-comment-actions .event-comment-reply-btn {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  color: #dbeafe;
  border-radius: 999px;
  padding: 7px 11px;
  cursor: pointer;
  font-weight: 800;
}

.article-comment-actions .event-comment-reply-btn:hover {
  background: rgba(255,255,255,.08);
}

@media (max-width: 760px) {
  .article-comment-card {
    grid-template-columns: 1fr;
  }

  .article-comment-user {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .article-comment-children {
    margin-left: 12px;
    padding-left: 12px;
  }
}


/* v48.37 UI clean + article image/text polish */

.board-back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  color: #bfdbfe;
  font-weight: 900;
}

.articles-page .articles-hero {
  display: none !important;
}

.article-category-section {
  margin-top: 0;
}

.article-category-section .section-head .muted {
  max-width: 760px;
}

.article-category-toolbar-soft {
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding: 10px 0 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.article-category-toolbar-soft .article-category-count {
  margin: 0;
  font-size: .92rem;
}

.article-category-toolbar-soft .article-new-btn {
  width: auto;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
}

.article-card {
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 214px;
  max-width: 100%;
}

.article-card-cover {
  width: 260px;
  height: 190px;
  min-height: 190px;
  align-self: stretch;
}

.article-card-cover img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.article-card-body {
  min-width: 0;
  overflow: hidden;
}

.article-card h3 {
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.12;
  max-height: 2.3em;
}

.article-card p {
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 4.8em;
}

.article-card-kicker {
  min-width: 0;
}

.article-card-kicker span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-inline-image-tool {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(96,165,250,.18);
  background: rgba(255,255,255,.025);
}

.article-inline-image-tool input[type="file"] {
  color: #dbeafe;
  font-size: .9rem;
}

.article-inline-figure {
  margin: 22px 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
}

.article-inline-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.article-body .article-inline-figure {
  margin: 18px 0;
}

@media (max-width: 780px) {
  .article-card {
    grid-template-columns: 1fr;
  }

  .article-card-cover {
    width: 100%;
    height: 220px;
  }

  .article-category-toolbar-soft {
    display: flex;
    flex-wrap: wrap;
  }
}


/* v48.38 – Multi inline images + proportional article image rendering + forum back link */

.forum-board-back-row {
  max-width: 920px;
  margin: 0 auto 12px;
}

.forum-board-back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 9px 13px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(96,165,250,.24);
  font-weight: 900;
  text-decoration: none;
}

.forum-board-back-link:hover {
  background: rgba(96,165,250,.12);
  border-color: rgba(96,165,250,.42);
}

.article-body .article-inline-figure,
.article-inline-figure {
  max-width: min(760px, 100%);
  margin: 24px auto;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
}

.article-body .article-inline-figure img,
.article-inline-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
}

.article-inline-image-tool input[type="file"][multiple] {
  min-height: 42px;
}

@media (max-width: 780px) {
  .forum-board-back-row {
    max-width: 100%;
  }

  .article-body .article-inline-figure,
  .article-inline-figure {
    max-width: 100%;
    margin: 18px auto;
  }

  .article-body .article-inline-figure img,
  .article-inline-figure img {
    max-height: 420px;
  }
}


/* v48.39 – Article comments live-thread style controls */

.article-comment-actions {
  align-items: center;
}

.article-comment-reaction-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.article-comment-reaction-wrapper .reaction-summary {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.article-comment-reaction-wrapper .reaction-summary-empty {
  display: none;
}

.article-comment-reaction-wrapper .reaction-action {
  position: relative;
  display: inline-flex;
}

.article-comment-reaction-wrapper .reaction-popup {
  left: 0;
  right: auto;
  bottom: calc(100% + 8px);
  z-index: 40;
}

.article-comment-reaction-wrapper .reaction-action.open .reaction-popup,
.article-comment-reaction-wrapper .reaction-action:hover .reaction-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.article-comment-reaction-main-btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.article-inline-reply-form::after {
  content: "Enter küldés · Shift+Enter új sor";
  color: rgba(226,232,240,.58);
  font-size: .78rem;
}

.article-comments-panel .forum-post-form::after {
  content: "Enter küldés · Shift+Enter új sor";
  color: rgba(226,232,240,.58);
  font-size: .78rem;
  display: block;
  margin-top: 6px;
}

@media (max-width: 760px) {
  .article-comment-actions {
    align-items: flex-start;
  }

  .article-comment-reaction-wrapper {
    width: 100%;
    flex-wrap: wrap;
  }
}


/* v48.40 – article reply emoji row + login return polish */

.article-reply-emoji-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(96,165,250,.18);
  background: rgba(255,255,255,.03);
}

.article-reply-emoji-insert {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(47,94,255,.18);
  color: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
}

.article-reply-emoji-insert:hover {
  transform: translateY(-1px);
  background: rgba(47,94,255,.30);
  border-color: rgba(96,165,250,.38);
}



/* v48.41 – unified centered back links + login return polish */

.article-back-row.hidden {
  display: none !important;
}

.live-thread-back-row,
.article-category-back-row,
.article-back-row {
  margin-top: 6px;
  margin-bottom: 18px;
}

.article-detail-editline {
  justify-content: flex-end;
}

@media (max-width: 780px) {
  .live-thread-back-row,
  .article-category-back-row,
  .article-back-row {
    margin-bottom: 12px;
  }
}


/* v48.48 – homepage Hungarian HT + clean live strip */

.home-live-status-hint {
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 77, 94, 0.28);
  border-radius: 12px;
  background: rgba(255, 77, 94, 0.08);
  color: #ff4d5e;
  font-weight: 1000;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: fit-content;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-live-status-hint:hover {
  border-color: rgba(255, 77, 94, 0.52);
  background: rgba(255, 77, 94, 0.14);
  transform: translateY(-1px);
}

.home-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff4d5e;
  box-shadow: 0 0 0 4px rgba(255, 77, 94, 0.12);
}

@media (max-width: 560px) {
  .home-live-status-hint {
    width: 100%;
    justify-content: center;
  }
}


/* v48.56 – homepage live card click stability */

.league-thread-card[data-thread-url] {
  cursor: pointer;
}

.league-thread-card[data-thread-url]:focus-visible {
  outline: 2px solid rgba(96,165,250,.85);
  outline-offset: 3px;
}

.home-live-status-hint {
  pointer-events: none;
}

/* v49.02 Event Control Center */
.admin-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.event-control-page .admin-hero { align-items: center; }
.event-control-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); border-radius: 18px; padding: 18px; margin: 16px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.event-audit-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.event-audit-form input { min-width: 240px; flex: 1; max-width: 420px; }
.event-repair-actions, .event-card-debug-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.secondary-btn.small, .primary-btn.small { padding: 6px 10px; font-size: 12px; border-radius: 999px; }
.secondary-btn.danger, .event-warning.danger { border-color: rgba(255,80,80,0.45); color: #ffb3b3; }
.event-warning-list { display: grid; gap: 10px; }
.event-warning { border: 1px solid rgba(255,202,87,0.35); background: rgba(255,202,87,0.08); border-radius: 14px; padding: 12px; display: grid; gap: 4px; }
.event-ok-box { border: 1px solid rgba(34,197,94,0.35); background: rgba(34,197,94,0.08); border-radius: 14px; padding: 12px; color: #bbf7d0; }
.event-debug-table { overflow-x: auto; }
.event-debug-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.event-debug-table th, .event-debug-table td { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 8px; text-align: left; vertical-align: top; }
.event-debug-table small, .event-card-debug small { color: var(--muted, #9ca3af); }
.event-card-debug-list { display: grid; gap: 10px; }
.event-card-debug { border: 1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.16); border-radius: 14px; padding: 12px; }
.event-card-debug.deleted { opacity: 0.55; border-style: dashed; }
.event-card-debug-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.event-card-debug code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; color: #a7f3d0; font-size: 11px; }
.event-raw-log details, .event-control-card details { border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 10px; margin: 8px 0; background: rgba(0,0,0,0.16); }
.event-raw-log summary, .event-control-card summary { cursor: pointer; }
.event-audit-output pre, .event-raw-log pre { white-space: pre-wrap; word-break: break-word; max-height: 520px; overflow: auto; background: rgba(0,0,0,0.25); padding: 10px; border-radius: 10px; }
@media (max-width: 720px) {
  .event-audit-form, .admin-hero-actions { align-items: stretch; flex-direction: column; }
  .event-audit-form input, .event-audit-form button, .admin-hero-actions > * { width: 100%; max-width: none; }
}

/* v50.03: cikkíró jogosultság admin kapcsoló */
.admin-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-inline-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.admin-inline-toggle:has(input:disabled) {
  opacity: 0.65;
  cursor: not-allowed;
}
