:root {
  --p6-bg-0: #0b1016;
  --p6-bg-1: #0f1720;
  --p6-surface: #111a24;
  --p6-surface-2: #162231;
  --p6-border: #263344;
  --p6-border-strong: #35516e;
  --p6-text: #e6edf3;
  --p6-text-soft: #9db0c2;
  --p6-accent: #6ea8dc;
  --p6-danger: #e17878;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 20% -10%, #132030 0%, transparent 60%),
    radial-gradient(1000px 600px at 90% 0%, #111926 0%, transparent 55%),
    linear-gradient(180deg, var(--p6-bg-1), var(--p6-bg-0));
  color: var(--p6-text);
  font-family: "Segoe UI", "Aptos", sans-serif;
}

body.p6-modal-open {
  overflow: hidden;
}

.p6-boot-progress {
  display: none !important;
  position: fixed;
  z-index: 12000;
  left: 50%;
  bottom: 5vh;
  width: min(760px, 88vw);
  transform: translateX(-50%);
  box-sizing: border-box;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(8, 8, 10, 0.94);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.65);
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
}

.p6-boot-progress.is-error {
  border-color: #ff5f64;
}

.p6-boot-progress.is-complete {
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.p6-boot-progress__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  font-size: 18px;
}

.p6-boot-progress__track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #303038;
}

.p6-boot-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e50914, #ff4b55);
  transition: width 180ms ease;
}

.p6-boot-progress.is-error .p6-boot-progress__bar {
  background: #ff5f64;
}

.p6-boot-progress__current {
  margin-top: 11px;
  font-size: 16px;
  color: #fff;
}

.p6-boot-progress__steps {
  max-height: 150px;
  margin-top: 8px;
  overflow: hidden;
  color: #aaa;
  font: 13px/1.5 Consolas, monospace;
}

.p6-boot-progress__step:last-child {
  color: #eee;
}

.p6-app {
  max-width: 1520px;
  margin: 0 auto;
  padding: clamp(14px, 2.2vw, 28px);
}

.p6-app[data-p6-shot="1"] {
  max-width: none;
  margin: 0 auto;
  padding: clamp(14px, 2.2vw, 28px);
}

.p6-app[data-p6-shot="1"] .p6-list {
  gap: 14px;
}

.p6-app[data-p6-shot="1"] .p6-categories {
  gap: 18px;
}

.p6-shot-section {
  border: 1px solid #2a3f54;
  border-radius: 14px;
  overflow: hidden;
  background: #0f1c28;
}

.p6-shot-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p6-list {
  display: grid;
  gap: 14px;
}

.p6-list__title {
  margin: 0;
  font-size: clamp(1.15rem, 1.2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.p6-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.p6-search-row {
  flex: 1 1 620px;
  min-width: min(100%, 320px);
  margin: 0;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.p6-display {
  flex: 0 0 auto;
  min-width: 230px;
  display: grid;
  gap: 5px;
}

.p6-display__label {
  font-size: 0.72rem;
  color: var(--p6-text-soft);
}

.p6-display__select {
  min-height: 42px;
  border: 1px solid var(--p6-border);
  border-radius: 10px;
  background: var(--p6-surface);
  color: var(--p6-text);
  padding: 0 10px;
  outline: none;
  cursor: pointer;
}

.p6-display__select:focus {
  border-color: var(--p6-accent);
  box-shadow: 0 0 0 3px rgba(110, 168, 220, 0.16);
}

.p6-search {
  flex: 1;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--p6-border);
  border-radius: 10px;
  background: var(--p6-surface);
  color: var(--p6-text);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.p6-search:focus {
  border-color: var(--p6-accent);
  box-shadow: 0 0 0 3px rgba(110, 168, 220, 0.16);
}

.p6-search-btn {
  width: 44px;
  min-width: 44px;
  min-height: 42px;
  border: 1px solid var(--p6-border);
  border-radius: 10px;
  background: var(--p6-surface);
  color: var(--p6-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 80ms ease;
}

.p6-search-btn:hover,
.p6-search-btn:focus-visible {
  border-color: var(--p6-accent);
  background: var(--p6-surface-2);
}

.p6-search:focus-visible,
.p6-search-btn:focus-visible,
.p6-nav__btn:focus-visible,
.p6-list__poster:focus-visible,
.p6-shot-card:focus-visible,
.p6-playlist__btn:focus-visible,
.p6-ctrl-btn:focus-visible,
.p6-seek:focus-visible,
.p6-volume:focus-visible,
.p6-modal__close:focus-visible {
  outline: 4px solid #ffd45a;
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(255, 212, 90, 0.22), 0 0 28px rgba(255, 212, 90, 0.4);
}

.p6-search-btn:active {
  transform: translateY(1px);
}

.p6-search-btn__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p6-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.p6-nav__btn {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--p6-border);
  border-radius: 10px;
  background: var(--p6-surface);
  color: var(--p6-text);
  cursor: pointer;
  font-size: 0.8rem;
  transition: border-color 120ms ease, background 120ms ease;
}

.p6-nav__btn:hover,
.p6-nav__btn:focus-visible {
  border-color: var(--p6-accent);
  background: var(--p6-surface-2);
}

.p6-nav__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.p6-nav__page {
  color: var(--p6-text-soft);
  font-size: 0.8rem;
  margin-left: 4px;
}

.p6-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p6-shot-stage {
  --p6-shot-bg: #39b7b1;
  position: relative;
  min-height: clamp(460px, 72vh, 780px);
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(86% 28% at 50% 100%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0) 38%),
    var(--p6-shot-bg);
  box-shadow: inset 0 -190px 180px rgba(0, 0, 0, 0.16);
  transition: background 620ms ease;
}

.p6-shot-track {
  position: absolute;
  inset: 0;
}

.p6-shot-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(58vw, 720px);
  height: min(67vh, 610px);
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0f1a24;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  transition: transform 680ms cubic-bezier(0.2, 0.78, 0.14, 1), opacity 380ms ease, filter 680ms ease;
  cursor: pointer;
  user-select: none;
}

.p6-shot-card[data-shot-pos="0"] {
  transform: translate(calc(-50% - 140px), -50%) scale(1);
  opacity: 1;
  filter: none;
  z-index: 30;
}

.p6-shot-card[data-shot-pos="1"] {
  transform: translate(calc(-50% + 388px), -50%) scale(1);
  width: min(21.5vw, 282px);
  opacity: 1;
  filter: saturate(0.97);
  z-index: 25;
}

.p6-shot-card[data-shot-pos="-1"] {
  transform: translate(calc(-50% - 690px), -50%) scale(1);
  width: min(21.5vw, 282px);
  opacity: 0.96;
  filter: saturate(0.94);
  z-index: 20;
}

.p6-shot-card[data-shot-pos="2"] {
  transform: translate(calc(-50% + 708px), -50%) scale(1);
  width: min(21.5vw, 282px);
  opacity: 0.94;
  filter: saturate(0.9);
  z-index: 15;
}

.p6-shot-card[data-shot-pos="-2"] {
  transform: translate(calc(-50% - 1012px), -50%) scale(1);
  width: min(21.5vw, 282px);
  opacity: 0.92;
  filter: saturate(0.9);
  z-index: 10;
}

.p6-shot-card[data-shot-pos="off"] {
  opacity: 0;
  filter: blur(2px);
  pointer-events: none;
}

.p6-shot-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p6-shot-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 16, 0.02) 29%, rgba(8, 12, 16, 0.42) 64%, rgba(8, 12, 16, 0.62) 100%);
}

