:root {
  color-scheme: dark;
  --bg: #05070b;
  --surface: rgba(17, 22, 31, 0.86);
  --surface-strong: rgba(20, 26, 37, 0.98);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --muted: #8d98aa;
  --muted-strong: #b8c0cd;
  --blue: #0a84ff;
  --blue-strong: #0a74e8;
  --cyan: #64d2ff;
  --green: #30d158;
  --red: #ff6961;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(112deg, rgba(10, 132, 255, 0.10) 0%, transparent 34%),
    linear-gradient(250deg, rgba(48, 209, 88, 0.045) 0%, transparent 32%),
    linear-gradient(180deg, #080b11 0%, var(--bg) 54%, #040609 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.76), transparent 78%);
  content: "";
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.shell {
  width: min(1460px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 70px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 15, 0.76);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.36);
}

.header-meta,
.mini-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill,
.version-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.status-dot {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.11);
}

.status-pill.offline .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 105, 97, 0.11);
}

.version-pill {
  color: #dceaff;
  border-color: rgba(100, 210, 255, 0.20);
  background: rgba(10, 132, 255, 0.10);
}

.page {
  padding: 28px 0 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: end;
  gap: 42px;
  margin-bottom: 22px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  color: #89c9ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 10px rgba(100, 210, 255, 0.68);
  content: "";
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
}

h1 span {
  color: #a7d8ff;
}

.hero-copy {
  max-width: 690px;
  margin: 11px 0 0;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  min-height: 70px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.command-card {
  position: relative;
  z-index: 20;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.015) 55%),
    var(--surface);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
}

.command-card::after {
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 210, 255, 0.78), transparent);
  content: "";
  pointer-events: none;
}

.command-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 170px;
  gap: 10px;
}

.platform-select,
.url-field,
.parse-button {
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.platform-select {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.platform-select:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.065);
}

.platform-select-copy {
  flex: 1;
  min-width: 0;
}

.platform-select-copy strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-select-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.app-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #111b29;
  color: #b9e4ff;
  font-size: 10px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-icon.auto-icon {
  color: #fff;
  background: linear-gradient(145deg, #258fff, #0a74e8);
}

.app-icon.bilibili,
.app-icon.youku,
.app-icon.tencent {
  background: #15263c;
  color: #89c8ff;
}

.app-icon.douyin,
.app-icon.twitter {
  background: #211927;
  color: #ff9fc0;
}

.app-icon.youtube,
.app-icon.sohu {
  background: #2b1619;
  color: #ff8585;
}

.app-icon.redbook,
.app-icon.instagram {
  background: #2a1720;
  color: #ff86aa;
}

.app-icon.weibo,
.app-icon.mgtv,
.app-icon.douyu {
  background: #2a2015;
  color: #ffc36c;
}

.app-icon.zhihu,
.app-icon.facebook {
  background: #15213a;
  color: #8dbdff;
}

.app-icon.acfun,
.app-icon.iqiyi {
  background: #2a2115;
  color: #d9ef83;
}

.app-icon.huya {
  background: #292311;
  color: #ffd56c;
}

.app-icon.tiktok {
  background: #162528;
  color: #69f0e2;
}

.chevron {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border-right: 1.5px solid #8390a3;
  border-bottom: 1.5px solid #8390a3;
}

.url-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 8px 0 16px;
  background: rgba(4, 7, 11, 0.70);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.link-icon {
  position: relative;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.link-icon::before,
.link-icon::after {
  position: absolute;
  width: 10px;
  height: 5px;
  border: 1.6px solid #83a9d1;
  border-radius: 6px;
  content: "";
}

.link-icon::before {
  top: 3px;
  left: 1px;
  transform: rotate(-45deg);
}

.link-icon::after {
  right: 1px;
  bottom: 3px;
  transform: rotate(-45deg);
}

.url-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #d5e0ee;
  font-size: 14px;
}

.url-field input::placeholder {
  color: #697587;
}

.paste-button {
  min-width: 54px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted-strong);
  font-size: 12px;
  cursor: pointer;
}

.paste-button:hover {
  background: rgba(255, 255, 255, 0.09);
}

.parse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-color: rgba(110, 205, 255, 0.28);
  background: linear-gradient(180deg, #258fff 0%, var(--blue-strong) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 12px 26px rgba(10, 116, 232, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 160ms ease, filter 160ms ease;
}

.parse-button:hover {
  filter: brightness(1.06);
}

.parse-button:active {
  transform: scale(0.985);
}

.parse-button:disabled {
  cursor: wait;
  filter: saturate(0.6);
  opacity: 0.72;
}

