.card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 12px;
  transition: transform 0.15s ease, border 0.15s ease;
  overflow: hidden;
}

.focused {
  transform: none;
  outline: none !important;
}

.focusable:focus,
.focusable:focus-visible,
button:focus,
button:focus-visible {
  outline: none !important;
  box-shadow: none;
}

.card.danger {
  background: rgba(198, 40, 40, 0.15);
}

.icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.qr-layout {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 72px;
  width: 100vw;
  height: 100vh;
  padding: 56px 96px;
  box-sizing: border-box;
  background: #0d0d0d;
}

.qr-left-panel {
  flex: 1 1 46%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 12px;
}

.qr-brand-lockup {
  width: min(500px, 82%);
  margin-bottom: 44px;
}

.qr-logo {
  width: 100%;
  display: block;
  max-height: 120px;
  object-fit: contain;
}

.qr-copy-block {
  max-width: 620px;
}

.qr-title {
  margin: 0;
  font-size: 54px;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
}

.qr-description {
  margin: 24px 0 0;
  font-size: 31px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #b3b3b3;
}

.qr-card-panel {
  flex: 0 0 55%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-card {
  width: 100%;
  max-width: 900px;
  min-height: 930px;
  padding: 52px;
  box-sizing: border-box;
  border-radius: 36px;
  border: 1px solid rgba(51, 51, 51, 0.5);
  background: rgba(26, 26, 26, 0.35);
}

.qr-card-header {
  text-align: center;
}

.qr-card-title {
  margin: 0;
  font-size: 42px;
  line-height: 1.4;
  font-weight: 500;
  color: #fff;
}

.qr-card-subtitle {
  margin: 8px 0 26px;
  font-size: 24px;
  line-height: 1.35;
  color: #b3b3b3;
}

.qr-code-frame {
  width: 432px;
  height: 432px;
  margin: 0 auto 14px;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 24px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

.qr-code-text {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.45;
  text-align: center;
  color: #fff;
  word-break: break-all;
  font-weight: 500;
}

.qr-status {
  width: 100%;
  margin: 18px auto 0;
  padding: 18px 24px;
  box-sizing: border-box;
  border-radius: 24px;
  text-align: center;
  font-size: 23px;
  line-height: 1.35;
  color: #b3b3b3;
  background: #222;
  border: 1px solid rgba(51, 51, 51, 0.35);
}

.qr-actions {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding-top: 94px;
}

.qr-action-btn {
  min-width: 196px;
  height: 82px;
  padding: 0 32px;
  border: none;
  border-radius: 999px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.qr-action-btn-primary {
  background: #222;
  color: #fff;
}

.qr-action-btn-secondary {
  background: #222;
  color: #fff;
}

.qr-action-btn.focused {
  transform: none;
  background: #fff;
  color: #000;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-screen {
  width: 100vw;
  height: 100vh;
  padding: 56px 72px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  background: #0d0d0d;
  transition: background 0.52s ease;
  position: relative;
  overflow: hidden;
}

.profile-logo {
  width: 224px;
  height: 52px;
  margin: 0 auto 34px;
  display: block;
  object-fit: contain;
}

.profile-title {
  margin: 0;
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.profile-subtitle {
  margin: 14px 0 68px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  color: #b3b3b3;
}

.profile-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
  min-height: 332px;
  margin-top: auto;
  margin-bottom: auto;
}

.profile-card {
  width: 180px;
  cursor: pointer;
  outline: none;
  border: none;
  box-shadow: none;
  transition: transform 150ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
}

.profile-card.focused {
  transform: scale(1.04);
  border: none !important;
  box-shadow: none !important;
}

.profile-avatar-ring {
  width: 156px;
  height: 156px;
  border-radius: 999px;
  border: 1px solid rgba(51, 51, 51, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
  transition: border-color 150ms ease, border-width 150ms ease, width 150ms ease, height 150ms ease;
}

.profile-card.focused .profile-avatar-ring {
  width: 152px;
  height: 152px;
  border-width: 3px;
  border-color: var(--secondary-color);
}

.profile-avatar {
  width: 124px;
  height: 124px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  transition: width 150ms ease, height 150ms ease, background 150ms ease;
}

.profile-card.focused .profile-avatar {
  width: 130px;
  height: 130px;
}

.profile-avatar-image,
.profile-editor-preview-image,
.profile-avatar-tile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-add {
  background: rgba(255, 255, 255, 0.06);
  color: #808080;
  position: relative;
}

.profile-card.focused .profile-avatar-add {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.profile-avatar-add::before,
.profile-avatar-add::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.profile-avatar-add::before {
  width: 54px;
  height: 4px;
}

.profile-avatar-add::after {
  width: 4px;
  height: 54px;
}

.profile-name {
  margin-top: 12px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 500;
  color: #b3b3b3;
  text-align: center;
}

.profile-card.focused .profile-name {
  color: #fff;
  font-weight: 600;
}

.profile-badge {
  margin-top: 8px;
  min-height: 18px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 600;
  color: #ffb300;
  letter-spacing: 0.8px;
}

.profile-badge-slot {
  min-height: 18px;
  margin-top: 8px;
}

.profile-primary-dot {
  position: absolute;
  right: 7px;
  bottom: 5px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffbf00;
  color: #fff;
  font-size: 16px;
  border: 2px solid rgba(10, 23, 39, 0.9);
}

.profile-hint {
  margin: auto 0 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 500;
  color: rgba(128, 128, 128, 0.9);
}

.profile-editor-backdrop,
.profile-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.profile-editor-panel,
.profile-dialog {
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  box-sizing: border-box;
}

.profile-editor-panel {
  width: min(92vw, 1120px);
  padding: 38px;
}

.profile-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-left: 28px;
}

.profile-editor-heading-title {
  font-size: 31px;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}

.profile-editor-heading-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.profile-editor-heading-kicker {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  color: #b3b3b3;
}

.profile-editor-heading-name {
  font-size: 36px;
  line-height: 1.08;
  font-weight: 800;
  color: #fff;
}

.profile-editor-body {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-top: 30px;
  min-height: 420px;
}

.profile-editor-preview {
  width: 320px;
  padding: 64px 28px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.profile-editor-preview-avatar {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 64px;
  font-weight: 700;
  color: #fff;
}

.profile-editor-preview-name {
  max-width: 100%;
  font-size: 26px;
  line-height: 1.18;
  font-weight: 700;
  color: #fff;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-editor-preview-name.is-placeholder {
  color: #b3b3b3;
}

.profile-editor-field-shell {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.profile-editor-field-shell:focus-within {
  background: var(--focus-bg);
  border-color: var(--focus-color);
  box-shadow: inset 0 0 0 1px var(--focus-color);
}

.profile-editor-name-input {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  font-family: inherit;
}

.profile-editor-name-input::placeholder {
  color: #808080;
}

.profile-editor-divider {
  width: 1px;
  min-height: 372px;
  margin-top: 34px;
  background: rgba(51, 51, 51, 0.9);
}

.profile-editor-avatar-pane {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-editor-avatar-title {
  width: 100%;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
  color: #b3b3b3;
  text-align: center;
}

.profile-editor-category-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 4px;
  flex-wrap: wrap;
}

.profile-avatar-category,
.profile-avatar-tile,
.profile-overlay-button,
.profile-dialog-button {
  appearance: none;
  border: none;
  outline: none;
  font-family: inherit;
}

.profile-avatar-category {
  padding: 10px 20px;
  border-radius: 22px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.06);
  color: #b3b3b3;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.profile-avatar-category.is-selected {
  border-color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
}

.profile-avatar-category.focused {
  border-color: var(--focus-color);
  background: var(--focus-bg);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--focus-color);
}

.profile-editor-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 14px;
  max-height: 372px;
  padding: 6px 10px;
  overflow-y: auto;
}

.profile-editor-avatar-grid::-webkit-scrollbar {
  display: none;
}

.profile-avatar-tile {
  width: 96px;
  height: 96px;
  padding: 0;
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
  transform: scale(1);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.profile-avatar-tile.is-selected,
.profile-avatar-tile.focused {
  box-shadow: inset 0 0 0 3px var(--focus-color);
}

.profile-avatar-tile.focused {
  transform: scale(1.1);
}

.profile-editor-avatar-empty {
  height: 188px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 17px;
}

.profile-editor-avatar-hint {
  width: 100%;
  min-height: 28px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #808080;
  text-align: center;
}

.profile-overlay-button {
  min-width: 138px;
  padding: 14px 32px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.profile-overlay-button-primary {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--on-secondary);
}

.profile-overlay-button-secondary {
  width: 100%;
}

.profile-overlay-button.focused,
.profile-dialog-button.focused {
  background: var(--focus-bg);
  border-color: var(--focus-color);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--focus-color);
}

.profile-overlay-button.is-disabled,
.profile-overlay-button:disabled {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-color);
  color: #4d4d4d;
}

.profile-dialog {
  width: min(92vw, 500px);
  padding: 34px 34px 28px;
  box-sizing: border-box;
}

.profile-dialog-small {
  width: min(92vw, 420px);
}

.profile-dialog-medium {
  width: min(92vw, 500px);
}

.profile-dialog-title {
  font-size: 32px;
  line-height: 1.16;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.profile-dialog-subtitle {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.45;
  color: #b3b3b3;
  text-align: center;
}

.profile-dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}

.profile-dialog-button {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
}

.profile-dialog-button-danger {
  background: #4a2323;
}

.content-poster {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #11151c;
}

.content-poster.placeholder {
  background: linear-gradient(135deg, #1b2028, #12161d);
}

.featured-backdrop {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
  opacity: 0.92;
}

.home-loading {
  margin: 40px;
}

.home-boot {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background:
    linear-gradient(180deg, rgba(35, 62, 91, 1) 0%, rgba(18, 29, 44, 1) 42%, rgba(13, 13, 13, 1) 100%),
    linear-gradient(90deg, rgba(30, 136, 229, 0.26) 0%, rgba(30, 136, 229, 0.08) 45%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, 0) 100%);
}

.home-boot-logo {
  width: 220px;
  opacity: 0.94;
}

.home-boot-shimmer {
  width: min(62vw, 760px);
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.12));
  background-size: 100% 100%;
  opacity: 0.7;
  animation: homeBootShimmer 1.8s ease-in-out infinite;
}

@keyframes homeBootShimmer {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}

.home-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  --legacy-sidebar-rail-width: 88px;
  --legacy-sidebar-open-width: 236px;
  --legacy-sidebar-item-width: 60px;
  --legacy-sidebar-item-expanded-width: 192px;
  --legacy-sidebar-item-height: 62px;
  --legacy-sidebar-item-radius: 36px;
  --legacy-sidebar-padding: 14px;
  --legacy-sidebar-item-gap: 12px;
  --legacy-sidebar-leading-offset: 22px;
  --legacy-sidebar-label-start: 72px;
  --legacy-sidebar-label-end: 18px;
  --legacy-sidebar-profile-top-gap: 34px;
  --legacy-sidebar-profile-bottom-gap: 18px;
  --sidebar-leading-visual-size: 40px;
  --sidebar-icon-size: 28px;
  --modern-sidebar-collapsed-width: 212px;
  --modern-sidebar-open-width: 312px;
  --modern-sidebar-surface-width: 288px;
  --modern-sidebar-surface-top: 18px;
  --modern-sidebar-surface-left: 16px;
  --modern-sidebar-surface-bottom: 14px;
  --modern-sidebar-panel-padding-x: 14px;
  --modern-sidebar-panel-padding-y: 18px;
  --modern-sidebar-button-width: 92%;
  --modern-sidebar-button-height: 62px;
  --modern-sidebar-button-gap: 16px;
  --modern-sidebar-button-radius: 999px;
  --modern-sidebar-list-gap: 8px;
  --modern-sidebar-pill-top: 18px;
  --modern-sidebar-pill-left: 44px;
  --modern-sidebar-pill-height: 50px;
  --modern-sidebar-pill-chevron-width: 10px;
  --modern-sidebar-pill-chevron-height: 18px;
  --modern-sidebar-pill-chip-start: 7px;
  --modern-sidebar-pill-chip-end: 14px;
  --modern-sidebar-pill-chip-gap: 12px;
  --focus-color: #f5f8fc;
  background: radial-gradient(120% 90% at 75% 8%, rgba(190, 40, 18, 0.26), transparent 45%), #06090e;
  color: #f8fbff;
  overflow: hidden;
}

.home-route-content {
  min-height: 100%;
}

.home-route-content-enter {
  animation: homeRouteEnter 240ms ease-out both;
}

