.category-tabs,
.btn,
.gap-sm {
  gap: var(--space-sm);
}

:root {
  --color-canvas: #1c1a19;
  --color-surface: #2b2825;
  --color-surface-elevated: #373330;
  --color-text-primary: #f4f0e8;
  --color-text-secondary: #c3beb3;
  --color-text-tertiary: #8b8781;
  --color-text-disabled: rgba(244, 240, 232, 0.3);
  --color-text-on-primary: #1c1a19;
  --color-primary: #c49a86;
  --color-primary-hover: #d2a894;
  --color-primary-active: #b68976;
  --color-primary-disabled: rgba(196, 154, 134, 0.25);
  --color-secondary: #a3b18a;
  --color-secondary-hover: #b4c29b;
  --color-success: #8faa7e;
  --color-warning: #e6b88a;
  --color-error: #d58985;
  --color-info: #91a6b8;
  --color-divider: rgba(244, 240, 232, 0.08);
  --color-overlay: rgba(28, 26, 25, 0.8);
  --color-focus-ring: rgba(196, 154, 134, 0.4);
  --bg-badge: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.1);
  --font-display: Fraunces, Georgia, serif;
  --font-body: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-size-h1: 3rem;
  --font-size-h2: 2.25rem;
  --font-size-h3: 1.75rem;
  --font-size-h4: 1.375rem;
  --font-size-h5: 1.125rem;
  --font-size-body-lg: 1.125rem;
  --font-size-body: 1rem;
  --font-size-body-sm: 0.875rem;
  --font-size-caption: 0.75rem;
  --font-size-overline: 0.6875rem;
  --line-height-display: 1.1;
  --line-height-heading: 1.3;
  --line-height-body: 1.6;
  --line-height-compact: 1.4;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 50px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --button-height: 48px;
  --button-height-sm: 40px;
  --button-height-lg: 56px;
  --input-height: 48px;
  --input-height-sm: 40px;
  --input-height-lg: 56px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-canvas);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
  background-color: var(--color-canvas);
  transition: background-color var(--transition-normal);
}

.hero h1,
h1 {
  font-size: var(--font-size-h1);
  letter-spacing: -0.02em;
}

.hero h1,
h1,
h2 {
  line-height: var(--line-height-display);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface-elevated);
  border: 3px solid var(--color-canvas);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

a {
  color: var(--color-text-secondary);
  text-decoration: none;
  display: flex;
  flex-flow: row;
  align-items: center;
  transition: color var(--transition-fast);
}

.show-more-btn,
.btn {
  align-items: center;
  display: inline-flex;
}

.view-all:hover,
a:hover {
  color: var(--color-primary-hover);
}

a.btn:hover {
  color: var(--color-text-on-primary);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

h4 {
  font-family: var(--font-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: var(--font-size-h2);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-heading);
}

h4 {
  font-size: var(--font-size-h4);
  line-height: var(--line-height-compact);
}

.footer-links li,
.mb-sm,
p {
  margin-bottom: var(--space-sm);
}

.text-lg {
  font-size: var(--font-size-body-lg);
}

.text-caption {
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
}

.text-tertiary {
  color: var(--color-text-tertiary);
}

#audioPlayer,
.category-tab.hidden,
.logo-icon,
.hidden {
  display: none;
}

.btn {
  justify-content: center;
  height: var(--button-height);
  padding: 0 var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-md,
.btn-sm {
  height: var(--button-height-sm);
  padding: 0 var(--space-lg);
  font-size: var(--font-size-body-sm);
}

.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-on-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: scale(1.02);
}

.btn-primary:active {
  background-color: var(--color-primary-active);
  transform: scale(0.98);
}

.btn-primary:disabled {
  background-color: var(--color-primary-disabled);
  cursor: not-allowed;
  transform: none;
}

.book-meta a {
  width: max-content;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-surface);
  color: var(--color-primary-hover);
}

