:root {
  --dark: #1d1d1d;
  --dark-2: #101820;
  --dark-3: #0b1116;
  --red: #ff2a2a;
  --red-soft: #d91f1f;
  --cyan: #4dc7ff;
  --amber: #ffbf47;
  --text: #f1f1f1;
  --muted: #98a4ad;
  --pill: #202a31;
  --glass: rgba(12, 18, 24, 0.72);
  --panel: rgba(20, 22, 35, 0.88);
  --panel-soft: rgba(26, 28, 44, 0.85);
  --picker-min-height: 480px;
  --picker-max-height: min(calc(100vh - 170px), 700px);
  --livepass-native-bottom-nav-height: 0px;
  --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;
}

html.access-modal-open,
body.chat-modal-open,
body.access-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 42, 42, 0.2), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(0, 200, 255, 0.1), transparent 45%),
    linear-gradient(135deg, #0b1218 0%, #0f171d 40%, #0b1116 100%);
  z-index: -2;
}

.site-header {
  padding: 18px 0 10px;
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.9), rgba(10, 12, 20, 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;
  display: block;
  object-fit: cover;
  flex: 0 0 auto;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(255, 42, 42, 0.16);
}

.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;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.top-link:hover,
.top-link:focus-visible,
.top-link:active {
  color: #fff;
  text-decoration: none;
  opacity: 1;
}

.top-link-pill {
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.top-link-pill:hover,
.top-link-pill:focus-visible,
.top-link-pill:active {
  background: #ff3338;
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 42, 42, 0.22);
}

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

.top-link-ghost:hover,
.top-link-ghost:focus-visible,
.top-link-ghost:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

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

.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, #ff3b3b 0%, #c41515 100%);
  border-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  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;
}

body.is-favorites-route .layout-grid {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

body.is-favorites-route .layout-grid.is-sidebar-collapsed {
  grid-template-columns: minmax(0, 860px);
}

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

body.is-favorites-route .content-stage {
  display: none;
}

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

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

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

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

.access-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 34px);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 42, 42, 0.22), transparent 36%),
    rgba(5, 8, 14, 0.78);
  backdrop-filter: blur(16px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.access-modal {
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  position: relative;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(18, 21, 34, 0.98), rgba(9, 12, 22, 0.98)),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.access-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 700 26px/1 "Rajdhani", sans-serif;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.access-modal__close:hover,
.access-modal__close:focus-visible {
  background: rgba(255, 42, 42, 0.18);
  border-color: rgba(255, 42, 42, 0.5);
  outline: none;
}

.access-modal__hero {
  padding: clamp(18px, 3vw, 26px);
  padding-right: clamp(58px, 8vw, 74px);
  background:
    linear-gradient(135deg, rgba(255, 42, 42, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.access-modal__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.access-modal__brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.access-modal__eyebrow,
.access-modal__plan-label {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #aeb8c6;
}

.access-modal h2 {
  margin: 2px 0 0;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
}

.access-modal__hero p {
  max-width: 440px;
  margin: 14px 0 0;
  color: #c7d0dc;
  font-size: clamp(0.95rem, 1.6vw, 1.04rem);
  line-height: 1.45;
}

.access-modal__content {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 3vw, 22px);
}

.access-modal__plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.access-modal__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
  font-family: "Rajdhani", sans-serif;
  color: #fff;
}

.access-modal__price span:first-child {
  font-size: clamp(1.9rem, 4vw, 2.45rem);
  font-weight: 700;
  line-height: 1;
}

.access-modal__price span:last-child {
  color: #aeb8c6;
  font-weight: 700;
}

.access-modal__trial {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 191, 71, 0.35);
  border-radius: 999px;
  background: rgba(255, 191, 71, 0.12);
  color: #ffe4a7;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-modal__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.access-modal__features[hidden],
.access-modal__provider-actions[hidden] {
  display: none !important;
}

.access-modal__features li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #d9e1eb;
  font-size: 0.9rem;
  line-height: 1.2;
}

.access-modal__features li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 42, 42, 0.12);
}

