/*
 * MIGNO TOKYO 8.0
 * Final MVP composition: concise mobile hero, ranking immediately after FV,
 * no standalone UV feature block, and restrained platform branding.
 */

/* --------------------------------------------------------------------------
 * Hero and section flow
 * ----------------------------------------------------------------------- */
.trend-hero-v7 {
  min-height: 780px;
}
.trend-hero-v7 .trend-hero-grid {
  min-height: 780px;
}
.trend-hero-v7 .trend-hero-copy {
  padding-bottom: 20px;
}
.hero-ranking-cta {
  display: none;
}
.ranking-section {
  position: relative;
  scroll-margin-top: 86px;
  padding-top: 72px;
}
.coverage-note {
  width: fit-content;
  margin-top: 13px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(190, 117, 226, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: #75667f;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
}
.category-section {
  border-top: 1px solid rgba(83, 62, 97, .06);
  border-bottom: 1px solid rgba(83, 62, 97, .06);
  background: linear-gradient(180deg, #fff 0%, #fdfbff 100%);
}

/* Keep the desktop visual focused: phone + three brand-owned decorations. */
.trend-hero-v7 .hero-v6-heart {
  left: 4%;
  top: 116px;
  width: 104px;
}
.trend-hero-v7 .hero-v6-hash {
  left: 7%;
  bottom: 108px;
  width: 80px;
  opacity: .88;
}
.trend-hero-v7 .hero-v6-arrow {
  right: 0;
  bottom: 138px;
  width: 100px;
  opacity: .82;
}
.trend-hero-v7 .hero-v6-sparkles-a {
  opacity: .25;
}
.trend-hero-v7 .hero-v6-sparkles-b {
  opacity: .16;
}

/* --------------------------------------------------------------------------
 * Official-style platform marks used only in filters and source badges.
 * TikTok remains a text label until formal logo-use clearance is confirmed.
 * ----------------------------------------------------------------------- */
.platform-mark-image {
  width: 15px;
  height: 15px;
  display: block;
  object-fit: contain;
}
.platform-text-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
}
.cp-platform-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cp-platform-tabs button .platform-mark-image {
  width: 14px;
  height: 14px;
}
.cp-platform-tabs button.active .platform-mark-image {
  filter: brightness(0) invert(1);
}
.cp-platform-tabs button.active .platform-text-mark {
  color: #fff;
}
.platform-badge {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(54, 46, 61, .10);
  border-radius: 10px;
  background: #fff !important;
  color: #111 !important;
  box-shadow: 0 7px 16px rgba(61, 44, 77, .08) !important;
}
.platform-badge .platform-mark-image {
  width: 17px;
  height: 17px;
}
.platform-badge.tiktok {
  width: 50px;
  flex-basis: 50px;
  box-shadow: 0 7px 16px rgba(61, 44, 77, .08) !important;
}
.platform-badge.tiktok .platform-text-mark {
  font-size: 8px;
}

/* Product images and Amazon hierarchy are intentionally explicit. */
.product-card-v6 .product-image-link,
.product-card-v6 .product-image-link img,
.voice-product-image img,
.compact-rank-image img {
  opacity: 1;
  visibility: visible;
}
.voice-product-image img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}
.product-commerce-links {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
 * Mobile: concise, practical FV. The phone mockup and 3D decorations are
 * removed because the visitor is already using a phone.
 * ----------------------------------------------------------------------- */
@media (max-width: 760px) {
  .trend-hero-v7 {
    min-height: 0;
    overflow: hidden;
  }
  .trend-hero-v7 .trend-hero-background img {
    object-position: 50% 32%;
  }
  .trend-hero-v7 .trend-hero-grid {
    width: min(calc(100% - 30px), 1260px);
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 94px;
    padding-bottom: 38px;
  }
  .trend-hero-v7 .trend-hero-copy {
    max-width: none;
    padding-bottom: 0;
  }
  .trend-hero-v7 .trend-brand-kicker {
    gap: 4px;
    margin-bottom: 17px;
  }
  .trend-hero-v7 .trend-brand-kicker span {
    font-size: 9px;
  }
  .trend-hero-v7 .trend-brand-kicker b {
    font-size: 8px;
    letter-spacing: .12em;
  }
  .trend-hero-v7 h1 {
    max-width: 345px;
    font-size: clamp(34px, 10.3vw, 43px);
    line-height: 1.34;
  }
  .trend-hero-v7 .trend-hero-copy > p {
    max-width: 350px;
    margin-top: 16px;
    font-size: 11.5px;
    line-height: 1.78;
  }
  .trend-hero-v7 .hero-search {
    height: 56px;
    margin-top: 22px;
    padding: 7px 7px 7px 17px;
  }
  .trend-hero-v7 .hero-search > svg {
    width: 19px;
    height: 19px;
  }
  .trend-hero-v7 .hero-search input {
    font-size: 12px;
  }
  .trend-hero-v7 .hero-search button {
    width: 42px;
    height: 42px;
  }
  .trend-hero-v7 .hero-trends {
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    overflow: visible;
  }
  .trend-hero-v7 .hero-trends button {
    padding: 7px 10px;
    font-size: 8.5px;
  }
  .trend-hero-v7 .hero-trends button:nth-child(n+4) {
    display: none;
  }
  .hero-ranking-cta {
    width: fit-content;
    min-height: 44px;
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 17px;
    border-radius: 999px;
    background: linear-gradient(105deg, #ff668f, #9a72f6 72%, #718cff);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(164, 93, 214, .22);
  }
  .hero-ranking-cta svg {
    width: 14px;
    height: 14px;
  }
  .trend-hero-v7 .trend-hero-visual,
  .trend-hero-v7 .hero-v6-object,
  .trend-hero-v7 .hero-v6-sparkles {
    display: none !important;
  }
  .ranking-section {
    padding-top: 52px;
  }
  .coverage-note {
    margin-top: 10px;
    font-size: 8.5px;
  }
  .category-section {
    padding-top: 42px;
    padding-bottom: 44px;
  }
  .cp-platform-tabs button {
    gap: 4px;
  }
  .cp-platform-tabs button .platform-mark-image {
    width: 12px;
    height: 12px;
  }
  .cp-platform-tabs button span:not(.platform-text-mark) {
    display: none;
  }
  .cp-platform-tabs button[data-platform="TikTok"] .platform-text-mark {
    font-size: 8px;
  }
}

@media (max-width: 430px) {
  .trend-hero-v7 .trend-hero-grid {
    padding-top: 88px;
    padding-bottom: 34px;
  }
  .trend-hero-v7 h1 {
    font-size: 35px;
  }
}

/* Tablet: keep the first view compact instead of stacking a large mock phone. */
@media (min-width: 761px) and (max-width: 1100px) {
  .trend-hero-v7,
  .trend-hero-v7 .trend-hero-grid {
    min-height: 720px;
  }
  .trend-hero-v7 .trend-hero-grid {
    grid-template-columns: minmax(0, 760px);
    justify-content: start;
    align-items: center;
    padding-top: 112px;
    padding-bottom: 54px;
  }
  .trend-hero-v7 .trend-hero-copy {
    max-width: 720px;
  }
  .trend-hero-v7 .trend-hero-visual,
  .trend-hero-v7 .hero-v6-object,
  .trend-hero-v7 .hero-v6-sparkles {
    display: none !important;
  }
  .trend-hero-v7 .hero-search {
    max-width: 620px;
  }
}
