/* PELISPLUS · player · canonical source */
.watch-page {
  position: relative;
  isolation: isolate;
  padding-top: 125px;
}

.watch-background {
  position: absolute;
  inset: 0 0 auto;
  height: 1000px;
  z-index: -2;
  width: 100%;
  object-fit: cover;
  opacity: 0.22;
  mask-image: linear-gradient(black 20%, transparent);
}

.watch-shell {
  max-width: 1800px;
  margin: auto;
}

.source-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.language-group {
  position: relative;
}

.language-trigger {
  display: grid;
  grid-template-columns: 1fr 20px;
  column-gap: 16px;
  text-align: left;
  border: 1px solid #ffffff0d;
  background: #0c0e0db8;
  border-radius: 8px;
  padding: 11px 17px;
  min-width: 150px;
}

.language-trigger strong {
  font-size: 13px;
}

.language-trigger small {
  font-size: 11px;
  color: #9babc0;
}

.language-trigger .source-chevron {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  color: #899fb8;
}

.language-trigger[aria-expanded="true"], .language-trigger.selected {
  background: #26331e;
  border-color: #708c45;
}

.server-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 55;
  background: #141b12;
  border: 1px solid #3b4b30;
  border-radius: 12px;
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 15px 45px #0009;
}

.server-menu button {
  display: flex;
  width: 100%;
  gap: 20px;
  justify-content: space-between;
  border: 0;
  background: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
}

.server-menu button:hover, .server-menu button.selected {
  background: #ffffff0c;
}

.server-menu small {
  color: #8d9f7f;
}

.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  min-height: 300px;
  max-height: 75svh;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: #000;
  object-fit: contain;
}

.play-cover {
  position: absolute;
  inset: 0;
  background: #000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
}

.play-cover button {
  width: 92px;
  height: 92px;
  border: 0;
  background: none;
  color: white;
  display: grid;
  place-items: center;
}

.play-cover svg {
  width: 65px;
  height: 65px;
  fill: none;
  stroke: white;
  stroke-width: 1.5;
}

.play-cover small {
  font-size: 11px;
  color: #556175;
}

.player-status {
  position: absolute;
  inset: 0;
  background: #05080af5;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 25px;
}

.player-status p {
  max-width: 500px;
  font-size: 14px;
}

.watch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 16px;
}

.watch-toolbar .button {
  background: #0c141dd9;
  border: 0;
}

.watch-info {
  padding: 45px 16px 10px;
}

.watch-info h1 {
  font-size: 28px;
  margin-bottom: 15px;
}

.watch-info .share-links {
  display: flex;
  gap: 8px;
  margin: 0 0 10px 10px;
}

.share-links button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #c5f46b45;
  background: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.watch-info p {
  font-size: 16px;
  max-width: 1200px;
}

.watch-info .meta {
  font-size: 12px;
  margin-bottom: 22px;
}

.watch-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.player-settings {
  padding: 20px;
  background: #ffffff03;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.player-settings label {
  font-size: 12px;
  display: grid;
  gap: 5px;
  flex: 1;
  min-width: 170px;
}

.player-settings select {
  font-size: 13px;
  padding: 9px;
}

.episode-drawer {
  margin-top: 30px;
  padding: 25px;
  background: #101821;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.episode-drawer h2 {
  font-size: 23px;
}

.watch-demo-note {
  color: #63758d;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.modal-panel.wide {
  width: min(1000px, 100%);
}

.modal-panel.wide video {
  width: 100%;
  aspect-ratio: 16/9;
  background: black;
  display: block;
}

.copy-input {
  width: 100%;
  margin-bottom: 14px;
}

.report-form {
  display: grid;
  gap: 15px;
}

.keyboard-help {
  font-size: 12px;
  color: #8190a5;
  margin-top: 15px;
}

@media (max-width: 1100px) {
  .video-frame {
    aspect-ratio: 16/9;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .watch-page {
    padding-top: 95px;
  }

  .source-bar {
    gap: 8px;
    margin-bottom: 12px;
  }

  .language-trigger {
    min-width: 0;
    padding: 9px 10px;
    column-gap: 8px;
  }

  .language-trigger strong {
    font-size: 10px;
  }

  .language-trigger small {
    font-size: 9px;
  }

  .server-menu {
    min-width: 220px;
  }

  .language-group:last-child .server-menu {
    left: auto;
    right: 0;
  }

  .video-frame {
    aspect-ratio: 16/9;
    min-height: 0;
  }

  .play-cover button {
    width: 65px;
    height: 65px;
  }

  .play-cover svg {
    width: 48px;
    height: 48px;
  }

  .play-cover small {
    display: none;
  }

  .watch-toolbar {
    gap: 6px;
  }

  .watch-toolbar .button {
    padding: 10px;
    font-size: 11px;
    gap: 5px;
  }

  .watch-info {
    padding: 30px 0 0;
  }

  .watch-info h1 {
    font-size: 23px;
  }

  .watch-info p {
    font-size: 14px;
  }

  .watch-info .share-links {
    margin: 12px 0 15px;
  }

  .watch-actions .button {
    font-size: 12px;
  }

  .episode-drawer {
    padding: 16px;
  }

  .player-status {
    gap: 6px;
  }

  .player-status h3 {
    font-size: 16px;
    margin: 0;
  }

  .player-status p {
    font-size: 11px;
    margin-bottom: 5px;
  }

  .keyboard-help {
    display: none;
  }
}
