/* Compact YouTube-style transport controls for the ITSS Cine player. */
.cine-watch-shell .cine-app-header-inner {
  grid-template-columns: 40px 210px minmax(180px, 680px) auto auto;
}
.cine-watch-shell .cine-exit-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-self: end;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid #3c3c3c;
  border-radius: 22px;
  color: #e4e4e4;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.cine-watch-shell .cine-exit-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cine-watch-shell .cine-exit-link:hover { border-color: #697d95; background: #202a37; color: #fff; }
.cine-watch-shell .cine-player-shell {
  isolation: isolate;
}

.cine-watch-shell .cine-lazy-play[hidden] { display: none !important; }
.cine-watch-shell .cine-lazy-play {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 7px 20px 7px 8px;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  color: #fff;
  background: rgb(8 22 42 / 86%);
  box-shadow: 0 12px 36px rgb(0 0 0 / 34%), inset 0 1px rgb(255 255 255 / 16%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font: 600 14px/1 'Instrument Sans', sans-serif;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.cine-watch-shell .cine-lazy-play > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding-left: 2px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ff8a38, #f36f21);
  box-shadow: 0 5px 16px rgb(243 111 33 / 40%);
  font-size: 16px;
}
.cine-watch-shell .cine-lazy-play:hover {
  transform: translate(-50%, -50%) scale(1.04);
  background: rgb(12 31 56 / 94%);
  box-shadow: 0 16px 40px rgb(0 0 0 / 42%), inset 0 1px rgb(255 255 255 / 20%);
}
.cine-watch-shell .cine-lazy-play:focus-visible { outline: 3px solid #ff9c5e; outline-offset: 4px; }

.cine-watch-shell .cine-player-transport {
  position: absolute;
  z-index: 4;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.cine-watch-shell .cine-player-shell:not(.has-video) .cine-player-transport { display: none; }

.cine-watch-shell .cine-player-shell.is-controls-visible .cine-player-transport {
  visibility: visible;
  opacity: 1;
}

.cine-watch-shell .cine-transport-button,
.cine-watch-shell .cine-continuous-button {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgb(255 255 255 / 20%);
  color: #fff;
  background: rgb(10 16 26 / 76%);
  box-shadow: 0 8px 24px rgb(0 0 0 / 26%), inset 0 1px rgb(255 255 255 / 12%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  pointer-events: auto;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.cine-watch-shell .cine-transport-button {
  top: 50%;
  width: 96px;
  min-height: 72px;
  flex-direction: column;
  padding: 10px 8px;
  border-radius: 18px;
  transform: translateY(-50%) scale(.96);
}

.cine-watch-shell .cine-transport-previous { left: clamp(10px, 2.6vw, 30px); }
.cine-watch-shell .cine-transport-next { right: clamp(10px, 2.6vw, 30px); }

.cine-watch-shell .cine-transport-button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cine-watch-shell .cine-transport-button span {
  font: 600 11px/1 'Instrument Sans', sans-serif;
}

.cine-watch-shell .cine-continuous-button {
  top: 14px;
  right: 14px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font: 600 11px/1 'Instrument Sans', sans-serif;
}

.cine-watch-shell .cine-continuous-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cine-watch-shell .cine-continuous-button small {
  padding: 5px 7px;
  border-radius: 999px;
  color: #c5cbd4;
  background: rgb(255 255 255 / 12%);
  font-size: 9px;
}

.cine-watch-shell .cine-continuous-button.is-active {
  border-color: rgb(255 151 89 / 70%);
  color: #fff;
  background: rgb(158 67 27 / 88%);
}

.cine-watch-shell .cine-continuous-button.is-active small {
  color: #fff;
  background: rgb(255 255 255 / 18%);
}

.cine-watch-shell .cine-transport-button:hover:not(:disabled),
.cine-watch-shell .cine-continuous-button:hover {
  border-color: rgb(255 255 255 / 46%);
  background: rgb(26 35 49 / 94%);
}

.cine-watch-shell .cine-transport-button:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.02);
}

.cine-watch-shell .cine-transport-button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.cine-watch-shell .cine-continuous-button:focus-visible,
.cine-watch-shell .cine-transport-button:focus-visible {
  outline: 3px solid #ff9c5e;
  outline-offset: 3px;
}

.cine-watch-shell .cine-player-status {
  position: absolute;
  z-index: 3;
  bottom: 52px;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  color: #f4f5f8;
  background: rgb(10 16 26 / 78%);
  font: 500 12px/1.3 'Instrument Sans', sans-serif;
  pointer-events: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cine-watch-shell .cine-player-status[hidden] { display: none; }

@media (max-width: 760px) {
  .cine-watch-shell .cine-app-header-inner {
    grid-template-columns: 34px 105px minmax(0, 1fr) 32px 34px;
  }
  .cine-watch-shell .cine-exit-link {
    display: grid;
    width: 32px;
    min-height: 32px;
    height: 32px;
    place-items: center;
    overflow: hidden;
    padding: 0;
    border-color: transparent;
  }
  .cine-watch-shell .cine-exit-link span { display: none; }
  .cine-watch-shell .cine-exit-link svg { width: 19px; height: 19px; }
  .cine-watch-shell .cine-transport-button {
    width: 58px;
    min-height: 58px;
    padding: 10px;
    border-radius: 50%;
  }

  .cine-watch-shell .cine-transport-button span { display: none; }
  .cine-watch-shell .cine-transport-previous { left: 12px; }
  .cine-watch-shell .cine-transport-next { right: 12px; }
  .cine-watch-shell .cine-continuous-button { top: 10px; right: 10px; min-height: 34px; padding-inline: 10px; }
  .cine-watch-shell .cine-continuous-button small { display: none; }
  .cine-watch-shell .cine-player-status { bottom: 44px; left: 9px; max-width: calc(100% - 18px); font-size: 11px; }
}

@media (max-width: 370px) {
  .cine-watch-shell .cine-app-header-inner {
    grid-template-columns: 30px 89px minmax(0, 1fr) 30px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cine-watch-shell .cine-lazy-play,
  .cine-watch-shell .cine-player-transport,
  .cine-watch-shell .cine-transport-button,
  .cine-watch-shell .cine-continuous-button { transition: none; }
}
