
:root {
  --bg: #f6f0ea;
  --surface: #fffaf6;
  --surface-2: #f1e7df;
  --text: #2d1f1a;
  --muted: #6f5b53;
  --line: #dccfc5;
  --accent: #7f4f3d;
  --accent-dark: #613a2d;
  --shadow: 0 16px 40px rgba(45, 31, 26, 0.08);
  --radius: 20px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbf7f2 0%, #f3ebe5 100%);
  line-height: 1.6;
}

body.has-global-player {
  padding-bottom: 120px;
}

body.mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 2rem));
}

/* =========================
   HEADER
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(10px);
  background: rgba(251, 247, 242, 0.92);
  border-bottom: 1px solid rgba(220, 207, 197, 0.8);
}

.header-inner,
.footer-inner,
.hero-grid,
.audio-grid,
.section-head {
  display: grid;
  gap: 1.5rem;
}

.header-inner {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  font-weight: 700;
  min-width: 0;
}

.brand-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(127, 79, 61, 0.18);
  background: #eee6e0;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-avatar-fallback {
  font-weight: 700;
  color: #7f4f3d;
  font-size: 1.4rem;
}

.brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-link,
.currency-dropdown-toggle,
.lang-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-weight: 700;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.account-link {
  color: var(--text);
}

.account-link:hover,
.currency-dropdown-toggle:hover,
.lang-dropdown-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.currency-dropdown,
.lang-dropdown {
  position: relative;
}

.currency-dropdown-toggle,
.lang-dropdown-toggle {
  color: var(--muted);
  cursor: pointer;
}

.currency-dropdown-menu,
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  min-width: 190px;
  padding: 0.5rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 240;
  flex-direction: column;
  gap: 0.35rem;
}

.currency-dropdown:hover .currency-dropdown-menu,
.currency-dropdown:focus-within .currency-dropdown-menu,
.lang-dropdown:hover .lang-dropdown-menu,
.lang-dropdown:focus-within .lang-dropdown-menu {
  display: flex;
}

.currency-option,
.lang-option {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
}

.currency-option:hover,
.currency-option.active,
.lang-option:hover,
.lang-option.active {
  background: rgba(127, 79, 61, 0.1);
  color: var(--accent);
}

.header-user-badge {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(127, 79, 61, 0.08);
  border: 1px solid rgba(127, 79, 61, 0.18);
  color: #2d1f1a;
  font-weight: 700;
  white-space: nowrap;
}

.header-actions .header-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.header-actions .header-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-menu-toggle,
.mobile-menu-overlay,
.mobile-menu-drawer,
.mobile-menu-close {
  display: none;
}

/* =========================
   TYPO / GENERAL
========================= */
.hero,
.section {
  padding: 5rem 0;
}

.hero-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.hero > .container:last-child {
  margin-top: 2.8rem;
}