.access-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.access-modal__provider-actions {
  display: contents;
}

.access-modal__primary,
.access-modal__secondary {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.access-modal__primary {
  border: 1px solid rgba(255, 42, 42, 0.75);
  background: linear-gradient(135deg, #ff3434, #d91f1f);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 42, 42, 0.22);
}

.access-modal__primary:hover,
.access-modal__primary:focus-visible {
  background: linear-gradient(135deg, #ff4a4a, #ea2424);
  outline: none;
}

.access-modal__secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e9eef6;
}

.access-modal__secondary:hover,
.access-modal__secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.access-modal__primary:active,
.access-modal__secondary:active,
.access-modal__close:active {
  transform: translateY(1px);
}

.access-modal__primary:disabled,
.access-modal__secondary:disabled {
  opacity: 0.62;
  cursor: wait;
}

.access-modal__note {
  min-height: 18px;
  color: #aeb8c6;
  line-height: 1.4;
  font-size: 0.92rem;
}

.access-modal__note.is-error {
  color: #ffb4b4;
}

.access-modal__note.is-success {
  color: #a8ffd7;
}

.pricing-main {
  padding-top: 18px;
}

.pricing-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.pricing-back-button {
  width: max-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.pricing-back-button:hover,
.pricing-back-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.pricing-back-button:active {
  transform: translateY(1px);
}

.pricing-heading,
.pricing-trial,
.pricing-card,
.pricing-features {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 18, 29, 0.78);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.pricing-heading {
  min-height: 146px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
}

.pricing-eyebrow,
.pricing-card-kicker {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aeb8c6;
}

.pricing-heading h1 {
  margin: 4px 0 10px;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2.35rem, 7vw, 4.3rem);
  line-height: 0.9;
  color: #fff;
}

.pricing-heading p {
  max-width: 680px;
  margin: 0;
  color: #c6d0dc;
  font-size: 1.04rem;
  line-height: 1.5;
}

.pricing-status {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e9eef6;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-status.is-active {
  border-color: rgba(61, 212, 124, 0.32);
  background: rgba(61, 212, 124, 0.1);
  color: #baffd5;
}

.pricing-message {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #d9e1eb;
}

.pricing-message.is-error {
  color: #ffd0d0;
  background: rgba(255, 42, 42, 0.1);
  border: 1px solid rgba(255, 42, 42, 0.18);
}

.pricing-message.is-success {
  color: #baffd5;
  background: rgba(61, 212, 124, 0.1);
  border: 1px solid rgba(61, 212, 124, 0.18);
}

.pricing-trial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
}

.pricing-trial h2,
.pricing-card h2 {
  margin: 4px 0 8px;
  font-family: "Rajdhani", sans-serif;
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1;
}

.pricing-trial p,
.pricing-card p {
  margin: 0;
  color: #c3ccd8;
  line-height: 1.45;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: clamp(18px, 3vw, 26px);
}

.pricing-card.is-featured {
  border-color: rgba(255, 42, 42, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 42, 42, 0.1), rgba(15, 18, 29, 0.86) 42%),
    rgba(15, 18, 29, 0.78);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: "Rajdhani", sans-serif;
  color: #fff;
}

.pricing-price span {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.pricing-price strong {
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 0.9;
  color: #fff;
}

.pricing-price em {
  color: #fff;
  font-style: normal;
  font-weight: 700;
}

.pricing-button {
  min-height: 48px;
  width: 100%;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.pricing-button.is-primary {
  border-color: rgba(255, 42, 42, 0.7);
  background: linear-gradient(135deg, #ff3434, #d91f1f);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 42, 42, 0.2);
}

.pricing-button.is-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #e9eef6;
}

.pricing-button:hover,
.pricing-button:focus-visible {
  outline: none;
  filter: brightness(1.08);
}

.pricing-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: clamp(16px, 3vw, 22px);
}

.pricing-feature {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #d9e1eb;
}

.pricing-feature::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 42, 42, 0.12);
}