.scan-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1.7px solid currentColor;
  border-radius: 5px;
}

.scan-icon::after {
  position: absolute;
  top: 7px;
  right: 2px;
  left: 2px;
  height: 1.7px;
  background: currentColor;
  content: "";
}

.platform-menu {
  position: absolute;
  top: 84px;
  left: 15px;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  width: min(620px, calc(100% - 30px));
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(13, 18, 27, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.platform-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  height: 46px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: #dce3ec;
  text-align: left;
  cursor: pointer;
}

.platform-menu button:hover,
.platform-menu button.selected {
  border-color: rgba(100, 210, 255, 0.26);
  background: rgba(10, 132, 255, 0.10);
}

.platform-menu .app-icon {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  font-size: 9px;
}

.platform-menu span:last-child {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 3px 0;
  color: var(--muted);
  font-size: 11px;
}

.command-foot strong {
  color: #cfd7e2;
  font-weight: 600;
}

.command-foot.error strong,
.command-foot.error {
  color: #ff9b96;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #b9c3d1;
  white-space: nowrap;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 21px 2px 11px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-title h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
}

.section-title span {
  color: var(--muted);
  font-size: 11px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.tab {
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 14px;
  align-items: stretch;
}

.platform-panel,
.task-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.043), rgba(255, 255, 255, 0.014));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.platform-panel {
  min-width: 0;
  padding: 14px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 61px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.027);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.platform-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.platform-card.selected {
  border-color: rgba(100, 210, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(10, 132, 255, 0.17), rgba(10, 132, 255, 0.08)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.platform-card.selected .app-icon {
  border-color: rgba(123, 200, 255, 0.42);
  box-shadow: 0 0 18px rgba(10, 132, 255, 0.20);
}

.platform-copy {
  min-width: 0;
}

.platform-copy strong {
  display: block;
  overflow: hidden;
  color: #e7ebf1;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-copy span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #697587;
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.maintenance-tag {
  color: #ffb45c !important;
}

.task-panel {
  position: relative;
  min-width: 0;
  padding: 15px;
}

.task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.task-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.task-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.task-state::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #657183;
  content: "";
}

.task-state.loading {
  color: #b9ddff;
  border-color: rgba(100, 210, 255, 0.18);
  background: rgba(10, 132, 255, 0.09);
}

.task-state.loading::before {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(100, 210, 255, 0.76);
}

.task-state.ready {
  color: #8cf1a6;
  border-color: rgba(48, 209, 88, 0.18);
  background: rgba(48, 209, 88, 0.08);
}

.task-state.ready::before {
  background: var(--green);
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.76);
}

.task-state.error {
  color: #ffaaa5;
  border-color: rgba(255, 105, 97, 0.20);
  background: rgba(255, 105, 97, 0.08);
}

.task-state.error::before {
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 105, 97, 0.72);
}

.task-empty {
  display: grid;
  min-height: 390px;
  place-content: center;
  justify-items: center;
  padding: 60px 34px;
  text-align: center;
}

.task-empty strong {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 650;
}

.task-empty p {
  max-width: 260px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.empty-symbol {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(100, 210, 255, 0.16);
  border-radius: 24px;
  background: rgba(10, 132, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.empty-scan {
  position: relative;
  width: 31px;
  height: 25px;
  border: 2px solid rgba(100, 210, 255, 0.68);
  border-radius: 7px;
}

.empty-scan::before {
  position: absolute;
  top: 10px;
  right: 4px;
  left: 4px;
  height: 2px;
  background: var(--cyan);
  content: "";
  box-shadow: 0 0 12px rgba(100, 210, 255, 0.66);
}

.preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
}

.video-preview {
  position: relative;
  overflow: hidden;
  height: 134px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 15px;
  background:
    linear-gradient(132deg, rgba(10, 132, 255, 0.26), transparent 42%),
    linear-gradient(315deg, rgba(100, 210, 255, 0.12), transparent 48%),
    #0c121b;
}

.video-preview::before,
.video-preview::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.video-preview::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.042) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75), transparent 92%);
}

.video-preview::after {
  top: 17px;
  right: 19px;
  bottom: 17px;
  width: 1px;
  background: linear-gradient(transparent, rgba(100, 210, 255, 0.66), transparent);
  box-shadow: -38px 0 0 rgba(10, 132, 255, 0.16), 38px 0 0 rgba(10, 132, 255, 0.10);
}

.preview-label,
.play-button,
.preview-time {
  position: absolute;
  z-index: 2;
}

.preview-label {
  top: 13px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a8c9e8;
  font-size: 9px;
  font-weight: 700;
}

.preview-label::before {
  width: 18px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(100, 210, 255, 0.7);
  content: "";
}

