:root {
  --dark: #060606;
  --dark-2: #0b0b0c;
  --dark-3: #111112;
  --red: #3ca8ff;
  --red-soft: #2563eb;
  --cyan: #9edcff;
  --amber: #e4c16e;
  --text: #f5f7f6;
  --muted: #8d9492;
  --pill: #171818;
  --glass: rgba(10, 10, 10, 0.76);
  --panel: rgba(16, 16, 16, 0.92);
  --panel-soft: rgba(24, 24, 24, 0.92);
  --picker-min-height: 480px;
  --picker-max-height: min(calc(100vh - 170px), 700px);
  --chat-min-height: 660px;
  --chat-max-height: min(calc(100vh - 110px), 920px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--text);
  background: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.chat-modal-open,
body.embed-code-modal-open {
  overflow: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(60, 168, 255, 0.16), transparent 28%),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.05), transparent 30%),
    linear-gradient(180deg, #050505 0%, #090909 42%, #040404 100%);
  z-index: -2;
}

.site-header {
  padding: 18px 0 10px;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0));
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.brand:visited,
.brand:hover,
.brand:active,
.brand:focus {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #59ccff, #2b67f6);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #04111d;
  box-shadow: 0 12px 28px rgba(60, 168, 255, 0.22);
}

.brand-mark--image {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.brand-mark--image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: scale(1.28);
  transform-origin: center;
  filter: drop-shadow(0 12px 28px rgba(60, 168, 255, 0.22));
}

.brand-title {
  font-size: 18px;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 3px;
}

.top-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.top-link {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
}

.top-link:hover {
  opacity: 1;
}

.top-link-pill {
  background: linear-gradient(135deg, #53beff, #2b67f6);
  color: #04111d;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(60, 168, 255, 0.18);
}

.top-link-ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.main-content {
  flex: 1 0 auto;
  padding-bottom: 28px;
}

.site-alert {
  display: block;
  margin-top: 6px;
  margin-bottom: 12px;
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #a71f1f 0%, #8d1717 100%);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 30px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.site-alert:hover,
.site-alert:focus-visible {
  color: inherit;
  text-decoration: none;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.28);
}

.site-alert__body {
  color: rgba(255, 246, 246, 0.96);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.site-alert__label {
  font-weight: 700;
}

.site-alert__link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.container.is-fluid {
  width: min(100%, 1820px);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(22px, 2.6vw, 42px);
  padding-right: clamp(22px, 2.6vw, 42px);
}

.category-bar {
  margin-top: 2px;
  padding: 10px 0 12px;
  position: relative;
}

.category-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}

.category-scroll::-webkit-scrollbar {
  height: 6px;
}

.category-scroll::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 999px;
}

.category-pill {
  background: linear-gradient(180deg, #1a1f2f 0%, #121624 100%);
  color: var(--text);
  padding: 9px 18px 9px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.category-pill__icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.category-pill__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.category-pill__icon-image {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.92;
}

.category-pill__icon-image.is-native-color {
  filter: none;
  opacity: 1;
}

.category-pill__label {
  font-weight: 600;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 1px;
}

.category-pill__count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-family: "Work Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.category-pill__live-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.22);
  flex: 0 0 auto;
}

.category-pill__live-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2a2a;
  box-shadow: 0 0 8px rgba(255, 42, 42, 0.85);
}

.category-pill.active .category-pill__live-dot {
  background: rgba(0, 0, 0, 0.42);
}

.category-pill.active {
  background: linear-gradient(180deg, #53beff 0%, #2b67f6 100%);
  border-color: rgba(0, 0, 0, 0.6);
  color: #04111d;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
}

.category-pill.active .category-pill__icon {
  color: rgba(255, 255, 255, 0.98);
  background: rgba(0, 0, 0, 0.14);
}

.category-pill.active .category-pill__count {
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
}

.category-underline {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  width: 100%;
  margin-top: 4px;
}

.sidebar-kicker,
.player-kicker,
.sidebar-section-label {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.toolbar-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.toolbar-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 320px) 1fr;
  gap: 22px;
  align-items: start;
  min-height: 0;
  transition: grid-template-columns 0.32s ease, gap 0.32s ease;
}

.layout-grid.is-sidebar-collapsed {
  grid-template-columns: 92px 1fr;
  gap: 18px;
}

.content-stage {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(760px, 1fr) minmax(300px, 340px);
  gap: 18px;
  align-items: start;
}

.chat-rail {
  min-width: 0;
  position: relative;
}

.mobile-selection-bar {
  display: none;
}

.mobile-chat-launcher {
  display: none;
}

.chat-modal-backdrop {
  display: none;
}

.sidebar-panel {
  background: rgba(17, 20, 32, 0.74);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 24px;
  overflow: visible;
  height: auto;
  min-height: var(--picker-min-height);
  max-height: var(--picker-max-height);
  display: flex;
  flex-direction: column;
  width: 100%;
  transition:
    padding 0.28s ease,
    width 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    border-radius 0.28s ease;
  backdrop-filter: blur(14px);
}

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

.sidebar-header__copy {
  min-width: 0;
}

.sidebar-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  max-height: 52px;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.18s ease,
    transform 0.22s ease,
    max-height 0.22s ease,
    margin 0.22s ease,
    visibility 0s linear 0s;
}

.sidebar-toggle {
  appearance: none;
  position: absolute;
  top: calc(50% - 42px);
  right: -10px;
  transform: none;
  width: 20px;
  height: 84px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: none;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, rgba(29, 33, 51, 0.98), rgba(23, 27, 40, 0.98));
  z-index: 4;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-toggle:hover {
  background: linear-gradient(180deg, rgba(35, 40, 61, 0.98), rgba(26, 30, 46, 0.98));
  border-color: rgba(255, 255, 255, 0.16);
}

.sidebar-toggle span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transform: none;
}

.sidebar-count {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  max-height: 24px;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.18s ease,
    transform 0.22s ease,
    max-height 0.22s ease,
    margin 0.22s ease,
    visibility 0s linear 0s;
}

.sidebar-refresh-btn {
  position: relative;
  padding: 8px 14px;
  min-height: 38px;
}

.sidebar-refresh-btn.is-loading {
  color: transparent;
  pointer-events: none;
}

.sidebar-refresh-btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-top-color: rgba(255, 255, 255, 0.96);
  animation: spin 0.7s linear infinite;
}

.sidebar-search {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 48px;
  margin-bottom: 14px;
  max-height: none;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transform: none;
  position: relative;
  z-index: 2;
  transition:
    opacity 0.18s ease,
    transform 0.22s ease,
    max-height 0.22s ease,
    margin 0.22s ease,
    visibility 0s linear 0s;
}