.section-label,
.book-badge,
.coming-soon {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-label {
  color: var(--accent);
}

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

.section-title,
.hero-title {
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  font-weight: 700;
}

.hero-title {
  max-width: 24ch;
}

.about-box .section-title,
.about-section-wide .section-title {
  max-width: none;
}

.section-subheadline {
  margin: 0.8rem 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  font-weight: 600;
  color: var(--accent);
  max-width: 46rem;
}

.hero-text,
.section-text,
.book-body p,
.audio-card p,
.song-details > p {
  color: var(--muted);
}

.hero-text {
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.section-text {
  margin-top: 1rem;
}

.hero-actions,
.card-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  border-color: var(--line);
  background: white;
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  min-height: 34px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.btn-success {
  background: #2e7d32;
  color: #fff;
}

.btn-success:hover {
  background: #2e7d32;
  color: #fff;
}

.btn.disabled {
  opacity: 0.8;
  pointer-events: none;
}

/* =========================
   SHARED CARDS
========================= */
.about-box,
.slideshow-card,
.book-card,
.audio-card,
.song-card,
.modal-dialog {
  background: rgba(255, 250, 246, 0.94);
  border: 1px solid rgba(220, 207, 197, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-box,
.audio-card {
  padding: 1.4rem;
}

.about-section-wide {
  padding-top: 2.8rem;
}

.about-section-wide .container {
  max-width: 1000px;
}

/* =========================
   HERO / SLIDES
========================= */
.hero-visual {
  width: 100%;
}

.slideshow-card {
  position: relative;
  width: 100%;
  padding: 1.2rem;
  border-radius: 26px;
}

.slides-stage {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(127, 79, 61, 0.04);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  border-radius: 18px;
  overflow: hidden;
}

.slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 6s ease;
}

.slide.active img {
  transform: scale(1.03);
}

.placeholder-slide {
  min-height: 460px;
  background: linear-gradient(135deg, #d9c2b4, #b88674);
  color: white;
}

.placeholder-inner {
  min-height: 460px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.slide-caption {
  margin-top: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding-top: 1rem;
}

.dot,
.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: #d1b4a7;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dot:hover,
.slide-dot:hover {
  transform: scale(1.2);
}

.dot.active,
.slide-dot.active {
  background: var(--accent);
  transform: scale(1.15);
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(45, 31, 26, 0.45);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(45, 31, 26, 0.18);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.slide-nav:hover {
  background: rgba(45, 31, 26, 0.68);
  transform: translateY(-50%) scale(1.05);
}

.slide-nav.prev {
  left: 14px;
}

.slide-nav.next {
  right: 14px;
}

.slide[aria-hidden="true"] {
  pointer-events: none;
}

.slide[aria-hidden="false"] {
  pointer-events: auto;
}

.alt {
  background: rgba(241, 231, 223, 0.5);
  border-top: 1px solid rgba(220, 207, 197, 0.5);
  border-bottom: 1px solid rgba(220, 207, 197, 0.5);
}

.section-head {
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

/* =========================
   BOOKS
========================= */
.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.book-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  background: rgba(255, 250, 246, 0.98);
  align-items: stretch;
}

.book-cover {
  display: grid;
  place-items: center;
  min-height: 100%;
  background: linear-gradient(135deg, #d9c2b4, #b88674);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

.book-cover.has-image {
  background: transparent;
  padding: 52px 0 52px 52px;
  align-items: center;
}

.book-cover.has-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(45, 31, 26, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.book-card:hover .book-cover.has-image img {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 26px 56px rgba(45, 31, 26, 0.18);
}

.book-body {
  padding: 2.4rem 2.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-body h3 {
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 0.95rem;
  color: var(--text);
}

.book-body p {
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--muted);
}

.book-badge {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(127, 79, 61, 0.1);
  color: var(--accent);
  margin-bottom: 1.1rem;
  width: fit-content;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.book-offers {
  margin-top: 1.35rem;
  margin-bottom: 1.6rem;
}

.book-offers h4 {
  margin-bottom: 0.85rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.books-section-block {
  display: grid;
  gap: 1.5rem;
}

.books-section-head {
  margin-bottom: 0.25rem;
}

.books-section-title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.2;
  color: var(--text);
}

.books-section-text {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.books-projects-block {
  margin-top: 28px;
}

.books-projects-accordion {
  background: rgba(255, 250, 246, 0.72);
  border: 1px solid rgba(220, 207, 197, 0.95);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.books-projects-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  background: rgba(127, 79, 61, 0.04);
}

.books-projects-summary::-webkit-details-marker {
  display: none;
}

.books-projects-summary:hover {
  background: rgba(127, 79, 61, 0.08);
}

.books-projects-summary-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.books-projects-summary-subtext {
  display: block;
}

.books-projects-summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(127, 79, 61, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  background: white;
  flex-shrink: 0;
}

.books-projects-accordion[open] .books-projects-summary-icon {
  transform: rotate(45deg);
}

.books-projects-content {
  padding: 0 24px 24px;
  border-top: 1px solid rgba(220, 207, 197, 0.9);
  background: rgba(255, 250, 246, 0.96);
}

.books-projects-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.book-project-card {
  background: rgba(127, 79, 61, 0.04);
  border: 1px solid rgba(220, 207, 197, 0.9);
  border-radius: 18px;
  overflow: hidden;
}

.book-project-card-inner {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 18px;
  align-items: start;
}

.book-project-thumb {
  width: 110px;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  background: #e7ddd6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.book-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-project-thumb-fallback {
  color: var(--accent);
  font-size: 1.6rem;
}

.book-project-body h4 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.book-project-body p {
  margin: 0 0 14px;
  color: var(--muted);
}

.book-title-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================
   OFFER TABLE
========================= */
.offer-table {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
}

.offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 130px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(127, 79, 61, 0.05);
}

.offer-row:hover {
  background: rgba(127, 79, 61, 0.1);
}

.offer-row.disabled {
  opacity: 0.6;
}

.offer-row.is-supported {
  border-color: #b9d9be;
  background: #f3fbf4;
}

.offer-name {
  font-weight: 600;
  color: var(--text);
}

.offer-price {
  text-align: center;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.offer-action {
  text-align: right;
}

.offer-note {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  background: rgba(127, 79, 61, 0.08);
  padding: 0.8rem;
  border-radius: 10px;
  margin-top: 1rem;
}

/* =========================
   SONGS
========================= */
.songs-sections {
  display: grid;
  gap: 28px;
}

.songs-group-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 250, 246, 0.72);
  border: 1px solid rgba(220, 207, 197, 0.95);
  box-shadow: var(--shadow);
}

.songs-group-card-support {
  background: rgba(127, 79, 61, 0.04);
}

.songs-group-head {
  margin-bottom: 18px;
}

.songs-group-title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.2;
  color: var(--text);
}

.songs-group-text {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.songs-group-card .song-list {
  margin-top: 8px;
}

.song-list {
  display: grid;
  gap: 16px;
}

.song-card {
  overflow: hidden;
  background: rgba(255, 250, 246, 0.96);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.song-card.is-playing {
  border-color: rgba(127, 79, 61, 0.35);
  box-shadow: 0 18px 44px rgba(127, 79, 61, 0.14);
}

.song-content-static {
  padding: 1.5rem;
}

.song-header {
  width: 100%;
  margin: 0;
  background: rgba(127, 79, 61, 0.05);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}

.song-header:hover {
  background: rgba(127, 79, 61, 0.1);
}

.song-header-left {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.song-thumb {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  overflow: hidden;
  background: #e7ddd6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.song-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-thumb-fallback {
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 700;
}

.song-header-text {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.song-header-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.song-header-title-row strong {
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  min-width: 0;
  display: block;
}

.song-title-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.song-header-actions-inline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  row-gap: 10px;
  max-width: 100%;
}

.song-header-actions-inline > * {
  flex-shrink: 0;
}

.song-header-description {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.42;
  display: block;
  margin: 0;
  min-width: 0;
}

.song-inline-action {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(127, 79, 61, 0.22);
  border-radius: 999px;
  background: white;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.song-inline-action:hover {
  border-color: var(--accent);
  background: rgba(127, 79, 61, 0.08);
}

.song-inline-action.is-active,
.song-global-play.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.song-inline-action.is-active:hover,
.song-global-play.is-active:hover {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
}

.song-inline-action.is-paused,
.song-global-play.is-paused {
  background: rgba(127, 79, 61, 0.12);
  color: var(--accent);
  border-color: rgba(127, 79, 61, 0.35);
}

.song-inline-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  text-align: center;
  font-size: 0.96rem;
}

.song-inline-action-label {
  font-size: 0.98rem;
  line-height: 1;
}

.song-inline-story-play .song-inline-action-icon {
  font-style: italic;
}

.song-header-inline-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.song-header-inline-form .song-inline-action {
  appearance: none;
  -webkit-appearance: none;
}

.song-inline-action-download {
  background: white;
}

.song-inline-action-support {
  background: rgba(127, 79, 61, 0.06);
}

.song-inline-action-support:hover {
  background: rgba(127, 79, 61, 0.12);
}

.song-inline-action-details {
  border-color: transparent;
  background: transparent;
  padding-left: 8px;
  padding-right: 4px;
  color: var(--muted);
}

.song-inline-action-details:hover {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
}

.song-inline-action-details .song-inline-action-label {
  font-weight: 700;
}

.song-header-actions-inline .song-inline-story-play {
  display: none;
}

.song-toggle {
  display: none;
}

.song-content {
  padding: 22px;
  border-top: 1px solid rgba(220, 207, 197, 0.9);
  background: rgba(255, 250, 246, 0.96);
}

.song-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.song-cover img,
.song-cover-placeholder {
  width: 100%;
  min-height: 340px;
  border-radius: 16px;
  overflow: hidden;
}

.song-cover img {
  object-fit: cover;
}

.song-cover-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d9c2b4, #b88674);
  color: white;
  font-weight: 700;
}

.song-details h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  margin-bottom: 0.8rem;
  line-height: 1.18;
}

.song-main-audio,
.song-story-audio {
  margin: 1.1rem 0 1.25rem;
}

.song-main-audio h4,
.song-story-audio h4,
.song-lyrics-head h4,
.song-support-block h4 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  font-weight: 700;
}

.song-lyrics-block,
.song-support-block {
  margin: 1.2rem 0 1.4rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(127, 79, 61, 0.05);
  border: 1px solid rgba(220, 207, 197, 0.9);
}

.song-lyrics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.song-lyrics-pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--accent);
  font-weight: 700;
}

.song-lyrics-pdf-link:hover {
  border-color: var(--accent);
}

.song-lyrics-text {
  color: var(--text);
  white-space: pre-line;
  line-height: 1.18;
  font-size: 0.96rem;
  letter-spacing: 0;
}

.song-lyrics-text.is-truncated {
  max-height: 240px;
  overflow: hidden;
  position: relative;
}

.song-lyrics-text.is-truncated::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 250, 246, 0), rgba(255, 250, 246, 1));
}

.song-lyrics-block.is-expanded .song-lyrics-text.is-truncated {
  max-height: none;
}

.song-lyrics-block.is-expanded .song-lyrics-text.is-truncated::after {
  display: none;
}

.song-lyrics-toggle {
  margin-top: 0.9rem;
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.song-lyrics-toggle:hover {
  border-color: var(--accent);
}

.song-support-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  background: #7f4f3d;
  color: #fff;
  box-shadow: 0 3px 10px rgba(127, 79, 61, 0.25);
}

.song-support-text {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.song-support-actions {
  margin-top: 0;
}

.product-goodie {
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.songs-sponsoring-block {
  margin-top: 32px;
}

/* =========================
   SUPPORT MODAL
========================= */
.support-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
}

.support-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 18, 0.45);
  backdrop-filter: blur(3px);
}

.support-modal-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 460px);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  background: rgba(255, 250, 246, 0.98);
  border: 1px solid rgba(220, 207, 197, 0.95);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(45, 31, 26, 0.22);
  padding: 24px;
}

