:root {
  color-scheme: light;
  --md-surface: #fffbfe;
  --md-on-surface: #1c1b1f;
  --md-primary: #6750a4;
  --md-on-primary: #ffffff;
  --md-secondary-container: #e8def8;
  --md-on-secondary-container: #1d192b;
  --md-tertiary: #7d5260;
  --md-tertiary-container: #ffd8e4;
  --md-surface-container: #f3edf7;
  --md-surface-container-low: #e7e0ec;
  --md-outline: #79747e;
  --md-on-surface-variant: #49454f;
  --md-success-container: #d8f5dc;
  --md-success: #146c2e;
  --md-warm-container: #f7e6cf;
  --font-body: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-md: cubic-bezier(0.2, 0, 0, 1);
  --radius-card: 24px;
  --radius-section: 48px;
  --shadow-1: 0 4px 16px rgba(28, 27, 31, 0.08);
  --shadow-2: 0 12px 34px rgba(28, 27, 31, 0.12);
  --shadow-3: 0 24px 60px rgba(28, 27, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(232, 222, 248, 0.72), transparent 38rem),
    radial-gradient(circle at left 35rem, rgba(255, 216, 228, 0.48), transparent 34rem),
    var(--md-surface);
  color: var(--md-on-surface);
  font-family: var(--font-body);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

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

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

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--md-primary);
  color: var(--md-on-primary);
  padding: 10px 18px;
  font-weight: 700;
  transition: transform 200ms var(--ease-md);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(121, 116, 126, 0.18);
  background: rgba(255, 251, 254, 0.82);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 8px 10px 8px 8px;
  transition: background 250ms var(--ease-md), transform 250ms var(--ease-md);
}

.brand:hover {
  background: rgba(103, 80, 164, 0.08);
}

.brand:active {
  transform: scale(0.98);
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: var(--md-primary);
  color: var(--md-on-primary);
  font-weight: 700;
  box-shadow: var(--shadow-1);
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
}

.brand-subtitle {
  color: var(--md-on-surface-variant);
  font-size: 0.75rem;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(243, 237, 247, 0.84);
}

.nav-links a {
  border-radius: 999px;
  color: var(--md-on-surface-variant);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 16px;
  transition: background 220ms var(--ease-md), color 220ms var(--ease-md), transform 220ms var(--ease-md);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(103, 80, 164, 0.1);
  color: var(--md-primary);
}

.nav-links a:active {
  transform: scale(0.95);
}

.hero-section,
.release-gallery,
.library-toolbar,
.content-grid,
.artists-section,
.testimonials-section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: clamp(540px, 70vh, 720px);
  margin-top: 24px;
  padding: clamp(24px, 3.2vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 640px);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  border-radius: var(--radius-section);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 216, 228, 0.8), transparent 22rem),
    linear-gradient(135deg, rgba(243, 237, 247, 0.96), rgba(232, 222, 248, 0.72));
  box-shadow: var(--shadow-2);
  scroll-margin-top: 96px;
}

.ambient {
  position: absolute;
  pointer-events: none;
  filter: blur(56px);
  mix-blend-mode: multiply;
}

.ambient-one {
  width: 360px;
  height: 360px;
  right: -100px;
  top: -70px;
  border-radius: 999px;
  background: rgba(103, 80, 164, 0.28);
}

.ambient-two {
  width: 320px;
  height: 210px;
  left: -90px;
  bottom: 40px;
  border-radius: 130px 130px 32px 130px;
  background: rgba(125, 82, 96, 0.22);
  transform: rotate(-10deg);
}

.ambient-three {
  width: 220px;
  height: 220px;
  right: 24%;
  bottom: -90px;
  border-radius: 999px;
  background: rgba(247, 230, 207, 0.8);
}

.ambient-release {
  width: 320px;
  height: 260px;
  right: -90px;
  top: -80px;
  border-radius: 999px;
  background: rgba(255, 216, 228, 0.64);
}