.search-input {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  background: rgba(14, 16, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 12px;
  min-height: 46px;
  height: auto;
  padding: 12px 16px;
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  line-height: normal;
  box-sizing: border-box;
  appearance: none;
  box-shadow: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 2000px;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.18s ease,
    transform 0.22s ease,
    max-height 0.22s ease,
    margin 0.22s ease,
    visibility 0s linear 0s;
}

.sidebar-section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 2px;
}

.sidebar-section-top .sidebar-section-label {
  margin-bottom: 0;
}

.sidebar-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 15px;
  color: var(--red);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sidebar-section-label {
  margin-bottom: 12px;
}

.panel-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.panel-body.is-empty,
.panel-body.is-error {
  justify-content: center;
}

.panel-body.is-empty .panel-scroll,
.panel-body.is-error .panel-scroll {
  display: none;
}

.panel-scroll {
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}

.panel-scroll::-webkit-scrollbar {
  width: 6px;
}

.panel-scroll::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 999px;
}

.channel-card {
  background: rgba(13, 18, 25, 0.92);
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 68px;
}

.channel-card:hover:not(.is-disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.channel-card.active {
  border-color: rgba(77, 199, 255, 0.42);
  box-shadow: 0 18px 34px rgba(77, 199, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(17, 31, 47, 0.98), rgba(20, 22, 32, 0.96));
}

.channel-card.is-disabled {
  cursor: default;
  opacity: 0.88;
}

.channel-card:focus-visible,
.toolbar-btn:focus-visible,
.sidebar-toggle:focus-visible,
.watch-btn:focus-visible,
.category-pill:focus-visible,
.channel-country-group__button:focus-visible,
.chat-tab:focus-visible,
.chat-info-btn:focus-visible,
.chat-settings-btn:focus-visible,
.chat-message__action:focus-visible,
.chat-slow-select:focus-visible {
  outline: 2px solid rgba(77, 199, 255, 0.8);
  outline-offset: 2px;
}

.channel-card.is-upcoming {
  opacity: 0.9;
}

.event-section {
  display: grid;
  gap: 10px;
}

.event-section__header {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.event-section__label-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.event-section__label {
  font-family: "Rajdhani", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.96);
}

.event-section__count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.9;
}