@keyframes homeRouteEnter {
  from {
    opacity: 0;
    transform: translateY(2%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-sidebar {
  width: var(--legacy-sidebar-rail-width);
  flex: 0 0 var(--legacy-sidebar-rail-width);
  height: 100vh;
  position: relative;
  z-index: 6;
  padding: var(--legacy-sidebar-padding);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--bg-color);
  transition: width 180ms ease, flex-basis 180ms ease;
  overflow: hidden;
}

.home-sidebar[data-collapsible="true"]:not(.expanded) {
  width: 0;
  flex-basis: 0;
  padding-left: 0;
  padding-right: 0;
}

.home-sidebar.expanded {
  width: var(--legacy-sidebar-open-width);
  flex-basis: var(--legacy-sidebar-open-width);
}

.root-sidebar-icon {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.home-sidebar .focused {
  transform: none !important;
}

.home-brand-wrap {
  display: none;
}

.home-nav-list {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--legacy-sidebar-item-gap);
  justify-content: center;
  align-items: center;
}

.home-nav-item {
  width: var(--legacy-sidebar-item-width);
  height: var(--legacy-sidebar-item-height);
  border-radius: var(--legacy-sidebar-item-radius);
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0;
  transition: background 160ms ease, padding 180ms ease;
  margin: 0;
  flex-shrink: 0;
}

.home-sidebar.expanded .home-nav-item {
  width: var(--legacy-sidebar-item-expanded-width);
  justify-content: flex-start;
  padding: 0 var(--legacy-sidebar-label-end) 0 var(--legacy-sidebar-leading-offset);
  color: var(--text-secondary);
}

.home-nav-item.selected {
  color: var(--secondary-color);
}

.home-sidebar.expanded .home-nav-item.selected {
  background: var(--secondary-color);
  color: var(--on-secondary);
}

.home-nav-item.focused {
  transform: none;
  background: var(--focus-bg);
  color: var(--text-color);
  border: none !important;
  box-shadow: none !important;
}

.home-nav-icon-wrap {
  width: var(--sidebar-icon-size);
  height: var(--sidebar-icon-size);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-nav-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 120ms ease, width 120ms ease;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.home-sidebar.expanded .home-nav-label {
  opacity: 1;
  width: calc(var(--legacy-sidebar-item-expanded-width) - var(--legacy-sidebar-label-start) - var(--legacy-sidebar-label-end));
}

.home-nav-icon {
  width: var(--sidebar-icon-size);
  height: var(--sidebar-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.root-sidebar-icon-material {
  font-family: "Material Icons";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  -webkit-font-smoothing: antialiased;
}

.home-nav-icon.root-sidebar-icon-material,
.modern-sidebar-nav-icon.root-sidebar-icon-material,
.modern-sidebar-pill-icon.root-sidebar-icon-material {
  width: var(--sidebar-icon-size);
  height: var(--sidebar-icon-size);
  font-size: var(--sidebar-icon-size);
  line-height: 1;
}

.root-sidebar-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
  color: currentColor;
}

.root-sidebar-icon-svg path {
  fill: currentColor;
}

.home-profile-pill {
  display: none;
  width: var(--legacy-sidebar-item-expanded-width);
  height: var(--legacy-sidebar-item-height);
  margin: var(--legacy-sidebar-profile-top-gap) auto var(--legacy-sidebar-profile-bottom-gap);
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  border-radius: var(--legacy-sidebar-item-radius);
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0 var(--legacy-sidebar-leading-offset);
  justify-content: flex-start;
}

.home-sidebar.expanded .home-profile-pill {
  display: inline-flex;
}

.home-profile-pill.focused {
  background: var(--focus-bg);
  color: var(--text-color);
  border: none !important;
  box-shadow: none !important;
}

.home-profile-avatar {
  width: var(--sidebar-leading-visual-size);
  height: var(--sidebar-leading-visual-size);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f2f7fd;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-profile-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-profile-name {
  color: currentColor;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.18;
}

.home-main {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 40px 56px;
}

.library-main {
  padding-top: 28px;
}


.search-screen-shell,
.discover-shell,
.settings-shell,
.addons-shell,
.home-shell.library-shell {
  position: relative;
  overflow: hidden;
}

.modern-sidebar-shell {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--modern-sidebar-collapsed-width);
  z-index: 18;
  pointer-events: none;
  contain: layout paint style;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.modern-sidebar-shell.expanded {
  width: var(--modern-sidebar-open-width);
}

.modern-sidebar-pill,
.modern-sidebar-panel {
  pointer-events: auto;
}

.modern-sidebar-panel {
  position: absolute;
  top: var(--modern-sidebar-surface-top);
  left: var(--modern-sidebar-surface-left);
  width: var(--modern-sidebar-surface-width);
  min-height: calc(100vh - var(--modern-sidebar-surface-top) - var(--modern-sidebar-surface-bottom));
  padding: var(--modern-sidebar-panel-padding-y) var(--modern-sidebar-panel-padding-x);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(56, 60, 67, 0.96), rgba(43, 47, 54, 0.96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform-origin: top left;
  animation: modernSidebarPanelIn 220ms cubic-bezier(0.2, 0.72, 0.2, 1);
  contain: layout paint style;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.modern-sidebar-shell.blur-enabled .modern-sidebar-panel {
  background: linear-gradient(180deg, rgba(74, 79, 89, 0.84), rgba(62, 68, 79, 0.78), rgba(58, 64, 73, 0.8));
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}

.modern-sidebar-profile {
  min-height: var(--modern-sidebar-button-height);
  width: var(--modern-sidebar-button-width);
  margin: 14px auto 18px;
  padding: 12px 18px;
  border-radius: var(--modern-sidebar-button-radius);
  border: 1.5px solid transparent;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.modern-sidebar-profile.focused {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.modern-sidebar-profile-avatar {
  width: var(--sidebar-leading-visual-size);
  height: var(--sidebar-leading-visual-size);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f3f6fb;
  font-size: 18px;
  font-weight: 700;
  flex: 0 0 auto;
  overflow: hidden;
}

.modern-sidebar-profile-name {
  min-width: 0;
  flex: 1;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modern-sidebar-nav-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--modern-sidebar-list-gap);
  padding: 0;
  transform: translateY(-12px);
}

.modern-sidebar-nav-item {
  min-height: var(--modern-sidebar-button-height);
  width: var(--modern-sidebar-button-width);
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: var(--modern-sidebar-button-radius);
  border: 1.5px solid transparent;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  gap: var(--modern-sidebar-button-gap);
  text-align: left;
}

.modern-sidebar-nav-item.selected {
  background: #fff;
  color: #10151f;
}

.modern-sidebar-nav-item.focused {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.modern-sidebar-nav-item.selected.focused {
  background: #fff;
  color: #10151f;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.modern-sidebar-nav-item.selected.focused .modern-sidebar-nav-icon-circle {
  background: #e7e2ef;
}

.modern-sidebar-nav-icon-circle,
.modern-sidebar-pill-icon-wrap {
  width: var(--sidebar-leading-visual-size);
  height: var(--sidebar-leading-visual-size);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.modern-sidebar-nav-icon-circle {
  background: #6a6a74;
}

.modern-sidebar-nav-item.selected .modern-sidebar-nav-icon-circle {
  background: #e7e2ef;
}

.modern-sidebar-nav-icon,
.modern-sidebar-pill-icon {
  width: var(--sidebar-icon-size);
  height: var(--sidebar-icon-size);
  display: block;
}

.modern-sidebar-nav-label,
.modern-sidebar-pill-label {
  min-width: 0;
  flex: 1;
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modern-sidebar-pill {
  position: absolute;
  top: var(--modern-sidebar-pill-top);
  left: var(--modern-sidebar-pill-left);
  padding: 2px 1px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.25px;
}

.modern-sidebar-pill-chevron {
  width: var(--modern-sidebar-pill-chevron-width);
  height: var(--modern-sidebar-pill-chevron-height);
  display: block;
}

.modern-sidebar-pill-chip {
  min-height: var(--modern-sidebar-pill-height);
  padding: 0 var(--modern-sidebar-pill-chip-end) 0 var(--modern-sidebar-pill-chip-start);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(66, 71, 80, 0.96), rgba(56, 61, 70, 0.96));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: var(--modern-sidebar-pill-chip-gap);
}

.modern-sidebar-shell.blur-enabled .modern-sidebar-pill-chip {
  background: linear-gradient(180deg, rgba(65, 72, 81, 0.82), rgba(59, 65, 73, 0.78));
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.modern-sidebar-shell.performance-constrained .modern-sidebar-panel {
  animation: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.modern-sidebar-shell.performance-constrained.blur-enabled .modern-sidebar-panel,
.modern-sidebar-shell.performance-constrained.blur-enabled .modern-sidebar-pill-chip {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.modern-sidebar-pill-icon-wrap {
  background: #4f555e;
}

.modern-sidebar-pill-label {
  color: #fff;
}

.modern-sidebar-pill.icon-only .modern-sidebar-pill-chevron,
.modern-sidebar-pill.icon-only .modern-sidebar-pill-label {
  display: none;
}

.modern-sidebar-pill.icon-only .modern-sidebar-pill-chip {
  padding-right: var(--modern-sidebar-pill-chip-start);
  gap: 0;
}

.modern-sidebar-shell.keep-pill-expanded .modern-sidebar-pill-chevron,
.modern-sidebar-shell.keep-pill-expanded .modern-sidebar-pill-label {
  display: block;
}

@keyframes modernSidebarPanelIn {
  from {
    opacity: 0;
    transform: translate3d(-12px, -10px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.search-loading,
.library-loading {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(236, 244, 252, 0.86);
  font-size: 24px;
}

.search-loading-shell {
  padding-top: 0;
  padding-bottom: 0;
}

.search-screen-shell {
  width: 100vw;
  height: 100vh;
  display: flex;
  background: var(--bg-color);
  color: var(--text-color);
  overflow: hidden;
}

.search-screen-shell.search-route-enter {
  animation: searchRouteEnter 350ms ease both;
}

.library-shell.library-route-enter {
  animation: searchRouteEnter 350ms ease both;
}

.addons-shell.addons-route-enter {
  animation: searchRouteEnter 350ms ease both;
}

.settings-shell.settings-route-enter {
  animation: searchRouteEnter 350ms ease both;
}

@keyframes searchRouteEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.search-sidebar {
  width: 92px;
  flex: 0 0 92px;
  height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 6, 11, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.search-nav-item {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-nav-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%);
}

.search-nav-item.active {
  background: rgba(255, 255, 255, 0.14);
}

.search-nav-item.focused {
  border-color: rgba(245, 249, 255, 0.98);
  box-shadow: 0 0 0 3px rgba(245, 249, 255, 0.2);
}

.search-content {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 0 28px;
  background: var(--bg-color);
  scroll-padding-top: 22px;
  scroll-padding-bottom: 36px;
}

.search-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.search-header {
  display: grid;
  grid-template-columns: repeat(2, 110px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 48px;
  scroll-margin-top: 22px;
}

.search-header.no-discover {
  grid-template-columns: 110px minmax(0, 1fr);
}

.search-discover-btn,
.search-voice-btn {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.search-action-icon {
  font-size: 54px;
  line-height: 1;
  color: var(--text-color);
}

.search-voice-btn.listening {
  background: var(--focus-bg);
}

.search-input-field {
  width: 100%;
  height: 110px;
  border-radius: 22px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  padding: 0 32px;
  color: var(--text-color);
  font-size: 34px;
  font-weight: 500;
  box-sizing: border-box;
}

.search-discover-btn.focused,
.search-voice-btn.focused,
.search-input-field.focused {
  border-color: var(--focus-color);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.search-input-field::placeholder {
  color: var(--text-tertiary);
}

.search-input-field:focus {
  outline: none;
}

.search-empty-state {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-color);
  padding-bottom: 0;
}

.search-empty-state-results {
  min-height: 420px;
  padding-bottom: 0;
}

.search-empty-icon {
  font-size: 136px;
  line-height: 1;
  color: var(--text-tertiary);
}

.search-empty-state h2 {
  margin: 22px 0 10px;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.04;
}

.search-empty-state p {
  margin: 0;
  font-size: 24px;
  color: var(--text-secondary);
  line-height: 1.2;
}

.search-toast {
  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--bg-elevated);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  font-size: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.search-toast.visible {
  opacity: 1;
}

.discover-shell {
  width: 100vw;
  height: 100vh;
  display: flex;
  background: var(--bg-color);
  color: var(--text-color);
  overflow: hidden;
}

.discover-main {
  position: relative;
  padding: 24px 48px 32px;
}

.discover-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.discover-page-header {
  padding-bottom: 4px;
}

.discover-picker-row {
  margin-bottom: 24px;
  gap: 12px;
}

.discover-seeall-shell {
  width: auto;
  height: auto;
  min-height: 100%;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.discover-header {
  margin-bottom: 24px;
}

.discover-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(43, 53, 67, 0.96), rgba(19, 24, 31, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.discover-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.discover-kicker {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(229, 238, 247, 0.68);
}

.discover-title {
  margin: 0;
  font-size: 56px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.discover-context-line {
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-secondary);
}

.discover-subtitle {
  max-width: 920px;
  font-size: 22px;
  line-height: 1.3;
  color: rgba(229, 238, 247, 0.72);
}

.discover-summary-pill {
  flex: 0 0 auto;
  align-self: center;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #f7fbff;
}

.discover-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  z-index: 4;
}

.discover-filter-shell {
  position: relative;
}

.discover-filter-shell.open {
  z-index: 12;
}

.discover-filter {
  width: 100%;
  min-height: 116px;
  padding: 17px 28px 19px;
  border-radius: 27px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}

.discover-filter.focused,
.discover-filter-shell.open .discover-filter {
  border-color: var(--focus-color);
  box-shadow: 0 0 0 2px var(--focus-color);
  background: var(--focus-bg);
}

.discover-filter-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.discover-filter-label {
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--text-tertiary);
}

.discover-filter-value {
  min-width: 0;
  display: block;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 400;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-filter-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.discover-filter-chevron {
  width: 24px;
  height: 24px;
  display: block;
}

.discover-filter.focused .discover-filter-icon,
.discover-filter-shell.open .discover-filter-icon {
  color: var(--text-color);
}

.discover-picker-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  border-radius: 0 0 27px 27px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  box-shadow: 0 22px 32px rgba(0, 0, 0, 0.45);
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 10;
  animation: discoverMenuIn 180ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.discover-picker-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.discover-picker-option {
  min-height: 96px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 35px;
  line-height: 1.12;
  font-weight: 400;
  color: var(--text-color);
  transition: background-color 160ms ease, color 160ms ease;
}

.discover-picker-option.selected {
  color: var(--text-color);
}

.discover-picker-option.focused-option {
  background: var(--focus-bg);
}

.discover-picker-option:last-child {
  border-bottom: none;
}

.discover-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 16px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 16px;
}

.discover-meta-dot {
  color: var(--text-secondary);
}

.discover-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.discover-results-copy {
  min-width: 0;
}

.discover-results-title {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 650;
  color: var(--text-color);
}

.discover-results-subtitle {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.discover-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  justify-content: start;
  gap: 16px 10px;
  padding-bottom: 32px;
}

.discover-card,
.discover-action-card {
  width: 248px;
  scroll-margin-block: 12px;
  transition: transform 180ms ease;
}

.discover-card.seeall-card {
  border-color: transparent;
  box-shadow: none;
}

.discover-card.focused,
.discover-action-card.focused {
  transform: none;
}

.discover-card.seeall-card.focused {
  border-color: transparent;
  box-shadow: none;
}

.discover-card-poster {
  width: 100%;
  height: 372px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  border: 2px solid transparent;
  box-sizing: border-box;
  transition: transform 180ms ease, border-color 180ms ease;
}

.discover-card.focused .discover-card-poster,
.discover-action-card.focused .discover-action-card-inner {
  border-color: #fff;
  transform: scale(1.02);
  transform-origin: center center;
}

.discover-card-poster-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discover-card-poster-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.discover-card-title,
.discover-action-card-title {
  margin-top: 0;
  padding: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--text-color);
}

.discover-card-body {
  margin-top: 10px;
  padding: 0 2px;
}

.discover-card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-card-meta {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-action-card-inner {
  width: 100%;
  height: var(--discover-poster-height);
  border-radius: var(--discover-poster-radius);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.discover-action-card.focused .discover-action-card-inner {
  background: var(--focus-bg);
}

.discover-action-card-title {
  margin-top: 0;
  text-align: center;
}

.discover-loading-state,
.discover-empty-state {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.discover-loading-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--focus-color);
  animation: discoverSpinner 800ms linear infinite;
}

.discover-loading-label {
  font-size: 18px;
  line-height: 24px;
  color: var(--text-secondary);
}

.discover-empty-icon {
  font-size: 80px;
  line-height: 1;
  color: var(--text-tertiary);
}

.discover-empty-title {
  font-size: 34px;
  line-height: 1.08;
  font-weight: 650;
}

.discover-empty-copy {
  max-width: 520px;
  font-size: 20px;
  line-height: 1.35;
  color: var(--text-secondary);
}

@keyframes discoverMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.search-results-row {
  margin-bottom: 16px;
  scroll-margin-top: 18px;
  scroll-margin-bottom: 28px;
}

.search-results-title {
  margin: 0;
  padding: 0 48px;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.08;
  color: var(--text-color);
}

.search-results-subtitle {
  margin-top: 4px;
  padding: 0 48px;
  font-size: 20px;
  color: var(--text-secondary);
}

.search-results-track {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 64px 14px 48px;
  scrollbar-width: none;
}

.search-results-track::-webkit-scrollbar {
  display: none;
}

.search-result-card {
  flex: 0 0 248px;
  width: 248px;
  border-radius: 12px;
  background: transparent;
  border: none;
  overflow: visible;
  scroll-margin-inline: 48px;
  transform-origin: center center;
  transition: transform 160ms ease;
}

.search-result-card.focused {
  border-color: transparent;
  box-shadow: none;
  transform: none;
  z-index: 2;
}

.search-result-poster-wrap {
  width: 100%;
  height: 372px;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.search-result-card.focused .search-result-poster-wrap {
  border-color: var(--focus-color);
  box-shadow: 0 0 0 2px var(--focus-color);
  background-color: var(--focus-bg);
}

.search-result-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-name {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-date {
  margin-top: 4px;
  font-size: 20px;
  color: var(--text-secondary);
}

.search-seeall-card {
  flex: 0 0 248px;
  width: 248px;
  height: auto;
  background: transparent;
  border: none;
}

.search-seeall-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.search-seeall-card.focused .search-seeall-inner {
  border-color: var(--focus-color);
  background: var(--focus-bg);
  box-shadow: 0 0 0 2px var(--focus-color);
}

.search-seeall-arrow {
  font-size: 60px;
  line-height: 1;
  color: var(--text-secondary);
}

.search-seeall-label {
  font-size: 30px;
  font-weight: 500;
  color: var(--text-secondary);
}

.library-shell {
  background: var(--bg-color);
}

.library-main {
  padding: 40px 54px 70px;
  background: var(--bg-color);
}

.library-page {
  min-height: calc(100vh - 80px);
  color: #ffffff;
  position: relative;
}

.library-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.library-page-title {
  margin: 0;
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.library-page-source {
  padding-top: 8px;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 5.5px;
  color: var(--text-tertiary);
}

.library-picker-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 28px;
}

.library-picker {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.library-picker-wide {
  flex: 0 0 calc(50% - 11px);
  max-width: calc(50% - 11px);
}

.library-picker-flex {
  flex: 1 1 0;
}

.library-picker-anchor {
  width: 100%;
  min-height: 116px;
  padding: 17px 28px 19px;
  border-radius: 27px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}

.library-picker-anchor.focused,
.library-picker.open .library-picker-anchor {
  border-color: var(--focus-color);
  box-shadow: 0 0 0 2px var(--focus-color);
  background: var(--focus-bg);
}

.library-picker-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.library-picker-title {
  font-size: 22px;
  line-height: 1;
  color: var(--text-tertiary);
  letter-spacing: 0.3px;
}

.library-picker-value {
  font-size: 38px;
  line-height: 1.08;
  color: var(--text-color);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.library-picker-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.library-picker-chevron {
  width: 24px;
  height: 24px;
  display: block;
}

.library-picker-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  border-radius: 0 0 27px 27px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  box-shadow: 0 22px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 20;
}

.library-picker-option {
  width: 100%;
  min-height: 96px;
  padding: 0 24px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: transparent;
  color: var(--text-color);
  text-align: left;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.12;
}

.library-picker-option:last-child {
  border-bottom: none;
}

.library-picker-option.focused {
  background: var(--focus-bg);
}

.library-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.library-action-button {
  min-width: 174px;
  min-height: 62px;
  padding: 0 22px;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 24px;
  font-weight: 500;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.library-action-button.focused,
.library-manage-list-button.focused,
.library-privacy-button.focused,
.library-dialog-input.focused,
.library-dialog-textarea.focused {
  border-color: var(--focus-color);
  box-shadow: 0 0 0 2px var(--focus-color);
  background: var(--focus-bg);
}

.library-action-button:disabled,
.library-manage-list-button:disabled,
.library-picker-anchor:disabled,
.library-picker-option:disabled,
.library-privacy-button:disabled,
.library-dialog-input:disabled,
.library-dialog-textarea:disabled {
  opacity: 0.45;
  cursor: default;
}

.library-action-button.danger {
  background: rgba(74, 35, 35, 0.96);
  border-color: rgba(74, 35, 35, 0.96);
}

.library-grid-wrap {
  padding-bottom: 28px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 168px));
  gap: 18px 16px;
  align-content: start;
}

.library-grid-card {
  width: 168px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: none;
  background: transparent;
  color: var(--text-color);
  text-align: left;
}

.library-grid-card.focused {
  transform: none;
}

.library-grid-card.focused .library-grid-poster {
  border-color: var(--focus-color);
  box-shadow: 0 0 0 2px var(--focus-color);
  background-color: var(--focus-bg);
}

.library-grid-poster {
  width: 168px;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  border: 2px solid transparent;
  background: var(--card-bg) center center / cover no-repeat;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.library-grid-poster.placeholder {
  background: var(--card-bg);
}

.library-grid-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.library-grid-year {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--text-secondary);
}

.library-empty-state {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 38px;
  text-align: center;
}

.library-empty-icon {
  width: 86px;
  height: 86px;
  color: var(--text-tertiary);
}

.library-empty-title {
  margin: 28px 0 0;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.08;
  color: #ffffff;
}

.library-empty-subtitle {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-secondary);
}

.library-loading-state {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text-secondary);
}

.library-loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--text-color);
  animation: librarySpin 860ms linear infinite;
}

.library-loading-label {
  font-size: 22px;
  line-height: 1.2;
}

.library-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text-color);
  font-size: 20px;
  border: 1px solid var(--border-color);
}

.library-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.library-dialog {
  width: min(620px, calc(100vw - 48px));
  max-height: min(88vh, 760px);
  overflow-y: auto;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.48);
  padding: 26px 24px 24px;
  color: var(--text-color);
}

.library-delete-dialog {
  width: min(420px, calc(100vw - 48px));
}

.library-dialog-title {
  margin: 0 0 16px;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
}

.library-dialog-subtitle,
.library-manage-empty,
.library-dialog-error {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.35;
}

.library-dialog-subtitle,
.library-manage-empty {
  color: var(--text-secondary);
}

.library-dialog-error {
  color: #ffb6b6;
}

.library-manage-list {
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.library-manage-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.library-manage-list-button {
  min-height: 56px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 22px;
  text-align: left;
}

.library-manage-list-button.selected,
.library-privacy-button.selected {
  background: var(--focus-bg);
  border-color: var(--focus-color);
}

.library-dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.library-dialog-actions.stacked {
  flex-direction: column;
}

.library-dialog-actions.stacked .library-action-button {
  width: 100%;
}

.library-dialog-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.library-dialog-field-label {
  font-size: 18px;
  line-height: 1.2;
  color: var(--text-secondary);
}

.library-dialog-input,
.library-dialog-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 20px;
  padding: 14px 16px;
  outline: none;
}

.library-dialog-textarea {
  min-height: 108px;
  resize: none;
}

.library-privacy-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.library-privacy-button {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 18px;
}

@keyframes librarySpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.home-main::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.home-main::-webkit-scrollbar-thumb {
  background: transparent;
}

.home-hero {
  margin-bottom: 18px;
}

.home-hero-card {
  position: relative;
  min-height: 270px;
  border-radius: 22px;
  padding: 22px;
  overflow: hidden;
  background: linear-gradient(100deg, rgba(8, 11, 15, 0.95), rgba(15, 20, 28, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.home-hero-card.focused {
  transform: none;
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.home-hero-title {
  position: relative;
  z-index: 1;
  max-width: 58%;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
}

.home-hero-description {
  position: relative;
  z-index: 1;
  max-width: 52%;
  margin-top: 12px;
  color: rgba(241, 247, 255, 0.86);
  font-size: 18px;
  line-height: 1.4;
}

.featured-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  opacity: 0.4;
  object-fit: cover;
}

.home-row {
  margin-bottom: 26px;
}

.home-row-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.home-row-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
}

.home-row-see-all {
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(241, 247, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
}

.home-row-see-all.focused {
  transform: none;
  border-color: rgba(245, 249, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(245, 249, 255, 0.2);
}

.home-seeall-card {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-seeall-card-inner {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.home-seeall-arrow {
  font-size: 60px;
  line-height: 1;
  color: var(--text-secondary);
}

.home-seeall-label {
  font-size: 30px;
  font-weight: 500;
  color: var(--text-secondary);
}

.home-empty {
  margin: 0;
  color: rgba(239, 245, 251, 0.72);
}

.home-track {
  --home-track-gap: 20px;
  display: flex;
  gap: var(--home-track-gap);
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.home-track::-webkit-scrollbar {
  display: none;
}

.home-content-card {
  flex: 0 0 calc((100% - (var(--home-track-gap) * 4)) / 5);
  min-width: 300px;
  max-width: 410px;
  min-height: 390px;
  border-radius: 52px;
  padding: 0;
  background: transparent;
  border: 2px solid transparent;
  box-shadow: none;
  overflow: hidden;
}

.home-content-card.focused {
  transform: none;
  border-color: rgba(245, 249, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(245, 249, 255, 0.2);
}

.home-content-card .content-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  border-radius: 50px;
}

.home-content-title {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-progress-card {
  flex: 0 0 clamp(280px, 22vw, 360px);
  min-height: 220px;
  border-radius: 14px;
  border: 0;
  background: rgba(13, 19, 27, 0.92);
  overflow: hidden;
}

.home-progress-card.focused {
  box-shadow: 0 0 0 2px rgba(245, 249, 255, 0.95);
}

.home-progress-poster {
  height: 146px;
  background: linear-gradient(140deg, #1a2230, #111722) center center / cover no-repeat;
  position: relative;
}

.home-progress-left {
  position: absolute;
  right: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(10, 14, 21, 0.82);
  color: rgba(241, 247, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.home-progress-meta {
  padding: 10px 10px 12px;
}

.home-progress-meta .home-content-title {
  margin-top: 0;
}

.home-progress-track {
  margin-top: 8px;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.home-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: rgba(245, 249, 255, 0.95);
}

.home-content-type {
  margin-top: 4px;
  color: rgba(237, 244, 251, 0.72);
  font-size: 12px;
}

.home-screen-shell {
  --home-sidebar-width: var(--legacy-sidebar-rail-width);
  --home-content-start: 48px;
  --home-row-gap: 16px;
  --home-track-end: 200px;
  --home-continue-track-end: 48px;
  --home-poster-width: 232px;
  --home-poster-radius: 12px;
  --home-continue-width: 432px;
  --home-continue-height: 243px;
  background: #000;
  color: #fff;
}

.home-screen-shell .home-main {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0 0 32px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.home-screen-shell .home-main::-webkit-scrollbar {
  display: none;
}

.home-screen-shell .home-hero {
  position: relative;
}

.home-screen-shell .home-hero-card {
  position: relative;
  min-height: 400px;
  border: none;
  border-radius: 0;
  background: #000;
  overflow: hidden;
}

.home-screen-shell .home-hero-card.focused {
  border-color: transparent;
  box-shadow: none;
}

.home-screen-shell .home-hero-backdrop-wrap,
.home-screen-shell .home-hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-screen-shell .home-hero-backdrop {
  object-fit: cover;
  opacity: 0.96;
}

.home-screen-shell .home-hero-backdrop.placeholder {
  background:
    radial-gradient(circle at 72% 18%, rgba(221, 18, 26, 0.26), transparent 18%),
    linear-gradient(110deg, rgba(8, 8, 8, 1) 0%, rgba(11, 11, 11, 0.88) 38%, rgba(17, 17, 17, 0.28) 66%, rgba(5, 5, 5, 0.18) 100%);
}

.home-screen-shell .home-hero-card::before,
.home-screen-shell .home-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-screen-shell .home-hero-card::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.94) 14%, rgba(0, 0, 0, 0.82) 28%, rgba(0, 0, 0, 0.32) 52%, rgba(0, 0, 0, 0.05) 72%, rgba(0, 0, 0, 0) 100%);
}

.home-screen-shell .home-hero-card::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.10) 48%, rgba(0, 0, 0, 0.86) 100%);
}

.home-screen-shell .home-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(50%, 640px);
}

.home-screen-shell .home-hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-screen-shell .home-hero-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
}

.home-screen-shell .home-hero-title-text {
  margin: 0;
  font-size: 56px;
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.home-screen-shell .home-hero-title-text.is-hidden {
  display: none;
}

.home-screen-shell .home-hero-meta-primary,
.home-screen-shell .home-hero-meta-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.43;
  font-weight: 500;
}

.home-screen-shell .home-hero-meta-primary.is-empty,
.home-screen-shell .home-hero-meta-secondary.is-empty,
.home-screen-shell .home-hero-chip-row.is-empty {
  display: none;
}

.home-screen-shell .home-hero-dot {
  color: rgba(255, 255, 255, 0.45);
}

.home-screen-shell .home-hero-imdb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
}

.home-screen-shell .home-hero-imdb img {
  width: 30px;
  height: auto;
}

.home-screen-shell .home-hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-screen-shell .home-hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.home-screen-shell .home-hero-description {
  margin: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-screen-shell .home-hero-indicators {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 80px;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.home-screen-shell .home-hero-indicator {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.home-screen-shell .home-hero-indicator.is-active {
  width: 48px;
  height: 7px;
  background: rgba(255, 255, 255, 0.95);
}

.home-screen-shell .home-row {
  position: relative;
  z-index: 2;
  margin-bottom: 32px;
}

.home-screen-shell .home-row-head {
  margin-bottom: 12px;
  padding-left: var(--home-content-start);
}

.home-screen-shell .home-row-title {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-screen-shell .home-row-subtitle {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.33;
}

.home-screen-shell .home-track {
  --home-track-gap: var(--home-row-gap);
  gap: var(--home-track-gap);
  padding: 0 var(--home-track-end) 8px var(--home-content-start);
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}

.home-screen-shell .home-track::-webkit-scrollbar {
  display: none;
}

.home-screen-shell .home-content-card {
  flex: 0 0 var(--home-poster-width);
  min-width: var(--home-poster-width);
  max-width: var(--home-poster-width);
  min-height: 0;
  border-radius: var(--home-poster-radius);
  border: 2px solid transparent;
  background: transparent;
  overflow: visible;
  transition: transform 160ms ease-out, border-color 160ms ease, box-shadow 160ms ease;
}

.home-screen-shell .home-content-card.focused {
  border-color: #fff;
  transform: scale(1.01);
  transform-origin: center center;
}

.home-screen-shell .home-poster-card {
  border-color: transparent;
  transform: none;
}

.home-screen-shell .home-poster-card.focused {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.home-screen-shell .home-poster-card.home-content-card.focused {
  border-color: transparent !important;
  box-shadow: none !important;
}

.home-screen-shell .home-poster-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 2px solid transparent;
  border-radius: calc(var(--home-poster-radius) - 2px);
  background-color: transparent;
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.home-screen-shell .home-poster-card.focused .home-poster-frame {
  border-color: var(--focus-color);
  box-shadow: 0 0 0 2px var(--focus-color);
  background-color: var(--focus-bg);
  transform: none;
}

.home-screen-shell .home-poster-card .content-poster,
.home-screen-shell .home-poster-card .home-poster-expanded-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--home-poster-radius) - 2px);
  object-fit: cover;
}

.home-screen-shell .home-poster-card .content-poster {
  background: linear-gradient(180deg, rgba(26, 26, 26, 1), rgba(10, 10, 10, 1));
  transition: opacity 280ms ease;
}

.home-screen-shell .home-poster-card .home-poster-expanded-backdrop {
  opacity: 0;
  transition: opacity 220ms ease;
}

.home-screen-shell .home-poster-card .home-poster-expanded-backdrop.placeholder {
  background: linear-gradient(180deg, rgba(26, 26, 26, 1), rgba(10, 10, 10, 1));
}

.home-screen-shell .home-poster-copy {
  padding: 8px 2px 0;
}

.home-screen-shell .home-poster-expanded-gradient,
.home-screen-shell .home-poster-expanded-brand,
.home-screen-shell .home-poster-expanded-copy,
.home-screen-shell .home-poster-trailer-layer {
  display: none;
}

.home-screen-shell .home-poster-expanded-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.76) 100%);
  pointer-events: none;
}

.home-screen-shell .home-poster-expanded-brand {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
}

.home-screen-shell .home-poster-expanded-logo {
  display: block;
  width: 100%;
  max-width: 62%;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.home-screen-shell .home-poster-expanded-title {
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.home-screen-shell .home-poster-expanded-copy {
  padding-top: 8px;
}

.home-screen-shell .home-poster-expanded-meta {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.home-screen-shell .home-poster-expanded-description {
  margin-top: 4px;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.home-inline-trailer-frame,
.home-inline-trailer-video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

.home-screen-shell .home-poster-title {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.home-screen-shell .home-poster-subtitle {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.home-screen-shell .home-seeall-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.home-screen-shell .home-seeall-card-inner {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.home-screen-shell .home-seeall-label {
  font-size: 30px;
  font-weight: 500;
  color: var(--text-secondary);
}

.home-screen-shell .home-seeall-arrow {
  font-size: 60px;
  color: var(--text-secondary);
}

.home-screen-shell .home-seeall-card.focused,
.home-screen-shell .home-seeall-card.home-content-card.focused {
  border-color: transparent !important;
  box-shadow: none !important;
  background: transparent !important;
  transform: none !important;
}

.home-screen-shell.home-layout-modern .home-seeall-card,
.home-screen-shell.home-layout-modern .home-seeall-card.home-content-card.focused {
  border-color: transparent !important;
  box-shadow: none !important;
}

.home-screen-shell.home-layout-modern .home-seeall-card.focused .home-seeall-card-inner {
  border-color: var(--focus-color);
  background: var(--focus-bg);
  box-shadow: 0 0 0 2px var(--focus-color);
}

.home-screen-shell.home-layout-classic .home-seeall-card.focused,
.home-screen-shell.home-layout-grid .home-seeall-card.focused {
  background: transparent;
}

.home-screen-shell.home-layout-classic .home-seeall-card.focused .home-seeall-card-inner,
.home-screen-shell.home-layout-grid .home-seeall-card.focused .home-seeall-card-inner {
  border-color: var(--focus-color);
  background: var(--focus-bg);
  box-shadow: 0 0 0 2px var(--focus-color);
}

.home-screen-shell .home-row-continue .home-track {
  padding-right: var(--home-continue-track-end);
}

.home-screen-shell .home-continue-card {
  flex-basis: var(--home-continue-width);
  min-width: var(--home-continue-width);
  max-width: var(--home-continue-width);
  border-radius: 12px;
}

.home-screen-shell .home-continue-media {
  position: relative;
  height: var(--home-continue-height);
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(28, 28, 28, 0.28) 0%, rgba(0, 0, 0, 0.74) 100%),
    linear-gradient(145deg, #393939, #111);
  background-position: center;
  background-size: cover;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.home-screen-shell .home-continue-card.focused,
.home-screen-shell .home-continue-card.home-content-card.focused {
  border-color: transparent !important;
  box-shadow: none !important;
  background: transparent !important;
  transform: none !important;
}

.home-screen-shell .home-continue-card.focused .home-continue-media {
  box-shadow: inset 0 0 0 2px var(--focus-color), 0 0 0 2px var(--focus-color);
  background-color: var(--focus-bg);
}

.home-screen-shell .home-continue-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.12) 35%, rgba(0, 0, 0, 0.74) 100%);
}

.home-screen-shell .home-continue-badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(19, 19, 19, 0.88);
  color: rgba(255, 255, 255, 0.94);
  font-size: 11px;
  font-weight: 500;
}

.home-screen-shell .home-continue-copy {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
}

.home-screen-shell .home-continue-kicker {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.33;
}

.home-screen-shell .home-continue-title {
  margin-top: 2px;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 500;
}

.home-screen-shell .home-continue-subtitle {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.33;
}

.home-screen-shell .home-continue-progress {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.home-screen-shell .home-continue-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #9e9e9e;
}

.hold-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
}

.hold-menu {
  width: min(520px, calc(100vw - 48px));
  padding: 34px 34px 28px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  box-sizing: border-box;
}

.hold-menu-header {
  margin-bottom: 26px;
  text-align: center;
}

.hold-menu-kicker {
  color: #b3b3b3;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hold-menu-title {
  margin: 10px 0 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.16;
  font-weight: 700;
}

.hold-menu-subtitle {
  margin: 16px 0 0;
  color: #b3b3b3;
  font-size: 18px;
  line-height: 1.45;
}

.hold-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hold-menu-button {
  width: 100%;
  min-height: 58px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: #fff;
  text-align: left;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  box-sizing: border-box;
}

.hold-menu-button.focused {
  background: var(--focus-bg);
  border-color: var(--focus-color);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--focus-color);
}

.hold-menu-button.danger {
  background: #4a2323;
}

.home-screen-shell .home-continue-media-loading {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    linear-gradient(145deg, #262626, #101010);
  background-size: 100% 100%, cover;
  animation: homeContinueLoadingShimmer 2.2s ease-in-out infinite;
}

.home-screen-shell .home-continue-card-loading {
  pointer-events: none;
}

.home-screen-shell .home-continue-card-loading .home-continue-progress {
  display: none;
}

.home-screen-shell .home-continue-card-loading .home-continue-badge {
  color: transparent;
  min-width: 70px;
  background: rgba(19, 19, 19, 0.94);
}

.home-screen-shell .home-continue-card-loading .home-continue-title,
.home-screen-shell .home-continue-card-loading .home-continue-subtitle,
.home-screen-shell .home-continue-card-loading .home-continue-kicker {
  text-shadow: none;
}

.home-screen-shell .home-continue-copy-skeleton {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding-right: 96px;
  padding-bottom: 4px;
}

.home-screen-shell .home-continue-skeleton-line {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1));
  background-size: 100% 100%;
  animation: homeContinueLoadingShimmer 2.2s ease-in-out infinite;
}

.home-screen-shell .home-continue-skeleton-kicker {
  width: 58px;
  height: 12px;
}

.home-screen-shell .home-continue-skeleton-title {
  width: var(--cw-skeleton-title, 138px);
  height: 16px;
}

.home-screen-shell .home-poster-card-loading {
  pointer-events: none;
}

.home-screen-shell .home-poster-card-loading .home-poster-frame {
  position: relative;
  overflow: hidden;
}

.home-screen-shell .home-poster-card-loading .home-poster-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  background-size: 100% 100%;
  animation: homeContinueLoadingShimmer 2.2s ease-in-out infinite;
  z-index: 2;
}

.home-screen-shell .home-poster-card-loading .content-poster.placeholder {
  background: linear-gradient(145deg, #262626, #101010);
}

.home-screen-shell .home-poster-copy-skeleton {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
}

.home-screen-shell .home-poster-skeleton-line {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1));
  background-size: 100% 100%;
  animation: homeContinueLoadingShimmer 2.2s ease-in-out infinite;
}

.home-screen-shell .home-poster-skeleton-title {
  width: var(--poster-skeleton-title, 120px);
  height: 14px;
}

.home-screen-shell .home-poster-skeleton-subtitle {
  width: var(--poster-skeleton-subtitle, 90px);
  height: 12px;
}

.home-screen-shell .home-continue-skeleton-subtitle {
  width: var(--cw-skeleton-subtitle, 118px);
  height: 12px;
  opacity: 0.86;
}

@keyframes homeContinueLoadingShimmer {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.92;
  }
}

.home-screen-shell.home-layout-modern .home-modern-hero-card-loading {
  pointer-events: none;
}

.home-screen-shell.home-layout-modern .home-modern-hero-media-loading .home-hero-backdrop-loading,
.home-screen-shell.home-layout-modern .home-modern-skeleton-block {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  background-size: 100% 100%;
  animation: homeContinueLoadingShimmer 2.2s ease-in-out infinite;
}

.home-screen-shell.home-layout-modern .home-hero-backdrop-loading {
  width: 100%;
  height: 100%;
}


.home-screen-shell.home-layout-classic .home-main {
  background: #000;
}

.home-screen-shell.home-layout-classic {
  --home-poster-width: 228px;
}

.home-screen-shell.home-layout-classic .home-hero-card {
  min-height: 400px;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.34);
}

.home-screen-shell.home-layout-classic .home-hero-backdrop-wrap {
  inset: 0;
}

.home-screen-shell.home-layout-classic .home-hero-card::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.98) 18%, rgba(0, 0, 0, 0.94) 34%, rgba(0, 0, 0, 0.74) 50%, rgba(0, 0, 0, 0.18) 72%, rgba(0, 0, 0, 0) 100%);
}

.home-screen-shell.home-layout-classic .home-hero-copy {
  min-height: 400px;
  justify-content: flex-end;
  padding: 48px 48px 48px var(--home-content-start);
}

.home-screen-shell.home-layout-classic .home-hero-logo {
  max-width: 420px;
  max-height: 96px;
}

.home-screen-shell.home-layout-classic .home-hero-title-text {
  max-width: 460px;
  font-size: 48px;
}

.home-screen-shell.home-layout-classic .home-hero-meta-primary {
  max-width: 100%;
  margin-top: 8px;
}

.home-screen-shell.home-layout-classic .home-hero-meta-secondary {
  display: none;
}

.home-screen-shell.home-layout-classic .home-hero-chip-row {
  margin-top: 6px;
}

.home-screen-shell.home-layout-classic .home-hero-description {
  margin-top: 8px;
  max-width: 560px;
  display: block;
  max-height: calc(1.55em * 2);
}

.home-screen-shell.home-layout-classic .home-hero-indicators {
  bottom: 16px;
  gap: 8px;
}

.home-screen-shell.home-layout-classic .home-track {
  padding-bottom: 8px;
}

.home-screen-shell.home-layout-classic .home-poster-copy,
.home-screen-shell.home-layout-grid .home-poster-copy {
  display: block;
  padding-top: 10px;
}

.home-screen-shell.home-layout-classic .home-poster-title,
.home-screen-shell.home-layout-grid .home-poster-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.home-screen-shell.home-layout-classic .home-poster-subtitle,
.home-screen-shell.home-layout-grid .home-poster-subtitle {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.25;
}

.home-screen-shell.home-layout-classic .home-content-card.focused,
.home-screen-shell.home-layout-grid .home-content-card.focused {
  transform: none;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

.home-screen-shell.home-layout-classic .home-poster-card.focused .home-poster-frame,
.home-screen-shell.home-layout-grid .home-poster-card.focused .home-poster-frame {
  transform: none;
  border-color: var(--focus-color);
  box-shadow: 0 0 0 2px var(--focus-color);
  background-color: var(--focus-bg);
}

.home-screen-shell.home-layout-classic .home-content-card,
.home-screen-shell.home-layout-grid .home-content-card,
.home-screen-shell.home-layout-classic .home-poster-frame,
.home-screen-shell.home-layout-grid .home-poster-frame {
  will-change: auto;
}

.home-screen-shell.home-layout-grid {
  --home-content-start: 24px;
  --home-row-gap: 12px;
  --home-track-end: 24px;
  --home-continue-track-end: 24px;
  --home-poster-width: 232px;
  --home-poster-radius: 12px;
  --home-continue-width: 330px;
  --home-continue-height: 186px;
}

.home-screen-shell.home-layout-grid .home-hero-card {
  min-height: 400px;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.34);
}

.home-screen-shell.home-layout-grid .home-hero-copy {
  min-height: 400px;
  justify-content: flex-end;
  padding: 48px 48px 48px 48px;
  width: min(50%, 620px);
}

.home-screen-shell.home-layout-grid .home-hero-logo {
  max-width: 420px;
  max-height: 96px;
}

.home-screen-shell.home-layout-grid .home-hero-title-text {
  max-width: 460px;
  font-size: 48px;
}

.home-screen-shell.home-layout-grid .home-hero-meta-primary {
  margin-top: 8px;
}

.home-screen-shell.home-layout-grid .home-hero-chip-row {
  margin-top: 6px;
}

.home-screen-shell.home-layout-grid .home-hero-description {
  margin-top: 8px;
  max-width: 540px;
  display: block;
  max-height: calc(1.55em * 2);
}

.home-screen-shell.home-layout-grid .home-hero-meta-secondary {
  display: none;
}

.home-screen-shell.home-layout-grid .home-hero-indicators {
  bottom: 16px;
  gap: 8px;
}

.home-screen-shell.home-layout-grid .home-row-continue {
  margin: 0 0 32px;
}

.home-screen-shell.home-layout-grid .home-row-head {
  padding-left: 24px;
}

.home-screen-shell.home-layout-grid .home-track {
  padding-left: 24px;
  padding-right: 24px;
}

.home-screen-shell.home-layout-classic .home-continue-card.focused,
.home-screen-shell.home-layout-grid .home-continue-card.focused {
  background: transparent;
  box-shadow: none;
}

.home-screen-shell.home-layout-classic .home-continue-card.focused .home-continue-media,
.home-screen-shell.home-layout-grid .home-continue-card.focused .home-continue-media {
  border-color: var(--focus-color);
  box-shadow: 0 0 0 2px var(--focus-color);
  background-color: var(--focus-bg);
}

.home-screen-shell.home-layout-grid .home-grid-catalogs {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 24px 32px;
}

.home-screen-shell.home-layout-grid .home-grid-section {
  position: relative;
  z-index: 2;
}

.home-screen-shell.home-layout-grid .home-grid-section-divider {
  margin: 0 0 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-screen-shell.home-layout-grid .home-grid-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--home-poster-width), 1fr));
  gap: 16px 12px;
  align-items: start;
}

.home-screen-shell.home-layout-grid .home-grid-track .home-content-card {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.home-screen-shell.home-layout-grid .home-grid-track .home-poster-frame,
.home-screen-shell.home-layout-grid .home-grid-track .content-poster,
.home-screen-shell.home-layout-grid .home-grid-track .home-seeall-card {
  width: 100%;
}

.home-screen-shell.home-layout-grid .home-grid-track .home-seeall-card {
  aspect-ratio: 2 / 3;
  min-height: 0;
}

.home-screen-shell.home-layout-grid .home-grid-track .home-seeall-card-inner {
  gap: 10px;
}

.home-screen-shell.home-layout-grid .home-grid-track .home-seeall-label {
  font-size: 16px;
  line-height: 1.25;
}

.home-screen-shell.home-layout-grid .home-grid-sticky {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: flex-start;
  min-height: 56px;
  margin-bottom: -56px;
  padding: 12px 48px;
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.94) 70%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.home-screen-shell.home-layout-grid .home-grid-sticky.is-visible {
  opacity: 1;
}

.home-screen-shell.home-layout-modern {
  --home-content-start: 52px;
  --home-row-gap: 12px;
  --home-track-end: 52px;
  --home-continue-track-end: 52px;
  --modern-rows-viewport-height: 52%;
  --modern-rows-page-height: 52vh;
  --modern-hero-media-width: 72%;
  --modern-hero-media-height: calc(100% - var(--modern-rows-viewport-height) + 112px);
  --modern-trailer-overscan-zoom: 1.35;
  --home-poster-width: 224px;
  --home-poster-height: calc(var(--home-poster-width) * 1.5);
  --home-poster-expanded-width: calc(var(--home-poster-width) * 2.66);
  --home-poster-copy-height: 74px;
  --home-poster-radius: 12px;
  --home-continue-width: 520px;
  --home-continue-height: 293px;
}

.home-screen-shell.home-layout-modern.modern-sidebar-enabled {
  --home-content-start: calc(var(--modern-sidebar-collapsed-width) + 16px);
}

.home-screen-shell.home-layout-modern .home-main {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.home-screen-shell.home-layout-modern .home-route-content {
  height: 100%;
}

.home-screen-shell.home-layout-modern .home-modern-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #000;
  isolation: isolate;
}

.home-screen-shell.home-layout-modern .home-hero,
.home-screen-shell.home-layout-modern .home-modern-hero-card {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-screen-shell.home-layout-modern .home-modern-hero-media {
  position: absolute;
  top: 0;
  right: -56px;
  width: var(--modern-hero-media-width);
  height: var(--modern-hero-media-height);
  overflow: hidden;
}

.home-screen-shell.home-layout-modern .home-modern-hero-media::before,
.home-screen-shell.home-layout-modern .home-modern-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.home-screen-shell.home-layout-modern .home-modern-hero-media::before {
  background:
    linear-gradient(
      90deg,
      #000 0%,
      rgba(0, 0, 0, 0.8) 22%,
      rgba(0, 0, 0, 0.24) 46%,
      rgba(0, 0, 0, 0.04) 76%,
      rgba(0, 0, 0, 0) 100%
    ),
    radial-gradient(circle at 58% 50%, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 42%),
    linear-gradient(
      115deg,
      rgba(0, 0, 0, 0.16) 0%,
      rgba(0, 0, 0, 0.06) 38%,
      rgba(0, 0, 0, 0.02) 72%,
      rgba(0, 0, 0, 0) 100%
    );
}

.home-screen-shell.home-layout-modern .home-modern-hero-media::after {
  background:
    linear-gradient(180deg, transparent 89%, rgba(0, 0, 0, 0.14) 93%, rgba(0, 0, 0, 0.52) 96.5%, rgba(0, 0, 0, 0.92) 99%, #000 100%);
}

.home-screen-shell.home-layout-modern .home-modern-hero-media .home-hero-backdrop-wrap,
.home-screen-shell.home-layout-modern .home-modern-hero-media .home-hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-screen-shell.home-layout-modern .home-modern-hero-media .home-hero-backdrop-wrap {
  z-index: 0;
}

.home-screen-shell.home-layout-modern .home-hero-backdrop {
  object-position: 100% 0;
  opacity: 1;
  filter: brightness(1.08) saturate(1.04);
  transition: opacity 360ms ease;
}

.home-screen-shell.home-layout-modern .home-hero-trailer-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.home-screen-shell.home-layout-modern .home-hero-trailer-layer .home-inline-trailer-frame,
.home-screen-shell.home-layout-modern .home-hero-trailer-layer .home-inline-trailer-video {
  transform: scale(var(--modern-trailer-overscan-zoom));
  transform-origin: right center;
}

.home-screen-shell.home-layout-modern .home-hero-trailer-layer .home-inline-trailer-video {
  object-position: 100% 50%;
}

.home-screen-shell.home-layout-modern .home-modern-hero-media.trailer-active .home-hero-trailer-layer {
  opacity: 1;
}

.home-screen-shell.home-layout-modern .home-modern-hero-media.trailer-active .home-hero-backdrop {
  opacity: 0;
}

.home-screen-shell.home-layout-modern .home-modern-hero-card::before,
.home-screen-shell.home-layout-modern .home-modern-hero-card::after {
  content: none;
}

.home-screen-shell.home-layout-modern .home-modern-hero-copy {
  position: absolute;
  left: var(--home-content-start);
  right: 48px;
  bottom: calc(var(--modern-rows-viewport-height) + 16px);
  z-index: 2;
  width: min(42%, 620px);
}

.home-screen-shell.home-layout-modern .home-hero-logo {
  max-width: 220px;
  max-height: 118px;
}

.home-screen-shell.home-layout-modern .home-hero-title-text {
  max-width: 520px;
  font-size: 60px;
}

.home-screen-shell.home-layout-modern .home-hero-meta-primary {
  margin-top: 8px;
  gap: 10px;
}

.home-screen-shell.home-layout-modern .home-modern-hero-meta-line,
.home-screen-shell.home-layout-modern .home-modern-hero-secondary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.43;
  font-weight: 500;
}

.home-screen-shell.home-layout-modern .home-modern-hero-meta-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-screen-shell.home-layout-modern .home-modern-hero-secondary {
  color: rgba(255, 255, 255, 0.86);
}

.home-screen-shell.home-layout-modern .home-modern-hero-highlight {
  color: #fff;
  font-weight: 600;
}

.home-screen-shell.home-layout-modern .home-modern-hero-secondary-detail {
  color: rgba(255, 255, 255, 0.72);
}

.home-screen-shell.home-layout-modern .home-modern-hero-meta-line.is-empty,
.home-screen-shell.home-layout-modern .home-modern-hero-secondary.is-empty,
.home-screen-shell.home-layout-modern .home-hero-description.is-empty {
  display: none;
}

.home-screen-shell.home-layout-modern .home-modern-hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: 0.03em;
}

.home-screen-shell.home-layout-modern .home-hero-chip-row {
  display: none;
}

.home-screen-shell.home-layout-modern .home-hero-description {
  margin-top: 8px;
  max-width: 100%;
  display: block;
  max-height: calc(1.55em * 4);
  color: rgba(255, 255, 255, 0.72);
}

.home-screen-shell.home-layout-modern .home-modern-rows-viewport {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--modern-rows-viewport-height);
  z-index: 3;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
}

.home-screen-shell.home-layout-modern .home-modern-rows-viewport::-webkit-scrollbar {
  display: none;
}

.home-screen-shell.home-layout-modern .home-modern-rows-scroll {
  min-height: 100%;
  padding-bottom: 0;
}

.home-screen-shell.home-layout-modern .home-modern-catalogs {
  display: flex;
  flex-direction: column;
}

.home-screen-shell.home-layout-modern .home-row {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: var(--modern-rows-page-height);
  min-height: var(--modern-rows-page-height);
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  padding-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.home-screen-shell.home-layout-modern .home-row-head,
.home-screen-shell.home-layout-modern .home-track {
  padding-left: var(--home-content-start);
}

.home-screen-shell.home-layout-modern .home-row-head {
  margin-bottom: 14px;
}

.home-screen-shell.home-layout-modern .home-row-title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}

.home-screen-shell.home-layout-modern .home-track {
  padding-right: 52px;
  padding-bottom: 0;
  align-items: flex-start;
}

.home-screen-shell.home-layout-modern .home-row-continue {
  margin-top: 0;
}

.home-screen-shell.home-layout-modern .home-hero-indicators {
  display: none;
}

.home-screen-shell.home-layout-modern .home-poster-card {
  transition: flex-basis 180ms ease-out, min-width 180ms ease-out, max-width 180ms ease-out;
}

.home-screen-shell.home-layout-modern .home-poster-card.is-expanded {
  flex-basis: var(--home-poster-expanded-width);
  min-width: var(--home-poster-expanded-width);
  max-width: var(--home-poster-expanded-width);
}

.home-screen-shell.home-layout-modern .home-poster-card.is-expanded .home-poster-frame {
  height: var(--home-poster-height);
  transform: none;
}

.home-screen-shell.home-layout-modern .home-poster-card.is-expanded .content-poster,
.home-screen-shell.home-layout-modern .home-poster-card.is-expanded .content-poster.placeholder {
  opacity: 0;
}

.home-screen-shell.home-layout-modern .home-poster-card.is-expanded .home-poster-expanded-backdrop {
  opacity: 1;
}

.home-screen-shell.home-layout-modern .home-poster-card.is-expanded .home-poster-expanded-gradient,
.home-screen-shell.home-layout-modern .home-poster-card.is-expanded .home-poster-expanded-brand,
.home-screen-shell.home-layout-modern .home-poster-card.is-expanded .home-poster-expanded-copy {
  display: block;
}

.home-screen-shell.home-layout-modern .home-poster-card.is-expanded .home-poster-copy {
  display: none;
}

.home-screen-shell.home-layout-modern .home-poster-card.is-trailer-active .home-poster-trailer-layer {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
  opacity: 1;
}

.home-screen-shell.home-layout-modern .home-continue-copy {
  left: 16px;
  right: 16px;
  bottom: 16px;
}

.home-screen-shell.home-layout-modern .home-continue-kicker {
  font-size: 12px;
  line-height: 1.33;
}

.home-screen-shell.home-layout-modern .home-continue-title {
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.25;
}

.home-screen-shell.home-layout-modern .home-continue-subtitle {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.33;
}

.home-screen-shell.home-layout-modern .home-continue-badge {
  top: 8px;
  right: 8px;
  min-height: 24px;
  padding: 4px 8px;
  font-size: 11px;
}

.home-screen-shell.home-layout-modern .home-continue-progress {
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 3px;
}

.home-screen-shell.home-layout-modern .home-content-card.focused {
  transform: none;
}

.home-screen-shell.home-layout-modern .home-poster-card.focused,
.home-screen-shell.home-layout-modern .home-poster-card.home-content-card.focused {
  border-color: transparent !important;
  box-shadow: none !important;
}

.home-screen-shell.home-layout-modern .home-poster-frame {
  width: 100%;
  height: var(--home-poster-height);
  aspect-ratio: auto;
  border-radius: 12px;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.home-screen-shell.home-layout-modern .home-poster-card.focused .home-poster-frame {
  border-color: var(--focus-color);
  box-shadow: 0 0 0 2px var(--focus-color);
  background-color: var(--focus-bg);
  transform: none;
}

.home-screen-shell.home-layout-modern .home-poster-copy,
.home-screen-shell.home-layout-modern .home-poster-expanded-copy {
  box-sizing: border-box;
  min-height: var(--home-poster-copy-height);
  height: var(--home-poster-copy-height);
  overflow: hidden;
}

.home-sidebar.performance-constrained,
.home-sidebar.performance-constrained .home-nav-item,
.home-sidebar.performance-constrained .home-nav-label {
  transition: none;
}

.home-screen-shell.home-layout-modern .home-poster-copy {
  padding: 8px 4px 0;
}

.home-screen-shell.home-layout-modern .home-poster-title {
  font-size: 16px;
  line-height: 1.25;
}

.home-screen-shell.home-layout-modern .home-poster-subtitle {
  font-size: 12px;
  line-height: 1.33;
}

.settings-shell {
  background: var(--bg-color);
  color: var(--text-color);
}

.settings-root-sidebar-slot {
  display: contents;
}

.settings-shell * {
  box-sizing: border-box;
}

.settings-workspace {
  flex: 1;
  width: min(1720px, calc(100% - 80px));
  height: calc(100vh - 68px);
  margin: 34px auto;
  min-width: 0;
  min-height: 0;
  border-radius: 42px;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  padding: 38px;
  display: grid;
  grid-template-columns: 442px minmax(0, 1fr);
  gap: 32px;
}

.settings-rail-item,
.settings-nav-item,
.settings-action-row,
.settings-theme-card,
.settings-layout-card,
.settings-plugin-input,
.settings-plugin-add {
  appearance: none;
  border: none;
  font: inherit;
}

.settings-sidebar {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scrollbar-color: transparent transparent;
  overscroll-behavior: contain;
  scroll-behavior: auto;
}

.settings-sidebar::-webkit-scrollbar {
  display: none;
}

.settings-nav-item {
  min-height: 112px;
  padding: 0 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.settings-nav-item.selected,
.settings-nav-item.focused {
  background: var(--card-bg);
  color: #fff;
}

.settings-nav-item.selected {
  border: 1px solid var(--focus-color) !important;
}

.settings-nav-item.focused {
  border: 2px solid var(--focus-color) !important;
}

.settings-nav-leading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.settings-nav-label {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.settings-nav-label-wrap {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.settings-nav-badge {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-nav-item.selected .settings-nav-badge,
.settings-nav-item.focused .settings-nav-badge {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.settings-nav-icon {
  flex: 0 0 auto;
}

.settings-nav-icon-material {
  width: 36px;
  height: 36px;
  font-family: "Material Icons";
  font-size: 36px;
  line-height: 1;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.settings-nav-icon-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(76%) sepia(0%) saturate(0%) hue-rotate(184deg) brightness(96%) contrast(90%);
}

.settings-nav-item.selected .settings-nav-icon-image,
.settings-nav-item.focused .settings-nav-icon-image {
  filter: brightness(0) saturate(100%) invert(100%);
}

.settings-nav-chevron,
.settings-row-icon,
.settings-plugin-add-icon,
.settings-plugin-icon-symbol {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.76;
  flex: 0 0 auto;
}

.settings-content {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scrollbar-color: transparent transparent;
  transform-origin: center top;
}

.settings-content::-webkit-scrollbar {
  display: none;
}

.settings-content.is-section-transitioning {
  animation: settingsSectionFade 180ms ease;
}

@keyframes settingsSectionFade {
  from {
    opacity: 0.78;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-content-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 0 6px;
}

.settings-title {
  margin: 0;
  color: #fff;
  font-size: 54px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.settings-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.settings-group-card {
  border-radius: 34px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  padding: 24px;
}

.settings-group-card-fill {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scrollbar-color: transparent transparent;
}

.settings-group-card-fill::-webkit-scrollbar {
  display: none;
}

.settings-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-account-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1.3;
}

.settings-account-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 26px;
  border-radius: 26px;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
}

.settings-account-status-label {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.1;
}

.settings-account-status-value {
  color: #fff;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.16;
  word-break: break-word;
}

.settings-action-row {
  min-height: 126px;
  width: 100%;
  padding: 18px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.settings-action-row.focused,
.settings-theme-card.focused,
.settings-layout-card.focused,
.settings-plugin-input.focused,
.settings-plugin-add.focused {
  border: 2px solid var(--focus-color) !important;
}

.settings-theme-card.is-selected,
.settings-layout-card.is-selected {
  border: 1px solid var(--focus-color) !important;
}

.settings-theme-card.is-selected:not(.focused) {
  border-color: transparent !important;
}

.settings-row-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-row-title {
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}

.settings-row-subtitle {
  color: var(--text-secondary);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.18;
}

.settings-row-tail {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-secondary);
  flex: 0 0 auto;
}

.settings-row-badge {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-row-value {
  font-size: 24px;
  line-height: 1;
}

.settings-toggle-row {
  min-height: 124px;
}

.settings-toggle-pill {
  width: 92px;
  height: 48px;
  border-radius: 999px;
  background: #505050;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4px;
}

.settings-toggle-pill.is-checked {
  justify-content: flex-end;
}

.settings-toggle-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
}

.settings-theme-grid-card {
  overflow: hidden;
}

.settings-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-height: 318px;
  overflow-y: auto;
  padding: 2px;
}

.settings-theme-card {
  min-height: 260px;
  border-radius: 30px;
  border: 1px solid transparent;
  background: var(--bg-color);
  color: #fff;
  padding: 28px 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.settings-theme-swatch-wrap {
  min-height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-theme-swatch {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-theme-check {
  width: 52px;
  height: 52px;
}

.settings-theme-check path {
  fill: none;
  stroke: #111;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-theme-name {
  font-size: 24px;
  color: var(--text-secondary);
}

.settings-theme-card.is-selected .settings-theme-name,
.settings-theme-card.focused .settings-theme-name {
  color: #fff;
}

.settings-theme-underline {
  margin-top: auto;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  opacity: 0.96;
}

.settings-collapsible {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-collapsible-body {
  padding: 0;
}

.settings-subsection-card {
  border-radius: 24px;
  padding: 18px;
}

.settings-collapsible-trigger,
.settings-subsection-card .settings-action-row {
  min-height: 126px;
  padding: 18px 32px;
  border-radius: 999px;
  background: var(--bg-color);
  gap: 18px;
}

.settings-collapsible-trigger .settings-row-copy,
.settings-subsection-card .settings-row-copy {
  gap: 6px;
}

.settings-collapsible-trigger .settings-row-title,
.settings-subsection-card .settings-row-title {
  font-size: 28px;
  line-height: 1.15;
}

.settings-collapsible-trigger .settings-row-subtitle,
.settings-subsection-card .settings-row-subtitle {
  font-size: 20px;
  line-height: 1.2;
}

.settings-collapsible-trigger .settings-row-tail,
.settings-subsection-card .settings-row-tail {
  gap: 18px;
}

.settings-collapsible-trigger .settings-row-value,
.settings-subsection-card .settings-row-value {
  font-size: 24px;
  line-height: 1.15;
}

.settings-collapsible-trigger .settings-row-icon,
.settings-subsection-card .settings-row-icon {
  width: 24px;
  height: 24px;
}

.settings-subsection-card .settings-stack {
  gap: 12px;
}

.settings-layout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.settings-layout-card {
  min-height: 216px;
  border-radius: 28px;
  border: 1px solid transparent;
  background: var(--bg-color);
  color: #fff;
  padding: 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-layout-preview {
  height: 110px;
  border-radius: 18px;
  background: var(--card-bg);
  position: relative;
  overflow: hidden;
  display: block;
}

.settings-layout-preview-modern,
.settings-layout-preview-grid,
.settings-layout-preview-classic {
  padding: 8px;
  box-sizing: border-box;
}

.settings-layout-preview-modern-hero,
.settings-layout-preview-modern-card,
.settings-layout-preview-grid-cell,
.settings-layout-preview-classic-card {
  display: block;
  background: rgba(255, 255, 255, 0.18);
}

.settings-layout-preview-modern-hero,
.settings-layout-preview-modern-card.is-strong,
.settings-layout-preview-grid-cell,
.settings-layout-preview-classic-row.is-featured .settings-layout-preview-classic-card {
  background: rgba(255, 255, 255, 0.22);
}

.settings-layout-preview-modern {
  display: flex;
  flex-direction: column;
}

.settings-layout-preview-modern-hero {
  flex: 0 0 62%;
  border-radius: 10px;
}

.settings-layout-preview-modern-row {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 6px;
  overflow: hidden;
  width: max-content;
}

.settings-layout-preview-modern-card {
  flex: 0 0 34px;
  height: 26px;
  border-radius: 6px;
}

.settings-layout-preview-grid-canvas {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  height: 100%;
}

.settings-layout-preview-grid-cell {
  border-radius: 5px;
  min-height: 18px;
}

.settings-layout-preview-grid-cell.is-dim,
.settings-layout-preview-classic-card:not(.is-strong) {
  background: rgba(255, 255, 255, 0.14);
}

.settings-layout-preview-classic {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.settings-layout-preview-classic-row {
  display: flex;
  gap: 4px;
  overflow: hidden;
  width: max-content;
}

.settings-layout-preview-classic-card {
  flex: 0 0 18px;
  height: 24px;
  border-radius: 6px;
}

.settings-layout-preview-classic-row.is-top,
.settings-layout-preview-classic-row.is-bottom {
  opacity: 0.88;
}

.settings-layout-preview-classic-row.is-featured {
  animation: none;
}

.settings-layout-card.focused .settings-layout-preview-modern-row,
.settings-layout-card.is-selected .settings-layout-preview-modern-row {
  animation: settingsLayoutModernPreviewScroll 4.2s linear infinite;
}

.settings-layout-card.focused .settings-layout-preview-grid-canvas,
.settings-layout-card.is-selected .settings-layout-preview-grid-canvas {
  animation: settingsLayoutGridPreviewScroll 4s linear infinite;
}

.settings-layout-card.focused .settings-layout-preview-classic-row.is-featured,
.settings-layout-card.is-selected .settings-layout-preview-classic-row.is-featured {
  animation: settingsLayoutClassicPreviewScroll 4s linear infinite;
}

@keyframes settingsLayoutClassicPreviewScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-44px);
  }
}

@keyframes settingsLayoutGridPreviewScroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-31px);
  }
}

@keyframes settingsLayoutModernPreviewScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-84px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-layout-preview-modern-row,
  .settings-layout-preview-grid-canvas,
  .settings-layout-preview-classic-row.is-featured,
  .settings-layout-card.focused .settings-layout-preview-modern-row,
  .settings-layout-card.is-selected .settings-layout-preview-modern-row,
  .settings-layout-card.focused .settings-layout-preview-grid-canvas,
  .settings-layout-card.is-selected .settings-layout-preview-grid-canvas,
  .settings-layout-card.focused .settings-layout-preview-classic-row.is-featured,
  .settings-layout-card.is-selected .settings-layout-preview-classic-row.is-featured {
    animation: none;
  }
}

.settings-layout-name {
  font-size: 24px;
  font-weight: 500;
}

.settings-layout-caption {
  color: var(--text-secondary);
  font-size: 18px;
}

.settings-profile-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.settings-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--text-secondary);
  font-size: 18px;
}

.settings-profile-pill.is-active {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.settings-profile-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.settings-plugin-builder {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 14px;
}

.settings-plugin-builder-title,
.settings-repository-heading {
  color: #fff;
  font-size: 28px;
  font-weight: 500;
}

.settings-plugin-builder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
}

.settings-plugin-input,
.settings-plugin-add {
  min-height: 84px;
  border-radius: 26px;
}

.settings-plugin-input {
  padding: 0 24px;
  background: var(--bg-color);
  color: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--border-color);
  text-align: left;
  font-size: 22px;
}

.settings-plugin-add {
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 22px;
}

.settings-plugins-phone {
  margin-bottom: 18px;
}

.settings-plugin-repo-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-plugin-repo-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 28px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
}

.settings-plugin-repo-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-plugin-repo-title {
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.12;
}

.settings-plugin-repo-meta,
.settings-plugin-repo-url {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.28;
}

.settings-plugin-repo-url {
  color: var(--text-tertiary);
  word-break: break-word;
}

.settings-plugin-repo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.settings-plugin-icon-button {
  width: 68px;
  min-width: 68px;
  height: 62px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-plugin-icon-button.focused {
  background: var(--focus-bg);
  border: 2px solid var(--focus-color) !important;
  color: #fff;
}

.settings-plugin-icon-button.is-destructive {
  color: #f08a8a;
}

.settings-plugin-icon-symbol {
  width: 22px;
  height: 22px;
}

.settings-plugin-icon-badge {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-plugin-provider-heading {
  margin-top: 18px;
}

.settings-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.settings-dialog {
  width: min(420px, calc(100vw - 80px));
  max-height: min(420px, calc(100vh - 120px));
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-dialog-title {
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}

.settings-dialog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-padding-top: 8px;
  scroll-padding-bottom: 8px;
}

.settings-dialog-list::-webkit-scrollbar {
  display: none;
}

.settings-dialog-option {
  min-height: 72px;
  padding: 0 20px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: var(--bg-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.settings-dialog-option.is-selected {
  border-color: var(--focus-color);
  background: var(--focus-bg);
  color: #fff;
}

.settings-dialog-option.focused {
  border: 2px solid var(--focus-color) !important;
  background: var(--focus-bg);
  color: #fff;
}

.settings-dialog-option-label {
  font-size: 22px;
  line-height: 1.15;
}

.settings-language-dialog {
  width: min(400px, calc(100vw - 80px));
  max-height: min(480px, calc(100vh - 120px));
}

.settings-language-dialog-list {
  max-height: 320px;
  padding: 4px 2px 4px 0;
}

.settings-language-option {
  min-height: 64px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-block: 8px;
}

.settings-language-option.is-selected {
  background: var(--focus-bg);
  border-color: var(--focus-color);
}

.settings-language-option.focused {
  background: var(--focus-bg);
  border: 2px solid var(--focus-color) !important;
}

.settings-language-option-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.settings-language-option-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
}

.settings-language-option-code {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.settings-language-option-check {
  color: var(--secondary-color);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.settings-language-option.is-selected .settings-dialog-option-label {
  color: var(--secondary-color);
}

.settings-language-option.is-selected .settings-language-option-code,
.settings-language-option.focused .settings-language-option-code {
  color: var(--text-primary);
}

.settings-language-option.focused .settings-dialog-option-label {
  color: #ffffff;
}

.settings-empty-state {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 1.4;
}

.settings-empty-state p {
  margin: 0;
}

.settings-about-brand {
  padding: 10px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.settings-about-logo {
  width: 320px;
  max-width: 100%;
  object-fit: contain;
}

.settings-about-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 20px;
  text-align: center;
}

.settings-inline-icon {
  width: 24px;
  height: 24px;
}

.settings-action-row.is-disabled,
.settings-plugin-add.is-disabled,
.settings-plugin-icon-button.is-disabled {
  opacity: 0.46;
}

.settings-action-row.is-planned .settings-row-subtitle {
  color: rgba(255, 255, 255, 0.62);
}

.settings-profile-manage-row {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
}

.settings-profile-manage-row .settings-row-title {
  font-weight: 600;
}

.settings-profile-manage-row.focused {
  background: var(--focus-bg);
  border: 2px solid var(--focus-color) !important;
}

.addons-shell {
  --addons-bg: var(--bg-color);
  --addons-card: var(--card-bg);
  --addons-elevated: var(--bg-elevated);
  --addons-input: #111111;
  --addons-border: var(--border-color);
  --addons-text: var(--text-color);
  --addons-text-secondary: var(--text-secondary);
  --addons-text-tertiary: var(--text-tertiary);
  --addons-disabled: #4d4d4d;
  --addons-primary: #9e9e9e;
  --addons-focus-bg: var(--focus-bg);
  --addons-focus-ring: var(--focus-color);
  --addons-error: #cf6679;
  background: var(--addons-bg);
  color: var(--addons-text);
}

.addons-shell .home-sidebar {
  position: relative;
  inset: auto;
  background: var(--addons-bg);
  z-index: 6;
}

.addons-main {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 56px 72px 128px;
  scrollbar-width: none;
}

.addons-main::-webkit-scrollbar {
  display: none;
}

.addons-panel {
  width: min(100%, 1820px);
  margin: 0 auto;
}

.addons-main-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 56px;
}

.addons-panel-centered {
  display: flex;
  justify-content: center;
}

.addons-hero-card {
  width: min(100%, 960px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.addons-kicker {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--addons-text-tertiary);
}

.addons-title {
  margin: 0 0 40px;
  font-size: 48px;
  line-height: 64px;
  font-weight: 600;
  letter-spacing: 0;
}

.addons-title-centered {
  margin-bottom: 16px;
}

.addons-lede {
  max-width: 760px;
  margin: 0;
  font-size: 28px;
  line-height: 40px;
  letter-spacing: 0.2px;
  color: var(--addons-text-secondary);
}

.addons-meta {
  margin: 20px 0 0;
  font-size: 22px;
  line-height: 32px;
  letter-spacing: 0.2px;
  color: var(--addons-text-tertiary);
}

.addons-install-card {
  border-radius: 24px;
  background: var(--addons-card);
  padding: 40px;
}

.addons-install-heading {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 48px;
  font-weight: 700;
}

.addons-install-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.addons-install-surface {
  min-height: 88px;
  border-radius: 24px;
  border: 1px solid var(--addons-border);
  background: var(--addons-input);
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.addons-install-surface.focused,
.addons-install-surface.is-editing {
  border: 4px solid var(--addons-focus-ring);
  padding: 0 21px;
}

.addons-install-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--addons-text);
  font: 400 28px/40px var(--app-font-family);
  letter-spacing: 0.25px;
  caret-color: var(--addons-primary);
}

.addons-install-input::placeholder {
  color: var(--addons-text-tertiary);
}

.addons-install-btn {
  min-width: 156px;
  min-height: 88px;
  border-radius: 24px;
  border: none;
  background: var(--addons-card);
  color: var(--addons-text);
  font-size: 28px;
  line-height: 40px;
  font-weight: 400;
  padding: 0 24px;
  transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.addons-install-btn.focused {
  background: var(--addons-focus-bg);
  box-shadow: inset 0 0 0 2px var(--addons-focus-ring);
  color: var(--addons-primary);
}

.addons-install-btn.is-disabled {
  color: var(--addons-disabled);
  pointer-events: none;
}

.addons-install-error {
  min-height: 40px;
  margin: 20px 0 0;
  font-size: 28px;
  line-height: 40px;
  color: var(--addons-error);
}

.addons-large-row {
  width: 100%;
  min-height: 144px;
  margin-top: 40px;
  border-radius: 36px;
  border: none;
  background: var(--addons-card);
  color: var(--addons-text);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 32px;
  padding: 0 40px;
  text-align: left;
  transition: transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.addons-large-row-centered {
  max-width: 880px;
  margin-top: 28px;
}

.addons-large-row-icon {
  font-size: 48px;
  color: var(--addons-text-secondary);
}

.addons-large-row-copy strong {
  display: block;
  font-size: 32px;
  line-height: 48px;
  font-weight: 700;
}

.addons-large-row-copy small {
  display: block;
  margin-top: 0;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0.4px;
  color: var(--addons-text-secondary);
}

.addons-large-row-tail {
  font-size: 42px;
  color: var(--addons-text-secondary);
}

.addons-large-row-tail-group {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.addons-large-row-badge {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--addons-border);
  background: var(--addons-elevated);
  color: var(--addons-text-secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.addons-large-row.focused {
  background: var(--addons-focus-bg);
  box-shadow: inset 0 0 0 2px var(--addons-focus-ring);
  transform: scale(1.01);
}

.addons-large-row.is-disabled {
  opacity: 0.46;
}

.addons-large-row.is-planned .addons-large-row-copy small {
  color: rgba(255, 255, 255, 0.62);
}

.addons-large-row.focused .addons-large-row-icon,
.addons-large-row.focused .addons-large-row-tail {
  color: var(--addons-text);
}

.addons-subtitle {
  margin: 40px 0;
  font-size: 40px;
  line-height: 56px;
  font-weight: 500;
  letter-spacing: 0;
}

.addons-installed-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 56px;
}

.addons-installed-card {
  border-radius: 24px;
  background: var(--addons-card);
  padding: 40px;
}

.addons-installed-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.addons-installed-copy {
  min-width: 0;
}

.addons-installed-head h3 {
  margin: 0;
  font-size: 32px;
  line-height: 48px;
  font-weight: 700;
}

.addons-installed-version {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0.4px;
  color: var(--addons-text-secondary);
}

.addons-installed-description {
  margin: 16px 0 0;
  font-size: 28px;
  line-height: 40px;
  letter-spacing: 0.25px;
  color: var(--addons-text-secondary);
}

.addons-installed-meta {
  margin: 16px 0 0;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0.4px;
  color: var(--addons-text-tertiary);
  word-break: break-word;
}

.addons-installed-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.addons-action-btn {
  min-width: 108px;
  min-height: 88px;
  border-radius: 24px;
  border: none;
  background: var(--addons-card);
  color: var(--addons-text-secondary);
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.addons-action-btn .material-icons {
  font-size: 44px;
}

.addons-action-btn.focused {
  background: var(--addons-focus-bg);
  box-shadow: inset 0 0 0 2px var(--addons-focus-ring);
  color: var(--addons-primary);
}

.addons-action-btn.is-disabled {
  background: var(--addons-card);
  color: var(--addons-disabled);
  pointer-events: none;
}

.addons-remove-btn {
  min-width: 188px;
  padding: 0 24px;
  font-size: 28px;
  line-height: 40px;
  font-weight: 400;
}

.addons-remove-btn.focused {
  color: var(--addons-error);
}

.addons-empty {
  min-height: 40px;
  display: flex;
  align-items: center;
  color: var(--addons-text-secondary);
  font-size: 32px;
  line-height: 48px;
}

.addons-qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.addons-qr-dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  padding: 24px 32px 0;
}

.addons-qr-instruction {
  margin: 0;
  font-size: 28px;
  line-height: 40px;
  color: var(--addons-text-secondary);
  text-align: center;
}

.addons-qr-canvas {
  margin-top: 32px;
  width: 440px;
  height: 440px;
  display: block;
}

.addons-qr-url {
  margin: 24px 0 0;
  font-size: 24px;
  line-height: 32px;
  color: var(--addons-text-tertiary);
  text-align: center;
  word-break: break-word;
}

.addons-qr-error {
  margin-top: 32px;
  max-width: 560px;
  font-size: 24px;
  line-height: 32px;
  color: var(--addons-error);
  text-align: center;
}

.addons-qr-close {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding: 24px 48px;
  border: none;
  border-radius: 999px;
  background: #1e1e1e;
  color: var(--addons-text);
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
}

.addons-qr-close.focused {
  background: var(--addons-focus-bg);
  box-shadow: inset 0 0 0 2px var(--addons-focus-ring);
}

.addons-qr-close .material-icons {
  font-size: 36px;
}

.catalog-order-shell {
  width: 100vw;
  height: 100vh;
  background: var(--bg-color);
  color: var(--text-color);
}

.catalog-order-main {
  height: 100%;
  overflow-y: auto;
  padding: 48px 96px 128px;
  scrollbar-width: none;
}

.catalog-order-main::-webkit-scrollbar {
  display: none;
}

.catalog-order-title {
  margin: 0;
  font-size: 56px;
  line-height: 72px;
  font-weight: 600;
}

.catalog-order-subtitle {
  margin: 16px 0 0;
  font-size: 28px;
  line-height: 40px;
  color: var(--text-secondary);
}

.catalog-order-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
  padding-bottom: 48px;
}

.catalog-order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
  border-radius: 24px;
  background: var(--card-bg);
}

.catalog-order-card-copy {
  min-width: 0;
  flex: 1;
}

.catalog-order-card-copy h2 {
  margin: 0;
  font-size: 32px;
  line-height: 48px;
  font-weight: 700;
}

.catalog-order-card-subtitle {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 32px;
  color: var(--text-secondary);
}

.catalog-order-card-disabled {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 32px;
  color: #cf6679;
}

.catalog-order-card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.catalog-order-action {
  min-width: 108px;
  min-height: 88px;
  padding: 0 24px;
  border: none;
  border-radius: 24px;
  background: var(--card-bg);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 40px;
  font-weight: 400;
}

.catalog-order-action .material-icons {
  font-size: 44px;
}

.catalog-order-action.focused {
  background: var(--focus-bg);
  box-shadow: inset 0 0 0 2px var(--focus-color);
  color: #9e9e9e;
}

.catalog-order-action.is-disabled {
  color: #4d4d4d;
  pointer-events: none;
}

.catalog-order-toggle.focused {
  color: #cf6679;
}

.catalog-order-toggle.is-disabled-state {
  color: #4caf50;
}

.catalog-order-toggle.is-disabled-state.focused {
  color: #4caf50;
}

.catalog-order-empty {
  margin: 0;
  font-size: 32px;
  line-height: 48px;
  color: var(--text-secondary);
}

.player-ui-root {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.player-external-frame-shell {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: auto;
  background: #000;
  overflow: hidden;
  scrollbar-width: none;
}

.player-external-frame-shell::-webkit-scrollbar {
  display: none;
}

.player-external-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  overflow: hidden;
}

#playerUiRoot {
  --player-secondary: #f5f5f5;
  --player-on-secondary: #111111;
  --player-focus-ring: #ffffff;
  --player-focus-background: #303030;
  --player-background-elevated: #1a1a1a;
  --player-background-card: #222222;
  --player-text-primary: rgba(255, 255, 255, 0.96);
  --player-text-secondary: rgba(255, 255, 255, 0.72);
  --player-text-tertiary: rgba(255, 255, 255, 0.56);
  --player-subtitle-color: #ffffff;
  --player-subtitle-outline-color: #000000;
  --player-subtitle-font-size: 100%;
  --player-subtitle-font-weight: 500;
  --player-subtitle-shadow: 0 0 2px #000000, 0 0 4px #000000;
  --player-subtitle-offset: 0vh;
}

#videoPlayer::cue {
  color: var(--player-subtitle-color);
  font-size: var(--player-subtitle-font-size);
  font-weight: var(--player-subtitle-font-weight);
  text-shadow: var(--player-subtitle-shadow);
  background: transparent;
}

.player-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 1;
  transition: opacity 220ms ease;
}

.player-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-loading-backdrop {
  position: absolute;
  inset: 0;
  background: #080b10 center center / cover no-repeat;
  filter: saturate(0.92);
}

.player-loading-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.58) 58%, rgba(0, 0, 0, 0.92) 100%),
    radial-gradient(120% 70% at 50% 45%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55));
}

.player-loading-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(80vw, 900px);
  text-align: center;
}

.player-loading-logo {
  max-width: 420px;
  max-height: 170px;
  object-fit: contain;
  display: inline-block;
  margin-bottom: 16px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.65));
}

.player-loading-title {
  font-size: 42px;
  font-weight: 750;
  letter-spacing: 0.2px;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.68);
}

