html,
body {
  overflow-x: hidden;
}

/* ------------------------------------------------------------------ */
/* Top bar                                                             */
/* ------------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px clamp(16px, 4vw, 32px);
  background: linear-gradient(180deg, rgba(255, 249, 246, 0.92), rgba(255, 249, 246, 0.6));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(214, 148, 162, 0.14);
}

.topbar__inner {
  display: flex;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(11px, 1.4vw, 16px);
  min-width: 0;
  text-decoration: none;
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(42px, 4.4vw, 52px);
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 30%;
  background: linear-gradient(155deg, #fffdfc, #ffe8eb);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 12px 26px -12px rgba(196, 105, 128, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: -14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 143, 174, 0.36), transparent 68%);
  filter: blur(12px);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__title {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 29px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.015em;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* Showcase                                                            */
/* ------------------------------------------------------------------ */

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 80px);
  padding: clamp(22px, 5vh, 52px) clamp(16px, 4vw, 40px) clamp(150px, 19vh, 190px);
}

.showcase {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1120px;
  animation: riseIn 0.8s var(--ease) both;
}

.video-grid {
  --tile-gap: clamp(12px, 1.4vw, 20px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--tile-gap);
  width: 100%;
}

.video-tile {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - var(--tile-gap) * 3) / 4);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: clamp(14px, 1.5vw, 20px);
  background: #f7e7e7;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  outline: none;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
  animation: riseIn 0.6s var(--ease) both;
}

.video-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 30px 56px -24px rgba(176, 88, 110, 0.52);
}

.video-tile:focus-visible {
  border-color: rgba(255, 111, 145, 0.7);
  box-shadow:
    0 0 0 3px rgba(255, 111, 145, 0.18),
    var(--shadow-card);
}

.video-tile__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(255, 175, 195, 0.5), transparent 65%),
    radial-gradient(80% 80% at 80% 90%, rgba(255, 196, 150, 0.42), transparent 62%),
    #f3dede;
}

.video-tile__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(90, 40, 54, 0.1) 0%,
    rgba(90, 40, 54, 0) 40%,
    rgba(90, 40, 54, 0.34) 100%
  );
  transition: opacity 0.45s var(--ease);
}

.video-tile__index {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 250, 248, 0.72);
  color: #a04a61;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.video-tile__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(38px, 3.6vw, 50px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(140deg, #ffa8bd, #ff5f86 62%, #ff8f6b);
  color: #fff;
  box-shadow:
    0 10px 24px -8px rgba(200, 61, 90, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.video-tile__play svg {
  width: 38%;
  margin-left: 7%;
}

.video-tile:hover .video-tile__play {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow:
    0 14px 30px -8px rgba(200, 61, 90, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.video-tile__heart {
  position: absolute;
  right: 11px;
  bottom: 9px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  text-shadow: 0 2px 6px rgba(120, 40, 60, 0.4);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.video-tile:hover .video-tile__heart {
  opacity: 1;
  transform: translateY(0);
  animation: heartbeat 1.6s var(--ease);
}

/* Empty state ------------------------------------------------------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  padding: clamp(44px, 8vh, 70px) 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(80% 80% at 20% 10%, rgba(255, 220, 228, 0.62), transparent 62%),
    radial-gradient(80% 80% at 88% 92%, rgba(255, 226, 197, 0.55), transparent 60%),
    rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.empty-state__heart {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: linear-gradient(140deg, #ffb3c5, #ff7494);
  color: #fff;
  font-size: 21px;
  box-shadow:
    0 14px 28px -12px rgba(200, 61, 90, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  animation: heartbeat 3s var(--ease) infinite;
}

.empty-state__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.empty-state__hint {
  margin: 0;
  color: var(--ink-faint);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

/* ------------------------------------------------------------------ */
/* Fixed CTA dock                                                      */
/* ------------------------------------------------------------------ */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0 clamp(16px, 4vw, 24px) calc(env(safe-area-inset-bottom) + 16px);
  background: linear-gradient(
    180deg,
    rgba(255, 247, 243, 0) 0%,
    rgba(255, 247, 243, 0.78) 44%,
    #fff7f3 100%
  );
  pointer-events: none;
}

.dock__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  padding-top: 48px;
  pointer-events: auto;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: clamp(50px, 6vh, 58px);
  overflow: hidden;
  border-radius: 17px;
  color: #fff;
  font-size: clamp(15px, 0.6vw + 0.8vh, 17px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: linear-gradient(135deg, #ff8fae 0%, #ff6f91 46%, #ff9c74 130%);
  box-shadow:
    0 20px 42px -16px rgba(232, 81, 111, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -1px 0 rgba(160, 50, 75, 0.14);
  transition:
    transform 0.32s var(--ease),
    box-shadow 0.32s var(--ease),
    filter 0.32s var(--ease);
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 42%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  animation: sheen 6.5s var(--ease) infinite;
}

.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    0 26px 52px -16px rgba(232, 81, 111, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cta:active {
  transform: translateY(0) scale(0.997);
}

.cta__label,
.cta__arrow {
  position: relative;
  z-index: 1;
}

.cta__arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.32s var(--ease);
}

.cta:hover .cta__arrow {
  transform: translateX(3px);
}

.dock__note {
  margin: 0;
  color: var(--ink-faint);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* Video modal                                                         */
/* ------------------------------------------------------------------ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 40px);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(63, 26, 40, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}

.modal__panel {
  position: relative;
  width: min(1120px, 100%);
  overflow: hidden;
  border-radius: 22px;
  background: #140a0e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 50px 130px rgba(74, 20, 38, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(10px) scale(0.965);
  transition:
    opacity 0.34s var(--ease),
    transform 0.34s var(--ease);
}

.modal.open .modal__backdrop {
  opacity: 1;
}

.modal.open .modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal__panel video {
  display: block;
  width: 100%;
  max-height: 82vh;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 249, 246, 0.9);
  color: #6b3243;
  box-shadow: 0 8px 20px rgba(60, 20, 32, 0.25);
  transition:
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.modal__close:hover {
  background: #fff;
  transform: scale(1.05);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .video-tile {
    flex-basis: calc((100% - var(--tile-gap)) / 2);
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 16px;
  }

  .shell {
    min-height: calc(100svh - 66px);
    padding-bottom: 142px;
  }

  .video-grid {
    --tile-gap: 11px;
  }

  .video-tile {
    border-radius: 15px;
  }

  .video-tile__index {
    top: 8px;
    left: 8px;
    padding: 3px 7px;
    font-size: 9px;
  }

  .video-tile__heart {
    display: none;
  }

  .empty-state {
    margin-top: 4vh;
    border-radius: 24px;
  }

  .dock__inner {
    padding-top: 40px;
  }

  .brand {
    gap: 11px;
  }

  .brand__mark {
    width: 40px;
    padding: 7px;
  }

  .brand__title {
    font-size: 20px;
  }

  .modal__panel video {
    max-height: 70vh;
  }
}
