:root {
  --bg: #f3f4f7;
  --ink: #13233f;
  --muted: #5f6f88;
  --line: #dfe4ee;
  --hero-a: #2a65f6;
  --hero-b: #cd00f1;
  --install-a: #5a40ef;
  --install-b: #cc00f1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f1726;
  min-width: 0;
  flex: 1;
}

.brand-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
}

.brand-logo {
  height: 24px;
  width: auto;
  max-width: 100%;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: #1f2c45;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
}

.app-cta {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--install-a) 0%, var(--install-b) 100%);
  border: 1px solid rgba(33, 16, 91, 0.2);
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(90, 64, 239, 0.32);
  padding: 10px 16px;
}

.hero {
  background: linear-gradient(115deg, var(--hero-a) 0%, var(--hero-b) 100%);
  color: #fff;
  padding: 38px 0 34px;
}

.hero-inner {
  text-align: center;
}

.hero h1 {
  margin: 4px 0 24px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.search-form {
  max-width: 840px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 9px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  box-shadow: 0 12px 26px rgba(21, 13, 74, 0.26);
}

body.is-video-ready .search-form {
  display: none;
}

.search-form input {
  border: none;
  outline: none;
  border-radius: 10px;
  background: #f2eff8;
  color: #1c2740;
  min-height: 56px;
  padding: 0 18px;
  font-size: 18px;
}

.search-form input::placeholder {
  color: #a5acc0;
}

.btn {
  border: none;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-paste {
  background: #e8e4f1;
  color: #4a4f8f;
  min-height: 40px;
  height: 40px;
  align-self: center;
}

.btn-download {
  background: linear-gradient(180deg, #5865f1 0%, #4659e1 100%);
  color: #fff;
  min-height: 56px;
  font-size: 18px;
}

.result-box {
  max-width: 1020px;
  margin: 10px auto 0;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(71, 27, 136, 0.64);
}

.result-box.is-hidden {
  display: none;
}

.status-line {
  margin: 0;
  color: #edf3ff;
  font-size: 1.04rem;
  font-weight: 700;
  text-align: center;
}

.timing-line {
  margin: 2px 0 8px;
  color: rgba(227, 235, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.timing-line.is-hidden {
  display: none;
}

.result-box.is-ready .status-line,
.result-box.is-ready .timing-line {
  display: none;
}

.result-layout {
  display: block;
}

.meta-card {
  position: relative;
  border-radius: 0;
  height: 288px;
  overflow: hidden;
  background: #2f195f;
}

.meta-card.is-hidden {
  display: none;
}

.meta-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.01);
}

.meta-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 53%) minmax(0, 47%);
  gap: 10px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(48, 26, 94, 0.36) 0%, rgba(63, 18, 111, 0.28) 46%, rgba(70, 22, 122, 0.62) 100%);
}

.meta-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.meta-user {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.meta-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.meta-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: #f6f2e3;
  object-fit: cover;
  flex-shrink: 0;
}

.meta-public-name {
  margin: 0;
  color: #f8fbff;
  font-size: 2.9rem;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-username {
  margin: 4px 0 0;
  color: #e3eaff;
  font-size: 0.92rem;
  font-weight: 700;
}

.meta-description {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: 0.79rem;
  line-height: 1.17;
  font-weight: 700;
  max-width: 98%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.36);
}

.meta-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.meta-stats {
  margin-top: auto;
  min-height: 44px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  background: rgba(73, 21, 122, 0.72);
}

.meta-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #f4f7ff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.meta-icon {
  width: 15px;
  height: 15px;
  color: #f6fbff;
  flex-shrink: 0;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}

.btn-result {
  min-height: 52px;
  background: #53a8e9;
  color: #041524;
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 500;
}

#btnHd {
  font-weight: 800;
}

.btn-ad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 1px 3px;
  border-radius: 2px;
  border: 1px solid rgba(0, 66, 95, 0.5);
  background: rgba(44, 114, 166, 0.36);
  color: #12435f;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 700;
}

.feature-grid {
  margin: 18px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 28px;
}

body.is-search-context .feature-grid,
body.is-search-context .content-block,
body.is-search-context .faq {
  display: none;
}

.feature-card {
  padding: 4px 10px;
  text-align: center;
}

.feature-title {
  margin: 8px 0 0;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.35;
  color: #1b2d66;
}

.feature-icon {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.content-block,
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
}

.content-block h2 {
  margin: 0 0 10px;
  color: #1c3f7e;
  font-size: 3.8rem;
}

.content-block h3 {
  margin: 14px 0 8px;
  color: #214a8f;
  font-size: 1.95rem;
}

.content-block p,
.content-block li {
  color: #536380;
  font-size: 1.6rem;
  line-height: 1.55;
}

.section-label {
  margin-top: 10px;
  color: #23447b;
  font-size: 1.55rem;
  font-weight: 700;
}

.steps {
  margin: 0;
  padding-left: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.info-grid article {
  border: 1px solid #e4e9f2;
  border-radius: 10px;
  padding: 14px;
  background: #fbfcff;
}

.faq details {
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  padding: 14px 16px;
  background: #f9fbff;
}

.faq details + details {
  margin-top: 10px;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  color: #1f3f77;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq summary::after {
  content: "+";
  color: #2f5db7;
  font-size: 1.24rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin: 8px 0 0;
  color: #5a6a86;
  font-size: 1.1rem;
  line-height: 1.55;
}

.footer {
  background: #eef2f8;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.footer-grid {
  padding: 16px 0 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #294477;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

.footer-note,
.footer-copy {
  margin: 10px 0 0;
  color: #667794;
  font-size: 0.95rem;
}

.footer-grid > .footer-note {
  margin-top: 0;
}

.consent-gate-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 28px));
  background: #ffffff;
  border: 1px solid #d6deeb;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(11, 25, 55, 0.25);
  padding: 14px;
  z-index: 1200;
}