.hero-copy,
.album-card,
.release-gallery-copy,
.release-photo-grid,
.library-toolbar > *,
.track-panel,
.player-panel,
.artists-copy,
.artist-cards,
.artist-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--md-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3.6vw, 2.35rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
  text-align: left;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.hero-lede {
  max-width: 640px;
  color: var(--md-on-surface-variant);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.album-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: 26px;
  padding: 6px;
  border-radius: 30px;
  background: rgba(255, 251, 254, 0.38);
  box-shadow: inset 0 0 0 1px rgba(103, 80, 164, 0.12);
  backdrop-filter: blur(12px);
}

.album-tab {
  min-width: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--md-on-surface-variant);
  cursor: pointer;
  padding: 14px 16px;
  text-align: left;
  transition:
    background 250ms var(--ease-md),
    box-shadow 300ms var(--ease-md),
    color 250ms var(--ease-md),
    transform 250ms var(--ease-md);
}

.album-tab:hover {
  background: rgba(103, 80, 164, 0.1);
}

.album-tab:active {
  transform: scale(0.97);
}

.album-tab.is-active {
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
  box-shadow: var(--shadow-1);
}

.album-tab > span,
.album-tab strong,
.album-tab small {
  display: block;
}

.album-tab > span {
  color: var(--md-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.album-tab strong {
  margin-top: 4px;
  font-size: 0.95rem;
  line-height: 1.25;
}

.album-tab small {
  margin-top: 8px;
  color: var(--md-on-surface-variant);
  font-size: 0.75rem;
  font-weight: 500;
}

.album-track-count {
  color: var(--md-success);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions .button {
  min-height: 44px;
  gap: 8px;
  padding-inline: 18px;
  white-space: nowrap;
}

.button,
.icon-button,
.play-button,
.track-play {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    background 250ms var(--ease-md),
    box-shadow 300ms var(--ease-md),
    color 250ms var(--ease-md),
    transform 250ms var(--ease-md);
}

.button {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.button svg,
.icon-button svg,
.play-button svg,
.track-play svg,
.search-field svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.button-filled {
  background: var(--md-primary);
  color: var(--md-on-primary);
  box-shadow: var(--shadow-1);
}

.button-filled:hover {
  background: rgba(103, 80, 164, 0.9);
  box-shadow: var(--shadow-2);
}

.button-filled:active,
.button-tonal:active,
.icon-button:active,
.play-button:active,
.track-play:active {
  transform: scale(0.95);
}

.button-tonal,
.icon-button.tonal {
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
}

.button-tonal:hover,
.icon-button.tonal:hover {
  background: rgba(232, 222, 248, 0.82);
  box-shadow: var(--shadow-1);
}

.button-outlined {
  background: rgba(255, 251, 254, 0.24);
  box-shadow: inset 0 0 0 1px rgba(103, 80, 164, 0.42);
  color: var(--md-primary);
}

.button-outlined:hover {
  background: rgba(103, 80, 164, 0.1);
  box-shadow: inset 0 0 0 1px rgba(103, 80, 164, 0.58), var(--shadow-1);
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: transparent;
  color: var(--md-primary);
}

.icon-button:hover {
  background: rgba(103, 80, 164, 0.1);
}

.album-card {
  justify-self: end;
  width: 100%;
  max-width: 640px;
  padding: 18px;
  border-radius: 32px;
  background: rgba(255, 251, 254, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow-3);
  backdrop-filter: blur(18px);
}

.album-art-wrap {
  overflow: hidden;
  border-radius: 26px;
  background: var(--md-surface-container-low);
  box-shadow: inset 0 0 0 1px rgba(121, 116, 126, 0.16);
}

.album-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 500ms var(--ease-md);
}

.album-card:hover .album-art {
  transform: scale(1.035);
}

.release-gallery {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: 40px;
  background:
    radial-gradient(circle at 84% 6%, rgba(255, 216, 228, 0.64), transparent 20rem),
    linear-gradient(135deg, rgba(255, 251, 254, 0.88), rgba(243, 237, 247, 0.92));
  box-shadow: var(--shadow-1);
}

.release-gallery-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 24px;
  width: 100%;
}

.release-gallery-copy p:last-child {
  max-width: 800px;
  margin: 0;
  text-align: justify;
  text-align-last: center;
  color: var(--md-on-surface-variant);
  line-height: 1.6;
  font-size: 1.05rem;
}

.release-photo-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.release-photo-card {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: var(--md-surface-container-low);
  box-shadow: inset 0 0 0 1px rgba(121, 116, 126, 0.12), var(--shadow-1);
}

.release-photo-card.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.release-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-md);
}

