.feed {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

.feed__topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 22px;
  min-height: 36px;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feed__topbar--scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.feed__topbar-mark {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  flex-shrink: 0;
  white-space: nowrap;
}

.feed__topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* language pill */
.pill {
  display: flex;
  border: 1.5px solid var(--hairline-2);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.pill__btn {
  padding: 5px 11px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.pill__btn.on {
  background: var(--accent);
  color: #fff;
}

/* search icon button */
.feed__search-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.feed__search-btn:active {
  background: var(--ink);
}

.feed__search-btn:active svg * {
  stroke: #fff;
}

/* expanded search field */
.feed__search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}

.feed__search-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--body);
  font-size: 14px;
}

.feed__search-field input::placeholder {
  color: var(--muted);
}

.feed__search-clear {
  color: var(--muted);
  padding: 2px 4px;
  font-size: 18px;
  line-height: 1;
}

/* hero */
.feed__hero {
  padding: 8px 22px 6px;
}

.feed__kicker {
  font-family: var(--body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.feed__title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 33px;
  line-height: 1;
  color: var(--ink);
}

.feed__subtitle {
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 9px;
}

.feed__moreinfo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.feed__moreinfo svg {
  margin-bottom: -1px;
}

.feed__list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 22px 140px;
  -webkit-overflow-scrolling: touch;
}

.feed__date {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 8px 0 6px;
  padding: 6px 0;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 1;
  text-transform: uppercase;
}

.feed__date:first-child {
  margin-top: 2px;
}

.feed__row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--row-bottom);
  align-items: center;
  text-align: left;
  width: 100%;
  transition: opacity 0.15s;
  text-decoration: none;
  color: inherit;
}

.feed__row:active {
  opacity: 0.5;
}

.feed__row--playing {
  background: linear-gradient(90deg, var(--accent-wash), transparent 80%);
  /* width:auto lets the negative margins widen the box so the 22px padding
     keeps content aligned with non-playing rows (base row is width:100% +
     border-box, which would otherwise pull the right edge 44px inward). */
  width: auto;
  margin: 0 -22px;
  padding: 12px 22px;
  border-bottom-color: transparent;
}

.feed__play {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.12s, transform 0.12s;
}

.feed__play--playing {
  background: var(--accent);
  border-color: var(--accent);
}

.feed__play:active {
  transform: scale(0.92);
}

.feed__row-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.feed__row-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.feed__row-meta .dur {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.feed__row-text {
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  margin-top: 3px;
  line-height: 1.3;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px 8px;
  margin-top: 30px;
  padding: 0 8px;
  line-height: 1;
}

.feed__footer a,
.feed__footer button {
  font-family: var(--body);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
}

.feed__footer--subline {
  text-align: center;
  font-family: var(--body);
  font-weight: 500;
  font-style: italic;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 8px;
}

.feed__footer--subline a {
  color: var(--muted);
}

.feed__footer .sep {
  color: var(--hairline-2);
}

.feed__row-del {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--hairline-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  background: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.feed__row-del:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.feed__empty {
  text-align: center;
  padding: 60px 22px;
  font-family: var(--hand);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* infinite-scroll sentinel + loading indicator */
.feed__sentinel {
  padding: 18px 0;
}

.feed__loading {
  text-align: center;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* record CTA — fixed bottom right */
.record-cta {
  position: absolute;
  bottom: 28px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.record-cta__label {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  white-space: nowrap;
  color: var(--ink);
  line-height: 1;
  background: var(--paper);
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  cursor: pointer;
}

.record-cta__btn {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  transition: transform 0.1s, box-shadow 0.1s;
}

.record-cta__btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-float-sm);
}
