:root {
  --bg: #e8dccb;
  --panel: #f7f2eb;
  --panel-2: #fbf8f4;
  --text: #1f1815;
  --muted: #7c7269;
  --line: #dfd3c4;
  --accent: #ff6a13;
  --accent-deep: #df5410;
  --accent-soft: #efe5db;
  --pill: #f3eadf;
  --shadow: 0 14px 32px rgba(66, 41, 20, 0.08);
  --shadow-hover: 0 22px 40px rgba(66, 41, 20, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 13px;
  --sidebar-width: 292px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.55), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

body {
  min-height: 100vh;
}

.is-hidden {
  display: none !important;
}

.autofill-trap {
  position: absolute;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.autofill-trap input {
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
}

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.page-shell {
  width: min(100% - 72px, 1460px);
  margin: 18px auto 40px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 16px;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-shell {
  min-width: 0;
}

.sidebar-logo,
.sidebar-section,
.controls-sidebar,
.hero,
.recent-section,
.genre-nav,
.featured-panel,
.auth-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(250, 243, 237, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.sidebar-logo {
  min-height: 78px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: 0 10px 22px rgba(223, 84, 16, 0.22);
  font-family: "Fraunces", serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  flex: 0 0 auto;
}

.brand-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.brand-title {
  margin: 0;
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin: 3px 0 0;
  color: #6f655d;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 600;
}

.view-mode-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 30;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(223, 84, 16, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(66, 41, 20, 0.16);
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.view-mode-toggle:hover,
.view-mode-toggle[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.sidebar-section,
.controls-sidebar,
.genre-nav {
  padding: 16px;
}

.genre-nav {
  padding: 14px 16px;
}

.hero {
  padding: 26px 30px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  align-items: stretch;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero h1 {
  margin: 0 0 12px;
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.intro {
  margin: 0;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.58;
  color: var(--muted);
}

.auth-panel {
  position: relative;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.auth-panel.is-authenticated {
  padding: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(250, 243, 237, 0.52)),
    rgba(255, 255, 255, 0.48);
  border-color: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 42px rgba(66, 41, 20, 0.1);
}

.auth-panel.is-authenticated::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: 0 8px 18px rgba(223, 84, 16, 0.18);
}

.auth-panel.is-highlighted {
  outline: 2px solid rgba(255, 106, 19, 0.35);
  box-shadow:
    0 0 0 6px rgba(255, 106, 19, 0.08),
    var(--shadow);
}

.auth-copy {
  margin: 0;
  color: #544941;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 600;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field span,
.auth-field > label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #5f5349;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.auth-field input:focus {
  outline: 2px solid rgba(255, 106, 19, 0.2);
  border-color: rgba(255, 106, 19, 0.45);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 64px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 4;
  transform: translateY(-50%);
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(223, 211, 196, 0.95);
  background: rgba(255, 255, 255, 0.92);
  color: #7a4d2f;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(66, 41, 20, 0.06);
}

.auth-password-toggle:hover {
  transform: translateY(calc(-50% - 1px));
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-actions--dialog {
  margin-top: 6px;
}

.auth-text-button {
  justify-self: start;
  padding: 0;
  background: transparent;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.auth-button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.auth-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(66, 41, 20, 0.12);
}

.auth-button--primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
}

.auth-button--secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-deep);
  border: 1px solid var(--line);
}

.auth-helper {
  margin: 0;
  color: #7c7269;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 600;
}

.auth-session {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  min-height: 138px;
  padding: 18px 20px 18px 26px;
  align-content: center;
}

.auth-session__topline {
  display: grid;
  gap: 8px;
}

.auth-session__badge {
  justify-self: start;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 106, 19, 0.1);
  color: var(--accent-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-session__email {
  margin: 0;
  color: #251b16;
  font-size: 0.94rem;
  line-height: 1.2;
  font-weight: 800;
  word-break: break-word;
}

.auth-session__footer {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 2px;
}

.auth-session__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.auth-session__saved-label {
  color: #6f6257;
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 0;
}

.auth-session .auth-text-button {
  min-height: 32px;
  padding: 0 2px;
  white-space: nowrap;
}

.auth-session .auth-button {
  min-height: 32px;
  padding: 0 13px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.auth-message {
  margin: 0;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 700;
}

.auth-message[data-tone="success"] {
  background: rgba(58, 141, 84, 0.12);
  color: #2f6d42;
}

.auth-message[data-tone="warning"] {
  background: rgba(255, 169, 77, 0.16);
  color: #9a5f1e;
}

.auth-message[data-tone="error"] {
  background: rgba(199, 66, 56, 0.12);
  color: #9c3028;
}

.auth-dialog__panel {
  width: min(100%, 420px);
}

.auth-dialog {
  z-index: 60;
}

.auth-dialog .rating-dialog__backdrop {
  z-index: 0;
  pointer-events: auto;
}

.auth-dialog .rating-dialog__panel {
  z-index: 2;
  pointer-events: auto;
}

.auth-dialog .auth-actions,
.auth-dialog .auth-button,
.auth-dialog .auth-form,
.auth-dialog .auth-field,
.auth-dialog input {
  position: relative;
  z-index: 3;
}

.genre-nav-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 5px;
}

.genre-nav-header h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.38rem;
  line-height: 1.08;
}

.genre-helper {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.25;
}

.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d7bca8;
  background: rgba(255, 255, 255, 0.44);
  color: #8a552f;
  font-weight: 700;
  transition:
    transform 0.16s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.genre-chip:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 8px 14px rgba(66, 41, 20, 0.08);
}

.genre-chip.active {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  border-color: transparent;
}

.search-field,
.sort-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-field span,
.sort-field span {
  font-size: 0.94rem;
  font-weight: 800;
}

.search-field input,
.sort-toggle {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.sort-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  text-align: left;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.sort-toggle:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 8px 14px rgba(66, 41, 20, 0.08);
}

.sort-toggle::after {
  content: "⌄";
  color: #8a552f;
  font-weight: 900;
  font-size: 1.1rem;
}

.active-filter-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(223, 211, 196, 0.9);
}

.active-filter-box.is-hidden {
  display: none;
}

.active-filter-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text);
}

.active-filter-pill {
  width: 100%;
  min-height: 42px;
  border-radius: 15px;
  padding: 0 12px 0 14px;
  background: linear-gradient(180deg, #3a342f, #26211d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: 0 8px 16px rgba(38, 33, 29, 0.12);
}

#activeFilterText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clear-filter-button {
  margin-top: 8px;
  background: transparent;
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 0.84rem;
  padding: 4px 0;
}

.recent-section {
  min-width: 0;
  padding: 16px;
  margin-bottom: 14px;
}

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

.section-header h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.1;
}