.release-photo-card:hover img {
  transform: scale(1.04);
}

.artists-copy p,
.artist-card p,
.player-copy p,
.track-meta,
.track-duration {
  color: var(--md-on-surface-variant);
  line-height: 1.55;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.library-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 24px;
  scroll-margin-top: 96px;
}

.library-toolbar h2 {
  margin-bottom: 0;
}

.search-field {
  position: relative;
  display: block;
  width: min(420px, 100%);
}

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

.search-field svg {
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--md-on-surface-variant);
}

.search-field input {
  width: 100%;
  height: 58px;
  border: 0;
  border-bottom: 2px solid var(--md-outline);
  border-radius: 14px 14px 0 0;
  background: var(--md-surface-container-low);
  color: var(--md-on-surface);
  outline: 0;
  padding: 0 18px 0 52px;
  transition: border-color 200ms var(--ease-md), box-shadow 200ms var(--ease-md), background 200ms var(--ease-md);
}

.search-field input::placeholder {
  color: rgba(73, 69, 79, 0.76);
}

.search-field input:focus {
  border-bottom-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(103, 80, 164, 0.16);
  background: rgba(231, 224, 236, 0.76);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: 24px;
  align-items: start;
  scroll-margin-top: 96px;
}

.track-panel,
.player-panel,
.artist-card {
  border-radius: var(--radius-card);
  background: var(--md-surface-container);
  box-shadow: var(--shadow-1);
}

.track-panel {
  padding: clamp(18px, 3vw, 28px);
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.track-count {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--md-success-container);
  color: var(--md-success);
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.track-list {
  display: grid;
  gap: 12px;
}

.track-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-radius: 22px;
  background: rgba(255, 251, 254, 0.48);
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(121, 116, 126, 0.08);
  transition:
    background 250ms var(--ease-md),
    box-shadow 300ms var(--ease-md),
    transform 300ms var(--ease-md);
}

.track-card:hover {
  background: rgba(232, 222, 248, 0.56);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
}

.track-card.is-active {
  background: var(--md-secondary-container);
  box-shadow: 0 0 0 2px rgba(103, 80, 164, 0.32);
}

.track-play {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--md-primary);
  color: var(--md-on-primary);
}

.track-play:hover {
  background: rgba(103, 80, 164, 0.9);
  box-shadow: var(--shadow-1);
}

.track-index {
  color: var(--md-primary);
  font-size: 0.875rem;
  font-weight: 700;
}

.track-info {
  min-width: 0;
}

.track-title {
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.track-meta {
  margin: 0;
  font-size: 0.875rem;
}

.track-duration {
  text-align: right;
  font-size: 0.75rem;
}

.track-duration strong {
  display: block;
  color: var(--md-on-surface);
  font-size: 0.875rem;
}

.empty-state {
  margin: 28px 0 0;
  border-radius: 24px;
  background: var(--md-warm-container);
  padding: 22px;
  color: var(--md-on-surface-variant);
}

.player-panel {
  position: sticky;
  top: 96px;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 216, 228, 0.72), transparent 16rem),
    var(--md-surface-container);
}

.player-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.player-visual img {
  width: min(260px, 72%);
  aspect-ratio: 1;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: var(--shadow-2);
}

.pulse-ring {
  position: absolute;
  z-index: -1;
  width: min(330px, 88%);
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(103, 80, 164, 0.12);
  filter: blur(18px);
  transform: scale(0.92);
  transition: transform 400ms var(--ease-md), opacity 400ms var(--ease-md);
}

.player-panel.is-playing .pulse-ring {
  opacity: 1;
  transform: scale(1.04);
}

.player-copy h2 {
  margin-bottom: 8px;
  font-size: 1.75rem;
}

.player-copy p:last-child {
  min-height: 50px;
}

.progress-group {
  margin: 24px 0;
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--md-on-surface-variant);
  font-size: 0.75rem;
  font-weight: 700;
}

