/* =========================================================
   Stories Page
========================================================= */

.stories-page {
  padding: 56px 0 80px;
}

/* =========================================================
   Stories Hero
========================================================= */

.stories__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 60px;
  margin-bottom: 42px;
}

.stories__hero h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stories__hero p {
  max-width: 600px;
  margin: 0;
  padding-top: 4px;
  color: #667085;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ========================================
   Story Level Filter
======================================== */

.stories__filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.stories__filter label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.stories__filter select {
  min-width: 150px;
  padding: 9px 36px 9px 12px;

  border: 1px solid var(--border-color);
  border-radius: 8px;

  background: var(--card-background);
  color: var(--text-primary);

  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.stories__filter select:hover {
  border-color: var(--primary-color);
}

.stories__filter select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* =========================================================
   Stories List
========================================================= */

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

.stories__loading {
  grid-column: 1 / -1;
  padding: 80px 20px;
  color: #667085;
  text-align: center;
}

/* =========================================================
   Story Card
========================================================= */

.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgb(16 24 40 / 5%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgb(16 24 40 / 10%);
}

/* =========================================================
   Story Card Image
========================================================= */

.story-card__image-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f4f7;
}

.story-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.story-card:hover .story-card__image {
  transform: scale(1.03);
}

/* =========================================================
   Level
========================================================= */

.story-card__level {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 7px 12px;
  background: #ecfdf3;
  border-radius: 999px;
  color: #027a48;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgb(16 24 40 / 12%);
}

/* =========================================================
   More Button
========================================================= */

.story-card__menu {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 95%);
  color: #101828;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgb(16 24 40 / 12%);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.story-card__menu:hover {
  background: #ffffff;
  transform: scale(1.05);
}

/* =========================================================
   Reading Time
========================================================= */

.story-card__reading-time {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgb(0 0 0 / 40%);
}

/* =========================================================
   Card Content
========================================================= */

.story-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 18px 18px;
}

.story-card__title {
  margin: 0 0 8px;
  color: #101828;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 750;
}

.story-card__excerpt {
  margin: 0;
  color: #667085;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* =========================================================
   Card Footer
========================================================= */

.story-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

.story-card__stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.story-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 1rem;
}

.story-card__stat--like,
.story-card__stat--feedback {
  color: #f04438;
  cursor: pointer;
  font-size: 1.05rem;
}

.story-card__stat--feedback {
  color: rgb(8, 65, 8);
}

.story-card__stat--like:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* =========================================================
   Read Story Button
========================================================= */

.story-card__read-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: #eff6ff;
  color: #1570ef;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.story-card__read-button:hover {
  background: #dbeafe;
  transform: translateX(2px);
}

@media (hover: hover) and (pointer: fine) {
  .story-card__read-button:hover {
    background: #dbeafe;
    transform: translateX(2px);
  }
}

/* =========================================================
   Empty State
========================================================= */

.stories__empty {
  grid-column: 1 / -1;
  padding: 80px 20px;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
}

.stories__empty-title {
  margin: 0 0 8px;
  color: #101828;
  font-size: 1.2rem;
  font-weight: 700;
}

.stories__empty-text {
  margin: 0;
  color: #667085;
  line-height: 1.5;
}

/* =========================================================
   Story Detail
========================================================= */

.story-detail {
  max-width: 900px;
  margin: 0 auto;
}

/* =========================================================
   Back Button
========================================================= */

.story-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #475467;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.story-detail__back:hover {
  color: #1570ef;
  transform: translateX(-2px);
}

/* =========================================================
   Detail Header
========================================================= */

.story-detail__header {
  margin-bottom: 32px;
  text-align: center;
}

.story-detail__level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  margin-bottom: 16px;
  padding: 7px 13px;
  background: #ecfdf3;
  border-radius: 999px;
  color: #027a48;
  font-size: 0.82rem;
  font-weight: 700;
}