.section-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #685d55;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.recent-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 108px;
  grid-template-areas: "cover copy actions";
  column-gap: 11px;
  align-items: center;
  min-width: 0;
  min-height: 92px;
  padding: 10px 11px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 244, 238, 0.72)),
    rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.recent-card::after {
  content: "";
  position: absolute;
  inset: 10px 10px auto auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(226, 113, 44, 0.12), rgba(226, 113, 44, 0));
  pointer-events: none;
}

.recent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(66, 41, 20, 0.12);
  border-color: #d3bba7;
  background: rgba(255, 255, 255, 0.9);
}

.recent-cover-wrap,
.cover-wrap {
  position: relative;
  overflow: hidden;
  background: #eadfd4;
}

.recent-cover-wrap {
  grid-area: cover;
  width: 74px;
  height: 74px;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(66, 41, 20, 0.1);
}

.recent-cover {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 15px;
}

.cover-wrap.has-no-image .podcast-image,
.recent-cover-wrap.has-no-image .recent-cover {
  display: none;
}

.cover-wrap.has-no-image .image-placeholder,
.recent-cover-wrap.has-no-image .image-placeholder {
  display: flex;
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(247, 242, 235, 0.95), rgba(238, 231, 222, 0.95));
  color: #9c8d7f;
  text-align: center;
}

.image-placeholder-icon {
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.7;
}

.image-placeholder-label {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.15;
}

.image-placeholder-small {
  gap: 4px;
  padding: 8px;
}

.recent-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.recent-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.recent-copy {
  grid-area: copy;
  position: relative;
  z-index: 1;
  min-width: 0;
  align-self: center;
  padding: 0 2px;
}

