@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --navy: #061d34;
  --ink: #172b3b;
  --muted: #7f8c98;
  --line: #e7ecee;
  --mint: #4fcbb8;
  --pale-mint: #effaf8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }

.site-header { height: 72px; color: #fff; background: var(--navy); }
.site-nav { width: min(1240px, calc(100% - 48px)); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 48px; }
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { display: block; width: auto; height: 52px; }
.member-header-inner .site-logo img { height: 56px; }
.nav-links { display: flex; height: 100%; align-items: center; gap: 38px; }
.nav-links a, .account-links a { font-size: 15px; font-weight: 600; transition: color .2s ease; }
.nav-links a:hover, .account-links a:hover { color: var(--mint); }
.account-member-link { display: inline-flex; align-items: center; gap: 6px; }
.account-links { display: flex; align-items: center; gap: 14px; margin-left: auto; white-space: nowrap; }
.account-links span { color: #6b8294; }
.account-logout-link { border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; font-size: 15px; font-weight: 600; background: transparent; transition: color .2s ease; }
.account-logout-link:hover { color: var(--mint); }
.nav-toggle { display: none; color: #fff; border: 0; background: transparent; font-size: 24px; }

.hero { min-height: 396px; position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(112deg, #09213a 0%, #134b62 52%, #197c88 100%); }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; opacity: .52; background: radial-gradient(ellipse at 75% 38%, transparent 0 12%, rgba(5, 21, 37, .5) 13% 21%, transparent 22% 27%, rgba(4, 27, 46, .32) 28% 40%, transparent 41%), linear-gradient(90deg, rgba(0, 10, 24, .45), transparent 70%); }
.hero::after { position: absolute; z-index: -1; content: "FILM"; right: 7%; bottom: -82px; color: rgba(255,255,255,.06); font-family: Arial, sans-serif; font-size: clamp(180px, 25vw, 380px); font-weight: 800; letter-spacing: -20px; }
.hero-content { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 86px 0 82px; }
.eyebrow, .section-kicker { margin: 0; color: #82dece; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; }
.hero h1 { max-width: 600px; margin: 12px 0 13px; font-size: clamp(37px, 4vw, 54px); font-weight: 800; line-height: 1.24; letter-spacing: 1px; }
.hero-description { margin: 0; color: #d1e1e7; font-size: 16px; }

/* 首页顶部视频轮播（后台配置启用后生效） */
.hero-carousel { min-height: 560px; }
.hero-carousel .hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-carousel .hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-carousel .hero-slide.is-active { opacity: 1; }
.hero-carousel .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-carousel .hero-content { position: relative; z-index: 2; max-width: 720px; padding-top: 140px; }
.hero-carousel::before { z-index: 1; opacity: .62; background: linear-gradient(90deg, rgba(3, 14, 28, .78) 0%, rgba(3, 14, 28, .46) 42%, rgba(3, 14, 28, .12) 100%); }
.hero-carousel::after { z-index: 1; display: block; opacity: .04; }
.hero-carousel .eyebrow { color: #91e5d8; }
.hero-carousel .hero-description { max-width: 560px; color: #e1edf1; font-size: 17px; line-height: 1.75; }


.search-section { position: relative; z-index: 1; width: min(1080px, calc(100% - 48px)); margin: -31px auto 0; }
.search-box { height: 62px; display: flex; align-items: center; padding: 7px 8px 7px 22px; border-radius: 6px; background: #fff; box-shadow: 0 12px 30px rgba(6, 29, 52, .18); }
.search-box svg { width: 22px; height: 22px; fill: #95a4ab; flex: 0 0 auto; }
.search-box input { min-width: 0; height: 100%; flex: 1; padding: 0 16px; color: var(--ink); border: 0; outline: none; font: inherit; font-size: 15px; }
.search-box input::placeholder { color: #a6b0b7; }
.search-box button { min-width: 90px; height: 46px; color: #fff; cursor: pointer; border: 0; border-radius: 4px; background: #20bda6; font: inherit; font-size: 15px; font-weight: 600; transition: background .2s; }
.search-box button:hover { background: #16a48f; }

.home-content { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 74px; }
.movie-section { padding: 0 0 62px; }
.movie-section + .movie-section { padding-top: 60px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2 { margin: 5px 0 0; color: var(--navy); font-size: 28px; font-weight: 800; }
.more-link { color: #4b6978; font-size: 14px; font-weight: 600; }
.more-link span { padding-left: 5px; color: #20bda6; font-size: 18px; }
.movie-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.movie-card { min-width: 0; }
.movie-poster { display: block; width: 100%; position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 4px; background: #dae8e9; box-shadow: 0 5px 12px rgba(4, 29, 48, .12); }
.movie-poster img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.movie-card:hover img { transform: scale(1.045); }
.poster-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #467080; background: linear-gradient(135deg, #c6e8e3, #ebf2e7); font-size: 24px; font-weight: 800; letter-spacing: 2px; }
.movie-rating { position: absolute; right: 9px; bottom: 9px; padding: 4px 7px; color: #fff; border-radius: 3px; background: rgba(4, 23, 39, .83); font-family: Arial, sans-serif; font-size: 12px; font-weight: bold; }
.play-overlay { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; padding: 0; display: grid; place-items: center; transform: translate(-50%, -50%); cursor: pointer; border: 0; border-radius: 50%; background: rgba(4, 23, 39, .55); box-shadow: 0 4px 14px rgba(4, 23, 39, .35); transition: background .2s; }
.play-triangle { width: 0; height: 0; margin-left: 3px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 15px solid rgba(255, 255, 255, .92); }
.movie-card:hover .play-overlay { background: rgba(32, 189, 166, .78); }
.movie-info h3 { overflow: hidden; margin: 13px 0 5px; color: #132a3c; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.movie-info p, .movie-info time { overflow: hidden; display: block; margin: 0; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.movie-info time { margin-top: 3px; color: #9da8ad; }
.actor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.actor-card { min-width: 0; }
.actor-photo { display: block; width: 100%; position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 4px; background: #dae8e9; box-shadow: 0 5px 12px rgba(4, 29, 48, .12); }
.actor-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.actor-card:hover img { transform: scale(1.045); }
.actor-photo-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #467080; background: linear-gradient(135deg, #c6e8e3, #ebf2e7); font-size: 42px; font-weight: 800; }
.actor-heat { position: absolute; right: 9px; bottom: 9px; padding: 4px 7px; color: #fff; border-radius: 3px; background: rgba(4, 23, 39, .83); font-family: Arial, sans-serif; font-size: 12px; font-weight: bold; }
.actor-info h3 { overflow: hidden; margin: 13px 0 5px; color: #132a3c; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.actor-info p, .actor-info span { overflow: hidden; display: block; margin: 0; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.actor-info span { margin-top: 3px; color: #9da8ad; }
.person-hero { min-height: 340px; color: #fff; background: linear-gradient(112deg, #09213a 0%, #134b62 52%, #197c88 100%); }
.person-hero-inner { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 46px; display: flex; gap: 40px; align-items: flex-end; }
.person-photo-col { flex-shrink: 0; }
.person-photo { width: 220px; aspect-ratio: 2 / 3; display: block; border-radius: 8px; box-shadow: 0 18px 44px rgba(3, 20, 36, .45); object-fit: cover; background: #dae8e9; }
.person-photo-placeholder { display: grid; place-items: center; color: #467080; font-size: 60px; font-weight: 800; background: linear-gradient(135deg, #c6e8e3, #ebf2e7); }
.person-main-col { flex: 1; min-width: 0; }
.person-title { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.person-alias { margin: 8px 0 0; color: #c9e0e6; font-size: 14px; }
.person-meta { margin: 14px 0 18px; color: #d3e1e7; font-size: 15px; }
.person-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.person-stat { padding: 9px 14px; border-radius: 6px; background: rgba(255, 255, 255, .16); font-size: 14px; }
.person-stat strong { display: block; margin-bottom: 3px; color: #82dece; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.person-birthplace { margin: 18px 0 0; color: #d3e1e7; font-size: 14px; }
.person-body { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0 74px; }
.person-body h2 { margin: 0 0 18px; color: var(--navy); font-size: 22px; font-weight: 800; }
.person-bio { margin-bottom: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.person-bio-text { margin: 0; max-width: 860px; color: #3c5361; font-size: 15px; line-height: 1.9; white-space: pre-line; }
.site-footer { padding: 28px 24px; color: #98a8b0; border-top: 1px solid var(--line); background: #fafcfc; font-size: 13px; text-align: center; }

@media (min-width: 900px) { .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .actor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .movie-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .actor-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 767px) { .site-header { height: 62px; } .site-nav { width: calc(100% - 32px); gap: 16px; } .nav-links { position: absolute; top: 62px; left: 0; right: 0; z-index: 3; display: none; height: auto; padding: 16px; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; } .nav-links a { padding: 11px 16px; } .nav-toggle { display: block; margin-left: auto; } .nav-toggle[aria-expanded="true"] + .nav-links { display: flex; } .account-links { margin-left: 0; gap: 8px; } .hero { min-height: 345px; } .hero-carousel { min-height: 460px; } .hero-content { width: calc(100% - 32px); padding: 65px 0; } .hero-description { max-width: 320px; line-height: 1.7; font-size: 14px; } .hero-carousel .hero-content { padding-top: 96px; } .hero-carousel .hero-description { max-width: none; font-size: 14px; line-height: 1.7; } .search-section, .home-content { width: calc(100% - 32px); } .search-box { height: 56px; padding-left: 15px; } .search-box button { min-width: 68px; height: 40px; } .home-content { padding-top: 46px; } .movie-section { padding-bottom: 46px; } .movie-section + .movie-section { padding-top: 45px; } .movie-grid, .actor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } .person-hero-inner { width: calc(100% - 32px); padding: 36px 0 32px; gap: 24px; align-items: flex-start; } .person-photo { width: 128px; } .person-title { font-size: 24px; } .person-body { width: calc(100% - 32px); } }

/* ===== 电影详情页（参考 TMDB 布局） ===== */
.detail-hero { position: relative; min-height: 460px; color: #fff; background: linear-gradient(120deg, #09213a 0%, #134b62 52%, #197c88 100%) center/cover no-repeat; isolation: isolate; }
.detail-hero-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 29, 52, .25) 0%, rgba(6, 29, 52, .62) 55%, #fff 100%); }
.detail-hero-inner { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 44px; display: flex; gap: 40px; align-items: flex-end; }
.detail-poster-col { flex-shrink: 0; }
.detail-poster { width: 220px; aspect-ratio: 2 / 3; display: block; border-radius: 8px; box-shadow: 0 18px 44px rgba(3, 20, 36, .45); object-fit: cover; background: #dae8e9; }
.detail-poster-placeholder { display: grid; place-items: center; color: #467080; font-size: 22px; font-weight: 800; letter-spacing: 2px; background: linear-gradient(135deg, #c6e8e3, #ebf2e7); }
.detail-main-col { flex: 1; min-width: 0; }
.detail-title { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.detail-title-year { color: #c9e0e6; font-weight: 600; }
.detail-meta { margin: 14px 0 22px; color: #d3e1e7; font-size: 15px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; color: #fff; border-radius: 6px; background: rgba(255, 255, 255, .16); font-size: 15px; font-weight: 700; transition: background .2s; }
.detail-btn:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.detail-btn-primary { background: #20bda6; }
.detail-btn-primary:hover { background: #16a48f; }
.detail-btn-disabled { opacity: .6; cursor: not-allowed; }
.detail-tagline { margin: 26px 0 10px; color: #82dece; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; }
.detail-plot { margin: 0; max-width: 720px; color: #e6f0f3; font-size: 15px; line-height: 1.85; }
.detail-body { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 26px 0 70px; display: flex; gap: 48px; align-items: flex-start; }
.detail-side { flex: 0 0 260px; padding: 22px; border-radius: 8px; background: #f6fafb; border: 1px solid var(--line); font-size: 14px; }
.detail-side-item { margin: 0 0 14px; color: var(--ink); line-height: 1.6; }
.detail-side-item strong { display: block; margin-bottom: 3px; color: #4b6978; font-size: 13px; font-weight: 700; }
.detail-keywords { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-keyword { padding: 3px 9px; border-radius: 999px; background: #eaf5f3; color: #2a7a70; font-size: 12px; }
.detail-link { color: #20bda6; }
.detail-link:hover { text-decoration: underline; }
.detail-main { flex: 1; min-width: 0; }
.detail-main h2 { margin: 0 0 18px; color: var(--navy); font-size: 22px; font-weight: 800; }
.detail-main section + section { margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--line); }
.cast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.cast-card { min-width: 0; }
.cast-photo { width: 100%; aspect-ratio: 2 / 3; display: block; border-radius: 6px; object-fit: cover; background: #e2eef0; }
.cast-photo-placeholder { display: grid; place-items: center; color: #467080; font-size: 30px; font-weight: 800; background: linear-gradient(135deg, #c6e8e3, #ebf2e7); }
.cast-name { margin: 9px 0 3px; color: var(--ink); font-size: 15px; font-weight: 700; }
.cast-character { margin: 0; color: var(--muted); font-size: 13px; }
.crew-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; }
.crew-list li { break-inside: avoid; padding: 7px 0; font-size: 14px; }
.crew-role { color: #8a99a1; font-size: 13px; margin-right: 12px; }
.crew-name { color: var(--ink); font-weight: 600; }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; align-items: baseline; gap: 12px; }
.review-author { color: var(--ink); font-weight: 700; }
.review-score { color: #e8a33d; font-size: 13px; font-weight: 700; }
.review-date { margin-left: auto; color: #9da8ad; font-size: 13px; }
.review-content { margin: 8px 0 0; color: #3c5361; font-size: 14px; line-height: 1.75; }
.review-empty { padding: 40px 24px; border: 1px dashed #d6e2e5; border-radius: 8px; background: #fbfdfd; text-align: center; color: var(--muted); }
.review-empty-tip { margin: 6px 0 0; font-size: 13px; color: #a4b1b7; }
.detail-empty { padding: 80px 24px; text-align: center; color: var(--muted); }

@media (max-width: 900px) { .detail-body { flex-direction: column; } .detail-side { flex: 1 1 auto; width: 100%; } .cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .detail-hero-inner { width: calc(100% - 32px); padding: 36px 0 32px; gap: 24px; align-items: flex-start; } .detail-poster { width: 128px; } .detail-title { font-size: 24px; } .detail-body { width: calc(100% - 32px); } .cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .crew-list { columns: 1; } }

/* ===== 登录 / 注册 ===== */
.auth-page { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 48px 24px; background: radial-gradient(ellipse at 18% 12%, rgba(79, 203, 184, .16), transparent 46%), radial-gradient(ellipse at 82% 88%, rgba(25, 124, 136, .28), transparent 52%), linear-gradient(135deg, #061d34 0%, #0d3550 55%, #0f4a5c 100%); }
.auth-card { width: min(480px, 100%); padding: 40px 40px 30px; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgba(2, 12, 24, .38); }
.auth-card-small { width: min(430px, 100%); }
.auth-card h1 { margin: 6px 0 8px; color: var(--ink); font-size: 26px; }
.auth-card .section-kicker { margin: 0; color: var(--mint); font-size: 12px; font-weight: 700; letter-spacing: 3px; }
.auth-intro { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.auth-card label { display: block; margin: 15px 0 7px; color: #34495b; font-size: 13px; font-weight: 600; }
.auth-card input[type="text"], .auth-card input[type="password"], .auth-card input[type="email"], .auth-card input:not([type]) { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #d8e2e6; border-radius: 8px; font-size: 14px; color: var(--ink); background: #fbfdfd; transition: border-color .2s, box-shadow .2s; }
.auth-card input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(79, 203, 184, .18); background: #fff; }
.auth-card input::placeholder { color: #a9b6bd; }
.auth-error { display: block; margin-top: 5px; color: #e05656; font-size: 12px; }
.auth-error ul { margin: 4px 0 0; padding-left: 16px; }
.auth-success { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--pale-mint); color: #17907f; font-size: 13px; font-weight: 600; }
.auth-submit { width: 100%; height: 46px; margin-top: 24px; border: 0; border-radius: 8px; cursor: pointer; color: #04222f; font-size: 15px; font-weight: 700; background: linear-gradient(135deg, #5fd8c6, #2fb3a3); transition: transform .15s, box-shadow .2s; }
.auth-submit:hover { box-shadow: 0 10px 22px rgba(47, 179, 163, .35); transform: translateY(-1px); }
.auth-switch { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.auth-switch a { color: #129b8a; font-weight: 600; }
.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-code { display: grid; place-items: center; width: 132px; height: 44px; border-radius: 8px; color: #fff; font-size: 21px; font-weight: 800; letter-spacing: 7px; text-indent: 7px; background: linear-gradient(120deg, #134b62, #197c88 55%, #2fa896); user-select: none; }
.check-row { display: flex !important; align-items: center; gap: 8px; margin-top: 16px !important; font-weight: 500 !important; }
.check-row input { width: 16px; height: 16px; accent-color: var(--mint); }
.check-row a { color: #129b8a; font-weight: 600; }

/* ===== 用户中心 ===== */
.member-body { min-height: 100vh; background: #eef4f6; }
.member-header { height: 72px; color: #fff; background: var(--navy); }
.member-header-inner { width: min(1240px, calc(100% - 48px)); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 40px; }
.member-header-inner .site-logo { flex-shrink: 0; }
.member-header-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.member-header-links a, .member-header-links span { color: #cfe3ea; font-size: 14px; font-weight: 600; }
.member-header-links a:hover { color: var(--mint); }
.member-logout-btn { border: 0; cursor: pointer; padding: 7px 14px; border-radius: 7px; color: #04222f; font-size: 13px; font-weight: 700; background: var(--mint); }
.member-wrap { display: flex; width: min(1240px, calc(100% - 48px)); margin: 32px auto; gap: 24px; align-items: flex-start; }
.member-side { width: 228px; flex-shrink: 0; padding: 22px 12px; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(6, 29, 52, .06); }
.member-side-user { display: flex; align-items: center; gap: 10px; padding: 0 10px 16px; border-bottom: 1px solid var(--line); }
.member-side-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 800; background: linear-gradient(135deg, #5fd8c6, #197c88); flex-shrink: 0; }
.member-side-name { color: var(--ink); font-size: 14px; font-weight: 700; word-break: break-all; }
.member-side-group { margin: 20px 12px 6px; color: #9aa9b1; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.member-side a { display: block; padding: 10px 12px; border-radius: 8px; color: #3c5361; font-size: 14px; font-weight: 600; transition: background .15s, color .15s; }
.member-side a:hover { background: var(--pale-mint); color: #129b8a; }
.member-side a.active { background: var(--pale-mint); color: #129b8a; }
.member-main { flex: 1; min-width: 0; padding: 30px 34px 36px; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(6, 29, 52, .06); }
.member-main h1 { margin: 4px 0 6px; color: var(--ink); font-size: 24px; }
.member-kicker { color: var(--mint); font-size: 12px; letter-spacing: 3px; font-weight: 700; }
.member-desc { margin: 0; color: var(--muted); font-size: 14px; }
.member-form { margin-top: 26px; max-width: 560px; }
.member-form label { display: block; margin: 16px 0 7px; color: #34495b; font-size: 13px; font-weight: 600; }
.member-form input[type="text"], .member-form input[type="email"], .member-form input[type="password"], .member-form input[type="date"], .member-form input:not([type]), .member-form select { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #d8e2e6; border-radius: 8px; font-size: 14px; color: var(--ink); background: #fbfdfd; transition: border-color .2s, box-shadow .2s; }
.member-form input:focus, .member-form select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(79, 203, 184, .18); background: #fff; }
.member-form .member-hint { color: #a4b1b7; font-size: 12px; }
.member-btn { height: 44px; margin-top: 26px; padding: 0 34px; border: 0; border-radius: 8px; cursor: pointer; color: #04222f; font-size: 14px; font-weight: 700; background: linear-gradient(135deg, #5fd8c6, #2fb3a3); transition: transform .15s, box-shadow .2s; }
.member-btn:hover { box-shadow: 0 8px 18px rgba(47, 179, 163, .32); transform: translateY(-1px); }
.member-success { margin-top: 18px; padding: 10px 12px; border-radius: 8px; background: var(--pale-mint); color: #17907f; font-size: 13px; font-weight: 600; }
.member-error { margin-top: 5px; color: #e05656; font-size: 12px; }
.avatar-row { display: flex; align-items: center; gap: 18px; }
.avatar-row img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, #5fd8c6, #197c88); }
.avatar-upload { position: relative; }
.avatar-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.avatar-upload-btn { display: inline-block; padding: 8px 16px; border-radius: 7px; color: #129b8a; font-size: 13px; font-weight: 700; background: var(--pale-mint); cursor: pointer; }
.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.import-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.import-option { position: relative; display: block; padding: 22px 18px; border: 1px solid #d8e2e6; border-radius: 12px; cursor: pointer; background: #fbfdfd; transition: border-color .2s, box-shadow .2s; }
.import-option:hover { border-color: var(--mint); box-shadow: 0 6px 16px rgba(79, 203, 184, .16); }
.import-option input { position: absolute; opacity: 0; }
.import-option.selected { border-color: var(--mint); background: var(--pale-mint); }
.import-option strong { display: block; color: var(--ink); font-size: 15px; }
.import-option span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.import-type-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.import-type-row label { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid #d8e2e6; border-radius: 20px; cursor: pointer; font-size: 13px; font-weight: 600; color: #3c5361; background: #fbfdfd; }
.import-type-row label:has(input:checked) { border-color: var(--mint); color: #129b8a; background: var(--pale-mint); }
.import-file-box { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 18px; border: 1px dashed #c4d6db; border-radius: 10px; background: #fbfdfd; }
.import-file-box .member-btn { margin-top: 0; }
.import-note { margin-top: 18px; padding: 12px 14px; border-radius: 8px; background: #fff8e9; color: #8a6d2f; font-size: 12px; line-height: 1.7; }
.share-cards { display: grid; gap: 14px; margin-top: 24px; max-width: 560px; }
.share-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid #d8e2e6; border-radius: 12px; background: #fbfdfd; }
.share-card strong { display: block; color: var(--ink); font-size: 15px; }
.share-card span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.share-switch { position: relative; margin-left: auto; width: 46px; height: 26px; flex-shrink: 0; }
.share-switch input { position: absolute; opacity: 0; }
.share-switch i { position: absolute; inset: 0; border-radius: 13px; background: #d5e0e4; transition: background .2s; cursor: pointer; }
.share-switch i::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; content: ""; background: #fff; box-shadow: 0 2px 5px rgba(6, 29, 52, .2); transition: transform .2s; }
.share-switch input:checked + i { background: var(--mint); }
.share-switch input:checked + i::after { transform: translateX(20px); }
@media (max-width: 860px) { .member-wrap { flex-direction: column; } .member-side { width: 100%; } .member-header-inner { gap: 20px; } .member-grid { grid-template-columns: 1fr; } .import-options { grid-template-columns: 1fr; } }

/* ===== 收藏 / 片单（会员中心与电影详情） ===== */
.detail-fav-btn-active { background: #f6c453; color: #04222f; }
.detail-addlist { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: rgba(6, 29, 52, .58); }
.detail-addlist-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.detail-addlist-label { color: #cfe3ea; font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.detail-addlist-state { margin-left: auto; color: #9fc1cb; font-size: 12px; }
.detail-addlist-body { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-addlist-empty { color: #9fc1cb; font-size: 12px; }
.detail-addlist-empty a { color: var(--mint); }
.detail-chip { padding: 6px 12px; border: 1px solid rgba(207, 227, 234, .35); border-radius: 16px; cursor: pointer; color: #d9edf2; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .06); transition: all .15s; }
.detail-chip:hover { border-color: var(--mint); color: #fff; }
.detail-chip.on { border-color: var(--mint); color: #04222f; background: var(--mint); }
.detail-toast, .member-toast { position: fixed; left: 50%; bottom: 40px; z-index: 999; padding: 10px 20px; border-radius: 20px; color: #fff; font-size: 14px; font-weight: 600; background: rgba(6, 29, 52, .92); transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; transition: all .25s; }
.detail-toast.show, .member-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.fav-toolbar { display: flex; align-items: center; gap: 16px; margin: 22px 0 16px; flex-wrap: wrap; }
.fav-count { color: var(--muted); font-size: 13px; }
.fav-actions { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.fav-toolbar .member-btn { height: 38px; margin-top: 0; padding: 0 20px; font-size: 13px; }
.member-btn-primary { background: linear-gradient(135deg, #5fd8c6, #2fb3a3); }
.member-btn:disabled { opacity: .55; cursor: not-allowed; }
.fav-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.fav-card { position: relative; border-radius: 10px; overflow: hidden; background: #f4f8f9; box-shadow: 0 4px 12px rgba(6, 29, 52, .07); }
.fav-card > a { display: block; }
.fav-card img { display: block; width: 100%; height: 250px; object-fit: cover; background: #e3ecee; }
.fav-poster-placeholder, .shared-movie-placeholder { display: grid; place-items: center; height: 250px; color: #b7c8cd; font-family: "Playfair Display", serif; font-size: 22px; letter-spacing: 2px; background: linear-gradient(135deg, #eaf3f4, #d7e7ea); }
.fav-card-body { padding: 10px 12px 14px; }
.fav-card-body strong { display: block; overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.fav-card-body span { color: var(--muted); font-size: 12px; }
.fav-remove { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; font-size: 16px; line-height: 1; background: rgba(6, 29, 52, .55); transition: background .15s; }
.fav-remove:hover { background: #e05656; }
.member-empty { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.member-empty a { color: #129b8a; font-weight: 700; }
.link-btn { padding: 0; border: 0; cursor: pointer; color: #129b8a; font-size: 12px; font-weight: 600; background: transparent; }
.link-btn:hover { text-decoration: underline; }
.link-btn.del { color: #e05656; }

.member-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(6, 29, 52, .5); }
.member-modal-content { width: min(460px, calc(100% - 32px)); padding: 26px; border-radius: 14px; background: #fff; box-shadow: 0 20px 60px rgba(6, 29, 52, .3); }
.member-modal-content h3 { margin: 0 0 8px; color: var(--ink); font-size: 18px; }
.member-modal-tip { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.member-modal-content input[type="text"], .member-modal-content input[type="search"], .member-modal-content textarea { width: 100%; padding: 11px 14px; border: 1px solid #d8e2e6; border-radius: 8px; color: var(--ink); font: inherit; font-size: 14px; background: #fbfdfd; }
.member-modal-content input:focus, .member-modal-content textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(79, 203, 184, .18); }
.member-modal-content textarea { resize: vertical; }
.member-label { display: block; margin: 16px 0 7px; color: #34495b; font-size: 13px; font-weight: 600; }
.member-required { color: #e05656; }
.member-modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.member-modal-actions .member-btn { height: 40px; margin-top: 0; padding: 0 22px; font-size: 13px; }
.fav-list-select { display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.fav-list-option { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid #d8e2e6; border-radius: 9px; cursor: pointer; text-align: left; color: var(--ink); font: inherit; font-size: 14px; background: #fbfdfd; transition: border-color .15s, background .15s; }
.fav-list-option:hover { border-color: var(--mint); background: var(--pale-mint); }
.fav-list-option span { color: var(--muted); font-size: 12px; }
.fav-list-empty { padding: 20px; text-align: center; color: var(--muted); font-size: 13px; }

.list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.list-card { display: flex; flex-direction: column; border: 1px solid #dde8eb; border-radius: 12px; overflow: hidden; background: #fbfdfd; transition: box-shadow .2s, border-color .2s; }
.list-card:hover { border-color: var(--mint); box-shadow: 0 8px 20px rgba(79, 203, 184, .14); }
.list-card-main { display: block; padding: 18px 20px 6px; }
.list-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.list-card-top strong { overflow: hidden; color: var(--ink); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.list-badge { flex-shrink: 0; padding: 2px 10px; border-radius: 10px; color: #129b8a; font-size: 12px; font-weight: 700; background: var(--pale-mint); }
.list-card-desc { min-height: 38px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.list-card-actions { display: flex; align-items: center; gap: 12px; padding: 10px 20px 16px; flex-wrap: wrap; }
.list-shared-tag { padding: 2px 8px; border-radius: 8px; color: #17907f; font-size: 11px; font-weight: 700; background: var(--pale-mint); }
.list-shared-tag.off { color: #9aa9b1; background: #eef2f3; }

.listdetail-head { display: flex; align-items: flex-start; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
.listdetail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.listdetail-actions .member-btn { height: 38px; margin-top: 0; padding: 0 18px; font-size: 13px; }
.listdetail-sharebox { margin: 18px 0 0; padding: 14px 16px; border-radius: 10px; background: #f3faf8; border: 1px solid #d3efe9; }
.listdetail-share-label { color: #129b8a; font-size: 13px; font-weight: 700; }
.listdetail-sharebox input { width: min(560px, 62%); margin: 0 8px 0 0; padding: 8px 12px; border: 1px solid #d3efe9; border-radius: 8px; color: var(--ink); font-size: 13px; background: #fff; }
.listdetail-sharebox .member-btn { height: 34px; margin: 0 0 0 8px; padding: 0 14px; font-size: 12px; }
.movie-search-results { display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.movie-search-row { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid #e3ecee; border-radius: 9px; background: #fbfdfd; }
.movie-search-row img { width: 48px; height: 68px; object-fit: cover; border-radius: 6px; background: #e3ecee; }
.movie-search-row .fav-poster-placeholder { width: 48px; height: 68px; border-radius: 6px; font-size: 13px; flex-shrink: 0; }
.movie-search-info { flex: 1; min-width: 0; }
.movie-search-info strong { display: block; overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.movie-search-info span { color: var(--muted); font-size: 12px; }

.movie-search-row .member-btn { height: 32px; margin: 0; padding: 0 14px; font-size: 12px; }

.shared-wrap { width: min(1060px, calc(100% - 40px)); margin: 48px auto 80px; }
.shared-card { padding: 40px 44px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(6, 29, 52, .06); }
.shared-kicker { margin: 0; color: var(--mint); font-size: 12px; letter-spacing: 3px; font-weight: 700; }
.shared-title { margin: 8px 0 4px; color: var(--navy); font-size: 30px; font-weight: 800; }
.shared-owner { margin: 0; color: var(--muted); font-size: 13px; }
.shared-desc { margin: 14px 0 0; color: var(--ink); font-size: 14px; line-height: 1.7; }
.shared-count { margin: 20px 0 16px; color: var(--muted); font-size: 13px; }
.shared-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.shared-movie { display: block; overflow: hidden; border-radius: 10px; background: #f4f8f9; box-shadow: 0 4px 12px rgba(6, 29, 52, .07); transition: transform .18s, box-shadow .18s; }
.shared-movie:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(6, 29, 52, .12); }
.shared-movie img { display: block; width: 100%; height: 250px; object-fit: cover; background: #e3ecee; }
.shared-movie-placeholder { height: 250px; }
.shared-movie-title { display: block; overflow: hidden; padding: 10px 12px 2px; color: var(--ink); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.shared-movie-year { display: block; padding: 0 12px 12px; color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) { .fav-grid, .shared-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .list-grid { grid-template-columns: 1fr; } .fav-grid, .shared-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fav-grid, .shared-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
