:root {
  color-scheme: dark;
  --bg: #070b12;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .62);
  --soft: rgba(255, 255, 255, .12);
  --accent: #e71837;
  --accent-2: #f0c45b;
  --panel: rgba(10, 10, 10, .88);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 92px;
  padding: 0 clamp(20px, 5.8vw, 74px);
  background: linear-gradient(180deg, rgba(0, 0, 0, .72), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-logo {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(240, 196, 91, .58);
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(7, 11, 18, .68);
}

.brand-name {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.channel-stats {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 44px);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.channel-stats span,
.video-meta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.header-actions {
  display: flex;
  gap: 18px;
}

.icon-button,
.hero-nav,
.panel-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button svg {
  width: 34px;
  height: 34px;
}

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 112px clamp(20px, 5.8vw, 74px) 28px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(7, 11, 18, .96) 0%, rgba(7, 11, 18, .7) 36%, rgba(7, 11, 18, .32) 68%, rgba(7, 11, 18, .72) 100%),
    linear-gradient(0deg, #070b12 0%, rgba(7, 11, 18, .45) 30%, rgba(7, 11, 18, 0) 58%),
    url("assets/mormon-haber-hero.png");
  background-size: cover;
  background-position: center;
  transition: filter .35s ease, transform .35s ease;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(180deg, transparent, #070b12 78%);
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-content > p:not(.eyebrow) {
  max-width: 730px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 42px 0 50px;
  color: #fff;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.primary-cta,
.secondary-cta,
.join-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-cta {
  gap: 10px;
  min-width: 128px;
  padding: 0 30px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 44px rgba(255, 11, 63, .28);
}

.primary-cta svg {
  width: 32px;
  height: 32px;
}

.secondary-cta,
.join-button {
  min-width: 148px;
  padding: 0 32px;
  border: 2px solid rgba(255, 255, 255, .9);
  background: rgba(0, 0, 0, .18);
}

.secondary-cta.small {
  min-height: 48px;
  min-width: 120px;
  padding: 0 24px;
}

.hero-nav {
  position: absolute;
  z-index: 4;
  top: 47%;
  transform: translateY(-50%);
  width: 54px;
  height: 72px;
  color: #fff;
}

.hero-nav.prev {
  left: 12px;
}

.hero-nav.next {
  right: 12px;
}

.hero-nav svg {
  width: 42px;
  height: 42px;
}

.video-strip {
  padding: 0 clamp(20px, 5.8vw, 74px) 86px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2,
.about-section h2 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.05;
  font-weight: 900;
}

.slider-controls {
  display: flex;
  gap: 10px;
}

.slider-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.slider-button:hover,
.slider-button:focus-visible {
  border-color: var(--accent-2);
  background: rgba(240, 196, 91, .12);
}

.video-viewport {
  overflow: hidden;
}

.video-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 90px) / 4);
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.video-grid::-webkit-scrollbar {
  display: none;
}

.video-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  scroll-snap-align: start;
}

.thumb {
  position: relative;
  min-height: 148px;
  border-radius: var(--radius);
  overflow: hidden;
  background-image: var(--poster), url("assets/mormon-haber-hero.png");
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -60px 90px rgba(0, 0, 0, .45);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--x, 55%) 22%, rgba(255, 255, 255, .45), transparent 18%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .42));
  mix-blend-mode: screen;
  opacity: .72;
}

.video-card h3 {
  min-height: 58px;
  margin: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0;
}

.video-card h3 a {
  display: block;
  color: inherit;
  transition: color .18s ease;
}

.video-card h3 a:hover,
.video-card h3 a:focus-visible {
  color: var(--accent-2);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 255, 255, .4);
  font-size: 14px;
  font-weight: 800;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 56px 0 0;
}

.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.dot.active {
  width: 32px;
  background: var(--accent);
}

.playlist-section {
  padding: 18px clamp(20px, 5.8vw, 74px) 96px;
}

.text-link {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  font-weight: 900;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-2);
}

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

.playlist-card {
  position: relative;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1420;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.playlist-card a {
  display: block;
}

.playlist-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-image: var(--playlist-poster);
  background-size: cover;
  background-position: center;
}

.playlist-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7, 11, 18, .8));
}

.playlist-count {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(7, 11, 18, .88);
  font-size: 12px;
  font-weight: 900;
}

.playlist-copy {
  min-height: 104px;
  padding: 18px;
}

