@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@700;800;900&display=swap");

:root {
  --poty-bg: #4b86d9;
  --poty-ink: #fff;
  --poty-header-h: 4.5rem;
  /* Full-width row tracks from 1024px reference:
     pad 3.3 · square 40.3 · gap 6.6 · badges 12 · gap 7.2 · title 21.5 · trailing 9.1 */
  --poty-row-pad: clamp(3.5rem, 10vh, 6.5rem);
  --poty-apple: #fa2d48;
  --poty-spotify: #1db954;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--poty-bg);
  color: var(--poty-ink);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.poty-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  pointer-events: none;
}

.poty-brand {
  pointer-events: auto;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--poty-ink);
  text-decoration: none;
  opacity: 0.9;
}

.poty-home .poty-brand {
  opacity: 0;
  pointer-events: none;
}

.poty-menu-toggle {
  pointer-events: auto;
  margin-left: auto;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.15);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.poty-menu-toggle__bars,
.poty-menu-toggle__bars::before,
.poty-menu-toggle__bars::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  content: "";
}

.poty-menu-toggle__bars {
  position: relative;
}

.poty-menu-toggle__bars::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.poty-menu-toggle__bars::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.poty-site-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgb(0 0 0 / 0.35);
}

.poty-site-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(20rem, 88vw);
  height: 100%;
  padding: 1.5rem 1.25rem 2rem;
  background: #fff;
  color: #111;
  box-shadow: -8px 0 32px rgb(0 0 0 / 0.12);
}

.poty-site-menu__close {
  display: block;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.poty-site-menu__list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.poty-site-menu__list a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.poty-site-menu__hint {
  margin-top: 2rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
}

.poty-main {
  padding-top: var(--poty-header-h);
}

.poty-home .poty-main {
  padding-top: 0;
}

/* Opening screen: wordmark, mid-page chevron, first listing peeking under the fold */
.poty-splash {
  position: relative;
  height: 70svh;
  min-height: 22rem;
}

.poty-splash__logo {
  display: block;
  width: min(72%, 22rem);
  height: auto;
  margin: 7.1vh 0 0 9.4%;
  object-fit: contain;
  object-position: left top;
}

@media (min-width: 900px) {
  .poty-splash__logo {
    width: 42.2%;
    max-width: 28rem;
  }
}

.poty-splash__logo--text {
  margin: 7.1vh 0 0 9.4%;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.poty-splash__down {
  position: absolute;
  left: 50%;
  top: 52vh;
  transform: translate(-50%, -50%);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--poty-ink);
  text-decoration: none;
}

.poty-splash__chevron {
  display: block;
  width: 2.4rem;
  height: 1.2rem;
}

.poty-listings {
  scroll-margin-top: 0;
}

.poty-home .poty-listing:first-of-type {
  padding-top: 0;
}

.poty-listing {
  padding: var(--poty-row-pad) 1.25rem;
}

.poty-listing__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  margin: 0;
}

.poty-listing__media,
.poty-listing__actions,
.poty-listing__title-wrap {
  width: 100%;
  min-width: 0;
}

/* Mobile: title → video → embed → buttons in a row. No left/right alternation. */
.poty-listing__title-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  order: 1;
}

.poty-listing__media {
  order: 2;
}

.poty-listing__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  order: 3;
}

.poty-listing__actions .poty-badge {
  flex: 1 1 0;
  min-width: 0;
}

@media (min-width: 900px) {
  .poty-listing {
    padding-inline: 0;
  }

  .poty-listing__inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
  }

  /* Row 1: pad 3.3 · video 40.3 · gap 6.6 · buttons 12 · gap 7.2 · title 21.5 · pad 9.1 */
  .poty-listing__media {
    flex: 0 0 40.3%;
    width: 40.3%;
    margin: 0 6.6% 0 3.3%;
    order: 1;
  }

  .poty-listing__actions {
    flex: 0 0 12%;
    width: 12%;
    margin: 0 7.2% 0 0;
    order: 2;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 1.05rem;
  }

  .poty-listing__title-wrap {
    flex: 0 0 21.5%;
    width: 21.5%;
    margin: 0 9.1% 0 0;
    order: 3;
  }

  /* Row 2: pad 9.1 · title 21.5 · gap 7.2 · buttons 12 · gap 6.6 · video 40.3 · pad 3.3 */
  .poty-listing--reverse .poty-listing__title-wrap {
    order: 1;
    margin: 0 7.2% 0 9.1%;
    justify-content: flex-end;
  }

  .poty-listing--reverse .poty-listing__actions {
    order: 2;
    margin: 0 6.6% 0 0;
  }

  .poty-listing--reverse .poty-listing__media {
    order: 3;
    margin: 0 3.3% 0 0;
  }
}

