.player-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  width: 100%;
  order: -2;
  align-items: start;
}
.player-workspace > .priva-video-frame {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.player-workspace > .player-controls-host {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  background: transparent;
}
.player-workspace > .smart-player {
  grid-column: 1;
  grid-row: 3;
}
.smart-player {
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #72caff85;
  border-radius: 24px;
  background: linear-gradient(135deg, #23415bc7, #061525eb);
  color: #f2f7ff;
  box-shadow:
    inset 0 1px 0 #ecfaff22,
    0 12px 40px #0006;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  min-width: 0;
  overflow: auto;
  scrollbar-width: thin;
}
.smart-player[hidden],
.smart-player [hidden],
.scene-timeline [hidden] {
  display: none !important;
}
.smart-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.smart-head h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0;
  color: #fff;
}
.smart-player .ui-icon {
  width: 26px;
  height: 26px;
  flex: none;
}
.smart-player button {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  border: 1px solid #c6e8ff45;
  border-radius: 14px;
  padding: 15px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  background: #6485a321;
  color: #f2f7ff;
  font: inherit;
  cursor: pointer;
  margin: 0 0 10px;
}
.smart-player button:hover {
  background: #64b4e22a;
}
.smart-player button:disabled {
  opacity: 0.5;
  cursor: default;
}
.smart-player button span {
  flex: 1;
  min-width: 0;
}
.smart-player strong,
.smart-player small {
  display: block;
  overflow-wrap: anywhere;
}
.smart-player strong {
  font-size: 17px;
  font-weight: 600;
}
.smart-player small {
  font-size: 13px;
  color: #b9d3eb;
  margin-top: 4px;
}
.smart-player .smart-head button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 9px;
  flex: none;
  font-size: 0;
  border: 0;
  background: transparent;
  margin: 0;
}
.smart-player .smart-device-action {
  justify-content: center;
  text-align: center;
  background: linear-gradient(105deg, #00ace7, #0063ef);
  border-color: #63ddff;
  font-weight: 650;
  color: #fff;
  margin-top: 20px;
}
.smart-player p {
  font-size: 14px;
  line-height: 1.55;
  color: #c8d9e9;
  margin: 12px 0;
}
.smart-player .smart-hint {
  font-size: 12px;
  color: #acc5db;
}
.smart-status {
  min-height: 0;
}
.smart-status:empty {
  display: none;
}
.smart-back {
  font-size: 13px !important;
}
.smart-back img {
  transform: rotate(180deg);
}
.smart-player .smart-single {
  display: flex;
  gap: 10px;
  align-items: center;
  line-height: 1.45;
  font-size: 14px;
  margin: 18px 0;
}
.smart-single input {
  width: 22px;
  height: 22px;
  flex: none;
}
.smart-player button[aria-pressed="true"] {
  border-color: #55d8ff;
  background: #1786bc44;
}
.smart-player fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.smart-player legend {
  font-size: 18px;
  margin: 0 0 14px;
}
.smart-player :focus-visible,
.scene-card:focus-visible,
.scene-toggle:focus-visible {
  outline: 2px solid #63dafa;
  outline-offset: 3px;
  border-radius: 14px;
}
.player-controls .player-film-meta {
  width: 100%;
  order: -4;
  margin: 0 0 8px;
  min-width: 0;
}
.player-film-meta h2 {
  font-size: clamp(22px, 2.5vw, 40px);
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.player-film-meta p {
  font-size: 14px;
  color: #bcd2e8;
  margin: 0;
}
.player-controls .scene-timeline {
  width: 100%;
  flex: 1 1 100%;
  order: -3;
  min-width: 0;
}
.scene-rail {
  position: relative;
  padding: 8px 0;
}
.player-controls .scene-rail input.player-timeline {
  width: 100%;
  display: block;
  margin: 0;
  min-height: 28px;
}
.scene-actual {
  position: absolute;
  top: 22px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  background: #00b8ef;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 12px #00baffaa;
}
.player-controls .scene-rail input.player-timeline::-webkit-slider-thumb {
  background: transparent;
  border: 2px solid #b8ecff;
  width: 14px;
  height: 14px;
}
.player-controls .scene-rail input.player-timeline::-moz-range-thumb {
  background: transparent;
  border: 2px solid #b8ecff;
}
.scene-preview {
  position: absolute;
  left: clamp(82px, var(--preview-percent), calc(100% - 82px));
  bottom: 45px;
  transform: translateX(-50%);
  z-index: 8;
  max-width: 180px;
  padding: 6px;
  border: 1px solid #63dafa;
  border-radius: 10px;
  background: #071928ef;
  box-shadow: 0 3px 20px #0008;
  pointer-events: none;
  color: #d2eaff;
  font-size: 11px;
  text-align: center;
}
.scene-preview img {
  width: 160px;
  max-height: 100px;
  object-fit: contain;
  display: block;
  border-radius: 5px;
  margin-bottom: 5px;
}
.scene-preview span {
  display: block;
  white-space: normal;
  max-width: 160px;
}
.scene-remaining {
  float: right;
  color: #c2d6e7;
  font-size: 12px;
  margin-top: 3px;
}
.player-transport { display: contents; }
.scene-time-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 8px; font-variant-numeric:tabular-nums; }
body[data-skin][data-presentation] .player-controls-page .scene-time-row .player-time { flex:0 1 auto; order:0; margin:0; font-size:12px; }
.scene-time-row .scene-remaining { float:none; margin:0 0 0 auto; }
body[data-skin][data-presentation] .player-controls button.scene-toggle { gap:12px; padding:8px 12px!important; border:1px solid #d3e6f332; border-radius:12px; background:#ffffff08; color:#edf5fb; }
.scene-toggle::after { content:'⌄'; font-size:16px; line-height:1; }
.scene-toggle[aria-expanded='true']::after { content:'⌃'; }
.player-controls button.scene-toggle {
  min-height: 44px !important;
  padding: 0 8px !important;
  font-size: 13px !important;
  justify-content: flex-start;
  border: 0;
}
.scene-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 9px;
  scroll-snap-type: x proximity;
}
.player-controls button.scene-card {
  padding: 0 !important;
  display: block;
  flex: 0 0 136px;
  max-width: 136px;
  min-height: 78px !important;
  border: 1px solid #a9dafa55 !important;
  border-radius: 10px !important;
  overflow: hidden;
  scroll-snap-align: start;
  background: #0b1c2e !important;
  position: relative;
}
.scene-card img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  display: block;
}
.scene-card span {
  position: absolute;
  bottom: 4px;
  right: 5px;
  font-size: 11px;
  padding: 2px 4px;
  background: #061525d9;
  border-radius: 4px;
}
.scene-hint {
  font-size: 11px;
  color: #b7cadf;
  line-height: 1.45;
  margin: 4px 0 8px;
}
.player-controls-dock .scene-timeline,
.player-controls-dock .player-film-meta {
  display: none;
}
.smart-incoming {
  width: min(440px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  box-sizing: border-box;
  border: 1px solid #74d9ff80;
  border-radius: 22px;
  background: #102237;
  color: #f3f8ff;
  padding: 24px;
}
.smart-incoming::backdrop {
  background: #0008;
}
.smart-incoming h2 {
  font-size: 23px;
  line-height: 1.25;
}
.smart-incoming p {
  font-size: 15px;
  line-height: 1.5;
}
.smart-incoming button {
  min-height: 44px;
  margin: 5px;
  padding: 12px 16px;
  border-radius: 12px;
}
body[data-skin][data-presentation]
  #details[data-surface="details"]
  .player-workspace {
  display: none;
}
body[data-skin][data-presentation]
  #details[data-surface="dock"]
  #real-playback
  > .player-workspace {
  display: block;
}
body[data-skin][data-presentation]
  #details[data-surface="dock"]
  .player-workspace
  > .player-controls-host {
  display: none;
}
body[data-skin][data-presentation]
  #details[data-surface="page"]
  #real-playback {
  gap: 12px;
}
body[data-skin][data-presentation]
  #details[data-surface="page"]
  .player-workspace
  .priva-video-frame {
  border-radius: 18px 18px 0 0;
}
body[data-skin][data-presentation]
  #details[data-surface="page"]
  .player-workspace
  #design-video {
  min-height: 0;
  max-height: calc(100dvh - 340px);
  width: 100%;
  margin: 0;
}
body[data-skin][data-presentation]
  .player-controls-page
  :is(.player-toggle, .player-seek-back, .player-seek-forward) {
  position: static !important;
  transform: none !important;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #afd4ed66 !important;
  border-radius: 50% !important;
}
body[data-skin][data-presentation] .player-controls-page .player-toggle {
  width: 62px !important;
  height: 62px !important;
  border: 2px solid #1dbbed !important;
  box-shadow: 0 0 18px #00aaff44;
}
body[data-skin][data-presentation] .player-controls-page .player-time {
  font-size: 12px;
  flex: 1 1 auto;
  order: 0;
  white-space: nowrap;
}
body[data-skin][data-presentation] .player-controls-page .player-language {
  display: none;
}
body[data-skin][data-presentation] .player-controls-page .player-settings {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
}
body[data-skin][data-presentation] .player-controls-page .player-settings span {
  display: none;
}
body[data-skin][data-presentation] .player-workspace .player-controls-page {
  background: #061525d9;
  gap: 10px;
  padding: 18px;
}
body[data-skin][data-presentation]
  .priva-video-frame.smart-open:fullscreen
  > video {
  width: calc(100% - 370px);
  object-fit: contain;
}
.priva-video-frame:fullscreen > .smart-player {
  position: absolute;
  right: 18px;
  top: 18px;
  bottom: 18px;
  width: 340px;
  z-index: 6;
}
body[data-skin][data-presentation]
  .priva-video-frame.smart-open:fullscreen
  > .player-controls-page {
  right: 378px;
}
@media (min-width: 1000px) {
  .player-workspace.smart-open {
    grid-template-columns: minmax(0, 1fr) 340px;
    column-gap: 22px;
  }
  .player-workspace.smart-open > .smart-player {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-height: calc(100dvh - 120px);
  }
}
@media (max-width: 999px) {
  .smart-player {
    margin-top: 18px;
    padding: 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    max-height: 68dvh;
  }
  .smart-head {
    margin-bottom: 15px;
  }
  .smart-head h2 {
    font-size: 23px;
  }
  .smart-home > button {
    min-height: 68px;
  }
  .smart-player .smart-device-action {
    font-size: 15px;
  }
  .player-film-meta h2 {
    font-size: 24px;
  }
  .scene-strip .scene-card {
    flex-basis: 114px;
    max-width: 114px;
  }
  .scene-card img {
    height: 64px;
  }
  body[data-skin][data-presentation] .player-workspace .player-controls-page {
    padding: 14px 10px;
    gap: 7px;
  }
  body[data-skin][data-presentation] .player-controls-page .player-time {
    flex: 1 1 100%;
    order: -2;
  }
  body[data-skin][data-presentation]
    .player-controls-page
    :is(.player-seek-back, .player-seek-forward) {
    height: 44px !important;
    width: 44px !important;
  }
  .priva-video-frame:fullscreen > .smart-player {
    width: min(380px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
  }
  body[data-skin][data-presentation]
    .priva-video-frame.smart-open:fullscreen
    > video {
    width: 100%;
  }
  body[data-skin][data-presentation]
    .priva-video-frame.smart-open:fullscreen
    > .player-controls-page {
    visibility: hidden;
  }
}
/* Separate primary playback and secondary tools on phones. Keep the same
   controls and media session, including when they move into fullscreen. */
@media (max-width: 600px) {
  body[data-skin][data-presentation]:not([data-tv='true']) .player-controls-page[data-media-kind='vod'] {
    justify-content:center; gap:10px; padding:14px 12px; border-radius:0 0 18px 18px;
  }
  body[data-skin][data-presentation]:not([data-tv='true']) .player-controls-page[data-media-kind='vod'] .player-transport {
    display:flex; flex:1 1 100%; align-items:center; justify-content:center; gap:24px; order:-1; padding:6px 0;
  }
  body[data-skin][data-presentation]:not([data-tv='true']) .player-controls-page[data-media-kind='vod'] :is(.player-seek-back,.player-seek-forward) {
    width:44px!important; height:44px!important; min-width:44px; padding:5px; gap:2px; border:1px solid #d3e6f340!important; border-radius:14px!important;
  }
  body[data-skin][data-presentation]:not([data-tv='true']) .player-controls-page[data-media-kind='vod'] :is(.player-seek-back,.player-seek-forward) .ui-icon { width:22px; height:22px; }
  body[data-skin][data-presentation]:not([data-tv='true']) .player-controls-page[data-media-kind='vod'] .player-toggle {
    width:56px!important; height:56px!important; padding:12px; border:1px solid #d3e6f36b!important; border-radius:18px!important; background:#ffffff0d; box-shadow:none;
  }
  body[data-skin][data-presentation]:not([data-tv='true']) .player-controls-page[data-media-kind='vod'] > button {
    width:44px; height:44px; min-width:44px; min-height:44px; padding:10px; margin:0; border-radius:14px; flex:none;
  }
  body[data-skin][data-presentation]:not([data-tv='true']) .player-controls-page[data-media-kind='vod'] > input { display:none; }
  body[data-skin][data-presentation]:not([data-tv='true']) .player-film-meta h2 { font-size:22px; line-height:1.2; margin-bottom:4px; }
  body[data-skin][data-presentation]:not([data-tv='true']) .smart-player .smart-head {
    position:sticky; top:-20px; z-index:2; margin:-20px -20px 16px; padding:12px 16px; background:#15283bf5; border-bottom:1px solid #d3e6f326; border-radius:20px 20px 0 0;
  }
  body[data-skin][data-presentation]:not([data-tv='true']) .smart-player { overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
}
@media (prefers-reduced-transparency: reduce) {
  .smart-player {
    background: #102237;
    backdrop-filter: none;
  }
}
body[data-transparency="reduced"] .smart-player {
  background: #102237;
  backdrop-filter: none;
}

body[data-skin][data-presentation] #details .smart-player .smart-head button {
  width: 44px;
  min-height: 44px;
  padding: 9px;
  border: 0;
  background: transparent;
}
body[data-skin][data-presentation] #details .smart-player .smart-device-action {
  background: linear-gradient(105deg, #00ace7, #0063ef);
  border: 1px solid #63ddff;
  color: #fff;
}
body[data-skin][data-presentation]
  #details
  .smart-player
  .smart-home
  > button
  > .ui-icon:first-child {
  filter: brightness(0) saturate(100%) invert(63%) sepia(96%) saturate(1544%)
    hue-rotate(153deg) brightness(101%) contrast(104%);
}
body[data-skin][data-presentation]
  #details[data-surface="page"]
  > #detail-title {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
body[data-skin][data-presentation]
  #details
  .priva-video-frame:is(:fullscreen, :-webkit-full-screen)
  > #design-video {
  height: 100%;
  max-height: none;
  width: 100%;
  object-fit: contain;
}
body[data-skin][data-presentation]
  #details
  .priva-video-frame.smart-open:is(:fullscreen, :-webkit-full-screen)
  > #design-video {
  width: calc(100% - 370px);
}
body[data-skin][data-presentation]
  #details
  .priva-video-frame:is(:fullscreen, :-webkit-full-screen)
  > .player-controls-page {
  background: linear-gradient(0deg, #031425f5 40%, #061525d9 80%, #06152500);
  border: 0;
}
@media (max-width: 999px) {
  body[data-skin][data-presentation]
    #details
    .priva-video-frame.smart-open:is(:fullscreen, :-webkit-full-screen)
    > #design-video {
    width: 100%;
  }
}

.smart-subtitle-field{display:block;margin:12px 0}.smart-subtitle-field select{display:block;width:100%;min-height:44px;margin-top:6px;padding:10px;background:#10273a;color:#eff8ff;border:1px solid #57758b;border-radius:8px}.smart-subtitle-sample{padding:18px;text-align:center;border:1px solid #486276;border-radius:10px}