.progress {
  width: 100%;
  accent-color: var(--md-primary);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.play-button {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--md-primary);
  color: var(--md-on-primary);
  box-shadow: var(--shadow-2);
}

.play-button:hover {
  background: rgba(103, 80, 164, 0.9);
  box-shadow: var(--shadow-3);
}

/* Album Card Inline Video styling */
.album-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(121, 116, 126, 0.16);
}

.album-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.video-controls {
  position: absolute;
  inset: auto 12px 12px;
  z-index: 2;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: rgba(7, 20, 34, 0.78);
  color: var(--md-on-primary);
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 220ms var(--ease-md),
    transform 220ms var(--ease-md);
  backdrop-filter: blur(14px);
}

.album-card.is-video-controls-visible .video-controls,
.album-video-wrap.is-video-controls-visible:fullscreen .video-controls {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.video-control-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: rgba(232, 222, 248, 0.94);
  color: var(--md-primary);
  transition:
    background 220ms var(--ease-md),
    transform 220ms var(--ease-md);
}

.video-control-button:hover {
  background: var(--md-secondary-container);
}

.video-control-button:active {
  transform: scale(0.94);
}

.video-control-button svg {
  width: 20px;
  height: 20px;
}

.video-corner-control {
  position: absolute;
  z-index: 3;
  top: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transition:
    opacity 220ms var(--ease-md),
    transform 220ms var(--ease-md);
}

.album-card.is-video-controls-visible .video-corner-control,
.album-video-wrap.is-video-controls-visible:fullscreen .video-corner-control {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.album-card.is-video-muted:not(.is-video-controls-visible) .video-audio-control {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.video-audio-control {
  left: 12px;
}

.video-fullscreen-control {
  right: 12px;
}

.video-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.75rem;
  font-weight: 700;
}

.video-progress input {
  width: 100%;
  min-width: 0;
  accent-color: var(--md-secondary-container);
}

.album-video-wrap:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}

.album-video-wrap:fullscreen iframe {
  height: 100%;
}

.artists-section {
  position: relative;
  overflow: hidden;
  display: block;
  margin-top: 28px;
  margin-bottom: 28px;
  border-radius: var(--radius-section);
  background:
    radial-gradient(circle at 100% 100%, rgba(103, 80, 164, 0.18), transparent 26rem),
    var(--md-primary);
  color: var(--md-on-primary);
  padding: clamp(28px, 5vw, 56px);
  scroll-margin-top: 96px;
  box-shadow: var(--shadow-2);
}

.ambient-four {
  width: 310px;
  height: 310px;
  right: -80px;
  top: -80px;
  border-radius: 999px;
  background: rgba(255, 216, 228, 0.35);
}

.artists-section .eyebrow,
.artists-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.artists-copy {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

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

.artist-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--md-on-primary);
  backdrop-filter: blur(14px);
  transition: transform 300ms var(--ease-md), background 300ms var(--ease-md), box-shadow 300ms var(--ease-md);
}

.artist-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  opacity: 0;
  filter: blur(24px);
  transition: opacity 300ms var(--ease-md);
}

.artist-card:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
}

.artist-card:hover::before {
  opacity: 1;
}

.artist-media {
  position: relative;
  overflow: hidden;
  height: 220px;
  margin-bottom: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 216, 228, 0.35), transparent 12rem),
    rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.artist-media img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  object-position: center;
  transition: transform 500ms var(--ease-md);
}

.artist-card:hover .artist-media img {
  transform: scale(1.05);
}