.downloads-main {
  padding-top: 18px;
}

.downloads-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 16, 28, 0.92);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.downloads-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  padding: clamp(28px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 42, 42, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}

.downloads-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: #050509;
  box-shadow: 0 20px 48px rgba(255, 42, 42, 0.2);
}

.downloads-eyebrow,
.download-card__platform {
  color: rgba(226, 232, 240, 0.78);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.downloads-hero h1 {
  margin: 8px 0 0;
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 400;
  line-height: 0.95;
}

.downloads-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(20px, 3vw, 34px);
}

.download-card {
  min-height: 280px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: rgba(20, 24, 38, 0.86);
}

.download-card.is-featured {
  border-color: rgba(255, 42, 42, 0.32);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 42, 42, 0.16), transparent 42%),
    rgba(20, 24, 38, 0.9);
}

.download-card h2 {
  margin: 18px 0 0;
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.45rem);
  font-weight: 700;
  line-height: 1;
}

.download-card p {
  margin: 16px 0 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.98rem;
  line-height: 1.5;
}

.download-button {
  min-height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 20px;
  color: #fff;
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--red);
}

.download-button:hover,
.download-button:focus-visible {
  color: #fff;
  text-decoration: none;
  background: #ff3338;
}

.download-button.is-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.download-button.is-disabled {
  pointer-events: none;
  color: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.downloads-note {
  padding: 0 clamp(20px, 3vw, 34px) clamp(24px, 4vw, 42px);
}

.downloads-note h2 {
  margin: 0 0 14px;
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.downloads-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.downloads-note-grid div {
  min-height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: rgba(226, 232, 240, 0.82);
  background: rgba(255, 255, 255, 0.055);
}

@media (max-width: 980px) {
  .pricing-heading,
  .pricing-trial {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-status {
    align-self: flex-start;
  }

  .pricing-grid,
  .pricing-features,
  .downloads-grid,
  .downloads-note-grid {
    grid-template-columns: 1fr;
  }

  .downloads-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pricing-main,
  .downloads-main {
    padding-top: 10px;
  }

  .pricing-shell,
  .downloads-shell {
    gap: 12px;
  }

  .pricing-back-button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .pricing-heading,
  .pricing-trial,
  .pricing-card,
  .pricing-features {
    border-radius: 14px;
  }

  .pricing-heading,
  .pricing-trial,
  .pricing-card {
    padding: 16px;
  }

  .pricing-heading h1 {
    font-size: 2.4rem;
  }

  .downloads-hero {
    gap: 18px;
    padding: 20px;
  }

  .downloads-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
  }

  .downloads-hero h1 {
    font-size: 2.7rem;
  }

  .downloads-grid {
    padding: 16px;
  }

  .download-card {
    min-height: 230px;
    padding: 18px;
  }

  .pricing-heading p {
    font-size: 0.96rem;
  }

  .pricing-price strong {
    font-size: 3.1rem;
  }

  .pricing-features {
    padding: 12px;
  }
}

.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);
}

body.is-favorites-route .sidebar-panel {
  position: relative;
  top: 0;
  min-height: min(calc(100dvh - 156px), 860px);
  max-height: min(calc(100dvh - 132px), 900px);
}

body.is-favorites-route .sidebar-toggle {
  display: none;
}

.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;
  overflow-anchor: none;
  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;
}

.channel-country-group,
.event-section {
  overflow-anchor: none;
}

.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(255, 42, 42, 0.5);
  box-shadow: 0 18px 34px rgba(255, 42, 42, 0.14);
  background:
    linear-gradient(180deg, rgba(34, 18, 24, 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,
.favorite-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;
}

.channel-card__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.favorite-btn {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.52);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.1s ease, border-color 0.1s ease, color 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
}

.favorite-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}

.favorite-btn path {
  fill: currentColor;
}

.favorite-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 42, 42, 0.35);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 42, 42, 0.08);
}

