:root {
  color-scheme: dark;
  --bg: #0d0b09;
  --panel: #100e0b;
  --card: #16130f;
  --card-hover: #1e1a14;
  --cream: #f2ebdd;
  --cream-soft: #d8cfbf;
  --muted: #a39a8b;
  --subtle: #857c6e;
  --dim: #6f6759;
  --gold: #d8a24a;
  --gold-light: #e6c884;
  --line: rgba(242, 235, 221, 0.07);
  --line-soft: rgba(242, 235, 221, 0.05);
  --fill-soft: rgba(242, 235, 221, 0.06);
  --font-ui: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
}

body {
  color: var(--cream);
  font-family: var(--font-ui);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

svg {
  display: block;
  flex: 0 0 auto;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 20px;
  background: rgba(242, 235, 221, 0.12);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(242, 235, 221, 0.2);
  background-clip: padding-box;
}

.app-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

.sidebar {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 22px 16px 16px;
  overflow: hidden;
  border-right: 1px solid rgba(242, 235, 221, 0.06);
  background: var(--panel);
}

.logo-link {
  display: block;
  padding: 2px 6px 4px;
}

.logo-link img,
.mobile-logo {
  display: block;
  border-radius: 8px;
}

.logo-link img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 41px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
  background: rgba(242, 235, 221, 0.05);
}

.nav-links svg,
.source-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-divider {
  height: 1px;
  margin: 4px 8px;
  background: rgba(242, 235, 221, 0.06);
}

.sidebar-label {
  padding: 2px 10px 6px;
  color: #7c7365;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.sidebar-collections {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: inherit;
  text-align: left;
  background: transparent;
}

.sidebar-item:hover,
.sidebar-item.active {
  background: rgba(242, 235, 221, 0.05);
}

.sidebar-tile,
.collection-art,
.row-art,
.player-art {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sidebar-tile {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
}

.sidebar-item strong,
.sidebar-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-item strong {
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
}

.sidebar-item span {
  margin-top: 1px;
  color: var(--subtle);
  font-size: 12.5px;
}

.main {
  position: relative;
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  min-width: 0;
  overflow-y: auto;
}

.top-glow {
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(216, 162, 74, 0.14), rgba(216, 162, 74, 0) 70%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  border-bottom: 1px solid rgba(242, 235, 221, 0.05);
  background: rgba(13, 11, 9, 0.55);
  backdrop-filter: blur(14px);
}

.mobile-logo {
  display: none;
  height: 34px;
  width: auto;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 380px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(242, 235, 221, 0.06);
  border-radius: 999px;
  background: var(--fill-soft);
}

.search-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #8b8274;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-pill input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--cream);
  background: transparent;
  font-size: 13.5px;
}

.search-pill input::placeholder {
  color: #8b8274;
  opacity: 1;
}

.source-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid rgba(242, 235, 221, 0.08);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.source-link:hover {
  color: var(--cream);
  border-color: rgba(242, 235, 221, 0.18);
}

