/* v32-root: compact queue controls, stable mobile editing and progress details. */

.watch-time-summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
}

.watch-time-divider {
  color: currentColor;
  font-style: normal;
  opacity: 0.48;
}

.remaining-watch-time {
  color: #c8cad1;
  font-weight: 750;
}

.queue-found-count {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px 0 7px;
  color: #92969f;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

html[data-theme="light"] .remaining-watch-time {
  color: #464c57;
}

html[data-theme="light"] .queue-found-count {
  color: #686f7a;
}

@media (min-width: 1041px) {
  .queue-desktop-side {
    --queue-comment-surface: #15171d;
  }

  .owner-mode .queue-desktop-side {
    padding-right: 68px;
    padding-bottom: 26px;
  }

  .owner-mode .owner-row-actions,
  .owner-row-actions {
    top: 50%;
    right: 12px;
    bottom: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 0 10px 9px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transform: translate(5px, -50%);
  }

  .owner-mode .owner-row-actions {
    transform: translate(0, -50%);
  }

  .queue-side-comment-wrap {
    min-width: 0;
    position: relative;
  }

  .queue-side-comment.is-clamped {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    white-space: normal;
  }

  .queue-side-comment-more {
    padding: 0;
    border: 0;
    color: #d98a8d;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
  }

  .queue-side-comment-wrap:not(.expanded) .queue-side-comment-more {
    position: absolute;
    right: 0;
    bottom: 0;
    padding-left: 24px;
    background: linear-gradient(
      90deg,
      transparent 0,
      var(--queue-comment-surface) 29%,
      var(--queue-comment-surface) 100%
    );
  }

  .queue-side-comment-wrap.expanded .queue-side-comment-more {
    margin-top: 6px;
  }

  .queue-side-comment-more:focus-visible,
  .queue-side-comment-more:hover {
    color: #f0a5a8;
    outline: 0;
    text-decoration: underline;
  }

  html[data-theme="light"] .queue-desktop-side {
    --queue-comment-surface: #e7e8ec;
  }

  html[data-theme="light"] .owner-mode .owner-row-actions,
  html[data-theme="light"] .owner-row-actions {
    border-left-color: rgba(31, 35, 45, 0.11);
  }

  html[data-theme="light"] .queue-side-comment-more {
    color: #a0363b;
  }

  html[data-theme="light"] .queue-side-comment-more:focus-visible,
  html[data-theme="light"] .queue-side-comment-more:hover {
    color: #782329;
  }
}

@media (max-width: 1040px) {
  .queue-table,
  .queue-row {
    overflow-anchor: none;
  }

  .owner-mode .owner-row-actions,
  .owner-row-actions {
    will-change: auto;
  }

  .search-box,
  .search-shell.open .search-box {
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #13141a;
    box-shadow: none;
    transition: border-color 0.12s ease;
  }

  .search-box input {
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }

  .search-suggestions {
    top: calc(100% + 5px);
    border-top: 1px solid rgba(232, 59, 63, 0.45);
    border-radius: 11px;
  }

  .queue-found-count {
    min-height: 25px;
    grid-column: 1 / -1;
    justify-self: end;
    padding-right: 2px;
  }

  html[data-theme="light"] .search-box,
  html[data-theme="light"] .search-shell.open .search-box {
    border-color: var(--line);
    background: #f7f8fa;
  }
}

@media (max-width: 720px) {
  .schedule-details-footer .schedule-duplicate-button {
    flex: 1 1 calc(50% - 5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .owner-row-actions,
  .search-box {
    transition: none !important;
  }
}
