/* ==========================================================================
   小片单 (Movie List) — Warm Cinema Atmosphere v2
   ========================================================================== */

/* ---- Hero 顶部 — 深色电影院氛围 ---- */
.mv-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 36px 28px 32px;
  min-height: 120px;
  touch-action: pan-y;
}
.mv-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Banner 随机海报拼贴 */
.mv-hero-posters {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  display: flex;
  gap: 6px;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.25) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.25) 100%);
}
.mv-hero-poster-item {
  flex-shrink: 0;
  width: 60px;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(0.5px) saturate(0.7);
  animation: mv-hero-poster-fadein 0.8s ease forwards;
}
@keyframes mv-hero-poster-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 0.35; transform: translateY(0); }
}
/* 胶片条装饰 */
.mv-film-strip {
  position: absolute;
  width: 32px;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(212,175,55,0.10) 0px,
    rgba(212,175,55,0.10) 10px,
    transparent 10px,
    transparent 18px
  );
  border-left: 1.5px solid rgba(212,175,55,0.12);
  border-right: 1.5px solid rgba(212,175,55,0.12);
}
.mv-strip-1 { left: 8px; top: 0; opacity: 0.7; }
.mv-strip-2 { right: 8px; top: 0; opacity: 0.45; }
.mv-hero-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  width: 180%;
  height: 180%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.10) 0%, transparent 55%);
}
.mv-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}
.mv-hero-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d4af37, #c49b2a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(212,175,55,0.35);
  flex-shrink: 0;
}
.mv-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f0e6d3;
  margin: 0;
  letter-spacing: 0.5px;
}
.mv-hero-sub {
  font-size: 0.82rem;
  color: rgba(240,230,211,0.6);
  margin: 4px 0 0;
}

/* ---- Tabs ---- */
.mv-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.mv-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}
.mv-tab:hover { color: var(--text); background: rgba(212,175,55,0.06); }
.mv-tab.active {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #f0e6d3;
  box-shadow: 0 4px 14px rgba(26,26,46,0.35);
}
.mv-tab-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 8px;
  background: rgba(0,0,0,0.06);
  color: inherit;
  min-width: 18px;
  text-align: center;
}
.mv-tab.active .mv-tab-count {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

/* ---- Panel Header ---- */
.mv-panel-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.mv-add-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #f0e6d3;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 12px rgba(26,26,46,0.30);
  font-family: inherit;
}
.mv-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,26,46,0.45);
}

/* ---- 头像通用 ---- */
.mv-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.mv-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  color: #d4af37;
  font-size: 0.62rem;
  font-weight: 700;
}

/* ---- 看过的 Grid ---- */
.mv-watched-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* ---- 搜索类型切换 ---- */
.mv-search-type-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 8px;
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
  padding: 3px;
}
.mv-search-type-tab {
  flex: 1;
  padding: 6px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}
.mv-search-type-tab.active {
  background: var(--card-bg);
  color: #d4af37;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.mv-search-type-tab:hover:not(.active) {
  color: var(--text);
}

/* ---- TMDB 搜索下拉 ---- */
.mv-search-wrap {
  position: relative;
}
.mv-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  max-height: 480px;
  overflow-y: auto;
  border: 1.5px solid var(--border);
  margin-top: 4px;
}
.mv-search-loading, .mv-search-empty {
  padding: 16px 18px;
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
}
.mv-search-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  align-items: center;
}
.mv-search-item:hover {
  background: rgba(212,175,55,0.06);
}
.mv-search-item + .mv-search-item {
  border-top: 1px solid rgba(0,0,0,0.04);
}
.mv-search-poster {
  width: 48px;
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}
.mv-search-no-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-light);
}
.mv-search-item-info {
  flex: 1;
  min-width: 0;
}
.mv-search-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.mv-search-orig {
  font-size: 0.76rem;
  color: var(--text-light);
  font-weight: 400;
}
.mv-search-item-meta {
  font-size: 0.74rem;
  color: var(--text-light);
  margin-top: 3px;
}

/* ---- TMDB 选中预览 ---- */
.mv-tmdb-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26,26,46,0.06), rgba(15,52,96,0.06));
  border: 1.5px solid rgba(212,175,55,0.15);
  margin-top: 10px;
  position: relative;
}
.mv-tmdb-poster-sm {
  width: 38px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.mv-tmdb-meta {
  flex: 1;
  min-width: 0;
}
.mv-tmdb-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mv-tmdb-info {
  font-size: 0.74rem;
  color: var(--text-light);
  margin-top: 2px;
}
.mv-tmdb-clear {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  color: var(--text-light);
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.mv-tmdb-clear:hover {
  background: rgba(239,71,111,0.1);
  color: #ef476f;
}

/* 电影卡片 v2 — 精美设计 */
.mv-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
}
.mv-card.mv-card-has-poster {
  flex-direction: row;
  min-height: 0;
}
.mv-card-poster {
  width: 90px;
  min-height: 130px;
  flex-shrink: 0;
  overflow: hidden;
}
.mv-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mv-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.mv-card:not(.mv-card-has-poster) .mv-card-body {
  /* 无海报时和原来一样 */
}
.mv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #c49b2a);
  opacity: 0;
  transition: opacity 0.3s;
}
.mv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  border-color: rgba(212,175,55,0.15);
}
.mv-card:hover::before { opacity: 1; }