.story-detail__title {
  max-width: 850px;
  margin: 0 auto 14px;
  color: #101828;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.story-detail__excerpt {
  max-width: 700px;
  margin: 0 auto 18px;
  color: #667085;
  font-size: 1.1rem;
  line-height: 1.6;
}

.story-detail__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #98a2b3;
  font-size: 0.9rem;
}

/* =========================================================
   Detail Image
========================================================= */

.story-detail__image-wrapper {
  width: 100%;
  margin-bottom: 42px;
  overflow: hidden;
  background: #f2f4f7;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgb(16 24 40 / 7%);
}

.story-detail__image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* =========================================================
   Story Audio Player
========================================================= */

.story-audio-player {
  position: sticky;
  top: 12px;
  z-index: 10;

  width: 100%;
  margin-bottom: 32px;
}

.story-audio-player__inner {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px 18px;

  background: #ffffff;

  border: 1px solid #eaecf0;
  border-radius: 12px;

  box-shadow: 0 6px 18px rgb(16 24 40 / 8%);

  color: #344054;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
}

.story-audio-player__play {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 42px;
  height: 42px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: #1d2939;
  color: #ffffff;

  font-size: 1rem;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.story-audio-player__play:hover {
  background: #344054;
  transform: scale(1.04);
}

.story-audio-player__play:active {
  transform: scale(0.96);
}

.story-audio-player__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-audio-player__title {
  color: #344054;
  font-size: 0.95rem;
  font-weight: 600;
}

.story-audio-player__status {
  color: #667085;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  position: absolute;
}

.story-audio-player__speed {
  min-width: 72px;
  height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background-color: #ffffff;
  color: #344054;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.story-audio-player__speed:hover {
  border-color: #98a2b3;
}

.story-audio-player__speed:focus {
  border-color: #98a2b3;
  box-shadow: 0 0 0 3px rgb(16 24 40 / 8%);
}

.story-audio-player__progress-wrapper {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.story-audio-player__progress {
  width: 100%;
  height: 5px;
  margin: 0;
  appearance: none;
  background: #eaecf0;
  border-radius: 999px;
  cursor: pointer;
}

.story-audio-player__progress::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: #1d2939;
  cursor: pointer;
}

.story-audio-player__progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #1d2939;
  cursor: pointer;
}

.story-audio-player__times {
  display: flex;
  justify-content: space-between;
}

.story-audio-player__skip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.story-audio-player__skip:hover {
  background: #f2f4f7;
  color: #344054;
}