.p6-shot-card__badge {
  position: absolute;
  top: 24px;
  left: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 5px;
  background: #f31717;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.p6-shot-card[data-shot-pos="1"] .p6-shot-card__badge,
.p6-shot-card[data-shot-pos="-2"] .p6-shot-card__badge {
  background: #ff9200;
}

.p6-shot-card__title {
  position: absolute;
  left: 30px;
  right: 26px;
  bottom: 164px;
  margin: 0;
  color: #fff;
  font-family: "Arial Narrow", "Segoe UI", "Aptos", sans-serif;
  font-size: clamp(2.05rem, 4.45vw, 4.1rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.p6-shot-card__time {
  position: absolute;
  left: 30px;
  right: 26px;
  bottom: 112px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.28vw, 1.3rem);
  font-weight: 500;
}

.p6-shot-card__read {
  position: absolute;
  left: 30px;
  bottom: 30px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(1.12rem, 1.26vw, 1.28rem);
  font-weight: 700;
  cursor: pointer;
}

.p6-shot-card__read-icon {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.p6-shot-card__read-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p6-shot-card[data-shot-pos="1"] .p6-shot-card__title,
.p6-shot-card[data-shot-pos="-1"] .p6-shot-card__title,
.p6-shot-card[data-shot-pos="2"] .p6-shot-card__title,
.p6-shot-card[data-shot-pos="-2"] .p6-shot-card__title {
  font-size: clamp(1.55rem, 2.7vw, 2.65rem);
  bottom: 166px;
}

.p6-shot-card[data-shot-pos="1"] .p6-shot-card__time,
.p6-shot-card[data-shot-pos="-1"] .p6-shot-card__time,
.p6-shot-card[data-shot-pos="2"] .p6-shot-card__time,
.p6-shot-card[data-shot-pos="-2"] .p6-shot-card__time {
  font-size: clamp(0.92rem, 1.1vw, 1.12rem);
}

.p6-shot-card[data-shot-pos="1"] .p6-shot-card__read,
.p6-shot-card[data-shot-pos="-1"] .p6-shot-card__read,
.p6-shot-card[data-shot-pos="2"] .p6-shot-card__read,
.p6-shot-card[data-shot-pos="-2"] .p6-shot-card__read {
  font-size: clamp(1rem, 1.08vw, 1.12rem);
}

.p6-shot-card[data-shot-pos="1"] .p6-shot-card__read-icon,
.p6-shot-card[data-shot-pos="-1"] .p6-shot-card__read-icon,
.p6-shot-card[data-shot-pos="2"] .p6-shot-card__read-icon,
.p6-shot-card[data-shot-pos="-2"] .p6-shot-card__read-icon {
  width: 24px;
  height: 24px;
}

.p6-shot-ring {
  position: absolute;
  top: 50%;
  left: calc(50% + min(230px, 20.5vw));
  width: 70px;
  height: 70px;
  border-radius: 999px;
  border: 7px solid rgba(255, 255, 255, 0.93);
  background: transparent;
  transform: translate(-50%, -50%);
  z-index: 40;
  pointer-events: none;
}

.p6-shot-ring.is-moving {
  animation: p6-shot-ring-morph 680ms ease;
}

@keyframes p6-shot-ring-morph {
  0% { width: 70px; border-radius: 999px; }
  44% { width: 116px; border-radius: 999px; }
  100% { width: 70px; border-radius: 999px; }
}

.p6-category {
  min-width: 0;
  border: 1px solid #30445a;
  border-left: 5px solid #4f7aa1;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #101a25, #0d1620);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 6px 18px rgba(0, 0, 0, 0.22);
  padding: 12px 12px 14px;
}

.p6-category__title {
  margin: 0 0 12px;
  padding: 0 2px 8px;
  border-bottom: 1px dashed #3a5068;
  font-size: 1rem;
  font-weight: 700;
  color: #dce8f3;
}

.p6-category__state {
  margin: -2px 0 10px;
  font-size: 0.74rem;
  color: #95abc0;
}

.p6-category__state.is-error {
  color: var(--p6-danger);
}

.p6-category-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: -2px 0 18px;
  padding: 0 2px;
}

.p6-category-bubble {
  min-height: 36px;
  border: 1px solid rgba(139, 164, 190, 0.36);
  border-radius: 999px;
  background: rgba(17, 28, 40, 0.86);
  color: #dce8f3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 8px 14px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.p6-category-bubble:hover,
.p6-category-bubble:focus-visible {
  border-color: rgba(137, 197, 255, 0.72);
  background: rgba(35, 62, 86, 0.95);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.p6-category-bubble--personal {
  border-color: rgba(229, 9, 20, 0.42);
  background: rgba(64, 16, 24, 0.88);
}

.p6-category-bubble--personal:hover,
.p6-category-bubble--personal:focus-visible {
  border-color: rgba(255, 255, 255, 0.82);
  background: #e50914;
}

.p6-subcat + .p6-subcat {
  margin-top: 14px;
}

.p6-subcat__title {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #b9cad9;
  letter-spacing: 0.01em;
}

.p6-empty {
  padding: 10px 12px;
  border: 1px dashed var(--p6-border);
  border-radius: 8px;
  color: var(--p6-text-soft);
  background: #101821;
}

.p6-list__grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 12px;
}

.p6-list__item {
  min-width: 0;
  border: 1px solid #213144;
  border-radius: 10px;
  background: #101922;
  padding: 8px;
  transition: border-color 120ms ease, transform 120ms ease;
}

.p6-list__item:hover {
  border-color: var(--p6-border-strong);
  transform: translateY(-1px);
}

.p6-list__poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: #121a22;
  border-radius: 8px;
  cursor: pointer;
}

.p6-list__poster:focus-visible {
  transform: scale(1.025);
}

.p6-list__poster--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.73rem;
  color: var(--p6-text-soft);
  letter-spacing: 0.02em;
  border: 1px dashed #2c3c4e;
}

.p6-list__meta {
  margin-top: 7px;
}

.p6-list__name {
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.34;
  color: var(--p6-text);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.p6-list__stats {
  margin-top: 5px;
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--p6-text-soft);
}

.p6-app[data-p6-display-mode="ethereal"] .p6-list__grid {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}

.p6-app[data-p6-display-mode="ethereal"] .p6-list__item {
  border-color: #2a3e54;
  background: linear-gradient(180deg, #101b26, #0f1721);
}

.p6-app[data-p6-display-mode="testimonials"] .p6-list__grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.p6-app[data-p6-display-mode="testimonials"] .p6-list__item {
  display: grid;
  grid-template-columns: minmax(88px, 126px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-color: #36516b;
  background: linear-gradient(120deg, #121f2c 0%, #0f1a25 100%);
}

.p6-app[data-p6-display-mode="testimonials"] .p6-list__meta {
  margin-top: 0;
}

.p6-app[data-p6-display-mode="testimonials"] .p6-list__poster {
  aspect-ratio: 1 / 1;
}

.p6-app[data-p6-display-mode="experimental"] .p6-list__grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  perspective: 900px;
}

.p6-app[data-p6-display-mode="experimental"] .p6-list__item {
  transform: rotate(-1deg);
  transform-origin: center bottom;
  border-radius: 14px;
}

.p6-app[data-p6-display-mode="experimental"] .p6-list__item:nth-child(2n) {
  transform: rotate(1deg) translateY(-2px);
}

.p6-app[data-p6-display-mode="experimental"] .p6-list__item:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.02);
}

.p6-app[data-p6-display-mode="endless"] .p6-list__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 210px);
  grid-template-columns: none;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}

.p6-app[data-p6-display-mode="endless"] .p6-list__item {
  scroll-snap-align: start;
}

.p6-app[data-p6-display-mode="membership"] .p6-list__grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.p6-app[data-p6-display-mode="membership"] .p6-list__item {
  border-radius: 16px;
  border-color: #3a4f67;
  background:
    radial-gradient(120% 120% at 100% -10%, rgba(110, 168, 220, 0.2), transparent 55%),
    linear-gradient(140deg, #152436, #101a25);
}

.p6-app[data-p6-display-mode="membership"] .p6-list__poster {
  aspect-ratio: 1.55 / 1;
}

.p6-app[data-p6-display-mode="curved"] .p6-list__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(162px, 188px);
  grid-template-columns: none;
  gap: 11px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 9px 2px 9px;
  scrollbar-width: thin;
}

.p6-app[data-p6-display-mode="curved"] .p6-list__item {
  transform: translateY(0);
}

.p6-app[data-p6-display-mode="curved"] .p6-list__item:nth-child(4n+1) { transform: translateY(11px); }
.p6-app[data-p6-display-mode="curved"] .p6-list__item:nth-child(4n+2) { transform: translateY(3px); }
.p6-app[data-p6-display-mode="curved"] .p6-list__item:nth-child(4n+3) { transform: translateY(-3px); }
.p6-app[data-p6-display-mode="curved"] .p6-list__item:nth-child(4n+4) { transform: translateY(-10px); }

.p6-app[data-p6-display-mode="glide"] .p6-list__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 180px);
  grid-template-columns: none;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.p6-app[data-p6-display-mode="glide"] .p6-list__item {
  scroll-snap-align: center;
}

.p6-app[data-p6-display-mode="automation"] .p6-list__grid {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

.p6-app[data-p6-display-mode="automation"] .p6-list__item:nth-child(1) {
  grid-column: span 2;
}

.p6-app[data-p6-display-mode="automation"] .p6-list__item:nth-child(1) .p6-list__poster {
  aspect-ratio: 16 / 9;
}

.p6-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.p6-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(4px);
}

.p6-modal__dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(1580px, calc(100vw - 30px));
  min-width: 0;
  height: min(920px, calc(100vh - 24px));
  min-height: min(620px, calc(100vh - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  border: 1px solid #2b3c50;
  border-radius: 14px;
  background: linear-gradient(180deg, #0f1720, #0b1219);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.p6-modal__head {
  height: 52px;
  min-height: 52px;
  box-sizing: border-box;
  padding: 10px 14px;
  border-bottom: 1px solid #213345;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.p6-modal__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #dbe6f1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p6-modal__close {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #31475f;
  border-radius: 9px;
  background: #111a24;
  color: var(--p6-text);
  cursor: pointer;
}

.p6-modal__close:hover,
.p6-modal__close:focus-visible {
  border-color: var(--p6-accent);
}

.p6-modal__body {
  --p6-playlist-w: 300px;
  --p6-synopsis-w: 300px;
  --p6-controls-h: 62px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-areas: "playlist viewer synopsis";
  grid-template-columns: var(--p6-playlist-w) minmax(0, 1fr) var(--p6-synopsis-w);
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  box-sizing: border-box;
}

.p6-modal__body *,
.p6-modal__body *::before,
.p6-modal__body *::after {
  box-sizing: border-box;
}

.p6-modal__playlist-panel,
.p6-modal__synopsis-panel {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #26374a;
  border-radius: 12px;
  background: #101923;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.p6-modal__playlist-panel {
  grid-area: playlist;
}

.p6-modal__synopsis-panel {
  grid-area: synopsis;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
}

.p6-panel__head {
  padding: 10px 11px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #d6e2ef;
  border-bottom: 1px solid #243547;
}

.p6-player-status {
  min-height: 28px;
  padding: 8px 11px;
  font-size: 0.74rem;
  line-height: 1.3;
  color: var(--p6-text-soft);
  border-bottom: 1px solid #1e2c3a;
}

.p6-player-status.is-error {
  color: var(--p6-danger);
}

.p6-playlist {
  margin: 0;
  padding: 8px;
  list-style: none;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.p6-playlist__item {
  border: 1px solid #243547;
  border-radius: 10px;
  background: #0e1721;
}

.p6-playlist__item.is-active {
  border-color: var(--p6-accent);
  background: #132235;
}

.p6-playlist__item.is-disabled {
  opacity: 0.68;
}

.p6-playlist__btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--p6-text);
  padding: 8px;
  text-align: left;
  display: grid;
  gap: 3px;
  cursor: pointer;
}

.p6-playlist__btn:disabled {
  cursor: default;
}

.p6-playlist__btn:focus-visible {
  background: #172842;
}

.p6-playlist__name {
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p6-playlist__meta {
  font-size: 0.68rem;
  color: var(--p6-text-soft);
}

.p6-modal__viewer {
  grid-area: viewer;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--p6-controls-h);
  gap: 10px;
  overflow: hidden;
}

.p6-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 1px solid #2b3d52;
  border-radius: 12px;
  background: #0a1118;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p6-stage__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #060b10;
}

