:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07070a;
  color: #f7f7f8;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 25, 82, 0.18), transparent 32%),
    radial-gradient(circle at 80% 75%, rgba(122, 48, 255, 0.16), transparent 34%),
    #07070a;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}

.countdown-card {
  position: relative;
  width: min(920px, 100%);
  padding: clamp(32px, 7vw, 72px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(13, 13, 18, 0.82);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.card-avatar {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: block;
  width: 76px;
  height: 76px;
  padding: 3px;
  border-radius: 21px;
  background: linear-gradient(135deg, #ff315f, rgba(122, 48, 255, 0.9));
  box-shadow: 0 12px 30px rgba(255, 49, 95, 0.22), 0 0 0 5px rgba(255, 255, 255, 0.035);
  transform: rotate(-3deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card-avatar:hover,
.card-avatar:focus-visible {
  box-shadow: 0 16px 38px rgba(255, 49, 95, 0.32), 0 0 0 5px rgba(255, 255, 255, 0.06);
  transform: rotate(0) translateY(-2px);
  outline: none;
}

.card-avatar::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 15px;
  height: 15px;
  border: 3px solid #0d0d12;
  border-radius: 50%;
  background: #ff315f;
  box-shadow: 0 0 14px rgba(255, 49, 95, 0.85);
}

.card-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: cover;
  filter: contrast(1.08);
}

.avatar-tooltip {
  position: absolute;
  top: 50%;
  left: calc(100% + 13px);
  padding: 8px 11px;
  color: #fff;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(13, 13, 18, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-6px, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.card-avatar:hover .avatar-tooltip,
.card-avatar:focus-visible .avatar-tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

.eyebrow {
  margin: 0 0 12px;
  color: #ff315f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 11vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

h1 span {
  color: transparent;
  background: linear-gradient(120deg, #ffffff 20%, #ff315f 90%);
  background-clip: text;
  -webkit-background-clip: text;
}

.subtitle {
  margin: 20px 0 44px;
  color: #a9a9b3;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.time-block {
  padding: 22px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.time-block strong,
.time-block span {
  display: block;
}

.time-block strong {
  font-size: clamp(1.8rem, 6vw, 3.6rem);
  font-variant-numeric: tabular-nums;
}

.time-block span {
  margin-top: 8px;
  color: #777783;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status {
  margin: 28px 0 0;
  color: #777783;
  font-size: 0.85rem;
}

.clips-section {
  margin-top: 52px;
  text-align: left;
}

.section-heading,
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-kicker {
  margin: 0 0 6px;
  color: #ff315f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2,
.modal-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.clip-count {
  flex: none;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #a9a9b3;
  font-size: 0.75rem;
}

.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.clip-card {
  padding: 0;
  overflow: hidden;
  color: inherit;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.clip-card:hover,
.clip-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 49, 95, 0.7);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  outline: none;
}

.clip-preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020203;
}

.clip-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55));
}

.clip-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.play-icon {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 49, 95, 0.88);
  box-shadow: 0 10px 30px rgba(255, 49, 95, 0.3);
  transition: transform 180ms ease;
}

.clip-card:hover .play-icon,
.clip-card:focus-visible .play-icon {
  transform: scale(1.08);
}

.clip-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.clip-info strong {
  font-size: 0.95rem;
}

.clip-info span {
  color: #777783;
  font-size: 0.72rem;
}

.clip-modal {
  width: min(1100px, 92vw);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  color: #f7f7f8;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: #0d0d12;
  box-shadow: 0 35px 120px rgba(0, 0, 0, 0.8);
}

.clip-modal::backdrop {
  background: rgba(3, 3, 5, 0.76);
  backdrop-filter: blur(8px);
}

.modal-content {
  padding: 18px;
}

.modal-header {
  padding: 4px 4px 16px;
}

.close-modal {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0 0 4px;
  color: #fff;
  font: inherit;
  font-size: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.close-modal:hover,
.close-modal:focus-visible {
  background: #ff315f;
  transform: rotate(6deg);
  outline: none;
}

#modal-video {
  display: block;
  width: 100%;
  max-height: calc(92vh - 110px);
  border-radius: 14px;
  background: #000;
  object-fit: contain;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .countdown-card {
    padding: 88px 18px 36px;
  }

  .card-avatar {
    top: 16px;
    left: 16px;
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  .card-avatar img {
    border-radius: 13px;
  }

  .avatar-tooltip {
    top: calc(100% + 10px);
    left: 0;
    transform: translateY(-5px);
  }

  .card-avatar:hover .avatar-tooltip,
  .card-avatar:focus-visible .avatar-tooltip {
    transform: translateY(0);
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .clips-section {
    margin-top: 40px;
  }

  .clip-grid {
    grid-template-columns: 1fr;
  }

  .clip-modal {
    width: 96vw;
    max-height: 90vh;
  }

  .modal-content {
    padding: 10px;
  }

  .modal-header {
    padding: 6px 4px 12px;
  }

  #modal-video {
    max-height: calc(90vh - 92px);
  }
}
