#features .feature-panel {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}
.feature-picker { display: none; }
.preview-window {
  min-width: 0;
  align-self: start;
  overflow: hidden;
  border: 1px solid #35444c;
  border-radius: 12px;
  background: #10191f;
  box-shadow: 0 12px 36px #0003;
}
.preview-titlebar, .preview-choices {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px clamp(12px, 1.5vw, 22px);
  font-size: .9rem;
}
.preview-titlebar {
  justify-content: space-between;
  min-height: 44px;
  border-bottom: 1px solid #ffffff12;
}
.preview-titlebar span:first-child { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
#preview-title { color: #b7c6d0; text-align: right; }
.preview-scene video, .preview-picture, .file-example {
  display: block;
  width: 100%;
  aspect-ratio: 2.13;
}
.preview-scene video { background: #05090b; object-fit: contain; }
.preview-scene[data-scene="playback"] { position: relative; }
.preview-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  padding: clamp(16px, 2.5vw, 32px);
  border: 0;
  background: linear-gradient(0deg, #040c13d9, transparent 51%), url("./media/detail.webp") center / cover;
  color: #f7fbff;
  text-align: left;
}
.preview-play:focus-visible { outline-offset: -4px; }
.preview-play-circle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #effaff;
  color: #152630;
  border-radius: 50%;
}
.preview-play-circle svg { width: 18px; height: 18px; margin-left: 2px; }
.preview-play:hover .preview-play-circle { background: var(--aqua); }
.preview-play-label, .preview-length { line-height: 44px; }
.preview-play-label { font-size: 1rem; font-weight: 600; }
.preview-length { margin-left: auto; font-variant-numeric: tabular-nums; }
#excerpt-status:not(:empty) { display: block; padding: 8px 14px; color: var(--muted); background: #10191f; position: relative; }
.preview-picture {
  position: relative;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, transparent 30%, #071116eb 100%), url("./media/detail.webp") center / cover;
}
.torrent-picture { background-image: linear-gradient(180deg, #0a182373 25%, #071116f2 100%), url("./media/detail.webp"); }
.torrent-picture.is-playing { background-image: linear-gradient(180deg, transparent 30%, #071116eb 100%), url("./media/detail.webp"); }
.picture-readout {
  display: grid;
  gap: 4px;
  padding: clamp(16px, 2.8vw, 36px);
  line-height: 1.4;
}
.picture-readout strong, .file-example strong { font-size: clamp(1.15rem, 2vw, 1.65rem); font-weight: 580; letter-spacing: -.025em; }
.picture-readout span { color: #e2edf0; font-size: .93rem; font-variant-numeric: tabular-nums; }
.torrent-picture strong::before {
  display: inline-block;
  content: "";
  width: .53em;
  height: .53em;
  margin-right: .45em;
  border-radius: 50%;
  background: #ff8c85;
}
.torrent-picture.is-playing strong::before { background: #71e4b4; }
.captions-picture { justify-content: center; padding: 0 12px 8%; }
#sample-caption { padding: 3px 10px; border-radius: 3px; color: white; background: #03080bd9; font-size: clamp(1rem, 1.6vw, 1.4rem); }
.preview-choices { min-width: 0; margin: 0; border: 0; border-top: 1px solid #ffffff17; }
.preview-choices > span { margin-right: auto; color: #bfccd4; }
.preview-choices label { position: relative; cursor: pointer; }
.preview-choices input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}
.preview-choices label span {
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 42px;
  padding: 4px 12px;
  border: 1px solid #3f5059;
  border-radius: 6px;
  color: #d4e0e6;
}
.preview-choices input:checked + span { background: #d6f4ff; color: #102733; border-color: #d6f4ff; }
.preview-choices input:focus-visible + span { outline: 2px solid var(--aqua); outline-offset: 3px; }
.file-example {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 22px 16px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 15%, #20343e, #101a21 78%);
}
.file-example > span { color: #c9d5dc; }
.file-example a { display: inline-flex; gap: 8px; align-items: center; margin-top: 5px; padding: 8px; color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; }
.feature-copy details { margin-top: 12px; }
.feature-copy summary { display: inline-flex; gap: .55em; align-items: center; padding: 6px 0; color: var(--aqua); font-weight: 550; cursor: pointer; }
.feature-copy summary::-webkit-details-marker { display: none; }
.feature-copy summary::after { content: "+"; font-weight: 400; }
.feature-copy details[open] summary::after { content: "−"; }
@media (max-width: 820px) {
  #features .feature-panel { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 660px) {
  #features .tabs { display: none; }
  .feature-picker {
    display: flex; align-items: center; gap: 14px;
    margin-top: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
  }
  .feature-picker select {
    flex: 1; min-width: 0; min-height: 44px; padding: 6px 10px;
    font: inherit; font-weight: 550; color: var(--ink);
    background: #142028; border: 1px solid #394952; border-radius: 6px;
  }
  .feature-picker select:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
  #features .feature-panel { padding-top: 18px; }
  .preview-choices { gap: 6px; }
  .preview-choices label span { min-height: 44px; }
  .preview-titlebar { gap: 6px; }
  .preview-scene video, .preview-picture { aspect-ratio: 1.85; }
}
@media (prefers-reduced-motion: no-preference) {
  .preview-scene:not([hidden]) { animation: preview-appear .18s ease-out; }
  @keyframes preview-appear { from { opacity: .75; } to { opacity: 1; } }
}
