/* Velora app pages — list & play */
.app-page .top-inner { gap: 12px; }
.app-page .brand span { letter-spacing: -0.04em; }

.page-head {
  padding: 28px 0 8px;
}
.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.045em;
}
.page-head p {
  margin: 0;
  color: var(--muted);
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 8px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover, .chip.active {
  color: #fff;
  border-color: rgba(255, 77, 109, 0.45);
  background: var(--accent-soft);
}

.drama-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px 0 32px;
}
.drama-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
  cursor: pointer;
  color: inherit;
}
.drama-item:hover {
  border-color: rgba(255, 77, 109, 0.4);
  transform: translateY(-2px);
}
.drama-item .cover {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #000;
}
.drama-item .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drama-item .cover .badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
}
.drama-item .meta h3 {
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.drama-item .meta .tag {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 600;
}
.drama-item .meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.drama-item .go {
  /* 竖版两列卡片整张可点, 不再需要单独的播放按钮 */
  display: none;
}

/* 搜索栏 */
.search-bar {
  display: flex;
  gap: 8px;
  margin: 12px 0 8px;
}
.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  outline: none;
}
.search-bar input:focus {
  border-color: rgba(255, 77, 109, 0.5);
}
.search-btn {
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
}
.search-btn:hover { filter: brightness(1.08); }

/* 状态提示 */
.list-status {
  margin: 8px 0;
  font-size: 13px;
  color: var(--muted);
}

.empty-hint {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.empty-hint code {
  padding: 2px 6px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  font-size: 12px;
}

.list-footer {
  display: flex;
  justify-content: center;
  padding: 8px 0 40px;
}

/* 分页器 */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.pg-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.pg-btn:hover:not(:disabled):not(.active) {
  border-color: rgba(255, 77, 109, 0.45);
  color: #fff;
  background: var(--accent-soft);
}
.pg-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 77, 109, 0.25);
}
.pg-btn:disabled {
  opacity: .35;
  cursor: default;
}
.pg-dots {
  color: var(--muted);
  padding: 0 2px;
}
.pg-info {
  color: var(--muted);
  font-size: 12px;
  margin-left: 10px;
}

/* Play page */
.play-layout {
  padding: 20px 0 48px;
  display: grid;
  gap: 20px;
}
.ep-hint {
  color: var(--muted);
  font-size: 12px;
  margin: -8px 0 14px;
}
.play-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.play-back:hover { color: var(--ink); }

.player-shell {
  width: min(420px, 100%);
  margin: 0 auto;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 9/16;
  position: relative;
}
.player-shell video,
.player-shell .poster-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.player-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 16px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  pointer-events: none;
}
.player-overlay h1 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.player-overlay p {
  margin: 0;
  color: #d0d0d8;
  font-size: 13px;
}

.play-info {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.play-info h2 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.04em;
}
.play-info .tag {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 10px;
}
.play-info .desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0 auto;
  max-width: 560px;
}

.ep-panel {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}
.ep-panel .ep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ep-panel .ep-head h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.03em;
}
.ep-panel .ep-head span {
  color: var(--muted);
  font-size: 13px;
}
.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
}
.ep-btn {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--ink);
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
}
.ep-btn:hover {
  border-color: rgba(255, 77, 109, 0.45);
}
.ep-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.28);
}

@media (max-width: 1100px) {
  .drama-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .drama-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .drama-item { padding: 8px; border-radius: 14px; }
  .drama-item .meta h3 { font-size: 14px; }
  .drama-item .meta .tag { font-size: 11px; margin-bottom: 4px; }
  .drama-item .meta p { font-size: 12px; }
  .player-shell { width: min(100%, 380px); border-radius: 16px; }
  .pg-info { width: 100%; text-align: center; margin: 6px 0 0; }
}

/* ---------- 20 秒试看引导弹窗 (自定义 dialog, 文案走 i18n) ---------- */
.trial-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 5, 10, 0.72);
  backdrop-filter: blur(6px);
  animation: trialFade 0.2s ease;
}
@keyframes trialFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.trial-box {
  width: min(380px, 100%);
  padding: 30px 26px 24px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: trialPop 0.22s ease;
}
@keyframes trialPop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.trial-icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 14px;
}
.trial-box h3 {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.trial-btns {
  display: flex;
  gap: 10px;
}
.trial-btns button {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.trial-btns button:active { transform: scale(0.97); }
.trial-cancel {
  background: transparent;
  color: var(--muted);
}
.trial-cancel:hover { color: #fff; border-color: rgba(255, 77, 109, 0.4); }
.trial-ok {
  border-color: transparent;
  background: linear-gradient(135deg, #ff4d6d, #ff8a5c);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.3);
}
.trial-ok:hover { filter: brightness(1.08); }
