:root {
  color-scheme: light;
  --sb-ink: #0f172a;
  --sb-muted: #5b6575;
  --sb-panel: #ffffff;
  --sb-line: #dde5ee;
  --sb-shell: #f4f7fb;
  --sb-primary: #032541;
  --sb-primary-2: #01b4e4;
  --sb-accent: #90cea1;
  --sb-danger: #d33f49;
  --sb-shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
  --sb-radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--sb-ink);
  background: var(--sb-shell);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.sb-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 68px;
  padding: 0 40px;
  color: #fff;
  background: var(--sb-primary);
  box-shadow: 0 10px 24px rgba(3, 37, 65, 0.18);
}

.sb-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.sb-brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--sb-primary);
  background: linear-gradient(135deg, var(--sb-accent), var(--sb-primary-2));
}

.sb-brand__text {
  white-space: nowrap;
}

.sb-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
}

.sb-nav a {
  color: rgba(255, 255, 255, 0.88);
}

.sb-nav-help {
  position: relative;
}

.sb-nav-help summary {
  list-style: none;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.sb-nav-help summary::-webkit-details-marker {
  display: none;
}

.sb-nav-help summary::after {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.78em;
  content: "v";
}

.sb-nav-help[open] summary,
.sb-nav a:hover,
.sb-nav a:focus-visible {
  color: #fff;
}

.sb-nav-help__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--sb-radius);
  background: #fff;
  box-shadow: var(--sb-shadow);
  transform: translateX(-50%);
}

.sb-nav-help__menu a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--sb-primary);
}

.sb-nav-help__menu a:hover,
.sb-nav-help__menu a:focus-visible {
  color: var(--sb-primary);
  background: var(--sb-shell);
}

.sb-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.sb-account__name {
  max-width: 20ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
}

.sb-button,
.sb-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.sb-button--primary,
.sb-search button {
  color: #032541;
  background: linear-gradient(135deg, var(--sb-accent), var(--sb-primary-2));
}

.sb-button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.sb-icon-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.sb-menu-icon,
.sb-menu-icon::before,
.sb-menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  background: currentColor;
  content: "";
}

.sb-menu-icon::before {
  transform: translateY(-6px);
}

.sb-menu-icon::after {
  transform: translateY(4px);
}

.sb-hero {
  position: relative;
  display: grid;
  min-height: clamp(520px, 74vh, 760px);
  overflow: hidden;
  color: #fff;
  background: #071f36;
}

.sb-hero__media {
  position: absolute;
  inset: 0;
  opacity: 0.58;
}

.sb-hero__media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 37, 65, 0.98) 0%, rgba(3, 37, 65, 0.78) 48%, rgba(3, 37, 65, 0.35) 100%),
    linear-gradient(0deg, rgba(3, 37, 65, 0.8) 0%, rgba(3, 37, 65, 0) 46%);
  content: "";
}

.sb-poster-grid {
  position: absolute;
  inset: -5% -4% auto 36%;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 18px;
  transform: rotate(-6deg);
}

.sb-poster-grid span {
  display: block;
  height: 420px;
  border-radius: var(--sb-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(0, 0, 0, 0.34)),
    var(--poster-color);
  box-shadow: var(--sb-shadow);
}

.sb-hero__content {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  align-self: center;
  padding: 56px 40px 72px;
}

.sb-kicker {
  margin: 0 0 10px;
  color: var(--sb-primary-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sb-hero h1,
.sb-page-head h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.sb-hero p:not(.sb-kicker),
.sb-page-head p:not(.sb-kicker),
.sb-band p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.sb-search {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(760px, 100%);
  min-height: 58px;
  margin-top: 32px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--sb-shadow);
}

.sb-search input {
  min-width: 0;
  padding: 0 24px;
  border: 0;
  outline: 0;
}

.sb-search button {
  min-height: 58px;
  border-radius: 999px;
}

.sb-section,
.sb-band,
.sb-page-head,
.sb-auth {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.sb-section {
  padding: 42px 0 54px;
}

.sb-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.sb-section h2,
.sb-band h2,
.sb-feature h2 {
  margin: 0;
  color: var(--sb-ink);
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.sb-segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-width: 212px;
  padding: 3px;
  border: 1px solid var(--sb-primary);
  border-radius: 999px;
}

.sb-segmented button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--sb-primary);
  background: transparent;
  font-weight: 800;
}

.sb-segmented .is-active {
  color: #fff;
  background: var(--sb-primary);
}

.sb-card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 8px 0 20px;
  scroll-snap-type: x proximity;
}

.sb-media-card {
  position: relative;
  min-height: 360px;
  padding: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius);
  background: var(--sb-panel);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  scroll-snap-align: start;
}