.favorite-btn.is-active {
  color: #fff;
  border-color: rgba(255, 42, 42, 0.72);
  background: linear-gradient(180deg, rgba(255, 58, 58, 0.95), rgba(220, 18, 28, 0.92));
  box-shadow: 0 8px 18px rgba(255, 42, 42, 0.24);
}

.favorite-view-status {
  width: calc(100% - 8px);
  margin: 0 auto 2px;
  border-radius: 8px;
  border: 1px solid rgba(77, 199, 255, 0.16);
  background: rgba(77, 199, 255, 0.08);
  color: rgba(226, 244, 255, 0.92);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
}

.favorite-view-status.is-error {
  border-color: rgba(255, 42, 42, 0.28);
  background: rgba(255, 42, 42, 0.08);
  color: #fecaca;
}

.favorite-view-list {
  display: grid;
  gap: 10px;
}

.favorite-view-card {
  min-height: 74px;
  border-left: 2px solid rgba(255, 42, 42, 0.72);
  animation: rise 0.45s ease forwards;
}

.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;
}

.channel-country-group__button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid rgba(255, 42, 42, 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(255, 42, 42, 0.72);
  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.is-favorites .channel-country-group__button {
  border-left-color: rgba(255, 42, 42, 0.92);
  background:
    linear-gradient(180deg, rgba(56, 22, 30, 0.98), rgba(28, 23, 34, 0.98));
  box-shadow: 0 12px 26px rgba(255, 42, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.channel-country-group.is-favorites .channel-country-group__label::before {
  content: "\2605";
  margin-right: 8px;
  color: var(--red);
}

.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(255, 42, 42, 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;
}

.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(255, 70, 70, 0.16);
  box-shadow: 0 10px 24px rgba(255, 42, 42, 0.08);
}

.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: #ff3a3a;
  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, #ff4949, #ff2323);
  box-shadow: 0 5px 10px rgba(255, 42, 42, 0.1);
}

.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: var(--red);
  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;
  flex: 0 0 36px;
  border-radius: 10px;
  background: #11181f;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  contain: paint;
  font-weight: 700;
  color: var(--red);
}

.channel-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 3px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  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-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(255, 42, 42, 0.12);
  border-color: rgba(255, 42, 42, 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;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  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: #ffd4d4;
  border-color: rgba(255, 42, 42, 0.2);
  background: rgba(255, 42, 42, 0.08);
}

.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(255, 42, 42, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(77, 199, 255, 0.08), 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(255, 42, 42, 0.12);
}

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

.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:
    radial-gradient(circle at center, rgba(255, 42, 42, 0.12), transparent 34%),
    rgba(4, 6, 11, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  z-index: 3;
  backdrop-filter: blur(3px);
  pointer-events: none;
}

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

.player-loading-card {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.player-loading-logo {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: 34px;
  font-weight: 700;
}

.player-loading-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.player-loading-dots {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}

.player-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  opacity: 0.45;
  animation: livepass-loading-dot 1.05s ease-in-out infinite;
}

.player-loading-dots span:nth-child(2) {
  animation-delay: 0.14s;
}

.player-loading-dots span:nth-child(3) {
  animation-delay: 0.28s;
}

.player-loading-stage {
  min-height: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@keyframes livepass-loading-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.38;
  }
  50% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.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;
}

.player-diagnostics {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.player-diagnostics__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.player-diagnostics__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-diagnostics__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.player-diagnostics__chip.is-playing {
  color: #d6ffe3;
  border-color: rgba(67, 211, 118, 0.28);
  background: rgba(67, 211, 118, 0.09);
}

.player-diagnostics__chip.is-failed {
  color: #ffd6d6;
  border-color: rgba(255, 42, 42, 0.28);
  background: rgba(255, 42, 42, 0.08);
}

.player-diagnostics__chip.is-trying {
  color: #fff0c7;
  border-color: rgba(255, 191, 71, 0.28);
  background: rgba(255, 191, 71, 0.08);
}

.player-diagnostics__server {
  font-weight: 700;
}

.player-diagnostics__status,
.player-diagnostics__latency {
  color: rgba(255, 255, 255, 0.56);
}

.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);
}