.mv-card-top {
  padding: 14px 14px 8px;
}
.mv-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mv-card-meta {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mv-card-sub-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.mv-card-date {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.3px;
}
.mv-card-tmdb-rating {
  font-size: 0.68rem;
  color: #f59e0b;
  font-weight: 600;
}
.mv-card-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.12), rgba(26,26,46,0.1), transparent);
  margin: 0 16px;
}
.mv-card-reviews {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 16px 14px;
}
.mv-card-review-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}
.mv-card-lazy {
  font-size: 0.68rem;
  color: var(--text-light);
  opacity: 0.55;
  font-style: italic;
}
.mv-card-stars {
  color: var(--text-light);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.mv-unrated {
  color: var(--text-light);
  font-size: 0.72rem;
  opacity: 0.5;
}
/* 小星星 — 卡片内 */
.mv-star-sm {
  color: var(--border, #ddd);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}
.mv-star-sm.lit { color: #f59e0b; }

/* ---- 想看的列表 v2 ---- */
.mv-wishlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mv-wish-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid transparent;
}
.mv-wish-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: rgba(212,175,55,0.12);
  transform: translateX(2px);
}
.mv-wish-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26,26,46,0.08), rgba(15,52,96,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f3460;
  flex-shrink: 0;
}
.mv-wish-info {
  flex: 1;
  min-width: 0;
}
.mv-wish-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.mv-wish-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 2px;
}
/* 想看列表 — 评分徽章 */
.mv-wish-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding: 1px 8px 1px 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  line-height: 1.5;
}
.mv-wish-rating-star {
  font-size: 0.68rem;
}
/* 高分（8+）：翡翠绿 */
.mv-rating-high {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.mv-rating-high .mv-wish-rating-star { color: #10b981; }
/* 中分（6-8）：琥珀橙 */
.mv-rating-mid {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}
.mv-rating-mid .mv-wish-rating-star { color: #f59e0b; }
/* 低分（<6）：珊瑚红 */
.mv-rating-low {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}
.mv-rating-low .mv-wish-rating-star { color: #ef4444; }
.mv-wish-poster {
  width: 36px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.mv-wish-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.mv-wish-done {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: transparent;
}
.mv-wish-done:hover {
  border-color: #10b981;
  background: rgba(16,185,129,0.08);
  color: #10b981;
}
.mv-wish-del {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  opacity: 0;
}
.mv-wish-item:hover .mv-wish-del { opacity: 1; }
.mv-wish-del:hover {
  background: rgba(239,71,111,0.08);
  color: #ef476f;
}

/* ---- 空状态 ---- */
.mv-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-light);
}
.mv-empty-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}
.mv-empty-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.mv-empty-sub {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ---- 弹窗 ---- */
.mv-modal-overlay {
  z-index: 1200;
  overscroll-behavior: contain;
}
.mv-modal {
  background: var(--card-bg);
  border-radius: 24px;
  width: clamp(320px, 66vw, 94vw);
  min-height: 60vh;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}
.mv-modal-sm { width: min(380px, 90vw); }
.mv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 10px;
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 2;
}
.mv-modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.mv-modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all 0.2s;
}
.mv-modal-close:hover { background: rgba(0,0,0,0.06); color: var(--text); }
.mv-modal-body { padding: 8px 24px 16px; flex: 1; }
.mv-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 24px 20px;
  position: sticky;
  bottom: 0;
  background: var(--card-bg);
  z-index: 2;
}
.mv-modal-cancel {
  padding: 9px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.mv-modal-cancel:hover { border-color: var(--text-light); color: var(--text); }
.mv-modal-save {
  padding: 9px 24px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #f0e6d3;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 3px 12px rgba(26,26,46,0.30);
  font-family: inherit;
}
.mv-modal-save:hover {
  box-shadow: 0 6px 20px rgba(26,26,46,0.45);
  transform: translateY(-1px);
}

/* ---- 表单 ---- */
.mv-form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
  margin-top: 16px;
}
.mv-form-label:first-child { margin-top: 0; }
.mv-form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}
.mv-form-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}
/* 日期选择器美化 */
.mv-form-input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b7198' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.mv-form-input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 36px;
  height: 100%;
  position: absolute;
  right: 0;
  cursor: pointer;
}
.mv-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 80px;
  max-height: 200px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-sizing: border-box;
  line-height: 1.6;
}
.mv-form-textarea:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