.p6-stage__poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #0a1118;
}

.p6-stage__loading {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border: 1px solid #35516e;
  border-radius: 999px;
  background: rgba(9, 16, 24, 0.92);
  color: #d7e3ef;
  font-size: 0.74rem;
}

.p6-controls {
  width: 100%;
  height: var(--p6-controls-h);
  min-height: var(--p6-controls-h);
  box-sizing: border-box;
  border: 1px solid #2a3c51;
  border-radius: 12px;
  background: #101a24;
  padding: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 52px 48px minmax(0, 1fr) 48px 56px 84px 52px;
  gap: 8px;
  align-items: center;
}

.p6-controls > * {
  min-width: 0;
}

.p6-ctrl-btn {
  min-height: 30px;
  border: 1px solid #314860;
  border-radius: 8px;
  background: #152234;
  color: var(--p6-text);
  padding: 0 10px;
  font-size: 0.73rem;
  cursor: pointer;
}

.p6-ctrl-btn:hover,
.p6-ctrl-btn:focus-visible {
  border-color: var(--p6-accent);
}

.p6-time {
  font-size: 0.72rem;
  color: var(--p6-text-soft);
  min-width: 0;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}

.p6-seek,
.p6-volume {
  width: 100%;
  accent-color: var(--p6-accent);
}

.p6-synopsis__poster {
  display: block;
  width: calc(100% - 18px);
  height: 220px;
  min-width: 0;
  min-height: 0;
  max-width: calc(100% - 18px);
  max-height: 220px;
  margin: 9px;
  border-radius: 10px;
  border: 1px solid #2b3f55;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: #0f1822;
}

.p6-synopsis__text {
  min-height: 0;
  margin: 0;
  padding: 0 10px 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #c2d2e2;
  white-space: pre-wrap;
  overflow: auto;
}

.p6-modal__viewer:fullscreen,
.p6-modal__viewer:-webkit-full-screen {
  box-sizing: border-box;
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 0;
  background: #060b10;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.p6-modal__viewer:fullscreen .p6-stage,
.p6-modal__viewer:-webkit-full-screen .p6-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  border: 0;
}

.p6-modal__viewer:fullscreen .p6-controls,
.p6-modal__viewer:-webkit-full-screen .p6-controls {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 18px;
  z-index: 3;
  width: min(980px, calc(100vw - 36px));
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  background: rgba(12, 19, 28, 0.92);
  border-color: rgba(111, 154, 196, 0.72);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.p6-modal__viewer:fullscreen.is-fs-controls-visible .p6-controls,
.p6-modal__viewer:-webkit-full-screen.is-fs-controls-visible .p6-controls {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .p6-modal__body {
    --p6-playlist-w: 240px;
    --p6-synopsis-w: 260px;
    grid-template-areas:
      "playlist viewer"
      "synopsis synopsis";
    grid-template-columns: var(--p6-playlist-w) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 240px;
  }

  .p6-modal__viewer {
    grid-template-rows: minmax(0, 1fr) 62px;
  }

  .p6-stage {
    min-height: 0;
  }

  .p6-modal__synopsis-panel {
    height: 240px;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .p6-modal__synopsis-panel .p6-panel__head {
    grid-column: 1 / -1;
  }

  .p6-synopsis__poster {
    width: calc(100% - 12px);
    height: 190px;
    margin: 6px;
    max-height: 190px;
  }

  .p6-synopsis__text {
    padding-top: 8px;
  }
}

@media (max-width: 900px) {
  .p6-shot-stage {
    min-height: min(70vh, 660px);
  }

  .p6-shot-card {
    width: min(74vw, 620px);
    height: min(62vh, 540px);
  }

  .p6-shot-card[data-shot-pos="0"] { transform: translate(calc(-50% - 56px), -50%); }
  .p6-shot-card[data-shot-pos="1"] {
    transform: translate(calc(-50% + 270px), -50%);
    width: min(28vw, 226px);
  }
  .p6-shot-card[data-shot-pos="-1"] {
    transform: translate(calc(-50% - 378px), -50%);
    width: min(28vw, 226px);
  }
  .p6-shot-card[data-shot-pos="2"],
  .p6-shot-card[data-shot-pos="-2"] {
    opacity: 0;
    pointer-events: none;
  }

  .p6-shot-card__title {
    bottom: 132px;
    font-size: clamp(1.35rem, 4.2vw, 2.5rem);
  }

  .p6-shot-card__time {
    bottom: 94px;
    font-size: 1rem;
  }

  .p6-shot-card__read {
    bottom: 24px;
    font-size: 1rem;
  }

  .p6-shot-card__read-icon {
    width: 24px;
    height: 24px;
  }

  .p6-shot-ring {
    left: calc(50% + min(156px, 22vw));
    width: 56px;
    height: 56px;
    border-width: 5px;
  }

  .p6-modal__dialog {
    width: calc(100vw - 14px);
    min-width: calc(100vw - 14px);
    height: calc(100vh - 14px);
    min-height: calc(100vh - 14px);
    margin: 7px;
  }

  .p6-modal__body {
    --p6-controls-h: 86px;
    grid-template-areas:
      "playlist"
      "viewer"
      "synopsis";
    grid-template-columns: 1fr;
    grid-template-rows: 116px minmax(0, 1fr) 138px;
  }

  .p6-modal__synopsis-panel {
    height: 138px;
  }

  .p6-synopsis__poster {
    height: 96px;
    max-height: 96px;
  }

  .p6-modal__viewer {
    grid-template-rows: minmax(0, 1fr) 86px;
  }

  .p6-stage {
    min-height: 0;
  }

  .p6-controls {
    grid-template-columns: 44px auto minmax(80px, 1fr) auto 44px;
    grid-template-areas:
      "play current seek seek duration"
      "mute volume quality tracks full";
  }

  .p6-controls [data-p6-play-toggle] { grid-area: play; }
  .p6-controls [data-p6-current-time] { grid-area: current; }
  .p6-controls [data-p6-seek] { grid-area: seek; }
  .p6-controls [data-p6-duration] { grid-area: duration; }
  .p6-controls [data-p6-mute-toggle] { grid-area: mute; }
  .p6-controls [data-p6-volume] { grid-area: volume; }
  .p6-controls [data-p6-quality-control] { grid-area: quality; }
  .p6-controls [data-p6-track-control] { grid-area: tracks; }
  .p6-controls [data-p6-fullscreen] { grid-area: full; }

  .p6-quality-control {
    justify-content: flex-start;
  }

  .p6-quality-select {
    width: min(130px, 100%);
  }

  .p6-quality-strict span {
    display: none;
  }
}

@media (max-width: 740px) {
  .p6-app {
    padding: 12px;
  }

  .p6-app[data-p6-shot="1"] {
    padding: 12px;
  }

  .p6-shot-stage {
    min-height: min(62vh, 520px);
  }

  .p6-shot-card {
    width: min(88vw, 620px);
    height: min(58vh, 480px);
  }

  .p6-shot-card[data-shot-pos="1"],
  .p6-shot-card[data-shot-pos="-1"] {
    opacity: 0;
    pointer-events: none;
  }

  .p6-shot-ring {
    display: none;
  }

  .p6-toolbar {
    align-items: stretch;
  }

  .p6-search-row {
    flex-basis: 100%;
  }

  .p6-nav {
    flex-basis: 100%;
  }

  .p6-display {
    min-width: 0;
    flex: 1 1 100%;
  }

  .p6-category {
    padding: 10px;
  }

  .p6-list__grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
  }

  .p6-app[data-p6-display-mode="testimonials"] .p6-list__item {
    grid-template-columns: minmax(74px, 94px) minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }
}

/* Netflix-grade visual layer */
:root {
  --p6-bg-0: #050505;
  --p6-bg-1: #101010;
  --p6-surface: rgba(24, 24, 24, 0.92);
  --p6-surface-2: rgba(42, 42, 42, 0.96);
  --p6-border: rgba(255, 255, 255, 0.09);
  --p6-border-strong: rgba(255, 255, 255, 0.22);
  --p6-text: #f5f5f1;
  --p6-text-soft: #b7b7b7;
  --p6-accent: #e50914;
  --p6-accent-2: #b20710;
  --p6-danger: #ff5f64;
}

.p6-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(145, 0, 8, 0.36), transparent 34%),
    linear-gradient(180deg, #050505, #000);
  animation: p6-intro-out 4300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.p6-intro:not(.is-running),
.p6-intro:not(.is-running)::before,
.p6-intro:not(.is-running)::after,
.p6-intro:not(.is-running) .p6-intro__flare,
.p6-intro:not(.is-running) .p6-intro__word,
.p6-intro:not(.is-running) .p6-intro__mark,
.p6-intro:not(.is-running) + .p6-app {
  animation-play-state: paused;
}

.p6-intro:not(.is-running) + .p6-app {
  opacity: 0;
}

.p6-intro.is-waiting {
  cursor: pointer;
  pointer-events: auto;
}

.p6-intro::before,
.p6-intro::after {
  content: "";
  position: absolute;
  inset: -18%;
  opacity: 0;
  pointer-events: none;
}

.p6-intro::before {
  background:
    linear-gradient(90deg, transparent 0%, rgba(229, 9, 20, 0.18) 47%, rgba(255, 255, 255, 0.9) 50%, rgba(229, 9, 20, 0.18) 53%, transparent 100%);
  transform: translateX(-80%) skewX(-12deg);
  animation: p6-intro-scan 2300ms cubic-bezier(0.2, 0.78, 0.14, 1) 520ms both;
}

.p6-intro::after {
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.82) 72%, #000 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 7px);
  animation: p6-intro-vignette 4300ms ease both;
}

