.epic-story-reader {
  box-sizing: border-box;
  width: 100%;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid rgba(91, 57, 28, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, #fffaf2 0%, #fff3df 100%);
  box-shadow: 0 14px 35px rgba(70, 44, 20, 0.10);
  color: #2b1b10;
  font-family: inherit;
}

.epic-story-reader *,
.epic-story-reader *::before,
.epic-story-reader *::after {
  box-sizing: border-box;
}

.epic-story-reader__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.epic-story-reader__eyebrow {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b572a;
}

.epic-story-reader__title {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
  color: #2b1b10;
}

.epic-story-reader__status {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  color: #5a3c22;
}

.epic-story-reader__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.epic-story-reader__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #4b2f19;
}

.epic-story-reader__field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(91, 57, 28, 0.25);
  border-radius: 12px;
  background: #ffffff;
  color: #2b1b10;
  font-size: 14px;
}

.epic-story-reader__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.epic-story-reader__button,
.epic-story-reader__mini-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.epic-story-reader__button {
  padding: 11px 16px;
  background: #6f3f18;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(111, 63, 24, 0.22);
}

.epic-story-reader__button:hover,
.epic-story-reader__mini-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.epic-story-reader__mini-button {
  padding: 8px 12px;
  background: #ffffff;
  color: #6f3f18;
  border: 1px solid rgba(111, 63, 24, 0.16);
}

.epic-story-reader__progress-wrap {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(111, 63, 24, 0.13);
}

.epic-story-reader__progress {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #6f3f18;
  transition: width 0.2s ease;
}

.epic-story-reader__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #7c5c3d;
}

@media (max-width: 900px) {
  .epic-story-reader__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .epic-story-reader {
    padding: 15px;
    border-radius: 15px;
  }

  .epic-story-reader__header {
    flex-direction: column;
  }

  .epic-story-reader__grid {
    grid-template-columns: 1fr;
  }

  .epic-story-reader__button {
    width: 100%;
  }
}