/* ---- 影评区块 ---- */
.mv-review-section {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mv-review-block {
  background: var(--bg);
  border-radius: 14px;
  padding: 14px 16px;
}
.mv-review-who {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.mv-star-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.mv-star {
  font-size: 1.5rem;
  color: var(--border, #ddd);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  user-select: none;
  line-height: 1;
}
.mv-star:hover { transform: scale(1.2); color: #fbbf24; }
.mv-star.lit { color: #f59e0b; text-shadow: 0 2px 8px rgba(245,158,11,0.3); }

/* ---- 详情弹窗 v2 ---- */
.mv-detail-modal { width: min(480px, 92vw); }
.mv-detail-action-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all 0.2s;
}
.mv-detail-action-btn:hover { background: rgba(0,0,0,0.06); color: var(--text); }
.mv-detail-del-btn:hover { background: rgba(239,71,111,0.08); color: #ef476f; }
.mv-detail-body { padding: 4px 24px 24px; }

/* 详情弹窗电影信息头部 */
.mv-detail-movie-info {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26,26,46,0.04), rgba(15,52,96,0.04));
}
.mv-detail-poster {
  width: 90px;
  height: 130px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.mv-detail-meta-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.mv-detail-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-mid);
}
.mv-detail-meta-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  min-width: 32px;
}
.mv-detail-tmdb-score {
  color: #f59e0b;
  font-weight: 700;
}

.mv-detail-date {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.mv-detail-review-block {
  background: var(--bg);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.mv-detail-reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.mv-detail-reviewer .mv-avatar {
  border: 2px solid rgba(212,175,55,0.2);
  box-shadow: 0 2px 8px rgba(212,175,55,0.12);
}
.mv-detail-reviewer-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.mv-detail-stars {
  margin-bottom: 8px;
  font-size: 0.9rem;
  letter-spacing: 2px;
}
.mv-star-detail {
  color: var(--border, #ddd);
  font-size: 0.9rem;
}
.mv-star-detail.lit { color: #f59e0b; }

.mv-detail-comment {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
  white-space: pre-wrap;
}
.mv-detail-no-comment {
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
}
.mv-detail-review-time {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 8px;
  text-align: right;
  opacity: 0.7;
}

/* ---- 想看详情弹窗 ---- */

/* backdrop 顶部操作按钮组（编辑+删除+关闭） */
.mv-wd-top-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.mv-wd-action-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  transition: all 0.2s;
}
.mv-wd-action-icon:hover { background: rgba(0,0,0,0.6); color: #fff; }
.mv-wd-action-del:hover { background: rgba(239,71,111,0.7); }

/* 观影日期行 */
.mv-wd-watch-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(26,26,46,0.04), rgba(15,52,96,0.04));
}

/* 海报可点击放大 */
.mv-poster-zoomable {
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mv-poster-zoomable:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* 海报放大 Lightbox */
.mv-poster-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: mv-lb-fadein 0.2s ease;
}
@keyframes mv-lb-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.mv-poster-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  object-fit: contain;
}
.mv-poster-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  transition: all 0.2s;
}
.mv-poster-lightbox-close:hover { background: rgba(255,255,255,0.25); color: #fff; }

.mv-wish-detail-modal {
  width: clamp(320px, 66vw, 94vw);
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  position: relative;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mv-wish-clickable { cursor: pointer; }

/* backdrop 横幅 */
.mv-wd-backdrop {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  background-size: cover;
  background-position: center;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  flex-shrink: 0;
}
.mv-wd-backdrop-loaded {
  background-color: #16213e;
}
.mv-wd-backdrop-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 60%, var(--card-bg) 100%);
}
.mv-wd-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  transition: all 0.2s;
  z-index: 3;
}
/* 在 top-actions flex 容器内时，关闭按钮不需要自己的绝对定位 */
.mv-wd-top-actions .mv-wd-close {
  position: static;
  z-index: auto;
}
.mv-wd-close:hover { background: rgba(0,0,0,0.6); color: #fff; }

/* 主体 */
.mv-wd-body {
  padding: 0 24px 24px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

/* hero 区（海报 + 基础信息） */
.mv-wd-hero {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.mv-wd-poster {
  width: 100px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  border: 2px solid rgba(255,255,255,0.1);
}
.mv-wd-hero-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4px;
}
.mv-wd-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
}
.mv-wd-orig-title {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 6px;
}
.mv-wd-meta-line {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.mv-wd-rating {
  color: #f59e0b;
  font-weight: 700;
}
.mv-wd-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.mv-wd-genre {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(26,26,46,0.08), rgba(15,52,96,0.08));
  color: #0f3460;
}
.mv-wd-location {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* tagline */
.mv-wd-tagline {
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-mid);
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26,26,46,0.04), rgba(15,52,96,0.04));
  line-height: 1.5;
}

