:root {
  color-scheme: light;
  --bg: #f0f6ff;
  --bg-accent: #e3efff;
  --card: #ffffff;
  --line: #cfe0f5;
  --text: #1a2d4a;
  --muted: #5a6f8a;
  --accent: #1565c0;
  --accent-dark: #0d47a1;
  --accent-light: #e8f2ff;
  --baltika: #d4ebff;
  --club-primary: #1565c0;
  --club-dark: #0d47a1;
  --club-accent: #d4ebff;
  --club-wash: color-mix(in srgb, var(--club-primary) 48%, #ffffff);
  --club-ink: var(--club-primary);
  --club-on-primary: #ffffff;
  --club-surface: var(--club-primary);
  --shadow-sm: 0 2px 10px rgba(13, 61, 122, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 61, 122, 0.1);
  --radius: 12px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #262626;
  --bg-accent: #2c2c2c;
  --card: #303030;
  --line: #424242;
  --text: #f3f3f3;
  --muted: #c2c2c2;
  --accent: #7eb0f0;
  --accent-dark: #f0f0f0;
  --accent-light: #383838;
  --baltika: #383838;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(100, 181, 246, 0.18), transparent 36%),
    radial-gradient(circle at 90% 8%, rgba(21, 101, 192, 0.1), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, #f8fbff 100%);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
}

.theme-toggle {
  position: fixed;
  right: 16px;
  bottom: 10px;
  z-index: 140;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--accent);
  font-size: 20px;
  box-shadow: var(--shadow-md);
}

body.news-detail-open .theme-toggle {
  display: none;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.reveal-item {
  opacity: 0;
  transform: translateY(8px);
  animation: fade-up 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

tr.reveal-item {
  transform: none;
  animation-name: fade-up-opacity;
}

@keyframes fade-up-opacity {
  to {
    opacity: 1;
  }
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .hero-club-name,
  .feed-item,
  .mobile-tab,
  .notif-btn,
  .news-refresh,
  .hero,
  .hero.hero--stadium,
  .hero.is-club-flash,
  .next-match-hero-card.is-live,
  .next-match-hero-status.is-live::before,
  .kick-card.is-live,
  .kick-time.is-live::before,
  .live-rpl-card.is-live,
  .live-rpl-status.is-live::before,
  .match-detail-status.is-live::before,
  .fx-row.is-live,
  .tour-match.is-live {
    animation: none !important;
    transition: none !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }

  .hero.is-away {
    transform: none;
    pointer-events: auto;
    opacity: 0;
  }
}

.site-banner {
  background: linear-gradient(90deg, #1565c0 0%, #1e88e5 45%, #1565c0 100%);
  border-bottom: none;
  color: #fff;
}

.site-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 13px;
}

.banner-badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-banner-inner p {
  margin: 0;
  flex: 1;
  color: #fff;
}

.site-banner-inner a {
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
}

#site-banner-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

#site-banner-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.news-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.container {
  width: min(1280px, 100%);
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

.layout-home {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 270px;
  gap: 18px;
  align-items: start;
}

.layout-feed-center {
  min-width: 0;
}

.layout-side {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

.side-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.panel-title {
  position: relative;
  margin: 0 0 10px;
  padding-left: 10px;
  font-size: 15px;
  color: var(--accent-dark);
}

.panel-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #42a5f5, #1565c0);
}

.feed-panel-main {
  padding: 16px 18px 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.feed-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.feed-head > div:first-child {
  display: contents;
}

.feed-head h2 {
  grid-column: 1;
  grid-row: 1;
  font-size: 22px;
  margin: 0;
  color: var(--accent-dark);
}

.feed-head .assistant-note {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}

.feed-head-actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.channels-settings-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.channels-settings-btn:hover,
.channels-settings-btn.is-active {
  background: #d6e8ff;
  border-color: var(--accent);
}

.channels-drawer {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.channels-drawer[hidden] {
  display: none;
}

.channels-drawer-title {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--accent-dark);
}

.channels-filter-hint {
  margin: 0 0 12px;
}

.channels-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.channels-col-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--club-dark, var(--accent-dark));
}

.channel-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  margin-bottom: 6px;
}

.channel-item-check {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  min-width: 0;
}

.channel-item-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--club-primary, var(--accent));
}

.channel-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.channel-item-main span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-tag {
  font-size: 10px;
  color: var(--muted);
}

.channel-item-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 23px;
}

.channel-item-filter-label {
  font-size: 10px;
  color: var(--muted);
}

.channels-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.channels-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.channels-switch-ui {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #c5d6ea;
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.channels-switch-ui::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}

.channels-switch input:checked + .channels-switch-ui {
  background: var(--club-primary, var(--accent));
  border-color: transparent;
}

.channels-switch input:checked + .channels-switch-ui::after {
  transform: translateX(16px);
}

.channels-switch-text {
  font-size: 10px;
  color: var(--muted);
  min-width: 4.5em;
}

@media (max-width: 720px) {
  .channels-columns {
    grid-template-columns: 1fr;
  }
}

.refresh-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.refresh-btn:hover {
  background: #d6e8ff;
}

.refresh-btn.is-loading {
  animation: spin 0.8s linear infinite;
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.more-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.more-btn:hover {
  background: #d6e8ff;
}

.links-compact {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.links-compact li {
  margin-bottom: 6px;
}

.side-panel-links .club-social-grid:empty + .links-compact {
  margin-top: 0;
}

.club-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 10px;
}

.club-social-grid:empty {
  display: none;
}

.club-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.club-social-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.club-social-web {
  background: linear-gradient(135deg, var(--club-dark, #0d47a1), var(--club-primary, #1565c0));
}

.club-social-tg {
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
}

.club-social-vk {
  background: linear-gradient(135deg, #2787f5 0%, #4a76a8 100%);
}

.club-social-ig {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 48%, #8134af 100%);
}

.club-social-tt {
  background: linear-gradient(135deg, #222 0%, #111 100%);
}

.club-social-x {
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
}

.club-social-ok {
  background: linear-gradient(135deg, #f7931e 0%, #ee8208 100%);
}

.club-social-rt {
  background: linear-gradient(135deg, #2b2b2b 0%, #111 100%);
}

.club-social-max {
  background: linear-gradient(135deg, #5b7cfa 0%, #3b5bdb 100%);
}

.link-pill {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.3;
  transition: background 0.15s ease;
  cursor: pointer;
  font-family: inherit;
}

.link-pill:hover {
  background: var(--accent-light);
}

.site-footer {
  margin-top: 28px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-accent);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.hero-brand,
.hero-zone-club {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.hero-emblem-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 6px;
  text-decoration: none;
  border-radius: 50%;
  background: #07111c;
  border: 2px solid color-mix(in srgb, var(--club-wash, var(--club-primary)) 62%, #fff);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--club-wash, var(--club-primary)) 22%, transparent);
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-emblem-link:hover {
  transform: scale(1.03);
  border-color: color-mix(in srgb, var(--club-wash, var(--club-primary)) 42%, #fff);
}

.hero-emblem-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.hero-emblem-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, var(--club-accent) 100%);
  color: var(--club-dark);
  border: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.channel-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.channel-tag {
  font-size: 10px;
  color: var(--muted);
}

.feed-comments {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.feed-comments[hidden] {
  display: none;
}

.feed-comments-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-dark);
}

.chat-panel {
  margin-top: 8px;
}

.chat-panel-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.chat-panel-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.chat-thread,
.feed-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}

.chat-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-light) 55%, transparent);
}

.chat-msg {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  max-width: 92%;
}

.chat-msg.is-mine {
  margin-left: auto;
  grid-template-columns: minmax(0, 1fr) 36px;
}

.chat-msg.is-mine .chat-msg-avatar {
  order: 2;
}

.chat-msg.is-mine .chat-msg-body {
  order: 1;
}

.chat-msg.is-mine .chat-msg-meta {
  justify-content: flex-end;
}

.chat-msg.is-mine .chat-msg-actions {
  justify-content: flex-end;
}

.chat-msg.is-reply {
  max-width: 88%;
  margin-left: 18px;
}

.chat-msg.is-mine.is-reply {
  margin-left: auto;
  margin-right: 8px;
}

.chat-msg-body {
  min-width: 0;
}

.chat-msg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12px;
}

.chat-msg-author {
  color: var(--text);
  font-size: 12px;
}

.chat-msg-time {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.chat-msg.is-mine .chat-msg-time {
  margin-left: 0;
  margin-right: auto;
  order: -1;
}

.comment-more-btn {
  position: relative;
  z-index: 2;
  padding: 0 4px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}

.comment-more-btn:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text);
}

.comment-more-flyout {
  position: fixed;
  z-index: 400;
  min-width: 180px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.comment-more-flyout button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  text-align: left;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}

.comment-more-flyout button:hover {
  background: color-mix(in srgb, var(--club-primary, #1565c0) 12%, transparent);
}

.comment-more-flyout button.is-danger {
  color: #c62828;
}

.comment-edit-box {
  margin-top: 6px;
}

.comment-edit-input {
  width: 100%;
  min-height: 64px;
  padding: 8px;
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  box-sizing: border-box;
}

.comment-edit-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.comment-edit-actions button {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 8px;
  cursor: pointer;
}

.comment-edit-save {
  border: none;
  background: var(--club-primary, #1565c0);
  color: #fff;
}

.comment-edit-cancel {
  border: 1px solid var(--line);
  background: transparent;
}

.chat-msg-bubble {
  padding: 10px 12px;
  border-radius: 16px 16px 16px 6px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 70%, transparent);
}

.chat-msg.is-mine .chat-msg-bubble {
  border-radius: 16px 16px 6px 16px;
  background: color-mix(in srgb, var(--club-primary, var(--accent)) 12%, var(--card));
  border-color: color-mix(in srgb, var(--club-primary, var(--accent)) 28%, var(--line));
}

.chat-msg-quote {
  margin: 0 0 8px;
  padding: 6px 8px;
  border-left: 3px solid color-mix(in srgb, var(--club-primary, var(--accent)) 55%, var(--line));
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--accent-light) 70%, transparent);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.chat-msg-quote span {
  display: block;
  margin-bottom: 2px;
  color: var(--club-primary, var(--accent));
  font-weight: 700;
  font-size: 11px;
}

.chat-msg-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.chat-compose {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, var(--bg));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

.chat-compose .feed-comment-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 36px;
  gap: 6px;
  align-items: center;
  width: min(100%, 640px);
}

.chat-compose .feed-comment-input {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 13px;
  border-radius: 12px;
}

.chat-compose .emoji-toggle,
.chat-compose .feed-comment-submit {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.chat-compose .comment-reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 640px);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
}

.chat-compose .emoji-bar {
  width: min(100%, 640px);
}

.feed-comment-club {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
}

.feed-comment p,
.feed-comment-text {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  white-space: pre-wrap;
}

.feed-comment-time {
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
}

.feed-comment--mine {
  background: color-mix(in srgb, var(--club-primary) 10%, var(--card));
  border-left: 3px solid var(--club-primary);
}

.feed-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.feed-comment-compose {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.emoji-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.emoji-toggle .twemoji {
  width: 20px;
  height: 20px;
}

.emoji-toggle.is-open,
.emoji-toggle:hover {
  border-color: color-mix(in srgb, var(--club-primary) 35%, var(--line));
  background: color-mix(in srgb, var(--club-primary) 8%, var(--card));
}

.emoji-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.emoji-bar[hidden] {
  display: none !important;
}

img.twemoji {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  object-fit: contain;
  pointer-events: none;
}

.comment-reply-quote {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.news-bookmark-btn {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.news-bookmark-btn.is-active {
  color: #f5c518;
  border-color: #e6b800;
  background: color-mix(in srgb, #f5c518 16%, var(--card));
  -webkit-text-stroke: 0.35px rgba(120, 80, 0, 0.35);
  text-shadow: 0 0.5px 0 rgba(120, 80, 0, 0.2);
  font-weight: 700;
}

:root[data-theme="dark"] .news-bookmark-btn {
  color: #8a8a8a;
  border-color: var(--line);
  background: var(--card);
}

:root[data-theme="dark"] .news-bookmark-btn.is-active {
  color: #ffd54a;
  border-color: #e0b52a;
  background: color-mix(in srgb, #f5c518 18%, var(--card));
  -webkit-text-stroke: 0.3px rgba(80, 50, 0, 0.45);
  text-shadow: 0 0 6px rgba(245, 197, 24, 0.35);
}

:root[data-theme="dark"] .fixture-comp {
  color: var(--muted);
  background: #383838;
}

.feed-comment-input {
  min-height: 44px;
  padding: 11px 14px;
  font-size: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
}

.feed-comment-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--club-primary, var(--accent)) 45%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--club-primary, var(--accent)) 14%, transparent);
}

.comment-reply-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--club-primary) 28%, var(--line));
  background: color-mix(in srgb, var(--club-primary) 10%, var(--card));
  font-size: 13px;
  color: var(--text);
}

