/* ----------------------- Trang livestream video có sẵn (dùng chung khung với styles-multiple-streams.css) ----------------------- */
.pr-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

.pr-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: #999;
}

.pr-note a,
.pr-hint a {
  color: #4a5cf0;
}

/* Thanh các bước 1 - 2 - 3 */
.pr-steps {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.pr-steps li {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 3px solid #eceef8;
  color: #999;
  font-size: 14px;
}

.pr-steps li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #eceef8;
  font-size: 12px;
  font-weight: 600;
}

.pr-steps li.active,
.pr-steps li.done {
  border-bottom-color: #4a5cf0;
  color: #3f51b5;
}

.pr-steps li.active span,
.pr-steps li.done span {
  background-color: #4a5cf0;
  color: #fff;
}

.pr-step {
  display: none;
}

.pr-step.active {
  display: block;
}

/* Nút chọn kiểu lặp / hẹn giờ */
.pr-segment {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid #d6d8e3;
  border-radius: 8px;
  overflow: hidden;
}

.pr-segment button {
  padding: 8px 16px;
  border: none;
  border-right: 1px solid #d6d8e3;
  background-color: #fff;
  color: #444;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.pr-segment button:last-child {
  border-right: none;
}

.pr-segment button.active {
  background-color: #4a5cf0;
  color: #fff;
}

.ms-field[hidden] {
  display: none;
}

/* Danh sách video sẽ phát */
.pr-playlist {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.pr-playlist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 8px;
}

.pr-index {
  width: 20px;
  color: #999;
  font-size: 13px;
  text-align: center;
}

.pr-thumb {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background-color: #1e1e1e;
  overflow: hidden;
}

.pr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pr-thumb span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 0 4px;
  border-radius: 3px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 10px;
}

.pr-video-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pr-icon-btn {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  color: #555;
  font-size: 12px;
  cursor: pointer;
}

.pr-icon-btn:hover {
  background-color: #f5f5f5;
}

.pr-icon-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pr-icon-btn.danger {
  border-color: #e57373;
  color: #d32f2f;
}

/* Thông số đầu ra */
.pr-specs {
  margin: 0 0 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background-color: #f8f9ff;
}

.pr-specs div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14px;
}

.pr-specs dt {
  color: #888;
}

.pr-specs dd {
  margin: 0;
  color: #222;
  font-weight: 500;
}

/* Cột bên phải */
.pr-side-title {
  margin: 0 0 6px;
  font-size: 15px;
  color: #222;
}

.pr-upgrade {
  width: 100%;
  margin-bottom: 20px;
  text-decoration: none;
  box-sizing: border-box;
}