.p6-intro__flare {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(82vw, 1100px);
  height: min(34vh, 320px);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.75) 0%, rgba(229, 9, 20, 0.52) 18%, rgba(229, 9, 20, 0.16) 48%, transparent 72%);
  filter: blur(24px);
  transform: translate(-50%, -50%) scaleX(0.2);
  opacity: 0;
  animation: p6-intro-flare 3200ms cubic-bezier(0.16, 1, 0.3, 1) 460ms both;
}

.p6-intro__brand {
  position: relative;
  z-index: 2;
  width: min(92vw, 1120px);
  height: clamp(110px, 19vw, 230px);
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.p6-intro.is-waiting .p6-intro__brand::after {
  content: "Cliquez ou appuyez pour lancer";
  position: absolute;
  left: 50%;
  top: calc(50% + clamp(76px, 12vw, 150px));
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(0.78rem, 1.2vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.p6-intro__word {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #e50914;
  font-size: clamp(3rem, 11vw, 9.8rem);
  font-weight: 1000;
  letter-spacing: -0.09em;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow:
    0 0 16px rgba(229, 9, 20, 0.72),
    0 0 60px rgba(229, 9, 20, 0.42),
    0 24px 70px rgba(0, 0, 0, 0.94);
  transform: translate(-50%, -50%) scale(0.74);
  opacity: 0;
  animation: p6-intro-word 4300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.p6-intro__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(74px, 11vw, 132px);
  height: clamp(74px, 11vw, 132px);
  border-radius: clamp(14px, 2vw, 24px);
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, #ff121f 0%, #e50914 44%, #850006 100%);
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 1000;
  letter-spacing: -0.12em;
  box-shadow:
    0 0 32px rgba(229, 9, 20, 0.76),
    0 0 120px rgba(229, 9, 20, 0.45),
    0 28px 80px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(0.2) rotateY(72deg);
  opacity: 0;
  animation: p6-intro-mark 4300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.p6-intro.is-waiting .p6-intro__mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotateY(0);
  filter: none;
}

html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  background:
    radial-gradient(900px 520px at 14% -8%, rgba(229, 9, 20, 0.24), transparent 64%),
    radial-gradient(900px 520px at 92% 4%, rgba(86, 12, 16, 0.38), transparent 60%),
    linear-gradient(180deg, #111 0%, #070707 28%, #000 100%);
  color: var(--p6-text);
  font-family: "Montserrat", "Aptos Display", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.48) 44%, rgba(0, 0, 0, 0.88) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px);
}

.p6-app {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  padding: 0 0 52px;
  overflow-x: clip;
  animation: p6-app-after-intro 900ms cubic-bezier(0.16, 1, 0.3, 1) 3600ms both;
}

@supports not (overflow: clip) {
  html,
  body,
  .p6-app,
  .p6-list,
  .p6-categories {
    overflow-x: hidden;
  }
}

.p6-list {
  width: 100%;
  max-width: 100vw;
  gap: 26px;
  overflow-x: clip;
}

.p6-list::before {
  content: "";
  display: block;
  min-height: clamp(180px, 28vh, 340px);
  margin-bottom: -126px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.26) 52%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(680px 300px at 26% 38%, rgba(229, 9, 20, 0.32), transparent 68%),
    linear-gradient(135deg, #151515 0%, #080808 48%, #1a0507 100%);
  box-shadow: inset 0 -110px 78px #000;
}

.p6-list__title {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0;
  padding: 22px clamp(18px, 4vw, 64px) 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.64) 68%, transparent);
  color: #fff;
  font-size: clamp(1.45rem, 3.4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  animation: p6-netflix-title-in 920ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.p6-list__title::before {
  content: "S";
  display: inline-flex;
  width: 36px;
  height: 36px;
  margin-right: 12px;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f40612, #a1060d);
  box-shadow: 0 10px 26px rgba(229, 9, 20, 0.36);
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: -0.08em;
  vertical-align: 8%;
  animation: p6-netflix-logo-pulse 1280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.p6-toolbar {
  position: sticky;
  top: 76px;
  z-index: 18;
  margin: 0 clamp(18px, 4vw, 64px);
  max-width: calc(100vw - (clamp(18px, 4vw, 64px) * 2));
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.68);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  animation: p6-netflix-panel-in 760ms cubic-bezier(0.16, 1, 0.3, 1) 260ms both;
}

.p6-search-row {
  min-width: min(100%, 360px);
}

.p6-search,
.p6-display__select {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0 18px;
  font-weight: 700;
}

.p6-search::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.p6-search:focus,
.p6-display__select:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(0, 0, 0, 0.84);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.32);
}