/* 各区段 */
.mv-wd-section {
  margin-bottom: 14px;
}
.mv-wd-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.mv-wd-overview {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* 主创 */
.mv-wd-crew-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 4px;
}
.mv-wd-crew-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  min-width: 32px;
}

/* 主演 grid */
.mv-wd-cast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mv-wd-cast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mv-wd-cast-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.mv-cast-zoomable {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}
.mv-cast-zoomable:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.mv-wd-cast-no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26,26,46,0.10), rgba(15,52,96,0.10));
  color: #0f3460;
  font-size: 0.9rem;
  font-weight: 700;
}
.mv-wd-cast-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
}
.mv-wd-cast-role {
  font-size: 0.65rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.2;
}

/* 操作栏 */
.mv-wd-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border, rgba(0,0,0,0.06));
}
.mv-wd-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
.mv-wd-btn-primary {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #f0e6d3;
  box-shadow: 0 3px 12px rgba(26,26,46,0.30);
}
.mv-wd-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(26,26,46,0.45);
  transform: translateY(-1px);
}
.mv-wd-btn-danger {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--border);
}
.mv-wd-btn-danger:hover {
  border-color: #ef476f;
  color: #ef476f;
  background: rgba(239,71,111,0.04);
}

/* 降级错误提示 */
.mv-wd-error {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  padding: 16px;
  margin: 12px 0;
  border-radius: 12px;
  background: rgba(239,71,111,0.04);
}

/* Skeleton loading */
.mv-wd-skeleton { padding: 0; }
.mv-wd-sk-loading-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(15,52,96,0.06));
  font-size: 0.8rem;
  color: var(--text-mid);
  font-weight: 500;
}
.mv-wd-sk-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(212,175,55,0.2);
  border-top-color: #d4af37;
  border-radius: 50%;
  animation: mv-sk-spin 0.8s linear infinite;
}
@keyframes mv-sk-spin {
  to { transform: rotate(360deg); }
}
.mv-wd-sk-header { display: flex; gap: 14px; }
.mv-wd-sk-poster {
  width: 100px; height: 150px;
  border-radius: 12px;
  flex-shrink: 0;
}
.mv-wd-sk-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4px;
}
.mv-wd-sk-line { border-radius: 6px; }
.mv-wd-sk-block { width: 100%; }
@keyframes sk-pulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.3; }
}
.sk-pulse {
  background: var(--text-light, #999);
  animation: sk-pulse 1.5s ease-in-out infinite;
}

/* ---- 响应式 ---- */
@media (max-width: 680px) {
  .mv-hero { padding: 24px 18px 22px; border-radius: 16px; }
  .mv-hero-icon { width: 44px; height: 44px; border-radius: 12px; }
  .mv-hero-icon svg { width: 22px; height: 22px; }
  .mv-hero-title { font-size: 1.15rem; }
  .mv-watched-grid { grid-template-columns: 1fr; gap: 10px; }
  .mv-card-poster { width: 80px; min-height: 115px; }
  .mv-card-top { padding: 12px 12px 6px; }
  .mv-card-divider { margin: 0 12px; }
  .mv-card-reviews { padding: 6px 12px 10px; }
  .mv-modal { border-radius: 18px; width: 94vw; min-height: 55vh; }
  .mv-modal-header { padding: 16px 18px 8px; }
  .mv-modal-body { padding: 6px 18px 12px; flex: 1; }
  .mv-modal-footer { padding: 6px 18px 16px; }
  .mv-wish-item { padding: 12px 14px; border-radius: 12px; }
  .mv-wish-del { opacity: 1; }
  .mv-detail-movie-info { flex-direction: column; align-items: center; text-align: center; }
  .mv-detail-poster { width: 100px; height: 145px; }
  .mv-detail-meta-block { align-items: center; }
  /* 想看/看过详情弹窗移动端适配 */
  .mv-wish-detail-modal { border-radius: 18px; }
  .mv-wd-backdrop { height: 140px; border-radius: 18px 18px 0 0; }
  .mv-wd-body { padding: 0 18px 20px; }
  .mv-wd-poster { width: 80px; height: 120px; }
  .mv-wd-title { font-size: 1.05rem; }
  .mv-wd-cast-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mv-wd-cast-photo { width: 44px; height: 44px; }
  .mv-poster-lightbox img { max-width: 95vw; max-height: 85vh; border-radius: 12px; }
}