.poty-badge {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.poty-badge img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 949 / 331;
}

.poty-listing__title-art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.poty-listing--reverse .poty-listing__title-art {
  object-position: left center;
}

@media (min-width: 900px) {
  .poty-listing--reverse .poty-listing__title-art {
    object-position: right center;
  }
}

.poty-embed {
  display: none;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.poty-listing__media > .poty-embed.is-active:only-of-type,
.poty-listing__media > .poty-embed:only-child {
  display: block;
}

.poty-embed.is-active {
  display: block;
}

.poty-flip {
  perspective: 1200px;
  width: 100%;
  max-width: none;
  outline: none;
}

.poty-flip__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.poty-flip.is-flipped .poty-flip__inner {
  transform: rotateY(180deg);
}

.poty-flip__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
  background: #000;
}

.poty-flip__face--front .poty-listing__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poty-flip__face--back {
  transform: rotateY(180deg);
  background: #fff;
}

.poty-flip__face--back .poty-embed {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.poty-flip__hint {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  padding: 0.25rem 0.45rem;
  border-radius: 0.2rem;
  background: rgb(0 0 0 / 0.45);
  color: rgb(255 255 255 / 0.85);
  font-size: 0.62rem;
  pointer-events: none;
}

@media (max-width: 899px) {
  .poty-flip {
    perspective: none;
  }

  .poty-flip__inner,
  .poty-flip.is-flipped .poty-flip__inner {
    aspect-ratio: auto;
    transform: none;
    transform-style: flat;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: none;
  }

  .poty-flip__face {
    position: relative;
    inset: auto;
    transform: none;
    backface-visibility: visible;
    overflow: hidden;
  }

  .poty-flip__face--front {
    aspect-ratio: 1 / 1;
    background: #000;
  }

  .poty-flip__face--back {
    background: transparent;
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .poty-flip__face--back .poty-embed.is-active {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .poty-listing__media > .poty-embed.is-active {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
  }

  .poty-flip__hint {
    display: none;
  }
}

@media (min-width: 900px) {
  .poty-flip__hint {
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .poty-flip:hover .poty-flip__hint,
  .poty-flip:focus-within .poty-flip__hint {
    opacity: 1;
  }
}

.poty-listing__video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
  border-radius: 0;
}

.poty-listing__video--placeholder {
  background: rgb(0 0 0 / 0.25);
}

.poty-stream-switch {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.poty-stream-switch__btn {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: transparent;
  color: rgb(34 34 34 / 0.45);
  font-size: 0.72rem;
  font-weight: 700;
  pointer-events: none;
}

.poty-stream-switch__btn.is-active[data-poty-stream="apple"] {
  background: var(--poty-apple);
  color: #fff;
}

.poty-stream-switch__btn.is-active[data-poty-stream="spotify"] {
  background: var(--poty-spotify);
  color: #fff;
}

.poty-stream-switch__btn:disabled {
  opacity: 0.25;
}

.poty-empty,
.poty-main--narrow {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.poty-prose a {
  color: inherit;
}

/* Link tree — mobile-first stack; scales up on wider screens */
.poty-link-page {
  padding: calc(var(--poty-header-h) + 1.5rem) 1.25rem 2.75rem;
  min-height: 100svh;
}

.poty-link-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
}

.poty-link-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 5.25rem;
  border-radius: 1.35rem;
  background: rgb(255 255 255 / 0.96);
  color: #111;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.1);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.poty-link-panel:active {
  transform: scale(0.985);
}

.poty-link-panel__text {
  position: relative;
  padding: 1rem 0.75rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
}

.poty-link-panel__kicker {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgb(17 17 17 / 0.55);
}

.poty-link-panel__title {
  font-weight: 800;
  font-size: clamp(1rem, 4.2vw, 1.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.poty-link-panel__cover-wrap {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}

.poty-link-panel__cover {
  width: 5.25rem;
  height: 100%;
  min-height: 5.25rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.poty-link-panel__cover--empty {
  background: rgb(0 0 0 / 0.08);
}

.poty-link-page__empty {
  max-width: 26rem;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 640px) {
  .poty-link-stack {
    max-width: 30rem;
    gap: 1rem;
  }

  .poty-link-panel {
    min-height: 5.75rem;
    border-radius: 1.5rem;
  }

  .poty-link-panel__cover {
    width: 5.75rem;
    min-height: 5.75rem;
  }

  .poty-link-panel:hover {
    box-shadow: 0 10px 32px rgb(0 0 0 / 0.14);
  }
}
