.audio-panel {
  display: grid;
  gap: 18px;
}

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

.audio-status__card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.audio-status__label {
  display: block;
  color: var(--t3);
  font-size: .78rem;
  margin-bottom: 6px;
}

.audio-status__value {
  color: var(--t1);
  font-weight: 800;
}

.audio-pillbar,
.audio-secondary-actions,
.audio-speed,
.audio-volume {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.audio-controls-wrap {
  position: relative;
}

.audio-native {
  width: 100%;
}

.audio-native-note {
  color: var(--t3);
  font-size: .85rem;
}

.audio-native.is-hidden,
.audio-native-note.is-hidden {
  display: none;
}

.audio-native:not(.is-hidden) {
  margin-top: 6px;
}

.audio-native-note:not(.is-hidden) {
  margin-top: 6px;
}

.audio-settings {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(420px, 100%);
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(12,12,22,.98);
  box-shadow: 0 22px 46px rgba(0,0,0,.36);
  display: grid;
  gap: 16px;
  z-index: 20;
}

.audio-settings__section {
  display: grid;
  gap: 10px;
}

.audio-settings__title {
  color: var(--t3);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

[data-player-settings-toggle][aria-expanded="true"] {
  background: rgba(6,182,212,.14);
  color: var(--accent);
}

.audio-pill,
.audio-speed__chip,
.audio-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--t1);
  font-weight: 700;
}

.audio-pill.is-active,
.audio-speed__chip.is-active,
.audio-action.is-active {
  border-color: rgba(6,182,212,.24);
  background: rgba(6,182,212,.12);
  color: var(--accent);
}

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

.audio-volume--slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.audio-volume__icon {
  color: var(--t2);
}

.audio-volume__slider {
  width: 100%;
  accent-color: #f59e0b;
}

.audio-volume__meter {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.audio-volume__fill {
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #f97316);
}

.audio-volume__value {
  color: var(--t3);
  font-size: .82rem;
  font-weight: 700;
}

.audio-sleep {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.audio-sleep__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.audio-sleep__option,
.audio-sleep__apply {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--t1);
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 14px;
}

.audio-sleep__option.is-active,
.audio-sleep__apply.is-active {
  border-color: rgba(6,182,212,.24);
  background: rgba(6,182,212,.12);
  color: var(--accent);
}

.audio-sleep__custom {
  display: grid;
  gap: 8px;
  color: var(--t3);
  font-size: .84rem;
}

.audio-sleep__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.audio-sleep__custom input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--t1);
  outline: none;
}

.audio-sleep__custom input:focus {
  border-color: rgba(6,182,212,.32);
  box-shadow: 0 0 0 4px rgba(6,182,212,.08);
}

.audio-sleep__status {
  color: var(--t2);
  font-size: .82rem;
}

.audio-nextup {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}

.audio-nextup__label {
  color: var(--t3);
  font-size: .8rem;
}

.audio-nextup__title {
  color: var(--t1);
  font-weight: 800;
}

.audio-nextup__meta {
  color: var(--t2);
}

.related-panel .story-card__thumb {
  aspect-ratio: 16 / 9;
  min-height: 0;
  height: auto;
  background-size: cover;
  background-position: center;
}

.related-panel .story-card {
  overflow: hidden;
}

.reading-toolbar {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(56,189,248,.2);
  background: #1e2b45;
}