.artist-mark {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 20px;
  background: rgba(103, 80, 164, 0.72);
  backdrop-filter: blur(10px);
  color: var(--md-tertiary-container);
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.artist-role {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.artist-card p {
  color: rgba(255, 255, 255, 0.76);
}

.featured-artist {
  background: rgba(255, 255, 255, 0.17);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.14);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 32px 0 44px;
  color: var(--md-on-surface-variant);
}

.site-footer a {
  border-radius: 999px;
  color: var(--md-primary);
  font-weight: 700;
  padding: 10px 14px;
  transition: background 220ms var(--ease-md), transform 220ms var(--ease-md);
}

.site-footer a:hover {
  background: rgba(103, 80, 164, 0.1);
}

.site-footer a:active {
  transform: scale(0.95);
}

:focus-visible {
  outline: 2px solid var(--md-primary);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-section,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .artists-section {
    display: block;
  }

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

  .hero-section {
    min-height: auto;
  }

  .album-card {
    max-width: 640px;
  }

  .player-panel {
    position: static;
  }

  .featured-artist {
    transform: none;
  }

  .release-gallery-copy p:last-child {
    margin-top: 0;
  }

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

@media (min-width: 761px) {
  .site-header .nav-shell {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
  }
  
  .site-header .nav-shell > :first-child {
    justify-self: start;
  }
  
  .site-header .nav-shell > :nth-child(2) {
    justify-self: center;
    margin-left: -24px; /* Pull slightly to the left to compensate for visual weight of the brand logo */
  }
  
  .site-header .nav-shell > :last-child {
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: auto;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 0 10px;
  }

  .brand {
    padding-left: 0;
  }

  .nav-links {
    order: 3;
    display: flex;
    width: 100%;
    justify-content: safe center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px clamp(8px, 2.5vw, 12px);
    font-size: clamp(0.72rem, 2.8vw, 0.82rem);
    white-space: nowrap;
  }

  .nav-shell > .icon-button {
    margin-left: auto;
  }

  .hero-section,
  .release-gallery,
  .artists-section {
    width: min(100% - 20px, 1180px);
    border-radius: 28px;
    padding: 24px;
  }

  .artists-section {
    display: block;
  }

  .artist-cards {
    grid-template-columns: 1fr;
  }

  .hero-section {
    gap: 22px;
  }

  .album-switcher {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .album-card {
    justify-self: stretch;
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 28px;
  }

  .artist-media {
    height: 200px;
  }

  .album-art-wrap {
    border-radius: 22px;
  }

  .library-toolbar {
    display: grid;
    padding-top: 48px;
  }

  .content-grid {
    width: min(100% - 20px, 1180px);
  }

  .release-photo-grid {
    grid-template-columns: 1fr;
  }

  .release-photo-card.is-featured {
    grid-column: auto;
    grid-row: auto;
  }

  .track-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .track-duration {
    grid-column: 2;
    text-align: left;
  }

}

@media (max-width: 480px) {
  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .player-controls {
    gap: 12px;
  }

  .site-footer {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Reading Interface for Journey Page */
.journey-page-container {
  position: relative;
  width: min(800px, calc(100% - 32px));
  margin: 56px auto;
}

.journey-page-wrapper {
  position: relative;
  width: 100%;
  padding: clamp(24px, 5vw, 64px);
  background: rgba(243, 237, 247, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-section);
  border: 1px solid rgba(121, 116, 126, 0.16);
  box-shadow: var(--shadow-2);
  transition: box-shadow 300ms var(--ease-md);
  z-index: 2;
}

.journey-page-wrapper:hover {
  box-shadow: var(--shadow-3);
}

.journey-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--md-primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 40px;
  padding: 10px 24px;
  border-radius: 9999px;
  background: rgba(103, 80, 164, 0.06);
  border: 1px solid rgba(103, 80, 164, 0.12);
  transition: all 250ms var(--ease-md);
  font-size: 0.95rem;
}

.journey-back-btn:hover {
  background: var(--md-primary);
  color: var(--md-on-primary);
  border-color: var(--md-primary);
  box-shadow: var(--shadow-1);
}

.journey-back-btn:active {
  transform: scale(0.95);
}

/* Background Atmospheric Blurs */
.ambient-blur {
  position: fixed;
  width: min(45vw, 450px);
  height: min(45vw, 450px);
  border-radius: 50%;
  opacity: 0.16;
  filter: blur(90px);
  -webkit-filter: blur(90px);
  pointer-events: none;
  z-index: 1;
}

.ambient-1 {
  top: 10%;
  right: -10%;
  background: var(--md-primary);
}

.ambient-2 {
  bottom: 5%;
  left: -10%;
  background: var(--md-tertiary);
}

.ambient-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--md-secondary-container);
  opacity: 0.08;
}

/* Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(121, 116, 126, 0.08);
  z-index: 100;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--md-primary);
  transition: width 100ms ease-out;
}

/* Memoir Hero Header */
.memoir-hero {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(121, 116, 126, 0.12);
}

.memoir-hero .eyebrow {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--md-primary);
  margin-bottom: 16px;
}

.memoir-hero h1 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  text-align: center;
  color: var(--md-on-surface);
  font-weight: 700;
  margin: 0 0 16px 0;
}