.source-link span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.browse-wrap {
  position: relative;
  max-width: 1180px;
  padding: 26px 26px 40px;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  padding: 40px 40px 34px;
  border-radius: 22px;
  background: linear-gradient(120deg, #1a1510 0%, #2f2413 48%, #5a4420 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.hero-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(233, 194, 116, 0.35), transparent 65%);
}

.hero-copy {
  position: relative;
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.eyebrow span {
  width: 22px;
  height: 1px;
  background: var(--gold-light);
}

.hero h1,
.section-heading h2,
.collection-card-title {
  font-family: var(--font-display);
  font-weight: 400;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.5px;
}

.hero p:not(.eyebrow) {
  max-width: 440px;
  margin: 0 0 26px;
  color: var(--cream-soft);
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 47px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  transition: 160ms ease;
}

.primary-action {
  border: 0;
  color: #1a140a;
  background: var(--cream);
  font-weight: 700;
}

.primary-action:hover {
  background: #fff;
}

.secondary-action {
  border: 1px solid rgba(242, 235, 221, 0.25);
  color: var(--cream);
  background: transparent;
  font-weight: 600;
}

.secondary-action:hover {
  border-color: rgba(242, 235, 221, 0.5);
}

.primary-action svg,
.secondary-action svg {
  width: 16px;
  height: 16px;
}

.primary-action svg {
  fill: currentColor;
}

.secondary-action svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pause-icon,
.is-playing .play-icon {
  display: none;
}

.is-playing .pause-icon {
  display: block;
}

.section {
  margin-bottom: 42px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: 0;
}

.section-heading span,
.show-all {
  border: 0;
  color: var(--subtle);
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.show-all:hover {
  color: var(--cream);
}

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

.collection-card {
  position: relative;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  color: inherit;
  text-align: left;
  background: var(--card);
  transition: background 160ms ease, transform 160ms ease;
}

.collection-card:hover,
.collection-card.active {
  background: var(--card-hover);
}

.collection-art {
  aspect-ratio: 1;
  margin-bottom: 13px;
  border-radius: 12px;
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.collection-art img,
.row-art img,
.player-art img,
.sidebar-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 9, 0) 34%, rgba(13, 11, 9, 0.5) 68%, rgba(13, 11, 9, 0.9));
}

.collection-card-title {
  position: absolute;
  right: 13px;
  bottom: 13px;
  left: 13px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.96);
  font-size: 20px;
  line-height: 1.04;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.collection-card strong,
.collection-card small {
  display: block;
}

.collection-card strong {
  overflow: hidden;
  color: var(--cream);
  font-size: 14.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-card small {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 12.5px;
  letter-spacing: 0.2px;
}

.sermon-list {
  display: flex;
  flex-direction: column;
}

.sermon-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 9px 14px;
  border: 0;
  border-radius: 12px;
  color: var(--cream);
  text-align: left;
  background: transparent;
}

.sermon-row:hover {
  background: rgba(242, 235, 221, 0.05);
}

.sermon-row.active strong {
  color: var(--gold-light);
}

.sermon-num {
  color: var(--dim);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.sermon-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.row-art {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 9px;
}

.sermon-row strong,
.sermon-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sermon-row strong {
  font-size: 15px;
  font-weight: 600;
}

.sermon-row small {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 13px;
}

.sermon-duration {
  padding-right: 6px;
  color: var(--subtle);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.player {
  grid-row: 2 / 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr) minmax(160px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 75px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.player-art {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 10px;
}

.now-playing strong,
.now-playing span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-playing strong {
  font-size: 14px;
  font-weight: 600;
}

.now-playing span {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 12.5px;
}

.eq {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
}

.is-playing .eq {
  display: flex;
}

.eq i {
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--cream);
  transform-origin: center;
  animation: eq 0.8s ease-in-out infinite;
}

.eq i:nth-child(2) {
  animation-delay: 0.25s;
}

.eq i:nth-child(3) {
  animation-delay: 0.5s;
}

.transport {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.controls button,
.controls a {
  display: grid;
  place-items: center;
  padding: 4px;
  border: 0;
  color: var(--cream-soft);
  background: transparent;
}

.controls button:hover,
.controls a:hover {
  color: var(--cream);
}

.controls .aux-control {
  color: var(--muted);
}

.controls svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.controls .aux-control svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.controls .aux-control path:last-child {
  fill: currentColor;
}

.play-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  color: #1a140a;
  background: var(--cream) !important;
  transition: 160ms ease;
}

.play-button:hover {
  transform: scale(1.06);
  background: #fff !important;
}

.play-button svg {
  width: 17px;
  height: 17px;
}

.play-button .play-icon {
  margin-left: 2px;
}

.scrubber {
  display: grid;
  grid-template-columns: 34px minmax(7rem, 1fr) 34px;
  align-items: center;
  gap: 11px;
  width: 100%;
  max-width: 480px;
}

.scrubber span {
  color: var(--subtle);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.scrubber span:first-child {
  text-align: right;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  padding: 0;
  border-radius: 3px;
  accent-color: var(--gold);
  background: rgba(242, 235, 221, 0.12);
}

.volume {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.volume svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.volume span {
  position: relative;
  width: 96px;
  height: 4px;
  border-radius: 3px;
  background: rgba(242, 235, 221, 0.12);
}

.volume i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 68%;
  border-radius: 3px;
  background: var(--muted);
}

.youtube-host {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.01;
}

@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.35);
  }

  50% {
    transform: scaleY(1);
  }
}

@media (max-width: 859px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    display: none;
  }

  .main {
    grid-column: 1 / -1;
  }

  .mobile-logo {
    display: block;
  }

  .topbar {
    padding: 12px 14px;
  }

  .source-link {
    display: none;
  }

  .browse-wrap {
    padding: 18px 14px 32px;
  }

  .hero {
    padding: 30px 24px 28px;
  }

  .player {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 14px;
  }

  .transport {
    align-items: flex-end;
  }

  .scrubber,
  .volume,
  .controls .aux-control {
    display: none;
  }
}

@media (max-width: 560px) {
  .topbar {
    gap: 10px;
  }

  .mobile-logo {
    max-width: 104px;
    object-fit: contain;
  }

  .search-pill {
    min-width: 0;
    padding-inline: 11px;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .collection-card {
    padding: 11px;
  }

  .sermon-row {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    padding-inline: 8px;
  }

  .sermon-duration {
    display: none;
  }

  .controls {
    gap: 14px;
  }

  .now-playing {
    gap: 10px;
  }

  .player-art {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }
}