.comment-reply-bar[hidden] {
  display: none !important;
}

.comment-reply-cancel {
  border: none;
  background: transparent;
  color: var(--club-primary, var(--accent));
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.emoji-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.emoji-btn .twemoji {
  width: 22px;
  height: 22px;
}

.emoji-btn:hover {
  background: color-mix(in srgb, var(--club-primary) 12%, var(--card));
}

.feed-comment-submit {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: none;
  background: var(--club-primary, var(--accent));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.feed-comment-submit:hover {
  filter: brightness(1.06);
}

.feed-comment-hint {
  margin: 0;
  font-size: 11px;
}

.media-link-stack-compact {
  margin-top: 12px;
}

.media-link-stack-compact .media-link-btn {
  min-height: 38px;
  font-size: 13px;
}

.yt-featured {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1724;
  border: 1px solid var(--line);
}

.yt-featured[hidden] {
  display: none !important;
}

.yt-featured-skeleton {
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #1a2436 25%, #243247 50%, #1a2436 75%);
  background-size: 200% 100%;
  animation: ytPulse 1.2s ease-in-out infinite;
}

@keyframes ytPulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.yt-play-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #000;
  cursor: pointer;
  text-align: left;
}

.yt-play-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.92;
}

.yt-play-btn {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(200, 32, 39, 0.92);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.yt-play-card:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.05);
}

.yt-play-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.yt-featured-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.video-shorts-block {
  margin-top: 10px;
}

.hero-emblem {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  border: none;
  padding: 0;
  box-shadow: none;
  background: transparent;
  display: block;
  transform: translateY(6px);
}

