/* app/web/user/css/video-actions.css */

.action-btn {
  position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
}

.action-btn .action-icon {
  transition: transform 0.18s ease, filter 0.18s ease;
}

.action-btn:hover .action-icon {
  transform: translateY(-1px) scale(1.06);
}

.action-btn.is-active {
  color: #00aeec;
  font-weight: 700;
}

.action-btn.is-active .action-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 2px 4px rgba(0, 174, 236, 0.28));
}

.action-btn.is-loading {
  pointer-events: none;
  opacity: 0.65;
}

.action-btn.is-loading::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-left: 4px;
  border-radius: 50%;
  border: 2px solid rgba(0, 174, 236, 0.25);
  border-top-color: #00aeec;
  animation: videoActionSpin 0.75s linear infinite;
}

@keyframes videoActionSpin {
  to {
    transform: rotate(360deg);
  }
}

.action-btn[data-action="like"].is-active .action-icon {
  color: #00aeec;
}

.action-btn[data-action="favorite"].is-active .action-icon {
  color: #f59e0b;
}

.action-btn[data-action="share"].share-success {
  color: #00aeec;
}

.video-action-tip {
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: none;
  max-width: 80vw;
  padding: 11px 18px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

/* 收藏夹弹窗 */
.favorite-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.56);
}

.favorite-modal-mask.is-show {
  display: flex;
}

.favorite-modal {
  width: 526px;
  max-width: calc(100vw - 32px);
  min-height: 420px;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.favorite-modal-header {
  position: relative;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #18191c;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.favorite-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #9499a0;
  cursor: pointer;
  font-size: 30px;
  line-height: 28px;
  font-weight: 300;
}

.favorite-modal-close:hover {
  color: #18191c;
}

.favorite-modal-body {
  flex: 1;
  padding: 12px 44px 0;
  overflow-y: auto;
}

.favorite-folder-list {
  min-height: 190px;
}

.favorite-folder-item {
  height: 56px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  column-gap: 16px;
  color: #18191c;
  cursor: pointer;
  user-select: none;
}

.favorite-folder-checkbox {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.favorite-folder-checkbox input {
  display: none;
}

.favorite-folder-checkbox span {
  width: 26px;
  height: 26px;
  display: block;
  border-radius: 5px;
  border: 2px solid #d0d7de;
  background: #fff;
  transition: all 0.15s ease;
}

.favorite-folder-checkbox input:checked + span {
  border-color: #00aeec;
  background: #00aeec;
  position: relative;
}

.favorite-folder-checkbox input:checked + span::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 7px;
  height: 14px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.favorite-folder-name {
  min-width: 0;
  color: #18191c;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-folder-count {
  color: #475569;
  font-size: 14px;
}

.favorite-folder-empty,
.favorite-folder-loading {
  height: 170px;
  display: grid;
  place-items: center;
  color: #9499a0;
  font-size: 14px;
}

.favorite-create-row {
  margin-top: 10px;
}

.favorite-create-btn {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid #c9d1d9;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 15px;
}

.favorite-create-btn:hover {
  border-color: #00aeec;
  color: #00aeec;
}

.favorite-create-plus {
  font-size: 34px;
  line-height: 1;
  color: #94a3b8;
  font-weight: 300;
}

.favorite-create-form {
  display: none;
  grid-template-columns: 1fr 76px;
  gap: 10px;
}

.favorite-create-form.is-show {
  display: grid;
}

.favorite-create-input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #c9d1d9;
  border-radius: 6px;
  outline: none;
  color: #18191c;
  font-size: 14px;
}

.favorite-create-input:focus {
  border-color: #00aeec;
}

.favorite-create-submit {
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: #00aeec;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.favorite-create-submit:disabled {
  cursor: not-allowed;
  background: #d9dde2;
  color: #9499a0;
}

.favorite-modal-footer {
  margin: 38px 44px 0;
  padding: 22px 0;
  border-top: 1px solid #e3e5e7;
  display: flex;
  justify-content: center;
}

.favorite-confirm-btn {
  width: 200px;
  height: 50px;
  border: 0;
  border-radius: 6px;
  background: #00aeec;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.favorite-confirm-btn:disabled {
  cursor: not-allowed;
  background: #d9dde2;
  color: #9499a0;
}

.favorite-confirm-btn:not(:disabled):hover {
  background: #00a1d6;
}