:root {
  --ink: #17211e;
  --muted: #66706c;
  --purple: #0f766e;
  --deep: #115e59;
  --warm: #d97706;
  --line: rgba(255, 255, 255, 0.82);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #eef3f1;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  min-width: 320px;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, #e8f2ef 0%, #f7f7f3 52%, #e8f1f5 100%);
}
button,
textarea {
  font: inherit;
}
.shell {
  width: min(1060px, calc(100% - 44px));
  margin: auto;
  padding-bottom: 78px;
}
.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}
.brand em {
  margin-top: 5px;
  color: #6d7773;
  font:
    500 8px ui-monospace,
    monospace;
  letter-spacing: 0;
}
.mark {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 25px;
  height: 25px;
  transform: skewY(-13deg);
}
.mark i {
  display: block;
  width: 6px;
  border-radius: 6px;
  background: var(--purple);
}
.mark i:nth-child(1) {
  height: 10px;
}
.mark i:nth-child(2) {
  height: 19px;
}
.mark i:nth-child(3) {
  height: 14px;
  background: var(--warm);
}
.admin-link {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(31, 61, 52, 0.08);
  backdrop-filter: blur(15px);
  color: #43514c;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.hero {
  padding: 59px 0 43px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  color: #35665f;
  font:
    500 10px ui-monospace,
    monospace;
  letter-spacing: 0;
}
.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}
h1 {
  max-width: 720px;
  margin: 0;
  font-size: 68px;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: 0 2px rgba(255, 255, 255, 0.68);
}
h1 strong {
  color: var(--deep);
  text-shadow:
    0 1px rgba(255, 255, 255, 0.6),
    0 12px 26px rgba(17, 94, 89, 0.12);
}
.hero > p:last-child {
  margin: 25px 0 0;
  color: #56645f;
  font-size: 15px;
  line-height: 1.85;
}
.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow:
    0 25px 58px rgba(31, 61, 52, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(26px) saturate(135%);
  isolation: isolate;
}
.glass-card:before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 68%;
  height: 70px;
  top: -58px;
  left: 10%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(18px);
}
.resolver {
  padding: 0 23px 22px;
}
.tabs {
  display: flex;
  gap: 25px;
  overflow: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.64);
}
.tab {
  flex: none;
  padding: 17px 0 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #777286;
  font-size: 13px;
  font-weight: 700;
}
.tab.active {
  border-color: var(--purple);
  color: var(--ink);
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
}
.douyin {
  background: #15131c;
  box-shadow: 3px 1px #f65a81;
}
.xhs {
  background: #ff2442;
}
.kuaishou {
  background: #ff5b00;
}
form {
  padding-top: 19px;
}
label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
}
textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}
textarea::placeholder {
  color: #9c96a8;
}
.form-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  color: #7e7889;
  font-size: 11px;
}
.primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  padding: 13px;
  background: #173f3a;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.24),
    0 11px 22px rgba(23, 63, 58, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.primary > * {
  position: relative;
}
.primary b {
  font-size: 20px;
  font-weight: 400;
}
.primary:hover {
  filter: brightness(1.12);
}
.primary:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}
.notice {
  margin: 20px auto 0;
  max-width: 680px;
  color: #777184;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}
.result {
  margin-top: 45px;
}
.hidden {
  display: none;
}
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px 18px;
}
.result-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}
.live {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5f586f;
  font-size: 11px;
}
.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2cbf85;
  box-shadow: 0 0 0 4px rgba(225, 248, 239, 0.7);
}
.work {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
}
.cover {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  background: linear-gradient(145deg, #5eead4, #115e59);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.68),
    0 8px 19px rgba(23, 63, 58, 0.16);
  color: #fff;
  font-size: 23px;
}
.cover.xhs {
  background: linear-gradient(145deg, #ffb7c4, #ed2442);
}
.cover.kuaishou {
  background: linear-gradient(145deg, #ffbb83, #fd5c15);
}
.cover-mark {
  font-size: 19px;
  font-weight: 800;
}
.work span {
  color: #716980;
  font-size: 11px;
}
.work > div:last-child {
  min-width: 0;
  flex: 1;
}
.work h3 {
  max-width: 100%;
  margin: 4px 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work p {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #817b89;
  font:
    10px ui-monospace,
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.warning {
  margin: 0;
  padding: 12px 26px;
  background: rgba(255, 247, 213, 0.42);
  color: #71633d;
  font-size: 11px;
  line-height: 1.6;
}
.media-list {
  padding: 0 26px;
}
.media-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.57);
}
.media-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.78);
  color: #52645e;
}
.media-icon.video {
  background: linear-gradient(
    135deg,
    rgba(204, 251, 241, 0.9),
    rgba(153, 246, 228, 0.42)
  );
  color: #0f766e;
}
.media-text {
  flex: 1;
}
.media-text strong,
.media-text small {
  display: block;
}
.media-text strong {
  font-size: 12px;
}
.media-text small {
  margin-top: 4px;
  color: #827c89;
  font:
    10px ui-monospace,
    monospace;
}
.media-row em {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  padding: 4px 6px;
  background: rgba(236, 253, 245, 0.76);
  color: #0f766e;
  font:
    500 9px ui-monospace,
    monospace;
}
.download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 26px;
  background: rgba(255, 255, 255, 0.16);
  color: #565063;
  font-size: 12px;
  font-weight: 600;
}
.compact {
  width: auto;
  margin: 0;
  padding: 10px 13px;
  font-size: 12px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 76px;
}
.features article {
  min-height: 158px;
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.76),
    0 14px 30px rgba(31, 61, 52, 0.08);
  backdrop-filter: blur(16px);
}
.features b {
  color: #b45309;
  font:
    500 11px ui-monospace,
    monospace;
}
.features h3 {
  margin: 13px 0 7px;
  font-size: 14px;
}
.features p {
  margin: 0;
  color: #706a7c;
  font-size: 12px;
  line-height: 1.75;
}
.toast {
  position: fixed;
  z-index: 5;
  bottom: 27px;
  left: 50%;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(23, 63, 58, 0.88);
  box-shadow:
    0 12px 30px rgba(23, 63, 58, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
button:focus-visible,
textarea:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.45);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  h1 {
    font-size: 56px;
  }
}
@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1060px);
  }
  .topbar {
    height: 76px;
  }
  .hero {
    padding: 42px 0 31px;
  }
  h1 {
    font-size: 42px;
    letter-spacing: 0;
  }
  .hero > p:last-child {
    font-size: 14px;
  }
  .resolver {
    padding: 0 16px 17px;
  }
  .tabs {
    gap: 16px;
  }
  .tab {
    font-size: 12px;
  }
  .form-foot span:last-child {
    display: none;
  }
  .result-head,
  .work,
  .download-bar {
    padding-left: 17px;
    padding-right: 17px;
  }
  .live {
    display: none;
  }
  .media-list {
    padding: 0 17px;
  }
  .warning {
    padding-left: 17px;
    padding-right: 17px;
  }
  .work h3,
  .work p {
    max-width: 190px;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 56px;
  }
  .features article {
    min-height: auto;
  }
  .admin-link {
    font-size: 11px;
  }
  .admin-link,
  .glass-card,
  .features article,
  .toast,
  .video-preview {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── Media preview & download (v1.09) ───────────────────────── */
.media-icon {
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
  border-radius: 8px;
}
.media-icon:hover {
  background: rgba(15, 118, 110, 0.14);
  border-color: var(--purple);
  transform: scale(1.08);
}
.media-icon:active {
  transform: scale(0.96);
}
/* Video preview player */
.video-preview {
  margin: 4px 0 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  animation: previewIn 0.3s ease-out;
  position: relative;
}
.video-preview video {
  width: 100%;
  max-height: 420px;
  border-radius: 8px;
  background: #000;
  display: block;
  outline: none;
}
.image-preview {
  margin: 4px 0 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: previewIn 0.3s ease-out;
  position: relative;
  max-width: 100%;
}
.image-preview img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
/* Preview close button */
.preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}
.preview-close:hover {
  background: rgba(220, 53, 69, 0.85);
  border-color: transparent;
  color: #fff;
}
@keyframes previewIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Cover thumbnail image */
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: none;
}
.cover img[style*="display: block"],
.cover img[style*="display:"] {
  display: block;
}

/* Video preview player enhancements (v1.11) */
.video-preview video {
  cursor: pointer;
}
.video-preview video::webkit-media-controls-panel {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}
/* Loading/buffering indicator inside video container */
.video-preview .v-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  z-index: 1;
  pointer-events: none;
}
.video-preview .v-loading::after {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vSpin 0.7s linear infinite;
}
@keyframes vSpin {
  to {
    transform: rotate(360deg);
  }
}
/* Error state inside video container */
.video-preview .v-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  z-index: 1;
  color: #ff6b6b;
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

/* Input utility and policy footer. */
.input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.input-label label {
  margin: 0;
}
.paste-button {
  width: auto;
  min-width: 52px;
  height: 32px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.48);
  color: #0f766e;
  font:
    600 12px system-ui,
    "Microsoft YaHei";
  cursor: pointer;
}
.paste-button:hover {
  background: rgba(255, 255, 255, 0.7);
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 2px 40px;
  color: #746e7c;
  font-size: 11px;
}
.footer a {
  color: #0f766e;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}