.event-section__chevron {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.event-section__chevron svg {
  width: 18px;
  height: 18px;
  display: block;
}

.event-section__chevron.is-collapsed {
  transform: rotate(-90deg);
}

.event-section__body {
  display: grid;
  gap: 9px;
}

.channel-country-group {
  display: grid;
  gap: 8px;
  contain: layout paint;
  content-visibility: auto;
  contain-intrinsic-size: 54px;
}

.channel-country-group__button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid rgba(77, 199, 255, 0.5);
  background: linear-gradient(180deg, rgba(24, 28, 40, 0.96), rgba(20, 24, 35, 0.96));
  color: inherit;
  width: calc(100% - 8px);
  margin: 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.channel-country-group__button:hover {
  border-color: rgba(255, 255, 255, 0.1);
  border-left-color: rgba(77, 199, 255, 0.82);
  background: linear-gradient(180deg, rgba(28, 32, 44, 0.98), rgba(23, 28, 39, 0.98));
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

.channel-country-group__label {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
}

.channel-country-group__chevron {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(77, 199, 255, 0.92);
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
  flex: 0 0 auto;
}

.channel-country-group__chevron svg {
  width: 16px;
  height: 16px;
  display: block;
}

.channel-country-group__chevron.is-collapsed {
  transform: rotate(-90deg);
}

.channel-country-group__body {
  display: grid;
  gap: 9px;
  padding: 0 4px 2px;
  contain: layout paint;
}

.event-row {
  background: rgba(10, 18, 24, 0.96);
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 10px;
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
  animation: rise 0.5s ease forwards;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.event-row:hover:not(.is-disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.045);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.event-row.active {
  border-color: rgba(77, 199, 255, 0.18);
  box-shadow: 0 10px 24px rgba(77, 199, 255, 0.12);
}

.event-row.is-disabled {
  cursor: default;
  opacity: 0.85;
}

.event-row__main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.event-row__top {
  min-width: 0;
}

.event-row__meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: "Rajdhani", sans-serif;
}

.event-row__date {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.event-row__time {
  font-size: 15px;
  font-weight: 700;
  color: #3ca8ff;
  white-space: nowrap;
}

.event-row__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff4b4b;
}

.event-row__live-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff3838;
  box-shadow:
    0 0 0 8px rgba(255, 56, 56, 0.11),
    0 0 14px rgba(255, 56, 56, 0.16);
  flex: 0 0 auto;
}

.event-row__live-text {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
}

.event-row__participants {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.event-row__participant {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.event-row__participant-logo,
.event-row__participant-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.event-row__participant-logo {
  object-fit: contain;
  display: block;
}

.event-row__participant-badge {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #0b1720, #0f1b24);
  color: var(--red);
  font-family: "Rajdhani", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.event-row__participant-name {
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.18;
  color: rgba(255, 255, 255, 0.98);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-row__aside {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.event-row__watch {
  width: 78px;
  min-width: 78px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 9px;
  letter-spacing: 0.55px;
  background: linear-gradient(180deg, #53beff, #2b67f6);
  box-shadow: 0 5px 10px rgba(60, 168, 255, 0.16);
}

.channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.channel-info-stacked {
  align-items: flex-start;
}

.channel-copy {
  min-width: 0;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  flex-wrap: wrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3838;
  box-shadow: 0 0 8px rgba(255, 42, 42, 0.8);
  position: relative;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 42, 42, 0.7);
  animation: ping 1.4s ease infinite;
}

.event-time {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.event-time.live {
  color: #fff;
  text-transform: uppercase;
}

.channel-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #11181f;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--red);
}

.channel-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transform: translateZ(0);
}

.channel-name {
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}

.channel-country {
  font-size: 12px;
  color: var(--muted);
  word-break: break-word;
}

.watch-btn {
  background: var(--red);
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.watch-btn:disabled {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
}

.player-panel {
  background: rgba(16, 20, 32, 0.74);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
  min-height: 0;
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(14px);
}

.player-panel.is-idle .player-header {
  display: none;
}

.player-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.player-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.player-embed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(83, 190, 255, 0.18), rgba(43, 103, 246, 0.18));
  border-color: rgba(77, 199, 255, 0.28);
  color: #e8f7ff;
}

.player-embed-btn svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.player-embed-btn span {
  display: inline-block;
  line-height: 1;
}

.player-embed-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(83, 190, 255, 0.28), rgba(43, 103, 246, 0.24));
  border-color: rgba(77, 199, 255, 0.4);
}

.player-embed-btn.is-success {
  background: linear-gradient(180deg, rgba(77, 199, 255, 0.32), rgba(43, 103, 246, 0.28));
  border-color: rgba(77, 199, 255, 0.46);
  color: #ffffff;
}

.player-close-btn {
  appearance: none;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.player-close-btn:hover {
  background: rgba(77, 199, 255, 0.12);
  border-color: rgba(77, 199, 255, 0.28);
  transform: translateY(-1px);
}

.player-close-btn span {
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  margin-top: -2px;
}

.player-title {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
  margin-top: 4px;
}

.player-shell {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 420px;
  max-height: min(58vh, 620px);
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  border-radius: 16px;
  background: rgba(12, 15, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.player-sources {
  display: grid;
  gap: 10px;
  align-items: start;
}

.player-sources[hidden] {
  display: none !important;
}

.player-sources__label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.54);
}

.player-sources__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.player-source-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.player-source-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.player-source-btn.is-active {
  border-color: rgba(122, 196, 255, 0.46);
  background: linear-gradient(180deg, rgba(25, 79, 132, 0.78), rgba(14, 41, 78, 0.88));
  color: #f4fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.player-source-btn__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.player-epg {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.player-epg[hidden] {
  display: none !important;
}

.player-epg__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.player-epg__copy {
  min-width: 0;
}

.player-epg__label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.player-epg__title {
  margin-top: 3px;
  font-family: "Rajdhani", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  overflow-wrap: anywhere;
}

.player-epg__status {
  flex: 0 0 auto;
  max-width: 180px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(122, 196, 255, 0.1);
  border: 1px solid rgba(122, 196, 255, 0.18);
  color: rgba(226, 244, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.player-epg__list {
  display: grid;
  gap: 8px;
}

.player-epg__item {
  display: grid;
  grid-template-columns: minmax(86px, 118px) minmax(0, 1fr);
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 10, 18, 0.36);
}

.player-epg__item.is-current {
  border-color: rgba(122, 196, 255, 0.28);
  background: rgba(38, 111, 184, 0.14);
}

.player-epg__time {
  display: grid;
  align-content: start;
  gap: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.25;
}

.player-epg__badge {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-epg__item.is-current .player-epg__badge {
  background: rgba(122, 196, 255, 0.18);
  color: #ecf9ff;
}

.player-epg__main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
}

.player-epg__program-title {
  color: rgba(255, 255, 255, 0.93);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.player-epg__program-description {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.player-epg__progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.player-epg__progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(77, 199, 255, 0.85), rgba(128, 224, 255, 0.95));
}

.player-epg__empty {
  padding: 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.52);
  background: rgba(7, 10, 18, 0.34);
  font-size: 13px;
}

.player-placeholder {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  padding: 20px;
}

.player-placeholder.is-status-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  color: var(--text);
}

.player-status-card {
  width: min(100%, 620px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 20, 31, 0.88), rgba(10, 13, 22, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 44px rgba(0, 0, 0, 0.22);
}

.player-status-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.player-placeholder.is-warning .player-status-card__badge {
  color: #ffe6b3;
  border-color: rgba(255, 191, 71, 0.22);
  background: rgba(255, 191, 71, 0.08);
}

.player-placeholder.is-error .player-status-card__badge {
  color: #d5f3ff;
  border-color: rgba(77, 199, 255, 0.24);
  background: rgba(77, 199, 255, 0.1);
}

.player-status-card__title {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 700;
  line-height: 1.04;
  text-wrap: balance;
}

.player-status-card--compact {
  width: min(100%, 420px);
  gap: 10px;
  padding: 22px 18px;
}

.player-status-card__message {
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: balance;
}

.player-status-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.player-status-card__upcoming-meta {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.player-status-card__upcoming-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Rajdhani", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.player-status-card__upcoming-details {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.player-status__button {
  min-height: 40px;
  padding: 0 18px;
}

.player-status__button.is-muted {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.player-placeholder.is-upcoming {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  padding: 16px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.42), rgba(5, 7, 12, 0.78)),
    radial-gradient(circle at top left, rgba(77, 199, 255, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(60, 168, 255, 0.1), transparent 28%),
    linear-gradient(145deg, #080b10 0%, #101722 44%, #0b1117 100%);
}

.player-placeholder.is-upcoming::before,
.player-placeholder.is-upcoming::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.55;
}

.player-placeholder.is-upcoming::before {
  width: 180px;
  height: 180px;
  top: 0;
  left: -6%;
  background: rgba(77, 199, 255, 0.12);
}

.player-placeholder.is-upcoming::after {
  width: 180px;
  height: 180px;
  right: -5%;
  bottom: -6%;
  background: rgba(60, 168, 255, 0.1);
}

.embed-code-modal[hidden] {
  display: none !important;
}

.embed-code-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  background: #050912;
  contain: layout paint style;
  will-change: opacity;
  transition: opacity 0.18s ease;
}

.embed-code-modal.is-open {
  opacity: 1;
}

.embed-code-modal__card {
  position: relative;
  width: min(100%, 560px);
  display: grid;
  gap: 12px;
  padding: 24px 22px 22px;
  border-radius: 20px;
  border: 1px solid rgba(77, 199, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(13, 18, 31, 0.98), rgba(9, 13, 22, 0.98));
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.985);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition: transform 0.18s ease, opacity 0.18s ease;
  contain: layout paint;
}

.embed-code-modal.is-open .embed-code-modal__card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.embed-code-modal__close {
  appearance: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.embed-code-modal__close:hover,
.embed-code-modal__close:focus-visible {
  background: rgba(77, 199, 255, 0.12);
  border-color: rgba(77, 199, 255, 0.28);
  transform: translateY(-1px);
}

.embed-code-modal__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(176, 231, 255, 0.92);
}

.embed-code-modal__title {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: 32px;
  line-height: 0.98;
}

.embed-code-modal__copy {
  margin: 0;
  color: rgba(230, 238, 248, 0.7);
  font-size: 13px;
  line-height: 1.55;
}

.embed-code-modal__output {
  width: 100%;
  min-height: 164px;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(77, 199, 255, 0.16);
  background: rgba(7, 11, 19, 0.96);
  color: #eef6ff;
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  resize: none;
  outline: none;
  cursor: copy;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.embed-code-modal__output:focus {
  border-color: rgba(77, 199, 255, 0.48);
  box-shadow:
    0 0 0 3px rgba(77, 199, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.embed-code-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 2px;
}

.embed-code-modal__copy-btn {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(83, 190, 255, 0.18), rgba(43, 103, 246, 0.18));
  border-color: rgba(77, 199, 255, 0.28);
  color: #e8f7ff;
}

.embed-code-modal__copy-btn:hover:not(:disabled),
.embed-code-modal__copy-btn:focus-visible {
  background: linear-gradient(180deg, rgba(83, 190, 255, 0.28), rgba(43, 103, 246, 0.24));
  border-color: rgba(77, 199, 255, 0.4);
}

.app-toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  gap: 10px;
  justify-items: end;
  pointer-events: none;
}

.app-toast {
  min-width: min(320px, calc(100vw - 32px));
  max-width: min(360px, calc(100vw - 32px));
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(77, 199, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(12, 17, 28, 0.96), rgba(8, 12, 20, 0.98));
  box-shadow:
    0 20px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #eef8ff;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-toast.is-warning {
  border-color: rgba(255, 196, 88, 0.24);
}

.app-toast__title {
  font-family: "Rajdhani", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.app-toast__message {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(226, 235, 246, 0.72);
}

.share-prompt[hidden] {
  display: none !important;
}

.share-prompt {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 88;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.share-prompt.is-visible .share-prompt__card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.share-prompt__card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(77, 199, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(13, 18, 31, 0.97), rgba(8, 12, 20, 0.99));
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #eef8ff;
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.985);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

.share-prompt__close {
  appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.share-prompt__close:hover,
.share-prompt__close:focus-visible {
  background: rgba(77, 199, 255, 0.12);
  border-color: rgba(77, 199, 255, 0.26);
  transform: translateY(-1px);
}

.share-prompt__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(176, 231, 255, 0.9);
}

.share-prompt__title {
  margin: 0;
  padding-right: 32px;
  font-family: "Rajdhani", sans-serif;
  font-size: 28px;
  line-height: 0.95;
}

.share-prompt__copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(226, 235, 246, 0.74);
}

.share-prompt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.share-prompt__primary,
.share-prompt__secondary {
  min-height: 38px;
  border-radius: 11px;
}

.share-prompt__primary {
  background: linear-gradient(180deg, rgba(83, 190, 255, 0.18), rgba(43, 103, 246, 0.18));
  border-color: rgba(77, 199, 255, 0.28);
  color: #e8f7ff;
}

.share-prompt__primary:hover:not(:disabled),
.share-prompt__primary:focus-visible {
  background: linear-gradient(180deg, rgba(83, 190, 255, 0.28), rgba(43, 103, 246, 0.24));
  border-color: rgba(77, 199, 255, 0.4);
}

.share-prompt__secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(231, 238, 248, 0.82);
}