.video-track-side {
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 240px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.video-track-side .video-slide {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
}

.video-track-side .video-slide h3 {
  font-size: 12px;
  line-height: 1.3;
  margin: 6px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-link-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.media-link-btn[hidden] {
  display: none !important;
}

.media-link-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.media-link-vk {
  background: linear-gradient(135deg, #2787f5 0%, #4a76a8 100%);
  color: #fff;
}

.media-link-yt {
  background: linear-gradient(135deg, #c4302b 0%, #8b1e1a 100%);
  color: #fff;
}

.video-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.video-card:hover {
  border-color: color-mix(in srgb, var(--club-primary) 45%, var(--line));
  transform: translateY(-1px);
}

.video-thumb {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: color-mix(in srgb, var(--club-primary) 10%, var(--card));
}

.video-thumb-short {
  height: 150px;
  object-fit: cover;
}

.video-card h3,
.video-card p {
  margin: 6px 8px 8px;
  font-size: 12px;
  line-height: 1.3;
}

.video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.video-track-side iframe {
  width: 100%;
  height: 148px;
  display: block;
}

.video-shorts-side {
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 200px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.video-shorts-side .video-slide {
  flex: 0 0 auto;
  width: 100%;
}

.video-shorts-side iframe {
  width: 100%;
  height: 180px;
  display: block;
}

.side-panel-video {
  padding: 10px 12px;
}

.video-block {
  margin-bottom: 12px;
}

.video-block:last-child {
  margin-bottom: 0;
}

.video-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.video-block-title {
  margin: 0;
  font-size: 15px;
  color: #0d3d7a;
}

.side-panel-video .video-carousel-controls {
  margin: 0;
  flex-shrink: 0;
}

.side-link {
  margin: 6px 0 0;
  font-size: 12px;
}

.side-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.side-link a:hover {
  text-decoration: underline;
}

.hero,
.hero.hero--stadium {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 8px 0 9px;
  color: #f4f7fb;
  background-color: #0a1018;
  background-image:
    linear-gradient(105deg, color-mix(in srgb, var(--club-wash, var(--club-primary)) 7%, transparent) 0%, transparent 44%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.28) 0%, rgba(6, 10, 18, 0.42) 100%),
    url("./img/hero-stadium.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 2px solid color-mix(in srgb, var(--club-wash, var(--club-primary)) 72%, transparent);
  min-height: 0;
  overflow: visible;
  transition:
    transform 0.28s ease,
    background 0.35s ease,
    border-color 0.25s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  will-change: transform;
}

.hero.is-away {
  transform: translateY(calc(-100% - 4px));
  pointer-events: none;
}

.hero.is-club-flash {
  animation: hero-club-flash 0.65s ease;
}

@keyframes hero-club-flash {
  0% {
    box-shadow:
      0 2px 12px rgba(0, 0, 0, 0.22),
      inset 0 0 0 0 color-mix(in srgb, var(--club-primary) 0%, transparent);
    filter: saturate(1);
  }
  35% {
    box-shadow:
      0 2px 16px rgba(0, 0, 0, 0.28),
      inset 0 -3px 0 0 color-mix(in srgb, var(--club-primary) 85%, transparent),
      0 0 28px color-mix(in srgb, var(--club-primary) 35%, transparent);
    filter: saturate(1.15);
  }
  100% {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
    filter: saturate(1);
  }
}

.hero-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(280px, 36vw);
  max-height: 52%;
  object-fit: contain;
  height: auto;
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Общий стадион-фон; клубное фото больше не перекрывает шапку */
.hero.hero--stadium.hero--image {
  background-image:
    linear-gradient(105deg, color-mix(in srgb, var(--club-wash, var(--club-primary)) 7%, transparent) 0%, transparent 44%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.28) 0%, rgba(6, 10, 18, 0.42) 100%),
    url("./img/hero-stadium.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f4f7fb;
  border-bottom: 2px solid color-mix(in srgb, var(--club-wash, var(--club-primary)) 72%, transparent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.hero.hero--stadium .hero-kicker,
.hero.hero--stadium .hero-club-name {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero.hero--stadium .hero-kicker {
  color: rgba(255, 255, 255, 0.62);
  text-shadow: none;
}

.hero.hero--stadium .hero-club-switch::after {
  color: rgba(255, 255, 255, 0.78);
}

.hero.hero--stadium .hero-club-select,
.hero.hero--stadium .toolbar-btn,
.hero.hero--stadium .profile-chip-btn,
.hero.hero--stadium .notif-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: none;
}

.hero.hero--stadium .hero-club-select {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a8b0bc' d='M2.2 4.2a.75.75 0 0 1 1.06 0L6 6.94l2.74-2.74a.75.75 0 1 1 1.06 1.06L6.53 8.53a.75.75 0 0 1-1.06 0L2.2 5.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
  background-position: right 7px center;
  background-size: 10px 10px;
  background-repeat: no-repeat;
  border-color: rgba(255, 255, 255, 0.16);
}

.hero.hero--stadium .hero-club-select:hover,
.hero.hero--stadium .hero-club-select:focus {
  border-color: color-mix(in srgb, var(--club-wash, var(--club-primary)) 70%, #fff);
  background-color: color-mix(in srgb, var(--club-wash, var(--club-primary)) 14%, rgba(8, 12, 20, 0.55));
}

.hero.hero--stadium .profile-logout-btn {
  color: #ff8a80;
  background: rgba(198, 40, 40, 0.22);
  border-color: rgba(255, 138, 128, 0.45);
}

.hero.hero--stadium .toolbar-btn:hover,
.hero.hero--stadium .profile-chip-btn:hover,
.hero.hero--stadium .notif-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero.hero--stadium .profile-chip-btn #auth-label,
.hero.hero--stadium .profile-hint {
  color: #fff;
}

.hero.hero--stadium .profile-hint {
  opacity: 0.7;
}

.hero.hero--stadium .hero-club-select option {
  background: #121820;
  color: #fff;
}

.hero.hero--stadium .hero-zone-user::before {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 768px) {
  .hero.hero--stadium,
  .hero.hero--stadium.hero--image {
    background-image:
      linear-gradient(180deg, color-mix(in srgb, var(--club-wash, var(--club-primary)) 6%, transparent) 0%, transparent 40%),
      linear-gradient(180deg, rgba(6, 10, 18, 0.32) 0%, rgba(6, 10, 18, 0.48) 100%),
      url("./img/hero-stadium.png");
    background-position: center;
  }
}

.hero-kicker {
  margin: 4px 0 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.2;
  opacity: 1;
}

.hero-club-name {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem); /* ~24–30px */
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.03em;
  transition: color 0.3s ease, opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.hero-club-name.is-switching {
  transform: translateY(8px) scale(0.98);
  opacity: 0.25;
  filter: blur(2px);
}

.hero-club-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.hero-club-picker label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 500;
}

.hero-club-picker select,
.channel-form input {
  min-width: 0;
}

.hero-club-picker select {
  flex: 1;
  max-width: 260px;
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 34px 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--club-primary) 22%, var(--line));
  background-color: color-mix(in srgb, var(--club-primary) 8%, var(--card));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M2.2 4.2a.75.75 0 0 1 1.06 0L6 6.94l2.74-2.74a.75.75 0 1 1 1.06 1.06L6.53 8.53a.75.75 0 0 1-1.06 0L2.2 5.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-size: 12px 12px;
  background-repeat: no-repeat;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  accent-color: var(--club-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hero-club-picker select:hover,
.hero-club-picker select:focus {
  outline: none;
  background-color: color-mix(in srgb, var(--club-primary) 14%, var(--card));
  border-color: color-mix(in srgb, var(--club-primary) 40%, var(--line));
}

.hero-club-picker select option {
  color: var(--text);
  background: var(--card);
  font-weight: 500;
}

.channel-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.channel-form button {
  padding: 6px 10px;
  font-size: 12px;
}

.channel-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.quick-links a {
  background: color-mix(in srgb, var(--club-primary) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--club-primary) 22%, var(--line));
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  color: var(--club-dark, var(--accent-dark));
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.quick-links a:hover {
  background: color-mix(in srgb, var(--club-primary) 16%, var(--card));
  border-color: color-mix(in srgb, var(--club-primary) 38%, var(--line));
}

main {
  padding: 20px 0 36px;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  align-items: start;
}

.layout-triple {
  display: grid;
  grid-template-columns: 300px 1fr 240px;
  gap: 18px;
  align-items: start;
}

.layout-feed-left {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
}

.feed-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.feed-panel h2 {
  font-size: 16px;
  margin: 0 0 6px;
}

.feed-list-scroll {
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  padding-right: 4px;
}

.layout-center section {
  margin-bottom: 22px;
}

.layout-main section {
  margin-bottom: 22px;
}

.layout-sidebar {
  position: sticky;
  top: 12px;
}

.standings-compact h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.standings-note {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.35;
}

section h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #0d3d7a;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.cards-compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.card p {
  margin: 4px 0;
  font-size: 13px;
  color: var(--muted);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid color-mix(in srgb, var(--club-primary) 55%, var(--line));
  border-radius: 10px;
  padding: 12px 14px;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.feed-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  border-left-color: var(--club-primary);
}

.feed-item.is-bookmark-flash {
  animation: bookmark-flash 1.1s ease;
}

@keyframes bookmark-flash {
  0%,
  100% {
    box-shadow: none;
  }
  30%,
  70% {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--club-primary) 55%, transparent);
  }
}

.feed-item--official,
.feed-item--telegram,
.feed-item--rumor,
.feed-item--liveblog {
  border-left-color: color-mix(in srgb, var(--club-primary) 55%, var(--line));
}

.feed-item--liveblog {
  border-left-color: color-mix(in srgb, #c62828 55%, var(--line));
}

.feed-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  min-width: 0;
}

.feed-source {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-time {
  margin-left: 0;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.feed-meta .news-bookmark-btn {
  margin-left: 0;
  flex-shrink: 0;
}

.feed-link {
  display: inline-flex;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.feed-link:hover {
  text-decoration: underline;
}

.feed-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.feed-item p {
  margin: 4px 0;
  font-size: 13px;
  color: var(--muted);
}

.feed-text-full,
.feed-text-body {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 0;
}

.feed-text-html p {
  margin: 0 0 8px;
}

.feed-text-html a {
  color: var(--accent);
  text-decoration: none;
}

.feed-text-html a:hover {
  text-decoration: underline;
}

.feed-text-html b,
.feed-text-html strong {
  font-weight: 700;
}

.feed-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.feed-actions-secondary {
  margin-top: 4px;
}

.news-detail {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.news-detail[hidden] {
  display: none;
}

body.news-detail-open {
  overflow: hidden;
}

.news-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.news-detail-back {
  width: auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.news-detail-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dark);
}

.news-detail-scroll {
  flex: 1;
  overflow: auto;
  padding: 16px 16px 8px;
  display: flex;
  justify-content: center;
}

.news-detail-inner {
  width: 100%;
  max-width: 640px;
}

.news-detail-post {
  margin-bottom: 16px;
}

.feed-comments-page {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.feed-comments-page .feed-comments-title {
  margin-bottom: 4px;
}

.news-like-btn {
  width: auto;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.news-like-btn:hover {
  background: #d6e8ff;
}

.news-like-count {
  min-width: 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
}

.news-comments-btn {
  position: relative;
  width: auto;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.news-comments-btn:hover,
.news-comments-btn.is-active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.news-comments-btn.has-comments .news-comments-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.news-comments-count:empty {
  display: none;
}

.news-comments-btn.has-unread .news-comments-unread {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e11d48;
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px color-mix(in srgb, #e11d48 35%, transparent);
}

.news-comments-btn.has-unread {
  border-color: color-mix(in srgb, #e11d48 45%, var(--line));
}

.feed-images {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.feed-image {
  max-width: 100%;
  max-height: 360px;
  border-radius: 6px;
  object-fit: contain;
  background: #eef5ff;
}

.more-btn {
  margin-top: 8px;
  width: 100%;
}

.auth-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--line);
  background: var(--accent-light);
  color: var(--accent);
}

.chip.telegram {
  background: #e3f2fd;
  color: #0d47a1;
  border-color: #90caf9;
}

.chip.rumor {
  background: #fff8e1;
  color: #e65100;
  border-color: #ffcc80;
}

.chip.liveblog {
  background: #ffebee;
  color: #b71c1c;
  border-color: #ef9a9a;
}

.video-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.video-track .video-slide {
  flex: 0 0 min(340px, 88vw);
  scroll-snap-align: start;
}

.video-track {
  scroll-snap-type: x proximity;
}

.video-more-link {
  margin: 6px 0 14px;
}

.video-shorts-col-wide {
  width: 100%;
}

.shorts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.shorts-head .subhead {
  margin: 0;
}

.video-shorts-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  max-height: none;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.video-shorts-scroll .video-slide {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

.video-shorts-col .subhead {
  margin: 0 0 6px;
  font-size: 14px;
}

.video-row {
  display: block;
}

.short-card {
  padding: 0;
  overflow: hidden;
}

.short-card iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 8px;
}

.short-card p {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.video-grid-scroll {
  overflow-x: auto;
  scroll-behavior: smooth;
}

.video-carousel-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.video-carousel-controls button {
  padding: 4px 10px;
  width: auto;
  min-width: 36px;
}

.video {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}

.video h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
}

.links {
  margin: 0;
  padding-left: 18px;
}

a {
  color: var(--accent);
}

.assistant,
.compact-form {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

textarea,
input {
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

button {
  width: max-content;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

button.theme-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--accent);
}

.answer {
  min-height: 60px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  white-space: pre-wrap;
  font-size: 14px;
}

.assistant-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 8px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.table-wrap-compact {
  width: 100%;
  max-width: 100%;
}

.table-wrap-compact table {
  font-size: 11px;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.table-wrap-compact col.st-c-pos { width: 8%; }
.table-wrap-compact col.st-c-club { width: 36%; }
.table-wrap-compact col.st-c-i,
.table-wrap-compact col.st-c-v,
.table-wrap-compact col.st-c-n,
.table-wrap-compact col.st-c-p { width: 8%; }
.table-wrap-compact col.st-c-gd { width: 14%; }
.table-wrap-compact col.st-c-o { width: 10%; }

.table-wrap-compact th,
.table-wrap-compact td {
  padding: 6px 3px;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
  border-bottom: 1px solid var(--line);
}

.table-wrap-compact thead th {
  padding-top: 6px;
  padding-bottom: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

:root[data-theme="dark"] .table-wrap-compact thead th {
  background: transparent;
  color: var(--muted);
}

.table-wrap-compact .st-th-pos,
.table-wrap-compact .st-pos {
  text-align: center;
  padding-left: 2px;
  padding-right: 2px;
  font-weight: 500;
  color: var(--muted);
}

.table-wrap-compact .st-th-club,
.table-wrap-compact .standings-team {
  text-align: left;
  padding-left: 4px;
  padding-right: 4px;
}

.table-wrap-compact .st-th-stat,
.table-wrap-compact .st-num,
.table-wrap-compact .st-pts {
  text-align: center;
  white-space: nowrap;
}

.table-wrap-compact .standings-team {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-wrap-compact .st-pts {
  font-weight: 700;
}

.table-wrap-compact tbody tr:last-child td {
  border-bottom: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

thead th {
  background: var(--club-accent, var(--accent-light));
  color: var(--club-dark, var(--accent-dark));
  font-weight: 600;
}

.team-baltika,
.team-selected {
  background: var(--club-accent, var(--baltika));
  font-weight: 600;
}

.team-baltika td,
.team-selected td {
  color: var(--club-dark, var(--accent-dark));
}

.team-selected:not(.zone-leader):not(.zone-playoff):not(.zone-relegation) td:first-child {
  box-shadow: inset 3px 0 0 var(--club-primary, var(--accent));
}

#standings-body tr.zone-leader td.st-pos {
  box-shadow: inset 3px 0 0 #c9a227;
}

#standings-body tr.zone-playoff td.st-pos {
  box-shadow: inset 3px 0 0 #ef6c00;
}

#standings-body tr.zone-relegation td.st-pos {
  box-shadow: inset 3px 0 0 #c62828;
}

#standings-body tr.zone-leader {
  background: color-mix(in srgb, #c9a227 12%, var(--card));
}

#standings-body tr.zone-playoff {
  background: color-mix(in srgb, #ef6c00 10%, var(--card));
}

#standings-body tr.zone-relegation {
  background: color-mix(in srgb, #c62828 10%, var(--card));
}

#standings-body tr.zone-leader.team-selected,
#standings-body tr.zone-playoff.team-selected,
#standings-body tr.zone-relegation.team-selected {
  box-shadow: none;
}

#standings-body tr.is-live-row {
  background: color-mix(in srgb, #8bc34a 18%, var(--card));
}

#standings-body tr.is-live-row td.st-pos {
  box-shadow: inset 3px 0 0 #7cb342;
}

#standings-body tr.is-live-row.team-selected {
  background: color-mix(in srgb, #8bc34a 24%, var(--card));
}

.st-live-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, #8bc34a 22%, var(--card));
  color: #558b2f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.standings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 8px;
  font-size: 10px;
  color: var(--muted);
}

.standings-legend[hidden] {
  display: none !important;
}

.st-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.st-legend-item i {
  width: 3px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

.st-legend-leader i {
  background: #c9a227;
}

.st-legend-playoff i {
  background: #ef6c00;
}

.st-legend-relegation i {
  background: #c62828;
}

.nav-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.squad-page {
  max-width: 680px;
}

.squad-group {
  margin-bottom: 14px;
}

.squad-group h2 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 4px;
  padding: 0;
  border: none;
  color: #0d3d7a;
}

.squad-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.squad-row {
  display: grid;
  grid-template-columns: 36px 40px 1fr;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.squad-row:last-child {
  border-bottom: none;
}

.squad-row-alt {
  background: #f4f8fc;
}

.squad-row:hover {
  background: var(--accent-light);
}

.squad-num-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0d3d7a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.squad-row-photo {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: contain;
  object-position: top center;
  background: #eef5ff;
}

.squad-row-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.squad-first {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
}

.squad-last {
  font-size: 14px;
  color: #1565c0;
  line-height: 1.2;
}

.squad-pos {
  font-size: 11px;
  color: var(--muted);
}

.transfers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.transfer-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.transfer-row {
  display: block;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  text-decoration: none;
  color: inherit;
}

.transfer-row:hover {
  background: var(--accent-light);
}

.transfer-main strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.transfer-main span {
  font-size: 11px;
  color: var(--muted);
}

.transfer-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.subhead {
  font-size: 14px;
  color: var(--club-primary, var(--accent-dark));
  margin: 0 0 6px;
}

.tg-channel-form {
  grid-template-columns: 1fr auto;
  align-items: center;
}

#chat-thread {
  max-height: 52vh;
  overflow: auto;
  margin-bottom: 10px;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-title-block {
  min-width: 0;
}

.hero-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero-club-accent {
  flex-shrink: 0;
  width: 3px;
  height: 34px;
  border-radius: 2px;
  background: var(--club-primary, #1565c0);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--club-primary) 25%, transparent);
}

.hero-title-text {
  min-width: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-left: 54px; /* 44 logo + 10 gap */
}

.hero-club-switch {
  position: relative;
  flex-shrink: 0;
}

.hero-club-switch::after {
  content: "Сменить клуб";
  position: absolute;
  inset: 0 24px 0 10px;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.78);
  pointer-events: none;
  white-space: nowrap;
  transform: none;
  padding-bottom: 1px;
}

.hero-club-select {
  min-width: 0;
  width: 118px;
  appearance: none;
  -webkit-appearance: none;
  height: 30px;
  min-height: 30px;
  padding: 0 24px 0 10px;
  line-height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a8b0bc' d='M2.2 4.2a.75.75 0 0 1 1.06 0L6 6.94l2.74-2.74a.75.75 0 1 1 1.06 1.06L6.53 8.53a.75.75 0 0 1-1.06 0L2.2 5.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
  background-position: right 7px center;
  background-size: 10px 10px;
  background-repeat: no-repeat;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hero-club-select:hover,
.hero-club-select:focus {
  outline: none;
  border-color: var(--club-primary, #1565c0);
  background-color: color-mix(in srgb, var(--club-primary) 22%, rgba(8, 12, 20, 0.55));
}

.hero-club-select option {
  color: #121820;
  -webkit-text-fill-color: #121820;
  background: #fff;
}

.hero-club-picker select {
  min-width: 0;
  max-width: 200px;
  appearance: none;
  -webkit-appearance: none;
  min-height: 32px;
  padding: 4px 26px 4px 10px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--club-primary) 20%, var(--line));
  background-color: color-mix(in srgb, var(--club-primary) 6%, var(--card));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M2.2 4.2a.75.75 0 0 1 1.06 0L6 6.94l2.74-2.74a.75.75 0 1 1 1.06 1.06L6.53 8.53a.75.75 0 0 1-1.06 0L2.2 5.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-size: 10px 10px;
  background-repeat: no-repeat;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

.hero-club-picker select option {
  color: #121820;
  -webkit-text-fill-color: #121820;
  background: #fff;
}

.hero-club-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding-left: 0;
}

.hero-club-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hero-club-link:hover {
  background: rgba(0, 0, 0, 0.34);
  border-color: rgba(255, 255, 255, 0.34);
}

.hero.hero--stadium .hero-club-link {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hero.hero--stadium .hero-club-link:hover {
  background: rgba(0, 0, 0, 0.34);
  border-color: rgba(255, 255, 255, 0.34);
  filter: none;
}

.hero-toolbar,
.hero-zone-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hero-zone-user {
  position: relative;
  padding-left: 14px;
  margin-left: 2px;
  border-left: none;
}

.hero-zone-user::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: color-mix(in srgb, var(--line) 70%, transparent);
  opacity: 0.7;
}

.hero--image .hero-zone-user::before {
  background: rgba(255, 255, 255, 0.22);
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--club-primary) 16%, var(--line));
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.toolbar-btn[hidden],
.profile-auth-sep[hidden],
.auth-oauth[hidden],
.oauth-btn[hidden],
.profile-dropdown[hidden],
.profile-dropdown-wide[hidden],
.profile-check[hidden] {
  display: none !important;
}

.toolbar-btn:hover {
  background: color-mix(in srgb, var(--club-primary) 8%, var(--card));
  border-color: color-mix(in srgb, var(--club-primary) 28%, var(--line));
}

.toolbar-btn.notif-btn {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  position: relative;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-toolbar .profile-dropdown {
  right: 0;
  left: auto;
}

.hero-main {
  flex: 1;
  min-width: 0;
}

.profile-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.profile-notif-group,
.profile-user-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-chip-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 2px 9px 2px 2px;
  border: 1px solid color-mix(in srgb, var(--club-primary) 16%, var(--line));
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  box-shadow: none;
}

.profile-chip-btn:hover {
  background: color-mix(in srgb, var(--club-primary) 6%, transparent);
  border-color: color-mix(in srgb, var(--club-primary) 28%, var(--line));
}

.profile-chip-btn:disabled {
  cursor: default;
}

.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, var(--club-dark), var(--club-primary));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1;
  background-size: cover;
  background-position: center;
}

.profile-avatar.has-image {
  color: transparent;
  background-color: var(--line);
}

.profile-chip-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  text-align: left;
  max-width: 88px;
  gap: 0;
}

#auth-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 88px;
}

.profile-hint {
  font-size: 9px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 88px;
  line-height: 1.1;
  opacity: 0.8;
}

.profile-logout-btn {
  position: relative;
  z-index: 3;
  width: 28px;
  min-height: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, #c62828 40%, transparent);
  background: color-mix(in srgb, #c62828 12%, var(--card));
  color: #c62828;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 1;
  flex-shrink: 0;
}

.profile-logout-btn:hover {
  opacity: 1;
  background: color-mix(in srgb, #c62828 10%, transparent);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 200;
  width: 220px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 28px rgba(13, 61, 122, 0.16);
}

.profile-dropdown-wide[hidden] {
  display: none !important;
}

.profile-dropdown-wide:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 500;
  width: auto;
  max-width: none;
  max-height: none;
  height: auto;
  margin: 0;
  padding: 24px 16px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: auto;
  background: rgba(10, 18, 32, 0.5);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-toolbar .profile-dropdown-wide {
  right: 0;
  left: 0;
}

.profile-sheet-card {
  width: min(400px, 100%);
  max-height: min(88vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 16px 40px rgba(8, 16, 32, 0.28);
}

.profile-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.profile-sheet-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.profile-sheet-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.profile-sheet-close:hover {
  background: color-mix(in srgb, var(--club-primary) 10%, #fff);
}

.profile-avatar-wrap {
  position: relative;
  display: inline-flex;
}

.profile-avatar-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--club-primary);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .profile-avatar-badge {
  border-color: var(--card);
}

:root[data-theme="dark"] .profile-sheet-card,
:root[data-theme="dark"] .profile-sheet-close {
  background: var(--card);
}

:root[data-theme="dark"] .profile-dropdown.profile-dropdown-wide {
  background: rgba(10, 18, 32, 0.62);
}

body.profile-sheet-open {
  overflow: hidden;
}

body.profile-sheet-open .hero {
  z-index: 500;
}

body.profile-sheet-open .hero-inner,
body.profile-sheet-open #auth-panel {
  z-index: auto;
}

@media (max-width: 720px) {
  .hero-toolbar .profile-dropdown-wide,
  .profile-dropdown-wide {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    background: #fff;
  }

  :root[data-theme="dark"] .hero-toolbar .profile-dropdown-wide,
  :root[data-theme="dark"] .profile-dropdown-wide {
    background: var(--card);
  }

  .profile-sheet-card {
    width: 100%;
    max-height: none;
    height: 100%;
    height: 100dvh;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  }

  .profile-sheet-head {
    position: sticky;
    top: -16px;
    z-index: 2;
    margin: -16px -16px 14px;
    padding: 12px 16px;
    background: #fff;
  }

  :root[data-theme="dark"] .profile-sheet-head {
    background: var(--card);
  }

  .profile-avatar-lg {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }

  .profile-avatar-badge {
    width: 26px;
    height: 26px;
  }
}

.profile-logout-text {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 10px;
  border: 1px solid color-mix(in srgb, #c62828 35%, var(--line));
  border-radius: 8px;
  background: #fff;
  color: #c62828;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.profile-logout-text[hidden] {
  display: none !important;
}

.profile-logout-text:hover {
  background: color-mix(in srgb, #c62828 10%, transparent);
}

.profile-edit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  margin-bottom: 4px;
}

.profile-avatar-edit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  grid-column: 1;
  grid-row: 1;
}

.profile-name-block {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-name-block input {
  margin-bottom: 0;
}

.profile-avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 20px;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--club-primary) 25%, transparent);
}

.profile-avatar-edit:hover .profile-avatar-lg {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--club-primary) 55%, transparent);
}

.profile-avatar-hint {
  font-size: 10px;
  color: var(--muted);
}

.profile-edit-fields {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-club-hint {
  margin: -4px 0 8px;
}

.profile-field-label {
  display: block;
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.profile-check.profile-theme-row {
  display: none;
}

.profile-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 10px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--club-primary) 6%, var(--card, #fff));
  font-size: 12px;
  line-height: 1.3;
  color: var(--text);
  cursor: pointer;
}

.profile-check:hover {
  border-color: color-mix(in srgb, var(--club-primary) 35%, var(--line));
}

.profile-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--club-primary, var(--accent));
  cursor: pointer;
}

.profile-check-text {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.profile-save-btn {
  width: 100%;
  margin-top: 0;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--club-primary, #1565c0), var(--club-dark, #0d47a1));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.profile-save-btn:hover {
  filter: brightness(1.05);
}

.profile-auth-sep {
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}

.profile-auth-sep[hidden] {
  display: none;
}

.profile-auth-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.profile-dropdown input[type="text"],
.profile-dropdown input[type="email"],
.profile-dropdown input[type="password"],
.profile-dropdown select {
  width: 100%;
  margin-bottom: 8px;
  padding: 7px 9px;
  font-size: 13px;
  color: #121820;
  -webkit-text-fill-color: #121820;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  caret-color: #121820;
  box-sizing: border-box;
}

.profile-dropdown select {
  appearance: none;
  -webkit-appearance: none;
  margin-bottom: 8px;
  padding: 8px 32px 8px 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M2.2 4.2a.75.75 0 0 1 1.06 0L6 6.94l2.74-2.74a.75.75 0 1 1 1.06 1.06L6.53 8.53a.75.75 0 0 1-1.06 0L2.2 5.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-size: 12px 12px;
  background-repeat: no-repeat;
  line-height: 1.3;
}

:root[data-theme="dark"] .profile-dropdown input[type="text"],
:root[data-theme="dark"] .profile-dropdown input[type="email"],
:root[data-theme="dark"] .profile-dropdown input[type="password"],
:root[data-theme="dark"] .profile-dropdown select {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  background: color-mix(in srgb, var(--card) 88%, #000);
  border-color: var(--line);
  caret-color: var(--text);
}

:root[data-theme="dark"] .profile-dropdown select {
  background-color: color-mix(in srgb, var(--card) 88%, #000);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c8c8c8' d='M2.2 4.2a.75.75 0 0 1 1.06 0L6 6.94l2.74-2.74a.75.75 0 1 1 1.06 1.06L6.53 8.53a.75.75 0 0 1-1.06 0L2.2 5.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-size: 12px 12px;
  background-repeat: no-repeat;
}

:root[data-theme="dark"] .profile-dropdown select option {
  background: #121820;
  color: #fff;
}

:root[data-theme="dark"] .profile-check {
  background: color-mix(in srgb, var(--club-primary) 12%, var(--card));
}

.comment-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--club-dark), var(--club-primary));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.chat-msg-avatar,
.comment-avatar.chat-msg-avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.comment-avatar.has-image {
  color: transparent;
}

.auth-actions-compact {
  display: flex;
  gap: 6px;
}

.auth-actions-compact button {
  flex: 1;
  padding: 6px 8px;
  font-size: 12px;
}

.auth-oauth {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.oauth-btn {
  flex: 1;
  min-width: 72px;
  padding: 7px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: #121820;
}

.oauth-google { border-color: #dadce0; }
.oauth-vk { background: #0077ff; border-color: #0077ff; color: #fff; }
.auth-or-title { margin: 10px 0 6px; font-size: 0.82rem; opacity: 0.75; text-align: center; }
.oauth-yandex { background: #fc3f1d; border-color: #fc3f1d; color: #fff; }

.auth-magic-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 8px;
}

.auth-status-msg {
  min-height: 0;
  margin: 8px 0 0;
  font-weight: 700;
  color: #0d3d7a;
}

.auth-spam-note {
  margin: 0 0 8px;
  padding: 7px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, #f9a825 16%, #fff);
  color: #6d4c00;
  font-weight: 600;
}

:root[data-theme="dark"] .auth-spam-note {
  background: color-mix(in srgb, #f9a825 18%, var(--card));
  color: #ffd54f;
}

.auth-magic-btn {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.auth-magic-btn[hidden] {
  display: none;
}

.auth-password-details {
  margin: 0 0 4px;
}

.auth-password-details summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.auth-password-details[open] summary {
  margin-bottom: 8px;
}

.auth-admin-badge {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #1565c0;
  color: #fff;
}

.profile-dropdown .assistant-note {
  margin: 6px 0 0;
  font-size: 11px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
  color: #fff;
}

.home-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.home-btn img {
  filter: brightness(0) invert(1);
}

:root[data-theme="dark"] body {
  background: linear-gradient(180deg, var(--bg) 0%, #222222 100%);
}

:root[data-theme="dark"] .site-banner {
  background: linear-gradient(90deg, #2a2a2a 0%, #333333 50%, #2a2a2a 100%);
}

:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .hero.hero--stadium,
:root[data-theme="dark"] .hero.hero--stadium.hero--image {
  background-color: #0a1018;
  background-image:
    linear-gradient(105deg, color-mix(in srgb, var(--club-wash, var(--club-primary)) 7%, transparent) 0%, transparent 44%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.28) 0%, rgba(6, 10, 18, 0.42) 100%),
    url("./img/hero-stadium.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 2px solid color-mix(in srgb, var(--club-wash, var(--club-primary)) 72%, transparent);
  color: #fff;
  min-height: 0;
}

:root[data-theme="dark"] .hero.hero--stadium .hero-club-name,
:root[data-theme="dark"] .hero.hero--stadium .hero-kicker,
:root[data-theme="dark"] .hero.hero--stadium .hero-club-switch::after {
  color: #fff;
  text-shadow: none;
}

:root[data-theme="dark"] .hero.hero--stadium .hero-kicker {
  color: rgba(255, 255, 255, 0.62);
}

:root[data-theme="dark"] .hero-club-name {
  color: var(--text);
}

@media (max-width: 768px) {
  :root[data-theme="dark"] .hero.hero--stadium,
  :root[data-theme="dark"] .hero.hero--stadium.hero--image {
    background-image:
      linear-gradient(180deg, color-mix(in srgb, var(--club-wash, var(--club-primary)) 6%, transparent) 0%, transparent 40%),
      linear-gradient(180deg, rgba(6, 10, 18, 0.32) 0%, rgba(6, 10, 18, 0.48) 100%),
      url("./img/hero-stadium.png");
    background-position: center;
  }
}

:root[data-theme="dark"] .hero-club-picker select {
  background-color: color-mix(in srgb, var(--club-primary) 16%, var(--card));
  border-color: color-mix(in srgb, var(--club-primary) 30%, var(--line));
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c8c8c8' d='M2.2 4.2a.75.75 0 0 1 1.06 0L6 6.94l2.74-2.74a.75.75 0 1 1 1.06 1.06L6.53 8.53a.75.75 0 0 1-1.06 0L2.2 5.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-size: 12px 12px;
  background-repeat: no-repeat;
}

:root[data-theme="dark"] .hero-club-picker select:hover,
:root[data-theme="dark"] .hero-club-picker select:focus {
  background-color: color-mix(in srgb, var(--club-primary) 24%, var(--card));
}

:root[data-theme="dark"] .hero-club-picker select option {
  background: #303030;
  color: #ececec;
}

:root[data-theme="dark"] .hero.hero--image .hero-club-picker select,
:root[data-theme="dark"] .hero.hero--image .profile-chip-btn,
:root[data-theme="dark"] .hero.hero--image .notif-btn,
:root[data-theme="dark"] .hero.hero--image .profile-logout-btn {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ff8a80;
}

:root[data-theme="dark"] .hero.hero--image .hero-club-picker select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M2.2 4.2a.75.75 0 0 1 1.06 0L6 6.94l2.74-2.74a.75.75 0 1 1 1.06 1.06L6.53 8.53a.75.75 0 0 1-1.06 0L2.2 5.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-size: 12px 12px;
  background-repeat: no-repeat;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

:root[data-theme="dark"] .hero.hero--image .hero-club-picker select:hover,
:root[data-theme="dark"] .hero.hero--image .hero-club-picker select:focus,
:root[data-theme="dark"] .hero.hero--image .profile-chip-btn:hover,
:root[data-theme="dark"] .hero.hero--image .notif-btn:hover {
  background: rgba(0, 0, 0, 0.62);
  border-color: rgba(255, 255, 255, 0.4);
}

:root[data-theme="dark"] .hero-emblem-link {
  background: #07111c;
  border-color: color-mix(in srgb, var(--club-wash, var(--club-primary)) 62%, #fff);
}

:root[data-theme="dark"] .feed-item {
  background: var(--card);
}

:root[data-theme="dark"] .feed-comment {
  background: var(--card);
}

:root[data-theme="dark"] .chat-msg-bubble {
  background: #3a3a3a;
  border-color: #4a4a4a;
  box-shadow: none;
}

:root[data-theme="dark"] .chat-msg.is-mine .chat-msg-bubble {
  background: color-mix(in srgb, var(--club-primary, var(--accent)) 28%, #2f2f2f);
  border-color: color-mix(in srgb, var(--club-primary, var(--accent)) 40%, #4a4a4a);
}

:root[data-theme="dark"] .chat-compose {
  background: color-mix(in srgb, var(--card) 88%, #000);
}

:root[data-theme="dark"] .chat-empty {
  background: color-mix(in srgb, var(--card) 80%, transparent);
  color: var(--muted);
}

:root[data-theme="dark"] .chat-msg-quote {
  background: color-mix(in srgb, #000 22%, var(--card));
  border-left-color: color-mix(in srgb, var(--accent) 70%, #fff);
  color: #b8b8b8;
}

:root[data-theme="dark"] .chat-msg-quote span {
  color: color-mix(in srgb, var(--club-primary, var(--accent)) 45%, #fff);
}

:root[data-theme="dark"] .feed-comment-club {
  background: color-mix(in srgb, var(--club-primary, var(--accent)) 22%, #3a3a3a);
  color: color-mix(in srgb, var(--club-primary, var(--accent)) 55%, #fff);
}

:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] .link-pill,
:root[data-theme="dark"] .transfer-row,
:root[data-theme="dark"] .video,
:root[data-theme="dark"] .profile-dropdown {
  background: var(--card);
}

:root[data-theme="dark"] .profile-chip-btn,
:root[data-theme="dark"] .profile-logout-btn {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
}

:root[data-theme="dark"] #auth-label {
  color: var(--text);
}

:root[data-theme="dark"] .profile-hint {
  color: var(--muted);
}

:root[data-theme="dark"] .team-baltika,
:root[data-theme="dark"] .team-selected {
  background: color-mix(in srgb, var(--club-primary) 24%, var(--card));
}

:root[data-theme="dark"] .team-baltika td,
:root[data-theme="dark"] .team-selected td {
  color: var(--text);
  font-weight: 700;
}

:root[data-theme="dark"] .team-selected:not(.zone-leader):not(.zone-playoff):not(.zone-relegation) td:first-child {
  box-shadow: inset 3px 0 0 var(--club-primary, var(--accent));
}

:root[data-theme="dark"] #standings-body tr.zone-leader {
  background: color-mix(in srgb, #c9a227 16%, var(--card));
}

:root[data-theme="dark"] #standings-body tr.zone-playoff {
  background: color-mix(in srgb, #ef6c00 14%, var(--card));
}

:root[data-theme="dark"] #standings-body tr.zone-relegation {
  background: color-mix(in srgb, #c62828 14%, var(--card));
}

:root[data-theme="dark"] #standings-body tr.is-live-row {
  background: color-mix(in srgb, #8bc34a 16%, var(--card));
}

:root[data-theme="dark"] .st-live-badge {
  color: #c5e1a5;
}

:root[data-theme="dark"] .panel-title,
:root[data-theme="dark"] .video-block-title,
:root[data-theme="dark"] .feed-item h3 {
  color: var(--text);
}

:root[data-theme="dark"] thead th {
  background: color-mix(in srgb, var(--club-primary) 28%, var(--card));
  color: var(--text);
}

:root[data-theme="dark"] .feed-item:hover {
  border-left-color: var(--club-primary);
}

:root[data-theme="dark"] .home-btn {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

:root[data-theme="dark"] .side-panel,
:root[data-theme="dark"] .feed-panel-main,
:root[data-theme="dark"] .channels-drawer,
:root[data-theme="dark"] .channel-item {
  background: var(--card);
  border-color: var(--line);
}

:root[data-theme="dark"] .feed-text-body,
:root[data-theme="dark"] .feed-text-html,
:root[data-theme="dark"] .feed-item p,
:root[data-theme="dark"] .assistant-note {
  color: var(--text);
}

:root[data-theme="dark"] .feed-source,
:root[data-theme="dark"] .feed-time {
  color: var(--muted);
}

:root[data-theme="dark"] .feed-text-html a {
  color: var(--accent);
}

:root[data-theme="dark"] .news-like-btn,
:root[data-theme="dark"] .news-comments-btn,
:root[data-theme="dark"] .channels-settings-btn,
:root[data-theme="dark"] .refresh-btn,
:root[data-theme="dark"] .more-btn {
  background: var(--accent-light);
  border-color: var(--line);
  color: var(--text);
}

:root[data-theme="dark"] .news-like-btn:hover,
:root[data-theme="dark"] .news-comments-btn:hover,
:root[data-theme="dark"] .news-comments-btn.is-active,
:root[data-theme="dark"] .channels-settings-btn:hover,
:root[data-theme="dark"] .channels-settings-btn.is-active {
  background: #454545;
}

:root[data-theme="dark"] .feed-comment-input {
  background: var(--bg);
  border-color: var(--line);
  color: var(--text);
}

:root[data-theme="dark"] .feed-comment-submit {
  background: var(--club-primary, #4a4a4a);
  color: #fff;
}

:root[data-theme="dark"] .news-detail-head,
:root[data-theme="dark"] .news-detail {
  background: var(--bg);
}

:root[data-theme="dark"] .news-detail-head {
  background: var(--card);
}

:root[data-theme="dark"] .news-detail-back {
  background: #3a3a3a;
  border-color: #555;
  color: var(--text);
}

:root[data-theme="dark"] .news-detail-title {
  color: var(--text);
}

:root[data-theme="dark"] .theme-toggle {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
}

:root[data-theme="dark"] .site-footer {
  background: #222222;
  border-top-color: var(--line);
}

:root[data-theme="dark"] .site-footer-inner {
  color: var(--muted);
}

:root[data-theme="dark"] .feed-comment--mine {
  background: color-mix(in srgb, var(--club-primary) 14%, var(--card));
}

.chat-page-body {
  overflow: hidden;
}

.chat-page {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.chat-page-note {
  margin: 0 0 12px;
}

.chat-thread {
  min-height: 48vh;
  max-height: none;
  margin-bottom: 12px;
}

.chat-compose {
  position: sticky;
  bottom: 0;
  padding-top: 8px;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 28%);
}

.chat-status {
  min-height: 1.2em;
  margin: 6px 0 0;
}

.nav-emblem-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 6px;
  text-decoration: none;
  border-radius: 50%;
  background: #07111c;
  border: 2px solid color-mix(in srgb, var(--club-wash, var(--club-primary)) 62%, #fff);
  box-sizing: border-box;
  overflow: hidden;
}

.nav-emblem-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.nav-emblem-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--club-primary, var(--accent));
  letter-spacing: 0.02em;
}

.nav-emblem-link:hover {
  box-shadow: var(--shadow-sm);
  transform: scale(1.05);
}

.nav-top .home-btn {
  margin-right: 4px;
}

.video-channel .channel-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
}

.squad-table {
  width: 100%;
  font-size: 14px;
}

.squad-table th,
.squad-table td {
  padding: 8px 10px;
}

@media (max-width: 1100px) {
  .layout-home {
    grid-template-columns: 1fr 260px;
  }

  .layout-side-left {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    overflow: visible;
  }

  .video-track-side,
  .video-shorts-side {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
  }

  .video-track-side .video-slide {
    flex: 0 0 min(280px, 80vw);
  }

  .video-shorts-side .video-slide {
    flex: 0 0 140px;
  }
}

@media (max-width: 900px) {
  .layout-with-sidebar,
  .layout-triple,
  .layout-home {
    grid-template-columns: 1fr;
  }

  .layout-side {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .layout-side-right {
    order: 0;
  }

  .layout-home [data-tab-panel] {
    display: none;
  }

  .layout-home[data-mobile-tab="news"] [data-tab-panel="news"],
  .layout-home[data-mobile-tab="table"] [data-tab-panel="table"],
  .layout-home[data-mobile-tab="club"] [data-tab-panel="club"],
  .layout-home[data-mobile-tab="more"] [data-tab-panel="more"] {
    display: block;
  }

  .mobile-tabs {
    display: flex;
  }

  body {
    padding-bottom: 64px;
  }

  .transfers-grid {
    grid-template-columns: 1fr;
  }

  .video-track .video-slide {
    flex-basis: min(300px, 88vw);
  }

  .video-shorts-scroll .video-slide {
    flex-basis: 140px;
  }

  .hero-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .hero-zone-club {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hero-zone-user,
  .hero-toolbar {
    margin-left: auto;
    padding-left: 0;
    border-left: none;
    width: auto;
    justify-content: flex-end;
  }

  .hero-actions {
    padding-left: 0;
    width: 100%;
  }

  .hero-club-links {
    padding-left: 0;
    width: auto;
    flex: 1;
  }

  .hero-title-row {
    align-items: center;
    gap: 6px;
  }

  .hero-zone-user::before {
    display: none;
  }

  .hero-mark {
    display: none;
  }

  .hero,
  .hero.hero--stadium {
    padding-bottom: 0;
  }

  .mobile-tabs {
    display: flex;
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: 100%;
    margin: 8px 0 0;
    padding: 0;
    background: rgba(6, 10, 18, 0.58);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
    box-sizing: border-box;
  }

  .mobile-tab {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 42px;
    margin: 0;
    color: rgba(255, 255, 255, 0.52);
    padding: 0 2px;
    border: none;
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    box-shadow: none;
    text-shadow: none;
    font-size: 12px;
  }

  .mobile-tab:last-child {
    border-right: none;
  }

  .mobile-tab.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
    text-shadow: none;
    font-weight: 800;
    border-radius: 0;
  }

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .theme-toggle {
    display: none !important;
  }

  .profile-check.profile-theme-row {
    display: flex;
  }

  .layout-home,
  .layout-side,
  .layout-side-left,
  .layout-side-right,
  .layout-feed-center,
  .hero,
  .hero-inner {
    min-width: 0;
    max-width: 100%;
  }

  body {
    padding-bottom: 12px;
  }

  .profile-chip-text {
    display: flex;
    max-width: 72px;
  }

  #auth-label,
  .profile-hint {
    max-width: 72px;
  }

  .profile-hint {
    display: none;
  }

  .profile-chip-btn .auth-admin-badge {
    display: none;
  }

  .profile-chip {
    flex-shrink: 1;
    min-width: 0;
  }

  .profile-chip-btn {
    padding: 2px 8px 2px 2px;
    min-height: 36px;
    max-width: 132px;
  }

  .profile-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .tg-channel-form {
    grid-template-columns: 1fr;
  }

  .layout-side,
  .layout-side-right,
  .layout-side-left,
  .standings-compact,
  .table-wrap,
  .table-wrap-compact,
  .stats-leaders,
  .stats-leaders-list {
    width: 100%;
    max-width: 100%;
  }

  .table-wrap-compact th,
  .table-wrap-compact td {
    padding: 6px 3px;
  }

  .table-wrap-compact .standings-team {
    font-size: 12px;
  }

  .feed-head h2 {
    font-size: 18px;
  }

  .feed-panel-main {
    padding: 12px;
  }
}

.mobile-tabs {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  width: 100%;
  gap: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
}

.mobile-tab {
  min-width: 0;
  padding: 11px 4px;
  border: none;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.mobile-tab:last-child {
  border-right: none;
}

.mobile-tab:active {
  transform: none;
}

.mobile-tab.is-active {
  color: var(--club-primary, var(--accent));
  background: color-mix(in srgb, var(--club-primary, var(--accent)) 12%, var(--card));
  box-shadow: none;
  text-shadow: none;
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero-mark {
    display: none;
  }

  .hero,
  .hero.hero--stadium {
    padding-bottom: 0;
  }

  .mobile-tabs {
    display: flex;
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: 100%;
    margin: 8px 0 0;
    padding: 0;
    background: rgba(6, 10, 18, 0.58);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
    box-sizing: border-box;
  }

  .mobile-tab {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 42px;
    margin: 0;
    color: rgba(255, 255, 255, 0.52);
    padding: 0 2px;
    border: none;
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    box-shadow: none;
    text-shadow: none;
    font-size: 12px;
  }

  .mobile-tab:last-child {
    border-right: none;
  }

  .mobile-tab.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
    text-shadow: none;
    font-weight: 800;
    border-radius: 0;
  }

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .theme-toggle {
    display: none !important;
  }

  .profile-check.profile-theme-row {
    display: flex;
  }

  .layout-home,
  .layout-side,
  .layout-side-left,
  .layout-side-right,
  .layout-feed-center,
  .hero,
  .hero-inner {
    min-width: 0;
    max-width: 100%;
  }

  body {
    padding-bottom: 12px;
  }
}

.feed-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-skeleton-card {
  height: 92px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(
    90deg,
    var(--card) 0%,
    color-mix(in srgb, var(--club-primary) 10%, var(--card)) 50%,
    var(--card) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shine 1.1s ease-in-out infinite;
}

.fixture-skeleton {
  height: 72px;
}

.video-skeleton {
  height: 110px;
  min-width: 160px;
}

.skeleton-row-bar {
  height: 28px;
  margin: 4px 0;
}

@keyframes skeleton-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

#standings-body tr[data-club-id],
#cup-standings-body tr[data-club-id] {
  cursor: pointer;
  transition: background 0.2s ease;
}

#standings-body tr[data-club-id]:hover td,
#cup-standings-body tr[data-club-id]:hover td {
  background: color-mix(in srgb, var(--club-primary) 8%, transparent);
}

.next-match {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--club-primary) 22%, var(--line));
  background: color-mix(in srgb, var(--club-primary) 8%, var(--card));
}

.next-match-pair {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.next-match-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.next-match-hero {
  margin-bottom: 14px;
}

.today-matches {
  margin-bottom: 14px;
}

.today-matches-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}

.today-matches-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  flex-shrink: 0;
}

.today-day-arrow {
  width: 36px;
  height: 36px;
  font-size: 20px;
  border-radius: 10px;
}

.today-day-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 720px) {
  .today-matches-nav {
    gap: 8px;
  }

  .today-day-arrow {
    width: 40px;
    height: 40px;
    font-size: 22px;
    border-radius: 11px;
  }
}

.today-matches-title,
.next-match-hero-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.next-match-hero-label {
  margin: 0 0 8px;
}

.today-matches-count {
  font-size: 12px;
  font-weight: 600;
  color: color-mix(in srgb, var(--muted) 70%, var(--text));
}

.today-matches-list {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.club-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.club-mark--dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mark, #8aa0b8);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark, #8aa0b8) 16%, transparent);
}

.club-mark--logo {
  width: 22px;
  height: 22px;
}

.club-mark--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.kick-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "main aside";
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: transparent;
}

.kick-card.has-pens {
  grid-template-columns: minmax(0, 1fr) 3.4em auto;
  grid-template-areas: "main pen aside";
  gap: 8px;
}

.kick-card:last-child {
  border-bottom: 0;
}

.kick-card:hover {
  background: color-mix(in srgb, var(--club-primary) 6%, var(--card));
}

.kick-card.is-mine {
  background: color-mix(in srgb, var(--club-primary) 7%, var(--card));
  box-shadow: inset 3px 0 0 var(--club-primary);
}

.kick-card.is-live {
  background: color-mix(in srgb, #c62828 6%, var(--card));
  animation: live-card-pulse 2.4s ease-in-out infinite;
}

.kick-card.is-finished {
  animation: none;
}

.kick-lines {
  grid-area: main;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.kick-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.kick-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kick-score {
  min-width: 1.1em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 15px;
}

.kick-score--empty {
  min-width: 0;
}

.kick-card.is-live .kick-score {
  color: #c62828;
}

.kick-aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.kick-scores {
  display: grid;
  gap: 7px;
  align-content: center;
  min-width: 1.1em;
}

.kick-scores .kick-score {
  display: block;
  min-width: 1.1em;
  text-align: right;
}

.kick-pen-mid {
  grid-area: pen;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 3.4em;
  min-width: 3.4em;
  box-sizing: border-box;
  padding: 4px 4px;
  border-radius: 8px;
  background: color-mix(in srgb, #2f6fed 14%, var(--card));
  border: 1px solid color-mix(in srgb, #2f6fed 32%, var(--line));
  color: color-mix(in srgb, #1a4fb8 45%, var(--text));
  line-height: 1.1;
  text-align: center;
}

.kick-pen-mid.is-empty {
  visibility: hidden;
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

.kick-pen-mid.is-pen-win {
  background: color-mix(in srgb, #1b8a4a 18%, var(--card));
  border-color: color-mix(in srgb, #1b8a4a 40%, var(--line));
  color: color-mix(in srgb, #0f5c30 55%, var(--text));
}

.kick-pen-mid.is-pen-loss {
  background: color-mix(in srgb, #c62828 16%, var(--card));
  border-color: color-mix(in srgb, #c62828 38%, var(--line));
  color: color-mix(in srgb, #8e1b1b 50%, var(--text));
}

.kick-pen-mid.is-pen-draw {
  background: color-mix(in srgb, #2f6fed 14%, var(--card));
  border-color: color-mix(in srgb, #2f6fed 32%, var(--line));
  color: color-mix(in srgb, #1a4fb8 45%, var(--text));
}

.kick-pen-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  opacity: 0.9;
}

.kick-pen-score {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.kick-time {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.kick-time.is-live {
  color: #c62828;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.kick-time.is-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c62828;
  box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.55);
  animation: live-dot-pulse 1.4s ease-out infinite;
}

.kick-comp {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.kick-note {
  grid-area: note;
  font-size: 12px;
  font-weight: 700;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  margin-top: -2px;
}

.live-rpl-feed {
  margin-bottom: 14px;
}

.next-match-hero-card {
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.next-match-hero-card:hover {
  border-color: color-mix(in srgb, var(--club-primary) 32%, var(--line));
}

.next-match-hero-card.is-live {
  border-color: color-mix(in srgb, #c62828 40%, var(--line));
  animation: live-card-pulse 2.4s ease-in-out infinite;
}

.next-match-hero-status.is-live {
  color: #c62828;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.next-match-hero-status.is-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c62828;
  box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.55);
  animation: live-dot-pulse 1.4s ease-out infinite;
}

@keyframes live-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.5);
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 8px rgba(198, 40, 40, 0);
    opacity: 0.85;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(198, 40, 40, 0);
    opacity: 1;
  }
}

@keyframes live-card-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(198, 40, 40, 0);
  }
  50% {
    box-shadow: 0 0 0 2px color-mix(in srgb, #c62828 22%, transparent);
  }
}

.next-match-hero-card.is-matchday {
  border-color: color-mix(in srgb, var(--club-primary) 36%, var(--line));
}

.next-match-hero-status.is-today {
  color: var(--club-primary, var(--accent));
}

.next-match-hero-main {
  display: block;
  padding: 14px 16px 12px;
  text-decoration: none;
  color: inherit;
}

.next-match-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.next-match-hero-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.next-match-hero-face {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.next-match-hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
}

.next-match-hero-side .club-mark--dot {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mark, #8aa0b8) 16%, transparent);
}

.next-match-hero-side .club-mark--logo {
  width: 56px;
  height: 56px;
}

.next-match-hero-team {
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.next-match-hero-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding-top: 10px;
}

.next-match-hero-score {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1;
}

.next-match-hero-score.is-vs {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.next-match-hero-card.is-live .next-match-hero-score {
  color: #c62828;
}

.next-match-hero-goals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 4px 0 2px;
}

.next-match-hero-pen {
  margin: 12px 0 2px;
  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, #2f6fed 14%, var(--card));
  border: 1px solid color-mix(in srgb, #2f6fed 32%, var(--line));
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: color-mix(in srgb, #1a4fb8 45%, var(--text));
  text-align: center;
}

.next-match-hero-pen.is-pen-win {
  background: color-mix(in srgb, #1b8a4a 18%, var(--card));
  border-color: color-mix(in srgb, #1b8a4a 40%, var(--line));
  color: color-mix(in srgb, #0f5c30 55%, var(--text));
}

.next-match-hero-pen.is-pen-loss {
  background: color-mix(in srgb, #c62828 16%, var(--card));
  border-color: color-mix(in srgb, #c62828 38%, var(--line));
  color: color-mix(in srgb, #8e1b1b 50%, var(--text));
}

.next-match-hero-pen.is-pen-draw {
  background: color-mix(in srgb, #2f6fed 14%, var(--card));
  border-color: color-mix(in srgb, #2f6fed 32%, var(--line));
  color: color-mix(in srgb, #1a4fb8 45%, var(--text));
}

.next-match-hero-pen-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: inherit;
  margin-bottom: 2px;
}

.next-match-hero-pen.is-pen-win .next-match-hero-pen-label,
.next-match-hero-pen.is-pen-loss .next-match-hero-pen-label {
  text-transform: none;
  letter-spacing: 0;
}

.next-match-hero-pen-main {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: inherit;
}

.kick-card .next-match-hero-pen {
  grid-area: note;
  margin: 4px 0 0;
  padding: 6px 10px;
}

.kick-card .next-match-hero-pen-main {
  font-size: 14px;
}

.next-match-hero-pen-inline {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  background: color-mix(in srgb, #2f6fed 14%, var(--card));
  border: 1px solid color-mix(in srgb, #2f6fed 32%, var(--line));
  color: color-mix(in srgb, #1a4fb8 45%, var(--text));
}

.next-match-hero-pen-inline.is-pen-win {
  background: color-mix(in srgb, #1b8a4a 18%, var(--card));
  border-color: color-mix(in srgb, #1b8a4a 40%, var(--line));
  color: color-mix(in srgb, #0f5c30 55%, var(--text));
}

.next-match-hero-pen-inline.is-pen-loss {
  background: color-mix(in srgb, #c62828 16%, var(--card));
  border-color: color-mix(in srgb, #c62828 38%, var(--line));
  color: color-mix(in srgb, #8e1b1b 50%, var(--text));
}

.next-match-hero-pen-inline.is-pen-draw {
  background: color-mix(in srgb, #2f6fed 14%, var(--card));
  border-color: color-mix(in srgb, #2f6fed 32%, var(--line));
  color: color-mix(in srgb, #1a4fb8 45%, var(--text));
}

.hero-goals {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
}

.hero-goals-away {
  text-align: center;
}

.hero-goals-mid {
  text-align: center;
  font-size: 10px;
}

.hero-goals-gap {
  width: 1px;
}

.hero-goals li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-match-hero-meta {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

.next-match-hero-actions {
  display: flex;
  gap: 6px;
  padding: 0 16px 14px;
}

.next-match-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--club-primary) 8%, var(--card));
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.next-match-hero-action:hover {
  border-color: color-mix(in srgb, var(--club-primary) 40%, var(--line));
  background: color-mix(in srgb, var(--club-primary) 14%, var(--card));
}

.next-match-hero-action.is-primary {
  border-color: color-mix(in srgb, var(--club-primary) 40%, var(--line));
  background: color-mix(in srgb, var(--club-primary) 12%, var(--card));
  color: var(--club-primary, #1565c0);
}

.fx-score-live {
  color: #c62828;
  font-weight: 800;
}

.fixtures-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fixture-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
}

.fx-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  border-left: 3px solid color-mix(in srgb, var(--club-primary) 35%, var(--line));
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fx-row:hover {
  background: color-mix(in srgb, var(--club-primary) 8%, var(--card));
}

.fx-row.is-next {
  border-left-color: var(--club-primary, var(--accent));
  background: color-mix(in srgb, var(--club-primary) 8%, var(--card));
}

.fx-when {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 1px;
}

.fx-date {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.fx-time {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.fx-body {
  min-width: 0;
}

.fx-pair {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  min-width: 0;
}

.fx-pair .fx-team {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.fx-pair .fx-home {
  flex: 0 1 auto;
  max-width: 46%;
  text-align: left;
}

.fx-pair .fx-away {
  flex: 1 1 auto;
  text-align: left;
}

.fx-pair .is-mine {
  color: var(--club-primary, var(--accent-dark));
}

.fx-vs,
.fx-score {
  flex: 0 0 auto;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.fx-vs {
  color: var(--muted);
  font-weight: 600;
}

.fx-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.fx-meta .fixture-comp {
  margin-bottom: 0;
}

.fixture-card.is-next {
  border-color: var(--line);
  background: var(--card);
}

.fixture-comp {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fixture-comp--rpl {
  background: #e8f0fe;
  color: #1a4f8c;
}

.fixture-comp--cup {
  background: #fff3e0;
  color: #a15c00;
}

:root[data-theme="dark"] .fixture-comp--rpl {
  background: #2a3a4f;
  color: #cfe0ff;
}

:root[data-theme="dark"] .fixture-comp--cup {
  background: #4a3a22;
  color: #ffd59a;
}

:root[data-theme="dark"] .fx-row.is-next {
  background: color-mix(in srgb, var(--club-primary) 16%, var(--card));
}

:root[data-theme="dark"] .fx-pair .is-mine {
  color: color-mix(in srgb, var(--club-primary) 45%, #fff);
}

:root[data-theme="dark"] .today-matches-list,
:root[data-theme="dark"] .next-match-hero-card {
  border-color: color-mix(in srgb, var(--club-primary) 22%, #4a4a4a);
  background: #303030;
  box-shadow: none;
}

:root[data-theme="dark"] .kick-card {
  border-bottom-color: #444;
}

:root[data-theme="dark"] .kick-card:hover,
:root[data-theme="dark"] .kick-card.is-mine {
  background: color-mix(in srgb, var(--club-primary) 16%, #303030);
}

:root[data-theme="dark"] .next-match-hero-action {
  background: #3a3a3a;
  border-color: #555;
  color: var(--text);
}

:root[data-theme="dark"] .next-match-hero-action.is-primary {
  border-color: color-mix(in srgb, var(--club-primary) 50%, #666);
  background: color-mix(in srgb, var(--club-primary) 22%, #333);
  color: color-mix(in srgb, var(--club-primary) 40%, #fff);
  box-shadow: none;
}

:root[data-theme="dark"] .next-match-hero-action:hover {
  border-color: color-mix(in srgb, var(--club-primary) 55%, #777);
  background: color-mix(in srgb, var(--club-primary) 18%, #3a3a3a);
}

:root[data-theme="dark"] .next-match-hero-card {
  border-color: color-mix(in srgb, var(--club-primary) 22%, #4a4a4a);
  background: #303030;
}

.rpl-tours {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stats-leaders {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stats-tabs {
  display: flex;
  gap: 4px;
}

.stats-leaders-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}

.stats-leader-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.stats-leader-pos {
  flex: 0 0 22px;
}

.stats-leader-info {
  flex: 1 1 auto;
}

.stats-leader-value {
  flex: 0 0 auto;
  margin-left: auto;
}

.stats-leader-row:last-child {
  border-bottom: none;
}

.stats-leader-pos {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: center;
}

.stats-leader-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}

.stats-leader-name {
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-leader-team {
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-leader-value {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  min-width: 2.25em;
  flex-shrink: 0;
}

.stats-leaders-toggle {
  display: block;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.stats-leaders-toggle:hover {
  background: rgba(28, 125, 217, 0.08);
}

.rpl-tours-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.rpl-tours-head .panel-subtitle {
  margin: 0;
}

.tour-nav-arrows {
  display: flex;
  gap: 4px;
}

.tour-arrow {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.tour-arrow.today-day-arrow {
  width: 36px;
  height: 36px;
  font-size: 20px;
  border-radius: 10px;
}

@media (max-width: 720px) {
  .tour-arrow.today-day-arrow {
    width: 40px;
    height: 40px;
    font-size: 22px;
    border-radius: 11px;
  }
}

.tour-arrow:hover {
  border-color: color-mix(in srgb, var(--club-primary) 40%, var(--line));
  background: color-mix(in srgb, var(--club-primary) 10%, var(--card));
}

.tour-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: thin;
}

.tour-chip {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.tour-chip:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--club-primary) 30%, var(--line));
}

.tour-chip.is-active {
  background: color-mix(in srgb, var(--club-primary) 14%, var(--card));
  border-color: color-mix(in srgb, var(--club-primary) 42%, var(--line));
  color: var(--club-primary, var(--accent-dark));
  font-weight: 700;
}

.tour-matches {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}

.tour-match {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  min-height: 0;
}

.tour-match:last-child {
  border-bottom: none;
}

.tour-match-when {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 4.2em;
  flex-shrink: 0;
}

.tour-match-date {
  color: var(--muted);
  font-size: 9px;
}

.tour-match-time {
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
}

.tour-match-tz {
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-left: 1px;
}

.tour-match-pair {
  min-width: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tour-dash {
  color: var(--muted);
  font-weight: 500;
  padding: 0;
  letter-spacing: 0;
}

.tour-match-score {
  min-width: 28px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.tour-match.is-mine {
  background: color-mix(in srgb, var(--club-primary) 10%, transparent);
}

.tour-match.is-mine .tour-match-pair {
  color: var(--club-primary, var(--accent-dark));
}

:root[data-theme="dark"] .tour-chip.is-active {
  background: color-mix(in srgb, var(--club-primary) 22%, var(--card));
  border-color: color-mix(in srgb, var(--club-primary) 40%, var(--line));
  color: color-mix(in srgb, var(--club-primary) 45%, #fff);
}

:root[data-theme="dark"] .tour-match.is-mine {
  background: color-mix(in srgb, var(--club-primary) 22%, transparent);
}

:root[data-theme="dark"] .tour-match.is-mine .tour-match-pair {
  color: #e8f1ff;
}

:root[data-theme="dark"] .tour-match.is-mine .tour-dash {
  color: #9eb6d8;
}

@media (max-width: 420px) {
  .tour-match {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    padding: 5px 7px;
  }
}

.matches-calendar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.matches-section-title {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--text);
}

.matches-section-list {
  display: grid;
  gap: 10px;
}

.page-sub .nav-top {
  align-items: center;
  gap: 12px;
}

.page-sub .news-detail-back {
  text-decoration: none;
}

.fixture-pair {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.fixture-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.bookmarks-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-input {
  width: 100%;
  min-height: 88px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  resize: vertical;
  box-sizing: border-box;
}

.feedback-send {
  width: auto;
  align-self: flex-start;
  min-width: 120px;
}

.feedback-inbox {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.feedback-inbox-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.admin-desk-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.admin-desk-count {
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
}

.admin-comment-link {
  font-size: 12px;
  color: var(--accent, #1565c0);
  text-decoration: none;
}

.admin-comment-link:hover {
  text-decoration: underline;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.feedback-item {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--card) 88%, var(--bg));
}

.feedback-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}

.feedback-item-meta strong {
  color: var(--text);
  font-size: 13px;
}

.feedback-item-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.bookmarks-sort-btn {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.bookmarks-sort-btn.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--club-primary) 35%, var(--line));
  background: color-mix(in srgb, var(--club-primary) 12%, var(--card));
}

.notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  line-height: 1;
  box-shadow: none;
}

.notif-icon {
  display: block;
  font-size: 16px;
  line-height: 1;
  transform: translateY(0);
}

.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--club-primary, #c62828);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notif-badge[hidden] {
  display: none !important;
}

.notif-dropdown {
  width: min(300px, 88vw);
  max-height: min(360px, 70vh);
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  background: #fff;
}

.hero--image .profile-dropdown.notif-dropdown,
.hero--image .notif-dropdown {
  color: var(--text);
  background: #fff;
}

.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.notif-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.notif-read-all {
  flex-shrink: 0;
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--club-primary, #1565c0);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.notif-read-all:hover {
  background: color-mix(in srgb, var(--club-primary) 10%, transparent);
}

.notif-hint {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.notif-empty {
  margin: 0;
}

.notif-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}

.notif-item.is-unread {
  border-color: color-mix(in srgb, var(--club-primary) 35%, var(--line));
  background: color-mix(in srgb, var(--club-primary) 6%, var(--card));
}

.notif-item-text {
  display: block;
  width: 100%;
}

.notif-item-time {
  font-size: 10px;
  color: var(--muted);
}

.notif-item:hover {
  background: color-mix(in srgb, var(--club-primary) 10%, var(--card));
}

:root[data-theme="dark"] .notif-dropdown {
  background: #1a2332;
  color: #e8eef7;
}

:root[data-theme="dark"] .notif-item {
  background: #243044;
  color: #e8eef7;
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .notif-item.is-unread {
  background: #2a3a52;
}

.fixtures-past-title {
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.fixtures-list-past {
  gap: 4px;
}

.fixtures-list-past .fx-row {
  grid-template-columns: 40px 1fr;
  gap: 8px;
  padding: 6px 8px;
}

.fixtures-list-past .fx-date,
.fixtures-list-past .fx-time {
  font-size: 10px;
}

.fixtures-list-past .fx-pair {
  gap: 4px;
  margin: 0 0 2px;
  font-size: 11px;
  column-gap: unset;
}

.fixtures-list-past .fx-score {
  padding: 0 2px;
  font-size: 11px;
}

.fixtures-list-past .fx-meta {
  gap: 4px;
  font-size: 10px;
}

.fixtures-list-past .fx-meta .fixture-comp {
  padding: 0 5px;
  font-size: 9px;
}

.fixtures-list-past .fx-row.is-past {
  opacity: 0.92;
}

.fx-score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0 4px;
}

.fx-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 4px;
  background: #c62828;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.fx-row.is-live,
.tour-match.is-live {
  box-shadow: inset 3px 0 0 #c62828;
  animation: live-card-pulse 2.6s ease-in-out infinite;
}

.derby-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(198, 40, 40, 0.12), rgba(21, 101, 192, 0.1));
  border: 1px solid color-mix(in srgb, var(--club-primary) 25%, var(--line));
  font-size: 12px;
  font-weight: 600;
}

.derby-banner[hidden] {
  display: none !important;
}

.derby-badge {
  display: inline-flex;
  padding: 2px 6px;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.match-poll {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--club-primary) 5%, var(--card));
}

.match-poll-title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
}

.match-poll-sub {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--muted);
}

.match-poll-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.poll-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 10px;
  cursor: pointer;
}

.poll-btn-label {
  font-weight: 600;
  line-height: 1.2;
}

.poll-btn-pct {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.poll-btn.is-voted {
  border-color: color-mix(in srgb, var(--club-primary) 50%, var(--line));
  background: color-mix(in srgb, var(--club-primary) 12%, var(--card));
  font-weight: 700;
}

.poll-btn.is-voted .poll-btn-pct {
  color: var(--club-primary, var(--accent));
  font-weight: 800;
}

.match-poll-bars {
  display: flex;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
  background: var(--line);
}

.poll-bar {
  display: block;
  height: 100%;
  min-width: 0;
  transition: width 0.25s ease;
}

.poll-bar-home {
  background: var(--club-primary, #1565c0);
}

.poll-bar-draw {
  background: #90a4ae;
}

.poll-bar-away {
  background: #546e7a;
}

.match-poll-note {
  margin: 6px 0 0;
}

.match-poll-wrap {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.match-poll-heading {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.match-day-discuss {
  margin-bottom: 10px;
}

.match-day-discuss[hidden] {
  display: none !important;
}

.match-day-discuss-card {
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--club-primary) 28%, var(--line));
  background: var(--card);
  padding: 10px 12px;
}

.match-day-discuss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.match-day-discuss-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.match-day-discuss-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--club-primary, var(--accent));
  text-decoration: none;
}

.match-day-discuss-link:hover {
  text-decoration: underline;
}

.match-day-discuss-sub {
  margin: 0 0 8px;
}

.match-day-preview {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.match-day-preview li {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text);
  padding: 6px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--club-primary) 6%, var(--bg));
}

.match-day-preview strong {
  margin-right: 4px;
  color: var(--club-primary, var(--accent-dark));
}

.tour-match-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tour-match-link:hover {
  background: color-mix(in srgb, var(--club-primary) 8%, var(--card));
}

.tour-match-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--club-primary) 50%, var(--line));
  outline-offset: -2px;
}

.match-detail {
  margin-top: 12px;
}

.match-page {
  max-width: 720px;
  padding-bottom: 28px;
}

.match-poll-slot,
.match-squad-links {
  margin: 14px 0;
}

.match-squad-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.match-chat-panel {
  margin-top: 18px;
}

.match-chat-compose {
  position: sticky;
  bottom: 0;
  margin-top: 8px;
  border-radius: 12px 12px 0 0;
}

.match-detail-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}

.match-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.match-detail-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.match-detail-status.is-live {
  color: #c62828;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.match-detail-status.is-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c62828;
  box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.55);
  animation: live-dot-pulse 1.4s ease-out infinite;
}

.match-detail-teams {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.match-detail-score {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

.match-detail-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.match-detail-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.match-detail-facts li span {
  color: var(--muted);
}

.match-detail-facts li strong {
  text-align: right;
  font-weight: 600;
}

.match-detail-events {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}

.match-detail-subhead {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.match-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.match-event {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.match-event:first-child {
  border-top: none;
  padding-top: 0;
}

.match-event-min {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.match-event-side {
  color: var(--muted);
  font-size: 11px;
}

.match-events-note {
  margin: 10px 0 0;
  font-size: 11px;
}

.commentators-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.commentator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
}

.commentator-name {
  font-size: 12px;
  font-weight: 600;
}

.commentator-votes {
  display: flex;
  gap: 6px;
}

.commentator-btn {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 11px;
  cursor: pointer;
}

.match-card-score {
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0;
}

.feed-comment.is-reply,
.chat-msg.is-reply {
  /* spacing handled by chat-msg rules */
}

.feed-comment-reply {
  margin-top: 0;
  padding: 2px 0;
  border: none;
  background: none;
  color: var(--club-primary, var(--accent));
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

:root[data-theme="dark"] .transfer-main strong {
  color: var(--text);
}

:root[data-theme="dark"] .subhead {
  color: color-mix(in srgb, var(--club-primary) 70%, #9ec5ff);
}

.comment-reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 0;
}

.comment-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 88%, var(--bg));
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
}

.comment-react-btn .twemoji {
  width: 15px;
  height: 15px;
}

.comment-react-btn span {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.85;
}

.comment-react-btn:hover,
.comment-react-btn.is-active {
  border-color: color-mix(in srgb, var(--club-primary, var(--accent)) 55%, var(--line));
  background: color-mix(in srgb, var(--club-primary, var(--accent)) 14%, var(--card));
}

.comment-reactions:empty {
  display: none;
}

.comment-react-flyout {
  position: fixed;
  z-index: 400;
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-md);
  animation: comment-react-pop 0.14s ease-out;
}

.comment-ctx-flyout {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  min-width: 196px;
}

.comment-ctx-emojis {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.comment-ctx-acts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.comment-ctx-acts button {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: none;
  background: none;
  text-align: left;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}

.comment-ctx-acts button:hover {
  background: color-mix(in srgb, var(--club-primary, #1565c0) 12%, transparent);
}

.comment-ctx-acts button.is-danger {
  color: #c62828;
}

@keyframes comment-react-pop {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.comment-react-flyout .comment-react-btn {
  width: 34px;
  height: 34px;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
}

.comment-react-flyout .twemoji {
  width: 20px;
  height: 20px;
}

.cup-fixtures-title {
  margin: 12px 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cup-group-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  overflow: visible;
  padding-bottom: 8px;
  margin-bottom: 0;
}

.cup-group-chips .tour-chip {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 5px 0;
  font-size: 12px;
}

.cup-standings-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tour-chip.is-mine-group:not(.is-active) {
  border-color: color-mix(in srgb, var(--club-primary) 35%, var(--line));
}

.cup-tour-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  margin-right: 4px;
  padding: 0 3px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--club-primary) 12%, var(--line));
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.panel-subtitle {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

:root[data-theme="dark"] .comment-react-btn {
  background: #3f3f3f;
  border-color: #5a5a5a;
  color: var(--text);
}

:root[data-theme="dark"] .comment-react-btn.is-active,
:root[data-theme="dark"] .comment-react-btn:hover {
  background: color-mix(in srgb, var(--club-primary, #3b82f6) 28%, #3a3a3a);
  border-color: color-mix(in srgb, var(--club-primary, #3b82f6) 45%, #666);
}

:root[data-theme="dark"] .comment-react-flyout {
  background: #3a3a3a;
  border-color: #555;
}

:root[data-theme="dark"] .news-comments-btn.has-unread .news-comments-unread {
  border-color: var(--card);
}

:root[data-theme="dark"] .feed-comment-reply {
  color: #7eb0f0;
}

.feed-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  margin: 8px 0;
}

.feed-images:has(.feed-image:only-child) {
  grid-template-columns: 1fr;
}

.feed-images:has(.feed-image:only-child) .feed-image {
  max-height: 360px;
  object-fit: contain;
  background: transparent;
}

