/* Page-specific composition. Shared controls remain in components.css. */

/* Home hero ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border-bottom: 1px solid #292e38;
  border-bottom: 1px solid var(--color-border-soft, #292e38);
  background: #181b21;
  background: var(--color-surface, #181b21);
}

.hero-backdrop,
.detail-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: #20242c;
  background: var(--color-surface-raised, #20242c);
}

.hero-backdrop img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-backdrop.poster-placeholder,
.detail-backdrop.poster-placeholder {
  width: auto;
  height: auto;
  padding-top: 0;
  border-radius: 0;
}

.hero-overlay,
.detail-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: rgba(7, 9, 12, 0.7);
  background: linear-gradient(90deg, rgba(7, 9, 12, 0.96) 0%, rgba(7, 9, 12, 0.82) 38%, rgba(7, 9, 12, 0.28) 74%, rgba(7, 9, 12, 0.46) 100%);
}

.hero:after,
.detail-hero:after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 180px;
  background: rgba(16, 18, 22, 0);
  background: linear-gradient(to bottom, rgba(16, 18, 22, 0), #101216);
  content: "";
  pointer-events: none;
}

.hero > .container,
.hero-inner {
  position: relative;
  z-index: 3;
  min-height: 660px;
  padding-top: 78px;
  padding-bottom: 96px;
}

@supports (display: flex) {
  .hero > .container,
  .hero-inner {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    align-items: flex-end;
  }
}

.hero-content {
  position: relative;
  z-index: 4;
  width: 820px;
  max-width: 62%;
}

/* The static prototype combines the content wrapper and container. */
.hero > .hero-content {
  display: block;
  width: 100%;
  max-width: 1760px;
  margin-right: auto;
  margin-left: auto;
  padding-top: 238px;
  padding-bottom: 96px;
}

.hero > .hero-content > * {
  max-width: 820px;
}