.p6-search-btn,
.p6-nav__btn,
.p6-modal__close,
.p6-ctrl-btn {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.p6-search-btn {
  width: 50px;
  min-width: 50px;
  min-height: 48px;
  background: linear-gradient(180deg, #f40612, #b20710);
  color: #fff;
}

.p6-search-btn:hover,
.p6-search-btn:focus-visible,
.p6-nav__btn:hover,
.p6-nav__btn:focus-visible,
.p6-ctrl-btn:hover,
.p6-ctrl-btn:focus-visible {
  background: linear-gradient(180deg, #f40612, #b20710);
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}

.p6-nav__btn:disabled {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.48);
}

.p6-nav__page {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.p6-categories {
  position: relative;
  width: 100%;
  max-width: 100vw;
  gap: 30px;
  padding: 4px 0 0;
  overflow-x: clip;
  perspective: 1400px;
}

.p6-category {
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  box-sizing: border-box;
  border: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 clamp(18px, 4vw, 64px);
  overflow: hidden;
  contain: layout paint;
  animation: p6-netflix-rail-in 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.p6-category:nth-child(1) { animation-delay: 360ms; }
.p6-category:nth-child(2) { animation-delay: 430ms; }
.p6-category:nth-child(3) { animation-delay: 500ms; }
.p6-category:nth-child(4) { animation-delay: 570ms; }
.p6-category:nth-child(5) { animation-delay: 640ms; }
.p6-category:nth-child(n+6) { animation-delay: 700ms; }

.p6-category--swap-next {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  animation: none;
}

.p6-category--swap-ready {
  opacity: 1;
}

.p6-category--swap-out {
  z-index: 2;
  pointer-events: none;
}

.p6-category--swap-in {
  animation: none;
}

.p6-category--swap-settled {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none !important;
}

.p6-category--swap-settled .p6-list__item {
  animation: none !important;
  opacity: 1;
  transform: none;
  filter: none;
}

.p6-category--swap-next .p6-category__title,
.p6-category--swap-next .p6-category__state {
  opacity: 0;
  transition: opacity 260ms ease;
}

.p6-category--swap-ready .p6-category__title,
.p6-category--swap-ready .p6-category__state {
  opacity: 1;
}

.p6-category--swap-next .p6-list__grid,
.p6-category--swap-out .p6-list__grid {
  perspective: 1200px;
}

.p6-category--swap-next .p6-list__item,
.p6-category--swap-out .p6-list__item {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: none;
  animation: none !important;
  will-change: transform, opacity, filter;
}

.p6-category--swap-next .p6-list__item {
  opacity: 0;
  transform: rotateY(-180deg) scale(0.98);
}

.p6-category--swap-ready .p6-list__item {
  animation: p6-card-flip-in 980ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.p6-category--swap-out .p6-list__item {
  animation: p6-card-flip-out 980ms cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.p6-category--swap-ready .p6-list__item:nth-child(1),
.p6-category--swap-out .p6-list__item:nth-child(1) { transition-delay: 0ms; }
.p6-category--swap-ready .p6-list__item:nth-child(2),
.p6-category--swap-out .p6-list__item:nth-child(2) { transition-delay: 35ms; }
.p6-category--swap-ready .p6-list__item:nth-child(3),
.p6-category--swap-out .p6-list__item:nth-child(3) { transition-delay: 70ms; }
.p6-category--swap-ready .p6-list__item:nth-child(4),
.p6-category--swap-out .p6-list__item:nth-child(4) { transition-delay: 105ms; }
.p6-category--swap-ready .p6-list__item:nth-child(5),
.p6-category--swap-out .p6-list__item:nth-child(5) { transition-delay: 140ms; }
.p6-category--swap-ready .p6-list__item:nth-child(6),
.p6-category--swap-out .p6-list__item:nth-child(6) { transition-delay: 175ms; }
.p6-category--swap-ready .p6-list__item:nth-child(n+7),
.p6-category--swap-out .p6-list__item:nth-child(n+7) { transition-delay: 210ms; }

.p6-category--swap-ready .p6-list__item:nth-child(1),
.p6-category--swap-out .p6-list__item:nth-child(1) { animation-delay: 0ms !important; }
.p6-category--swap-ready .p6-list__item:nth-child(2),
.p6-category--swap-out .p6-list__item:nth-child(2) { animation-delay: 55ms !important; }
.p6-category--swap-ready .p6-list__item:nth-child(3),
.p6-category--swap-out .p6-list__item:nth-child(3) { animation-delay: 110ms !important; }
.p6-category--swap-ready .p6-list__item:nth-child(4),
.p6-category--swap-out .p6-list__item:nth-child(4) { animation-delay: 165ms !important; }
.p6-category--swap-ready .p6-list__item:nth-child(5),
.p6-category--swap-out .p6-list__item:nth-child(5) { animation-delay: 220ms !important; }
.p6-category--swap-ready .p6-list__item:nth-child(6),
.p6-category--swap-out .p6-list__item:nth-child(6) { animation-delay: 275ms !important; }
.p6-category--swap-ready .p6-list__item:nth-child(n+7),
.p6-category--swap-out .p6-list__item:nth-child(n+7) { animation-delay: 330ms !important; }

@keyframes p6-card-flip-out {
  0% {
    opacity: 1;
    filter: brightness(1);
    transform: rotateY(0deg) scale(1);
  }
  44% {
    opacity: 1;
    filter: brightness(0.86);
    transform: rotateY(82deg) scale(0.99);
  }
  55% {
    opacity: 0;
    filter: brightness(0.62);
    transform: rotateY(104deg) scale(0.985);
  }
  100% {
    opacity: 0;
    filter: brightness(0.5);
    transform: rotateY(180deg) scale(0.97);
  }
}

@keyframes p6-card-flip-in {
  0% {
    opacity: 0;
    filter: brightness(0.6);
    transform: rotateY(-180deg) scale(0.97);
  }
  44% {
    opacity: 0;
    filter: brightness(0.7);
    transform: rotateY(-104deg) scale(0.985);
  }
  55% {
    opacity: 1;
    filter: brightness(0.92);
    transform: rotateY(-82deg) scale(0.99);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
    transform: rotateY(0deg) scale(1);
  }
}

.p6-category__title {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: clamp(1.05rem, 1.55vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.p6-category__state {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.54);
  font-weight: 700;
}

.p6-list__grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, 13.4vw, 245px);
  grid-template-columns: none;
  gap: clamp(10px, 1.1vw, 18px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 0 34px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 9, 20, 0.7) rgba(255, 255, 255, 0.08);
}

.p6-list__grid.is-touch-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.p6-list__grid.is-touch-active,
.p6-list__grid.is-touch-dragging {
  scroll-behavior: auto;
}

.p6-list__grid.is-touch-active .p6-list__item,
.p6-list__grid.is-touch-dragging .p6-list__item,
.p6-list__grid.is-touch-active .p6-list__poster,
.p6-list__grid.is-touch-dragging .p6-list__poster,
.p6-list__grid.is-touch-active .p6-list__meta,
.p6-list__grid.is-touch-dragging .p6-list__meta {
  transition: none;
}

.p6-list__grid.is-touch-dragging .p6-list__item:hover,
.p6-list__grid.is-touch-dragging .p6-list__item:focus-within {
  transform: none;
  filter: none;
}

.p6-list__grid::-webkit-scrollbar {
  height: 8px;
}

.p6-list__grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.p6-list__grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #e50914;
}

.p6-list__item {
  position: relative;
  min-width: 0;
  border: 0;
  border-radius: 14px;
  background: #151515;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
  scroll-snap-align: start;
  transition: transform 170ms ease, filter 170ms ease, z-index 0ms linear;
  animation: p6-netflix-card-in 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.p6-list__item:hover,
.p6-list__item:focus-within {
  z-index: 7;
  transform: scale(1.06) translateY(-6px);
  filter: saturate(1.12);
}

.p6-list__poster {
  border-radius: 14px;
  background: linear-gradient(135deg, #222, #090909);
  box-shadow: inset 0 -80px 80px rgba(0, 0, 0, 0.58);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: rgba(229, 9, 20, 0.24);
  transition: transform 170ms ease, box-shadow 170ms ease, filter 170ms ease;
}

.p6-list__item:hover .p6-list__poster,
.p6-list__poster:focus-visible {
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.72), 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.p6-list__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 52px 10px 10px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86) 48%, rgba(0, 0, 0, 0.96));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 150ms ease, transform 150ms ease;
  pointer-events: none;
}

.p6-list__item:hover .p6-list__meta,
.p6-list__item:focus-within .p6-list__meta {
  opacity: 1;
  transform: translateY(0);
}

.p6-list__name {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
}

.p6-list__stats {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 700;
}

.p6-empty {
  margin: 0 clamp(18px, 4vw, 64px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.68);
}

.p6-modal__backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px) saturate(1.25);
}

.p6-modal__dialog {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(25, 25, 25, 0.98), rgba(7, 7, 7, 0.98)),
    #080808;
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.82), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.p6-modal__head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(229, 9, 20, 0.18), transparent 38%),
    rgba(0, 0, 0, 0.44);
}

.p6-modal__title {
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.p6-modal__close {
  min-height: 34px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.p6-modal__close:hover,
.p6-modal__close:focus-visible {
  background: #e50914;
}

.p6-modal__playlist-panel,
.p6-modal__synopsis-panel,
.p6-stage,
.p6-controls {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(14, 14, 14, 0.92);
}

.p6-stage {
  border-radius: 18px;
  background:
    radial-gradient(480px 260px at 50% 24%, rgba(229, 9, 20, 0.12), transparent 72%),
    #020202;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.p6-stage__video,
.p6-stage__poster {
  background: #020202;
}

.p6-panel__head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.p6-player-status {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.62);
}

.p6-player-status.is-error {
  color: #ff8a8f;
}

.p6-playlist {
  gap: 10px;
}

.p6-playlist__item {
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.p6-playlist__item.is-active {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.34), rgba(255, 255, 255, 0.09));
  box-shadow: inset 4px 0 0 #e50914;
}

.p6-playlist__btn {
  color: #fff;
  padding: 12px;
}

.p6-playlist__meta {
  color: rgba(255, 255, 255, 0.62);
}

.p6-controls {
  border-radius: 18px;
  background: rgba(11, 11, 11, 0.94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48);
  touch-action: manipulation;
}

.p6-controls.is-touch-visible {
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.65), 0 18px 48px rgba(0, 0, 0, 0.58);
}

.p6-ctrl-btn,
.p6-search-btn,
.p6-nav__btn,
.p6-modal__close,
.p6-playlist__btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(229, 9, 20, 0.28);
}

.p6-ctrl-btn {
  min-height: 34px;
  background: rgba(255, 255, 255, 0.92);
}

.p6-time {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.p6-seek,
.p6-volume {
  accent-color: #e50914;
}

.p6-synopsis__poster {
  border: 0;
  border-radius: 16px;
  background: #111;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
}

.p6-synopsis__text {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
}

.p6-search:focus-visible,
.p6-search-btn:focus-visible,
.p6-nav__btn:focus-visible,
.p6-list__poster:focus-visible,
.p6-shot-card:focus-visible,
.p6-playlist__btn:focus-visible,
.p6-ctrl-btn:focus-visible,
.p6-seek:focus-visible,
.p6-volume:focus-visible,
.p6-modal__close:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 5px;
  box-shadow: 0 0 0 9px rgba(229, 9, 20, 0.58), 0 0 44px rgba(229, 9, 20, 0.68);
}

.p6-modal__viewer:fullscreen .p6-controls,
.p6-modal__viewer:-webkit-full-screen .p6-controls {
  background: rgba(0, 0, 0, 0.78);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.76);
}

@media (max-width: 900px) {
  .p6-list__title {
    padding-left: 16px;
    padding-right: 16px;
  }

  .p6-toolbar {
    top: 68px;
    margin: 0 12px;
    border-radius: 14px;
  }

  .p6-category {
    padding: 0 12px;
  }

  .p6-list__grid {
    grid-auto-columns: clamp(132px, 38vw, 190px);
    padding-bottom: 42px;
  }

  .p6-list__item:hover,
  .p6-list__item:focus-within {
    transform: scale(1.04) translateY(-4px);
  }

  .p6-list__meta {
    opacity: 1;
    transform: none;
    padding-top: 44px;
  }

  .p6-ctrl-btn,
  .p6-search-btn,
  .p6-nav__btn {
    min-height: 46px;
  }
}

@keyframes p6-netflix-title-in {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.96);
    letter-spacing: 0.08em;
    filter: blur(10px);
  }
  48% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: -0.055em;
  }
}

@keyframes p6-netflix-logo-pulse {
  0% {
    opacity: 0;
    transform: scale(0.65);
    box-shadow: 0 0 0 rgba(229, 9, 20, 0);
  }
  45% {
    opacity: 1;
    transform: scale(1.18);
    box-shadow: 0 0 52px rgba(229, 9, 20, 0.78);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 10px 26px rgba(229, 9, 20, 0.36);
  }
}

