*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  background: #f7f3eb;
  color: #2c2416;
}

body {
  overscroll-behavior: none;
}

#app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: rgba(247, 243, 235, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(44, 36, 22, 0.08);
}

.header-title {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-back {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: #5a4a32;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(44, 36, 22, 0.08);
}

.main {
  flex: 1;
  padding: 12px 16px 100px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  border: none;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(44, 36, 22, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:active {
  transform: scale(0.98);
}

.card-label {
  font-weight: 600;
}

.card-meta {
  font-size: 13px;
  color: #8a7960;
  margin-top: 4px;
}

.card-arrow {
  color: #c4b59c;
  font-size: 18px;
  flex-shrink: 0;
  margin-left: 12px;
}

.story-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(44, 36, 22, 0.05);
}

.story-item.active {
  background: #fff8ec;
  outline: 2px solid #e8c88a;
}

.story-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f0e8d8;
  color: #7a6548;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.story-item.active .story-num {
  background: #e8c88a;
  color: #fff;
}

.story-title {
  flex: 1;
  font-weight: 500;
}

.story-playing {
  font-size: 12px;
  color: #c49a3a;
  flex-shrink: 0;
}

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(44, 36, 22, 0.08);
  box-shadow: 0 -4px 20px rgba(44, 36, 22, 0.06);
}

.player-info {
  flex: 1;
  min-width: 0;
}

.now-playing {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-status {
  font-size: 12px;
  color: #8a7960;
  margin-top: 2px;
}

.btn-play {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #d4a24e;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(212, 162, 78, 0.35);
}

.btn-play.playing {
  background: #c4923a;
}

.hidden {
  display: none !important;
}

.empty {
  text-align: center;
  color: #8a7960;
  padding: 48px 16px;
  font-size: 14px;
}