[data-action="seek"]:hover,
.btn-secondary:active {
  background-color: var(--color-surface-elevated);
}

.btn-secondary:disabled {
  color: var(--color-primary-disabled);
  border-color: var(--color-primary-disabled);
  cursor: not-allowed;
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-primary);
}

.btn-ghost:hover,
.btn-icon:hover,
.control-btn:hover {
  background-color: rgba(244, 240, 232, 0.08);
}

.btn-ghost:active,
.btn-icon:active {
  background-color: rgba(244, 240, 232, 0.12);
}

.btn-md {
  width: fit-content;
}

.btn-lg {
  height: var(--button-height-lg);
  padding: 0 var(--space-2xl);
  font-size: var(--font-size-body-lg);
}

.show-more-btn,
.input,
nav a {
  font-size: var(--font-size-body);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  background-color: transparent;
  color: var(--color-text-secondary);
}

.show-more-btn {
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  background: 0 0;
  border: 1px solid var(--color-primary-hover);
  color: var(--color-primary-active);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}

.show-more-btn:hover {
  opacity: 0.8;
}

.show-more-btn svg {
  margin-left: 8px;
  transition: transform 0.3s;
}

.show-more-btn.expanded svg {
  transform: rotate(180deg);
}

.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  transition: transform var(--transition-spring);
}

.card-bordered {
  border: 1px solid rgba(244, 240, 232, 0.05);
}

.popover-menu.align-left.active {
  transform: translateY(0);
}

.card-spacious {
  padding: var(--space-2xl);
}

.input {
  width: 100%;
  height: var(--input-height);
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-surface-elevated);
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  padding-left: inherit;
  padding-top: inherit;
}

.input::placeholder {
  color: var(--color-text-tertiary);
}

.input:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(196, 154, 134, 0.3);
}

.input:disabled {
  background-color: var(--color-surface);
  color: var(--color-text-disabled);
  cursor: not-allowed;
}

.textarea {
  min-height: 120px;
  padding: var(--space-md);
  resize: vertical;
}

.search-bar {
  max-width: 300px;
}

.search-input {
  width: 100%;
  padding-left: 40px;
}

.search-icon {
  color: var(--color-text-tertiary);
}

.checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.checkbox input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(244, 240, 232, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checkbox input[type="checkbox"] {
  border-radius: var(--radius-xs);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.checkbox input[type="checkbox"]:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid var(--color-text-on-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input,
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.progress {
  position: relative;
  width: 100%;
  height: 6px;
  background-color: rgba(244, 240, 232, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: height var(--transition-normal);
}

.progress:hover {
  height: 10px;
}

.progress-fill {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-md);
  transition: width var(--transition-fast);
}

.logo,
.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--font-weight-regular);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-overlay);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn var(--transition-normal);
}

.modal {
  background-color: var(--color-surface);
  border: 1px solid rgba(244, 240, 232, 0.08);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  animation: slideUp var(--transition-slow);
}