.pr-running {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pr-running li {
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

.pr-running-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.pr-running-head strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #222;
}

.pr-running .pr-errors {
  margin: 6px 0 0;
  color: #c62828;
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* Trạng thái lượt phát */
.pr-status {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
}

.pr-status.live      { background-color: #fdecea; color: #d32f2f; }
.pr-status.starting,
.pr-status.scheduled { background-color: #fff4e5; color: #b26a00; }
.pr-status.ended     { background-color: #e8f5e9; color: #2e7d32; }
.pr-status.failed    { background-color: #fdecea; color: #c62828; }
.pr-status.stopped,
.pr-status.cancelled { background-color: #f5f5f5; color: #777; }

/* Modal thêm video: lưới thư viện */
.pr-modal-wide {
  max-width: 720px;
}

.pr-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  max-height: 50vh;
  margin-bottom: 14px;
  overflow-y: auto;
}

.pr-library label {
  position: relative;
  display: block;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 8px;
  background-color: #fafafa;
  cursor: pointer;
}

.pr-library label:has(input:checked) {
  border-color: #4a5cf0;
  background-color: #f5f6ff;
}

.pr-library label.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pr-library input {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.pr-library .pr-thumb {
  width: 100%;
}

.pr-library p {
  margin: 6px 0 0;
  overflow: hidden;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pr-library small {
  color: #b26a00;
  font-size: 11px;
}

@media (max-width: 600px) {
  .pr-steps li {
    font-size: 12px;
  }

  .pr-thumb {
    width: 72px;
  }
}

/* ----------------------- Playlist dạng bảng (giống GoStream) ----------------------- */
.pr-playlist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.pr-playlist-label {
  margin-right: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}


.pr-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #ffe0b2;
  border-radius: 6px;
  background-color: #fff8ed;
  color: #b26a00;
  font-size: 13px;
}

.pr-banner[hidden] {
  display: none;
}

.pr-banner p {
  flex: 1;
  margin: 0;
}

.pr-banner-close {
  border: none;
  background: none;
  color: #b26a00;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.pr-table-box {
  margin-bottom: 8px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.pr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pr-table th {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  color: #888;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  text-transform: uppercase;
}

.pr-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f3f3;
  vertical-align: middle;
}

.pr-table tr:last-child td {
  border-bottom: none;
}

.pr-table th:first-child,
.pr-table td.pr-index {
  width: 32px;
  text-align: center;
}

.pr-video-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pr-video-cell .pr-video-name {
  font-weight: 500;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pr-actions {
  width: 1%;
  white-space: nowrap;
}

.pr-actions .pr-icon-btn {
  margin-right: 4px;
}

.pr-delete-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 16px;
  background-color: #fdecea;
  color: #d32f2f;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.pr-delete-btn:hover {
  background-color: #f9d6d2;
}


/* Hộp thoại thêm video: chọn nguồn + khung giải thích */
.pr-source {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
  font-size: 14px;
}

.pr-source label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.pr-info {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background-color: #f1f6ff;
  color: #444;
  font-size: 13px;
  line-height: 1.5;
}

.pr-info p {
  margin: 0;
}

.pr-info ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.pr-video-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pr-video-source {
  color: #888;
  font-size: 12px;
}

.pr-status.queued { background-color: #eef0fe; color: #3f51b5; }

/* ----------------------- Nút và ô thêm video ----------------------- */
.pr-playlist-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pr-chip {
  padding: 3px 10px;
  border-radius: 12px;
  background-color: #eef0fe;
  color: #4a5cf0;
  font-size: 12px;
  font-weight: 500;
}

.pr-chip[hidden] {
  display: none;
}

/* Nút "Thêm video": viên thuốc gradient, icon + trong vòng tròn */
.pr-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #6a5cf0 0%, #4a7cf0 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(90, 100, 240, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pr-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(90, 100, 240, 0.45);
}

.pr-add-btn:active {
  transform: translateY(0);
}

.pr-add-btn:focus-visible,
.pr-choice:focus-visible,
.pr-add-row:focus-visible {
  outline: 3px solid rgba(74, 92, 240, 0.35);
  outline-offset: 2px;
}

.pr-add-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease;
}

.pr-add-btn:hover .pr-add-icon {
  transform: rotate(90deg);
}

.pr-add-icon svg,
.pr-add-row svg,
.pr-choice svg,
.pr-empty-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pr-add-icon svg {
  width: 16px;
  height: 16px;
}

/* Danh sách trống: ô hướng dẫn viền nét đứt */
.pr-empty-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 28px 20px;
  border: 2px dashed #c9cdf5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fafbff 0%, #f3f4fe 100%);
  text-align: center;
}

.pr-empty-zone[hidden],
.pr-table-box[hidden] {
  display: none;
}

.pr-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 16px;
  background-color: #fff;
  color: #5a64f0;
  box-shadow: 0 4px 12px rgba(90, 100, 240, 0.15);
}

.pr-empty-icon svg {
  width: 28px;
  height: 28px;
}

.pr-empty-zone strong {
  font-size: 15px;
  color: #222;
}

.pr-empty-zone p {
  margin: 0 0 8px;
  max-width: 380px;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

.pr-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pr-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #d6d9f7;
  border-radius: 10px;
  background-color: #fff;
  color: #3f4bd6;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}

.pr-choice svg {
  width: 18px;
  height: 18px;
}

.pr-choice:hover {
  border-color: #5a64f0;
  background-color: #f5f6ff;
  transform: translateY(-1px);
}

/* Dòng "Thêm video khác" cuối bảng */
.pr-add-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px;
  border: none;
  border-top: 1px dashed #dfe2f7;
  background-color: #fafbff;
  color: #4a5cf0;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s;
}

.pr-add-row svg {
  width: 16px;
  height: 16px;
}

.pr-add-row:hover {
  background-color: #eef0fe;
}

@media (max-width: 600px) {
  .pr-add-btn span:last-child {
    display: none;
  }

  .pr-add-btn {
    padding: 6px;
  }
}

/* Giữ chữ trên một dòng khi khung hẹp */
.pr-add-btn,
.pr-chip {
  flex-shrink: 0;
  white-space: nowrap;
}

.pr-playlist-title {
  min-width: 0;
  flex-wrap: wrap;
}

.pr-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pr-delete-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bảng hẹp: thu nhỏ ảnh, nút xoá chỉ còn icon */
.pr-table-box {
  container-type: inline-size;
}

@container (max-width: 480px) {
  .pr-table .pr-thumb {
    width: 64px;
  }

  .pr-delete-label {
    display: none;
  }

  .pr-delete-btn {
    padding: 6px 8px;
  }

  .pr-table td {
    padding: 8px 6px;
  }

  .pr-actions .pr-icon-btn {
    margin-right: 2px;
    padding: 4px 6px;
  }
}

/* ----------------------- Bước 2: khối Select server ----------------------- */
.pr-panel {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #eceef8;
  border-radius: 12px;
  background-color: #fff;
}

.pr-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.pr-panel-head h4 {
  margin: 0 0 2px;
  font-size: 15px;
  color: #222;
}

.pr-panel-head .pr-hint {
  margin: 0;
}

/* Chọn máy chủ */
.pr-server-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pr-server-row select {
  flex: 1;
  min-width: 200px;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  font-size: 14px;
  font-family: inherit;
}

.pr-server-btn {
  padding: 9px 14px;
  border: 1px solid #c9cdf5;
  border-radius: 8px;
  background-color: #f7f8ff;
  color: #3f4bd6;
  font-size: 14px;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.pr-server-btn:hover {
  background-color: #eef0fe;
}

.pr-server-btn.danger {
  border-color: #f0c4c0;
  background-color: #fff;
  color: #d32f2f;
}

.pr-server-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#pr-server-hint {
  margin: 8px 0 0;
}


.pr-server-btn[hidden] {
  display: none;
}

/* Watermark: nhãn "Tự động áp dụng" và dòng thông báo gói */
.pr-auto-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background-color: #e8f5e9;
  color: #2e7d32;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.pr-auto-badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pr-lock {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: #fff8ed;
  color: #9a5b00;
  font-size: 13px;
}

.pr-lock[hidden] {
  display: none;
}

.pr-lock a {
  color: #4a5cf0;
}

/* Thông tin lượt livestream */
.pr-job-modal {
  max-width: 640px;
  width: calc(100% - 32px);
  max-height: 88vh;
  overflow-y: auto;
}

.pr-job-section {
  margin: 18px 0 6px;
  font-size: 15px;
}

.pr-job-info {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 16px;
  margin: 12px 0 0;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 12px;
  font-size: 14px;
}

.pr-job-info dt {
  font-weight: 600;
  color: #444;
}

.pr-job-info dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
}

.pr-job-info dd ul {
  margin: 0;
  padding-left: 18px;
}

.pr-job-step {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 12px;
}

.pr-job-link {
  cursor: pointer;
  color: inherit;
}

.pr-job-link:hover {
  color: #3f51b5;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .pr-job-info {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pr-job-info dd {
    margin-bottom: 8px;
  }
}

/* Luồng backup trên VPS phụ */
.pr-backup {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e0e3ef;
}

.pr-backup-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

.pr-backup-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.pr-backup-toggle input:disabled + span {
  color: #9aa0b4;
}

.pr-backup .pr-server-row {
  margin-top: 8px;
}

/* Nhắc bật Auto-start khi hẹn giờ lên YouTube + minh hoạ động công tắc (giống YouTube Studio) */
.pr-autostart-hint {
  margin-top: 8px;
  line-height: 1.5;
}

.pr-autostart-hint p {
  margin: 0 0 8px;
}

.pr-autostart-demo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: #0f0f0f;
  color: #f1f1f1;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  overflow: hidden;
}

