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

:root {
  --bg: #0b0d17;
  --card: #161a27;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --ring: #a5b4fc;
  --shadow: rgba(8, 10, 22, 0.45);
  --badge-ring: #ffffff;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f4fb;
    --card: #ffffff;
    --text: #1e1b4b;
    --text-muted: #475569;
    --ring: #4f46e5;
    --shadow: rgba(30, 27, 75, 0.16);
    --badge-ring: #ffffff;
    color-scheme: light;
  }
}

html,
body {
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

.hero {
  position: relative;
  width: 100%;
  height: 48vh;
  min-height: 240px;
  max-height: 560px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero picture,
.hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 45%;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.clip {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 2rem));
  margin-top: -4.5rem;
  margin-bottom: 2.75rem;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 44px var(--shadow);
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.clip-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
}

.clip-photo picture,
.clip-photo > picture img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 35%;
}

.clip-badge {
  position: absolute;
  left: 1.15rem;
  bottom: -30px;
  width: 72px;
  height: 72px;
  padding: 3px;
  border-radius: 22%;
  background: var(--badge-ring);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  line-height: 0;
}

.clip-badge img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18%;
}

.clip-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 2.35rem 1.35rem 1.35rem;
}

.clip-name {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.clip-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.clip-arrow {
  display: block;
  flex-shrink: 0;
  transition: transform 180ms ease;
}

.clip:hover,
.clip:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px var(--shadow);
}

.clip:hover .clip-arrow,
.clip:focus-visible .clip-arrow {
  transform: translateX(3px);
}

.clip:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 4px;
}

.clip:active {
  transform: translateY(-2px);
}

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

  .clip {
    margin-top: -3.25rem;
  }
}

@media (max-width: 480px) {
  .clip {
    width: min(320px, 80vw);
    margin-top: -2.75rem;
    margin-bottom: 2rem;
  }

  .clip-photo {
    aspect-ratio: 16 / 10;
  }

  .clip-badge {
    width: 56px;
    height: 56px;
    left: 0.9rem;
    bottom: -22px;
    padding: 2px;
  }

  .clip-body {
    padding: 1.7rem 0.95rem 0.95rem;
    gap: 0.2rem;
  }

  .clip-name {
    font-size: 0.9375rem; /* 15px */
  }

  .clip-label {
    font-size: 0.875rem; /* 14px */
  }
}

@media (prefers-reduced-motion: reduce) {
  .clip,
  .clip-arrow {
    transition: none;
  }
}