.memoir-hero .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--md-on-surface-variant);
  margin: 0 0 28px 0;
}

.memoir-podcast-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px 0;
  padding: 20px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 216, 228, 0.7), transparent 45%),
    linear-gradient(135deg, rgba(232, 222, 248, 0.92), rgba(243, 237, 247, 0.86));
  border: 1px solid rgba(103, 80, 164, 0.12);
  box-shadow: var(--shadow-1);
}

.memoir-podcast-bar::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -72px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(103, 80, 164, 0.18);
  filter: blur(42px);
  pointer-events: none;
}

.memoir-podcast-copy {
  position: relative;
  z-index: 1;
}

.podcast-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--md-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memoir-podcast-copy h2 {
  margin: 0 0 6px 0;
  color: var(--md-on-surface);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  line-height: 1.25;
}

.memoir-podcast-copy p {
  margin: 0;
  color: var(--md-on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.5;
}

.podcast-player {
  position: relative;
  z-index: 1;
  flex: 0 0 min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.podcast-language-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.podcast-language,
.podcast-download {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 251, 254, 0.74);
  color: var(--md-primary);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid rgba(103, 80, 164, 0.14);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition:
    transform 250ms var(--ease-md),
    box-shadow 250ms var(--ease-md),
    background 250ms var(--ease-md),
    color 250ms var(--ease-md);
}

.podcast-language:hover,
.podcast-download:hover {
  transform: translateY(-1px);
  background: rgba(103, 80, 164, 0.1);
  box-shadow: var(--shadow-2);
}

.podcast-language.is-active {
  background: var(--md-primary);
  color: var(--md-on-primary);
}

.podcast-language.is-active:hover {
  transform: translateY(-1px);
  background: rgba(103, 80, 164, 0.9);
  box-shadow: var(--shadow-2);
}

.podcast-language:active,
.podcast-download:active {
  transform: scale(0.95);
}

.podcast-language:focus-visible,
.podcast-download:focus-visible,
.podcast-audio:focus-visible {
  outline: 2px solid var(--md-primary);
  outline-offset: 3px;
}

.podcast-audio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 251, 254, 0.56);
  border: 1px solid rgba(103, 80, 164, 0.1);
}

.podcast-audio {
  flex: 1 1 auto;
  width: 100%;
  min-width: 190px;
  height: 40px;
  accent-color: var(--md-primary);
}

.podcast-download {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  min-width: 48px;
  padding: 0;
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
  box-shadow: none;
}

.podcast-download::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--md-on-surface);
  color: var(--md-surface);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow-1);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition:
    opacity 180ms var(--ease-md),
    transform 180ms var(--ease-md);
}

.podcast-download:hover::after,
.podcast-download:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reading-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--md-on-surface-variant);
  font-weight: 500;
}

.reading-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Chapters */
.chapter-section {
  scroll-margin-top: 96px;
  margin-top: 56px;
  margin-bottom: 32px;
}

.chapter-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.chapter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 9999px;
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.chapter-header h3 {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--md-primary);
  margin: 0;
  font-weight: 700;
}

/* Premium Article Content Body */
.journey-article {
  color: var(--md-on-surface-variant);
  line-height: 1.8;
  font-size: 1.125rem;
}

.journey-article p {
  margin-bottom: 28px;
  text-align: justify;
}

/* First-letter styling removed to align with index.html */