.pr-demo-toggle {
  position: relative;
  width: 36px;
  height: 14px;
  border-radius: 7px;
  background-color: #717171;
  animation: pr-demo-track 12s infinite;
}

.pr-demo-knob {
  position: absolute;
  top: -3px;
  left: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #aaa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  animation: pr-demo-knob 12s infinite;
}

/* Con trỏ chuột di tới công tắc rồi bấm */
.pr-demo-cursor {
  position: absolute;
  top: 30px;
  left: 55%;
  width: 14px;
  height: 21px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 21'%3E%3Cpath d='M1 1v16l4-4 3 7 3-1.5-3-6.5h5z' fill='%23fff' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  transform-origin: top left;
  animation: pr-demo-cursor 12s infinite;
}

/* Mỗi vòng 12 giây: ~2 giây di chuột + bấm bật, giữ trạng thái bật ~3,5 giây, tắt rồi nghỉ ~6 giây mới lặp lại */
@keyframes pr-demo-cursor {
  0%   { top: 34px; left: 55%; opacity: 0; transform: scale(1); }
  3%   { opacity: 1; }
  13.5% { top: 21px; left: calc(100% - 32px); transform: scale(1); }
  15%  { transform: scale(0.8); }
  17.25% { top: 21px; left: calc(100% - 32px); transform: scale(1); opacity: 1; }
  37.5% { top: 21px; left: calc(100% - 32px); opacity: 1; }
  42%, 100% { top: 21px; left: calc(100% - 32px); opacity: 0; }
}