.player-loading-subtitle {
  margin-top: 10px;
  font-size: 22px;
  color: rgba(242, 247, 254, 0.9);
}

.player-controls-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  opacity: 1;
  transition: opacity 200ms ease;
}

.player-controls-gradient {
  position: absolute;
  pointer-events: none;
}

.player-controls-gradient-top {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.52) 34%, rgba(0, 0, 0, 0) 62%);
}

.player-controls-gradient-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(36vh, 340px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 42%, rgba(0, 0, 0, 0.82) 100%);
}

.player-controls-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-controls-overlay.modal-blocked {
  pointer-events: none;
}

.player-controls-top {
  align-self: flex-end;
  text-align: right;
  position: relative;
  z-index: 1;
  color: rgba(245, 249, 255, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.player-clock {
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.player-ends-at {
  margin-top: 2px;
  font-size: 14px;
  color: rgba(231, 238, 246, 0.82);
}

.player-controls-bottom {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.player-meta {
  max-width: min(100%, 1160px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.player-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
}

.player-subtitle {
  margin-top: 4px;
  font-size: 20px;
  color: rgba(239, 245, 251, 0.9);
}

.player-meta-tertiary {
  margin-top: 6px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.68);
}

.player-controls-bar {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0;
}

.player-progress-shell {
  width: 100%;
  padding: 6px 0;
  outline: none;
}

.player-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transition: height 120ms ease, background-color 120ms ease;
}

.player-progress-shell.focused .player-progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.45);
}

.player-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: var(--player-secondary);
  transition: width 150ms linear;
}