.reading-toolbar__title {
  color: #e5e7eb;
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.reading-toolbar__row {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 1fr 1.25fr;
  gap: 12px;
  align-items: end;
}

.reading-group span {
  color: #94a3b8;
  font-size: .74rem;
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.reading-theme-list,
.reading-font-controls,
.reading-line-options,
.reading-group--actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.reading-theme-list { gap: 8px; }
.reading-theme {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24);
  background: #0f172a;
}
.reading-theme.is-active { outline: 2px solid #22d3ee; outline-offset: 1px; }

.reading-font-controls input[type="range"] {
  width: 100%;
  accent-color: #22d3ee;
}

.reading-font-controls button,
.reading-line-options button,
.reading-group--actions > button,
.reading-autoscroll-wrap > button,
.reading-autoscroll-speed button {
  border: 1px solid rgba(148,163,184,.28);
  background: rgba(255,255,255,.05);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 7px 10px;
  min-height: 34px;
  font-weight: 700;
  font-size: .82rem;
}

.reading-line-options .is-active,
.reading-group--actions .is-active,
.reading-autoscroll-speed .is-active {
  border-color: rgba(34,211,238,.45);
  background: rgba(34,211,238,.16);
  color: #67e8f9;
}

.reading-group--actions {
  justify-content: flex-end;
  gap: 10px;
}

.reading-autoscroll-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto;
  gap: 6px;
}

.reading-autoscroll-speed {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 86px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(148,163,184,.28);
  background: #334155;
  display: grid;
  gap: 6px;
  z-index: 30;
}

.reading-autoscroll-speed.is-hidden {
  display: none;
}

.reading-autoscroll-speed button {
  min-width: 42px;
  padding: 5px 8px;
  min-height: 30px;
}

@media (max-width: 980px) {
  .reading-toolbar__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .reading-toolbar__row {
    grid-template-columns: 1fr;
  }
}

.chapter-copy {
  font-size: 18px;
  line-height: 1.8;
  color: #e2e8f0;
  background: rgba(8, 15, 30, 0.55);
  max-height: 520px;
  overflow-y: auto;
  padding: 14px 12px;
  border-radius: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chapter-copy::-webkit-scrollbar { width: 10px; }
.chapter-copy::-webkit-scrollbar-track { background: rgba(148,163,184,.15); border-radius: 999px; }
.chapter-copy::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #22d3ee, #0ea5e9); border-radius: 999px; }

.chapter-reading.is-fullscreen-reading {
  position: fixed;
  inset: 16px;
  z-index: 1200;
  margin: 0;
  max-width: none;
}

.chapter-reading.is-fullscreen-reading .chapter-copy {
  max-height: calc(100vh - 220px);
}

.chapter-copy p {
  margin: 0 0 12px;
  color: #e2e8f0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chapter-copy p:last-child {
  margin-bottom: 0;
}

.comment-entry {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.comment-entry__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.comment-entry__title {
  color: var(--t1);
  font-weight: 800;
}

.comment-entry__hint {
  color: var(--t3);
  font-size: .82rem;
}

.rating-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.rating-star {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  color: rgba(245,158,11,.6);
  cursor: pointer;
}

.rating-star.is-active,
.rating-star:hover {
  color: var(--primary);
  background: rgba(245,158,11,.12);
}

.comment-entry textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--t1);
  resize: vertical;
  outline: none;
}

.comment-entry textarea:focus {
  border-color: rgba(6,182,212,.32);
  box-shadow: 0 0 0 4px rgba(6,182,212,.08);
}

.comment-entry__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.comment-entry__status {
  color: var(--t3);
  font-size: .82rem;
}

.comment-entry__status.is-success {
  color: var(--accent);
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.comment-bubble {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: 10px 12px;
}

.comment-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.comment-head span {
  color: var(--t3);
  font-size: .8rem;
}

.comment-replies-toggle {
  border: 0;
  background: transparent;
  color: var(--t3);
  font-weight: 700;
  margin-top: 6px;
  cursor: pointer;
}

.comment-replies-toggle:hover {
  color: var(--accent);
}

.comment-item:first-child {
  border-top: 0;
}

.comment-item.is-new {
  border-top: 0;
  padding-top: 0;
}

.comment-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.comment-action {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  color: var(--t2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.comment-action:hover {
  border-color: rgba(6,182,212,.35);
  color: var(--accent);
}

.comment-inline-form {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.comment-inline-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  color: var(--t1);
  padding: 8px 10px;
  resize: vertical;
  min-height: 56px;
}

.comment-inline-actions {
  display: inline-flex;
  gap: 8px;
}

.comment-replies {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  margin-left: 18px;
  border-left: 1px solid rgba(255,255,255,.12);
  padding-left: 12px;
}

.comment-reply {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.comment-reply-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

.comment-reply-main {
  min-width: 0;
}

.comment-reply strong {
  color: var(--t1);
  margin-right: 8px;
}

.comment-reply span {
  color: var(--t3);
  font-size: .78rem;
}

.comment-reply p {
  margin-top: 6px;
}


.comment-item.is-new {
  animation: commentPulse .28s ease-out;
}

@keyframes commentPulse {
  from { transform: translateY(-2px); opacity: .75; }
  to { transform: translateY(0); opacity: 1; }
}

.detail-sidebar {
  position: sticky;
  top: 82px;
  align-self: start;
}

.detail-sidebar .sidebar-panel:first-child {
  margin-bottom: 18px;
}

.chapter-list,
.mini-list {
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(6,182,212,.65) rgba(255,255,255,.08);
  padding-right: 4px;
}

.chapter-list::-webkit-scrollbar,
.mini-list::-webkit-scrollbar {
  width: 8px;
}

.chapter-list::-webkit-scrollbar-track,
.mini-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}

.chapter-list::-webkit-scrollbar-thumb,
.mini-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(6,182,212,.9), rgba(59,130,246,.9));
  border-radius: 999px;
}

.chapter-list::-webkit-scrollbar-thumb:hover,
.mini-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(34,211,238,.95), rgba(96,165,250,.95));
}