@keyframes p6-netflix-panel-in {
  0% {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes p6-netflix-rail-in {
  0% {
    opacity: 0;
    transform: translateX(42px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes p6-netflix-card-in {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes p6-intro-out {
  0%,
  82% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes p6-intro-scan {
  0% {
    opacity: 0;
    transform: translateX(-86%) skewX(-12deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(86%) skewX(-12deg);
  }
}

@keyframes p6-intro-vignette {
  0% {
    opacity: 0.45;
    transform: scale(1.08);
  }
  44% {
    opacity: 1;
    transform: scale(1);
  }
  84% {
    opacity: 1;
    transform: scale(0.88);
  }
  100% {
    opacity: 0;
    transform: scale(0.76);
  }
}

@keyframes p6-intro-flare {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.15);
  }
  20% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }
  62% {
    opacity: 0.52;
    transform: translate(-50%, -50%) scale(1.18);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.28);
  }
}

@keyframes p6-intro-word {
  0% {
    opacity: 0;
    letter-spacing: 0.18em;
    transform: translate(-50%, -50%) scale(0.72);
    filter: blur(18px);
    text-shadow: 0 0 0 rgba(229, 9, 20, 0);
  }
  16% {
    opacity: 1;
    letter-spacing: -0.03em;
    transform: translate(-50%, -50%) scale(1.08);
    filter: blur(0);
    text-shadow: 0 0 52px rgba(229, 9, 20, 0.42);
  }
  48% {
    opacity: 1;
    letter-spacing: -0.08em;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
  62% {
    opacity: 1;
    letter-spacing: -0.24em;
    transform: translate(-50%, -50%) scale(0.36);
    filter: blur(0);
  }
  72%,
  100% {
    opacity: 0;
    letter-spacing: -0.32em;
    transform: translate(-50%, -50%) scale(0.12);
    filter: blur(10px);
  }
}

@keyframes p6-intro-mark {
  0%,
  48% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18) rotateY(74deg);
    filter: blur(16px);
  }
  62% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.18) rotateY(0);
    filter: blur(0);
  }
  78% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.76) rotateY(0);
    filter: blur(0);
  }
  86% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.42) rotateY(0);
    filter: blur(1px);
  }
  94% {
    opacity: 1;
    transform:
      translate(
        calc(-50% - 50vw + clamp(18px, 4vw, 64px) + 18px),
        calc(-50% - 50vh + 40px)
      )
      scale(0.31)
      rotateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% - 50vw + clamp(18px, 4vw, 64px) + 18px),
        calc(-50% - 50vh + 40px)
      )
      scale(0.27)
      rotateY(0);
    filter: blur(2px);
  }
}

@keyframes p6-app-after-intro {
  0% {
    opacity: 0;
    transform: scale(1.035);
    filter: blur(14px) brightness(0.55);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p6-intro,
  .p6-intro::before,
  .p6-intro::after,
  .p6-intro__flare,
  .p6-intro__word,
  .p6-intro__mark,
  .p6-app,
  .p6-list__title,
  .p6-list__title::before,
  .p6-toolbar,
  .p6-category,
  .p6-list__item {
    animation: none;
  }

  .p6-intro {
    display: none;
  }
}

/* WebOS/LG TV fallback: older TV browsers are unreliable with grid auto columns,
   clamp(), aspect-ratio and scroll snap. Keep rails visible with plain flex. */
.p6-list__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
}

.p6-list__item {
  flex: 0 0 190px;
  width: 190px;
  max-width: 190px;
}

.p6-list__poster {
  width: 100%;
  height: 285px;
  object-fit: cover;
}

@supports (aspect-ratio: 2 / 3) {
  .p6-list__poster {
    height: auto;
    aspect-ratio: 2 / 3;
  }
}

@media (max-width: 900px) {
  .p6-list__item {
    flex-basis: 154px;
    width: 154px;
    max-width: 154px;
  }

  .p6-list__poster {
    height: 231px;
  }
}

/* Netflix-style title player */
.p6-modal {
  padding: 0;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.62);
}

.p6-modal__backdrop {
  position: fixed;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
}

.p6-modal__dialog {
  display: block;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 10px;
  background: #181818;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.9);
  scrollbar-width: thin;
  scrollbar-color: #555 #181818;
}

.p6-modal__head {
  position: absolute;
  z-index: 12;
  inset: 0 0 auto;
  height: auto;
  min-height: 0;
  padding: 24px 28px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent);
  pointer-events: none;
}

.p6-modal__heading {
  min-width: 0;
  max-width: calc(100% - 72px);
}

.p6-modal__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #e50914;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.p6-modal__title {
  color: #fff;
  font-size: clamp(1.15rem, 2.3vw, 2rem);
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 2px 18px #000;
}

.p6-modal__close {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #181818;
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: auto;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.p6-modal__close svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.p6-modal__close:hover,
.p6-modal__close:focus-visible {
  background: #2a2a2a;
  transform: scale(1.06);
}

.p6-modal__body {
  display: grid;
  grid-template-areas:
    "viewer viewer"
    "synopsis playlist";
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  grid-template-rows: auto minmax(320px, auto);
  height: auto;
  min-height: 100%;
  padding: 0;
  gap: 0;
  overflow: visible;
  background: #181818;
}

.p6-modal__viewer {
  grid-area: viewer;
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 420px;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  background: #000;
}

.p6-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: #000;
}

.p6-stage__video,
.p6-stage__poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.p6-stage__poster {
  object-fit: cover;
}

.p6-document-reader {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
}

.p6-document-reader[hidden],
.p6-document-reader__pdf[hidden],
.p6-document-reader__epub[hidden],
.p6-document-reader__fallback[hidden],
.p6-document-controls[hidden] {
  display: none !important;
}

.p6-document-reader__pdf,
.p6-document-reader__pdf-frame,
.p6-document-reader__epub {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f2f2f2;
}

.p6-document-reader__epub {
  overflow: hidden;
}

.p6-document-reader__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 32px;
  color: #eee;
  text-align: center;
}

.p6-document-controls {
  position: absolute;
  z-index: 7;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(16px);
}

.p6-document-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.p6-document-btn:hover,
.p6-document-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
}

.p6-document-progress {
  min-width: 100px;
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.p6-modal__dialog.is-document-mode .p6-controls,
.p6-modal__dialog.is-document-mode .p6-stage__video,
.p6-modal__dialog.is-document-mode .p6-stage__poster,
.p6-modal__dialog.is-document-mode .p6-stage__shade {
  display: none;
}

.p6-modal__dialog.is-pdf-mode .p6-document-btn--font,
.p6-modal__dialog.is-pdf-mode [data-p6-document-prev],
.p6-modal__dialog.is-pdf-mode [data-p6-document-next],
.p6-modal__dialog.is-pdf-mode .p6-document-progress {
  display: none;
}

.p6-stage__shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 46%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.82) 100%);
}

.p6-stage__loading {
  z-index: 5;
  bottom: 92px;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  font-weight: 700;
}

.p6-controls {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-areas:
    "seek seek seek seek seek seek seek seek seek seek"
    "play current separator duration mute volume spacer quality tracks full";
  grid-template-columns: 48px auto 10px auto 48px minmax(70px, 120px) 1fr minmax(150px, 220px) 48px 48px;
  grid-template-rows: 20px 52px;
  align-items: center;
  gap: 0 8px;
  width: 100%;
  height: 92px;
  min-height: 92px;
  padding: 8px 24px 12px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.96));
  box-shadow: none;
}

.p6-controls .p6-seek {
  grid-area: seek;
}

.p6-controls [data-p6-play-toggle] {
  grid-area: play;
}

.p6-controls [data-p6-current-time] {
  grid-area: current;
}

.p6-controls .p6-time__separator {
  grid-area: separator;
}

.p6-controls [data-p6-duration] {
  grid-area: duration;
}

.p6-controls [data-p6-mute-toggle] {
  grid-area: mute;
}

.p6-controls .p6-volume {
  grid-area: volume;
}

.p6-controls__spacer {
  grid-area: spacer;
}