.player-controls-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.player-control-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-control-btn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #f4f8fd;
  font-size: 16px;
  font-weight: 700;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.player-control-icon {
  width: 24px;
  height: 24px;
  display: block;
  filter: invert(1) brightness(1.15);
}

.player-control-icon-mask {
  background-color: #ffffff;
  filter: none;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.player-control-label {
  font-size: 13px;
  font-weight: 700;
}

.player-control-btn.focused {
  background: #ffffff;
  color: #000000;
  box-shadow: none;
}

.player-control-btn.is-primary {
  background: transparent;
  color: var(--secondary-color);
}

.player-control-btn.is-primary.focused {
  background: #ffffff;
  color: #000000;
}

.player-control-btn.is-primary .player-control-icon:not(.player-control-icon-mask) {
  filter: brightness(0) invert(1);
}

.player-control-btn.focused .player-control-icon {
  filter: none;
}

.player-control-btn.focused .player-control-icon-mask {
  background-color: #000000;
}

.player-time-label {
  margin-left: auto;
  font-size: 18px;
  font-weight: 500;
  color: rgba(244, 248, 253, 0.96);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.player-episode-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: 520px;
  height: 100%;
  overflow-y: auto;
  z-index: 35;
  border-radius: 16px 0 0 16px;
  padding: 24px;
  background: var(--player-background-elevated);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.player-episode-panel-title {
  font-size: 28px;
  font-weight: 700;
}

.player-episode-panel-hint {
  margin-top: 4px;
  margin-bottom: 12px;
  color: rgba(232, 239, 246, 0.72);
}

.player-episode-item {
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: transparent;
  border: 1px solid transparent;
}

.player-episode-item.selected {
  border-color: var(--player-focus-ring);
  background: var(--player-focus-background);
}

.player-episode-item-title {
  font-weight: 700;
}

.player-episode-item-subtitle {
  margin-top: 3px;
  color: rgba(232, 239, 246, 0.72);
  font-size: 14px;
}

.player-seek-overlay {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 26px;
  z-index: 33;
  padding: 0;
  opacity: 1;
  transition: opacity 150ms ease;
}

.player-seek-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-seek-overlay-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.player-seek-overlay-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.player-seek-direction {
  font-size: 16px;
  font-weight: 700;
  color: rgba(246, 250, 255, 0.96);
  letter-spacing: 0.2px;
}

.player-seek-preview {
  font-size: 16px;
  font-weight: 600;
  color: rgba(246, 250, 255, 0.96);
}

.player-seek-fill {
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: var(--player-secondary);
  transition: width 120ms linear;
}

.player-next-episode-card {
  position: absolute;
  right: 26px;
  bottom: 30px;
  z-index: 29;
  width: 420px;
  pointer-events: none;
  transition: bottom 180ms ease, opacity 180ms ease;
}

.player-controls-overlay:not(.hidden) ~ .player-next-episode-card {
  bottom: 122px;
}

.player-next-episode-card.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-next-episode-card-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(25, 25, 25, 0.89);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.player-next-episode-card-inner.is-selected {
  border-width: 2px;
  border-color: var(--secondary-color);
}

.player-next-episode-thumb-wrap {
  position: relative;
  width: 112px;
  min-width: 112px;
  height: 64px;
  border-radius: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.player-next-episode-thumb,
.player-next-episode-thumb-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-next-episode-thumb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.32) 100%);
}