.toast {
  background-color: var(--color-surface-elevated);
  box-shadow: var(--shadow-md);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  min-width: 300px;
  max-width: 400px;
  border-left: 4px solid;
  z-index: 2000;
  animation: slideInRight var(--transition-slow);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dropdown-item {
  padding: 10px var(--space-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  color: var(--color-text-secondary);
  text-decoration: none;
  display: block;
}

.footer-links a,
.view-all,
nav a {
  transition: color var(--transition-fast);
  text-decoration: none;
}

.logo,
nav a:hover {
  color: var(--color-text-primary);
}

.dropdown-item:hover {
  background-color: rgba(196, 154, 134, 0.15);
}

.dropdown-item:active {
  background-color: var(--color-surface);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chapter-list-container {
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.divider {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin: var(--space-md) 0;
}

.divider-lg {
  margin: var(--space-lg) 0;
}

.divider-vertical {
  display: inline-block;
  width: 1px;
  height: 24px;
  background-color: var(--color-text-secondary);
  margin: 0 var(--space-md);
  vertical-align: middle;
}

.mt-xs {
  margin-top: var(--space-xs);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-lg {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.mb-xs {
  margin-bottom: var(--space-xs);
}

.menu-group,
.hero h1,
.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.p-xl {
  padding: var(--space-xl);
}

.flex {
  display: flex;
}

.play-pause-btn.loading .icon-loader,
.block {
  display: block;
}

.logo-full,
.inline-block {
  display: inline-block;
}

.logo-full {
  border-radius: var(--radius-pill);
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
  border-radius: var(--radius-pill);
}

.justify-end {
  justify-content: flex-end;
}

.gap-md {
  gap: var(--space-md);
}

.text-center {
  text-align: center;
}

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

.w-full {
  width: 100%;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

nav {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

nav a {
  color: var(--color-text-secondary);
}

.footer-links a:hover,
.input.search-input:focus~.search-icon,
.search-result-item:hover .search-result-title,
nav a.active {
  color: var(--color-primary);
}

nav a.disable-link {
  pointer-events: none;
}

.header {
  padding: var(--space-sm) 0;
  /* border-bottom: 1px solid var(--color-divider); */

  position: sticky;
  top: 0;
  z-index: 100;

  background-color: var(--color-canvas);

  backdrop-filter: blur(12px);
  background-color: rgba(28, 26, 25, 0.5);

  transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 1.3s ease,
    box-shadow 1.3s ease;


  transform: translateY(0);
}

.header--hidden {

  transform: translateY(-110%);
}

.header.is-scrolled {
  box-shadow: var(--shadow-md);
  padding: var(--space-md) 0;
  transition: padding var(--transition-normal), box-shadow var(--transition-normal);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  letter-spacing: -0.01em;
  width: 30%;
}

.hero {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg,
      var(--color-surface) 0,
      var(--color-canvas) 100%);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-regular);
}

.hero p {
  font-size: var(--font-size-body-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
}

.section {
  margin-bottom: var(--space-4xl);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.section-title {
  letter-spacing: 0;
}

.category-tab,
.view-all {
  font-weight: var(--font-weight-medium);
}

.view-all {
  color: var(--color-primary);
  font-size: var(--font-size-body-sm);
}

.category-tab {
  background-color: var(--color-surface-elevated);
}

.book-cover-large img,
.featured-cover img,
.now-playing-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-author,
.book-cycle,
.book-duration,
.book-genre,
.book-narrator {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-secondary);
}

.book-genre {
  display: flex;
  flex-flow: column;
}

.book-duration {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.category-list-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.category-tabs {
  display: flex;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.category-tab {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.category-tab:hover {
  background-color: var(--color-surface);
  color: var(--color-text-primary) !important;
}

.category-tab.active {
  background-color: var(--color-primary);
  color: var(--color-text-on-primary) !important;
}

.audiobook-header,
.featured-book {
  grid-template-columns: 300px 1fr;
  gap: var(--space-3xl);
}

.featured-book {
  background-color: var(--color-surface);
  border-radius: var(--radius-2xl);
  display: grid;
  border: 1px solid rgba(244, 240, 232, 0.05);
  margin-bottom: var(--space-xl);
}

.book-cover-large,
.featured-cover {
  aspect-ratio: 3/4;
  background-color: var(--color-surface-elevated);
  overflow: hidden;
}

.featured-cover {
  width: 100%;
  border-radius: var(--radius-lg);
}

.book-details,
.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-tag-na {
  display: inline-block;
  padding: 6px var(--space-md);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  width: fit-content;
}

.book-title-large,
.featured-title {
  font-weight: var(--font-weight-regular);
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}

.featured-tag-na {
  background-color: rgba(177, 138, 138, 0.15);
  color: var(--color-error);
}

.featured-title {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: var(--space-sm);

}

.title-link {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-description {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
  margin-bottom: var(--space-xl);
  display: -webkit-box;

  -webkit-line-clamp: 3;

  -webkit-box-orient: vertical;

  overflow: hidden;

  text-overflow: ellipsis;
}

.featured-meta {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  align-items: center;
}

.book-meta,
.stat-item {
  flex-direction: column;
}

.audiobook-page {
  padding: var(--space-3xl) 0;
}

.audiobook-header {
  display: grid;
  margin-bottom: var(--space-3xl);
}

.book-cover-large {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.book-title-large {
  font-size: var(--font-size-h2);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.rating-score,
.stat-value {
  font-family: Fraunces, serif;
}

.stat-label {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.book-meta {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.stat-item {
  display: flex;
  gap: var(--space-xs);
}

.stat-label {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
}

.stat-value {
  font-size: var(--font-size-h4);
}

.stat-value {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.svg {
  vertical-align: middle;
  margin-right: 3px;
  color: var(--color-primary);
}

.input.search-input:focus,
.timer-input:focus {
  outline: 0;
  box-shadow: 0 0 0 2px var(--color-focus-ring);
}

.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-md) var(--space-3xl);
  z-index: 1000;
  border-radius: var(--radius-2xl);
  max-height: var(--space-4xl);
}

.player-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.now-playing {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.now-playing-cover {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-elevated);
  overflow: hidden;
  flex-shrink: 0;
}

.now-playing-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.now-playing-title {
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-playing-author {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-links a,
.pagination-link,
.control-btn {
  color: var(--color-text-secondary);
}

.player-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.controls-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}

.control-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.progress-container {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.time {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
  min-width: 40px;
  text-align: center;
}

.player-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  align-items: center;
}

.footer,
.input.search-input:focus,
.pagination-link:hover {
  background-color: var(--color-surface);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 20px 0;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.2s;
}

.copyright,
.footer {
  border-top: 1px solid var(--color-divider);
}

.pagination-link:hover {
  color: var(--color-text-primary);
}

.pagination-link.active {
  background-color: var(--color-primary);
  color: var(--color-text-on-primary) !important;
  font-weight: var(--font-weight-semibold);
  pointer-events: none;
}

.footer {
  margin-top: var(--space-4xl);
  padding: var(--space-3xl) 0 var(--space-xl);
  padding-bottom: var(--space-4xl);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
}

.footer-links {
  list-style: none;
}

.copyright {
  text-align: center;
  padding-top: var(--space-xl);
  color: var(--color-text-tertiary);
  font-size: var(--font-size-body-sm);
  margin-top: var(--space-xl);
}

.voice-icon-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.hero-entity__stats {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.hero-entity__stats {
  display: flex;
  gap: 32px;
}

.genre-rating-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.rating-score {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
}

.meta-detail,
.search-result-meta {
  line-height: var(--line-height-compact);
  min-width: 0;
  white-space: nowrap;
}

.rating-stars {
  display: flex;
  color: var(--color-primary);
}

.rating-count {
  font-size: 0.9rem;
  color: var(--color-text-tertiary);
}

.book-list-item {
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 32px;
}

.book-list-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dropdown-item {
  position: relative;
  overflow: hidden;
}

.cache-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 90%;
  background-color: var(--color-divider);
  width: 0%;
  transition: width 0.5s;
  z-index: 10;
  opacity: 0.5;
  pointer-events: none;
  border-radius: var(--radius-pill);
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

.icon-loader {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(128, 128, 128, 0.3);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: 1s ease-in-out infinite spin;
  margin: auto;
}

.hidden,
.play-pause-btn.loading .icon-pause,
.play-pause-btn.loading .icon-play {
  display: none !important;
}

.system-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.search-clear,
.search-icon {
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
}

.system-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 0 0;
  align-self: flex-end;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  pointer-events: none;
  z-index: 2;
  transition: color var(--transition-fast);
}

.input.search-input {
  width: 100%;
  height: var(--input-height);
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0 var(--space-2xl) 0 48px;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--color-text-primary);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.input.search-input:focus {
  border-color: var(--color-primary);
}

.search-clear {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: 0 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--transition-fast),
    background-color var(--transition-fast);
  z-index: 3;
}

.search-clear:hover {
  color: var(--color-primary);
  background-color: var(--bg-badge);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + var(--space-xs));
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: var(--space-xs);
  animation: fadeInDropdown var(--transition-fast) ease-out;
}

.search-results-list {
  max-height: 400px;
  overflow-y: auto;
  padding: var(--space-xs) 0;
  overflow-x: hidden;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  transition: background-color var(--transition-fast),
    transform var(--transition-fast);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:focus-visible,
.search-result-item:hover {
  background-color: var(--color-hover-bg);
  transform: translateX(2px);
  outline: 0;
}

.search-result-cover {
  flex-shrink: 0;
  width: 44px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-right: var(--space-md);
  background-color: var(--color-canvas);
  box-shadow: var(--shadow-sm);
}

.img_load {
  background: var(--color-primary);
}

.blur_load {
  filter: blur(20px);
  transform: scale(1.05);
}

.search-result-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.search-result-info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-title {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-cycle,
.menu-label,
.search-dropdown-footer {
  font-weight: var(--font-weight-medium);
}

.search-result-meta {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-secondary);
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
}

.meta-detail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  flex-grow: 1;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta>span.meta-detail:nth-child(n + 2) {
  max-width: 40%;
}

.search-result-meta>span:nth-child(n + 2)::before {
  content: "•";
  margin: 0 6px;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.search-result-meta>span:first-child::before {
  content: none;
}

.meta-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-text-tertiary);
}

.meta-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}

.badge-cycle {
  color: var(--color-secondary);
  font-style: normal;
}

.search-dropdown-footer {
  display: block;
  padding: var(--space-md);
  text-align: center;
  background-color: var(--color-canvas);
  border-top: 1px solid var(--color-divider);
  color: var(--color-primary);
  font-size: var(--font-size-body-sm);
  text-decoration: none;
  transition: color var(--transition-fast),
    background-color var(--transition-fast);
}

.search-dropdown-footer:hover {
  background-color: var(--color-hover-bg);
  color: var(--color-primary-hover);
}

.book-unavailable {
  opacity: 0.6;
}

.book-unavailable:hover {
  opacity: 1;
  transform: none;
}

.book-unavailable .search-result-cover {
  filter: grayscale(100%);
}

.menu-label,
.menu-row {
  display: flex;
  margin-bottom: var(--space-sm);
}

.listened-segment,
.progress {
  border-radius: var(--radius-pill);
}

.listened-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.listened-segment {
  position: absolute;
  height: 100%;
  background-color: var(--color-secondary);
  opacity: 1.5;
  border-right: 1px solid var(--color-secondary-hover);
}

.progress {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background-color: var(--color-surface-elevated);
}

.progress-fill,
input:checked+.slider-switch {
  background-color: var(--color-primary);
}

.popover-menu,
.timer-input {
  border: 1px solid var(--color-divider);
}

.progress-fill {
  z-index: 2;
  position: relative;
}

.slider-switch:before {
  background-color: var(--color-text-primary);
}

.popover-menu {
  box-shadow: var(--shadow-lg);
  top: calc(100% + var(--space-sm));
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transform: translateY(var(--space-md, 10px));
  transition: all var(--transition-normal);
}

.slider-switch,
input[type="range"] {
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.slider-switch,
.slider-switch:before {
  transition: var(--transition-fast);
  position: absolute;
}

.popover-menu.align-center {
  right: auto;
  left: 50%;
  transform: translate(-50%, var(--space-md, 10px));
}

.popover-menu.align-center.active {
  transform: translate(-50%, 0);
}

.popover-menu.align-left {
  right: auto;
  left: 0;
  transform: translateY(var(--space-md, 10px));
}

.menu-group:last-child {
  margin-bottom: 0;
}

.menu-label {
  font-size: var(--font-size-overline);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
  justify-content: space-between;
}

.menu-row {
  justify-content: space-between;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--color-primary);
  height: 4px;
  background: var(--color-divider);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.slider-switch {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-surface-elevated);
}

.slider-switch:before {
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  border-radius: var(--radius-full);
}

input:checked+.slider-switch:before {
  transform: translateX(20px);
  background-color: var(--color-text-on-primary);
}

.timer-input-group {
  display: flex;
  gap: var(--space-sm);
}

.timer-input {
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  width: 64px;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--font-size-body-sm);
}

.timer-input:focus {
  border-color: var(--color-primary);
}

.timer-btn {
  flex: 1;
}

.timer-active-badge {
  color: var(--color-warning);
  font-size: var(--font-size-caption);
  margin-top: var(--space-xs);
  text-align: center;
  display: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.active-btn {
  color: var(--color-primary) !important;
}

.cache-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
  pointer-events: none;
  transition: width 0.3s;
}

#main-progress-fill {
  z-index: 2;
}

.popover-menu {
  position: absolute;
  top: calc(100% + var(--space-sm));
  background-color: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  width: 200px;
  z-index: 100;
  right: 0;
  left: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(var(--space-md, 12px));
  transition: all var(--transition-normal, 0.2s ease-out);
}

.popover-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modal-overlay {
  align-items: center;
  display: flex;
}

.dropdown-item {
  display: flex;
  width: 100%;
  text-align: left;
  padding: var(--space-md);
  background: 0 0;
  border: none;
  color: inherit;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-overlay);
  backdrop-filter: blur(8px);
  justify-content: center;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal),
    visibility var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: transparent;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-pill);
  width: 95%;
  max-width: 500px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--transition-spring);
  overflow: hidden;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-content-sm {
  max-width: 400px;
}

.modal-content-xs {
  max-width: 340px;
}

.modal-body {
  padding: var(--space-md);
  overflow-y: auto;
  scrollbar-width: thin;
}

.list-group-item {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  border-radius: var(--radius-pill);
  transition: background-color var(--transition-fast);
  background: rgba(244, 240, 232, 0.03);
  border: 1px solid transparent;
  overflow: hidden;
}

[data-action="seek"] {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  min-width: 0;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.bookmark-comment-title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-body-sm);
  color: var(--color-primary);
  margin-bottom: 2px;
}

.bookmark-meta {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
}

.btn-delete-bookmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--color-text-tertiary);
  transition: all var(--transition-fast);
  cursor: pointer;
  background: 0 0;
  border: none;
}

.btn-delete-bookmark:hover {
  color: var(--color-error);
  background-color: rgba(213, 137, 133, 0.1);
}

.modal-content .material-icons,
.modal-content .material-icons-outlined {
  font-size: 20px;
}

.modal-footer {
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: center;
}

/* Универсальный Hero-блок для сущностей (автор, цикл, чтец) */
.hero-entity {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
}

.hero-entity__image-wrapper {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Круглое фото для людей (авторы/чтецы) */
.hero-entity--person .hero-entity__image-wrapper {
  border-radius: 50%;
}

.hero-entity__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-entity__content {
  flex-grow: 1;
}

.hero-entity__title {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  line-height: 1.2;
}

.hero-entity__meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  /* Используем вашу переменную */
}

.hero-entity__description {
  line-height: 1.6;
  max-width: 800px;
  color: var(--text-primary);
}

/* Адаптивность для мобильных */

.series-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary, #fff);
}

.hero-entity__stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-family: "Fraunces", serif;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-tertiary, #888);
}

@media (min-width: 68px) and (max-width: 1024px) {
  nav .divider-vertical {
    display: none !important;
    margin: 0 !important;
  }

  nav {
    gap: 5px !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 0 var(--space-xl);
  }

  .featured-book {
    gap: var(--space-xl);
    grid-template-columns: 240px 1fr;
  }

  .audiobook-header {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 1024px) {
  .featured-book {
    grid-template-columns: 1fr;
    padding: var(--space-xl);
  }

  .featured-cover {
    width: 200px;
    margin: 0 auto;
    aspect-ratio: 3/4;
  }

  .featured-content {
    text-align: center;
    align-items: center;
  }

  .featured-meta {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .player-content {
    grid-template-columns: 1fr auto 1fr;
  }

  nav {
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    justify-content: flex-start;
    flex-flow: wrap;
  }

  nav a {
    white-space: nowrap;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-pill);
  }
}

@media (max-width: 768px) {
  .hero-entity {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-entity__image-wrapper {
    width: 150px;
    height: 150px;
  }

  .hero-entity__stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
    --button-height: 44px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  header {
    padding: var(--space-md) 0;
  }

  nav {
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    justify-content: flex-start;
    flex-flow: wrap;
  }

  nav a {
    white-space: nowrap;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-pill);
  }

  .search-bar {
    max-width: 100%;
    margin-top: var(--space-md);
  }

  .audiobook-header {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .book-cover-large {
    width: 180px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
  }

  .book-details {
    align-items: center;
  }

  .hero-entity__stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
  }

  .player-bar {
    padding: var(--space-sm);
    bottom: var(--space-sm);
    left: var(--space-sm);
    right: var(--space-sm);
    border-radius: var(--radius-xl);
    background: rgba(43, 40, 37, 0.95);
    backdrop-filter: blur(10px);
    max-height: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .player-content {
    display: flex;
    grid-template-columns: 1fr auto;
    gap: var(--space-xs);
    width: 100%;
  }

  .player-actions {
    max-width: 45%;
    margin: auto;
  }

  .control-btn:not(.play-pause),
  .player-actions,
  .progress-container .time {
    display: none;
  }

  .now-playing {
    max-width: 200px;
  }

  .now-playing-cover {
    width: 40px;
    height: 40px;
  }

  .controls-buttons {
    margin: 0;
  }

  .progress-container {
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    gap: 0;
  }

  .progress {
    height: 3px;
    background: 0 0;
  }

  .progress-fill {
    border-radius: var(--radius-full);
  }

  .progress:hover {
    height: 6px;
    transform: translateY(-2px);
  }

  .logo-icon {
    display: inline-block;
  }

  .logo-full,
  .search-result-meta>span.meta-detail:nth-child(n + 3) {
    display: none;
  }

  .search-dropdown {
    position: fixed;
    z-index: 1000;
    left: 16px;
    right: 16px;
    width: auto;
    margin: 0 auto;
    margin-top: var(--space-md);
    max-width: 450px;
    top: 70px;
    background-color: var(--color-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
  }

  .search-results-list {
    max-height: 50vh;
    padding: var(--space-xs) 0;
  }

  .search-result-item {
    padding: 10px 12px;
  }

  .search-result-cover {
    width: 38px;
    height: 54px;
    margin-right: 12px;
  }

  .search-result-meta {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .search-result-meta>span.meta-detail:not(:first-child) {
    display: inline-flex;
  }

  .search-result-meta>span:first-child::before {
    content: none;
  }

  .search-result-info .meta-detail {
    max-width: fit-content;
  }

  .search-result-meta>span.meta-detail:first-child {
    flex-shrink: 2;
    flex-basis: auto;
  }

  .search-result-meta>span.meta-detail:nth-child(n + 2) {
    flex-shrink: 1;
    flex-basis: auto;
    width: fit-content;
    max-width: 100% !important;
  }

  .nar_c {
    flex-flow: column;
  }

  .title-link {

    -webkit-line-clamp: 2;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: var(--space-lg);
  }

  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: var(--space-xl);
  }

  .category-tab {
    flex-shrink: 0;
  }
}

/* while foter links commited */
.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  flex-flow: column;
  align-items: center;

}

/* while foter links commited */