.p6-quality-control {
  grid-area: quality;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.p6-quality-control[hidden] {
  display: none;
}

.p6-quality-select {
  width: min(150px, 100%);
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(10, 14, 18, 0.86);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.p6-quality-strict {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.p6-track-control {
  position: relative;
  grid-area: tracks;
}

.p6-track-menu {
  position: absolute;
  right: 0;
  bottom: 52px;
  width: min(340px, 78vw);
  max-height: min(420px, 55vh);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(12, 14, 18, 0.97);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.p6-track-menu__title {
  padding: 7px 10px 5px;
  color: #8d98a8;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.p6-track-menu__item {
  display: block;
  width: 100%;
  min-height: 38px;
  margin: 2px 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  text-align: left;
  font-size: 0.76rem;
}

.p6-track-menu__item:hover,
.p6-track-menu__item:focus-visible,
.p6-track-menu__item.is-active {
  background: rgba(255, 255, 255, 0.13);
}

.p6-track-menu__item.is-active::before {
  content: "✓ ";
  color: #35e89a;
}

.p6-controls [data-p6-fullscreen] {
  grid-area: full;
}

.p6-ctrl-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
}

.p6-ctrl-btn:hover,
.p6-ctrl-btn:focus-visible {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.08);
}

.p6-icon {
  width: 27px;
  height: 27px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p6-icon--pause,
.p6-icon--muted,
.p6-ctrl-btn.is-playing .p6-icon--play,
.p6-ctrl-btn.is-muted .p6-icon--volume {
  display: none;
}

.p6-ctrl-btn.is-playing .p6-icon--pause,
.p6-ctrl-btn.is-muted .p6-icon--muted {
  display: block;
}

.p6-time {
  color: #ddd;
  font-size: 0.76rem;
  font-weight: 700;
}

.p6-time__separator {
  color: #777;
}

.p6-seek,
.p6-volume {
  accent-color: #e50914;
  cursor: pointer;
}

.p6-modal__synopsis-panel,
.p6-modal__playlist-panel {
  width: auto;
  height: auto;
  min-height: 320px;
  border: 0;
  border-radius: 0;
  background: #181818;
  overflow: hidden;
}

.p6-modal__synopsis-panel {
  grid-area: synopsis;
  display: grid;
  grid-template-areas:
    "head head"
    "poster copy";
  grid-template-columns: 138px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 0 20px;
  padding: 30px 12px 34px 32px;
}

.p6-modal__playlist-panel {
  grid-area: playlist;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 30px 32px 34px 12px;
}

.p6-panel__head {
  grid-area: head;
  padding: 0 0 18px;
  border: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.p6-synopsis__poster {
  grid-area: poster;
  width: 138px;
  height: 207px;
  max-width: 138px;
  max-height: 207px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  object-fit: cover;
  background: #111;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
}

.p6-synopsis__copy {
  grid-area: copy;
  min-width: 0;
}

.p6-synopsis__match {
  margin-bottom: 10px;
  color: #46d369;
  font-size: 0.86rem;
  font-weight: 800;
}

.p6-synopsis__text {
  margin: 0;
  padding: 0;
  max-height: 230px;
  color: #d2d2d2;
  font-size: 0.88rem;
  line-height: 1.55;
  overflow: auto;
}

.p6-player-status {
  min-height: 0;
  padding: 0 0 12px;
  border: 0;
  color: #9a9a9a;
}

.p6-playlist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.p6-playlist__item {
  position: relative;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
}

.p6-playlist__item.is-active {
  background: #333;
  box-shadow: inset 4px 0 0 #e50914;
}

.p6-playlist__item.is-active::after {
  content: "EN LECTURE";
  position: absolute;
  top: 11px;
  right: 12px;
  color: #46d369;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.p6-playlist__btn {
  padding: 13px 78px 13px 16px;
  border-radius: 0;
}

.p6-playlist__btn:hover,
.p6-playlist__btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.p6-playlist__name {
  color: #fff;
  font-size: 0.82rem;
}

.p6-playlist__meta {
  color: #999;
  font-size: 0.7rem;
}

.p6-modal__viewer:fullscreen,
.p6-modal__viewer:-webkit-full-screen {
  display: block;
  aspect-ratio: auto;
}

.p6-modal__viewer:fullscreen .p6-controls,
.p6-modal__viewer:-webkit-full-screen .p6-controls {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100px;
  transform: translateY(18px);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.96));
  border: 0;
  border-radius: 0;
}

.p6-modal__viewer:fullscreen.is-fs-controls-visible .p6-controls,
.p6-modal__viewer:-webkit-full-screen.is-fs-controls-visible .p6-controls {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .p6-modal__dialog {
    border-radius: 0;
  }

  .p6-modal__head {
    padding: 16px;
  }

  .p6-modal__close {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .p6-modal__body {
    grid-template-areas:
      "viewer"
      "synopsis"
      "playlist";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .p6-modal__viewer {
    min-height: 280px;
    aspect-ratio: 16 / 9;
  }

  .p6-modal__synopsis-panel,
  .p6-modal__playlist-panel {
    min-height: 0;
    padding: 24px 18px;
  }

  .p6-modal__playlist-panel {
    padding-top: 8px;
  }

  .p6-controls {
    grid-template-columns: 44px auto 8px auto 44px minmax(54px, 80px) 1fr minmax(118px, 150px) 44px 44px;
    grid-template-rows: 18px 48px;
    height: 82px;
    min-height: 82px;
    padding: 6px 10px 8px;
  }

  .p6-quality-select {
    width: min(118px, 100%);
  }

  .p6-quality-strict span {
    display: none;
  }
}

@media (max-width: 560px) {
  .p6-modal__title {
    font-size: 1rem;
  }

  .p6-modal__eyebrow {
    font-size: 0.58rem;
  }

  .p6-modal__viewer {
    min-height: 230px;
  }

  .p6-modal__synopsis-panel {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0 14px;
  }

  .p6-synopsis__poster {
    width: 92px;
    height: 138px;
    max-width: 92px;
    max-height: 138px;
  }

  .p6-synopsis__text {
    max-height: 150px;
    font-size: 0.8rem;
  }

  .p6-volume {
    display: none;
  }

  .p6-controls {
    grid-template-areas:
      "seek seek seek seek seek seek seek seek seek"
      "play current duration mute spacer quality tracks full full";
    grid-template-columns: 42px auto auto 42px 1fr minmax(88px, 118px) 42px 42px 0;
  }

  .p6-controls .p6-time__separator {
    display: none;
  }

  .p6-quality-select {
    width: min(92px, 100%);
  }
}

/* Wide immersive player with transient glass overlays */
.p6-modal__dialog {
  width: 98vw;
  overflow: hidden;
  background: #000;
}

.p6-modal__body {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #000;
}

.p6-modal__viewer {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.p6-stage__shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 40%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 28%, rgba(0, 0, 0, 0.76) 100%);
  transition: opacity 360ms ease;
}

.p6-modal__synopsis-panel,
.p6-modal__playlist-panel {
  position: absolute;
  z-index: 8;
  bottom: 108px;
  min-height: 0;
  max-height: min(39%, 330px);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(30, 30, 30, 0.64), rgba(8, 8, 8, 0.42));
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 320ms ease,
    visibility 320ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.p6-modal__synopsis-panel {
  left: 24px;
  width: min(40%, 560px);
  display: grid;
  grid-template-areas:
    "head head"
    "poster copy";
  grid-template-columns: 108px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0 16px;
}

.p6-modal__playlist-panel {
  right: 24px;
  width: min(50%, 680px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.p6-modal__dialog.is-video-playing:not(.is-overlay-visible) .p6-modal__synopsis-panel,
.p6-modal__dialog.is-video-playing:not(.is-overlay-visible) .p6-modal__playlist-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px);
  pointer-events: none;
}

.p6-modal__dialog.is-video-playing:not(.is-overlay-visible) .p6-stage__shade {
  opacity: 0.28;
}

.p6-modal__dialog.is-overlay-visible .p6-modal__synopsis-panel,
.p6-modal__dialog.is-overlay-visible .p6-modal__playlist-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.p6-modal__synopsis-panel .p6-panel__head,
.p6-modal__playlist-panel .p6-panel__head {
  padding: 0 0 12px;
  font-size: 1rem;
  text-shadow: 0 2px 12px #000;
}

.p6-modal__synopsis-panel .p6-synopsis__poster {
  width: 108px;
  height: 162px;
  max-width: 108px;
  max-height: 162px;
}

.p6-modal__synopsis-panel .p6-synopsis__text {
  max-height: 156px;
  color: rgba(255, 255, 255, 0.88);
}

.p6-modal__playlist-panel .p6-player-status {
  padding-bottom: 8px;
  color: rgba(255, 255, 255, 0.64);
}

.p6-modal__playlist-panel .p6-playlist {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.p6-modal__playlist-panel .p6-playlist__item {
  background: rgba(0, 0, 0, 0.14);
}

.p6-modal__playlist-panel .p6-playlist__item.is-active {
  background: rgba(255, 255, 255, 0.14);
}

@media (hover: hover) and (pointer: fine) {
  .p6-modal__dialog.is-video-playing:not(:fullscreen):hover .p6-modal__head {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .p6-modal__dialog {
    width: 98vw;
    border-radius: 10px;
  }

  .p6-modal__body {
    display: block;
  }

  .p6-modal__viewer {
    min-height: 0;
    aspect-ratio: auto;
  }

  .p6-modal__synopsis-panel,
  .p6-modal__playlist-panel {
    bottom: 96px;
    max-height: 38%;
    padding: 16px;
    border-radius: 14px;
  }

  .p6-modal__synopsis-panel {
    left: 14px;
    width: calc(44% - 18px);
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0 12px;
  }

  .p6-modal__playlist-panel {
    right: 14px;
    width: calc(56% - 18px);
  }

  .p6-modal__synopsis-panel .p6-synopsis__poster {
    width: 76px;
    height: 114px;
    max-width: 76px;
    max-height: 114px;
  }
}

@media (max-width: 620px) {
  .p6-modal__synopsis-panel {
    display: none;
  }

  .p6-modal__playlist-panel {
    left: 12px;
    right: 12px;
    width: auto;
    max-height: 42%;
  }
}

/* Integrated playlist manager */
body.p6-playlist-manager-open {
  overflow: hidden;
}

.p6-playlist-manager {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: grid;
  place-items: center;
  padding: 18px;
}

.p6-playlist-manager[hidden] {
  display: none;
}

.p6-playlist-manager__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
}

.p6-playlist-manager__dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 96vw);
  height: min(780px, 92vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(229, 9, 20, 0.16), transparent 60%),
    #111;
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.84);
}

.p6-playlist-manager__head {
  min-height: 84px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.p6-playlist-manager__eyebrow {
  color: #e50914;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.p6-playlist-manager__title {
  margin: 3px 0 0;
  color: #fff;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.p6-playlist-manager__close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.p6-playlist-manager__body {
  min-height: 0;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
}

.p6-playlist-manager__sidebar {
  min-height: 0;
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.2);
}

.p6-playlist-manager__create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.p6-playlist-manager input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.p6-playlist-manager input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.38);
}

.p6-playlist-manager button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.p6-playlist-manager button:hover,
.p6-playlist-manager button:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.p6-playlist-manager button:disabled {
  opacity: 0.35;
  cursor: default;
}

.p6-playlist-manager button.is-danger:hover,
.p6-playlist-manager button.is-danger:focus-visible {
  border-color: #e50914;
  background: #e50914;
  color: #fff;
}

.p6-playlist-manager__lists {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p6-playlist-manager__list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.p6-playlist-manager__list-select {
  min-width: 0;
  padding: 11px 12px;
  text-align: left;
  display: grid;
  gap: 3px;
}

.p6-playlist-manager__list-select strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p6-playlist-manager__list-select span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.68rem;
}

.p6-playlist-manager__list-row.is-active .p6-playlist-manager__list-select {
  border-color: rgba(229, 9, 20, 0.8);
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.34), rgba(255, 255, 255, 0.08));
  box-shadow: inset 4px 0 0 #e50914;
}

.p6-playlist-manager__add-here {
  padding: 0 10px;
  background: #e50914 !important;
}

.p6-playlist-manager__content {
  min-width: 0;
  min-height: 0;
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
}

.p6-playlist-manager__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.p6-playlist-manager__notice {
  min-height: 22px;
  color: #46d369;
  font-size: 0.76rem;
}

