html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1a1348;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.share,
body.overview {
  min-height: 100vh;
  background: #f3f4f8;
}

.share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #e6e5ee;
  box-sizing: border-box;
}

.share-logo {
  display: inline-flex;
  align-items: center;
}

.share-logo img {
  display: block;
  height: 30px;
  width: auto;
}

.share-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  background: #2777dd;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.share-cta:hover {
  background: #1f66c2;
}

.share-main {
  box-sizing: border-box;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  min-height: 320px;
  padding: 24px;
}

.share-player {
  width: 100%;
  height: 100%;
}

body.embed {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: transparent;
}

.embed-player {
  width: 100%;
  height: 100%;
}

.overview-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.overview-main h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 32px;
  font-size: 16px;
  color: #59557a;
}

.group + .group {
  margin-top: 40px;
}

.group h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(26, 19, 72, 0.07), 0 6px 20px rgba(26, 19, 72, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(39, 119, 221, 0.35), 0 10px 28px rgba(26, 19, 72, 0.1);
}

.card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.card-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #b4b3c1;
}

.card-body {
  display: grid;
  gap: 4px;
  padding: 14px 16px 6px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
}

.card-meta {
  font-size: 13px;
  color: #6b6880;
}

.card-embed {
  align-self: flex-start;
  margin: 2px 16px 14px;
  font-size: 12px;
  color: #2777dd;
  text-decoration: none;
}

.card-embed:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .share-head {
    height: 56px;
    padding: 0 14px;
  }

  .share-logo img {
    height: 24px;
  }

  .share-cta {
    padding: 7px 12px;
    font-size: 13px;
  }

  .share-main {
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    padding: 12px;
  }

  .overview-main {
    padding: 28px 16px 48px;
  }

  .overview-main h1 {
    font-size: 26px;
  }
}