.player-next-episode-copy {
  flex: 1;
  min-width: 0;
}

.player-next-episode-kicker {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 500;
}

.player-next-episode-title {
  margin-top: 2px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-next-episode-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.72);
}

.player-next-episode-pill.is-playable {
  color: #ffffff;
}

.player-next-episode-card-inner.is-selected .player-next-episode-pill.is-playable {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.player-next-episode-pill-icon {
  font-size: 12px;
  line-height: 1;
}

.player-next-episode-pill-text {
  font-size: 12px;
}

.player-aspect-toast {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  z-index: 35;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(9, 13, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(243, 248, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  opacity: 1;
  transition: opacity 160ms ease;
}

.player-aspect-toast.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-parental-guide {
  position: absolute;
  left: 28px;
  top: 72px;
  z-index: 34;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 1;
  transition: opacity 220ms ease;
}

.player-parental-guide.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-parental-line {
  width: 2px;
  min-height: 118px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.18));
}

.player-parental-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-parental-item {
  min-width: 240px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(8, 12, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(241, 248, 255, 0.95);
  animation: playerParentalItemIn 260ms ease both;
}

.player-parental-label {
  font-size: 18px;
  font-weight: 700;
}

.player-parental-severity {
  font-size: 16px;
  color: rgba(225, 235, 247, 0.8);
}

@keyframes playerParentalItemIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.player-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 34;
  pointer-events: auto;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.52) 34%, rgba(0, 0, 0, 0.14) 100%),
    rgba(0, 0, 0, 0.32);
  opacity: 1;
  transition: opacity 180ms ease;
}

