:root {
  --bg: #000;
  --explore: #141414;
  --text: #fff;
  --phone: 430px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: #050505;
  color: var(--text);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.phone {
  width: min(var(--phone), 100%);
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background: #000;
}

.phone-home {
  background: #07040c;
}

.home {
  height: 100%;
  position: relative;
  background:
    url("../images/home-bg.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.home-copy {
  position: absolute;
  left: 6.4%;
  right: 6%;
  top: 16.2%;
}

.home h1 {
  font-weight: 800;
  font-size: 40px;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 8px 22px rgba(0, 0, 0, 0.4);
}

.home h1 span {
  display: block;
  white-space: nowrap;
}

.discover {
  position: absolute;
  left: 50%;
  bottom: 15.5%;
  translate: -50% 0;
  width: min(292px, 74%);
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 24px rgba(80, 0, 40, 0.18);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease, scale 0.15s ease;
}

.discover:hover {
  background: rgba(255, 255, 255, 0.3);
}

.discover:active {
  background: rgba(255, 255, 255, 0.36);
}

.discover:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.phone-explore {
  background: var(--explore);
  overflow: auto;
  scrollbar-width: none;
  transform: translateZ(0);
}

.phone-explore::-webkit-scrollbar {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  height: calc(56px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--explore);
}

.topbar h1 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.back {
  position: absolute;
  left: 4px;
  top: calc(env(safe-area-inset-top) + 6px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  transition: background 0.18s ease, opacity 0.18s ease;
}

.back:hover {
  background: rgba(255, 255, 255, 0.08);
}

.back:active {
  background: rgba(255, 255, 255, 0.14);
}

.back:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.catalog {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 16px calc(20px + env(safe-area-inset-bottom));
}

.card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #222;
  line-height: 0;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 758 / 280;
  object-fit: cover;
}

.play {
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
  transition: background 0.18s ease, transform 0.18s ease;
}

.play svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 14px;
  height: 14px;
  margin: 0;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.85));
}

.play:hover::before {
  background: rgba(255, 255, 255, 0.22);
}

.play:active::before {
  background: rgba(255, 255, 255, 0.38);
  transform: translate(-50%, -50%) scale(0.94);
}

.play:focus-visible {
  outline: none;
}

.play:focus-visible::before {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.loader[hidden] {
  display: none;
}

.loader-spin {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  animation: loader-spin 0.7s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-spin {
    animation: none;
    border-color: rgba(255, 255, 255, 0.85);
  }
}

@media (min-width: 520px) {
  body {
    background: #0b0b0d;
    padding: 28px 0;
  }

  .phone {
    height: min(900px, calc(100dvh - 56px));
    border-radius: 36px;
    border: 10px solid #050505;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  }
}

@media (max-width: 519px) {
  .home h1 {
    font-size: 9.5vw;
  }
}