.play-button {
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.22);
  box-shadow: 0 0 0 10px rgba(10, 132, 255, 0.06), 0 18px 45px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.play-button svg {
  width: 19px;
  height: 19px;
  fill: #fff;
  transform: translateX(1px);
}

.preview-time {
  right: 12px;
  bottom: 10px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.58);
  color: #d7dfeb;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.task-title {
  margin: 12px 1px 4px;
  overflow: hidden;
  color: #eef2f7;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-meta {
  min-height: 15px;
  margin: 0 1px 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-label {
  margin-bottom: 7px;
  color: #7e8998;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.quality-list {
  display: grid;
  max-height: 150px;
  gap: 7px;
  overflow-y: auto;
  scrollbar-color: rgba(100, 210, 255, 0.28) transparent;
  scrollbar-width: thin;
}

.quality-option {
  display: flex;
  align-items: center;
  min-height: 45px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.quality-option.selected {
  border-color: rgba(10, 132, 255, 0.36);
  background: rgba(10, 132, 255, 0.10);
}

.radio {
  display: grid;
  width: 17px;
  height: 17px;
  margin-right: 10px;
  flex: 0 0 17px;
  place-items: center;
  border: 1.5px solid #657286;
  border-radius: 50%;
}

.quality-option.selected .radio {
  border-color: var(--blue);
}

.quality-option.selected .radio::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(10, 132, 255, 0.78);
  content: "";
}

.quality-copy {
  flex: 1;
  min-width: 0;
}

.quality-copy strong {
  display: block;
  overflow: hidden;
  color: #e2e7ef;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-copy span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #697587;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-size {
  margin-left: 12px;
  color: #93a0b3;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 47px;
  margin-top: 12px;
  gap: 8px;
  border: 1px solid rgba(120, 210, 255, 0.28);
  border-radius: 13px;
  background: linear-gradient(180deg, #258fff, var(--blue-strong));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 13px 28px rgba(10, 116, 232, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.download-button:disabled {
  cursor: not-allowed;
  filter: saturate(0.45);
  opacity: 0.54;
}

.download-arrow {
  position: relative;
  width: 14px;
  height: 14px;
  border-bottom: 1.7px solid currentColor;
}

.download-arrow::before {
  position: absolute;
  bottom: 2px;
  left: 6px;
  width: 1.7px;
  height: 11px;
  background: currentColor;
  content: "";
}

.download-arrow::after {
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  content: "";
}

.progress-wrap {
  margin-top: 12px;
}

.progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.22);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 14px rgba(100, 210, 255, 0.54);
  transition: width 0.2s ease;
}

.progress-text {
  margin: 7px 0 0;
  color: var(--muted-strong);
  font-size: 9px;
  text-align: center;
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 9px;
  color: #657183;
  font-size: 9px;
}

.security-note::before {
  width: 8px;
  height: 9px;
  border: 1px solid #657183;
  border-radius: 2px 2px 3px 3px;
  content: "";
}

.admin-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  color: #657183;
  font-size: 11px;
}

.admin-entry a {
  color: #9da9b9;
  text-decoration: none;
}

.admin-entry a:hover {
  color: #d8e0ea;
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .platform-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-stats {
    max-width: 520px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .task-empty {
    min-height: 240px;
  }

  .platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1460px);
  }

  .site-header {
    height: 64px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .version-pill {
    display: none;
  }

  .page {
    padding-top: 22px;
  }

  .hero {
    gap: 16px;
  }

  .eyebrow {
    margin-bottom: 7px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .command-row {
    grid-template-columns: 1fr;
  }

  .platform-select,
  .url-field,
  .parse-button {
    width: 100%;
    height: 54px;
  }

  .platform-menu {
    top: 226px;
    left: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 20px);
    max-height: 370px;
    overflow-y: auto;
  }

  .command-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .mini-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
  }

  .tab {
    flex: 1;
    white-space: nowrap;
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .platform-card {
    height: 58px;
    padding: 0 9px;
  }

  .platform-card .app-icon {
    width: 31px;
    height: 31px;
  }

  .platform-copy strong {
    font-size: 11px;
  }

  .task-panel {
    padding: 14px;
  }
}

@media (max-width: 430px) {
  .status-pill {
    max-width: 126px;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-stats {
    gap: 7px;
  }

  .stat {
    padding: 11px 10px;
  }

  .stat strong {
    font-size: 18px;
  }

  .stat span {
    font-size: 10px;
  }

  .command-card {
    padding: 12px;
    border-radius: 18px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .platform-card {
    height: 56px;
  }

  .quality-size {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
