*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: #191c1e;
  background: #ffffff;
}

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

.mo {
  display: none;
}

button,
input {
  font: inherit;
}

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

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

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 555px;
  overflow: hidden;
  color: #ffffff;
  background: url(../video-downloader/img/supported-sites-bgimg.png) top center no-repeat, linear-gradient(180deg, #10071A 75.54%, #512380 111.17%);
  background-size: 100% 100%;
}

/* .hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -136px;
  width: 210%;
  height: 235px;
  transform: translateX(-50%);
  border: 2px solid rgba(104, 42, 169, 0.34);
  border-radius: 50%;
  box-shadow:
    0 -24px 48px rgba(141, 47, 255, 0.28),
    0 -5px 16px rgba(164, 75, 255, 0.34);
  pointer-events: none;
} */

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 125px;
  text-align: center;
}

.product-badge {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 15px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.product-badge img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.hero h1 {
  margin: 10px auto 0;
  max-width: 1000px;
  font-size: clamp(30px, 2.25vw, 36px);
  color: #fff;
  font-weight: 600;
  line-height: 48px;
}

.hero h1 span {
  color: #d773ff;
}

.hero-copy {
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

a.hero-button {
  display: inline-flex;
  width: 242px;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.hero-button svg,
.search-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a.hero-button-primary {
  border: 1px solid transparent;
  background: linear-gradient(180deg, #DB74FF 0%, #256CFF 100%) padding-box, linear-gradient(0deg, rgba(88, 132, 233, 1), rgba(241, 210, 255, 1)) border-box;
}

a.hero-button-primary:hover {
  background: linear-gradient(180deg, #256CFF 0%, #DB74FF 100%) padding-box, linear-gradient(180deg, rgba(88, 132, 233, 1), rgba(241, 210, 255, 1)) border-box;
}

a.hero-button-primary::before {
  content: "\e93e";
  display: inline-block;
  vertical-align: middle;
  font-family: 'iconfont';
}

a.hero-button-secondary {
  border: 1px solid transparent;
  background: linear-gradient(180deg, #3D3D3D 1.4%, #000 98.88%) padding-box, linear-gradient(180deg, rgba(149, 148, 148, 1), rgba(45, 45, 45, 1)) border-box;
}

a.hero-button-secondary:hover {
  background: linear-gradient(180deg, #000 1.4%, #3D3D3D 98.88%) padding-box, linear-gradient(0deg, rgba(149, 148, 148, 1), rgba(45, 45, 45, 1)) border-box;
}

.hero-button:focus-visible,
.search-action:focus-visible,
.index-button:focus-visible {
  outline: 3px solid rgba(216, 117, 255, 0.62);
  outline-offset: 3px;
}

.popular-platforms {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 20px;
  display: flex;
  max-width: 1217px;
  width: 94%;
  height: 48px;
  align-items: center;
  gap: 20px;
  transform: translateX(-50%);
}

.popular-label {
  color: #959595;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  letter-spacing: -0.32px;
}

.popular-platforms-image {
  max-width: 1062px;
  width: 88%;
  object-fit: contain;
}

.platforms {
  min-height: 440px;
  padding: 70px 0 0;
  background: linear-gradient(180deg, #e5d4ff 0%, #f7f1ff 44%, #ffffff 100%);
}

.platform-shell {
  width: min(1184px, 94%);
  margin: 0 auto;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 40px;
}

.section-heading p {
  margin-top: 20px;
  color: #666666;
  font-size: 16px;
  line-height: 24px;
}

.search-box {
  display: flex;
  min-height: 80px;
  margin: 28px auto 0;
  padding: 6px;
  align-items: center;
  border: 1px solid #ffffff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.search-box input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 10px 12px;
  color: #000000;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
  line-height: 24px;
}

.search-box input::placeholder {
  color: #767676;
  opacity: 1;
}

.search-action {
  display: inline-flex;
  width: 250px;
  height: 60px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(129deg, #db74ff 0%, #256cff 100%);
  font-size: 18px;
  line-height: 24px;
  cursor: pointer;
}

.search-action:hover {
  background: linear-gradient(108deg, #256CFF 0.14%, #DB74FF 95.45%), linear-gradient(108deg, #DB74FF 0.14%, #256CFF 95.45%), #0050CB;
}

.alphabetical-index {
  margin: 30px auto 0;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
}

.index-row {
  min-width: 0;
  overflow-x: auto;
}

.index-row::-webkit-scrollbar {
  height: 6px;
}

.index-row::-webkit-scrollbar-track {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.index-row::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: #bc85ff;
}


.index-row-numbers {
  border-top: 1px solid #ffffff;
}

.index-track {
  display: flex;
  min-width: max-content;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding: 16px 20px;
}

.index-row-letters .index-track {
  min-width: 1158px;
  justify-content: center;
}

.index-button {
  display: inline-flex;
  width: 40px;
  height: 32px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  color: #424656;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  cursor: pointer;
}

.index-button:hover {
  background: rgba(141, 76, 238, 0.1);
}

.index-button.is-active {
  color: #ffffff;
  background: linear-gradient(129deg, #db74ff 0%, #256cff 100%);
}

.platform-list-viewport {
  max-height: 500px;
  margin: 20px auto 0;
  overflow-y: auto;
  overflow-x: hidden;
}

#platform-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

#platform-search::-webkit-search-decoration {
  display: none;
}

.platform-list-viewport::-webkit-scrollbar {
  width: 6px;
}

.platform-list-viewport::-webkit-scrollbar-track {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.platform-list-viewport::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: #bc85ff;
}

.platform-grid {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0 8px 8px 0;
  list-style: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 4px;
  contain: layout style;
}

.platform-item {
  display: flex;
  min-width: 0;
  min-height: 45px;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  color: #000000;
  font-size: 14px;
  line-height: 20px;
}

.platform-item::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #d9d9d9;
}

.no-results {
  width: 100%;
  min-height: 120px;
  margin: 96px auto 0;
  text-align: center;
}

.no-results h3 {
  margin: 0;
  color: #000000;
  font-size: 20px;
  font-weight: 500;
  line-height: 20px;
}

.no-results p {
  max-width: 840px;
  margin: 18px auto 0;
  color: #000000;
  font-size: 14px;
  line-height: 20px;
}

.load-sentinel {
  width: 100%;
  height: 1px;
}

.feedback {
  display: flex;
  width: min(1200px, calc(100% - 48px));
  min-height: 122px;
  align-items: center;
  gap: 40px;
  margin: 60px auto;
  padding: 20px;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  background: linear-gradient(102deg, #f8f3ff 0%, #ffffff 66%);
}

.feedback img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.feedback p {
  margin: 0;
  color: #666666;
  font-size: 16px;
  line-height: 24px;
}

.feedback p a {
  color: #286cff;
  text-decoration: underline;
  font-size: inherit;
}

@media (max-width: 1180px) {
  .search-box,
  .alphabetical-index,
  .platform-list-viewport {
    width: 100%;
  }

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

@media (max-width: 860px) {
  .hero {
    min-height: 530px;
  }

  .hero-content {
    padding-top: 82px;
  }

  .platforms {
    padding: 58px 20px;
  }

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

  .feedback {
    margin: 44px auto;
  }
}

@media (max-width: 750px) {
  .hero {
    min-height: auto;
    background: linear-gradient(180deg, #10071A 75.54%, #512380 111.17%);
  }
  .popular-platforms {
    position: relative;
    flex-direction: column;
    height: auto;
    left: 0;
    transform: translateX(0);
    bottom: 0;
    margin: 40px auto;
  }
  .mo {
    display: block;
  }
  .pc {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 600px;
  }

  .hero-content {
    width: min(100% - 32px, 560px);
    padding-top: 56px;
  }

  .product-badge {
    font-size: 16px;
  }

  .hero h1 {
    margin-top: 16px;
    font-size: 30px;
    line-height: 1.28;
  }

  .hero-copy {
    margin-top: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-button {
    width: min(100%, 320px);
  }

  .popular-label {
    width: auto;
    flex-basis: auto;
    line-height: 20px;
    text-align: left;
  }

  .platforms {
    padding: 48px 16px;
  }

  .section-heading p {
    margin-top: 14px;
  }

  .search-box {
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    padding: 8px;
  }

  .search-box input {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .search-action {
    width: 100%;
    height: 54px;
    flex-basis: 54px;
  }

  .alphabetical-index {
    margin-top: 22px;
    padding: 0;
  }

  .index-track {
    padding-inline: 14px;
  }

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

  .feedback {
    width: calc(100% - 32px);
    /* align-items: flex-start; */
    flex-direction: column;
    gap: 16px;
    margin: 0 auto 40px;
  }
}

@media (max-width: 420px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .platform-item {
    min-height: 42px;
  }
}