.consent-gate-panel.is-hidden {
  display: none;
}

.consent-title {
  margin: 0;
  font-size: 1.06rem;
  color: #163162;
}

.consent-description {
  margin: 8px 0 0;
  color: #4e6286;
  line-height: 1.45;
  font-size: 0.93rem;
}

.consent-policy-link {
  margin-left: 6px;
  color: #1b4fb1;
  font-weight: 700;
  text-decoration: none;
}

.consent-brave-hint {
  display: block;
  margin-top: 8px;
  color: #7b1f1f;
  font-size: 0.84rem;
  font-weight: 700;
}

.consent-settings {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #f5f8fd;
  border: 1px solid #dde6f5;
  display: grid;
  gap: 8px;
}

.consent-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #22365e;
  font-size: 0.92rem;
}

.consent-choice input {
  width: 16px;
  height: 16px;
}

.consent-choice.is-disabled {
  opacity: 0.75;
}

.consent-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.consent-btn {
  border-radius: 9px;
  border: 1px solid #cfd9ec;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.consent-btn-ghost {
  color: #2b477d;
  background: #fff;
}

.consent-btn-muted {
  color: #203863;
  background: #f2f6fe;
}

.consent-btn-primary {
  color: #fff;
  border-color: #2f5fc8;
  background: linear-gradient(180deg, #3e72df 0%, #2856be 100%);
}

body.consent-gate-active {
  overflow: hidden;
}

body.consent-gate-active::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 36, 0.58);
  z-index: 1190;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .topbar-inner {
    min-height: 66px;
    gap: 10px;
  }

  .brand-logo {
    height: 18px;
    max-width: min(42vw, 170px);
  }

  .brand-icon {
    width: 30px;
    height: 30px;
  }

  .app-cta {
    font-size: 0.95rem;
    border-radius: 9px;
    padding: 8px 12px;
  }

  .hero {
    padding: 28px 0 26px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-form input {
    min-height: 50px;
    font-size: 1.08rem;
  }

  .btn {
    min-height: 50px;
    font-size: 1rem;
  }

  .status-line {
    font-size: 0.95rem;
  }

  .result-layout {
    display: block;
  }

  .meta-card {
    height: 224px;
  }

  .meta-overlay {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
  }

  .meta-header {
    gap: 7px;
  }

  .meta-avatar {
    width: 44px;
    height: 44px;
  }

  .meta-public-name {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .meta-username {
    font-size: 0.56rem;
  }

  .meta-description {
    margin-top: 2px;
    font-size: 0.56rem;
    line-height: 1.08;
    -webkit-line-clamp: 3;
    max-width: 96%;
  }

  .meta-right {
    width: 100%;
    margin-top: auto;
    justify-content: flex-end;
    gap: 5px;
  }

  .meta-stat {
    font-size: 0.44rem;
    gap: 3px;
  }

  .meta-icon {
    width: 10px;
    height: 10px;
  }

  .meta-stats {
    min-height: 28px;
    padding: 4px 6px;
  }

  .result-actions {
    gap: 4px;
    margin-bottom: 2px;
    width: 100%;
  }

  .btn-result {
    min-height: 28px;
    padding: 0 6px;
    font-size: 0.48rem;
    white-space: nowrap;
  }

  .btn-ad {
    margin-left: 3px;
    font-size: 0.4rem;
    padding: 1px 2px;
  }

  .timing-line {
    font-size: 0.8rem;
  }

  .result-actions,
  .feature-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .feature-title {
    font-size: 1rem;
  }

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

  .feature-icon {
    width: 68px;
    height: 68px;
  }

  .feature-card p,
  .content-block p,
  .content-block li,
  .faq p,
  .footer-links a,
  .footer-note,
  .footer-copy {
    font-size: 0.95rem;
  }

  .content-block h2 {
    font-size: 1.8rem;
  }

  .content-block h3 {
    font-size: 1.2rem;
  }

  .section-label,
  .faq summary {
    font-size: 1rem;
  }

  .consent-gate-panel {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 20px);
    padding: 12px;
  }

  .consent-actions {
    flex-direction: column;
  }
}

/* --- Menú flotante de idiomas tipo ssstik.io --- */
.lang-menu-wrap {
  position: relative;
  display: inline-block;
  margin-left: 8px;
  flex-shrink: 0;
}
.lang-menu-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border 0.2s;
  min-width: 120px;
}
.lang-menu-btn:focus,
.lang-menu-btn[aria-expanded="true"] {
  border: 1.5px solid var(--hero-a);
}
.lang-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  margin: 0;
  list-style: none;
  min-width: 180px;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 32px 0 rgba(30,40,90,0.13);
  z-index: 1000;
  padding: 6px 0;
  animation: fadeInLangMenu 0.18s;
}
.lang-menu.is-open {
  display: block;
}
.lang-menu-item {
  display: block;
  padding: 9px 22px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  transition: background 0.13s, color 0.13s;
}
.lang-menu-item:hover,
.lang-menu-item:focus {
  background: var(--hero-a);
  color: #fff;
}
.lang-menu-item.is-active {
  font-weight: 700;
  color: var(--hero-a);
}
@keyframes fadeInLangMenu {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
  .brand-logo {
    height: 16px;
    max-width: min(38vw, 140px);
  }

  .brand-icon {
    width: 26px;
    height: 26px;
  }

  .lang-menu {
    min-width: 220px;
    font-size: 14px;
    left: auto;
    right: 0;
    max-height: 220px;
  }

  .lang-menu-btn {
    min-width: 108px;
    font-size: 14px;
    padding: 6px 10px;
  }
}