.p6-playlist-manager__notice.is-error {
  color: #ff7a7f;
}

.p6-playlist-manager__entries {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p6-playlist-manager__entry {
  min-height: 78px;
  display: grid;
  grid-template-columns: 30px 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  transition: opacity 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.p6-playlist-manager__entry.is-dragging {
  opacity: 0.42;
  transform: scale(0.98);
}

.p6-playlist-manager__entry.is-drop-target {
  border-color: #e50914;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.35);
}

.p6-playlist-manager__drag {
  color: rgba(255, 255, 255, 0.48);
  font-size: 1.25rem;
  cursor: grab;
  user-select: none;
}

.p6-playlist-manager__poster {
  width: 52px;
  height: 60px;
  border-radius: 7px;
  object-fit: cover;
  background: #222;
}

.p6-playlist-manager__entry-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.p6-playlist-manager__entry-copy strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p6-playlist-manager__entry-copy span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
}

.p6-playlist-manager__entry-controls {
  display: flex;
  gap: 6px;
}

.p6-playlist-manager__entry-controls button {
  width: 36px;
  min-width: 36px;
  padding: 0;
  font-size: 1rem;
}

.p6-playlist-manager__empty {
  padding: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@media (max-width: 780px) {
  .p6-playlist-manager {
    padding: 7px;
  }

  .p6-playlist-manager__dialog {
    width: calc(100vw - 14px);
    height: calc(100vh - 14px);
    border-radius: 14px;
  }

  .p6-playlist-manager__body {
    grid-template-columns: 1fr;
    grid-template-rows: 220px minmax(0, 1fr);
  }

  .p6-playlist-manager__sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .p6-playlist-manager__lists {
    flex-direction: row;
    overflow-x: auto;
  }

  .p6-playlist-manager__list-row {
    flex: 0 0 210px;
  }

  .p6-playlist-manager__toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .p6-playlist-manager__toolbar input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .p6-playlist-manager__head {
    min-height: 66px;
    padding: 12px 14px;
  }

  .p6-playlist-manager__title {
    font-size: 1.25rem;
  }

  .p6-playlist-manager__content,
  .p6-playlist-manager__sidebar {
    padding: 12px;
  }

  .p6-playlist-manager__entry {
    grid-template-columns: 22px 42px minmax(0, 1fr);
  }

  .p6-playlist-manager__poster {
    width: 42px;
    height: 52px;
  }

  .p6-playlist-manager__entry-controls {
    grid-column: 2 / -1;
    justify-content: flex-end;
  }
}

/* Persistent mini-player */
.p6-modal__restore {
  display: none;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #181818;
  color: #fff;
  place-items: center;
  pointer-events: auto;
  cursor: pointer;
}

.p6-modal__restore svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p6-modal__restore:hover,
.p6-modal__restore:focus-visible {
  background: #333;
  transform: scale(1.06);
}

.p6-modal.is-miniplayer {
  position: fixed;
  inset: 0;
  z-index: 9500;
  padding: 0;
  overflow: visible;
  background: transparent;
  pointer-events: none;
}

.p6-modal.is-miniplayer .p6-modal__backdrop {
  display: none;
}

.p6-modal.is-miniplayer .p6-modal__dialog {
  position: fixed;
  z-index: 1;
  top: 18px;
  right: 18px;
  left: auto;
  bottom: auto;
  width: min(760px, calc(100vw - 28px));
  height: 242px;
  min-width: 0;
  min-height: 242px;
  max-height: 242px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(13, 13, 13, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
  pointer-events: auto;
  animation: p6-miniplayer-in 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.p6-modal.is-miniplayer .p6-modal__head {
  position: absolute;
  z-index: 20;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 36px;
  width: calc(60% - 7px);
  gap: 7px;
  align-items: start;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.88), transparent);
}

.p6-modal.is-miniplayer .p6-modal__heading {
  max-width: none;
  padding: 3px 4px;
}

.p6-modal.is-miniplayer .p6-modal__eyebrow {
  font-size: 0.54rem;
}

.p6-modal.is-miniplayer .p6-modal__title {
  font-size: 0.86rem;
  line-height: 1.2;
}

.p6-modal.is-miniplayer .p6-modal__restore,
.p6-modal.is-miniplayer .p6-modal__close {
  display: grid;
  position: static;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  background: rgba(24, 24, 24, 0.86);
}

.p6-modal.is-miniplayer .p6-modal__body {
  display: grid;
  grid-template-columns: minmax(360px, 3fr) minmax(270px, 2fr);
  grid-template-rows: 242px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.p6-modal.is-miniplayer .p6-modal__viewer {
  position: relative;
  inset: auto;
  width: 100%;
  height: 242px;
  min-height: 242px;
  cursor: pointer;
}

.p6-modal.is-miniplayer .p6-stage__shade {
  opacity: 0.5;
}

.p6-modal.is-miniplayer .p6-stage__loading {
  bottom: 64px;
  font-size: 0.68rem;
}

.p6-modal.is-miniplayer .p6-controls {
  grid-template-areas:
    "seek seek seek seek seek"
    "play current duration spacer mute";
  grid-template-columns: 42px auto auto 1fr 42px;
  grid-template-rows: 16px 42px;
  height: 68px;
  min-height: 68px;
  padding: 4px 10px 6px;
}

.p6-modal.is-miniplayer .p6-controls .p6-time__separator,
.p6-modal.is-miniplayer .p6-volume,
.p6-modal.is-miniplayer .p6-quality-control,
.p6-modal.is-miniplayer .p6-track-control,
.p6-modal.is-miniplayer .p6-ctrl-btn--fullscreen {
  display: none;
}

.p6-modal.is-miniplayer .p6-controls [data-p6-duration]::before {
  content: "/ ";
  color: #777;
}

.p6-modal.is-miniplayer .p6-ctrl-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
}

.p6-modal.is-miniplayer .p6-modal__synopsis-panel {
  display: none;
}

.p6-modal.is-miniplayer .p6-modal__playlist-panel {
  position: relative;
  inset: auto;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 242px;
  min-height: 0;
  max-height: 242px;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: rgba(18, 18, 18, 0.98);
  box-shadow: none;
  backdrop-filter: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.p6-modal.is-miniplayer .p6-modal__playlist-panel .p6-panel__head {
  padding-bottom: 7px;
  font-size: 0.88rem;
}

.p6-modal.is-miniplayer .p6-player-status {
  padding-bottom: 7px;
  font-size: 0.65rem;
}

.p6-modal.is-miniplayer .p6-playlist__btn {
  padding: 10px 72px 10px 12px;
}

.p6-modal.is-miniplayer .p6-playlist__name {
  font-size: 0.75rem;
}

.p6-modal.is-miniplayer .p6-playlist__meta {
  font-size: 0.64rem;
}

.p6-modal.is-miniplayer .p6-playlist__item.is-active::after {
  top: 9px;
  right: 9px;
}

@media (max-width: 620px) {
  .p6-modal.is-miniplayer .p6-modal__dialog {
    top: 10px;
    right: 10px;
    width: calc(100vw - 20px);
    height: 210px;
    min-height: 210px;
    max-height: 210px;
  }

  .p6-modal.is-miniplayer .p6-modal__body {
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    grid-template-rows: 210px;
  }

  .p6-modal.is-miniplayer .p6-modal__viewer {
    height: 210px;
    min-height: 210px;
  }

  .p6-modal.is-miniplayer .p6-modal__head {
    width: 58%;
    padding: 8px;
    grid-template-columns: minmax(0, 1fr) 32px 32px;
    gap: 4px;
  }

  .p6-modal.is-miniplayer .p6-modal__restore,
  .p6-modal.is-miniplayer .p6-modal__close {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .p6-modal.is-miniplayer .p6-modal__playlist-panel {
    height: 210px;
    max-height: 210px;
    padding: 10px;
  }

  .p6-modal.is-miniplayer .p6-playlist__btn {
    padding: 8px 10px;
  }

  .p6-modal.is-miniplayer .p6-playlist__item.is-active::after {
    display: none;
  }
}

@keyframes p6-miniplayer-in {
  from {
    opacity: 0;
    transform: translate(24px, -18px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

/* Playback history and user playlists */
.p6-personal-rails {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.p6-personal-category {
  border: 0;
  border-left: 0;
  background: transparent;
  box-shadow: none;
}

.p6-personal-category__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.p6-personal-category__head .p6-category__title {
  flex: 1;
  margin: 0;
  border: 0;
}

.p6-personal-category__tool,
.p6-list__action,
.p6-playlist__add {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.p6-personal-category__tool {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.p6-personal-category__tool:hover,
.p6-personal-category__tool:focus-visible,
.p6-list__action:hover,
.p6-list__action:focus-visible,
.p6-playlist__add:hover,
.p6-playlist__add:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.p6-personal-category__tool.is-danger:hover,
.p6-personal-category__tool.is-danger:focus-visible {
  border-color: #e50914;
  background: #e50914;
  color: #fff;
}

.p6-personal-category__empty {
  flex: 0 0 min(280px, 70vw);
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.04);
}

.p6-list__action {
  min-height: 28px;
  margin-top: 8px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
  pointer-events: auto;
}

.p6-list__progress {
  position: absolute;
  z-index: 5;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.p6-list__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #e50914;
}

.p6-playlist__add {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 9px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
}

.p6-modal.is-miniplayer .p6-playlist__add {
  right: 7px;
  bottom: 7px;
  width: 24px;
  height: 24px;
}

@media (max-width: 620px) {
  .p6-personal-category__head {
    flex-wrap: wrap;
  }

  .p6-personal-category__head .p6-category__title {
    flex-basis: 100%;
  }
}