.player-modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-modal {
  position: absolute;
  z-index: 36;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--player-background-elevated);
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 160ms ease;
}

.player-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-subtitle-modal,
.player-audio-modal {
  left: 52px;
  bottom: 76px;
  width: min(1060px, calc(100vw - 104px));
  max-height: calc(100vh - 148px);
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
}

.player-audio-modal {
  width: min(620px, calc(100vw - 104px));
  padding: 30px 24px 22px;
}

.player-speed-modal {
  left: 52px;
  bottom: 76px;
  width: 380px;
  max-height: calc(100vh - 132px);
  padding: 30px 24px 24px;
  overflow: hidden;
}

.player-dialog-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--player-text-primary);
}

.player-dialog-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.player-dialog-tabs::-webkit-scrollbar {
  display: none;
}

.player-dialog-tab {
  height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(230, 239, 249, 0.72);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.player-dialog-tab.selected {
  color: rgba(248, 251, 255, 0.96);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.player-dialog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
  scrollbar-width: none;
}

.player-dialog-list::-webkit-scrollbar {
  display: none;
}

.player-dialog-item {
  min-height: 64px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  scroll-margin-block: 10px;
}

.player-dialog-item.focused {
  border-color: transparent;
  background: var(--player-secondary);
  box-shadow: none;
}

.player-dialog-item.selected {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.player-dialog-item.selected.focused {
  background: var(--player-secondary);
  border-color: transparent;
}

.player-dialog-item.disabled {
  opacity: 0.58;
}

.player-dialog-item-main {
  font-size: 22px;
  font-weight: 700;
  color: var(--player-text-primary);
  line-height: 1.16;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.player-dialog-item.focused .player-dialog-item-main,
.player-dialog-item.focused .player-dialog-item-sub,
.player-dialog-item.focused .player-dialog-item-check {
  color: #111111;
}

.player-dialog-item.selected .player-dialog-item-check {
  color: var(--player-text-primary);
}

.player-dialog-item.selected.focused .player-dialog-item-check {
  color: var(--player-on-secondary);
}

.player-dialog-item-sub {
  margin-top: 2px;
  font-size: 14px;
  color: var(--player-text-secondary);
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.player-dialog-item-check {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 22px;
  color: var(--player-text-primary);
}

.player-dialog-empty {
  padding: 12px 4px;
  font-size: 22px;
  color: rgba(226, 236, 247, 0.74);
}

.player-sources-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: 520px;
  height: 100%;
  z-index: 37;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--player-background-elevated);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 160ms ease;
}

.player-sources-panel.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-sources-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.player-sources-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--player-text-primary);
}

.player-sources-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-source-current-meta {
  margin-top: 14px;
  font-size: 16px;
  color: var(--player-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-sources-top-btn {
  height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: var(--player-background-card);
  color: var(--player-text-primary);
  font-size: 16px;
  font-weight: 700;
}

.player-sources-top-btn.focused {
  background: var(--player-focus-background);
  box-shadow: 0 0 0 2px var(--player-focus-ring);
}

.player-sources-filters {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.player-sources-filters::-webkit-scrollbar {
  display: none;
}

.player-sources-filter {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--player-background-card);
  color: var(--player-text-secondary);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.player-sources-filter.selected {
  background: var(--player-secondary);
  color: #111111;
}

.player-sources-filter.focused {
  box-shadow: 0 0 0 2px var(--player-focus-ring);
}

.player-sources-list {
  margin-top: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding-right: 4px;
}

.player-sources-list::-webkit-scrollbar {
  display: none;
}

.player-sources-empty {
  padding: 12px 8px;
  font-size: 20px;
  color: rgba(226, 236, 247, 0.74);
}

.player-source-card {
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--player-background-elevated);
  padding: 16px;
  margin-bottom: 9px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.player-source-card.focused {
  border-color: var(--player-focus-ring);
  background: var(--player-focus-background);
  box-shadow: none;
}

.player-source-card.selected {
  border-color: rgba(30, 136, 229, 0.65);
}

.player-source-main {
  min-width: 0;
}

.player-source-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--player-text-primary);
  line-height: 1.14;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.player-source-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.26;
  color: rgba(226, 236, 247, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.player-source-tags {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-source-tag {
  height: 24px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--player-text-primary);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.player-source-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.player-source-addon {
  font-size: 12px;
  color: var(--player-text-tertiary);
}

.player-source-playing {
  font-size: 14px;
  color: var(--player-on-secondary);
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--player-secondary);
}

.player-subtitle-overlay-grid {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 14px;
  min-height: 0;
}

.player-subtitle-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: none;
  padding-right: 6px;
  scroll-behavior: smooth;
  scroll-padding-top: 10px;
  scroll-padding-bottom: 10px;
}

.player-subtitle-rail::-webkit-scrollbar,
.player-audio-track-list::-webkit-scrollbar {
  display: none;
}

.player-subtitle-rail.hidden {
  display: none;
}

.player-audio-track-list {
  width: min(100%, 520px);
  max-height: 56vh;
}

.player-audio-track-list .player-dialog-item {
  min-height: 54px;
  padding: 9px 12px;
}

.player-audio-track-list .player-dialog-item-main {
  font-size: 18px;
  line-height: 1.12;
}

.player-audio-track-list .player-dialog-item-sub {
  font-size: 13px;
  line-height: 1.2;
}

.player-audio-track-list .player-dialog-item-check {
  font-size: 20px;
}

.player-speed-modal .player-dialog-list {
  max-height: calc(100vh - 244px);
  padding-bottom: 12px;
}

.series-detail-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.series-detail-backdrop {
  position: absolute;
  inset: 0;
  background: #0a0d12 center center / cover no-repeat;
}

.series-detail-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 7, 11, 0.92) 0%, rgba(8, 12, 17, 0.68) 44%, rgba(8, 12, 17, 0.34) 67%, rgba(8, 12, 17, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.82));
}

.series-detail-content {
  position: relative;
  z-index: 1;
  max-width: calc(100vw - 32px);
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px 32px 120px;
  box-sizing: border-box;
}

.series-detail-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.series-detail-logo {
  max-width: 500px;
  max-height: 110px;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
}

.series-detail-title {
  margin: 0 0 12px;
  font-size: 54px;
  line-height: 1.02;
}

.series-detail-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.series-primary-btn,
.series-circle-btn {
  border: none;
  cursor: pointer;
  color: #111;
  background: #f9fbff;
  pointer-events: auto;
}

.series-primary-btn {
  height: 66px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 34px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.series-circle-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  font-size: 44px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.series-primary-btn.focused,
.series-circle-btn.focused {
  transform: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 8px rgba(255, 255, 255, 0.24);
}

.series-btn-icon {
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.series-btn-svg {
  width: 28px;
  height: 28px;
  display: block;
  filter: invert(0);
}

.series-detail-description {
  margin: 0;
  max-width: 930px;
  font-size: 38px;
  line-height: 1.32;
  color: rgba(240, 246, 252, 0.92);
}

.series-detail-support {
  margin: 0 0 10px;
  font-size: 30px;
  color: rgba(237, 244, 251, 0.74);
}

.series-detail-meta {
  margin: 18px 0 26px;
  font-size: 34px;
  color: rgba(233, 241, 250, 0.86);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.series-imdb-badge {
  height: 38px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  background: rgba(14, 18, 24, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  color: rgba(241, 247, 255, 0.92);
}

.series-imdb-badge img {
  width: 48px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.series-season-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.series-season-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.34);
  color: #eef4fb;
  font-size: 32px;
  font-weight: 600;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.series-season-btn.selected {
  background: rgba(255, 255, 255, 0.2);
}

.series-season-btn.focused {
  transform: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.series-episode-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  padding-left: 0;
  padding-right: 16px;
  scrollbar-width: none;
}

.series-episode-track::-webkit-scrollbar {
  display: none;
}

.series-episode-card {
  position: relative;
  flex: 0 0 286px;
  border-radius: 22px;
  padding: 10px 10px 12px;
  background: rgba(11, 15, 22, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  box-sizing: border-box;
}

.series-episode-card.focused {
  transform: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.26);
}

.series-episode-thumb {
  height: 158px;
  border-radius: 16px;
  background: #1a212b center center / cover no-repeat;
  margin-bottom: 8px;
}

.series-episode-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 10px;
  background: rgba(8, 10, 14, 0.8);
  padding: 3px 10px;
  font-size: 14px;
  font-weight: 700;
}

.series-episode-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}

.series-episode-overview {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(234, 241, 250, 0.82);
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 40px;
  overflow: hidden;
}

.series-stream-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
}

.series-stream-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 13, 0.68);
}