.recent-title {
  margin: 0 0 4px;
  font-size: 0.94rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-host {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-actions {
  grid-area: actions;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  justify-self: end;
  min-width: 0;
}

.recent-action-buttons {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px;
}

.recent-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 244, 237, 0.9);
  border: 1px solid rgba(255, 106, 19, 0.2);
  color: #8f4f24;
  font-weight: 800;
  font-size: 0.74rem;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0;
}

.recent-date {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(246, 238, 230, 0.72);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.ranking-toolbar {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.ranking-toolbar p {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #5d534a;
}

.ranking-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.ranking-source-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ranking-source-field > span {
  font-size: 0.94rem;
  font-weight: 800;
}

.ranking-source-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.ranking-source-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #8a552f;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.ranking-source-button.active {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 8px 14px rgba(223, 84, 16, 0.16);
}

.sort-field--ranking {
  min-width: 340px;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  align-items: center;
  gap: 12px;
}

.sort-field--ranking span {
  font-size: 0.94rem;
  font-weight: 800;
}

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

.podcast-card {
  position: relative;
  min-height: 412px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
  content-visibility: auto;
  contain-intrinsic-size: 412px;
}

.podcast-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #d3bba7;
  background: rgba(255, 255, 255, 0.9);
}

.podcast-card__placement {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 104px;
  padding: 12px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 10px 22px rgba(223, 84, 16, 0.24);
}