/* Verse Card Styling */
.verse-card {
  position: relative;
  margin: 48px 0;
  padding: 40px clamp(20px, 5vw, 48px);
  background: linear-gradient(135deg, rgba(103, 80, 164, 0.06), rgba(125, 82, 96, 0.04));
  border-radius: 28px;
  border: 1px solid rgba(103, 80, 164, 0.12);
  text-align: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.verse-card::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 28px;
  font-size: 8rem;
  font-family: Georgia, serif;
  color: rgba(103, 80, 164, 0.06);
  pointer-events: none;
}

.sanskrit-text {
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  line-height: 1.8;
  color: var(--md-primary);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.translation-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--md-on-surface);
  font-style: italic;
  margin-bottom: 12px;
}

.citation-text {
  display: block;
  font-size: 0.825rem;
  color: var(--md-tertiary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Revelations Layout */
.revelations-intro {
  margin-top: 64px;
}

.revelations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
  margin-bottom: 56px;
}

.revelation-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: rgba(243, 237, 247, 0.5);
  border-radius: 24px;
  border: 1px solid rgba(121, 116, 126, 0.12);
  transition: all 300ms var(--ease-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.revelation-card:hover {
  transform: scale(1.015) translateY(-2px);
  background: var(--md-surface-container);
  border-color: rgba(103, 80, 164, 0.24);
  box-shadow: var(--shadow-md);
}

.revelation-num {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  color: var(--md-primary);
  opacity: 0.9;
  line-height: 1;
  flex-shrink: 0;
}

.revelation-body {
  flex-grow: 1;
}

.revelation-quote {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--md-on-surface);
  line-height: 1.5;
  margin: 0 0 12px 0;
  font-style: italic;
}

.revelation-note {
  font-size: 0.95rem;
  color: var(--md-on-surface-variant);
  line-height: 1.55;
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--md-secondary-container);
}

/* Scroll Top FAB */
.scroll-top-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--md-primary);
  color: var(--md-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 99;
  box-shadow: var(--shadow-2);
  transition: all 300ms var(--ease-md);
  opacity: 0;
  visibility: hidden;
}

.scroll-top-fab.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-fab:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-4px);
  background: var(--md-primary);
}

.scroll-top-fab:active {
  transform: translateY(-2px) scale(0.92);
}

/* Chapter Navigation / Table of Contents styling */
.journey-page-container {
  display: block;
}

.inline-toc {
  margin: 32px 0 48px 0;
  padding: 24px;
  background: rgba(103, 80, 164, 0.04);
  border: 1px solid rgba(103, 80, 164, 0.08);
  border-radius: 28px;
}

.toc-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--md-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.toc-grid-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--md-surface);
  border: 1px solid rgba(121, 116, 126, 0.12);
  border-radius: 16px;
  color: var(--md-on-surface);
  transition: all 250ms var(--ease-md);
  height: 100%;
}

.toc-grid-card:hover {
  transform: translateY(-2px);
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
  border-color: transparent;
  box-shadow: var(--shadow-1);
}

.toc-grid-card:active {
  transform: scale(0.98);
}

.toc-card-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--md-primary);
  line-height: 1.2;
}

.toc-grid-card:hover .toc-card-num {
  color: var(--md-on-secondary-container);
}

.toc-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.desktop-toc {
  display: none;
}

@media (min-width: 1480px) {
  .inline-toc {
    display: none;
  }

  .desktop-toc {
    display: block;
    position: fixed;
    top: 120px;
    left: calc(50% - 400px - 340px);
    width: 300px;
    flex-shrink: 0;
    background: rgba(243, 237, 247, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    border: 1px solid rgba(121, 116, 126, 0.16);
    padding: 24px;
    box-shadow: var(--shadow-1);
    z-index: 10;
  }

  .toc-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .toc-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--md-on-surface-variant);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 200ms var(--ease-md);
    border-left: 3px solid transparent;
  }

  .toc-sidebar-link:hover {
    background: rgba(103, 80, 164, 0.05);
    color: var(--md-primary);
  }

  .toc-sidebar-link.active {
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
    border-left-color: var(--md-primary);
  }

  .toc-sidebar-number {
    font-weight: 700;
    color: var(--md-primary);
    opacity: 0.8;
  }

  .toc-sidebar-link.active .toc-sidebar-number {
    color: var(--md-on-secondary-container);
  }
}