.series-stream-panel {
  position: absolute;
  inset: 34px 28px 34px 72px;
  display: grid;
  grid-template-columns: 0.94fr 1.46fr;
  gap: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 15, 22, 0.78);
  backdrop-filter: blur(8px);
  padding: 18px;
  overflow: hidden;
}

.series-stream-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.series-stream-logo {
  max-width: 90%;
  max-height: 128px;
  object-fit: contain;
  margin-bottom: 14px;
}

.series-stream-heading {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
}

.series-stream-episode {
  font-size: 42px;
  font-weight: 700;
}

.series-stream-episode-title {
  margin-top: 8px;
  font-size: 26px;
  color: rgba(237, 243, 250, 0.9);
  line-height: 1.2;
}

.series-stream-right {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.series-stream-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.series-stream-filters::-webkit-scrollbar {
  display: none;
}

.series-stream-filter {
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 249, 255, 0.92);
  font-size: 20px;
}

.series-stream-filter.selected {
  background: #fff;
  color: #111;
}

.series-stream-filter.focused {
  transform: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.series-stream-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  margin-right: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

.series-stream-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.series-stream-list::-webkit-scrollbar-track {
  background: transparent;
}

.series-stream-list::-webkit-scrollbar-thumb {
  background: transparent;
}

.series-stream-card {
  border-radius: 14px;
  padding: 11px 13px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.series-stream-card:last-child {
  margin-bottom: 0;
}

.series-stream-card.focused {
  transform: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.series-stream-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 50px;
  overflow: hidden;
}

.series-stream-desc {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(231, 239, 247, 0.84);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 38px;
  overflow: hidden;
}

.series-stream-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  font-size: 14px;
  color: rgba(229, 237, 246, 0.72);
}

.series-stream-addon-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.series-stream-tags {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.series-stream-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(245, 250, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
}

.series-stream-empty {
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(233, 241, 249, 0.78);
}

.movie-detail-shell .series-detail-vignette {
  background:
    linear-gradient(90deg, rgba(4, 7, 11, 0.94) 0%, rgba(8, 12, 17, 0.72) 45%, rgba(8, 12, 17, 0.36) 68%, rgba(8, 12, 17, 0.2) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.85));
}

.movie-detail-content {
  max-width: 1080px;
}

.movie-cast-section {
  margin-top: 34px;
}

.movie-cast-heading {
  margin: 0 0 14px;
  font-size: 46px;
  font-weight: 700;
}

.movie-cast-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.movie-cast-track::-webkit-scrollbar {
  display: none;
}

.series-cast-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.series-cast-track::-webkit-scrollbar {
  display: none;
}

.movie-cast-card {
  flex: 0 0 210px;
  border-radius: 16px;
  padding: 8px;
  background: rgba(11, 15, 22, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.series-cast-card {
  flex: 0 0 188px;
}

.movie-cast-card.focused {
  transform: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.26);
}

.movie-cast-avatar {
  width: 194px;
  height: 194px;
  border-radius: 50%;
  background: #2a2f37 center center / cover no-repeat;
  margin-bottom: 10px;
}

.movie-cast-name {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}

.movie-cast-role {
  margin-top: 4px;
  font-size: 30px;
  color: rgba(229, 237, 246, 0.72);
  line-height: 1.2;
}

.series-insight-section {
  margin-top: 24px;
}

.series-insight-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.series-insight-tab {
  border: none;
  background: transparent;
  color: rgba(220, 231, 244, 0.72);
  font-size: 22px;
  font-weight: 700;
  padding: 0;
}

.series-insight-divider {
  color: rgba(220, 231, 244, 0.62);
  font-size: 22px;
  font-weight: 700;
}

.series-insight-tab.selected {
  color: rgba(242, 248, 255, 0.96);
}

.series-insight-tab.focused {
  transform: none;
  border-bottom: 2px solid rgba(245, 249, 255, 0.95);
}

.series-insight-empty {
  color: rgba(223, 233, 245, 0.66);
  font-size: 18px;
}

.series-rating-seasons {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.series-rating-season {
  min-width: 50px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(241, 247, 254, 0.95);
  font-size: 18px;
  font-weight: 700;
}

.series-rating-season.selected {
  background: rgba(255, 255, 255, 0.28);
}

.series-rating-season.focused {
  transform: none;
  border: 2px solid rgba(245, 249, 255, 0.95);
}

.series-episode-ratings-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.series-episode-ratings-grid::-webkit-scrollbar {
  display: none;
}

.series-episode-rating-chip {
  min-width: 86px;
  height: 62px;
  border-radius: 14px;
  background: #ecd03d;
  color: #16191f;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  flex-shrink: 0;
}

.series-episode-rating-chip.good {
  background: #3eb866;
  color: #f6fbff;
}

.series-episode-rating-chip.great {
  background: #2ebb67;
  color: #f6fbff;
}

.series-episode-rating-chip.excellent {
  background: #14a44d;
  color: #f7fcff;
}

.series-episode-rating-chip.mixed {
  background: #e7b432;
  color: #1b1e24;
}

.series-episode-rating-chip.bad {
  background: #e74c3c;
  color: #f7fcff;
}

.series-episode-rating-chip.poor {
  background: #633974;
  color: #f7fcff;
}

.series-episode-rating-ep {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.series-episode-rating-val {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
}

.movie-ratings-row {
  display: flex;
  gap: 16px;
}

.movie-rating-card {
  width: 160px;
  height: 120px;
  border-radius: 14px;
  background: rgba(18, 23, 31, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.movie-rating-card img {
  width: 56px;
  height: 28px;
  object-fit: contain;
}

.movie-rating-value {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.detail-company-section {
  margin-top: 20px;
}

.detail-company-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  color: rgba(240, 246, 253, 0.92);
}

.detail-company-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.detail-company-track::-webkit-scrollbar {
  display: none;
}

.detail-company-card {
  flex: 0 0 180px;
  height: 70px;
  border-radius: 12px;
  background: rgba(12, 17, 25, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
}

.detail-company-card img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  display: block;
}

.detail-company-card span {
  font-size: 16px;
  color: rgba(233, 241, 249, 0.84);
  text-align: center;
}

.detail-morelike-section {
  margin-top: 24px;
}

.detail-morelike-title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
}

.detail-morelike-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.detail-morelike-track::-webkit-scrollbar {
  display: none;
}

.detail-morelike-card {
  flex: 0 0 220px;
  border-radius: 16px;
  padding: 10px;
  background: rgba(12, 17, 25, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.detail-morelike-card.focused {
  transform: none;
  border-color: rgba(245, 249, 255, 0.98);
  box-shadow: 0 0 0 3px rgba(245, 249, 255, 0.24);
}

.detail-morelike-poster {
  height: 300px;
  border-radius: 12px;
  background: #1a212b center center / cover no-repeat;
}

.detail-morelike-name {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-morelike-type {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(230, 238, 246, 0.7);
}

.series-detail-shell {
  --detail-bg: #0d0d0d;
  --detail-bg-elevated: #1a1a1a;
  --detail-bg-card: #222222;
  --detail-border: #333333;
  --detail-text-primary: #ffffff;
  --detail-text-secondary: #b3b3b3;
  --detail-text-tertiary: #808080;
  --detail-focus-ring: #ffffff;
  --detail-focus-fill: #f5f5f5;
  --detail-focus-text: #111111;
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--detail-bg);
}

.series-detail-backdrop {
  position: absolute;
  inset: 0;
  background: var(--detail-bg) center center / cover no-repeat;
  transform: scale(1.02);
}

.detail-trailer-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 600ms ease;
  overflow: hidden;
}

.detail-trailer-active .detail-trailer-layer {
  opacity: 1;
  z-index: 2;
}

.detail-trailer-media,
.detail-trailer-youtube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-trailer-controls-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 40px;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 1;
  transition: opacity 220ms ease;
}

.detail-trailer-controls-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-trailer-controls-gradient {
  position: absolute;
  pointer-events: none;
}

.detail-trailer-controls-gradient-top {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.22) 34%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.54) 34%, rgba(0, 0, 0, 0) 60%);
}

.detail-trailer-controls-gradient-bottom {
  left: 0;
  right: 0;
  bottom: 0;
  height: min(38vh, 360px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.24) 40%, rgba(0, 0, 0, 0.88) 100%);
}

.detail-trailer-controls-top,
.detail-trailer-controls-bottom {
  position: relative;
  z-index: 1;
}

.detail-trailer-controls-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.detail-trailer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.detail-trailer-status {
  max-width: min(72vw, 860px);
  text-align: right;
  color: rgba(241, 246, 252, 0.9);
  font-size: 14px;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.detail-trailer-controls-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 52px;
}

.detail-trailer-meta {
  max-width: min(100%, 1120px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.68);
}

.detail-trailer-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
}

.detail-trailer-subtitle {
  margin-top: 6px;
  color: rgba(235, 242, 249, 0.88);
  font-size: 18px;
  line-height: 1.3;
}

.detail-trailer-progress {
  width: 100%;
}

.detail-trailer-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.detail-trailer-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--player-secondary);
  transition: width 150ms linear;
}

.detail-trailer-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.detail-trailer-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-trailer-control-btn {
  width: auto;
  min-width: 0;
  height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.detail-trailer-control-btn.is-primary {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.detail-trailer-control-btn:disabled {
  opacity: 0.42;
}

.detail-trailer-control-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.detail-trailer-time {
  margin-left: auto;
  color: rgba(248, 251, 255, 0.92);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.detail-trailer-frame,
.detail-trailer-video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  overflow: hidden;
}

.detail-trailer-frame {
  pointer-events: none;
}

.detail-trailer-active .series-detail-content {
  pointer-events: none;
}

.series-detail-vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 1) 0%, rgba(13, 13, 13, 0.95) 10%, rgba(13, 13, 13, 0.84) 22%, rgba(13, 13, 13, 0.7) 36%, rgba(13, 13, 13, 0.52) 52%, rgba(13, 13, 13, 0.34) 66%, rgba(13, 13, 13, 0.18) 78%, rgba(13, 13, 13, 0.07) 90%, rgba(13, 13, 13, 0) 100%),
    linear-gradient(180deg, rgba(13, 13, 13, 0) 0%, rgba(13, 13, 13, 0.05) 10%, rgba(13, 13, 13, 0.18) 22%, rgba(13, 13, 13, 0.38) 36%, rgba(13, 13, 13, 0.6) 52%, rgba(13, 13, 13, 0.78) 66%, rgba(13, 13, 13, 0.91) 78%, rgba(13, 13, 13, 0.97) 90%, rgba(13, 13, 13, 1) 100%);
  transition: opacity 600ms ease;
}

.detail-trailer-active .series-detail-vignette {
  opacity: 0;
}

.detail-bottom-shadow {
  position: absolute;
  inset: auto 0 0;
  height: 24vh;
  z-index: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0) 0%, rgba(13, 13, 13, 0.92) 100%);
  transition: opacity 300ms ease;
}

.series-detail-shell.detail-scrolled .detail-bottom-shadow {
  opacity: 1;
}

.series-detail-content {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 96px;
  box-sizing: border-box;
  scrollbar-width: none;
}

.series-detail-content::-webkit-scrollbar {
  display: none;
}

.detail-hero-section {
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 16px;
  box-sizing: border-box;
}

.detail-hero-brand {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.series-detail-logo {
  max-width: min(40vw, 540px);
  max-height: 100px;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;
  transform-origin: left bottom;
  transition: max-width 600ms ease, max-height 600ms ease, margin-bottom 600ms ease;
}

.detail-trailer-active .series-detail-logo {
  max-width: min(25vw, 320px);
  max-height: 60px;
  margin-bottom: 24px;
}

.series-detail-title {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: 0;
  transition: opacity 400ms ease;
}

.detail-trailer-active .series-detail-title {
  opacity: 0;
}

.detail-trailer-hint {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
  transition: opacity 450ms ease;
}

.detail-trailer-active .detail-trailer-hint {
  opacity: 1;
}

.series-detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  transition: opacity 400ms ease, transform 400ms ease;
}

.detail-trailer-active .series-detail-actions,
.detail-trailer-active .series-detail-support,
.detail-trailer-active .detail-ratings-row,
.detail-trailer-active .series-detail-description,
.detail-trailer-active .detail-meta-stack {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.series-primary-btn,
.series-circle-btn {
  border: none;
  cursor: pointer;
  pointer-events: auto;
  outline: none;
  box-shadow: none;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.series-primary-btn {
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 32px;
  background: rgba(34, 34, 34, 0.92);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.series-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--detail-bg-card);
  color: var(--detail-text-primary);
  border: 2px solid transparent;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.series-primary-btn.focused,
.series-circle-btn.focused,
.series-season-btn.focused,
.series-insight-tab.focused,
.series-rating-season.focused,
.series-episode-rating-chip.focused,
.detail-company-card.focused,
.detail-morelike-card.focused,
.movie-cast-card.focused,
.series-episode-card.focused {
  box-shadow: none;
}

.series-primary-btn.focused,
.series-circle-btn.focused,
.series-season-btn.focused,
.series-rating-season.focused,
.detail-company-card.focused,
.detail-morelike-card.focused,
.movie-cast-card.focused,
.series-episode-card.focused,
.series-episode-rating-chip.focused {
  outline: none;
}

.series-btn-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.series-primary-btn .series-btn-svg {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.series-circle-btn .series-btn-svg {
  filter: brightness(0) invert(1);
}

.series-primary-btn.focused {
  background: #fff;
  color: #000;
  border-color: rgba(255, 255, 255, 0);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.96), 0 0 0 6px rgba(255, 255, 255, 0.18);
  transform: scale(1.04);
}

.series-primary-btn.focused .series-btn-svg {
  filter: none;
}

.series-circle-btn.focused {
  background: var(--detail-focus-fill);
  color: var(--detail-focus-text);
  border-color: var(--detail-focus-ring);
  transform: scale(1.04);
}

.series-circle-btn.focused .series-btn-svg {
  filter: none;
}

.detail-morelike-card.focused {
  transform: scale(1.02);
}

.movie-cast-card.focused,
.detail-company-card.focused,
.series-episode-rating-chip.focused {
  transform: scale(1.03);
}

.series-detail-support {
  margin: 0 0 12px;
  max-width: 60%;
  font-size: 15px;
  line-height: 22px;
  color: var(--detail-text-secondary);
  transition: opacity 400ms ease, transform 400ms ease;
}

.detail-ratings-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  transition: opacity 400ms ease, transform 400ms ease;
}

.detail-rating-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--detail-text-secondary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.detail-rating-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.series-detail-description {
  margin: 0 0 12px;
  max-width: 60%;
  font-size: 16px;
  line-height: 22px;
  color: var(--detail-text-primary);
  transition: opacity 400ms ease, transform 400ms ease;
}

.detail-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 400ms ease, transform 400ms ease;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 20px;
  color: var(--detail-text-secondary);
}

.detail-meta-row.secondary {
  color: var(--detail-text-primary);
  font-size: 12px;
  line-height: 16px;
}

.detail-meta-dot {
  width: 1px;
  height: 12px;
  background: rgba(179, 179, 179, 0.55);
}

.detail-meta-row .series-imdb-badge {
  height: auto;
  padding: 0;
  background: transparent;
  gap: 4px;
  font-size: 14px;
  color: var(--detail-text-secondary);
}

.detail-meta-row .series-imdb-badge img {
  width: 30px;
  height: 30px;
}

.detail-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(179, 179, 179, 0.55);
  color: var(--detail-text-secondary);
}

.detail-meta-badge.strong {
  color: var(--detail-text-primary);
}

.detail-meta-badge.combined {
  color: var(--detail-text-secondary);
}

.detail-meta-badge-divider {
  width: 1px;
  height: 12px;
  background: rgba(179, 179, 179, 0.55);
}

.movie-detail-content {
  max-width: none;
}

.series-season-row,
.series-insight-tabs,
.series-rating-seasons,
.movie-cast-track,
.series-cast-track,
.detail-company-track,
.detail-morelike-track,
.series-episode-ratings-grid {
  padding-left: 48px;
  padding-right: 48px;
  box-sizing: border-box;
}

.series-season-row {
  margin-bottom: 0;
  gap: 12px;
  overflow-x: auto;
  padding-top: 24px;
  padding-bottom: 8px;
}

.series-season-row::-webkit-scrollbar,
.series-insight-tabs::-webkit-scrollbar,
.series-rating-seasons::-webkit-scrollbar,
.movie-cast-track::-webkit-scrollbar,
.series-cast-track::-webkit-scrollbar,
.detail-company-track::-webkit-scrollbar,
.detail-morelike-track::-webkit-scrollbar,
.series-episode-track::-webkit-scrollbar,
.series-episode-ratings-grid::-webkit-scrollbar {
  display: none;
}

.series-season-btn {
  min-height: 28px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--detail-bg-card);
  color: var(--detail-text-secondary);
  font-size: 15px;
  line-height: 18px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.series-season-btn.selected {
  background: #2d2d2d;
  color: var(--detail-text-primary);
}

.series-season-btn.focused {
  background: var(--detail-focus-fill);
  border-color: transparent;
  color: var(--detail-focus-text);
}

.series-episode-track {
  gap: 20px;
  padding: 18px 56px;
}

.series-episode-card {
  flex: 0 0 400px;
  width: 400px;
  border-radius: 20px;
  background: transparent;
  border: 0;
  padding: 0;
  overflow: visible;
  transition: transform 180ms ease;
}

.series-episode-thumb {
  position: relative;
  height: 263px;
  border: 0;
  border-radius: 20px;
  background: var(--detail-bg-card) center center / cover no-repeat;
  overflow: hidden;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.series-episode-card.focused {
  border-color: transparent;
  box-shadow: none;
}

.series-episode-card.focused .series-episode-thumb {
  box-shadow: 0 0 0 2px var(--focus-color);
  background-color: var(--focus-bg);
  transform: none;
}

.detail-morelike-card.focused {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.detail-morelike-card.focused .detail-morelike-poster-wrap {
  border-color: var(--focus-color);
  box-shadow: 0 0 0 2px var(--focus-color);
  background-color: var(--focus-bg);
  transform: none;
}

.series-episode-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.18) 22%, rgba(0, 0, 0, 0.62) 52%, rgba(0, 0, 0, 0.86) 82%, rgba(0, 0, 0, 0.95) 100%);
}

.series-episode-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.series-episode-badge {
  position: static;
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.42);
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.09em;
  font-weight: 600;
  text-transform: uppercase;
}

.series-episode-title {
  min-height: 56px;
  font-size: 16px;
  line-height: 28px;
  font-weight: 800;
  color: var(--detail-text-primary);
}

