/* ============================================================================
   Simply Video Downloader Pro — simplyapphub.com product site
   Shares the Simply AppHub site system; palette follows the extension's
   "Aurora" theme so the page and the product look like one product.
   ========================================================================== */
:root {
  --bg: #f7f5ff;
  --surface: #ffffff;
  --surface-soft: #f1ecff;
  --ink: #16132b;
  --muted: #625d80;
  --line: #e3ddf7;
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --navy: #16132b;
  --navy-2: #2a1d5e;
  --cyan: #06b6d4;
  --coral: #c026d3;
  --green: #12a15e;
  --white: #ffffff;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(35, 20, 90, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--purple-dark);
  border-radius: var(--radius);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--white);
  background: rgba(22, 19, 43, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.nav-links a,
.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.nav-cta {
  padding: 0 15px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.nav-cta.is-pending {
  cursor: default;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 26px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(108, 92, 255, 0.16), transparent 36%),
    linear-gradient(180deg, var(--navy), #110d28 74%, #1b1248);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(540px, 1.1fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #bcb6ff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(40px, 3.7vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.tagline {
  margin: 16px 0 0;
  color: var(--white);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 750;
  line-height: 1.15;
}

.lead {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  box-shadow: 0 14px 32px rgba(79, 52, 238, 0.32);
}

.store-pending {
  cursor: default;
}

.store-pending:hover,
.store-pending:focus-visible,
.nav-cta.is-pending:hover,
.nav-cta.is-pending:focus-visible {
  transform: none;
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.button:hover,
.button:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-2px);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.trust-row span {
  padding: 7px 10px;
  color: #d5d2ff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.hero-media,
.product-shot,
.wide-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media {
  transform: perspective(1200px) rotateY(-2deg);
}

.hero-media img,
.product-shot img,
.wide-shot img {
  width: 100%;
  height: auto;
}

.fact-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
}

.fact-strip div {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.fact-strip div:last-child {
  border-right: 0;
}

.fact-strip strong {
  font-size: 23px;
}

.fact-strip span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.section {
  padding: 66px 0;
  scroll-margin-top: 78px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.feature-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.section-heading > p:last-child,
.feature-copy > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

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

.mode-card,
.feature-grid article,
.privacy-points article {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(22, 19, 43, 0.05);
}

.mode-card span {
  color: var(--purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.mode-card h3,
.feature-grid h3 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.mode-card p,
.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(560px, 1.28fr);
  align-items: center;
  gap: 48px;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-row.reverse .product-shot {
  order: 1;
}

.dark-band {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.dark-band .feature-copy > p {
  color: rgba(255, 255, 255, 0.7);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.4;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 6px;
  border-left: 2px solid #9d94ff;
  border-bottom: 2px solid #9d94ff;
  transform: rotate(-45deg);
}

.control-section,
.privacy-section {
  background: var(--surface);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.mini-grid span {
  padding: 10px 12px;
  color: #443b80;
  background: var(--surface-soft);
  border: 1px solid #dbd7ff;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 750;
}

.editor-section {
  background: linear-gradient(180deg, #f1efff, var(--bg));
}

.wide-shot {
  border-color: var(--line);
}

.export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.export-row span {
  padding: 8px 12px;
  color: #443b80;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.privacy-points {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.privacy-points article {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
}

.privacy-points strong {
  font-size: 13px;
}

.privacy-points span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--purple-dark);
  font-size: 14px;
  font-weight: 850;
}

.text-link::after {
  content: "→";
  margin-left: 8px;
}

.all-features {
  background: #eeeff6;
}

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

.feature-grid article {
  min-height: 166px;
}

.feature-grid h3 {
  margin-top: 0;
}

.promo-section {
  padding: 54px 0;
  background: var(--navy);
}

.promo-section img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.66);
  background: #0d0a1d;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.policy-back {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 750;
}

.policy-back:hover,
.policy-back:focus-visible {
  color: var(--white);
}

.policy-main {
  min-height: 70vh;
}

.policy-hero {
  padding: 58px 0 54px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(108, 92, 255, 0.24), transparent 46%),
    linear-gradient(180deg, var(--navy), #1b1248);
}

.policy-hero-inner {
  max-width: 860px;
}

.policy-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.policy-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.6;
}

.policy-updated {
  display: block;
  margin-top: 18px;
  color: #c7c2ff;
  font-size: 12px;
  font-weight: 750;
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: center;
  align-items: start;
  gap: 34px;
  padding-top: 54px;
  padding-bottom: 70px;
}

.policy-summary {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid #d8d5ff;
  border-radius: var(--radius);
}

.policy-summary strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.policy-summary span {
  position: relative;
  padding-left: 18px;
  color: #514d6b;
  font-size: 12px;
  line-height: 1.4;
}

.policy-summary span::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.policy-content {
  padding: 8px 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.policy-content section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.policy-content section:last-child {
  border-bottom: 0;
}

.policy-content h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.policy-content p {
  margin: 0;
}

.policy-content ul {
  margin: 0;
  padding-left: 20px;
}

.policy-content li + li {
  margin-top: 8px;
}

.policy-content strong {
  color: var(--ink);
}

.policy-content a {
  color: var(--purple-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  color: var(--white);
}

.footer-brand img {
  width: 30px;
  height: 30px;
}

.footer-inner p {
  margin: 0 auto 0 0;
  font-size: 12px;
}

.footer-inner > div {
  display: flex;
  gap: 18px;
  font-size: 12px;
  font-weight: 700;
}

.reveal {
  opacity: 1;
}

body.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.motion-ready .reveal.in-view {
  opacity: 1;
  transform: none;
}

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

  .hero-copy {
    max-width: 720px;
  }

  .hero-media {
    transform: none;
  }

  .feature-copy {
    max-width: 720px;
  }

  .feature-row.reverse .feature-copy,
  .feature-row.reverse .product-shot {
    order: initial;
  }

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

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

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav {
    min-height: auto;
    padding: 9px 0;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .brand {
    font-size: 11px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .nav-links a {
    min-height: 34px;
  }

  .nav-cta {
    min-height: 36px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .tagline {
    font-size: 21px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .fact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-strip div {
    min-height: 66px;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .fact-strip div:nth-child(even) {
    border-right: 0;
  }

  .fact-strip div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .section {
    padding: 44px 0;
  }

  .section-heading h2,
  .feature-copy h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .mode-grid,
  .feature-grid,
  .check-list,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .mode-card h3 {
    margin-top: 14px;
  }

  .privacy-points article {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .footer-inner p {
    margin: 0;
  }

  .policy-hero {
    padding: 42px 0 38px;
  }

  .policy-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 44px;
  }

  .policy-summary {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-summary strong {
    grid-column: 1 / -1;
  }

  .policy-content {
    padding: 2px 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --- Simply Video Downloader Pro additions ------------------------------- */

.policy-content h3 {
  margin: 26px 0 8px;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.policy-content table {
  width: 100%;
  margin: 14px 0 4px;
  border-collapse: collapse;
  font-size: 0.94rem;
  display: block;
  overflow-x: auto;
}

.policy-content table thead th {
  text-align: left;
  padding: 10px 12px;
  color: var(--white);
  background: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}

.policy-content table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.policy-content table tbody tr:nth-child(even) {
  background: var(--surface-soft);
}

.policy-content code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  word-break: break-word;
}

.callout {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.callout p:last-child {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.faq-list details {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq-list details[open] {
  box-shadow: var(--shadow);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--purple);
  font-weight: 700;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.faq-list details p:last-child {
  margin-bottom: 0;
}

/* Product UI visuals are drawn from the extension's real controls and states. */
.product-visual {
  color: #19162c;
  background: #f8f7ff;
  border-color: rgba(174, 164, 220, 0.42);
  font-size: 13px;
}

.product-visual .mock-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  color: #fff;
  background: #6d28d9;
  border: 0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}

.product-visual figcaption {
  padding: 10px 14px;
  color: #6b6684;
  background: #efecfb;
  border-top: 1px solid #ded8f2;
  font-size: 11px;
  line-height: 1.4;
}

.visual-topbar,
.visual-appbar,
.visual-toolbar,
.quality-head,
.progress-head,
.privacy-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.visual-topbar {
  min-height: 34px;
  padding: 0 14px;
  color: #a9a2cb;
  background: #19152e;
  font-size: 10px;
  font-weight: 700;
}

.visual-topbar strong {
  color: #d5d0f1;
  font-size: 10px;
}

.visual-appbar {
  gap: 10px;
  padding: 13px 14px;
  background: #fff;
  border-bottom: 1px solid #e5e0f4;
}

.visual-appbar img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.visual-appbar > div:nth-child(2) {
  display: grid;
  gap: 2px;
  margin-right: auto;
}

.visual-appbar strong,
.visual-media-row strong,
.quality-list strong,
.queue-row strong {
  font-size: 12px;
}

.visual-appbar span,
.visual-media-row span,
.quality-list span,
.queue-row small {
  color: #756f8e;
  font-size: 10px;
}

.visual-actions {
  display: flex !important;
  gap: 5px !important;
  margin: 0 !important;
}

.visual-actions b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #5f5877;
  background: #f1eff9;
  border: 1px solid #e0dbf0;
  border-radius: 7px;
  font-size: 12px;
}

.visual-toolbar {
  display: grid;
  gap: 9px;
  padding: 10px 14px;
  background: #f9f8fd;
  border-bottom: 1px solid #e5e0f4;
}

.visual-search {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: #8a849d;
  background: #fff;
  border: 1px solid #dcd6ee;
  border-radius: 7px;
  font-size: 11px;
}

.visual-toolbar > div {
  display: flex;
  gap: 6px;
}

.visual-toolbar > div span,
.visual-toolbar > div strong {
  padding: 5px 8px;
  color: #655f79;
  background: #fff;
  border: 1px solid #ddd7ec;
  border-radius: 999px;
  font-size: 9px;
}

.visual-toolbar > div strong {
  color: #fff;
  background: #6d28d9;
  border-color: #6d28d9;
}

.visual-media-list {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.visual-media-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  background: #fff;
  border: 1px solid #e0dbea;
  border-radius: 8px;
}

.visual-media-row.is-featured {
  border-color: #b8a4f6;
  background: #faf8ff;
}

.visual-media-row .mock-button {
  color: #6d28d9;
  background: #f4f0ff;
  border: 1px solid #d8cdf8;
}

.visual-media-row.is-featured .mock-button {
  color: #fff;
  background: #6d28d9;
  border-color: #6d28d9;
}

.visual-media-row > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.visual-media-row > div strong,
.visual-media-row > div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-thumb {
  width: 46px;
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  color: #fff !important;
  border-radius: 6px;
  font-size: 9px !important;
  font-weight: 900;
}

.thumb-violet { background: #7255d9; }
.thumb-teal { background: #148e86; }
.thumb-coral { background: #c35679; }
.thumb-blue { background: #287ac4; }

.quality-visual,
.progress-visual,
.privacy-visual {
  padding: 18px;
  background: #f7f5fc;
}

.quality-visual figcaption,
.progress-visual figcaption,
.privacy-visual figcaption {
  margin: 14px -18px -18px;
}

.quality-head,
.progress-head,
.privacy-visual-head {
  padding-bottom: 14px;
  border-bottom: 1px solid #ded9ed;
}

.quality-head > div,
.privacy-visual-head {
  display: grid;
  gap: 3px;
}

.quality-head span,
.progress-head span,
.privacy-visual-head span {
  color: #77708e;
  font-size: 10px;
}

.quality-head strong,
.progress-head strong,
.privacy-visual-head strong {
  color: #1a172b;
  font-size: 15px;
}

.quality-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.quality-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #ded8ed;
  border-radius: 8px;
}

.quality-list article > div {
  display: grid;
  gap: 3px;
}

.quality-list article > b {
  padding: 4px 7px;
  color: #4e2a9d;
  background: #eee8ff;
  border-radius: 999px;
  font-size: 9px;
}

.quality-list article.is-best {
  border-color: #ad95f0;
}

.progress-head {
  margin-bottom: 10px;
}

.queue-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #e2ddec;
}

.queue-row > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #5f3eb5;
  background: #ece6ff;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
}

.queue-row.complete > span {
  color: #087a4c;
  background: #dff7e9;
}

.queue-row > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.queue-row i {
  height: 5px;
  overflow: hidden;
  background: #e1dced;
  border-radius: 999px;
}

.queue-row i b {
  width: 72%;
  height: 100%;
  display: block;
  background: #6d28d9;
  border-radius: inherit;
}

.themes-visual {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  background: #f8f7fc;
}

.theme-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 22px 16px;
  color: #a9a3c7;
  background: #18142d;
}

.theme-sidebar img {
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
  border-radius: 8px;
}

.theme-sidebar strong {
  margin-bottom: 12px;
  color: #fff;
  font-size: 15px;
}

.theme-sidebar span {
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 11px;
}

.theme-sidebar span.active {
  color: #fff;
  background: #6d28d9;
}

.theme-content {
  padding: 24px;
}

.theme-content > div:first-child p {
  margin: 0 0 5px;
  color: #6d28d9;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.theme-content h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.theme-content > div:first-child > span {
  color: #77708e;
  font-size: 11px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.theme-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px;
  background: #fff;
  border: 1px solid #dfdaeb;
  border-radius: 8px;
}

.theme-grid i {
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(125deg, var(--theme-a), var(--theme-b) 52%, var(--theme-c));
}

.theme-grid strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
}

.theme-grid span {
  color: #827b98;
  font-size: 9px;
}

.theme-system { --theme-a: #f8f8fc; --theme-b: #77708e; --theme-c: #171426; }
.theme-aurora { --theme-a: #7c3aed; --theme-b: #c026d3; --theme-c: #06b6d4; }
.theme-porcelain { --theme-a: #4f5bd5; --theme-b: #3b82f6; --theme-c: #0f766e; }
.theme-rosewater { --theme-a: #e11d48; --theme-b: #fb7185; --theme-c: #f59e0b; }
.theme-nebula { --theme-a: #a78bfa; --theme-b: #e879f9; --theme-c: #22d3ee; }
.theme-midnight { --theme-a: #818cf8; --theme-b: #38bdf8; --theme-c: #34d399; }
.theme-abyss { --theme-a: #22d3ee; --theme-b: #3b82f6; --theme-c: #7dd3fc; }
.theme-ember { --theme-a: #fb7185; --theme-b: #f97316; --theme-c: #fbbf24; }
.theme-matcha { --theme-a: #34d399; --theme-b: #84cc16; --theme-c: #bef264; }
.theme-carbon { --theme-a: #fff; --theme-b: #a3a3a3; --theme-c: #525252; }

.privacy-visual ul {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.privacy-visual li {
  position: relative;
  padding-left: 20px;
  color: #4f4a63;
  font-size: 11px;
}

.privacy-visual li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0c8b57;
  font-weight: 900;
}

.sharing-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: #fff;
  border: 1px solid #ddd7ec;
  border-radius: 8px;
}

.sharing-control > div {
  display: grid;
  gap: 3px;
}

.sharing-control strong {
  font-size: 12px;
}

.sharing-control span {
  color: #77708e;
  font-size: 10px;
}

.sharing-control > i {
  width: 36px;
  height: 21px;
  padding: 3px;
  background: #c7c1d7;
  border-radius: 999px;
}

.sharing-control > i b {
  width: 15px;
  height: 15px;
  display: block;
  background: #fff;
  border-radius: 50%;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 11px;
  color: #406354;
  background: #e9f8f0;
  border: 1px solid #c9ead8;
  border-radius: 8px;
  font-size: 10px;
}

.privacy-note strong {
  padding: 3px 6px;
  color: #fff;
  background: #13865a;
  border-radius: 5px;
}

.privacy-visual > a {
  display: inline-flex;
  margin-top: 12px;
  color: #6d28d9;
  font-size: 10px;
  font-weight: 800;
}

.promo-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px;
  color: #fff;
  background: #211947;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.promo-card > img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
}

.promo-card h2 {
  max-width: 710px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
}

.promo-card > div > p:last-child {
  max-width: 670px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .theme-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .promo-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .promo-card > img {
    width: 72px;
    height: 72px;
  }

  .promo-card > .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .visual-media-row,
  .queue-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .visual-media-row > .mock-button,
  .queue-row > .mock-button {
    grid-column: 2;
    justify-self: start;
  }

  .visual-thumb,
  .queue-row > span {
    width: 38px;
    height: 38px;
  }

  .quality-list article {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .quality-list article > b {
    display: none;
  }

  .themes-visual {
    grid-template-columns: 1fr;
  }

  .theme-sidebar {
    grid-template-columns: auto 1fr;
    padding: 14px;
  }

  .theme-sidebar span,
  .theme-sidebar strong {
    display: none;
  }

  .theme-content {
    padding: 16px;
  }

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

  .promo-card {
    grid-template-columns: 1fr;
  }
}