@keyframes pr-demo-knob {
  0%, 15%   { left: -2px; background-color: #aaa; }
  18%, 46.5% { left: 18px; background-color: #3ea6ff; }
  50%, 100% { left: -2px; background-color: #aaa; }
}

@keyframes pr-demo-track {
  0%, 15%   { background-color: #717171; }
  18%, 46.5% { background-color: #263850; }
  50%, 100% { background-color: #717171; }
}

@media (prefers-reduced-motion: reduce) {
  .pr-demo-toggle, .pr-demo-knob, .pr-demo-cursor { animation: none; }
  .pr-demo-knob { left: 18px; background-color: #3ea6ff; }
  .pr-demo-cursor { display: none; }
}

/* Link trùng video đã có trên VPS: phát luôn, không tải lại */
.pr-video-reuse {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #2e7d32;
}

#pr-reuse-hint {
  margin-top: 8px;
}

/* Giờ phát kiểu 24 giờ + còn bao lâu */
.pr-schedule-when {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #4a5cf0;
}

/* Ngày + giờ + phút kiểu 24 giờ */
.ms-field .pr-schedule-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ms-field .pr-schedule-inputs input[type="date"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.ms-field .pr-schedule-inputs select {
  flex: none;
  width: 72px;
}

.pr-schedule-when.warn {
  color: #d32f2f;
}

.pr-schedule-colon {
  font-weight: 700;
  color: #555;
}

/* Lời khuyên dưới playlist: 1 video phát mượt / nhiều video ngắt ~30 giây khi chuyển video */
.pr-playlist-advice {
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid #b7e1c1;
	background-color: #effaf2;
	color: #1e6b34;
	font-size: 13px;
	line-height: 1.5;
}
.pr-playlist-advice[hidden] { display: none; }
.pr-playlist-advice strong { display: block; margin-bottom: 2px; }
.pr-playlist-advice p { margin: 2px 0 0; }
.pr-playlist-advice.warn { border-color: #f3d19c; background-color: #fff7e8; color: #8a5300; }

/* Lịch sử: khoảng cách giữa các nút (Chạy lại / Xoá luồng cũ / Dừng) */
#pr-history td .pr-icon-btn + .pr-icon-btn { margin-left: 8px; }

/* Link đã từng dùng: video có sẵn / chạy lại / dùng lại cài đặt */
.pr-reuse-text {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.55;
  color: #444;
}

.pr-reuse-text:empty {
  display: none;
}

.pr-reuse-text.warn {
  color: #8a5300;
}

.pr-reuse-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.pr-reuse-actions button {
  width: 100%;
}

.pr-reuse-actions button[hidden] {
  display: none;
}

/* Nút "Live now" cạnh "Schedule livestream": phát ngay bằng link */
.ms-actions .pr-live-now {
  background: #e53935;
  border-color: #e53935;
}

.ms-actions .pr-live-now:hover {
  background: #c62828;
  border-color: #c62828;
}