.sb-media-card__poster {
  height: 238px;
  background:
    linear-gradient(135deg, rgba(1, 180, 228, 0.78), rgba(144, 206, 161, 0.72)),
    linear-gradient(45deg, #243b55, #141e30);
}

.sb-media-card:nth-child(2n) .sb-media-card__poster {
  background:
    linear-gradient(135deg, rgba(249, 199, 79, 0.78), rgba(87, 117, 144, 0.72)),
    #243b55;
}

.sb-media-card:nth-child(3n) .sb-media-card__poster {
  background:
    linear-gradient(135deg, rgba(249, 65, 68, 0.72), rgba(1, 180, 228, 0.68)),
    #243b55;
}

.sb-media-card__score {
  position: absolute;
  top: 214px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 4px solid var(--sb-accent);
  border-radius: 50%;
  color: #fff;
  background: var(--sb-primary);
  font-size: 0.82rem;
  font-weight: 900;
}

.sb-media-card h3,
.sb-media-card p {
  margin-right: 16px;
  margin-left: 16px;
}

.sb-media-card h3 {
  margin-top: 38px;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.sb-media-card p,
.sb-feature p {
  color: var(--sb-muted);
}

.sb-prose {
  max-width: 820px;
  padding-top: 8px;
}

.sb-prose h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.sb-prose p {
  color: var(--sb-muted);
  font-size: 1.06rem;
}

.sb-prose a {
  color: var(--sb-primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.sb-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 54px;
  padding: 36px;
  border-radius: var(--sb-radius);
  color: #fff;
  background: var(--sb-primary);
}

.sb-band h2 {
  color: #fff;
}

.sb-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sb-page-head {
  padding: 72px 0 24px;
}

.sb-page-head h1,
.sb-page-head p:not(.sb-kicker) {
  color: var(--sb-ink);
}

.sb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sb-feature,
.sb-auth__panel {
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.sb-feature {
  padding: 24px;
}

.sb-auth {
  display: grid;
  min-height: calc(100vh - 142px);
  place-items: center;
  padding: 48px 0;
}

.sb-auth__panel {
  width: min(560px, 100%);
  padding: 32px;
}

.sb-auth__panel h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.sb-auth__panel p {
  color: var(--sb-muted);
}

.sb-alert {
  margin: 20px 0;
  padding: 12px 14px;
  border: 1px solid rgba(211, 63, 73, 0.25);
  border-radius: var(--sb-radius);
  color: #8f1d28;
  background: rgba(211, 63, 73, 0.08);
}

.sb-provider-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.sb-provider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--sb-line);
  border-left: 6px solid var(--provider-accent);
  border-radius: var(--sb-radius);
  color: var(--sb-ink);
  background: #fff;
  font-weight: 800;
}

.sb-provider strong {
  color: var(--provider-accent);
}

.sb-provider.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 40px;
  color: var(--sb-muted);
  border-top: 1px solid var(--sb-line);
  background: #fff;
}

.sb-footer code {
  color: var(--sb-primary);
}

.sb-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.92rem;
}

.sb-footer__links a {
  color: var(--sb-muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.sb-footer__links a:hover,
.sb-footer__links a:focus-visible {
  color: var(--sb-primary);
}

@media (max-width: 860px) {
  .sb-topbar {
    grid-template-columns: auto auto;
    gap: 14px;
    padding: 0 18px;
  }

  .sb-icon-button {
    display: grid;
    justify-self: end;
    place-items: center;
  }

  .sb-nav,
  .sb-account {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
  }

  .sb-topbar.is-open .sb-nav,
  .sb-topbar.is-open .sb-account {
    display: flex;
  }

  .sb-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 14px;
  }

  .sb-nav-help,
  .sb-nav-help__menu {
    width: 100%;
  }

  .sb-nav-help__menu {
    position: static;
    margin-top: 8px;
    transform: none;
  }

  .sb-account {
    justify-content: flex-start;
    padding-bottom: 16px;
  }

  .sb-hero {
    min-height: 620px;
  }

  .sb-hero__content {
    padding: 46px 20px 58px;
  }

  .sb-poster-grid {
    inset: 18% -40% auto 12%;
    grid-template-columns: repeat(5, 138px);
  }

  .sb-search {
    grid-template-columns: 1fr;
    border-radius: var(--sb-radius);
  }

  .sb-search input {
    min-height: 58px;
  }

  .sb-search button {
    border-radius: 0;
  }

  .sb-section__header,
  .sb-band,
  .sb-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .sb-band {
    display: flex;
    padding: 26px;
  }

  .sb-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .sb-brand__text {
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sb-section,
  .sb-band,
  .sb-page-head,
  .sb-auth {
    width: min(100% - 24px, 1180px);
  }

  .sb-card-row {
    grid-auto-columns: 82vw;
  }

  .sb-segmented {
    width: 100%;
  }
}