.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(255, 42, 42, 0.14);
  border-color: rgba(255, 42, 42, 0.28);
  color: #ffd1d1;
}

.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(255, 42, 42, 0.16);
  border-color: rgba(255, 42, 42, 0.4);
  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(255, 42, 42, 0.14);
  border-color: rgba(255, 42, 42, 0.28);
  color: #ffd1d1;
}

.chat-status-note.is-success {
  background: rgba(50, 214, 126, 0.12);
  border-color: rgba(50, 214, 126, 0.24);
  color: #c8ffd9;
}

.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(255, 63, 63, 0.95);
  border-color: rgba(255, 63, 63, 0.95);
  color: transparent;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 10px 18px rgba(255, 42, 42, 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: #9e58ff;
}

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

.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-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: #ff8d8d;
}

.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;
  }

  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: #ff5a43;
  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: #ffd1d1;
  border-color: rgba(255, 42, 42, 0.24);
  background: rgba(255, 42, 42, 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: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 18px;
}

.login-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 20, 33, 0.98), rgba(12, 14, 24, 0.98));
  border-radius: 8px;
  border: 1px solid rgba(77, 199, 255, 0.18);
  padding: 34px;
  width: min(420px, 100%);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--cyan), var(--amber));
}

.login-card--wide {
  width: min(600px, 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 .brand-mark {
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 24px rgba(255, 42, 42, 0.18);
}

.login-brand .brand-title,
.login-brand .brand-subtitle {
  letter-spacing: 0;
}

.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: 30px;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.login-subtitle {
  color: #b8c6d6;
  max-width: 46ch;
  margin-bottom: 26px;
}

.login-input {
  height: 46px;
  background: rgba(6, 8, 16, 0.92);
  border: 1px solid rgba(184, 198, 214, 0.18);
  border-radius: 6px;
  color: var(--text);
  box-shadow: none;
  font-family: "Work Sans", sans-serif;
}

.login-input:hover,
.login-input:focus {
  border-color: rgba(77, 199, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(77, 199, 255, 0.12);
}

.login-input::placeholder {
  color: rgba(184, 198, 214, 0.76);
  opacity: 1;
}

.login-label {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #9fb8c9;
  font-weight: 700;
}

.login-button {
  min-height: 46px;
  width: 100%;
  background: linear-gradient(180deg, #ff3338, #d91f1f);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(255, 42, 42, 0.2);
}

.login-button:hover,
.login-button:focus-visible {
  color: #fff;
  filter: brightness(1.06);
}

.login-button[disabled] {
  opacity: 0.68;
  filter: none;
  box-shadow: none;
}

.login-button-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(184, 198, 214, 0.18) !important;
  color: var(--text) !important;
  box-shadow: none;
}

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

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

.auth-switch-row {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.login-link-button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  line-height: 1.4;
}

.login-link-button::before {
  content: ">";
  margin-right: 4px;
}

.login-link-button:hover,
.login-link-button:focus-visible {
  color: #fff;
  outline: none;
}

.login-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(184, 198, 214, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #b8c6d6;
  font-size: 13px;
  line-height: 1.45;
}

.login-note.is-error {
  border-color: rgba(255, 107, 107, 0.38);
  background: rgba(255, 107, 107, 0.09);
  color: #ffb4b4;
}

.login-note.is-success {
  border-color: rgba(77, 199, 255, 0.34);
  background: rgba(77, 199, 255, 0.09);
  color: #d9f4ff;
}

.auth-confirm-actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

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

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

.account-main {
  padding: 18px 0 56px;
}

.account-settings-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 21, 31, 0.82);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.account-profile-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px 14px;
}

.account-profile-copy {
  min-width: 0;
}

.account-profile-name {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}

.account-profile-email {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.account-plan-badge {
  max-width: 260px;
  justify-self: end;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 10px 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-tab {
  appearance: none;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(241, 241, 241, 0.78);
  font-family: "Rajdhani", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s ease;
}

.account-tab:hover,
.account-tab:focus-visible {
  color: #fff;
  outline: none;
}

.account-tab.is-active {
  color: #fff;
}

.account-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  border-radius: 999px;
  background: var(--red);
}

.account-settings-list {
  display: grid;
  gap: 0;
  padding-top: 14px;
}

.account-settings-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(380px, 1.2fr);
  gap: 18px;
  align-items: start;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-settings-row:last-child {
  border-bottom: none;
}

.account-settings-copy h1,
.account-settings-copy h2 {
  margin: 0;
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0;
}

.account-settings-copy p {
  max-width: 54ch;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.account-settings-control {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.account-grid {
  display: grid;
  gap: 8px;
}

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

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

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

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

.account-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--muted);
}

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

.account-field > span:first-child {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-field strong,
.account-field > span:last-child:not(:first-child) {
  min-width: 0;
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.account-field--stacked strong,
.account-field--stacked > span:last-child:not(:first-child) {
  text-align: left;
}

.account-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.account-form,
.account-subform,
.account-backup-panel {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.account-subform {
  padding: 0;
  border: 0;
  background: transparent;
}

.account-form + .account-form,
.account-form + .account-backup-panel {
  margin-top: 2px;
}

.account-form-title {
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.account-form-label {
  color: rgba(184, 198, 214, 0.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-form .account-input {
  width: 100%;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

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

.button.account-button,
.account-button {
  min-height: 36px;
  padding: 7px 12px;
  background: linear-gradient(180deg, #ff3338, #d91f1f);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-family: "Work Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, filter 0.18s ease;
}

.button.account-button:hover,
.button.account-button:focus-visible,
.button.account-button:active,
.account-button:hover,
.account-button:focus-visible,
.account-button:active {
  color: #fff;
  filter: brightness(1.06);
  text-decoration: none;
}

.button.account-button.is-primary,
.account-button.is-primary {
  background: linear-gradient(180deg, #ff3338, #d91f1f);
  color: #fff;
}

.button.account-button.is-primary:hover,
.button.account-button.is-primary:focus-visible,
.button.account-button.is-primary:active,
.account-button.is-primary:hover,
.account-button.is-primary:focus-visible,
.account-button.is-primary:active {
  background: linear-gradient(180deg, #ff454a, #e32121);
  color: #fff;
}

.button.account-button.is-secondary,
.account-button.is-secondary {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(184, 198, 214, 0.16);
  color: var(--text);
}

.button.account-button.is-secondary:hover,
.button.account-button.is-secondary:focus-visible,
.button.account-button.is-secondary:active,
.account-button.is-secondary:hover,
.account-button.is-secondary:focus-visible,
.account-button.is-secondary:active {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(184, 198, 214, 0.32);
  color: #fff;
}

.account-copy-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(184, 198, 214, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.account-copy-label:hover,
.account-copy-label:focus-visible,
.account-copy-label:active {
  border-color: rgba(255, 42, 42, 0.34);
  color: #fff;
  background: rgba(255, 42, 42, 0.13);
  outline: none;
}

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

.account-setup {
  display: none;
}

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

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

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

.account-qr {
  width: 160px;
  height: 160px;
  border-radius: 10px;
}

.account-qr-wrap {
  width: fit-content;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

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

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

.account-input {
  background: rgba(14, 16, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text);
  min-height: 40px;
  padding: 8px 10px;
  font-size: 14px;
}

.account-input:focus {
  border-color: rgba(255, 42, 42, 0.42);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 42, 42, 0.1);
}

.account-input:disabled {
  opacity: 0.7;
}

.account-two-factor-setup {
  border-color: rgba(255, 42, 42, 0.2);
  background: rgba(255, 42, 42, 0.06);
}

.account-backup-panel {
  border-color: rgba(255, 211, 126, 0.22);
  background: rgba(255, 211, 126, 0.06);
}

.account-backup-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 7px;
}

.account-backup-code {
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.account-message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(184, 198, 214, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #b9bcc6;
  font-size: 13px;
}

.account-message.is-error {
  border-color: rgba(255, 107, 107, 0.38);
  background: rgba(255, 107, 107, 0.09);
  color: #ffb4b4;
}

.account-note {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(184, 198, 214, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: #b9bcc6;
  font-size: 13px;
}

.account-note.is-error {
  border-color: rgba(255, 107, 107, 0.38);
  background: rgba(255, 107, 107, 0.09);
  color: #ffb4b4;
}

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

html.livepass-native-app .account-main {
  padding-bottom: calc(var(--livepass-native-bottom-nav-height) + 28px);
}

@media (max-width: 720px) {
  .account-main {
    padding-top: 10px;
  }

  .account-settings-shell {
    padding: 12px;
  }

  .account-settings-row,
  .account-grid--details,
  .account-grid--meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-profile-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .account-plan-badge {
    max-width: min(46vw, 190px);
    width: auto;
    text-align: right;
  }

  .account-tabs {
    gap: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .account-tabs::-webkit-scrollbar {
    display: none;
  }

  .account-settings-row {
    gap: 10px;
    padding: 14px 4px;
  }

  .account-copy-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-copy-label {
    justify-content: center;
    width: fit-content;
  }
}

.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:not(#accountLink):not(#logoutLink) {
    display: none;
  }

  .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;
  }

  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) {
  .access-modal-backdrop {
    align-items: stretch;
    padding: 10px;
  }

  .access-modal {
    width: 100%;
    max-height: calc(100dvh - 20px);
    align-self: center;
    border-radius: 16px;
  }

  .access-modal__close {
    top: 10px;
    right: 10px;
  }

  .access-modal__hero {
    padding: 18px;
    padding-right: 58px;
  }

  .access-modal__brand {
    gap: 10px;
  }

  .access-modal__brand img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .access-modal h2 {
    font-size: 2rem;
  }

  .access-modal__hero p {
    margin-top: 14px;
    font-size: 0.98rem;
  }

  .access-modal__content {
    gap: 14px;
    padding: 16px;
  }

  .access-modal__plan {
    align-items: flex-start;
    padding: 14px;
  }

  .access-modal__trial {
    max-width: 46%;
    text-align: center;
    white-space: normal;
  }

  .access-modal__features {
    gap: 7px;
  }

  .access-modal__features li {
    padding: 7px 9px;
    font-size: 0.86rem;
  }

  .access-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .access-modal__primary,
  .access-modal__secondary {
    width: 100%;
  }

  .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;
  }

  .channel-card__actions {
    width: 100%;
    justify-content: space-between;
  }

  .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;
  }
}

@media (max-width: 768px) {
  html.livepass-native-app .main-content {
    padding-bottom: calc(var(--livepass-native-bottom-nav-height) + 28px);
  }

  html.livepass-native-app .sidebar-panel:not(.is-collapsed) {
    height: min(calc(100dvh - var(--livepass-native-bottom-nav-height) - 72px), 820px);
    min-height: min(70dvh, 680px);
    max-height: none;
  }

  html.livepass-native-app .sidebar-section,
  html.livepass-native-app .panel-body {
    min-height: 0;
    overflow: hidden;
  }

  html.livepass-native-app .panel-scroll {
    flex: 1 1 auto;
    max-height: none;
    overflow-y: auto;
  }

  html.livepass-native-app body.is-favorites-route .main-content {
    padding-bottom: calc(var(--livepass-native-bottom-nav-height) + 16px);
  }

  html.livepass-native-app body.is-favorites-route .sidebar-panel:not(.is-collapsed) {
    height: min(calc(100dvh - var(--livepass-native-bottom-nav-height) - 64px), 820px);
    min-height: min(72dvh, 700px);
  }
}