.story-audio-player__skip-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.story-audio-player__skip-value {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

/* =========================================================
   Story Text
========================================================= */

.story-detail__content {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.story-detail__content p {
  margin: 0 0 24px;
  color: #344054;
  font-size: 1.08rem;
  line-height: 1.85;
}

.story-detail__content p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Story Loading
========================================================= */

.story-loading {
  padding: 80px 20px;
  color: #667085;
  text-align: center;
}

/* =========================================================
   Story Detail Header Fix
========================================================= */

.story-detail__header {
  display: block;
  width: 100%;
  margin-bottom: 32px;
  text-align: center;
}

.story-detail__header .story-detail__level {
  display: inline-flex;
  margin-bottom: 16px;
}

.story-detail__header .story-detail__title {
  display: block;
  width: 100%;
}

.story-detail__header .story-detail__excerpt {
  display: block;
  width: 100%;
}

.story-detail__header .story-detail__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

/* Back button */

.story-detail__back {
  appearance: none;
  -webkit-appearance: none;

  display: inline-flex;
  align-items: center;

  margin: 0 0 36px;
  padding: 0;

  border: 0;
  background: transparent;

  color: #475467;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;

  cursor: pointer;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.story-detail__back:hover {
  color: #1570ef;
  transform: translateX(-2px);
}

/* ========================================
   Feedback Modal Overlay
======================================== */

.opinion-modal {
  position: fixed;

  inset: 0;

  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(15, 23, 42, 0.45);

  box-sizing: border-box;
}

.opinion-modal.hidden {
  display: none;
}

/* ========================================
   Feedback Modal
======================================== */

.feedback-modal__content {
  width: min(100%, 620px);
  max-height: min(760px, calc(100vh - 40px));

  padding: 24px;

  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 16px;

  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.18),
    0 4px 12px rgba(15, 23, 42, 0.08);

  overflow: hidden;

  display: flex;
  flex-direction: column;
}

/* ========================================
   Feedback Modal Header
======================================== */

.feedback-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 16px;

  padding-bottom: 16px;

  border-bottom: 1px solid #e5e7eb;
}

.feedback-modal__header h2 {
  margin: 0;

  color: #111827;

  font-size: 1.35rem;
  font-weight: 700;
}

.feedback-modal__header p {
  margin: 5px 0 0;

  color: #6b7280;

  font-size: 0.85rem;
  line-height: 1.5;
}

.feedback-modal__close {
  width: 36px;
  height: 36px;

  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  color: #6b7280;
  background: #f8fafc;

  border: 1px solid #e5e7eb;
  border-radius: 10px;

  font-size: 1rem;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.feedback-modal__close:hover {
  color: #111827;

  background: #f1f5f9;

  border-color: #d1d5db;

  transform: translateY(-1px);
}

/* ========================================
   Feedback Form
======================================== */

.feedback-form {
  padding: 18px 0;

  border-bottom: 1px solid #e5e7eb;
}

.feedback-form__field {
  display: flex;
  flex-direction: column;

  gap: 7px;
}

.feedback-form__field label {
  color: #374151;

  font-size: 0.85rem;
  font-weight: 600;
}

.feedback-form__field textarea {
  width: 100%;
  min-height: 100px;

  padding: 12px 13px;

  box-sizing: border-box;

  color: #111827;
  background: #f8fafc;

  border: 1px solid #d1d5db;
  border-radius: 10px;

  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;

  resize: vertical;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.feedback-form__field textarea:focus {
  outline: none;

  background: #ffffff;

  border-color: #009dc5;

  box-shadow: 0 0 0 3px rgba(0, 157, 197, 0.1);
}

.feedback-form__field textarea::placeholder {
  color: #9ca3af;
}

.feedback-form__footer {
  display: flex;
  justify-content: flex-end;

  color: #9ca3af;

  font-size: 0.75rem;
}

/* ========================================
   Identity Selection
======================================== */

.opinion-form__identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 12px 20px;

  margin: 18px 0 18px;
  padding: 0;

  border: 0;
}

.opinion-form__identity legend {
  width: 100%;

  margin-bottom: 2px;

  color: #374151;

  font-size: 0.85rem;
  font-weight: 700;
}

.opinion-form__identity-option {
  width: 45%;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;

  gap: 8px;

  padding: 9px 13px;

  color: #374151;
  background: #f9fafb;

  border: 1px solid #e5e7eb;
  border-radius: 10px;

  font-size: 0.9rem;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.opinion-form__identity-option:hover {
  background: #f3f4f6;
}

.opinion-form__identity-option input {
  margin: 0;
  width: 10% !important;

  accent-color: #6366f1;
}

.opinion-form__identity-option span {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}

/* ========================================
   Feedback Submit
======================================== */

.feedback-form__submit {
  width: 100%;

  min-height: 44px;

  padding: 10px 16px;

  color: #ffffff;
  background: #1570ef;

  border: 0;
  border-radius: 10px;

  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.feedback-form__submit:hover:not(:disabled) {
  background: #175cd3;

  transform: translateY(-1px);
}

.feedback-form__submit:disabled {
  cursor: not-allowed;

  opacity: 0.6;
}

/* ========================================
   Community Feedback
======================================== */

.feedback-modal__discussion {
  min-height: 0;

  padding-top: 18px;

  display: flex;
  flex-direction: column;
}

.feedback-modal__discussion-header {
  margin-bottom: 12px;
}

.feedback-modal__discussion-header h3 {
  margin: 0;

  color: #374151;

  font-size: 0.95rem;
  font-weight: 700;
}

.feedback-list {
  max-height: 300px;

  padding-right: 4px;

  overflow-y: auto;

  scrollbar-width: thin;
}

.feedback-list__loading {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  min-height: 100px;

  color: #9ca3af;

  font-size: 0.85rem;
}

/* ========================================
   Feedback Empty State
======================================== */

.feedback-list__empty {
  min-height: 150px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 24px 16px;

  text-align: center;

  background: #f8fafc;

  border: 1px dashed #dbe4ea;
  border-radius: 12px;
}

.feedback-list__empty-icon {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 10px;

  background: #f0f9fc;

  border: 1px solid #d7eef5;
  border-radius: 50%;

  font-size: 1.3rem;
}

.feedback-list__empty p {
  margin: 0;

  color: #374151;

  font-size: 0.9rem;
  font-weight: 700;
}

.feedback-list__empty span {
  margin-top: 4px;

  color: #9ca3af;

  font-size: 0.78rem;
  line-height: 1.5;
}

/* ========================================
   Feedback Item
======================================== */

.feedback-item {
  display: flex;
  align-items: flex-start;

  gap: 10px;

  padding: 11px 12px;

  margin-bottom: 8px;

  background: #f8fafc;

  border: 1px solid #eef2f7;
  border-radius: 12px;
}

.feedback-item:last-child {
  margin-bottom: 0;
}

.feedback-item__avatar {
  width: 32px;
  height: 32px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 50%;

  font-size: 1rem;
}

.feedback-item__content {
  min-width: 0;

  flex: 1;
}

.feedback-item__header {
  display: flex;
  align-items: center;

  gap: 8px;

  min-width: 0;
}

.feedback-item__username {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-item__time {
  margin-left: auto;

  flex-shrink: 0;
}

.feedback-item__menu {
  flex-shrink: 0;
}

.feedback-item__username {
  color: #374151;

  font-size: 0.8rem;
  font-weight: 700;
}

.feedback-item__time {
  flex-shrink: 0;

  color: #9ca3af;

  font-size: 0.7rem;
}

.feedback-item__text {
  margin: 4px 0 0;

  color: #4b5563;

  font-size: 0.82rem;
  line-height: 1.5;

  overflow-wrap: anywhere;
}

/* ========================================
   Feedback Actions
======================================== */

.feedback-item {
  position: relative;
}

.feedback-item__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 28px;
  height: 28px;

  margin: -2px -4px -2px 0;
  padding: 0;

  border: 0;
  border-radius: 6px;

  background: transparent;
  color: #667085;

  font-size: 1.15rem;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.feedback-item__menu:hover {
  background: #eef2f6;
  color: #101828;
}

.feedback-item__actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  margin-left: auto;
  flex-shrink: 0;
}

.feedback-item__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  padding: 0;

  border: 0;
  border-radius: 6px;

  background: transparent;

  font-size: 0.9rem;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.feedback-item__actions button:hover {
  background: #f2f4f7;
  transform: translateY(-1px);
}

.feedback-item__edit-textarea {
  width: 100%;
  min-height: 90px;
  padding: 10px 12px;

  border: 1px solid #d0d5dd;
  border-radius: 8px;

  font: inherit;
  line-height: 1.5;

  resize: vertical;
  box-sizing: border-box;
}

.feedback-item__edit-textarea:focus {
  outline: none;
  border-color: #1570ef;
  box-shadow: 0 0 0 3px rgba(21, 112, 239, 0.1);
}

.feedback-item__edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.feedback-item__edit-actions button {
  padding: 6px 12px;

  border: 1px solid #d0d5dd;
  border-radius: 6px;

  background: #ffffff;
  color: #344054;

  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;

  cursor: pointer;
}

.feedback-item__edit-actions button:last-child {
  border-color: #1570ef;
  background: #1570ef;
  color: #ffffff;
}

.feedback-item__edit-actions button:hover {
  opacity: 0.9;
}

.feedback-item__edit-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.delete-feedback-modal__content {
  width: min(420px, calc(100% - 32px));
  padding: 24px;

  background: #ffffff;
  border-radius: 12px;

  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.18);

  box-sizing: border-box;
}

.delete-feedback-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.delete-feedback-modal__header h2 {
  margin: 0;

  color: #101828;
  font-size: 1.25rem;
  font-weight: 700;
}

.delete-feedback-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  padding: 0;
  border: 0;
  border-radius: 6px;

  background: transparent;
  color: #667085;

  font-size: 1rem;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.delete-feedback-modal__close:hover {
  background: #f2f4f7;
  color: #101828;
}

.delete-feedback-modal__message {
  margin: 16px 0 24px;

  color: #475467;
  font-size: 0.95rem;
  line-height: 1.5;
}

.delete-feedback-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.delete-feedback-modal__actions button {
  padding: 9px 16px;

  border-radius: 8px;

  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.delete-feedback-modal__cancel {
  border: 1px solid #d0d5dd;
  background: #ffffff;
  color: #344054;
}

.delete-feedback-modal__cancel:hover {
  background: #f9fafb;
}

.delete-feedback-modal__delete {
  border: 1px solid #d92d20;
  background: #d92d20;
  color: #ffffff;
}

.delete-feedback-modal__delete:hover {
  background: #b42318;
}

.delete-feedback-modal__delete:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================================================
   Responsive
========================================================= */

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

  .stories__hero {
    gap: 40px;
  }
}

/* ========================================
   Mobile
======================================== */

@media (max-width: 700px) {
  .feedback-modal__content {
    width: calc(100% - 20px);

    max-height: calc(100vh - 20px);

    padding: 18px;

    border-radius: 15px;
  }

  .feedback-modal__header h2 {
    font-size: 1.15rem;
  }

  .feedback-modal__header p {
    font-size: 0.78rem;
  }

  .feedback-list {
    max-height: 260px;
  }

  .feedback-item {
    padding: 10px;

    gap: 8px;
  }

  .feedback-item__avatar {
    width: 30px;
    height: 30px;
  }

  .opinion-form__identity {
    flex-direction: column;
    align-items: stretch;
  }

  .opinion-form__identity-option {
    width: 100%;
  }

  .stories-page {
    padding-block: 40px 60px;
  }

  .stories__hero {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }

  .stories__hero h1 {
    font-size: 2.8rem;
  }

  .stories__hero p {
    font-size: 1rem;
  }

  .stories__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .story-detail__title {
    font-size: 2.7rem;
  }

  .story-detail__excerpt {
    font-size: 1rem;
  }

  .story-detail__meta {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .story-detail__image-wrapper {
    margin-bottom: 32px;
    border-radius: 14px;
  }

  .story-detail__content p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .story-audio-player__inner {
    flex-wrap: wrap;
  }

  .story-audio-player__progress-wrapper {
    flex: 0 0 100%;
    order: 10;
    width: 100%;
  }

  .story-audio-player__progress {
    height: 8px;
  }
}

@media (max-width: 600px) {
  .stories__filter {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .stories__filter label {
    text-align: left;
  }

  .stories__filter select {
    width: 100%;
    min-height: 44px;
    padding: 10px 40px 10px 14px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .stories .container {
    width: calc(100% - 24px);
  }

  .story-card__content {
    padding: 18px 16px 16px;
  }

  .story-card__footer {
    align-items: flex-end;
  }

  .story-card__stats {
    gap: 12px;
  }

  .story-card__read-button {
    padding: 9px 12px;
  }

  .story-detail__title {
    font-size: 2.35rem;
  }

  .story-detail__back {
    margin-bottom: 28px;
  }
}