/* Memoir Summary styling */
.memoir-summary {
  margin: 32px 0 0 0;
  padding: 24px clamp(20px, 4vw, 32px);
  background: rgba(103, 80, 164, 0.05);
  border-left: 4px solid var(--md-primary);
  border-radius: 0 20px 20px 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--md-on-surface-variant);
}

.memoir-summary p {
  margin: 0;
  text-align: justify;
}

.memoir-summary p::first-letter {
  font-family: inherit !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

/* Testimonials Section Styling */
.testimonials-section {
  position: relative;
  margin-top: 56px;
  margin-bottom: 56px;
}

.testimonials-copy {
  max-width: 600px;
  margin: 0 auto 36px auto;
  text-align: center;
}

.testimonials-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--md-on-surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(121, 116, 126, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-1);
  transition: transform 300ms var(--ease-md), background 300ms var(--ease-md), box-shadow 300ms var(--ease-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-2);
}

.testimonial-card p.quote {
  font-style: italic;
  color: var(--md-on-surface);
  line-height: 1.6;
  margin-bottom: 16px;
}

.testimonial-card p.author {
  font-weight: 700;
  color: var(--md-primary);
  font-size: 0.95rem;
  margin: 0;
}

/* Testimonials Section Styling */
.testimonials-section {
  position: relative;
  margin-top: 56px;
  margin-bottom: 56px;
}

.testimonials-copy {
  max-width: 600px;
  margin: 0 auto 36px auto;
  text-align: center;
}

.testimonials-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--md-on-surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(121, 116, 126, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-1);
  transition: transform 300ms var(--ease-md), background 300ms var(--ease-md), box-shadow 300ms var(--ease-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-2);
}

.testimonial-card p.quote {
  font-style: italic;
  color: var(--md-on-surface);
  line-height: 1.6;
  margin-bottom: 16px;
}

.testimonial-card p.author {
  font-weight: 700;
  color: var(--md-primary);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 760px) {
  .memoir-podcast-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .podcast-player {
    flex-basis: auto;
    width: 100%;
  }

  .podcast-language-tabs {
    justify-content: center;
  }

  .podcast-language {
    flex: 1 1 120px;
  }

  .podcast-audio-row {
    align-items: stretch;
    border-radius: 24px;
    flex-direction: column;
  }

  .podcast-audio {
    min-width: 0;
  }

  .podcast-download {
    width: 48px;
    align-self: flex-end;
  }
}

/* Books Library Section */
.books-section {
  width: min(100% - 20px, 1180px);
  margin: 0 auto 64px;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 32px;
  width: 100%;
}

.book-card {
  perspective: 1000px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s var(--ease-md);
}

.book-card:hover {
  transform: translateY(-8px);
}

.book-cover {
  position: relative;
  aspect-ratio: 3 / 4.2;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 3px 0 6px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  transition: box-shadow 0.3s var(--ease-md), transform 0.3s var(--ease-md);
  transform-style: preserve-3d;
}

.book-card:hover .book-cover {
  box-shadow: 
    0 16px 24px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.12),
    inset 3px 0 6px rgba(0, 0, 0, 0.3);
}

.book-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.05) 50%, rgba(255, 255, 255, 0.05) 75%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  border-radius: 4px 0 0 4px;
}

.book-cover::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  border-radius: 2px 8px 8px 2px;
  z-index: 2;
}

.book-cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.book-cover.has-cover-image .book-cover-title,
.book-cover.has-cover-image .book-cover-author {
  display: none;
}

.book-cover-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.book-cover-author {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.book-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--md-on-surface);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card-author {
  font-size: 0.8rem;
  color: var(--md-on-surface-variant);
  margin: 0;
}

.books-hero {
  grid-template-columns: 1fr;
  min-height: auto;
  padding-block: clamp(40px, 5vw, 64px);
}

@media (max-width: 600px) {
  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
  }
  
  .book-cover {
    padding: 16px 12px;
  }
  
  .book-cover-title {
    font-size: 0.85rem;
    -webkit-line-clamp: 5;
  }
  
  .book-cover-author {
    font-size: 0.65rem;
  }
  
  .books-hero {
    padding-block: 40px;
  }
}