.chapter-item.is-locked {
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  cursor: not-allowed;
  display: block;
}

.chapter-item.is-locked:hover {
  transform: none;
  box-shadow: none;
}

.chapter-item.is-locked .chapter-item__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chapter-item.is-locked .chapter-item__index {
  font-weight: 700;
}

.chapter-item.is-locked .chapter-item__title {
  color: rgba(255,255,255,.78);
  font-size: .82rem;
}

.chapter-item.is-locked .chapter-item__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #f6c453;
  font-size: .74rem;
}

@media (max-width: 1080px) {
  .detail-sidebar {
    position: static;
    top: auto;
  }
}

.auth-required-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-required-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.72);
  backdrop-filter: blur(4px);
}

.auth-required-modal__panel {
  position: relative;
  width: min(520px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,.26);
  background: linear-gradient(180deg, #26344f 0%, #1f2a42 100%);
  box-shadow: 0 24px 60px rgba(2,6,23,.55);
  padding: 26px 24px 22px;
  text-align: center;
}

.auth-required-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #dbe2f0;
  font-size: 20px;
  cursor: pointer;
}

.auth-required-modal__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(250,180,42,.16);
  color: #cbd5e1;
  display: grid;
  place-items: center;
  font-size: 30px;
}

.auth-required-modal__panel h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 2rem;
}

.auth-required-modal__panel p {
  margin: 10px 0 18px;
  color: rgba(226,232,240,.86);
  font-size: 1.05rem;
}

.auth-required-modal__primary,
.auth-required-modal__secondary {
  width: 100%;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-weight: 800;
  text-decoration: none;
}

.auth-required-modal__primary {
  background: linear-gradient(90deg, #facc15, #f97316);
  color: #fff;
  margin-bottom: 12px;
}

.auth-required-modal__secondary {
  background: rgba(71,85,105,.78);
  color: #dbe2f0;
  cursor: pointer;
}

.story-hashtags {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.story-hashtags strong {
  color: #94a3b8;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.story-hashtags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-hashtag {
  color: #22d3ee;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.story-hashtag:hover {
  color: #67e8f9;
}

.story-hashtag:visited {
  color: #22d3ee;
}

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

@media (max-width: 860px) {
  .audio-status {
    grid-template-columns: 1fr;
  }

  .comment-entry__head,
  .comment-entry__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.detail-copy {
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(6,182,212,.65) rgba(255,255,255,.08);
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-copy::-webkit-scrollbar {
  width: 8px;
}

.detail-copy::-webkit-scrollbar-track {
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}

.detail-copy::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(6,182,212,.9), rgba(59,130,246,.9));
  border-radius: 999px;
}

.detail-copy::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(34,211,238,.95), rgba(96,165,250,.95));
}

@media (max-width: 860px) {
  .detail-copy {
    max-height: 360px;
  }
}