.podcast-card__placement--unranked {
  background: linear-gradient(180deg, #e8ded3, #d7c9bb);
  color: #6f6257;
  box-shadow: 0 10px 22px rgba(66, 41, 20, 0.1);
}

.podcast-card__placement--unranked .placement-value {
  color: #5e534b;
}

.podcast-card__placement--unranked .placement-label {
  color: #7a6e64;
}

.placement-value {
  display: block;
  color: #fff;
  font-size: 1.82rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.placement-label {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.podcast-card__new-badge {
  position: absolute;
  top: -12px;
  left: -4px;
  z-index: 4;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff4768, #ff5d2a);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 20px rgba(255, 93, 42, 0.24);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 34px;
  transform: rotate(-6deg);
}

.podcast-card__new-badge.is-hidden {
  display: none;
}

.podcast-card__utility {
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rate-button,
.recent-rate-button,
.favorite-button,
.podcast-card__link,
.podcast-card__review,
.review-card__back,
.load-more-button {
  min-height: 36px;
  border-radius: 15px;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

.rate-button,
.recent-rate-button {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  color: #432f21;
  box-shadow: 0 8px 16px rgba(66, 41, 20, 0.08);
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.76rem;
}

.podcast-card__utility .podcast-card__link {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.84);
  color: #432f21;
  box-shadow: 0 8px 16px rgba(66, 41, 20, 0.08);
  font-size: 0.72rem;
}

.rate-button::before,
.recent-rate-button::before {
  content: "★";
  color: #cbb9aa;
  margin-right: 6px;
  font-size: 0.84rem;
}

.rate-button.has-user-rating::before,
.recent-rate-button.has-user-rating::before {
  color: var(--accent);
}

.recent-rate-button {
  min-height: 29px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
}

.recent-rate-button::before {
  margin-right: 4px;
  font-size: 0.76rem;
}

.favorite-button {
  width: 38px;
  min-width: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  color: #5d4638;
  box-shadow: 0 8px 16px rgba(66, 41, 20, 0.08);
  font-size: 1.2rem;
}

.favorite-button.is-saved {
  color: var(--accent-deep);
  border-color: rgba(255, 106, 19, 0.32);
  background: rgba(255, 244, 237, 0.94);
}

.favorite-button--compact {
  width: 29px;
  min-width: 29px;
  min-height: 29px;
  border-radius: 999px;
  font-size: 0.9rem;
}

button:disabled,
input:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.rate-button:hover,
.recent-rate-button:hover,
.favorite-button:hover,
.podcast-card__link:hover,
.podcast-card__review:hover,
.review-card__back:hover,
.load-more-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 18px rgba(66, 41, 20, 0.12);
}

.podcast-card__body {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 220px;
  flex: 1;
  padding-top: 72px;
}

.podcast-card__media-column {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.podcast-card__media {
  width: 144px;
  height: 184px;
  border-radius: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(223, 211, 196, 0.7);
  overflow: hidden;
}

.podcast-card__media-column .podcast-card__review {
  align-self: center;
}

.podcast-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podcast-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 170px;
  padding-top: 2px;
}

.podcast-card__title {
  margin: 0 0 10px;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-card__host {
  margin: 0 0 10px;
  color: #2b2420;
  font-size: 0.89rem;
  line-height: 1.32;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-card__description {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(223, 211, 196, 0.72);
  color: #9a9088;
  font-size: 0.78rem;
  line-height: 1.38;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-card__description:empty {
  display: none;
}

.podcast-card__inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.podcast-card__link,
.podcast-card__review,
.review-card__back,
.load-more-button {
  min-height: 36px;
  padding: 0 12px;
  color: #ffffff;
  box-shadow: 0 5px 12px rgba(38, 33, 29, 0.14);
  background: linear-gradient(180deg, #3a342f, #26211d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.72rem;
}

.podcast-card__link::before {
  content: "↗";
  margin-right: 5px;
  font-size: 0.72rem;
}

.podcast-card__utility .podcast-card__link::before {
  color: #8a7f75;
}

.podcast-card__review::before {
  content: "★";
  margin-right: 5px;
  font-size: 0.7rem;
}

.review-card__back::before {
  content: "←";
  margin-right: 6px;
  font-size: 0.7rem;
}

.podcast-card__link.is-hidden,
.podcast-card__review.is-hidden {
  display: none;
}

.podcast-card__footer {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(223, 211, 196, 0.9);
}

.podcast-card__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.rating-summary {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(223, 211, 196, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  padding: 9px 12px;
  min-height: 112px;
  min-width: 0;
}

.rating-summary--community.is-clickable {
  cursor: pointer;
}

.rating-summary--community.is-clickable:hover {
  border-color: rgba(255, 106, 19, 0.42);
  background: rgba(255, 250, 245, 0.78);
}

.rating-summary--community.is-clickable:focus-visible {
  outline: 2px solid rgba(226, 113, 44, 0.48);
  outline-offset: 3px;
}

.rating-summary--community[data-user-rating]::after {
  content: attr(data-user-rating);
  position: absolute;
  right: 10px;
  bottom: calc(100% - 2px);
  z-index: 4;
  max-width: min(190px, calc(100vw - 32px));
  padding: 6px 8px;
  border: 1px solid rgba(111, 77, 51, 0.16);
  border-radius: 8px;
  background: #2f261f;
  color: #fffaf4;
  box-shadow: 0 10px 24px rgba(47, 38, 31, 0.18);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.rating-summary--community[data-user-rating]:hover::after,
.rating-summary--community[data-user-rating]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.rating-summary__label {
  display: block;
  color: #3f3025;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.1;
}

.rating-summary__value-row {
  display: grid;
  grid-template-columns: 46px auto;
  grid-template-areas: "badge value";
  align-items: center;
  align-self: center;
  justify-self: center;
  gap: 9px;
  min-width: 0;
}

.rating-summary__value {
  grid-area: value;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.rating-summary__value--community {
  font-size: 0.88rem;
}

.rating-summary__stars {
  grid-area: badge;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  line-height: 1;
  white-space: nowrap;
}

.rating-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 106, 19, 0.82);
  border-radius: 999px;
  background: rgba(255, 244, 237, 0.82);
  color: var(--accent-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.rating-score-badge--empty {
  border-color: rgba(203, 185, 170, 0.9);
  background: rgba(246, 238, 230, 0.6);
  color: #9c8d7f;
}

.rating-summary__meta {
  display: block;
  min-height: 13px;
  color: #8a7f75;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating-summary--owner::after {
  content: "";
  display: block;
  min-height: 13px;
}

.podcast-card__chips {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.15fr) 62px;
  gap: 10px 12px;
  align-items: center;
}

.podcast-chip {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  line-height: 36px;
  border-radius: 999px;
  background: var(--pill);
  color: #7b624a;
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

button.podcast-chip {
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

button.podcast-chip:hover {
  transform: translateY(-1px);
  background: #eadccc;
  color: #4f3725;
  box-shadow: 0 8px 14px rgba(66, 41, 20, 0.08);
}

.podcast-chip--episodes {
  padding: 0 8px;
}

.podcast-card--review {
  min-height: 372px;
}

.podcast-card--review .podcast-card__placement {
  min-width: 74px;
  padding: 8px 10px;
  border-radius: 17px;
}

.podcast-card--review .placement-value {
  font-size: 1.34rem;
}

.podcast-card--review .placement-label {
  font-size: 0.46rem;
}

.podcast-card--review .podcast-card__body {
  display: block;
  min-height: 250px;
  padding-top: 58px;
}

.review-card__head {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.review-card__cover {
  width: 128px;
  height: 128px;
  border-radius: 20px;
  overflow: hidden;
  background: #eadfd4;
  border: 1px solid rgba(223, 211, 196, 0.75);
  box-shadow: 0 12px 22px rgba(66, 41, 20, 0.13);
}

.review-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.review-card__head-copy {
  min-width: 0;
  padding-top: 4px;
}

.review-card__eyebrow {
  margin: 0 0 6px;
  color: var(--accent-deep);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.review-card__title {
  margin: 0 0 5px;
  font-family: "Fraunces", serif;
  font-size: 1.12rem;
  line-height: 1.06;
  letter-spacing: -0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__host {
  margin: 0 0 4px;
  color: #2b2420;
  font-size: 0.76rem;
  line-height: 1.18;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__date {
  margin: 0;
  color: #9a9088;
  font-size: 0.64rem;
  line-height: 1.15;
  font-weight: 700;
}

.review-card__actions {
  display: grid;
  grid-template-columns: 92px 92px;
  gap: 10px;
  margin: 13px 0 0;
}

.review-card__actions .podcast-card__link,
.review-card__actions .review-card__back {
  width: 92px;
  min-height: 36px;
  border-radius: 15px;
  font-size: 0.62rem;
}

.review-card__text {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(223, 211, 196, 0.72);
  color: #4f463f;
  font-size: 0.72rem;
  line-height: 1.33;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__heading {
  margin: 10px 0 7px;
  color: var(--accent-deep);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.review-card__params {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-card__param {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 42px;
  gap: 7px;
  align-items: center;
}

.review-card__param-name {
  color: #4a4038;
  font-size: 0.62rem;
  line-height: 1.08;
  font-weight: 800;
}

.review-card__param-bar {
  height: 6px;
  border-radius: 999px;
  background: #f0e5da;
  overflow: hidden;
}

.review-card__param-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.review-card__param-value {
  text-align: right;
  color: #5b4f46;
  font-size: 0.58rem;
  font-weight: 900;
  white-space: nowrap;
}

.review-card__param.is-na {
  grid-template-columns: 58px minmax(0, 1fr);
}

.review-card__param.is-na .review-card__param-value {
  text-align: left;
  color: #9a9088;
}

.podcast-card--review .podcast-card__footer {
  margin-top: auto;
}

.featured-panel {
  padding: 16px;
  width: 100%;
  min-width: 0;
  cursor: pointer;
}

.featured-panel.is-hidden {
  display: none;
}

.featured-panel.is-paused .featured-eyebrow::after {
  content: " • pause";
  color: #8d837b;
  font-size: 0.76em;
  letter-spacing: 0.08em;
}

.featured-eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.featured-top {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.featured-cover-wrap {
  width: 68px;
  height: 78px;
  border-radius: 14px;
  overflow: hidden;
  background: #eadfd4;
  border: 1px solid rgba(223, 211, 196, 0.75);
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-title {
  margin: 0 0 5px;
  font-family: "Fraunces", serif;
  font-size: 1rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-meta {
  margin: 0 0 7px;
  color: #6f655d;
  font-size: 0.73rem;
  line-height: 1.28;
  font-weight: 700;
}

.featured-score {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f2e9df;
  color: var(--accent-deep);
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 900;
}

.featured-date {
  margin: 4px 0 0;
  color: #9a9088;
  font-size: 0.58rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.featured-date:empty {
  display: none;
}

.featured-text {
  margin: 14px 0 0;
  color: #4f463f;
  font-size: 0.78rem;
  line-height: 1.42;
  font-weight: 600;
}

.featured-divider {
  height: 1px;
  margin: 14px 0;
  background: rgba(223, 211, 196, 0.95);
}

.featured-param-heading {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-params {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.featured-param {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.featured-param-name {
  color: #4a4038;
  font-size: 0.68rem;
  line-height: 1.15;
  font-weight: 800;
}

.featured-param-bar {
  height: 6px;
  border-radius: 999px;
  background: #f0e5da;
  overflow: hidden;
}

.featured-param-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.featured-param-value {
  text-align: right;
  color: #5b4f46;
  font-size: 0.64rem;
  font-weight: 900;
  white-space: nowrap;
}

.featured-param.is-na {
  grid-template-columns: 70px minmax(0, 1fr);
}

.featured-param.is-na .featured-param-value {
  text-align: left;
  color: #9a9088;
  font-size: 0.64rem;
}

.featured-method {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(223, 211, 196, 0.78);
  color: #8d837b;
  font-size: 0.58rem;
  line-height: 1.25;
  font-weight: 700;
}

.featured-dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.featured-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #e5d7c7;
  padding: 0;
}

.featured-dot.active {
  background: var(--accent);
}

.rating-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
}

.rating-dialog.is-hidden {
  display: none;
}

.rating-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 24, 21, 0.42);
  backdrop-filter: blur(4px);
}

.rating-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 22px 22px 20px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 243, 237, 0.98));
  box-shadow: 0 26px 56px rgba(35, 22, 12, 0.18);
}

.rating-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: #5f5147;
  font-size: 1.45rem;
  line-height: 1;
}

.rating-dialog__eyebrow {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rating-dialog__title {
  margin: 0 0 6px;
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.rating-dialog__meta {
  margin: 0 0 16px;
  color: #746a62;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 600;
}

.rating-dialog__field {
  display: grid;
  gap: 8px;
}

.rating-dialog__field span {
  font-size: 0.84rem;
  font-weight: 800;
  color: #4e4138;
}

.rating-dialog__input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  font-weight: 700;
}

.rating-dialog__hint {
  margin: 12px 0 0;
  color: #8a7f75;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
}

.rating-dialog__message {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 700;
}

.rating-dialog__message[data-tone="warning"] {
  background: rgba(255, 169, 77, 0.16);
  color: #9a5f1e;
}

.rating-dialog__message[data-tone="error"] {
  background: rgba(199, 66, 56, 0.12);
  color: #9c3028;
}

.rating-dialog__actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

body.has-dialog-open {
  overflow: hidden;
}

.empty-state {
  padding: 20px 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  color: #6f655d;
  font-weight: 700;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 22px 0 0;
}

.load-more-wrap.is-hidden {
  display: none;
}

.load-more-button {
  min-width: 180px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.site-footer {
  margin: 30px 0 0;
  padding: 18px 10px 4px;
  text-align: center;
  color: #8d837b;
  font-size: 0.86rem;
}

.visitor-counter {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(223, 211, 196, 0.72);
}

.visitor-counter.is-unavailable {
  gap: 6px;
  color: #9a9088;
}

.visitor-counter.is-unavailable #goatcounter-visits {
  font-weight: 700;
}

#goatcounter-visits iframe {
  width: 90px;
  height: 24px;
  border: 0;
  overflow: hidden;
  vertical-align: middle;
}

@media (max-width: 1320px) {
  .page-shell {
    width: min(100% - 32px, 100%);
    gap: 20px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

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

@media (max-width: 920px) {
  .page-shell {
    width: min(100% - 24px, 100%);
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .sidebar,
  .content-shell {
    display: contents;
  }

  .sidebar-logo {
    order: 1;
  }

  .hero {
    order: 2;
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .recent-section {
    order: 4;
  }

  .featured-panel {
    order: 5;
    touch-action: pan-y;
  }

  .genre-nav {
    order: 6;
  }

  .controls-sidebar {
    order: 7;
  }

  .ranking-toolbar {
    order: 8;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ranking-controls {
    width: 100%;
    justify-content: stretch;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
  }

  .ranking-source-field,
  .sort-field--ranking {
    width: 100%;
  }

  .ranking-source-field {
    justify-content: space-between;
  }

  .podcast-grid {
    order: 9;
    grid-template-columns: 1fr;
  }

  .load-more-wrap {
    order: 10;
  }

  .site-footer {
    order: 11;
  }

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

  .sort-field--ranking {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
  }

  .podcast-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 16px;
  }

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

  .recent-card {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "cover copy"
      "actions actions";
    row-gap: 10px;
  }

  .recent-card::after {
    display: none;
  }

  .recent-cover-wrap,
  .recent-cover {
    width: 72px;
    height: 72px;
  }

  .recent-actions {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0;
    border-top: 0;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-chip {
    white-space: normal;
  }

  .podcast-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: auto;
    overflow: hidden;
    padding: 14px;
    border-radius: 24px;
  }

  .podcast-card__placement {
    min-width: 88px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .placement-value {
    font-size: 1.55rem;
  }

  .podcast-card__utility {
    top: 16px;
    right: 14px;
    gap: 6px;
  }

  .podcast-card__utility .rate-button {
    min-height: 31px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .podcast-card__utility .favorite-button {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    font-size: 1rem;
  }

  .podcast-card__new-badge {
    top: -10px;
    left: -2px;
    min-height: 30px;
    padding: 0 12px;
    font-size: 0.74rem;
    line-height: 30px;
  }

  .podcast-card__body {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    padding-top: 74px;
    min-width: 0;
  }

  .podcast-card__media {
    width: 104px;
    height: 132px;
    border-radius: 16px;
  }

  .podcast-card__content,
  .podcast-card__title,
  .podcast-card__host,
  .podcast-card__description {
    min-width: 0;
    max-width: 100%;
  }

  .podcast-card__title,
  .podcast-card__host,
  .podcast-card__description {
    overflow-wrap: anywhere;
  }

  .podcast-card__summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .podcast-card__chips {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr) 54px;
    gap: 8px;
  }

  .podcast-chip {
    min-height: 32px;
    line-height: 32px;
    font-size: 0.64rem;
    padding: 0 7px;
  }

  .review-card__head {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 13px;
  }

  .review-card__cover {
    width: 92px;
    height: 92px;
    border-radius: 16px;
  }

  .visitor-counter {
    max-width: 100%;
    flex-wrap: wrap;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 16px, 100%);
    margin-top: 10px;
  }

  .podcast-card {
    padding: 14px;
    border-radius: 22px;
  }

  .podcast-card__placement {
    min-width: 86px;
    max-width: 112px;
  }

  .podcast-card__utility {
    right: 12px;
  }

  .podcast-card__body {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 78px;
  }

  .podcast-card__media-column {
    align-items: center;
  }

  .podcast-card__media {
    width: min(176px, 58vw);
    height: min(176px, 58vw);
    border-radius: 18px;
  }

  .podcast-card__content {
    gap: 10px;
  }

  .podcast-card__title {
    font-size: 1.18rem;
    -webkit-line-clamp: 4;
  }

  .podcast-card__host {
    -webkit-line-clamp: 3;
  }

  .podcast-card__description {
    -webkit-line-clamp: 5;
  }

  .podcast-card__inline-actions {
    justify-content: flex-start;
  }
}

html.force-desktop-view,
body.force-desktop-view {
  overflow-x: auto;
}

.force-desktop-view .page-shell {
  width: 1180px;
  max-width: none;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.force-desktop-view .sidebar {
  position: sticky;
  top: 16px;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.force-desktop-view .content-shell {
  display: block;
  min-width: 0;
}

.force-desktop-view .sidebar-logo,
.force-desktop-view .hero,
.force-desktop-view .recent-section,
.force-desktop-view .featured-panel,
.force-desktop-view .genre-nav,
.force-desktop-view .controls-sidebar,
.force-desktop-view .ranking-toolbar,
.force-desktop-view .podcast-grid,
.force-desktop-view .load-more-wrap,
.force-desktop-view .site-footer {
  order: initial;
}

.force-desktop-view .hero {
  grid-template-columns: minmax(0, 1fr) 290px;
}

.force-desktop-view .podcast-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.force-desktop-view .recent-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.force-desktop-view .ranking-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.force-desktop-view .ranking-controls {
  width: auto;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
}

.force-desktop-view .ranking-source-field,
.force-desktop-view .sort-field--ranking {
  width: auto;
}