.support-modal-content h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  line-height: 1.2;
}

.support-modal-content p {
  margin: 0 0 14px;
  color: var(--muted);
}

.support-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.support-modal-close:hover {
  background: rgba(127, 79, 61, 0.08);
}

.support-modal-options {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.support-tier-option {
  width: 100%;
  text-align: left;
  border: 1px solid #dccfc5;
  background: white;
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--text);
  min-height: auto;
}

.support-tier-option:hover {
  border-color: var(--accent);
  background: rgba(127, 79, 61, 0.04);
}

.support-tier-option.active {
  border-color: #7f4f3d;
  background: rgba(127, 79, 61, 0.08);
}

.support-tier-option-title {
  font-weight: 700;
  color: #2d1f1a;
  margin-bottom: 4px;
}

.support-tier-option-meta {
  font-size: 0.92rem;
  color: #6f5b53;
  line-height: 1.45;
}

.support-custom {
  margin-top: 12px;
}

.support-custom-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #5f3b2e;
}

.support-custom input {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0.75rem 0.95rem;
  background: white;
}

.support-continue {
  width: 100%;
  margin-top: 16px;
  min-height: 46px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.support-continue:hover {
  background: var(--accent-dark);
}

/* =========================
   CONTACT
========================= */
.contact-box {
  padding: 1.6rem;
}

.contact-intro {
  margin-top: 0.9rem;
  max-width: 42rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

.contact-primary,
.contact-side {
  display: grid;
  gap: 1rem;
}

.contact-card,
.contact-socials-card {
  background: rgba(127, 79, 61, 0.04);
  border: 1px solid rgba(220, 207, 197, 0.9);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.contact-card h3,
.contact-socials-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.contact-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.contact-topic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.contact-topic-pill:hover,
.contact-topic-pill.is-active {
  border-color: var(--accent);
  background: rgba(127, 79, 61, 0.08);
  color: var(--accent-dark);
}

.contact-form-card {
  padding: 0;
  overflow: hidden;
}

.contact-form-toggle {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.contact-form-toggle:hover {
  background: rgba(127, 79, 61, 0.04);
}

.contact-form-toggle-text {
  font-size: 1rem;
  font-weight: 700;
}

.contact-form-toggle-icon {
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
}

.contact-form-card.open .contact-form-toggle-icon {
  transform: rotate(45deg);
}

.contact-form-panel {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid rgba(220, 207, 197, 0.9);
}

.contact-form select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.8rem 0.95rem;
  background: white;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-checkbox input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 0.2rem;
  padding: 0;
  flex-shrink: 0;
}

.contact-checkbox span {
  color: var(--muted);
  line-height: 1.5;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 700;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.contact-social-link:hover {
  border-color: var(--accent);
  background: rgba(127, 79, 61, 0.08);
  color: var(--accent-dark);
}

.contact-newsletter-intro {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.contact-newsletter-form {
  display: grid;
  gap: 0.9rem;
}

.contact-newsletter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.contact-newsletter-row input[type="email"] {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.8rem 0.95rem;
  background: white;
}

.contact-newsletter-row .btn {
  width: 100%;
}

.contact-newsletter-privacy {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

/* =========================
   GLOBAL AUDIO PLAYER
========================= */
.global-audio-player {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 260;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, bottom 0.25s ease;
}

.global-audio-player.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.global-audio-player.is-near-footer {
  bottom: 132px;
}

.global-audio-player-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(260px, 420px);
  align-items: center;
  gap: 18px;
  padding: 16px 64px 16px 20px;
  border-radius: 22px;
  background: rgba(255, 250, 246, 0.98);
  border: 1px solid rgba(220, 207, 197, 0.95);
  box-shadow: 0 18px 46px rgba(45, 31, 26, 0.16);
  backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease, border-radius 0.25s ease, background 0.25s ease;
}

.global-audio-player.is-active .global-audio-player-inner {
  border-color: rgba(127, 79, 61, 0.38);
  box-shadow: 0 22px 52px rgba(45, 31, 26, 0.2);
}

.global-audio-player.is-near-footer .global-audio-player-inner {
  padding: 12px 64px 12px 16px;
  border-radius: 18px;
  background: rgba(255, 250, 246, 0.94);
  box-shadow: 0 14px 32px rgba(45, 31, 26, 0.14);
}

.global-player-close {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.global-player-close:hover {
  background: rgba(127, 79, 61, 0.1);
  color: var(--accent-dark);
}

.global-player-media {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.global-player-cover {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: #e7ddd6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: width 0.25s ease, height 0.25s ease, border-radius 0.25s ease;
}

.global-audio-player.is-near-footer .global-player-cover {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.global-player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.global-player-cover-fallback {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.3rem;
}

.global-player-meta {
  min-width: 0;
}

.global-player-subtitle {
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  transition: margin-bottom 0.25s ease, font-size 0.25s ease;
}

.global-audio-player.is-near-footer .global-player-subtitle {
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.global-player-title {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
  transition: font-size 0.25s ease;
}

.global-audio-player.is-near-footer .global-player-title {
  font-size: 0.94rem;
}

.global-player-title::before {
  content: "Jetzt läuft";
  display: block;
  font-size: 0.74rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  opacity: 0.9;
  transition: margin-bottom 0.25s ease, font-size 0.25s ease;
}

.global-audio-player.is-near-footer .global-player-title::before {
  margin-bottom: 2px;
  font-size: 0.68rem;
}

.global-player-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.global-player-main-btn,
.global-player-side-btn {
  border: 0;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.global-player-main-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(127, 79, 61, 0.22);
}

.global-audio-player.is-near-footer .global-player-main-btn {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

.global-player-main-btn:hover {
  background: var(--accent-dark);
}

.global-player-side-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: white;
  color: var(--accent);
  border: 1px solid rgba(127, 79, 61, 0.18);
  font-size: 1rem;
  font-weight: 700;
}

.global-player-side-btn:hover {
  background: rgba(127, 79, 61, 0.08);
  border-color: var(--accent);
}

.global-player-progress-wrap {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  transition: gap 0.25s ease;
}

.global-audio-player.is-near-footer .global-player-progress-wrap {
  gap: 8px;
}

.global-player-time {
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.global-player-seek {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.global-player-seek:focus {
  outline: none;
}

/* =========================
   AUDIO GRID / OTHER
========================= */
.audio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coming-soon {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  margin-top: 0.5rem;
}

.song-global-play.btn.btn-secondary {
  min-height: 40px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  padding: 1.2rem 0 2rem;
}

body.has-global-player .site-footer {
  padding-bottom: 120px;
}

.footer-inner {
  grid-template-columns: 1fr auto;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  color: var(--muted);
  align-items: center;
}

.footer-copy p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--accent);
}

/* =========================
   LEGAL PAGES / BASIC CONTENT
========================= */
.legal-page {
  padding: 4rem 0;
}

.legal-card {
  background: rgba(255, 250, 246, 0.96);
  border: 1px solid rgba(220, 207, 197, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.legal-card h1,
.legal-card h2,
.legal-card h3 {
  line-height: 1.2;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul,
.legal-card ol {
  padding-left: 1.25rem;
}

.legal-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}

/* =========================
   MODAL / FORM
========================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}

.modal.open {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 18, 0.55);
}

.modal-dialog {
  position: relative;
  width: min(640px, calc(100% - 2rem));
  margin: 6vh auto;
  padding: 1.4rem;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.purchase-form {
  display: grid;
  gap: 1rem;
}

.purchase-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
}

.purchase-form input,
.purchase-form textarea,
.purchase-form select {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.8rem 0.95rem;
  background: white;
}

.purchase-form textarea {
  min-height: 110px;
  resize: vertical;
}

.form-success {
  margin-top: 1rem;
  border-radius: 14px;
  padding: 1rem;
  background: #f1ede9;
  color: var(--text);
}

/* =========================
   BACK TO TOP
========================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(45, 31, 26, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.25s ease;
  z-index: 250;
}

.back-to-top:hover {
  background: var(--accent-dark);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr;
  }

  .main-nav,
  .header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .audio-grid,
  .footer-inner,
  .book-card,
  .song-body {
    grid-template-columns: 1fr;
  }

  .book-cover.has-image {
    padding: 18px 18px 0 18px;
  }

  .book-cover.has-image img {
    min-height: 320px;
  }

  .song-cover img,
  .song-cover-placeholder {
    min-height: 280px;
  }

  .offer-row {
    grid-template-columns: minmax(0, 1fr) 95px 115px;
  }

  .hero-title {
    max-width: none;
  }

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

  .global-audio-player-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 64px 16px 16px;
  }

  .global-audio-player.is-near-footer .global-audio-player-inner {
    padding: 12px 64px 12px 16px;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .brand-avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
  }

  .brand-text {
    min-width: 0;
    white-space: normal;
    line-height: 1.15;
    font-size: 0.98rem;
  }

  .main-nav,
  .header-actions {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: white;
    color: var(--accent);
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
  }

  .mobile-menu-overlay,
  .mobile-menu-drawer {
    display: none;
  }

  body.mobile-menu-open .mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(45, 31, 26, 0.18);
    z-index: 210;
  }

  body.mobile-menu-open .mobile-menu-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 360px);
    height: 100vh;
    background: rgba(255, 250, 246, 0.985);
    border-left: 1px solid var(--line);
    box-shadow: -10px 0 30px rgba(45, 31, 26, 0.12);
    z-index: 220;
    padding: 18px 18px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu-header {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
  }

  .mobile-brand {
    min-width: 0;
  }

  .mobile-brand-logo-only {
    gap: 0;
  }

  .mobile-brand-logo-only .brand-text {
    display: none;
  }

  .mobile-brand-logo-only .brand-avatar {
    width: 58px;
    height: 58px;
  }

  .mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: white;
    color: var(--accent);
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-nav {
    display: grid;
    gap: 0;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu-link {
    display: block;
    padding: 15px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid rgba(220, 207, 197, 0.65);
  }

  .mobile-menu-link:last-child {
    border-bottom: 0;
  }

  .mobile-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    justify-items: start;
  }

  .mobile-header-actions > * {
    min-width: 0;
    width: auto;
  }

  .mobile-header-actions .currency-dropdown,
  .mobile-header-actions .lang-dropdown {
    width: auto;
  }

  .mobile-header-actions .currency-dropdown-toggle,
  .mobile-header-actions .lang-dropdown-toggle,
  .mobile-header-actions .account-link,
  .mobile-header-actions .header-pill,
  .mobile-header-actions .header-user-badge {
    width: auto;
    min-width: 100px;
    max-width: 140px;
    height: 44px;
    padding: 0 14px;
    font-size: 0.9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .mobile-header-actions .header-user-badge {
    display: inline-flex;
  }

  .mobile-header-actions .currency-dropdown-menu,
  .mobile-header-actions .lang-dropdown-menu {
    left: 0;
    right: auto;
    min-width: 100%;
  }

  .song-thumb {
    width: 92px;
    height: 92px;
  }

  .song-header-left {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .song-header-title-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .song-header-actions-inline {
    width: 100%;
    justify-content: flex-start;
  }

  .song-inline-action {
    min-height: 40px;
    padding: 0 14px;
  }

  .song-inline-action-label {
    font-size: 0.92rem;
  }

  .global-audio-player {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .global-audio-player.is-near-footer {
    bottom: 118px;
  }

  .slide-nav {
    width: 46px;
    height: 46px;
    font-size: 2rem;
  }

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

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

@media (max-width: 640px) {
  body.has-global-player {
    padding-bottom: 150px;
  }

  .hero,
  .section,
  .legal-page {
    padding: 2.5rem 0;
  }

  .header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-avatar {
    width: 44px;
    height: 44px;
  }

  .brand-text {
    font-size: 0.95rem;
    line-height: 1.15;
    white-space: normal;
  }

  .mobile-menu-toggle {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }

  body.mobile-menu-open .mobile-menu-drawer {
    width: min(88vw, 360px);
    padding: 16px 16px 24px;
  }

  .hero-actions,
  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
    min-height: 48px;
  }

  .section-title,
  .hero-title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    line-height: 1.08;
  }

  .slides-stage,
  .placeholder-slide,
  .placeholder-inner {
    min-height: 300px;
  }

  .slide img {
    height: 300px;
  }

  .slide-caption {
    font-size: 0.88rem;
    margin-top: 0.7rem;
  }

  .book-card {
    border-radius: 18px;
  }

  .book-cover.has-image {
    padding: 14px 14px 0;
  }

  .book-cover.has-image img {
    min-height: auto;
    max-height: 520px;
    object-fit: contain;
    border-radius: 16px;
  }

  .book-body {
    padding: 1.25rem 1rem 1.4rem;
  }

  .book-body h3 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    line-height: 1.08;
    margin-bottom: 0.75rem;
  }

  .book-body p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .books-projects-summary {
    padding: 18px;
    align-items: flex-start;
  }

  .books-projects-content {
    padding: 0 18px 18px;
  }

  .book-project-card-inner {
    grid-template-columns: 72px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .book-project-thumb {
    width: 72px;
    height: 98px;
  }

  .book-project-body h4 {
    font-size: 1.05rem;
  }

  .songs-group-card {
    padding: 18px;
    border-radius: 20px;
  }

  .songs-group-head {
    margin-bottom: 14px;
  }

  .songs-group-title {
    font-size: 1.12rem;
  }

  .songs-group-text {
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .song-header {
    padding: 12px 14px;
    align-items: flex-start;
  }

  .song-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }

  .song-header-left {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .song-header-text {
    gap: 10px;
  }

  .song-header-title-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .song-header-title-row strong {
    font-size: 1.12rem;
    line-height: 1.18;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .song-title-with-badge {
    width: 100%;
  }

  .song-header-actions-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
  }

  .song-inline-action {
    min-height: 38px;
    padding: 0 12px;
  }

  .song-inline-action-label {
    font-size: 0.88rem;
  }

  .offer-table {
    gap: 0.8rem;
  }

  .offer-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name price"
      "action action";
    gap: 0.85rem 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 16px;
  }

  .offer-name {
    grid-area: name;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 700;
    margin: 0;
  }

  .offer-price {
    grid-area: price;
    text-align: right;
    white-space: nowrap;
    font-size: 1.05rem;
    line-height: 1.1;
    font-weight: 700;
    align-self: center;
  }

  .offer-action {
    grid-area: action;
    display: flex;
    justify-content: stretch;
    width: 100%;
    text-align: initial;
  }

  .offer-action .btn,
  .offer-action button,
  .offer-action a {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 1rem;
    font-size: 0.98rem;
    white-space: nowrap;
    text-align: center;
  }

  .offer-note {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .song-support-badge {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .support-modal-content {
    width: min(94vw, 430px);
    padding: 20px;
  }

  .global-audio-player.is-near-footer {
    bottom: 108px;
  }

  .global-audio-player.is-near-footer .global-audio-player-inner {
    padding: 10px 52px 12px 12px;
  }

  .global-player-media {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .global-player-cover {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .global-audio-player.is-near-footer .global-player-cover {
    width: 46px;
    height: 46px;
  }

  .global-player-title {
    font-size: 0.94rem;
  }

  .global-player-progress-wrap {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .global-player-time {
    font-size: 0.78rem;
  }

  .global-audio-player.is-near-footer .global-player-main-btn {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
  }

  .global-player-close {
    width: 44px;
    height: 44px;
    right: 10px;
    font-size: 1.3rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

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

  .legal-card {
    padding: 1.2rem;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
    font-size: 1.2rem;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(var(--container), calc(100% - 1.2rem));
  }

  .header-inner {
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-avatar {
    width: 40px;
    height: 40px;
  }

  .brand-text {
    font-size: 0.88rem;
    white-space: normal;
  }

  .mobile-menu-toggle {
    width: 48px;
    height: 48px;
    font-size: 1.45rem;
  }

  body.mobile-menu-open .mobile-menu-drawer {
    width: 92vw;
    padding: 14px 14px 20px;
  }

  .mobile-menu-close {
    width: 48px;
    height: 48px;
    font-size: 1.45rem;
  }

  .mobile-brand-logo-only .brand-avatar {
    width: 52px;
    height: 52px;
  }

  .mobile-header-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mobile-header-actions .currency-dropdown-toggle,
  .mobile-header-actions .lang-dropdown-toggle,
  .mobile-header-actions .account-link,
  .mobile-header-actions .header-pill,
  .mobile-header-actions .header-user-badge {
    min-width: 90px;
    max-width: 130px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.85rem;
  }

  .book-body {
    padding: 1rem 0.9rem 1.2rem;
  }

  .books-projects-summary {
    padding: 14px;
    gap: 12px;
  }

  .books-section-title {
    font-size: 1.02rem;
  }

  .books-section-text {
    font-size: 0.9rem;
  }

  .book-project-card-inner {
    grid-template-columns: 60px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .book-project-thumb {
    width: 60px;
    height: 84px;
    border-radius: 12px;
  }

  .book-project-body h4 {
    font-size: 0.98rem;
  }

  .offer-row {
    gap: 0.7rem 0.8rem;
    padding: 0.9rem;
  }

  .offer-name {
    font-size: 0.96rem;
  }

  .offer-price {
    font-size: 1rem;
  }

  .offer-action .btn,
  .offer-action button,
  .offer-action a {
    max-width: none;
    min-height: 42px;
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .song-header {
    padding: 10px 12px;
  }

  .song-thumb {
    width: 56px;
    height: 56px;
  }

  .song-header-left {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }

  .song-header-title-row strong {
    font-size: 1.02rem;
  }

  .song-inline-action {
    min-height: 36px;
    padding: 0 10px;
  }

  .song-inline-action-label {
    font-size: 0.82rem;
  }

  .song-support-badge {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .song-content {
    padding: 14px;
  }

  .song-details h3 {
    font-size: 1.35rem;
  }

  .songs-group-card {
    padding: 14px;
    border-radius: 18px;
  }

  .songs-group-title {
    font-size: 1.02rem;
  }

  .songs-group-text {
    font-size: 0.9rem;
  }

  .support-modal-content {
    width: min(96vw, 360px);
    padding: 18px;
    border-radius: 20px;
  }

  .support-tier-option {
    padding: 10px 12px;
  }

  .support-tier-option-meta {
    font-size: 0.88rem;
  }

  .support-continue {
    min-height: 42px;
  }

  .slide-nav {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }
}