.share-prompt__secondary:hover:not(:disabled),
.share-prompt__secondary:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 640px) {
  .share-prompt {
    right: 14px;
    left: 14px;
    bottom: 14px;
    width: auto;
  }

  .share-prompt__card {
    padding: 16px 16px 15px;
    border-radius: 16px;
  }

  .share-prompt__title {
    font-size: 24px;
  }

  .share-prompt__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.player-upcoming {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-upcoming__content {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 20px 20px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(14, 18, 29, 0.82), rgba(10, 13, 21, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.player-upcoming__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.player-upcoming__matchup {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.player-upcoming__participant {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.player-upcoming__participant-marker {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  padding: 8px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.player-upcoming__participant-marker .event-row__participant-badge {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

.player-upcoming__participant-marker .event-row__participant-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-upcoming__participant-name {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  text-wrap: balance;
}

.player-upcoming__versus {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1.8px;
  text-shadow: none;
}

.player-upcoming__title {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
}

.player-upcoming__countdown-wrap {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.player-upcoming__subtitle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.player-upcoming__countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  letter-spacing: 0.8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.player-upcoming__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.player-upcoming__fact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.82);
}

.player-upcoming__fact--time {
  color: var(--cyan);
}

.player-upcoming__reminder {
  min-height: 36px;
  padding: 0 16px;
  margin-top: 2px;
}

.player-upcoming__reminder.is-active {
  background: rgba(77, 199, 255, 0.12);
  color: #c5efff;
  border-color: rgba(77, 199, 255, 0.24);
}

.player-loading {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 16, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  z-index: 3;
}

.player-loading.active {
  display: flex;
}

.player-skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 28px;
  z-index: 2;
}

.player-skeleton[hidden] {
  display: none;
}

.player-skeleton__badge {
  width: 124px;
  height: 30px;
  border-radius: 999px;
}

.player-skeleton__hero {
  width: 100%;
  min-height: min(42vw, 360px);
  border-radius: 22px;
}

.player-skeleton__lines {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.player-skeleton__line {
  width: min(100%, 360px);
  height: 16px;
  border-radius: 999px;
}

.player-skeleton__line--short {
  width: min(100%, 220px);
}

#playerFrame {
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

#playerFrame.active {
  display: block;
}

body.embed-code-modal-open #playerFrame.active {
  visibility: hidden;
}

.chat-panel {
  background: rgba(14, 17, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 24px;
  min-height: var(--chat-min-height);
  height: auto;
  max-height: var(--chat-max-height);
  overflow: hidden;
  overscroll-behavior: contain;
  backdrop-filter: blur(14px);
  isolation: isolate;
}

.chat-panel.is-identity-gated > :not(.chat-identity-overlay) {
  filter: blur(12px);
  opacity: 0.34;
  pointer-events: none;
  user-select: none;
  transform: scale(0.985);
  transition:
    filter 0.22s ease,
    opacity 0.22s ease,
    transform 0.22s ease;
}

.chat-identity-overlay[hidden] {
  display: none !important;
}

.chat-identity-overlay {
  position: absolute;
  inset: 0;
  z-index: 16;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(4, 6, 10, 0.36), rgba(4, 6, 10, 0.54)),
    rgba(9, 12, 18, 0.18);
  backdrop-filter: blur(18px);
}

.chat-identity-card {
  width: min(100%, 360px);
  padding: 22px 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(77, 199, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(17, 18, 19, 0.98), rgba(12, 13, 14, 0.98));
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chat-identity-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(176, 231, 255, 0.9);
}

.chat-identity-title {
  margin: 10px 0 8px;
  font-family: "Rajdhani", sans-serif;
  font-size: 28px;
  line-height: 0.96;
  letter-spacing: 0.2px;
}

.chat-identity-copy {
  margin: 0;
  color: rgba(242, 246, 239, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

.chat-identity-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.chat-identity-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(242, 246, 239, 0.7);
}

.chat-identity-input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(77, 199, 255, 0.16);
  background: rgba(9, 14, 24, 0.94);
  color: #eef8ff;
  font-size: 15px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chat-identity-input:focus {
  border-color: rgba(77, 199, 255, 0.5);
  box-shadow:
    0 0 0 3px rgba(77, 199, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.chat-identity-input::placeholder {
  color: rgba(213, 243, 255, 0.42);
}

.chat-identity-note {
  color: rgba(242, 246, 239, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.chat-identity-note code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #f2f6ef;
}

.chat-identity-error[hidden] {
  display: none !important;
}

.chat-identity-error {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(77, 199, 255, 0.24);
  background: rgba(77, 199, 255, 0.12);
  color: #d8f4ff;
  font-size: 12px;
  line-height: 1.45;
}

.chat-identity-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.chat-identity-button {
  appearance: none;
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    opacity 0.16s ease;
}

.chat-identity-button:hover,
.chat-identity-button:focus-visible {
  transform: translateY(-1px);
}

.chat-identity-button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.chat-identity-button--ghost {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(242, 246, 239, 0.9);
}

.chat-identity-button--primary {
  background: linear-gradient(180deg, #53beff, #2b67f6);
  color: #04111d;
  box-shadow: 0 10px 20px rgba(60, 168, 255, 0.2);
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.chat-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.chat-info-btn {
  appearance: none;
  position: relative;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.chat-info-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 20, 0.96);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 6;
}

.chat-info-btn:hover::after,
.chat-info-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-close-btn {
  display: none;
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  position: relative;
}

.chat-close-btn::before,
.chat-close-btn::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 10px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.chat-close-btn::before {
  transform: rotate(45deg);
}

.chat-close-btn::after {
  transform: rotate(-45deg);
}

.chat-status-note[hidden],
.chat-room-state[hidden],
.chat-settings-panel[hidden],
.chat-history-panel[hidden],
.chat-unread[hidden] {
  display: none !important;
}

.chat-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
}

.chat-subtitle {
  display: none;
}

.chat-presence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.chat-presence.is-connected {
  background: rgba(77, 199, 255, 0.12);
  border-color: rgba(77, 199, 255, 0.24);
  color: #dcf5ff;
}

.chat-presence.is-warning {
  background: rgba(255, 191, 71, 0.14);
  border-color: rgba(255, 191, 71, 0.26);
  color: #ffe2a3;
}

.chat-presence.is-blocked {
  background: rgba(77, 199, 255, 0.14);
  border-color: rgba(77, 199, 255, 0.28);
  color: #d5f3ff;
}

.chat-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chat-tab:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.chat-tab.is-active {
  background: rgba(77, 199, 255, 0.16);
  border-color: rgba(77, 199, 255, 0.42);
  color: #fff;
}

.chat-tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-status-note {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.chat-status-note.is-warning {
  background: rgba(255, 191, 71, 0.14);
  border-color: rgba(255, 191, 71, 0.24);
  color: #ffe1a1;
}

.chat-status-note.is-danger {
  background: rgba(77, 199, 255, 0.14);
  border-color: rgba(77, 199, 255, 0.28);
  color: #d5f3ff;
}

.chat-status-note.is-success {
  background: rgba(77, 199, 255, 0.12);
  border-color: rgba(77, 199, 255, 0.24);
  color: #d5f3ff;
}

.chat-room-state {
  display: block;
  order: 5;
  margin-top: 0;
  padding: 0 2px;
  color: rgba(255, 191, 71, 0.92);
  font-size: 12px;
  line-height: 1.4;
}

.chat-room-state.is-slow {
  color: #ffe1a1;
}

.chat-unread {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  background: rgba(77, 199, 255, 0.95);
  border-color: rgba(77, 199, 255, 0.95);
  color: transparent;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 10px 18px rgba(60, 168, 255, 0.24);
  z-index: 3;
}

.chat-unread::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.chat-unread::after {
  content: attr(data-count);
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: #121620;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  opacity: 0;
  transform: scale(0.85);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-unread[data-count]:not([data-count=""])::after {
  opacity: 1;
  transform: scale(1);
}

.chat-settings-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 72px;
  z-index: 12;
  display: grid;
  gap: 10px;
  padding: 14px 16px 12px;
  border-radius: 14px 14px 12px 12px;
  background: rgba(16, 18, 28, 0.985);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.32);
  max-height: min(44vh, 320px);
  overflow-y: auto;
}

.chat-settings-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.chat-settings-title {
  font-family: "Work Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.98);
  text-align: center;
}

.chat-settings-back {
  appearance: none;
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.chat-settings-back::before {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateX(1px) rotate(45deg);
}

.chat-settings-section-title {
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #c8dbff;
  letter-spacing: 0;
}

.chat-settings-close {
  appearance: none;
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.chat-settings-close::before,
.chat-settings-close::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.chat-settings-close::before {
  transform: rotate(45deg);
}

.chat-settings-close::after {
  transform: rotate(-45deg);
}

.chat-settings-list {
  display: grid;
  gap: 0;
}

.chat-settings-view {
  display: grid;
  gap: 12px;
}

.chat-settings-view[hidden] {
  display: none !important;
}

.chat-settings-description {
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.chat-settings-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: none;
}

.chat-settings-item__copy {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: start;
}

.chat-settings-item__label {
  grid-column: 1 / 2;
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.98);
}

.chat-settings-item__value {
  grid-column: 2 / 3;
  justify-self: end;
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
}

.chat-settings-item__note {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.54);
}

.chat-settings-subtitle {
  margin-top: 6px;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.76);
}

.chat-settings-nav {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 6px 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.98);
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.chat-settings-nav__chevron {
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
  line-height: 1;
}

.chat-admin-tools {
  display: grid;
  gap: 2px;
  padding: 4px 0 0;
}

.chat-admin-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.chat-admin-label {
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.98);
}

.chat-slow-select-wrap {
  min-width: 0;
}

.chat-slow-select {
  min-height: 34px;
  border-radius: 8px;
  background: rgba(20, 22, 32, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
}

.chat-admin-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

#chatApplySlowModeBtn {
  justify-self: start;
}

.chat-history-panel {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 220px;
  overflow-y: auto;
}

.chat-history-list {
  display: grid;
  gap: 0;
  padding: 6px 0 0;
}

.chat-history-item {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-history-item.is-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 12px 0 4px;
  border-bottom: none;
}

.chat-history-item__main,
.chat-history-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-history-item__main strong {
  text-transform: capitalize;
  font-size: 14px;
  font-weight: 600;
}

.chat-history-item__meta {
  color: var(--muted);
  font-size: 12px;
}

.chat-option-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-option-row {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 9px 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: rgba(255, 255, 255, 0.98);
  text-align: left;
  cursor: pointer;
}

.chat-option-row__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.chat-option-row__label {
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.chat-option-row__radio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.46);
  position: relative;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.chat-option-row.is-active .chat-option-row__radio {
  border-color: #3ca8ff;
}

.chat-option-row.is-active .chat-option-row__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: #3ca8ff;
}

.chat-feed-shell {
  order: 4;
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
}

.chat-loading {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 4px 0 56px;
}

.chat-loading[hidden] {
  display: none;
}

.chat-loading__row {
  display: grid;
  gap: 8px;
}

.chat-loading__name {
  width: 124px;
  height: 12px;
  border-radius: 999px;
}

.chat-loading__text {
  width: 100%;
  height: 30px;
  border-radius: 12px;
}

.chat-loading__text--short {
  width: 72%;
}

.chat-feed {
  min-height: 0;
  flex: 1 1 auto;
  max-height: none;
  overflow-y: auto;
  padding: 0 0 56px;
  display: grid;
  gap: 0;
  align-content: start;
  background: transparent;
  border: none;
  border-radius: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.chat-feed::-webkit-scrollbar {
  width: 6px;
}

.chat-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.chat-empty {
  order: 5;
  display: none;
  padding: 2px 0 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 13px;
  color: var(--muted);
}

.chat-empty.active {
  display: block;
}

.chat-form {
  order: 8;
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 9;
}

.chat-join-gate {
  order: 8;
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 9;
}

.chat-join-btn {
  width: 100%;
  min-height: 42px;
  background: linear-gradient(180deg, #53beff, #2b67f6);
  border-color: rgba(77, 199, 255, 0.36);
  color: #04111d;
  box-shadow: 0 12px 24px rgba(60, 168, 255, 0.16);
}

.chat-join-btn:hover {
  background: linear-gradient(180deg, #68c8ff, #3571ff);
  border-color: rgba(77, 199, 255, 0.5);
}

.chat-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding-right: 2px;
}

.chat-settings-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  outline: none;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.chat-settings-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

.chat-settings-btn.is-active {
  color: rgba(255, 255, 255, 0.98);
}

.mobile-selection-bar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(12, 16, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.mobile-selection-back {
  min-height: 36px;
  padding: 0 14px;
}

.mobile-breadcrumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.4px;
  overflow: hidden;
}

.mobile-breadcrumb {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-breadcrumb-current {
  color: rgba(255, 255, 255, 0.94);
}

.mobile-breadcrumb-separator {
  color: rgba(255, 255, 255, 0.34);
}

.mobile-chat-launcher {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(12, 16, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-chat-launcher__copy {
  min-width: 0;
}

.mobile-chat-launcher__title {
  font-family: "Rajdhani", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.mobile-chat-launcher__subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.mobile-chat-open {
  min-height: 38px;
  padding: 0 16px;
  white-space: nowrap;
}

.chat-composer {
  position: relative;
  min-width: 0;
  width: 100%;
}

.chat-input {
  display: block;
  width: 100%;
  background: rgba(14, 16, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 12px;
  min-height: 52px;
  max-height: 148px;
  padding: 13px 16px 22px;
  line-height: 1.45;
  resize: none;
  overflow-y: hidden;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.chat-char-count {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.chat-char-count.is-warning {
  color: #ffd68a;
}

.chat-char-count.is-danger {
  color: #9edcff;
}

.chat-send {
  min-width: 88px;
  min-height: 42px;
  padding: 0 18px;
}

.picker-skeleton {
  width: 100%;
  display: grid;
  gap: 12px;
}

.picker-skeleton__header {
  width: 118px;
  height: 14px;
  border-radius: 999px;
}

.picker-skeleton__row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 76px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(12, 16, 24, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.picker-skeleton__badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.picker-skeleton__copy {
  display: grid;
  gap: 8px;
}

.picker-skeleton__line {
  width: 100%;
  height: 11px;
  border-radius: 999px;
}

.picker-skeleton__line--short {
  width: 72%;
}

.picker-skeleton__action {
  width: 76px;
  height: 32px;
  border-radius: 999px;
}

.player-shell.is-upcoming-shell {
  min-height: 300px;
  max-height: min(56vh, 420px);
}

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

  .layout-grid.is-sidebar-collapsed .content-stage.has-inline-chat-rail {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  }

  .mobile-chat-launcher:not([hidden]) {
    display: flex;
  }

  .chat-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, calc(100vw - 28px));
    max-width: 420px;
    height: 100dvh;
    min-height: 100dvh;
    z-index: 60;
    border-radius: 18px 0 0 18px;
    padding: 16px;
    background: rgba(12, 16, 28, 0.98);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    overscroll-behavior: contain;
    max-height: none;
  }

  .chat-identity-overlay {
    padding: 16px;
  }

  .chat-identity-card {
    width: min(100%, 372px);
    padding: 20px 18px 16px;
  }

  body.chat-modal-open .chat-panel {
    display: flex;
  }

  .chat-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 14, 0.42);
    z-index: 55;
  }

  body.chat-modal-open .chat-modal-backdrop {
    display: block;
  }

  .chat-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .layout-grid.is-sidebar-collapsed .content-stage.has-inline-chat-rail .chat-panel {
    display: flex;
    position: sticky;
    top: 24px;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    height: auto;
    min-height: var(--chat-min-height);
    max-height: var(--chat-max-height);
    border-radius: 16px;
    padding: 14px;
    background: rgba(14, 17, 28, 0.72);
    box-shadow: none;
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .layout-grid.is-sidebar-collapsed .content-stage.has-inline-chat-rail .chat-close-btn {
    display: none;
  }
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-message {
  display: block;
  padding: 2px 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-message:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.chat-message__body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px;
}

.chat-message__main {
  min-width: 0;
  display: grid;
  gap: 0;
}

.chat-message__line {
  display: block;
  min-width: 0;
}

.chat-message__meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.34);
  padding-left: 0;
}

.chat-message__author {
  font-weight: 700;
  color: var(--red);
  display: inline;
  margin-right: 4px;
  font-size: 13px;
}

.chat-message__time {
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.chat-message__text {
  display: inline;
  font-size: 13px;
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.94);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message__actions {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  align-self: start;
}

.chat-message__action {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 10px;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chat-message__action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.chat-message__action svg {
  width: 13px;
  height: 13px;
  display: block;
}

.chat-message__action.is-danger {
  color: #d5f3ff;
  border-color: rgba(77, 199, 255, 0.24);
  background: rgba(77, 199, 255, 0.08);
}

.site-footer {
  flex-shrink: 0;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 16px;
  align-items: center;
}

.footer-copy {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--red);
  font-size: 12px;
  text-decoration: none;
}

.footer-brand {
  text-align: right;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 14, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}

.loading-overlay.active {
  display: flex;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loading-text {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.skeleton-box {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.skeleton-box::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  animation: shimmer 1.2s ease-in-out infinite;
}

.panel-empty,
.panel-error {
  display: none;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.panel-empty.active,
.panel-error.active {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  padding: 24px;
  text-align: center;
}

.sidebar-panel.is-collapsed {
  padding: 16px 10px 16px 12px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(17, 20, 32, 0.9);
  overflow: visible;
}

.sidebar-panel.is-collapsed .sidebar-search,
.sidebar-panel.is-collapsed .sidebar-section,
.sidebar-panel.is-collapsed .sidebar-toolbar,
.sidebar-panel.is-collapsed .sidebar-header__actions,
.sidebar-panel.is-collapsed .sidebar-count {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-10px);
  max-height: 0;
  margin: 0;
  overflow: hidden;
  transition:
    opacity 0.18s ease,
    transform 0.22s ease,
    max-height 0.22s ease,
    margin 0.22s ease,
    visibility 0s linear 0.22s;
}

.sidebar-panel.is-collapsed .sidebar-header {
  height: 100%;
  min-height: calc(var(--picker-min-height) - 32px);
  margin-bottom: 0;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

.sidebar-panel.is-collapsed .sidebar-header__copy {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: auto 0;
}

.sidebar-panel.is-collapsed .sidebar-kicker {
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 2.2px;
}

.sidebar-panel.is-collapsed .sidebar-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 18px;
  line-height: 0.9;
  letter-spacing: 1.6px;
}

.sidebar-panel.is-collapsed .sidebar-toggle {
  position: absolute;
  top: calc(50% - 56px);
  right: -10px;
  transform: none;
  width: 20px;
  height: 112px;
  border-radius: 0 12px 12px 0;
  border-left: none;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(30, 34, 52, 0.98), rgba(22, 25, 39, 0.98));
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.login-card {
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  width: min(420px, 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.login-card--wide {
  width: min(560px, 100%);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.login-brand:visited,
.login-brand:hover,
.login-brand:active,
.login-brand:focus {
  color: inherit;
  text-decoration: none;
}

.login-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.login-subtitle {
  color: var(--muted);
  margin-bottom: 24px;
}

.login-input {
  background: rgba(14, 16, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.login-label {
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.login-button {
  width: 100%;
  background: var(--red);
  border: none;
  color: #fff;
  font-weight: 600;
}

.login-button-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--text) !important;
}

.login-actions {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.login-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.account-panel {
  display: none;
  margin-top: 20px;
}

.account-panel.active {
  display: block;
}

.account-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 80px;
}

.account-card {
  background: rgba(16, 18, 30, 0.95);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-card--wide {
  width: min(840px, 100%);
}

.account-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.account-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
}

.account-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.account-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

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

.account-grid--stacked {
  margin-bottom: 0;
}

.account-field {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.account-field--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.account-actions--compact {
  margin-bottom: 0;
}

.account-button {
  background: var(--red);
  border: none;
  color: #fff;
  font-weight: 600;
}

.account-button.is-secondary {
  background: rgba(255, 255, 255, 0.12);
}

.account-copy-label {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.account-copy-label:hover,
.account-copy-label:focus-visible {
  color: rgba(255, 255, 255, 0.92);
}

.account-copy-label:disabled {
  opacity: 0.45;
  cursor: default;
}

.account-setup {
  display: none;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.account-setup.active {
  display: block;
}

.account-setup-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  margin-bottom: 12px;
}

.account-setup-body {
  display: grid;
  gap: 12px;
}

.account-qr {
  width: 160px;
  height: 160px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
}

.account-secret {
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 2px;
  font-size: 14px;
}

.account-hint {
  font-size: 12px;
  color: var(--muted);
}

.account-input {
  background: rgba(14, 16, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.account-message {
  font-size: 12px;
  color: var(--muted);
}

.account-note {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.account-mono {
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.5px;
  color: var(--text);
  word-break: break-all;
}

@media (max-width: 720px) {
  .account-grid--details {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1280px) {
  .layout-grid {
    grid-template-columns: minmax(260px, 300px) 1fr;
    gap: 18px;
  }

  .layout-grid.is-sidebar-collapsed {
    grid-template-columns: 76px 1fr;
  }

  .player-shell {
    min-height: 360px;
    max-height: min(56vh, 560px);
  }

  .player-upcoming__content {
    width: min(100%, 520px);
    padding: 18px 18px 20px;
  }

  .player-upcoming__participant-marker {
    width: 64px;
    height: 64px;
  }

  .player-upcoming__participant-name {
    font-size: clamp(15px, 1.6vw, 18px);
  }

  .player-upcoming__versus {
    font-size: clamp(16px, 1.4vw, 20px);
  }
}

@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .layout-grid.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .content-stage {
    grid-template-columns: 1fr;
  }

  .sidebar-panel.is-collapsed {
    min-height: 0;
  }

  .sidebar-panel.is-collapsed .sidebar-search {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    max-height: 72px;
    margin-bottom: 12px;
  }

  .sidebar-panel.is-collapsed .sidebar-section {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    max-height: 2000px;
  }

  .sidebar-panel.is-collapsed .sidebar-toolbar,
  .sidebar-panel.is-collapsed .sidebar-header__actions,
  .sidebar-panel.is-collapsed .sidebar-count {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    margin: 0;
  }

  .sidebar-panel.is-collapsed .sidebar-toolbar {
    display: block;
    max-height: 72px;
  }

  .sidebar-panel.is-collapsed .sidebar-header__actions {
    display: flex;
    max-height: 52px;
  }

  .sidebar-panel.is-collapsed .sidebar-count {
    display: block;
    max-height: 24px;
    margin-top: 6px;
  }

  .sidebar-panel.is-collapsed .sidebar-header {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .player-panel {
    height: auto;
    min-height: 360px;
  }

  .sidebar-panel {
    position: static;
    max-height: var(--picker-max-height);
  }

  .event-section__label {
    font-size: 17px;
  }

  .event-row {
    grid-template-columns: minmax(0, 1fr) 94px;
    padding: 12px 13px;
    gap: 10px;
  }

  .event-row__participant-name {
    font-size: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .player-epg {
    padding: 12px;
  }

  .player-epg__header {
    display: grid;
    justify-content: stretch;
  }

  .player-epg__status {
    width: fit-content;
    max-width: 100%;
  }

  .player-epg__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .input,
  .search-input,
  .chat-input,
  .chat-slow-select,
  select,
  textarea,
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="password"],
  input[type="number"] {
    font-size: 16px !important;
  }

  .header-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }

  .top-links {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: end;
    align-items: start;
    gap: 8px 10px;
    margin-left: auto;
  }

  .top-links .top-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-subtitle {
    letter-spacing: 2px;
  }

  #accountLink,
  #logoutLink {
    margin: 0;
  }

  #accountLink {
    padding: 7px 14px;
    font-size: 12px;
  }

  #logoutLink {
    padding: 7px 14px;
    font-size: 12px;
  }

  .category-underline {
    width: 160px;
  }

  .panel-scroll {
    max-height: 420px;
  }

  .player-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-presence {
    align-self: flex-start;
  }

  .chat-admin-controls,
  .chat-history-item__main,
  .chat-history-item__meta {
    align-items: flex-start;
  }

  .chat-admin-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-slow-select-wrap {
    width: 100%;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar-header__actions {
    padding-right: 0;
  }

  .layout-grid.is-sidebar-collapsed {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  body.is-mobile-selection-active .category-bar,
  body.is-mobile-selection-active .sidebar-panel {
    display: none !important;
  }

  .content-stage {
    display: block;
  }

  .mobile-selection-bar {
    display: none;
  }

  body.is-mobile-selection-active .mobile-selection-bar {
    display: flex;
  }

  .sidebar-panel.is-collapsed {
    height: auto;
    padding: 16px;
  }

  .sidebar-panel.is-collapsed .sidebar-search {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    max-height: 72px;
    margin-bottom: 12px;
  }

  .sidebar-panel.is-collapsed .sidebar-section {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    max-height: 2000px;
  }

  .sidebar-panel.is-collapsed .sidebar-toolbar,
  .sidebar-panel.is-collapsed .sidebar-header__actions,
  .sidebar-panel.is-collapsed .sidebar-count {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    margin: 0;
  }

  .sidebar-panel.is-collapsed .sidebar-toolbar {
    display: block;
    max-height: 72px;
  }

  .sidebar-panel.is-collapsed .sidebar-header__actions {
    display: flex;
    max-height: 52px;
  }

  .sidebar-panel.is-collapsed .sidebar-count {
    display: block;
    max-height: 24px;
    margin-top: 6px;
  }

  .sidebar-panel.is-collapsed .sidebar-header {
    height: auto;
    margin-bottom: 16px;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
  }

  .sidebar-panel.is-collapsed .sidebar-header > div {
    height: auto;
  }

  .sidebar-panel.is-collapsed .sidebar-title {
    font-size: 15px;
    writing-mode: initial;
    transform: none;
    letter-spacing: 1px;
  }

  .sidebar-panel.is-collapsed .sidebar-kicker,
  .sidebar-panel.is-collapsed .sidebar-count {
    display: block;
  }

  .sidebar-section-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .event-section__label {
    font-size: 16px;
  }

  .event-row {
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 10px;
    align-items: start;
  }

  .event-row__participant-name {
    font-size: 13px;
  }

  .event-row__aside {
    align-self: start;
    justify-content: flex-end;
  }

  .event-row__watch {
    width: 86px;
    min-width: 86px;
    min-height: 34px;
  }

  .event-row__participant {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 9px;
  }

  .event-row__participant-logo,
  .event-row__participant-badge {
    width: 26px;
    height: 26px;
  }

  .player-panel {
    padding: 14px;
    gap: 12px;
    min-height: 0;
  }

  .player-header {
    gap: 10px;
  }

  .player-title {
    font-size: 22px;
  }

  .player-shell {
    min-height: min(56vw, 260px);
    border-radius: 14px;
    max-height: none;
  }

  .player-shell.is-upcoming-shell {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    max-height: none;
  }

  .player-placeholder.is-upcoming {
    min-height: 0;
  }

  .player-status-card {
    width: 100%;
    padding: 22px 18px;
    gap: 12px;
  }

  .player-status-card__title {
    font-size: clamp(24px, 5vw, 34px);
  }

  .player-status-card__message {
    font-size: 14px;
  }

  .mobile-chat-launcher {
    display: none;
  }

  .mobile-chat-launcher:not([hidden]) {
    display: flex;
  }

  .chat-rail {
    display: block;
  }

  .chat-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc(100vw - 24px);
    max-width: 420px;
    height: 100dvh;
    min-height: 100dvh;
    z-index: 60;
    border-radius: 18px 0 0 18px;
    padding: 16px;
    background: rgba(12, 16, 28, 0.98);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .chat-identity-overlay {
    padding: 14px;
  }

  .chat-identity-title {
    font-size: 24px;
  }

  body.chat-modal-open .chat-panel {
    display: flex;
  }

  .chat-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 14, 0.42);
    z-index: 55;
  }

  body.chat-modal-open .chat-modal-backdrop {
    display: block;
  }

  .chat-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .chat-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px 12px;
  }

  .chat-header-actions {
    display: grid;
    justify-items: end;
    gap: 8px;
  }

  .chat-close-btn {
    order: -1;
  }

  .chat-admin-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .chat-admin-label {
    grid-column: 1 / -1;
  }

  .chat-slow-select-wrap {
    max-width: 96px;
  }

  #chatApplySlowModeBtn {
    justify-self: end;
  }

  #chatHistoryToggleBtn {
    justify-self: start;
  }

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

  .chat-settings-item {
    align-items: flex-start;
  }

  .chat-message__actions {
    flex-direction: row;
    justify-self: end;
  }

  .player-placeholder.is-upcoming {
    padding: 14px;
  }

  .player-upcoming__content {
    width: 100%;
    gap: 8px;
    padding: 14px 12px 16px;
    border-radius: 20px;
  }

  .player-upcoming__matchup {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .player-upcoming__participant-marker {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    padding: 8px;
  }

  .player-upcoming__participant-marker .event-row__participant-badge {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .player-upcoming__participant-name {
    font-size: 16px;
  }

  .player-upcoming__versus {
    font-size: 28px;
  }

  .player-upcoming__subtitle {
    font-size: 10px;
  }

  .player-upcoming__countdown {
    min-height: 34px;
    padding: 0 10px;
    font-size: clamp(13px, 3.4vw, 16px);
    max-width: 100%;
    white-space: nowrap;
  }

  .player-upcoming__fact {
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }

  .player-upcoming__reminder {
    min-height: 38px;
    padding: 0 16px;
  }

  .chat-settings-panel {
    left: 16px;
    right: 16px;
    bottom: 86px;
    max-height: min(40vh, 280px);
  }
}

@media (max-width: 520px) {
  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 12px;
    letter-spacing: 1.8px;
  }

  .top-links {
    gap: 8px;
  }

  #accountLink,
  #logoutLink {
    padding: 7px 12px;
    font-size: 11px;
  }

  .category-pill {
    padding: 8px 14px;
    font-size: 12px;
  }

  .category-pill__icon,
  .category-pill__icon svg,
  .category-pill__icon-image {
    width: 20px;
    height: 20px;
  }

  .category-pill__icon svg,
  .category-pill__icon-image {
    width: 14px;
    height: 14px;
  }

  .channel-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .watch-btn {
    align-self: flex-end;
  }

  .event-row {
    padding: 11px 12px;
  }

  .event-row__meta {
    gap: 6px;
  }

  .event-row__date {
    font-size: 12px;
  }

  .event-row__time,
  .event-row__live-text {
    font-size: 13px;
  }

  .chat-panel {
    padding: 14px;
  }

  .chat-title {
    font-size: 20px;
  }

  .chat-form-actions {
    gap: 10px;
  }

  .chat-feed {
    min-height: 180px;
    max-height: 260px;
    padding: 2px 0 52px;
  }

  .chat-admin-tools {
    gap: 6px;
  }

  .chat-room-state,
  .chat-status-note,
  .chat-message__meta,
  .chat-message__text {
    font-size: 12px;
  }

  .player-upcoming__participant-marker {
    width: 72px;
    height: 72px;
    padding: 8px;
  }

  .player-upcoming__participant-marker .event-row__participant-badge {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .player-upcoming__participant-name {
    font-size: 15px;
  }

  .player-upcoming__countdown {
    min-height: 36px;
    padding: 0 10px;
    font-size: 15px;
  }

  .player-upcoming__reminder {
    width: 100%;
  }

  .player-upcoming__fact {
    font-size: 12px;
  }
}