.series-episode-overview {
  margin-top: 0;
  max-height: none;
  font-size: 14px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.9);
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.series-episode-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 16px;
  font-size: 10px;
  line-height: 16px;
  color: var(--detail-text-secondary);
}

.series-episode-meta .series-imdb-badge {
  height: auto;
  padding: 0;
  background: transparent;
  font-size: 10px;
  gap: 4px;
  color: #f5c518;
}

.series-episode-meta .series-imdb-badge img {
  width: 24px;
  height: 12px;
}

.series-episode-progress {
  margin-top: 2px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.series-episode-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #9e9e9e;
}

.series-episode-status {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.series-episode-status.complete {
  background: #9e9e9e;
  color: #fff;
  font-size: 20px;
}

.series-episode-status.idle {
  border: 2px dashed rgba(179, 179, 179, 0.9);
  box-sizing: border-box;
}

.series-insight-section {
  margin-top: 0;
}

.series-insight-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  padding-top: 20px;
  overflow-x: auto;
}

.series-insight-tab {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  padding: 2px;
  transform-origin: center;
  transition: transform 160ms ease, color 160ms ease;
}

.series-insight-tab.selected,
.series-insight-tab.focused {
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 0;
}

.series-insight-tab.focused {
  transform: scale(1.03);
  box-shadow: none;
}

.series-insight-divider {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 20px;
  line-height: 28px;
}

.movie-cast-section {
  margin-top: 0;
}

.movie-cast-track,
.series-cast-track {
  gap: 8px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.movie-cast-card {
  flex: 0 0 150px;
  width: 150px;
  padding: 0;
  background: transparent;
  border: 0;
  transition: transform 180ms ease;
}

.series-cast-card {
  width: 150px;
  flex-basis: 150px;
}

.movie-cast-avatar {
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
  border-radius: 999px;
  background-color: #2d2d2d;
}

.movie-cast-card.focused {
  transform: none;
  box-shadow: none;
}

.movie-cast-card.focused .movie-cast-avatar {
  background-color: #303030;
  box-shadow: 0 0 0 2px #ffffff;
}

.movie-cast-name {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--detail-text-secondary);
}

.movie-cast-role {
  font-size: 10px;
  line-height: 14px;
  color: var(--detail-text-tertiary);
}

.series-rating-seasons {
  gap: 6px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.series-rating-season {
  min-width: 0;
  height: auto;
  padding: 6px 11px;
  border-radius: 14px;
  border: 0;
  background: #242424;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  transition: transform 160ms ease, background 160ms ease;
}

.series-rating-season.selected {
  background: #303030;
}

.series-rating-summary {
  padding: 2px 48px 0;
  font-size: 10px;
  line-height: 14px;
  color: #808080;
}

.series-episode-ratings-grid {
  gap: 6px;
  padding-top: 6px;
  padding-bottom: 8px;
}

.series-episode-rating-chip {
  min-width: 72px;
  width: 72px;
  height: 46px;
  padding: 6px 8px;
  border-radius: 14px;
  transition: transform 160ms ease;
}

.series-episode-rating-ep {
  font-size: 10px;
  line-height: 14px;
}

.series-episode-rating-val {
  font-size: 14px;
  line-height: 20px;
}

.movie-ratings-row {
  display: flex;
  gap: 16px;
  padding: 14px 48px 8px;
}

.movie-rating-card {
  width: 156px;
  height: 116px;
  border-radius: 14px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-company-section {
  margin-top: 20px;
}

.detail-company-title {
  margin: 0;
  padding: 0 48px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  color: #fff;
}

.detail-company-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-top: 6px;
  padding-bottom: 6px;
}

.detail-company-card {
  flex: 0 0 140px;
  width: 140px;
  height: 56px;
  border-radius: 12px;
  background: #fff;
  border: 0;
  transition: transform 180ms ease;
}

.detail-company-card img {
  max-width: calc(100% - 28px);
  max-height: 36px;
}

.detail-company-card span {
  font-size: 14px;
  line-height: 20px;
  color: #808080;
}

.detail-morelike-track {
  gap: 20px;
  overflow-x: auto;
  padding-top: 6px;
  padding-bottom: 6px;
}

.detail-morelike-card {
  flex: 0 0 260px;
  width: 260px;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
  transition: transform 180ms ease;
}

.detail-morelike-poster-wrap {
  width: 100%;
  height: 146px;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: visible;
  background-color: transparent;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.detail-morelike-poster {
  height: 100%;
  border-radius: 12px;
  background-color: #242424;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.detail-morelike-poster-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.detail-morelike-name {
  margin-top: 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--detail-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-morelike-type {
  margin-top: 2px;
  font-size: 12px;
  line-height: 16px;
  color: var(--detail-text-secondary);
}

.detail-loading-shell {
  width: 100vw;
  height: 100vh;
  padding: 58px 56px;
  background: #05090f;
  color: #edf2f8;
}

.detail-loading-top {
  margin-top: 260px;
}

.detail-loading-meta {
  margin-top: 28px;
  display: flex;
  gap: 18px;
}

.detail-loading-copy {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-loading-tags {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.detail-loading-block {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(35, 39, 47, 0.66), rgba(45, 50, 60, 0.92), rgba(35, 39, 47, 0.66));
  background-size: 220% 100%;
  animation: detailLoadingShimmer 2.2s ease-in-out infinite;
}

.detail-loading-poster {
  width: min(62vw, 560px);
  height: 210px;
  border-radius: 22px;
}

.detail-loading-pill {
  width: 144px;
  height: 62px;
}

.detail-loading-pill.short {
  width: 82px;
}

.detail-loading-line {
  width: min(82vw, 760px);
  height: 30px;
}

.detail-loading-line.wide {
  width: min(88vw, 900px);
}

.detail-loading-line.mid {
  width: min(80vw, 820px);
}

.detail-loading-tag {
  width: 110px;
  height: 34px;
}

.detail-loading-chip {
  width: 94px;
  height: 28px;
}

@keyframes detailLoadingShimmer {
  0%, 100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

.stream-screen-shell .series-detail-vignette {
  background:
    linear-gradient(90deg, rgba(5, 9, 14, 0.9) 0%, rgba(7, 11, 16, 0.72) 44%, rgba(7, 11, 16, 0.44) 70%, rgba(7, 11, 16, 0.3) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.72));
}

.stream-screen-panel {
  inset: 28px 24px;
  grid-template-columns: 0.9fr 1.5fr;
  background: rgba(11, 15, 22, 0.82);
  padding: 18px;
}

.stream-screen-left {
  justify-content: flex-end;
  padding-bottom: 28px;
}

.stream-route-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #0d0d0d;
  color: #ffffff;
}

.stream-route-backdrop,
.stream-route-backdrop-dim,
.stream-route-left-gradient,
.stream-route-right-gradient,
.stream-route-content {
  position: absolute;
  inset: 0;
}

.stream-route-backdrop {
  background: #0d0d0d center center / cover no-repeat;
  transform: scale(1.02);
}

.stream-route-backdrop-dim {
  background: rgba(13, 13, 13, 0.24);
}

.stream-route-left-gradient {
  background: linear-gradient(90deg, rgba(13, 13, 13, 1) 0%, rgba(13, 13, 13, 0.96) 15%, rgba(13, 13, 13, 0.88) 31%, rgba(13, 13, 13, 0.66) 48%, rgba(13, 13, 13, 0.36) 68%, rgba(13, 13, 13, 0) 100%);
}

.stream-route-right-gradient {
  background: linear-gradient(270deg, rgba(13, 13, 13, 1) 0%, rgba(13, 13, 13, 0.95) 14%, rgba(13, 13, 13, 0.82) 31%, rgba(13, 13, 13, 0.58) 48%, rgba(13, 13, 13, 0.24) 72%, rgba(13, 13, 13, 0) 100%);
}

.stream-route-content {
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.4fr) minmax(760px, 0.6fr);
  padding: 48px;
  box-sizing: border-box;
}

.stream-route-left,
.stream-route-right {
  min-width: 0;
  min-height: 0;
}

.stream-route-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 24px;
}

.stream-route-left-inner {
  width: min(80%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stream-route-logo {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 18px;
}

.stream-route-title {
  margin: 0 0 16px;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 700;
}

.stream-route-episode-code {
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
  color: #b3b3b3;
}

.stream-route-subtitle {
  margin-top: 6px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  color: #ffffff;
}

.stream-route-detail-line {
  margin-top: 6px;
  font-size: 18px;
  line-height: 24px;
  color: #b3b3b3;
}

.stream-route-right {
  display: flex;
  flex-direction: column;
  max-width: 1060px;
  justify-self: end;
}

.stream-route-chip-wrap {
  height: 56px;
  margin-bottom: 16px;
}

.stream-route-chip-track {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  overflow-x: auto;
  padding: 4px 8px;
  box-sizing: border-box;
  scrollbar-width: none;
}

.stream-route-chip-track::-webkit-scrollbar {
  display: none;
}

.stream-route-chip {
  min-height: 48px;
  padding: 0 34px;
  border-radius: 24px;
  border: 1px solid #333333;
  background: #242424;
  color: #b3b3b3;
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.stream-route-chip.selected {
  background: #f5f5f5;
  border-color: transparent;
  color: #111111;
}

.stream-route-chip.loading {
  color: #d8d8d8;
}

.stream-route-chip.error {
  border-color: rgba(231, 76, 60, 0.78);
  color: #ff8e85;
}

.stream-route-chip.focused {
  box-shadow: 0 0 0 2px #ffffff;
}

.stream-route-chip-spinner {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  animation: streamRouteSpin 700ms linear infinite;
}

.stream-route-panel-shell {
  flex: 1;
  min-height: 0;
  border-radius: 22px;
  background: rgba(52, 52, 52, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 22px 20px 22px;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 0;
  transform: translateX(4%);
  animation: streamRoutePanelEnter 260ms ease forwards;
}

.stream-route-panel {
  height: 100%;
  border-radius: 18px;
  background: transparent;
  overflow: visible;
}

.stream-route-list {
  height: 100%;
  overflow-y: auto;
  padding: 8px 8px 10px;
  box-sizing: border-box;
  scrollbar-width: none;
  scroll-padding-top: 8px;
  scroll-padding-bottom: 10px;
}

.stream-route-list::-webkit-scrollbar {
  display: none;
}

.stream-route-card {
  width: 100%;
  min-height: 214px;
  margin-bottom: 18px;
  padding: 28px 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  background: rgba(18, 18, 18, 0.94);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 30px;
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.stream-route-card:focus {
  outline: none;
}

.stream-route-card:last-child {
  margin-bottom: 0;
}

.performance-constrained * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 140ms !important;
  transition-delay: 0ms !important;
}

.performance-constrained .home-route-content-enter,
.performance-constrained .addons-route-enter,
.performance-constrained .search-route-enter,
.performance-constrained .library-route-enter {
  animation: none !important;
}

.performance-constrained .home-content-card,
.performance-constrained .home-poster-frame,
.performance-constrained .home-poster-card,
.performance-constrained .home-continue-card,
.performance-constrained .stream-route-card {
  transition-duration: 200ms !important;
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

.performance-constrained .home-content-card.focused {
  transform: scale(1.005) !important;
}

.performance-constrained .home-boot-shimmer,
.performance-constrained .home-continue-media-loading,
.performance-constrained .home-continue-card-loading,
.performance-constrained .home-continue-card-loading .home-continue-progress,
.performance-constrained .home-continue-skeleton-line,
.performance-constrained .home-modern-hero-card-loading,
.performance-constrained .home-modern-hero-media-loading .home-hero-backdrop-loading,
.performance-constrained .home-hero-backdrop-loading {
  animation: none !important;
}

.performance-constrained .modern-sidebar-panel,
.performance-constrained .modern-sidebar-pill-chip,
.performance-constrained .series-episode-card,
.performance-constrained .series-stream-panel,
.performance-constrained .stream-route-panel-shell {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.performance-constrained .home-screen-shell .home-hero-backdrop {
  filter: none !important;
}

.performance-constrained .home-content-card.focused,
.performance-constrained .home-continue-card.focused,
.performance-constrained .home-poster-card.focused .home-poster-frame,
.performance-constrained .series-episode-card.focused,
.performance-constrained .series-season-btn.focused {
  box-shadow: none !important;
}

.stream-route-card.focused {
  transform: scale(1.005);
  border-color: rgba(255, 255, 255, 0.02);
  background: rgba(18, 18, 18, 0.98);
  box-shadow:
    0 0 0 5px rgba(191, 184, 196, 0.96),
    0 10px 28px rgba(0, 0, 0, 0.28);
}

.stream-route-card.skeleton {
  display: block;
  min-height: 160px;
}

.stream-route-card-copy {
  flex: 1;
  min-width: 0;
}

.stream-route-card-heading {
  font-size: 25px;
  line-height: 33px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-route-card-quality {
  margin-top: 10px;
  font-size: 24px;
  line-height: 30px;
  font-weight: 500;
  color: #ffffff;
}

.stream-route-card-line {
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.28;
  color: #b3b3b3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-route-card-line.secondary {
  margin-top: 4px;
}

.stream-route-card-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.stream-route-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  line-height: 25px;
}

.stream-route-meta-item.peers {
  color: #2196f3;
}

.stream-route-meta-item.size {
  color: #c4c4c4;
}

.stream-route-meta-item.source {
  color: #c4c4c4;
}

.stream-route-meta-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stream-route-meta-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.stream-route-card-side {
  width: 190px;
  flex: 0 0 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.stream-route-addon-badge {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 2px solid #00b74f;
  color: #00b74f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.02);
}

.stream-route-addon-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stream-route-addon-badge span {
  font-size: 33px;
  line-height: 1;
  font-weight: 700;
}

.stream-route-addon-name {
  font-size: 19px;
  line-height: 25px;
  color: #8c8c8c;
  text-align: center;
}

.stream-route-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  font-size: 20px;
  line-height: 30px;
  color: #b3b3b3;
  text-align: center;
}

.stream-route-skeleton-line {
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 56, 56, 0.5), rgba(96, 96, 96, 0.85), rgba(56, 56, 56, 0.5));
  background-size: 220% 100%;
  animation: detailLoadingShimmer 2.2s ease-in-out infinite;
  margin-bottom: 14px;
}

.stream-route-skeleton-line.wide {
  width: 34%;
  height: 22px;
}

.stream-route-skeleton-line.short {
  width: 12%;
  height: 18px;
}

.stream-route-skeleton-line:last-child {
  width: 56%;
  margin-bottom: 0;
}

@keyframes streamRoutePanelEnter {
  from {
    opacity: 0;
    transform: translateX(4%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes streamRouteSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cast-detail-shell {
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: radial-gradient(140% 90% at 78% 0%, rgba(195, 44, 28, 0.22), transparent 40%), #05090f;
  color: #edf3fa;
  padding: 26px 34px 38px;
  box-sizing: border-box;
}

.cast-detail-loading,
.cast-detail-error {
  margin-top: 36vh;
  text-align: center;
  font-size: 28px;
  color: rgba(236, 243, 251, 0.82);
}

.cast-detail-hero {
  margin-bottom: 24px;
}

.cast-detail-back {
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #edf3fa;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cast-detail-back.focused {
  transform: none;
  border-color: rgba(245, 249, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(245, 249, 255, 0.2);
}

.cast-detail-hero-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: flex-start;
}

.cast-detail-avatar {
  width: 220px;
  height: 320px;
  border-radius: 18px;
  background: #1a2230 center center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cast-detail-meta {
  min-width: 0;
}

.cast-detail-name {
  margin: 4px 0 12px;
  font-size: 48px;
  line-height: 1.05;
}

.cast-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(228, 236, 246, 0.72);
  font-size: 18px;
  margin-bottom: 12px;
}

.cast-detail-facts span {
  display: inline-flex;
  height: 34px;
  padding: 0 12px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.cast-detail-bio {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  color: rgba(236, 243, 251, 0.88);
  max-width: 1200px;
}

.cast-detail-section-title {
  margin: 0 0 14px;
  font-size: 34px;
}

.cast-credit-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.cast-credit-track::-webkit-scrollbar {
  display: none;
}

.cast-credit-card {
  flex: 0 0 240px;
  border-radius: 18px;
  padding: 10px;
  background: rgba(12, 17, 25, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cast-credit-card.focused {
  transform: none;
  border-color: rgba(245, 249, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(245, 249, 255, 0.2);
}

.cast-credit-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: #1a2230 center center / cover no-repeat;
  margin-bottom: 10px;
}

.cast-credit-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cast-credit-subtitle {
  margin-top: 6px;
  font-size: 15px;
  color: rgba(224, 234, 245, 0.72);
}

.cast-credit-empty {
  color: rgba(224, 234, 245, 0.7);
}

.seeall-shell {
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 24px 48px 32px;
  box-sizing: border-box;
  background: var(--bg-color);
  color: var(--text-color);
  scroll-padding-top: 18px;
  scroll-padding-bottom: 18px;
}

.seeall-shell::-webkit-scrollbar {
  display: none;
}

.seeall-header {
  margin-bottom: 24px;
}

.seeall-title {
  margin: 0;
  font-size: 56px;
  line-height: 1.08;
  color: var(--text-color);
}

.seeall-subtitle {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--text-secondary);
}

.seeall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 20px 16px;
  align-items: start;
}

.seeall-card {
  width: 248px;
  border-radius: 12px;
  background: transparent;
  border: none;
  justify-self: start;
  overflow: visible;
  scroll-margin-block: 12px;
}

.seeall-card.focused {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.seeall-card-poster-wrap {
  width: 100%;
  height: 372px;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  margin-bottom: 8px;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.seeall-card.focused .seeall-card-poster-wrap {
  border-color: var(--focus-color);
  box-shadow: 0 0 0 2px var(--focus-color);
  background-color: var(--focus-bg);
}

.seeall-card-poster,
.seeall-card-poster-image {
  width: 100%;
  height: 100%;
  display: block;
}

.seeall-card-poster {
  background: var(--card-bg);
}

.seeall-card-poster-image {
  object-fit: cover;
}

.seeall-card-title {
  width: 100%;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

.seeall-card-year {
  width: 100%;
  margin-top: 4px;
  padding: 0 2px;
  font-size: 20px;
  color: var(--text-secondary);
}

.seeall-card.focused .seeall-card-title {
  color: #fff;
}

.seeall-card.focused .seeall-card-year {
  color: rgba(255, 255, 255, 0.82);
}

.seeall-empty {
  padding: 24px 0;
  color: var(--text-secondary);
  font-size: 28px;
}

.seeall-loading {
  width: 100%;
  padding: 18px 0 8px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 24px;
}

.seeall-shell.discover-seeall-shell {
  width: 100%;
  height: auto;
  min-height: 100%;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  overflow: visible;
}