.hero-kicker,
.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #aab9f3;
  color: var(--color-focus, #aab9f3);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title,
.hero-content > h1 {
  max-width: 940px;
  margin-bottom: 16px;
  font-size: 68px;
  font-size: var(--font-size-hero, 68px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.hero-meta,
.detail-meta,
.media-meta {
  display: block;
  margin: 0 0 18px;
  padding: 0;
  color: #c5cad2;
  color: var(--color-text-soft, #c5cad2);
  list-style: none;
}

.hero-meta > *,
.detail-meta > *,
.media-meta > * {
  display: inline-block;
  margin-right: 12px;
  margin-bottom: 7px;
  vertical-align: middle;
}

.hero-meta > *:after,
.detail-meta > *:after,
.media-meta > *:after {
  margin-left: 12px;
  color: #6f7783;
  content: "\2022";
}

.hero-meta > *:last-child:after,
.detail-meta > *:last-child:after,
.media-meta > *:last-child:after,
.hero-meta > .badge:after,
.detail-meta > .badge:after,
.media-meta > .badge:after {
  display: none;
}

.hero-description {
  max-width: 780px;
  margin-bottom: 28px;
  color: #d2d6dd;
  font-size: 21px;
  line-height: 1.55;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.section-kicker {
  margin: 0 0 5px;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.row-actions {
  margin-left: 18px;
  white-space: nowrap;
}

.row-actions > * {
  margin-left: 7px;
}

.hero-actions,
.detail-actions,
.upload-actions {
  margin-right: -12px;
  margin-bottom: -12px;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.hero-actions > *,
.detail-actions > *,
.upload-actions > * {
  margin-right: 12px;
  margin-bottom: 12px;
}

.home-sections {
  position: relative;
  z-index: 4;
  padding-top: 52px;
}

.content-rows {
  position: relative;
  z-index: 4;
  padding-top: 52px;
}

/* Catalog pages ------------------------------------------------------- */
.catalog-search {
  width: 420px;
  max-width: 100%;
}

.filter-group {
  display: inline-block;
  min-width: 190px;
  vertical-align: bottom;
}

.filter-group .field-label {
  font-size: 15px;
}

.filter-group .select,
.filter-group select {
  min-height: 54px;
  padding-top: 11px;
  padding-bottom: 11px;
  font-size: 17px;
}

.active-filters {
  margin-top: -10px;
  margin-bottom: 28px;
}

.active-filters .chip {
  margin-right: 8px;
  margin-bottom: 8px;
}

.catalog-summary {
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
}

/* Movie and series detail -------------------------------------------- */
.detail-hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: #181b21;
  background: var(--color-surface, #181b21);
}

.detail-hero > .container {
  position: relative;
  z-index: 3;
  min-height: 700px;
}

.detail-content {
  min-height: 700px;
  padding-top: 86px;
  padding-bottom: 92px;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
  align-items: flex-end;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  width: 330px;
  width: var(--detail-poster-width, 330px);
  min-width: 330px;
  min-width: var(--detail-poster-width, 330px);
  margin-right: 48px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  border-radius: var(--radius-lg, 16px);
  background: #282d37;
  -webkit-box-shadow: 0 20px 54px rgba(0, 0, 0, 0.42);
  box-shadow: var(--shadow-lg, 0 20px 54px rgba(0, 0, 0, 0.42));
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 330px;
  flex: 0 0 330px;
}

.detail-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-poster .poster-placeholder {
  border-radius: 14px;
}

.detail-info {
  min-width: 0;
  max-width: 1000px;
  padding-bottom: 6px;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
}

.detail-title,
.detail-info > h1 {
  margin-bottom: 8px;
  font-size: 58px;
  letter-spacing: -0.02em;
}

.detail-facts {
  display: block;
  margin: 0 0 24px;
  font-size: 0;
}

.detail-facts > div {
  display: inline-block;
  min-width: 150px;
  margin: 0 24px 10px 0;
  font-size: 16px;
  vertical-align: top;
}

.detail-facts dt,
.technical-grid dt {
  margin-bottom: 4px;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 14px;
}

.detail-facts dd,
.technical-grid dd {
  margin: 0;
  color: #f1f3f6;
  color: var(--color-text, #f1f3f6);
  font-weight: 700;
}

.original-title {
  margin-bottom: 16px;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 21px;
  font-weight: 400;
}

.back-link {
  display: inline-block;
  min-height: 46px;
  margin-bottom: 12px;
  padding: 10px 0;
  color: #c5cad2;
  color: var(--color-text-soft, #c5cad2);
  font-size: 16px;
  font-weight: 700;
}

.back-link:hover,
.back-link:focus {
  color: #ffffff;
}

.detail-description,
.synopsis {
  max-width: 940px;
  margin-bottom: 26px;
  color: #d2d6dd;
  font-size: 20px;
  line-height: 1.62;
}

.detail-body {
  padding-top: 52px;
}

.detail-lower {
  position: relative;
  z-index: 4;
  padding-top: 52px;
}

.detail-section {
  margin-bottom: 58px;
}

.detail-section > h2,
.detail-section > .section-heading {
  margin-bottom: 22px;
}

.technical-grid > *,
.info-grid > * {
  display: inline-block;
  width: 25%;
  padding: 0 12px;
  font-size: 18px;
  vertical-align: top;
}

.technical-item,
.info-item {
  min-height: 108px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid #333945;
  border: 1px solid var(--color-border, #333945);
  border-radius: 10px;
  background: #181b21;
  background: var(--color-surface, #181b21);
}

.technical-grid > div {
  min-height: 108px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid #333945;
  border: 1px solid var(--color-border, #333945);
  border-radius: 10px;
  background: #181b21;
  background: var(--color-surface, #181b21);
}

.technical-label,
.info-label {
  display: block;
  margin-bottom: 7px;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 15px;
}

.technical-value,
.info-value {
  display: block;
  overflow-wrap: break-word;
  color: #f1f3f6;
  color: var(--color-text, #f1f3f6);
  font-size: 18px;
  font-weight: 700;
}

/* Series seasons and episodes ---------------------------------------- */
.season-selector {
  margin-bottom: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.season-summary {
  margin: 0;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 16px;
}

.season-summary strong {
  color: #f1f3f6;
}

.season-panel {
  display: none;
}

.season-panel.is-active,
.season-panel[aria-hidden="false"] {
  display: block;
}

.season-panel-title {
  margin: 24px 0 16px;
  color: #c5cad2;
  color: var(--color-text-soft, #c5cad2);
  font-size: 24px;
}

.episode-list,
.media-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.episode-item,
.media-list-item {
  position: relative;
  display: block;
  min-height: 176px;
  margin-bottom: 16px;
  padding: 18px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #181b21;
  background: var(--color-surface, #181b21);
  color: #f1f3f6;
  -webkit-transition: border-color 120ms ease-out, background-color 120ms ease-out;
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}

@supports (display: flex) {
  .episode-item,
  .media-list-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
  }
}

.episode-item:hover,
.episode-item:focus,
.episode-item.is-focused,
.media-list-item:hover,
.media-list-item:focus,
.media-list-item.is-focused {
  border-color: #7189d8;
  border-color: var(--color-accent, #7189d8);
  background: #20242c;
  background: var(--color-surface-raised, #20242c);
}

.episode-number {
  width: 66px;
  margin-right: 14px;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 66px;
  flex: 0 0 66px;
}

.episode-thumb,
.list-thumb {
  position: relative;
  overflow: hidden;
  width: 250px;
  min-width: 250px;
  height: 140px;
  margin-right: 24px;
  border-radius: 8px;
  background: #282d37;
  background: var(--color-surface-soft, #282d37);
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 250px;
  flex: 0 0 250px;
}

.episode-thumb.poster-placeholder,
.list-thumb.poster-placeholder {
  height: 140px;
  padding-top: 0;
}

.episode-thumb img,
.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-thumb .progress-bar,
.list-thumb .progress-bar {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  width: auto;
}

.episode-info,
.list-info {
  min-width: 0;
  padding-right: 24px;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
}

.episode-title,
.list-title {
  overflow: hidden;
  margin-bottom: 8px;
  font-size: 23px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-info > h3,
.episode-info > h4,
.list-info > h3,
.list-info > h4 {
  overflow: hidden;
  margin-bottom: 8px;
  font-size: 23px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-meta,
.list-meta {
  margin-bottom: 10px;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 16px;
}

.episode-description,
.list-description {
  display: block;
  overflow: hidden;
  max-height: 3em;
  margin: 0;
  color: #c5cad2;
  color: var(--color-text-soft, #c5cad2);
  font-size: 16px;
  line-height: 1.5;
}

.episode-actions,
.list-actions {
  min-width: 210px;
  text-align: right;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}

.episode-actions > *,
.list-actions > * {
  margin: 5px;
}

.episode-item.is-watched {
  border-left-color: #66aa86;
  border-left-color: var(--color-success, #66aa86);
}

.episode-item.is-watched .episode-number {
  color: #8bc5a6;
}

/* Continue watching and history -------------------------------------- */
.media-list-item {
  min-height: 166px;
}

.list-progress {
  max-width: 640px;
  margin-top: 12px;
}

.history-group {
  margin-bottom: 52px;
}

.history-group-title,
.history-date {
  margin-bottom: 18px;
  color: #c5cad2;
  color: var(--color-text-soft, #c5cad2);
  font-size: 24px;
}

.history-time {
  display: inline-block;
  min-width: 105px;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-family: Consolas, "Courier New", monospace;
  font-family: var(--font-mono, Consolas, "Courier New", monospace);
  font-size: 16px;
}

/* TV search and on-screen keyboard ----------------------------------- */
.search-page .page-heading {
  margin-bottom: 26px;
}

.search-panel {
  max-width: 1240px;
  margin: 0 auto 48px;
}

.search-panel .search-input-wrap input,
.search-panel .search-input {
  min-height: 76px;
  padding-top: 18px;
  padding-bottom: 18px;
  padding-left: 68px;
  border-width: 2px;
  font-size: 26px;
}

.search-panel .search-input-icon {
  left: 24px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  font-size: 30px;
  line-height: 30px;
}

.recent-searches {
  margin-top: 18px;
}

.recent-searches-label {
  display: inline-block;
  margin-right: 12px;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 16px;
}

.recent-searches .chip {
  margin: 4px;
}

.keyboard-panel {
  max-width: 1240px;
  margin: 0 auto 56px;
  padding: 24px;
  border: 1px solid #333945;
  border: 1px solid var(--color-border, #333945);
  border-radius: 16px;
  background: #181b21;
  background: var(--color-surface, #181b21);
}

.keyboard-heading {
  margin-bottom: 16px;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.keyboard-grid {
  display: block;
  margin: -5px;
  font-size: 0;
}

@supports (display: flex) {
  .keyboard-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }
}

.keyboard-key {
  display: inline-block;
  width: 9%;
  min-height: 64px;
  margin: 0.5%;
  padding: 16px 8px;
  border: 1px solid #414855;
  border-radius: 8px;
  background: #282d37;
  background: var(--color-surface-soft, #282d37);
  color: #f1f3f6;
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  vertical-align: middle;
}

.keyboard-key:hover,
.keyboard-key:focus,
.keyboard-key.is-focused {
  border-color: #7189d8;
  border-color: var(--color-accent, #7189d8);
  background: #3a4251;
  color: #ffffff;
  -webkit-transform: scale(1.035);
  transform: scale(1.035);
}

.keyboard-key.key-wide {
  width: 19%;
}

.keyboard-key.key-space {
  width: 39%;
}

.keyboard-key.key-action {
  border-color: #596995;
  background: rgba(113, 137, 216, 0.18);
  background: var(--color-accent-soft, rgba(113, 137, 216, 0.18));
}

.keyboard-key.key-danger {
  border-color: #875158;
  background: rgba(198, 111, 119, 0.18);
  background: var(--color-danger-soft, rgba(198, 111, 119, 0.18));
}

.search-results,
.search-group {
  margin-bottom: 52px;
}

.results-summary {
  margin: 0 0 28px;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
}

.search-field {
  width: 100%;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 22px;
  z-index: 2;
  margin-top: -14px;
  color: #929aa7;
  font-size: 27px;
  line-height: 28px;
  pointer-events: none;
}

.search-input-wrap .search-input {
  padding-left: 62px;
}

.search-empty {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

/* Upload workstation -------------------------------------------------- */
.stats-grid {
  margin-bottom: 24px;
}

.stats-grid > .stat-card {
  display: inline-block;
  width: 14.285%;
  min-height: 142px;
  margin-bottom: 16px;
  padding: 20px;
  border: 8px solid transparent;
  border-radius: 18px;
  background: #181b21;
  background: var(--color-surface, #181b21);
  background-clip: padding-box;
  -webkit-box-shadow: inset 0 0 0 1px #333945;
  box-shadow: inset 0 0 0 1px var(--color-border, #333945);
  font-size: 18px;
  vertical-align: top;
}

.stat-card > p {
  min-height: 42px;
  margin-bottom: 9px;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 14px;
  line-height: 1.35;
}

.stat-card > strong {
  display: block;
  margin-bottom: 7px;
  color: #f1f3f6;
  color: var(--color-text, #f1f3f6);
  font-size: 29px;
  line-height: 1.1;
}

.stat-card > span {
  display: block;
  overflow: hidden;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card.stat-good {
  -webkit-box-shadow: inset 4px 0 0 #66aa86, inset 0 0 0 1px #333945;
  box-shadow: inset 4px 0 0 #66aa86, inset 0 0 0 1px #333945;
}

.stat-card.stat-warning {
  -webkit-box-shadow: inset 4px 0 0 #d0a65d, inset 0 0 0 1px #333945;
  box-shadow: inset 4px 0 0 #d0a65d, inset 0 0 0 1px #333945;
}

.stat-card.stat-error {
  -webkit-box-shadow: inset 4px 0 0 #c66f77, inset 0 0 0 1px #333945;
  box-shadow: inset 4px 0 0 #c66f77, inset 0 0 0 1px #333945;
}

.stat-card-inner {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.stat-label {
  display: block;
  min-height: 44px;
  margin-bottom: 10px;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 15px;
  line-height: 1.4;
}

.stat-value {
  display: block;
  color: #f1f3f6;
  color: var(--color-text, #f1f3f6);
  font-size: 31px;
  font-weight: 800;
  line-height: 1.1;
}

.stat-note {
  display: block;
  margin-top: 8px;
  color: #929aa7;
  font-size: 14px;
}

.disk-card .disk-meter {
  margin-top: 13px;
}

.storage-meter {
  margin: 0 8px 38px;
  padding: 20px 22px;
  border: 1px solid #333945;
  border-radius: 10px;
  background: #181b21;
}

.storage-meter p {
  margin: 9px 0 0;
  color: #929aa7;
  font-size: 15px;
}

.upload-actions {
  margin-top: 12px;
  margin-bottom: 34px;
}

.upload-form,
.upload-queue,
.pipeline-panel {
  margin-bottom: 38px;
  padding: 30px;
  border: 1px solid #333945;
  border: 1px solid var(--color-border, #333945);
  border-radius: 16px;
  background: #181b21;
  background: var(--color-surface, #181b21);
}

.upload-form-panel,
.upload-progress-panel {
  margin-bottom: 38px;
}

.upload-form-header,
.panel-header {
  display: block;
  margin-bottom: 26px;
}

@supports (display: flex) {
  .upload-form-header,
  .panel-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
  }
}

.upload-form-header h2,
.panel-header h2,
.panel-header h3 {
  margin-bottom: 0;
}

.form-grid > .field,
.form-grid > .form-field {
  width: 50%;
  padding-right: 12px;
  padding-left: 12px;
}

.form-grid > .field-full,
.form-grid > .full-width,
.form-grid > .field-wide {
  width: 100%;
}

.form-actions {
  margin-top: 8px;
}

.form-actions > * {
  margin: 0 10px 10px 0;
}

.file-dropzone {
  position: relative;
  min-height: 176px;
  padding: 42px 24px;
  border: 2px dashed #4a5260;
  border-radius: 12px;
  background: #15181e;
  color: #929aa7;
  text-align: center;
}

.file-dropzone:hover,
.file-dropzone:focus,
.file-dropzone.is-dragover {
  border-color: #7189d8;
  border-color: var(--color-accent, #7189d8);
  background: rgba(113, 137, 216, 0.09);
  background: var(--color-accent-faint, rgba(113, 137, 216, 0.09));
}

.file-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}

.file-dropzone-icon {
  display: block;
  margin-bottom: 12px;
  color: #aab9f3;
  font-size: 38px;
}

.file-dropzone strong {
  display: block;
  margin-bottom: 5px;
  color: #f1f3f6;
}

.pipeline {
  display: block;
  margin: 0 -5px;
  font-size: 0;
}

@supports (display: flex) {
  .pipeline {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }
}

.pipeline-step {
  position: relative;
  display: inline-block;
  width: 16.666%;
  min-height: 120px;
  padding: 18px 8px;
  color: #6f7783;
  font-size: 15px;
  text-align: center;
  vertical-align: top;
}

.pipeline-step:before {
  display: none;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border: 2px solid #414855;
  border-radius: 50%;
  background: #20242c;
  color: #929aa7;
  font-size: 18px;
  font-weight: 800;
  line-height: 38px;
  content: attr(data-step);
}

.pipeline-step > span:first-child {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border: 2px solid #414855;
  border-radius: 50%;
  background: #20242c;
  color: #929aa7;
  font-size: 18px;
  font-weight: 800;
  line-height: 38px;
  text-align: center;
}

.pipeline-step:after {
  position: absolute;
  top: 39px;
  right: -25%;
  width: 50%;
  height: 2px;
  background: #333945;
  content: "";
}

.pipeline-step:last-child:after {
  display: none;
}

.pipeline-step.is-active,
.pipeline-step.is-current,
.pipeline-step.is-complete {
  color: #f1f3f6;
}

.pipeline-step.is-active > span:first-child,
.pipeline-step.is-current > span:first-child {
  border-color: #7189d8;
  background: rgba(113, 137, 216, 0.18);
  color: #d9e0fa;
}

.pipeline-step.is-complete > span:first-child {
  border-color: #66aa86;
  background: rgba(102, 170, 134, 0.18);
  color: #bee1cd;
}

.pipeline-step.is-error > span:first-child {
  border-color: #c66f77;
  background: rgba(198, 111, 119, 0.18);
  color: #efc1c5;
}

.pipeline-step strong {
  display: block;
  margin-bottom: 6px;
  color: inherit;
  font-size: 15px;
}

.pipeline-step p {
  margin-bottom: 0;
  color: #929aa7;
  font-size: 13px;
  line-height: 1.4;
}

progress.upload-progress {
  display: block;
  width: 100%;
  height: 14px;
  margin-bottom: 14px;
  border: 0;
  border-radius: 999px;
  background: #333945;
  color: #7189d8;
  -webkit-appearance: none;
  appearance: none;
}

progress.upload-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #333945;
}

progress.upload-progress::-webkit-progress-value {
  border-radius: 999px;
  background: #7189d8;
  background: var(--color-accent, #7189d8);
}

progress.upload-progress::-moz-progress-bar {
  border-radius: 999px;
  background: #7189d8;
  background: var(--color-accent, #7189d8);
}

.upload-source-tabs {
  max-width: 100%;
  overflow-x: auto;
}

.upload-progress-actions {
  margin-top: 18px;
}

.upload-progress-actions .btn {
  margin-right: 10px;
  margin-bottom: 10px;
}

.upload-mode-panel[hidden],
.series-manager-list[hidden] {
  display: none;
}

.upload-target-summary {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #333945;
  border-radius: 10px;
  background: #20242c;
  color: #c5cad2;
}

.upload-target-summary strong {
  display: block;
  margin-bottom: 5px;
  color: #f1f3f6;
}

.series-manager-list {
  margin-bottom: 38px;
}

.series-manager-item {
  display: block;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid #333945;
  border-radius: 12px;
  background: #181b21;
}

.series-manager-header {
  display: block;
  margin-bottom: 16px;
}

@supports (display: flex) {
  .series-manager-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
  }
}

.series-manager-title {
  margin-bottom: 6px;
}

.series-manager-meta,
.episode-manager-meta {
  color: #929aa7;
  font-size: 15px;
  line-height: 1.45;
}

.season-manager {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #333945;
}

.season-manager h4 {
  margin-bottom: 12px;
  color: #c5cad2;
}

.episode-manager-row {
  display: block;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid #333945;
  border-radius: 10px;
  background: #20242c;
}

@supports (display: flex) {
  .episode-manager-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
  }
}

.episode-manager-main {
  min-width: 0;
  padding-right: 14px;
}

.episode-manager-actions {
  white-space: nowrap;
}

.episode-manager-actions > *,
.series-manager-actions > * {
  margin-left: 8px;
  margin-bottom: 8px;
}

.episode-manager-row .progress-bar {
  max-width: 340px;
  margin-top: 9px;
}

.upload-queue-item {
  display: block;
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid #333945;
  border-radius: 10px;
  background: #20242c;
}

@supports (display: flex) {
  .upload-queue-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
  }
}

.queue-file {
  min-width: 0;
  margin-right: 24px;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
}

.queue-name {
  display: block;
  overflow: hidden;
  margin-bottom: 6px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-meta {
  color: #929aa7;
  font-size: 15px;
}

.queue-progress {
  width: 360px;
  max-width: 36%;
  margin-right: 24px;
}

/* Settings ------------------------------------------------------------ */
.settings-layout {
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
}

.settings-nav {
  position: relative;
  position: -webkit-sticky;
  position: sticky;
  top: 116px;
  width: 300px;
  margin-right: 34px;
  padding: 12px;
  border: 1px solid #333945;
  border: 1px solid var(--color-border, #333945);
  border-radius: 12px;
  background: #181b21;
  background: var(--color-surface, #181b21);
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 300px;
  flex: 0 0 300px;
}

.settings-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.settings-nav a,
.settings-nav button {
  display: block;
  width: 100%;
  min-height: 54px;
  margin-bottom: 4px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #c5cad2;
  color: var(--color-text-soft, #c5cad2);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
}

.settings-nav a:hover,
.settings-nav a:focus,
.settings-nav a.active,
.settings-nav a[aria-current="true"],
.settings-nav button:hover,
.settings-nav button:focus,
.settings-nav button.active {
  border-color: #596995;
  background: rgba(113, 137, 216, 0.18);
  background: var(--color-accent-soft, rgba(113, 137, 216, 0.18));
  color: #f1f3f6;
}

.settings-sections {
  min-width: 0;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
}

.settings-section {
  margin-bottom: 28px;
  padding: 30px;
  border: 1px solid #333945;
  border: 1px solid var(--color-border, #333945);
  border-radius: 16px;
  background: #181b21;
  background: var(--color-surface, #181b21);
  scroll-margin-top: 116px;
}

.settings-fieldset {
  margin: 8px 0 22px;
  padding: 20px;
  border: 1px solid #333945;
  border-radius: 10px;
  background: #15181e;
}

.settings-fieldset legend {
  width: auto;
  padding: 0 8px;
}

.settings-section > h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.settings-section-description {
  margin-bottom: 24px;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
}

.setting-row {
  display: block;
  min-height: 82px;
  padding: 18px 0;
  border-top: 1px solid #292e38;
  border-top: 1px solid var(--color-border-soft, #292e38);
}

@supports (display: flex) {
  .setting-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
  }
}

.setting-row:first-of-type {
  border-top: 0;
}

.setting-info {
  min-width: 0;
  max-width: 62%;
  padding-right: 30px;
}

.setting-name {
  display: block;
  margin-bottom: 5px;
  color: #f1f3f6;
  font-weight: 700;
}

.setting-description {
  display: block;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 15px;
  line-height: 1.45;
}

.setting-control {
  width: 360px;
  max-width: 38%;
  text-align: right;
}

.setting-row > .input,
.setting-row > .select,
.setting-row > input,
.setting-row > select,
.setting-meter {
  width: 360px;
  max-width: 38%;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 360px;
  flex: 0 0 360px;
}

.setting-row > div:first-child {
  min-width: 0;
  padding-right: 28px;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
}

.setting-row > div:first-child p {
  margin-bottom: 0;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 15px;
}

.setting-meter {
  text-align: right;
}

.setting-meter .progress-bar {
  display: inline-block;
  width: 82%;
  margin-right: 10px;
  vertical-align: middle;
}

.connected-devices {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #292e38;
}

.connected-devices ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.connected-devices li {
  display: block;
  min-height: 74px;
  padding: 12px 0;
  border-top: 1px solid #292e38;
}

@supports (display: flex) {
  .connected-devices li,
  .settings-save-bar {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
  }
}

.connected-devices li p {
  margin: 4px 0 0;
  color: #929aa7;
  font-size: 15px;
}

.settings-save-bar {
  position: -webkit-sticky;
  position: sticky;
  bottom: 18px;
  z-index: 8;
  padding: 16px 18px;
  border: 1px solid #414855;
  border-radius: 12px;
  background: #20242c;
  -webkit-box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  box-shadow: var(--shadow-md, 0 12px 30px rgba(0, 0, 0, 0.32));
}

.settings-save-bar p {
  margin: 0 18px 0 0;
  color: #929aa7;
  font-size: 15px;
}

.setting-control .select,
.setting-control .input,
.setting-control select,
.setting-control input[type="text"],
.setting-control input[type="password"] {
  display: inline-block;
  text-align: left;
}

.color-options {
  white-space: nowrap;
}

.color-swatch {
  display: inline-block;
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  margin-left: 8px;
  padding: 0;
  border: 3px solid #333945;
  border-radius: 50%;
  background: #7189d8;
  vertical-align: middle;
}

.color-swatch.slate { background: #6f91a6; }
.color-swatch.violet { background: #8577c9; }
.color-swatch.gold { background: #a98b55; }

.color-swatch.active,
.color-swatch[aria-pressed="true"] {
  border-color: #f1f3f6;
}

.device-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.device-item {
  display: block;
  padding: 16px 0;
  border-top: 1px solid #292e38;
}

@supports (display: flex) {
  .device-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
  }
}

.device-name {
  display: block;
  font-weight: 700;
}

.device-meta {
  color: #929aa7;
  font-size: 15px;
}

/* Full-screen native player prototype -------------------------------- */
body.player-body,
body.player-page {
  overflow: hidden;
  background: #000000;
}

.player-page {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  z-index: var(--z-player, 100);
  overflow: hidden;
  background: #000000;
  color: #ffffff;
}

.player-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #000000;
}

.player-video,
.player-stage video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.player-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  max-width: 76%;
  color: #929aa7;
  text-align: center;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.player-topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  min-height: 130px;
  padding: 30px 42px 46px;
  background: rgba(0, 0, 0, 0.74);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0));
}

@supports (display: flex) {
  .player-topbar {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
  }
}

.player-exit {
  margin-right: 20px;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
}

.player-title-wrap {
  min-width: 0;
}

.player-title {
  overflow: hidden;
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-subtitle {
  overflow: hidden;
  color: #c6c6c6;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  padding: 100px 42px 34px;
  background: rgba(0, 0, 0, 0.8);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.94));
  opacity: 1;
  -webkit-transition: opacity 180ms ease-out;
  transition: opacity 180ms ease-out;
}

.player-page.controls-hidden {
  cursor: none;
}

.player-page.controls-hidden .player-controls,
.player-page.controls-hidden .player-topbar,
.player-page.is-idle .player-controls,
.player-page.is-idle .player-topbar {
  opacity: 0;
  pointer-events: none;
}

.player-timeline-wrap {
  position: relative;
  margin-bottom: 18px;
}

.player-timeline,
input[type="range"].player-timeline {
  display: block;
  width: 100%;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.player-timeline-track {
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.player-buffered,
.player-played {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
}

.player-buffered { background: rgba(255, 255, 255, 0.35); }
.player-played { position: absolute; top: 0; left: 0; background: #7189d8; background: var(--color-accent, #7189d8); }

input[type="range"].player-timeline::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

input[type="range"].player-timeline::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  -webkit-appearance: none;
}

input[type="range"].player-timeline::-moz-range-track {
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

input[type="range"].player-timeline::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
}

.player-control-row {
  display: block;
  min-height: 64px;
}

@supports (display: flex) {
  .player-control-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
  }
}

.player-main-controls,
.player-actions,
.player-volume {
  display: inline-block;
  white-space: nowrap;
  vertical-align: middle;
}

@supports (display: flex) {
  .player-main-controls,
  .player-actions,
  .player-volume {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
  }
}

.player-main-controls {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}

.player-actions {
  margin-left: auto;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}

.player-control {
  width: 60px;
  min-width: 60px;
  height: 60px;
  min-height: 60px;
  margin-right: 8px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(20, 22, 26, 0.72);
  color: #ffffff;
  font-size: 26px;
  line-height: 58px;
  text-align: center;
}

.player-control:hover,
.player-control:focus,
.player-control.is-focused {
  border-color: #aab9f3;
  background: rgba(113, 137, 216, 0.38);
}

.player-play-toggle {
  width: 66px;
  min-width: 66px;
  height: 66px;
  min-height: 66px;
  border-radius: 50%;
  background: #f1f3f6;
  color: #101216;
  font-size: 29px;
  line-height: 64px;
}

.player-time {
  display: inline-block;
  min-width: 170px;
  margin: 0 16px 0 8px;
  color: #e5e5e5;
  font-family: Consolas, "Courier New", monospace;
  font-family: var(--font-mono, Consolas, "Courier New", monospace);
  font-size: 17px;
  white-space: nowrap;
}

.player-volume {
  width: 210px;
}

.player-volume input[type="range"] {
  width: 130px;
  min-height: 24px;
  margin-left: 4px;
  padding: 0;
}

.player-menu {
  display: none;
  position: absolute;
  right: 42px;
  bottom: 112px;
  z-index: 7;
  width: 330px;
  max-height: 54vh;
  padding: 12px;
  overflow-y: auto;
  border: 1px solid #4a5260;
  border-radius: 10px;
  background: #181b21;
  background: rgba(24, 27, 33, 0.98);
  -webkit-box-shadow: 0 12px 30px rgba(0, 0, 0, 0.52);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.52);
}

.player-menu.is-open {
  display: block;
}

.player-menu-title {
  padding: 8px 12px 12px;
  color: #929aa7;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.player-menu button {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #f1f3f6;
  text-align: left;
}

.player-menu button:hover,
.player-menu button:focus,
.player-menu button.active,
.player-menu button[aria-checked="true"] {
  border-color: #7189d8;
  background: rgba(113, 137, 216, 0.18);
}

.player-loading,
.player-error {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 720px;
  max-width: 84%;
  padding: 32px;
  border-radius: 12px;
  background: rgba(9, 11, 14, 0.88);
  color: #ffffff;
  text-align: center;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.player-error {
  border: 1px solid #c66f77;
}

.player-seek-hint,
.player-volume-hint {
  position: absolute;
  top: 50%;
  z-index: 6;
  min-width: 112px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(9, 11, 14, 0.84);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.player-seek-hint.is-back { left: 16%; }
.player-seek-hint.is-forward { right: 16%; }
.player-volume-hint { right: 5%; }

.player-keyboard-help {
  position: absolute;
  right: 34px;
  bottom: 126px;
  z-index: 6;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(9, 11, 14, 0.82);
  color: #c6c6c6;
  font-size: 14px;
}

.player-page:fullscreen,
.player-page:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #000000;
}

/* Exact static-player structure: controls contain top and bottom bars. */
.player-empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 760px;
  max-width: 86%;
  padding: 34px;
  border: 1px solid #333945;
  border-radius: 16px;
  background: rgba(9, 11, 14, 0.9);
  color: #c5cad2;
  text-align: center;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.player-empty-state h1 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 34px;
}

.player-empty-art {
  display: block;
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border: 2px solid #7189d8;
  border-color: var(--color-accent, #7189d8);
  border-radius: 50%;
  background: rgba(113, 137, 216, 0.18);
  color: #d9e0fa;
  font-size: 34px;
  line-height: 74px;
  text-align: center;
}

.player-empty-actions {
  margin: 22px -5px 10px;
}

.player-empty-actions > * {
  margin: 5px;
}

.player-empty-actions .file-input {
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
  background: #181b21;
  text-align: left;
}

.player-empty-state .helper-text {
  margin-bottom: 0;
  color: #929aa7;
  font-size: 14px;
}

.player-noscript {
  position: fixed;
  top: 12px;
  right: 12px;
  left: 12px;
  z-index: 120;
}

.player-stage > .player-controls {
  top: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.player-stage > .player-controls .player-topbar,
.player-stage > .player-controls .player-bottom-panel {
  pointer-events: auto;
}

.player-stage > .player-controls .player-topbar {
  top: 0;
}

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

.player-heading h2 {
  overflow: hidden;
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 25px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-heading p {
  margin: 0;
  color: #c6c6c6;
  font-size: 15px;
}

.player-heading .player-brand {
  margin-bottom: 5px;
  color: #aab9f3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.player-topbar > .status-pill {
  margin-left: auto;
}

.player-bottom-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  padding: 88px 42px 30px;
  background: rgba(0, 0, 0, 0.84);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.95));
}

.player-actions-primary {
  margin-left: 0;
}

.player-actions-secondary {
  margin-left: auto;
}

.player-main-control {
  width: 66px;
  min-width: 66px;
  height: 66px;
  min-height: 66px;
  border-radius: 50%;
  background: #f1f3f6;
  color: #101216;
  line-height: 64px;
}

.player-main-control:hover,
.player-main-control:focus {
  background: #ffffff;
  color: #101216;
}

.volume-range {
  width: 150px;
  min-height: 30px;
  margin: 0 12px 0 3px;
  padding: 0;
  border: 0;
  background: transparent;
  vertical-align: middle;
}

.player-shortcuts {
  margin: 12px 0 0;
  color: #a5a5a5;
  font-size: 13px;
  text-align: right;
}

.player-controls.is-hidden,
.player-controls.controls-hidden,
.player-controls:not(.is-visible) {
  opacity: 0;
  pointer-events: none;
}

.player-controls.is-visible {
  opacity: 1;
}

/* Player polish: native fallback is the default; custom UI is opt-in. */
.player-stage {
  overflow: hidden;
  isolation: isolate;
}

.player-stage .player-video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  max-width: none;
}

.player-stage:not(.custom-ready) > .player-controls,
.player-stage:not(.custom-ready) > .player-empty-state {
  display: none !important;
}

.player-stage.custom-ready > .player-controls {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  background: transparent;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  -webkit-transition: opacity 180ms ease-out, visibility 180ms ease-out;
  transition: opacity 180ms ease-out, visibility 180ms ease-out;
}

body.player-page.controls-hidden .player-stage.custom-ready > .player-controls,
body.player-page.is-idle .player-stage.custom-ready > .player-controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-stage.custom-ready .player-video::-webkit-media-controls,
.player-stage.custom-ready .player-video::-webkit-media-controls-enclosure {
  display: none !important;
}

.player-stage.custom-ready .player-topbar,
.player-stage.custom-ready .player-bottom-panel {
  box-sizing: border-box;
  opacity: 1;
  pointer-events: auto;
}

.player-stage.custom-ready .player-topbar {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 13;
  min-height: 118px;
  padding: 28px 44px 42px;
  padding-top: calc(28px + env(safe-area-inset-top));
  padding-right: calc(44px + env(safe-area-inset-right));
  padding-left: calc(44px + env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.78);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.56) 58%, rgba(0, 0, 0, 0) 100%);
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.player-stage.custom-ready .player-exit {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  min-width: 0;
  min-height: 52px;
  margin: 0 18px 0 0;
  padding: 0 16px;
  border-color: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(13, 15, 19, 0.7);
  color: #f1f3f6;
  font-size: 16px;
  line-height: 1;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}

.player-exit-icon {
  display: block;
  width: 21px;
  height: 21px;
  margin-right: 9px;
  fill: currentColor;
  vertical-align: middle;
}

.player-stage.custom-ready .player-heading {
  min-width: 0;
  margin-right: 20px;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
}

.player-stage.custom-ready .player-heading h2 {
  overflow: hidden;
  margin: 0 0 3px;
  font-size: 25px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-stage.custom-ready .player-heading p {
  overflow: hidden;
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-stage.custom-ready .player-heading .player-brand {
  margin-bottom: 4px;
  color: #aab9f3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.player-stage.custom-ready .player-topbar > .status-pill {
  position: relative;
  z-index: 1;
  margin: 0 0 0 auto;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}

.player-stage.custom-ready .player-bottom-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 14;
  max-height: 48vh;
  padding: 64px 44px 26px;
  padding-right: calc(44px + env(safe-area-inset-right));
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
  padding-left: calc(44px + env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.88);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 34%, rgba(0, 0, 0, 0.97) 100%);
}

.player-stage.has-no-media .player-bottom-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-stage.custom-ready .player-control-row,
.player-stage.custom-ready .player-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.player-stage.custom-ready .player-control-row {
  width: 100%;
  min-height: 62px;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.player-stage.custom-ready .player-actions {
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}

.player-stage.custom-ready .player-actions-secondary {
  margin-left: auto;
}

.player-stage.custom-ready .player-controls .icon-btn {
  position: relative;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  margin: 0 8px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(24, 27, 33, 0.84);
  color: #f1f3f6;
  font-size: 22px;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.player-stage.custom-ready .player-actions > .icon-btn:last-child {
  margin-right: 0;
}

.player-stage.custom-ready .player-controls .icon-btn:hover,
.player-stage.custom-ready .player-controls .icon-btn:focus,
.player-stage.custom-ready .player-controls .icon-btn.is-focused {
  border-color: #aab9f3;
  background: rgba(113, 137, 216, 0.42);
  color: #ffffff;
}

.player-stage.custom-ready .player-controls .player-main-control {
  width: 62px;
  min-width: 62px;
  height: 62px;
  min-height: 62px;
  border-color: #f1f3f6;
  border-radius: 50%;
  background: #f1f3f6;
  color: #101216;
}

.player-stage.custom-ready .player-controls .player-main-control:hover,
.player-stage.custom-ready .player-controls .player-main-control:focus,
.player-stage.custom-ready .player-controls .player-main-control.is-focused {
  border-color: #ffffff;
  background: #ffffff;
  color: #101216;
}

.player-control-icon {
  display: block;
  width: 25px;
  height: 25px;
  margin: auto;
  fill: currentColor;
  line-height: 1;
  vertical-align: middle;
  pointer-events: none;
}

.player-main-control .player-control-icon {
  width: 28px;
  height: 28px;
}

.player-state-pause,
.player-state-compress,
.player-muted-mark {
  display: none;
}

.player-main-control.is-playing .player-state-play,
.player-fullscreen-control.is-fullscreen .player-state-expand {
  display: none;
}

.player-main-control.is-playing .player-state-pause,
.player-fullscreen-control.is-fullscreen .player-state-compress,
.player-mute-control.is-muted .player-muted-mark {
  display: block;
}

.player-skip-label {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  color: inherit;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

.player-text-icon {
  display: block;
  margin: auto;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.player-stage.custom-ready .player-time {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  min-width: 166px;
  height: 56px;
  margin: 0 18px 0 4px;
  color: #f1f3f6;
  font-family: Consolas, "Courier New", monospace;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.player-stage.custom-ready input[type="range"].player-timeline,
.player-stage.custom-ready input[type="range"].volume-range {
  display: block;
  box-sizing: border-box;
  height: 6px;
  min-height: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.player-stage.custom-ready input[type="range"].player-timeline {
  width: 100%;
  margin-bottom: 16px;
}

.player-stage.custom-ready input[type="range"].volume-range {
  width: 124px;
  margin: 0 14px 0 2px;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 124px;
  flex: 0 0 124px;
}

.player-stage.custom-ready .player-quality-select {
  width: 118px;
  min-width: 118px;
  height: 56px;
  min-height: 56px;
  margin: 0 8px 0 0;
  padding: 0 34px 0 14px;
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background-color: rgba(24, 27, 33, 0.84);
  color: #f1f3f6;
  font-size: 15px;
  font-weight: 800;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 118px;
  flex: 0 0 118px;
}

.player-stage.custom-ready .player-quality-select:hover,
.player-stage.custom-ready .player-quality-select:focus {
  border-color: #aab9f3;
  background-color: rgba(113, 137, 216, 0.32);
  color: #ffffff;
}

.player-stage.custom-ready .player-quality-select[disabled] {
  opacity: 0.58;
}

.player-stage.custom-ready input[type="range"].player-timeline:focus,
.player-stage.custom-ready input[type="range"].volume-range:focus {
  outline: 3px solid #aab9f3;
  outline-offset: 6px;
}

.player-stage.custom-ready input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.player-stage.custom-ready input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #7189d8;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  -webkit-appearance: none;
}

.player-stage.custom-ready input[type="range"]::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.player-stage.custom-ready input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #7189d8;
}

.player-stage.custom-ready input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #7189d8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.player-stage.custom-ready input[type="range"]::-ms-track {
  height: 6px;
  border-color: transparent;
  background: transparent;
  color: transparent;
}

.player-stage.custom-ready input[type="range"]::-ms-fill-lower {
  border-radius: 999px;
  background: #7189d8;
}

.player-stage.custom-ready input[type="range"]::-ms-fill-upper {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.player-stage.custom-ready input[type="range"]::-ms-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #7189d8;
}

.player-stage.custom-ready .player-shortcuts {
  margin: 10px 0 0;
  color: #aeb4be;
  font-size: 13px;
  line-height: 18px;
  text-align: right;
}

.player-stage.custom-ready > .player-empty-state {
  display: block;
  z-index: 8;
  box-sizing: border-box;
  max-height: calc(100% - 250px);
  padding: 30px;
  overflow-y: auto;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(9, 11, 14, 0.94);
  -webkit-box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.player-stage.custom-ready > .player-empty-state[hidden] {
  display: none !important;
}

.player-stage.custom-ready .player-empty-art {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  line-height: 1;
}

.player-stage.custom-ready .player-empty-art svg {
  display: block;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  fill: currentColor;
}

.player-stage.custom-ready .player-empty-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  margin: 20px -5px 8px;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.player-stage.is-fullscreen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}