.playlist-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.playlist-copy span {
  color: rgba(255, 255, 255, .48);
  font-size: 13px;
  font-weight: 800;
}

.member-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 52px;
  padding: 34px clamp(20px, 5.8vw, 74px) 92px;
}

.member-row p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, .55);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
}

.avatars {
  display: flex;
  align-items: center;
}

.avatars span {
  width: 58px;
  height: 58px;
  margin-left: -10px;
  border: 2px solid #070b12;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .9), transparent 11%),
    linear-gradient(calc(var(--i) * 31deg), hsl(calc(var(--i) * 44) 70% 58%), hsl(calc(var(--i) * 71) 54% 30%));
}

.feature-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 clamp(20px, 5.8vw, 74px) 80px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(13, 45, 83, .96), rgba(8, 13, 22, .84)),
    url("assets/mormon-haber-hero.png");
  background-size: cover;
  background-position: center 42%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.feature-banner h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 900;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: clamp(48px, 8vw, 120px);
  padding: 86px clamp(20px, 5.8vw, 74px);
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: #0a101a;
}

.about-copy > p:last-child {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: 18px;
  line-height: 1.7;
}

.contact-mail {
  display: inline-block;
  margin-top: 26px;
  color: var(--accent-2);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.contact-links a {
  color: rgba(255, 255, 255, .66);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5.8vw, 74px);
  color: rgba(255, 255, 255, .42);
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #070b12;
  font-size: 13px;
  font-weight: 800;
}

.search-panel,
.menu-panel {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  width: min(430px, 100vw);
  height: 100vh;
  padding: 34px;
  background: var(--panel);
  border-left: 1px solid var(--soft);
  backdrop-filter: blur(22px);
  transform: translateX(105%);
  transition: transform .24s ease;
}

body.search-open .search-panel,
body.menu-open .menu-panel {
  transform: translateX(0);
}

.panel-close {
  margin-left: auto;
  border: 1px solid var(--soft);
  border-radius: 50%;
  font-size: 24px;
}

.search-panel label {
  display: block;
  margin: 54px 0 14px;
  font-size: 28px;
  font-weight: 900;
}

.search-panel input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  color: #fff;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(255, 255, 255, .08);
}

.search-results {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.search-results a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--soft);
  color: rgba(255, 255, 255, .86);
  font-weight: 800;
}

.menu-panel nav {
  display: grid;
  gap: 18px;
  margin-top: 68px;
}

.menu-panel a {
  padding: 18px 0;
  border-bottom: 1px solid var(--soft);
  font-size: 28px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .channel-stats {
    display: none;
  }

  .hero {
    min-height: 780px;
    align-items: flex-start;
    padding-top: 148px;
  }

  .video-grid {
    grid-auto-columns: calc((100% - 24px) / 2);
    gap: 24px;
  }

  .playlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .member-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .avatars {
    padding-left: 10px;
  }
}

@media (max-width: 620px) {
  .topbar {
    height: 88px;
    padding: 0 12px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-name {
    font-size: 28px;
  }

  .header-actions {
    gap: 6px;
  }

  .hero {
    min-height: 760px;
    padding: 142px 13px 54px;
  }

  .hero-bg {
    background-position: 58% center;
  }

  h1 {
    max-width: 360px;
    margin-bottom: 24px;
    font-size: 29px;
    line-height: 1.12;
  }

  .hero-content > p:not(.eyebrow) {
    display: -webkit-box;
    max-width: 360px;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    font-size: 18px;
  }

  .video-meta {
    display: grid;
    grid-template-columns: auto auto;
    width: max-content;
    max-width: 100%;
    gap: 12px 22px;
    margin: 142px 0 48px;
  }

  .hero-actions {
    gap: 14px;
  }

  .primary-cta,
  .secondary-cta {
    min-height: 60px;
    min-width: 128px;
    padding: 0 20px;
  }

  .hero-nav {
    display: none;
  }

  .video-strip {
    padding: 0 13px 72px;
  }

  .video-grid {
    grid-auto-columns: 88%;
    gap: 26px;
  }

  .thumb {
    min-height: 186px;
  }

  .video-card h3 {
    min-height: auto;
  }

  .member-row {
    padding: 18px 13px 72px;
  }

  .avatars span {
    width: 48px;
    height: 48px;
  }

  .feature-banner {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 13px 48px;
  }

  .section-heading {
    align-items: center;
  }

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

  .about-section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .search-panel,
  .menu-panel {
    padding: 22px;
  }
}
