@keyframes img-shimmer {
0%   { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
.movie-poster img, .similar-movie-poster img, .pub-wish-poster img, .watch-poster, .movie-poster-img img { background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%); background-size: 200% 100%; animation: img-shimmer 1.5s infinite; }

/* ==================== 变量 ==================== */
:root { --primary: #cc5656; --primary-solid: #c24b4f; --primary-solid-hover: #b64047; --primary-text: #9f363c; --primary-light: #e17b7c; --primary-dark: #a23840; --primary-alpha: rgba(204, 86, 86, 0.12); --primary-alpha-high: rgba(204, 86, 86, 0.28); --on-primary: #fff7f5; --bg: #f7f4f2; --bg-secondary: #eee8e5; --bg-elevated: #fdfaf8; --text: #302a2b; --text-secondary: #62595b; --text-muted: #746a6c; --border: #e1d7d4; --border-strong: #cfc1be; --border-primary: var(--primary); --success: #496f56; --success-bg: #edf5ef; --warning: #8b5f2f; --warning-bg: #fbf1e4; --error: #b44349; --error-bg: #f8e5e3; --error-border: #e8bbb8; --rating: #c9973f; --rating-star: #c88b3a; --info: #53667d; --info-bg: #edf2f7; --brand-bg-light: #f8e5e3; --logout: #b44349; --logout-alpha: rgba(180, 67, 73, 0.14); --bg-overlay: rgba(48, 42, 43, 0.52); --shadow: 0 4px 16px rgba(62, 42, 46, 0.08); --shadow-lg: 0 8px 32px rgba(62, 42, 46, 0.14); --shadow-card: 0 1px 4px rgba(62, 42, 46, 0.06); --radius: 6px; --radius-sm: 6px; --sidebar-width: 220px; --border-width: .625rem; --transition: 0.2s ease; --transition-fast: 0.12s ease; --fs-display: 2rem; --fs-heading: 1.25rem; --fs-body: 1rem; --fs-small: 0.875rem; --fs-caption: 0.75rem; }
[data-theme='dark'] { --primary: #cc5656; --primary-solid: #c24b4f; --primary-solid-hover: #b64047; --primary-text: #ec8583; --primary-alpha: rgba(204, 86, 86, 0.18); --primary-alpha-high: rgba(204, 86, 86, 0.34); --bg: #1a1819; --bg-secondary: #242122; --bg-elevated: #2c2829; --text: #eee8e7; --text-secondary: #b9afb0; --text-muted: #918688; --border: #3b3536; --border-strong: #534a4c; --success: #7fb38e; --success-bg: #203027; --warning: #d0a161; --warning-bg: #362a1d; --error: #e17b7c; --error-bg: #3b2325; --error-border: #62383b; --rating: #e2b65a; --rating-star: #dda64b; --info: #91a8c0; --info-bg: #202b38; --logout: #e17b7c; --logout-alpha: rgba(225, 123, 124, 0.18); --bg-overlay: rgba(10, 8, 9, 0.76); --shadow: none; --shadow-lg: 0 12px 40px rgba(8, 6, 7, 0.32); --shadow-card: none; --brand-bg-light: #3b2325; }

/* ==================== 重置 ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::-webkit-scrollbar { display: none; }
* { -ms-overflow-style: none; scrollbar-width: none; }
html { font-size: 18px; scroll-behavior: smooth; overflow: hidden; height: 100%; transition: background-color 0.2s ease, color 0.3s ease; }
.no-transition * { transition: none !important; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: var(--primary); color: var(--text); line-height: 1.6; overflow: hidden; height: 100%; margin: 0; transition: background-color 0.2s ease, color 0.3s ease; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

/* ==================== 固定边框容器 ==================== */
.app-frame { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light), var(--primary), var(--primary-dark)); pointer-events: none; z-index: 9999; overflow: visible; opacity: 0; transition: opacity 0.2s ease, box-shadow 0.3s; }
.app-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 20%, rgba(255,255,255,0.5) 50%, transparent 80%); background-size: 200% 100%; opacity: 0; transition: opacity 0.3s; }
.htmx-progress.active + .app-frame { opacity: 1; box-shadow: 0 0 12px 2px rgba(204, 86, 86, 0.36), 0 0 24px 4px rgba(204, 86, 86, 0.14); }
.htmx-progress.active + .app-frame::after { opacity: 1; animation: img-shimmer 1.2s infinite; }
.app-container { display: flex; height: 100vh; background: var(--bg); overflow: hidden; }

/* ==================== 侧边栏 ==================== */
.sidebar { width: var(--sidebar-width); background: var(--bg-elevated); border-right: 1px solid var(--border); box-shadow: 2px 0 12px rgba(62, 42, 46, 0.04); display: flex; flex-direction: column; height: 100%; overflow-y: auto; flex-shrink: 0; }
.sidebar-header { padding: 24px 20px 16px; text-align: center; background: var(--bg-elevated); }
[data-theme='dark'] .sidebar { box-shadow: none; }
.logo { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.logo-icon { height: 32px; width: auto; flex-shrink: 0; }
.logo-subtitle { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.sidebar-nav { padding: 16px 12px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 1rem; transition: 0.2s ease; }
.nav-item:hover { background: var(--bg-secondary); color: var(--primary-text); }
.nav-item.active { background: var(--primary-solid); color: var(--on-primary); }
[data-theme='dark'] .nav-item:hover { background: var(--border); }
[data-theme='dark'] .nav-item.active { background: var(--primary-solid); }
[data-theme] .fetching-alt:hover { color: var(--primary-text); }
.nav-icon { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-section { padding: 0 12px 16px; }
.section-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 16px; margin-bottom: 4px; }
.sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--border); margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.theme-toggle { cursor: pointer; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 12px 16px; width: 100%; border: none; background: none; color: var(--text-secondary); font-size: 1rem; transition: 0.2s ease; }
.theme-toggle:hover { color: var(--primary-text); }
.theme-toggle svg { transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.theme-toggle:active svg { transform: scale(0.8) rotate(-15deg); }
[data-theme='dark'] .theme-toggle .moon-icon { color: #f1c40f; }

/* ==================== 侧边栏遮罩 ==================== */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: var(--bg-overlay); z-index: 99; opacity: 0; transition: opacity var(--transition); }
.sidebar-overlay.open { opacity: 1; }

/* ==================== 主内容区 ==================== */
.main-content { flex: 1; height: 100%; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; }
.content-wrapper { flex: 1; padding: 32px 40px; margin: 0 auto; width: 100%; max-width: 1200px; }
.content-wrapper.full-width { max-width: none; padding: 32px 0; }

/* ==================== 页脚 ==================== */
.main-footer { padding: 24px 40px; text-align: center; background: linear-gradient(to top, var(--bg-secondary), var(--bg)); }
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { color: var(--text-secondary); font-size: 0.75rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary-text); }
.footer-copyright { font-size: 0.75rem; color: var(--text-muted); }
.footer-also { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }
.footer-also a { color: var(--text-secondary); transition: color var(--transition); }
.footer-also a:hover { color: var(--primary-text); }

/* ==================== 移动端顶栏 ==================== */
.mobile-header { display: none; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.hamburger { width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; border-radius: 8px; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--primary); border-radius: 2px; transition: 0.2s ease; }
.mobile-logo { display: inline-flex; align-items: center; gap: 6px; font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.mobile-logo-icon { height: 26px; width: auto; flex-shrink: 0; }
.mobile-header-actions { display: flex; align-items: center; gap: 4px; }
.mobile-user { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; color: var(--text-secondary); }
.mobile-theme-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 8px; color: var(--text-secondary); }
.hamburger:hover, .mobile-user:hover, .mobile-theme-toggle:hover { background: var(--bg-secondary); }

/* ==================== 首页样式 ==================== */
.home-hero { text-align: center; padding: 40px 0 32px; }
.home-hero h1 { font-size: 2.5rem; color: var(--text); margin-bottom: 8px; }
.home-hero h1 .hero-logo { display: inline-block; height: 48px; width: auto; vertical-align: middle; }
.hero-subtitle { color: var(--text-secondary); font-size: 1rem; margin-bottom: 8px; }
.hero-subtitle-small { color: var(--text-muted); font-size: 0.875rem; }

/* ==================== 搜索框 ==================== */
.search-form { max-width: 600px; margin: 24px auto; position: relative; }
.search-input-wrapper { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 28px; padding: 3px; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04); transition: 0.2s ease; }
.search-input-wrapper:focus-within { border-color: var(--primary-text); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 0 0 2px var(--primary-alpha); }
.search-input { flex: 1; padding: 10px 18px; border: none; background: transparent; font-size: 1rem; color: var(--text); outline: none; }
.search-input::placeholder { color: var(--text-muted); }
.search-btn { padding: 10px 24px; background: var(--primary-solid); color: white; font-weight: 500; font-size: 1rem; border: none; border-radius: 22px; cursor: pointer; transition: background var(--transition); flex-shrink: 0; }
.search-btn:hover { background: var(--primary-dark); }

/* ==================== 搜索建议 ==================== */
.search-suggestions { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; max-height: 400px; overflow-y: auto; z-index: 1000; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); margin-top: 8px; text-align: left; }
.search-suggestion-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; cursor: pointer; transition: background var(--transition); border-bottom: 1px solid var(--border); }
.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item:hover, .search-suggestion-item.selected { background: var(--bg-secondary); }
.suggestion-poster { width: 48px; height: 68px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--border); }
.suggestion-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.suggestion-title { font-weight: 600; font-size: 1rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-meta { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; }
.suggestion-type { background: var(--primary-solid); color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 500; }
.suggestion-year { color: var(--text-muted); }
.suggestion-subtitle { font-size: 0.75rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==================== 提示信息 ==================== */
.notice { text-align: center; padding: 12px; font-size: 0.875rem; }
.notice-primary { color: var(--primary-text); }
.notice-warning { color: #f0ad4e; }

/* ==================== 最近搜索区域（简洁版） ==================== */
.tags-section { margin: 24px 0; padding: 0; }
.tags-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tags-title { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; color: var(--text); }
.tags-toggle { font-size: 0.875rem; color: var(--text-muted); cursor: pointer; padding: 6px 12px; border-radius: 20px; transition: 0.2s ease; }
.tags-toggle:hover { background: var(--primary-alpha); color: var(--primary-text); }
.trending-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 6px 12px; background: var(--bg-secondary); border: none; border-radius: 4px; font-size: 0.875rem; color: var(--text-secondary); transition: color var(--transition); }
.tag:hover { color: var(--primary-text); }
.tag-deletable { display: inline-flex; align-items: center; gap: 6px; padding-right: 8px; }
.tag-deletable a { color: inherit; }
.tag-delete { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: transparent; color: var(--text-muted); font-size: 12px; line-height: 1; cursor: pointer; transition: color var(--transition); border: none; padding: 0; }
.tag-delete:hover { color: var(--primary-text); }

/* ==================== 继续观看区域（简洁版） ==================== */
.section { margin: 2.5rem 0; padding: 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; color: var(--text); }
.section-title .icon { color: var(--primary-text); }
.section-more { font-size: 0.875rem; color: var(--text-muted); transition: color var(--transition); }
.section-more:hover { color: var(--primary-text); }

/* ==================== 电影网格 ==================== */
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.discover-grid { grid-template-columns: repeat(5, 1fr); }
.discover-tab-nav { margin-bottom: 24px; overflow-x: auto; }
.discover-content-wrapper { position: relative; min-height: 400px; }
.discover-loading { display: flex; justify-content: center; align-items: center; min-height: 300px; width: 100%; }
.discover-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary-text); border-radius: 50%; animation: spin 0.8s linear infinite; }
.discover-episodes-badge { position: absolute; bottom: 8px; left: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.68); color: #fff8fa; font-size: 0.75rem; }
.discover-new-badge { display: inline-block; margin-top: 4px; padding: 0 4px; border-radius: 2px; background: var(--primary-solid); color: #fff; font-size: 0.75rem; }
@media (max-width: 1024px) {
.discover-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
.discover-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
.movie-card { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-secondary); box-shadow: var(--shadow-card); transition: transform var(--transition), box-shadow var(--transition); }
.movie-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.movie-poster { position: relative; aspect-ratio: 2/3; overflow: hidden; }
.movie-poster img { width: 100%; height: 100%; object-fit: cover; }
.sensitive-blur .movie-poster img { filter: blur(20px); transition: filter 0.3s; }
.movie-rating { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, 0.7); color: var(--rating); padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.movie-info { padding: 10px 12px; }
.movie-title { font-size: 0.875rem; font-weight: 500; color: var(--text); word-break: break-all; overflow: hidden; text-overflow: ellipsis; }
.movie-year { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.progress-bar-container { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: rgba(0, 0, 0, 0.3); }
.progress-bar { height: 100%; background: var(--primary); transition: width 0.2s ease; }

/* ==================== 继续观看卡片包装器 ==================== */
.movie-card-wrapper { position: relative; }
.watch-delete-btn { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); border: none; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition), background var(--transition); z-index: 10; }
.movie-card-wrapper:hover .watch-delete-btn { opacity: 1; }
.watch-delete-btn:hover { background: var(--primary-solid); }
@media (max-width: 768px), (hover: none) {
.watch-delete-btn { opacity: 1; width: 22px; height: 22px; background: var(--bg-overlay); }
}

/* ==================== 空状态 ==================== */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.movie-grid > .empty-state, .movie-grid > .loading-state { grid-column: 1 / -1; }
.load-more-container { grid-column: 1 / -1; display: flex; justify-content: center; padding: 20px 0; }

/* ==================== 按钮 ==================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 500; transition: 0.2s ease; cursor: pointer; }
.btn-primary { background: var(--primary-solid); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--bg-secondary); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary-text); color: var(--primary-text); }
/* 原先在 settings.html 和 dashboard.html 各写了一份，notifications.html 用了却没定义。 */
.btn-ghost { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--primary-text); border-color: var(--primary-text); }

/* ==================== 表单 ==================== */
.auth-form { max-width: 400px; margin: 0 auto; padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; color: var(--text); font-size: 1rem; transition: border-color var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-text); }
.form-error { color: #dc3545; font-size: 0.875rem; margin-top: 4px; }
.form-link { text-align: center; margin-top: 16px; color: var(--text-muted); }
.form-link a { color: var(--primary-text); }

/* ==================== 页面标题 ==================== */
.page-title { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 24px; }

/* ==================== 搜索结果页 Hero ==================== */
.search-hero { text-align: center; padding: 32px 0 24px; }
.search-result-hint { color: var(--text-secondary); font-size: 1rem; margin-top: 16px; }

/* ==================== 搜索结果网格 ==================== */
.search-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-top: 12px; }
.search-result-section + .search-result-section { margin-top: 40px; }
.search-result-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.search-result-section-heading h2 { color: var(--text-muted); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.04em; }
.search-result-section-heading span { color: var(--text-muted); font-size: 0.75rem; }
.search-result-card { display: flex; gap: 16px; padding: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; transition: 0.2s ease; align-items: flex-start; }
.search-result-card:hover { border-color: var(--primary-text); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); transform: translateY(-3px); }
.search-result-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.card-poster:focus-visible, .card-detail-link:focus-visible, .playback-action:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.card-poster { position: relative; width: 90px; height: 127px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--bg-secondary); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.search-result-card:hover .card-poster img { transform: scale(1.05); }
.card-rating-badge { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; gap: 3px; padding: 3px 8px; background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%); backdrop-filter: blur(4px); border-radius: 6px; }
.card-rating-badge .rating-star { color: var(--rating); font-size: 0.75rem; }
.card-rating-badge .rating-value { color: var(--rating); font-size: 0.75rem; font-weight: 700; }
.card-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 2px; }
.card-detail-link { color: inherit; }
.card-detail-link:hover { color: var(--primary-text); }
.card-remarks { font-size: 0.75rem; color: var(--primary-text); font-weight: 500; margin: 0; padding: 3px; }
.card-meta-row { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; overflow: hidden; white-space: nowrap; }
.card-year, .card-region, .card-type, .card-director { overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0; }
.card-year { color: var(--primary-text); font-weight: 600; }
.card-region, .card-type { color: var(--text-muted); }
.card-meta-row span:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--border); opacity: 0.5; }
.card-director { font-size: 0.75rem; color: var(--text-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; word-break: break-all; }
.card-original-title { color: var(--text-muted); font-weight: 400; }
.card-rating { color: #9a6300; font-weight: 650; }
.card-taxonomy { display: flex; flex-wrap: wrap; gap: 6px; }
.card-taxonomy span { padding: 2px 7px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-secondary); color: var(--text-muted); font-size: 0.75rem; }
.card-summary { color: var(--text-muted); font-size: 0.75rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 0.75rem; color: var(--text-secondary); }
.card-playback { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.playback-match { color: var(--text-muted); font-size: 0.75rem; line-height: 1.4; }
.playback-match strong { color: var(--text); font-size: 0.875rem; font-weight: 700; }
.playback-action { min-height: 44px; padding: 10px 14px; border-radius: 999px; background: var(--primary-solid); color: #fff; font-size: 0.75rem; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background-color 0.2s ease, transform 0.2s ease; }
.playback-unavailable { padding-block: 10px; }
.search-result-card:hover .playback-action { background: var(--primary-dark); }
.search-result-card:active .playback-action { transform: translateX(2px); }
.card-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.source-item { display: flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-secondary); color: var(--text-secondary); font-size: 0.75rem; transition: 0.2s ease; }
.search-loading-state, .movie-search-loading-state { display: none; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; color: var(--text-muted); }
.search-loading-state { display: flex; }
.search-loading-state.htmx-request, .movie-search-loading-state.htmx-request, .htmx-request > .movie-search-loading-state { display: flex; }
.search-loading-spinner { width: 40px; height: 40px; margin-bottom: 1rem; border: 3px solid var(--border); border-top-color: var(--primary-text); border-radius: 50%; animation: spin 1s ease-in-out infinite; }
.ad-slot { min-height: 1px; text-align: center; }
@media (max-width: 600px) {
.search-result-grid { grid-template-columns: 1fr; }
.search-result-card { padding: 12px; gap: 12px; }
.card-poster { width: 65px; height: 92px; }
.card-title { font-size: 1rem; }
.card-playback { gap: 8px; padding-top: 8px; }
.playback-match { font-size: 0.75rem; }
.playback-action { padding-inline: 12px; }
}

/* ==================== 内容页面 ==================== */
.content-page { max-width: 720px; color: var(--text-secondary); line-height: 1.75; }
.content-page > .page-title { margin-bottom: 16px; font-size: clamp(1.5rem, 2.5vw, 1.75rem); line-height: 1.25; letter-spacing: -0.02em; }
.content-page .lead-text { margin-bottom: 0; color: var(--text); font-size: 1.0625rem; line-height: 1.75; }
.content-page > section { margin-top: 40px; }
.content-page h2 { margin: 36px 0 12px; color: var(--text); font-size: 1.25rem; line-height: 1.4; }
.content-page > section > h2:first-child { margin-top: 0; }
.content-page h3 { margin: 28px 0 8px; color: var(--text); font-size: 1rem; line-height: 1.5; }
.content-page p { margin-bottom: 16px; color: var(--text-secondary); }
.content-page ul, .content-page ol { margin-bottom: 16px; padding-left: 1.4em; }
.content-page ul { list-style: disc; }
.content-page ol { list-style: decimal; }
.content-page li { margin-bottom: 8px; padding-left: 4px; color: var(--text-secondary); }
.content-page li:last-child, .content-page li > p:last-child { margin-bottom: 0; }
.content-page li::marker { color: var(--text-muted); }
.content-page .features-list { padding-left: 0; list-style: none; }
.content-page .features-list li { padding-left: 0; }
.content-page a { color: var(--primary-text); text-decoration: underline; text-decoration-color: var(--primary-alpha-high); text-underline-offset: 0.18em; }
.content-page a:hover { text-decoration-color: currentColor; }
.content-page blockquote { margin: 32px 0; padding: 20px 24px; border: 1px solid var(--primary-alpha-high); border-radius: 10px; background: var(--brand-bg-light); color: var(--text-secondary); }
.content-page blockquote p:last-child { margin: 12px 0 0; }
.content-page blockquote cite { color: var(--text-muted); font-style: normal; }
.content-page .footer-slogan { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text); }
.content-page > br { display: none; }
.content-page.legal { max-width: 680px; }
.content-page.legal > p:first-of-type { margin-bottom: 32px; color: var(--text-muted); font-size: 0.875rem; }
.content-page.legal > p:first-of-type + h2 { margin-top: 0; }
.content-media { display: grid; width: 100%; aspect-ratio: 16 / 9; margin: 16px 0 0; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-secondary); }
.content-media img { width: 100%; height: 100%; object-fit: contain; }
.changelog-container { margin-top: 32px; position: relative; }
.changelog-item { margin-bottom: 40px; padding-left: 20px; border-left: 2px solid var(--primary); position: relative; }
.changelog-item:last-child { margin-bottom: 0; }
.changelog-item::before { content: ''; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; background: var(--primary); border-radius: 50%; }
.version-badge { margin-bottom: 8px; color: var(--primary); font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.version-badge small { margin-left: 10px; color: var(--text-muted); font-size: 0.875rem; font-weight: 400; }
.changelog-details h3 { margin: 16px 0 8px; font-size: 1rem; }
.content-page .changelog-details ul { margin-bottom: 0; padding-left: 1.5rem; }
.changelog-item--major { border-left-width: 4px; }
.changelog-item--major::before { left: -8px; width: 16px; height: 16px; }
.changelog-item--major .version-badge { font-size: 1.5rem; }
.major-summary { margin: 0 0 8px; padding: 12px 16px; border-radius: 8px; background: var(--brand-bg-light); color: var(--text-secondary); line-height: 1.75; }
.changelog-details code { padding: 0.1em 0.35em; border-radius: 3px; background: var(--bg-secondary); color: var(--text); font-size: 0.9em; }

/* ==================== 管理后台 ==================== */

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; transform: translateX(-100%); width: 260px; transition: transform var(--transition); }
.sidebar.open { transform: translateX(0); }
.sidebar-overlay { display: block; pointer-events: none; }
.sidebar-overlay.open { pointer-events: auto; }
.main-content { width: 100%; }
.mobile-header { display: flex; }
.content-wrapper { padding: 20px 16px; }
.content-page > section { margin-top: 32px; }
.content-page blockquote { margin: 24px 0; padding: 16px; }
.home-hero h1 { font-size: 1.8rem; }
.home-hero h1 .hero-logo { height: 34px; }
.movie-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
body.sidebar-open { overflow: hidden; }
#continue-watching.movie-grid, #continue-watching > .movie-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
#continue-watching .movie-info { padding: 6px 8px; }
#continue-watching .movie-title { font-size: 0.75rem; }
#continue-watching .movie-year { font-size: 0.75rem; margin-top: 1px; }
#continue-watching .watch-delete-btn { width: 18px; height: 18px; top: 4px; right: 4px; }
#continue-watching .watch-delete-btn svg { width: 10px; height: 10px; }
}
@media (max-width: 480px) {
.movie-grid { grid-template-columns: repeat(2, 1fr); }
#continue-watching.movie-grid, #continue-watching > .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.search-btn { padding: 14px 20px; }
}

/* ==================== 电影详情页（豆瓣风格） ==================== */
.movie-page { max-width: 900px; margin: 0 auto; }
.movie-page > .breadcrumbs { margin-bottom: 18px; font-size: 0.875rem; color: var(--text-muted); }
.movie-page > .breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.movie-page > .breadcrumbs a:hover { color: var(--primary-text); }
.movie-page > .breadcrumbs .breadcrumbs-sep { margin: 0 0.25rem; color: var(--text-muted); }
.movie-header { display: flex; gap: 24px; margin-bottom: 30px; }
.movie-poster-col { flex-shrink: 0; width: 135px; }
.movie-poster-img { width: 100%; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.movie-info-col { flex: 1; min-width: 0; }
.movie-name { font-size: 1.5rem; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.4; }
.movie-year-text { font-weight: 400; color: var(--text-muted); }
.movie-alt-name { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 12px; }
.movie-attrs { font-size: 0.875rem; line-height: 1.7; }
.attr-row { margin-bottom: 2px; }
.attr-label { color: var(--text-muted); }
.attr-value { color: var(--text-secondary); }
.attr-value a { color: var(--primary-text); }
.attr-row-cast { display: flex; align-items: flex-start; gap: 0.25rem; }
.attr-row-cast .attr-label { flex-shrink: 0; }
.movie-cast-details { min-width: 0; color: var(--text-secondary); }
.movie-cast-details summary { display: flex; align-items: baseline; gap: 8px; cursor: pointer; list-style: none; }
.movie-cast-details summary::-webkit-details-marker { display: none; }
.movie-cast-preview { min-width: 0; }

.notification-badge-slot { margin-left: auto; }
.notification-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; line-height: 1; }
.mobile-notifications { position: relative; }
.mobile-notifications .notification-badge-slot { position: absolute; top: -4px; right: -5px; }
.mobile-notifications .notification-badge { min-width: 15px; height: 15px; padding: 0 4px; font-size: 9px; }
.notification-comment-target { border-radius: 6px; animation: notification-comment-highlight 2.4s ease-out; }
@keyframes notification-comment-highlight { from { background: var(--primary-alpha); } to { background: transparent; } }
.movie-cast-toggle { flex-shrink: 0; color: var(--primary-text); font-size: 0.75rem; }
.movie-cast-toggle .when-open { display: none; }
.movie-cast-details[open] .when-closed { display: none; }
.movie-cast-details[open] .when-open { display: inline; }
.movie-cast-full { margin-top: 6px; padding: 8px 10px; border-radius: 6px; background: var(--bg-secondary); line-height: 1.65; }
.external-id-link { text-decoration: none; }
.attr-value .external-id-link-douban { color: #087b35; }
.attr-value .external-id-link-imdb { color: #9a6a00; }
[data-theme='dark'] .attr-value .external-id-link-douban { color: #67d391; }
[data-theme='dark'] .attr-value .external-id-link-imdb, [data-theme='dark'] .card-rating { color: #f6c744; }
.movie-rating-col { flex-shrink: 0; width: 140px; text-align: center; }
.rating-block { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.rating-title { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.rating-num { font-size: 1.8rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.rating-num-refresh { min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--text-muted); font-size: 1rem; cursor: pointer; }
.rating-num-refresh:hover { color: var(--primary-text); }
.rating-stars { color: #ffac2d; font-size: 0.75rem; letter-spacing: -1px; }
.movie-primary-actions { display: flex; flex-direction: column; gap: 10px; }
.movie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.movie-actions .btn { min-height: 44px; font-size: 0.8125rem; padding: 10px 0; gap: 4px; border-radius: 8px; width: 100%; justify-content: center; white-space: nowrap; line-height: 1; }
.movie-play-btn { width: 100%; min-height: 46px; border-radius: 8px; font-weight: 650; box-shadow: 0 6px 16px var(--primary-alpha); }
.movie-play-btn:active { transform: translateY(1px); }
.movie-actions .btn.btn-current { color: var(--primary-text); }
.movie-social-stats { margin-top: 10px; font-size: 0.8125rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.movie-social-dot { opacity: 0.6; }
.movie-series-nav { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; gap: 24px; margin: 0 0 16px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.movie-series-heading { display: flex; flex-direction: column; justify-content: center; min-width: 72px; }
.movie-series-title { color: var(--text); font-size: 0.875rem; font-weight: 650; }
.movie-series-count { margin-top: 2px; color: var(--text-muted); font-size: 0.75rem; }
.movie-series-track { display: flex; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
.movie-series-track::-webkit-scrollbar { display: none; }
.movie-series-season { position: relative; display: flex; flex: 0 0 auto; min-width: 110px; min-height: 48px; padding: 7px 14px 9px; flex-direction: column; justify-content: center; color: var(--text-secondary); border-bottom: 2px solid transparent; text-decoration: none; }
a.movie-series-season:hover { color: var(--primary-text); background: var(--bg-secondary); }
.movie-series-season:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.movie-series-season strong { color: inherit; font-size: 0.875rem; font-weight: 600; }
.movie-series-season small { margin-top: 2px; color: var(--text-muted); font-size: 0.72rem; }
.movie-series-season.is-current { color: var(--primary-text); border-bottom-color: var(--primary-text); }
.movie-series-season em { position: absolute; top: 7px; right: 8px; color: var(--primary-text); font-size: 0.75rem; font-style: normal; }
.movie-resource-ready { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.movie-resource-ready strong { display: block; color: var(--text); font-size: 0.9375rem; font-weight: 600; }
.movie-resource-ready p { margin: 2px 0 0; color: var(--text-muted); font-size: 0.8125rem; }
.movie-resource-link { flex-shrink: 0; color: var(--primary-text); font-size: 0.875rem; font-weight: 600; }
.movie-resource-link:hover { color: var(--primary-text); }
.btn-favorite { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border); transition: 0.2s ease; display: flex; align-items: center; gap: 6px; }
.btn-favorite:hover { background: #fff; border-color: var(--primary-text); color: var(--primary-text); transform: translateY(-2px); box-shadow: 0 4px 12px var(--primary-alpha); }
.btn-favorite.favorited { background: var(--brand-bg-light); border-color: var(--primary); color: var(--primary-text); }
.btn-favorite.favorited:hover { background: var(--primary-solid); color: white; border-color: var(--primary-text); }
.btn-favorite .icon { font-size: 1.1rem; transition: transform 0.2s ease; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.btn-favorite:hover .icon { transform: scale(1.2) rotate(5deg); }
.btn-favorite.favorited .icon { color: var(--primary-text); }
.movie-section { margin-bottom: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.movie-section .section-title { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.movie-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.movie-section-heading .section-title { margin-bottom: 0; }
.movie-section-heading .section-more { flex-shrink: 0; color: var(--text-secondary); font-size: 0.8125rem; text-decoration: none; }
.movie-section-heading .section-more:hover { color: var(--primary-text); }
.movie-summary { font-size: 0.875rem; line-height: 1.8; color: var(--text-secondary); text-indent: 2em; }
.similar-movies-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.similar-movie-card { display: flex; flex-direction: column; color: inherit; }
.similar-movie-poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 6px; background: var(--bg-secondary); }
.similar-movie-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.similar-movie-card:hover .similar-movie-poster img { transform: scale(1.03); }
.similar-movie-rating { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.72); color: #facc15; font-size: 0.75rem; font-weight: 600; }
.similar-movie-title { margin-top: 0.5rem; color: var(--text); font-size: 0.875rem; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s ease; }
.similar-movie-card:hover .similar-movie-title { color: var(--primary-text); }
.similar-movies-empty { padding: 3rem; color: var(--text-muted); text-align: center; }
.similar-movies-more { margin-top: 1.5rem; text-align: center; }
.similar-movies-more a { display: inline-block; padding: 0.5rem 1rem; border-radius: 4px; background: var(--bg-secondary); color: var(--text-muted); font-size: 0.875rem; transition: color 0.2s ease, background-color 0.2s ease; }
.similar-movies-more a:hover { color: var(--primary-text); background: var(--border); }
@media (max-width: 1024px) {
.similar-movies-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}
@media (max-width: 768px) {
.similar-movies-grid { grid-template-columns: repeat(4, 1fr); gap: 0.875rem; }
.similar-movie-title { font-size: 0.8125rem; }
}

/* ==================== 电影详情页响应式 ==================== */
@media (max-width: 640px) {
.movie-page { padding: 0; }
.movie-header { flex-wrap: wrap; }
.movie-poster-col { width: 100px; }
.movie-info-col { flex: 1; min-width: 150px; }
.movie-rating-col { width: 100%; display: grid; grid-template-columns: minmax(84px, 0.28fr) minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 12px; }
.rating-block { margin-bottom: 0; padding: 10px 16px; }
.movie-primary-actions { min-width: 0; }
.movie-actions .btn { width: 100%; min-width: 0; }
.movie-social-stats { grid-column: 1 / -1; margin-top: 0; min-height: 20px; }
.movie-name { font-size: 1.2rem; }
.movie-series-nav { display: block; margin-top: -6px; padding-top: 10px; }
.movie-series-heading { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 8px; margin: 0 4px 6px; }
.movie-series-season { min-width: 104px; min-height: 48px; padding-inline: 12px; }
.movie-resource-ready { align-items: flex-start; flex-direction: column; gap: 10px; }
.movie-resource-link { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 480px) {
.movie-poster-col { width: 80px; }
.movie-name { font-size: 1.1rem; }
.movie-attrs { font-size: 0.75rem; }
.rating-num { font-size: 1.5rem; }
.similar-movies-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.similar-movie-title { font-size: 0.75rem; }
.similar-movie-rating { padding: 2px 6px; font-size: 0.6875rem; }
}

/* ==================== 相似内容页 ==================== */
.recommendations-container { width: 100%; max-width: 900px; margin: 0 auto; }
.recommendations-container .breadcrumbs { margin-bottom: 18px; color: var(--text-muted); font-size: 0.875rem; }
.recommendations-container .breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.recommendations-container .breadcrumbs a:hover { color: var(--primary-text); }
.recommendations-container .breadcrumbs-sep { margin: 0 0.25rem; color: var(--text-muted); }
.recommendations-header { margin-bottom: 26px; }
.recommendations-header .page-title { margin-bottom: 6px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.35; }
.recommendations-header .page-subtitle { margin: 0; color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }
.source-movie-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.source-movie-poster, .recommendation-poster { position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--bg-secondary); }
.source-movie-poster { width: 92px; aspect-ratio: 2 / 3; }
.source-movie-poster img, .recommendation-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.source-movie-rating-badge, .recommendation-rating-badge { position: absolute; top: 6px; right: 6px; padding: 3px 6px; border-radius: 4px; background: rgba(24, 22, 22, 0.82); color: var(--rating); font-size: 0.6875rem; font-weight: 650; white-space: nowrap; }
.source-movie-content, .recommendation-content { min-width: 0; }
.source-movie-kicker { display: block; margin-bottom: 3px; color: var(--text-muted); font-size: 0.75rem; }
.source-movie-title, .recommendation-title { margin: 0; line-height: 1.35; }
.source-movie-title { font-size: 1.125rem; }
.source-movie-title a, .recommendation-title a { color: var(--text); text-decoration: none; }
.source-movie-title a:hover, .recommendation-title a:hover { color: var(--primary-text); }
.source-movie-meta, .recommendation-meta { display: flex; flex-wrap: wrap; margin-top: 6px; color: var(--text-muted); font-size: 0.8125rem; }
.source-movie-meta span:not(:last-child)::after, .recommendation-meta span:not(:last-child)::after { content: "·"; margin: 0 7px; color: var(--border-strong); }
.source-movie-summary { display: -webkit-box; margin: 9px 0 0; overflow: hidden; color: var(--text-secondary); font-size: 0.875rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.source-movie-link, .back-link { color: var(--primary-text); font-size: 0.875rem; text-decoration: none; }
.source-movie-link { display: inline-block; margin-top: 8px; }
.source-movie-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.recommendations-section { margin-top: 30px; }
.recommendations-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.recommendations-section-heading .section-title { margin: 0; font-size: 1.125rem; }
.recommendations-section-heading > span { color: var(--text-muted); font-size: 0.8125rem; }
.recommendations-list { display: flex; flex-direction: column; }
.recommendation-card { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.recommendation-poster { width: 80px; aspect-ratio: 2 / 3; }
.recommendation-title { font-size: 1rem; }
.recommendation-reason { margin: 8px 0 0; color: var(--text-secondary); font-size: 0.8125rem; line-height: 1.55; }
.recommendation-reason > span { margin-right: 7px; color: var(--primary-text); font-weight: 600; }
.recommendation-summary { display: -webkit-box; margin: 6px 0 0; overflow: hidden; color: var(--text-muted); font-size: 0.8125rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.recommendations-empty { padding: 28px 0; color: var(--text-secondary); }
.recommendations-empty p { margin: 0 0 8px; }
.back-section { margin-top: 26px; }
.recommendations-container a:focus-visible { border-radius: 3px; outline: 2px solid var(--primary-text); outline-offset: 3px; }
@media (max-width: 600px) {
.source-movie-card { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
.source-movie-poster { width: 72px; }
.recommendation-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
.recommendation-poster { width: 64px; }
.source-movie-rating-badge, .recommendation-rating-badge { position: static; display: block; border-radius: 0; text-align: center; }
}

/* ==================== 认证页面（登录/注册） ==================== */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 200px); }
.auth-container { width: 100%; max-width: 400px; }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 1.8rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.auth-logo-icon { height: 38px; width: auto; flex-shrink: 0; }
.auth-title { font-size: 1.5rem; font-weight: 600; color: var(--text); margin-bottom: 8px; text-align: center; }
.auth-desc { color: var(--text-muted); font-size: 0.875rem; text-align: center; margin-bottom: 28px; }
.auth-alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 8px; font-size: 0.875rem; margin-bottom: 20px; }
.auth-alert-error { background: var(--error-bg); border: 1px solid var(--error-border); color: var(--error); }
.auth-alert svg { flex-shrink: 0; }
.auth-field { margin-bottom: 20px; }
.auth-field label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.auth-input-wrapper { position: relative; display: flex; align-items: center; }
.auth-input-icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; transition: color var(--transition); }
.auth-input-wrapper input { width: 100%; padding: 14px 16px 14px 44px; font-size: 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-secondary); color: var(--text); transition: 0.2s ease; }
.auth-input-wrapper input::placeholder { color: var(--text-muted); }
.auth-input-wrapper input:focus { outline: none; border-color: var(--primary-text); background: var(--bg); box-shadow: 0 0 0 3px var(--primary-alpha); }
.auth-input-wrapper input:focus + .auth-input-icon, .auth-input-wrapper:focus-within .auth-input-icon { color: var(--primary-text); }
.auth-hint { display: block; margin-top: 6px; font-size: 0.75rem; color: var(--text-muted); }
/* 注册页的主页公开开关 */
.auth-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; font-size: 0.82rem; line-height: 1.45; color: var(--text-secondary); cursor: pointer; }
.auth-consent input { margin-top: 2px; flex-shrink: 0; accent-color: var(--primary-solid); }
.auth-submit { width: 100%; padding: 14px 24px; font-size: 1rem; font-weight: 600; color: var(--on-primary); background: var(--primary-solid); border: none; border-radius: 10px; cursor: pointer; transition: 0.2s ease; margin-top: 8px; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--primary-alpha-high); }
.auth-submit:active { transform: translateY(0); }
.auth-footer { margin-top: 24px; text-align: center; padding-top: 20px; border-top: 1px solid var(--border); }
.auth-footer p { color: var(--text-muted); font-size: 0.875rem; }
.auth-footer a { color: var(--primary-text); font-weight: 500; text-decoration: none; transition: color var(--transition); }
.auth-footer a:hover { color: var(--primary-text); }
@media (max-width: 480px) {
.auth-page { min-height: auto; }
.auth-title { font-size: 1.3rem; }
.auth-logo { font-size: 1.5rem; }
.auth-logo-icon { height: 32px; }
}

/* ==================== 用户中心页面 ==================== */
.user-center { overflow-x: hidden; margin: 0 auto; min-width: 0; }
.user-profile-card { display: flex; align-items: center; gap: 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; color: var(--text); position: relative; overflow: hidden; }
.user-profile-card::before { content: ''; position: absolute; top: 0; right: 0; width: 200px; height: 200px; background: radial-gradient(circle, var(--primary-alpha) 0%, transparent 70%); pointer-events: none; }
.user-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--primary-alpha); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; line-height: 1; }
.user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.user-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.user-email { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 2px; }
.user-since { font-size: 0.75rem; color: var(--text-muted); }
.user-actions { display: flex; gap: 12px; }
.action-link { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-secondary); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: 0.2s ease; }
.action-link:hover { border-color: var(--primary-text); color: var(--primary-text); transform: translateY(-2px); box-shadow: 0 4px 12px var(--primary-alpha-high); }
.logout-link:hover { border-color: var(--logout) !important; color: var(--logout) !important; box-shadow: 0 4px 12px var(--logout-alpha) !important; }
.user-stats { display: flex; gap: 12px; margin-top: 20px; }
.stat-item { flex: 1; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: 0.2s ease; }
.stat-item:hover { border-color: var(--primary-text); }
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.875rem; color: var(--text-muted); }
.tab-nav { display: flex; gap: 8px; margin-top: 28px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.tab-btn { display: flex; align-items: center; gap: 6px; padding: 0.75rem 1.25rem; font-size: 0.9375rem; font-weight: 500; color: var(--text-muted); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--primary-text); border-bottom-color: var(--primary-text); }
.tab-btn svg { width: 16px; height: 16px; }
.history-card-wrapper { position: relative; }
.history-card-wrapper .watch-delete-btn { top: 10px; right: 10px; }
.watched-list { display: flex; flex-direction: column; gap: 16px; overflow: hidden; width: 100%; max-width: 100%; }
.watched-item { display: flex; gap: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; position: relative; transition: border-color 0.2s ease; box-sizing: border-box; width: 100%; max-width: 100%; overflow: hidden; }
.watched-item:hover { border-color: var(--primary-alpha-high); }
.watched-poster { width: 80px; height: 120px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--bg-secondary); }
.watched-poster img { width: 100%; height: 100%; object-fit: cover; }
.watched-info { flex: 1; min-width: 0; width: 0; overflow-wrap: break-word; word-break: break-word; }
.watched-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 10px; }
.watched-title-link { text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.watched-title { font-size: 1.1rem; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; min-width: 0; }
.watched-title:hover { color: var(--primary-text); }
.watched-meta { font-size: 0.875rem; color: var(--text-muted); }
.watched-date { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.watched-date svg { opacity: 0.7; }
.watched-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.rating-stars-active { color: #facc15; font-size: 0.875rem; }
.rating-score { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); background: var(--bg-secondary); padding: 1px 6px; border-radius: 4px; }
.watched-comment { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; background: var(--bg-secondary); padding: 10px 12px; border-radius: 8px; position: relative; font-style: italic; overflow-wrap: break-word; word-break: break-word; overflow: hidden; }
.watched-comment::before { content: '"'; font-family: serif; font-size: 1.5rem; color: var(--primary-alpha); position: absolute; left: 4px; top: -2px; }
.watched-actions { display: flex; gap: 8px; align-self: flex-start; }
.watched-btn { padding: 6px 12px; font-size: 0.75rem; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }
.watched-btn:hover { border-color: var(--primary-text); color: var(--primary-text); }
.watched-btn.delete:hover { border-color: var(--error); color: var(--error); background: var(--error-bg); }
@media (max-width: 640px) {
.watched-item { gap: 12px; padding: 12px; }
.watched-poster { width: 60px; height: 90px; }
.watched-title { font-size: 1rem; }
.watched-header { flex-direction: column; gap: 4px; }
.watched-actions { align-self: flex-end; margin-top: 8px; }
}
.tab-content { margin-top: 24px; overflow: hidden; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-more { text-align: center; margin-top: 24px; }

/* ==================== 设置页面 ==================== */
.settings-page { margin: 0 auto; }
.settings-section { margin-bottom: 32px; }
.settings-section .section-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.settings-section .section-title svg { color: var(--primary-text); }
.settings-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 0; overflow: hidden; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.auth-alert-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
@media (max-width: 768px) {
.user-profile-card { padding: 20px; }
.user-avatar { width: 56px; height: 56px; font-size: 1.4rem; }
.user-name { font-size: 1.2rem; }
.user-stats { flex-direction: column; }
.stat-item { padding: 14px 16px; }
.tab-btn { padding: 0.625rem 1rem; font-size: 0.875rem; }
}
@media (max-width: 480px) {
.user-profile-card { flex-wrap: wrap; gap: 12px; }
.user-actions { position: absolute; top: 16px; right: 16px; gap: 8px; }
.action-link { width: 32px; height: 32px; }
.action-link svg { width: 16px; height: 16px; }
.user-info { width: calc(100% - 80px); }
.watched-item { padding-bottom: 48px; }
.watched-actions { position: absolute; bottom: 6px; right: 12px; }
}

/* ==================== Admin 后台布局 ==================== */
.admin-page { max-width: 1000px; margin: 0 auto; padding: 20px 0; }
.admin-header { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 24px; }
.admin-title { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.admin-tabs { display: flex; width: 100%; min-width: 0; gap: 4px; overflow-x: auto; background: var(--bg-secondary); padding: 4px; border-radius: 10px; }
.admin-tab { flex-shrink: 0; padding: 8px 16px; font-size: 0.875rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; border-radius: 8px; transition: 0.2s ease; }
.admin-tab:hover { color: var(--text); }
.admin-tab.active { background: var(--bg); color: var(--primary-text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.admin-stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.stat-icon.users { background: var(--info-bg); color: var(--info); }
.stat-icon.movies { background: var(--warning-bg); color: var(--warning); }
.stat-icon.sites { background: var(--success-bg); color: var(--success); }
.stat-icon.feedback { background: #fce4ec; color: #c2185b; }
.stat-content { display: flex; flex-direction: column; }
.admin-stat-card .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.admin-stat-card .stat-label { font-size: 0.875rem; color: var(--text-muted); }
.admin-section { margin-bottom: 32px; }
.admin-section-title { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.admin-quick-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.quick-action-card { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 0.875rem; transition: 0.2s ease; }
.quick-action-card:hover { border-color: var(--primary-text); color: var(--primary-text); }
.action-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.quick-action-card:hover .action-icon { background: var(--primary-alpha); color: var(--primary-text); }
.admin-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 20px; overflow: hidden; }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.admin-card-header h3 { font-size: 1rem; font-weight: 600; color: var(--text); }
.admin-card-header .badge { font-size: 0.75rem; padding: 4px 10px; background: var(--bg-secondary); border-radius: 999px; color: var(--text-muted); }
.admin-card-body { padding: 20px; }
.admin-table-wrapper { overflow-x: auto; }
.admin-table { width: 100%; min-width: max-content; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { font-weight: 600; color: var(--text-muted); background: var(--bg-secondary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table tbody tr:hover { background: var(--bg-secondary); }
.match-detail { max-width: 260px; margin-top: 6px; color: var(--text-muted); font-size: 0.75rem; line-height: 1.5; }
.match-reason { margin-top: 6px; color: var(--text-muted); font-size: 0.75rem; }
.match-reason code { display: block; max-width: 220px; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.match-review-reason { min-width: 220px; resize: vertical; }
.match-review-actions { display: flex; gap: 8px; margin-top: 8px; }
.id-badge { display: inline-block; padding: 2px 8px; background: var(--bg-secondary); border-radius: 4px; font-size: 0.75rem; color: var(--text-muted); }
.key-badge { background: var(--success-bg); color: var(--success); padding: 2px 8px; border-radius: 4px; font-size: 0.875rem; }
.health-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.health-good { background: #22c55e; }
.health-warn { background: #f59e0b; }
.health-bad  { background: #ef4444; }
.health-none { color: var(--text-muted); }
span.health-bad { background: #ef4444; color: #fff; }
.health-sub { margin-left: 6px; font-size: 0.75rem; color: var(--text-muted); }
.role-badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; }
.role-admin { background: #fce4ec; color: #c2185b; }
.role-user { background: var(--bg-secondary); color: var(--text-muted); }
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; }
.status-active { background: var(--success-bg); color: var(--success); }
.status-inactive { background: #ffebee; color: #c62828; }
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-running { background: var(--info-bg); color: var(--info); }
.status-completed { background: var(--success-bg); color: var(--success); }
.status-failed { background: var(--error-bg); color: var(--error); }
.queue-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.queue-summary-card { padding: 18px 20px; }
.queue-summary-title { margin-bottom: 12px; color: var(--text); font-weight: 600; }
.queue-summary-counts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-muted); font-size: 0.875rem; }
.queue-summary-counts strong { color: var(--text); }
.queue-retry-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.queue-table .queue-error { max-width: 280px; color: var(--error); overflow-wrap: anywhere; }
.queue-pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.url-cell { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; color: var(--text-muted); }
.empty-cell { text-align: center; color: var(--text-muted); padding: 40px !important; }
/* 表单下方的说明文字。admin_filters / admin_collections
   都在用这个类，但一直没有定义，所以显示成了正文大小。
   直接挂在 .admin-card 下时还要自己补内边距：卡片本身没有 padding。 */
.form-help { color: var(--text-muted); font-size: 0.8rem; line-height: 1.6; }
.admin-card > .form-help { padding: 0 20px 16px; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-alpha); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; line-height: 1; }
.actions-cell { display: flex; gap: 8px; }
.admin-form { padding: 20px; }
.form-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 150px; margin-bottom: 0; }
.form-row .form-group.flex-2 { flex: 2; }
.form-checkbox { flex: 0 0 auto; display: flex; align-items: center; }
.form-checkbox label { display: flex; flex-direction: row; align-items: center; gap: 8px; margin-bottom: 0; cursor: pointer; white-space: nowrap; }
.description { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.875rem; }
.action-row { display: flex; align-items: center; gap: 16px; }
.result-message { font-size: 0.875rem; padding: 8px 16px; border-radius: 6px; }
.result-message.loading { color: var(--text-muted); }
.result-message.success { background: var(--success-bg); color: var(--success); }
.result-message.error { background: #ffebee; color: #c62828; }
.info-list { list-style: none; }
.info-list li { display: flex; padding: 12px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: none; }
.info-label { width: 120px; flex-shrink: 0; font-weight: 600; color: var(--text); }
.info-value { color: var(--text-secondary); }
.crawler-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.crawler-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.crawler-header { display: flex; gap: 16px; margin-bottom: 20px; }
.crawler-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.crawler-icon.movies { background: #fff3e0; color: #ef6c00; }
.crawler-icon.sites { background: #e8f5e9; color: #2e7d32; }
.crawler-title h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.crawler-stats { display: flex; gap: 20px; margin-bottom: 20px; }
.crawler-stat { display: flex; flex-direction: column; gap: 2px; }
.crawler-stat .stat-label { font-size: 0.75rem; color: var(--text-muted); }
.crawler-stat .stat-value { font-size: 1rem; font-weight: 600; color: var(--text); }
.btn-block { width: 100%; }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: var(--error); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: var(--success); }
.admin-filter { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.filter-btn { padding: 6px 14px; font-size: 0.875rem; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; transition: 0.2s ease; }
.filter-btn:hover { border-color: var(--primary-text); color: var(--primary-text); }
.filter-btn.active { background: var(--primary-solid); color: white; border-color: var(--primary-text); }
.type-badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 500; }
.type-bug { background: #ffebee; color: #c62828; }
.type-request { background: #e3f2fd; color: #1565c0; }
.type-suggestion { background: #e8f5e9; color: #2e7d32; }
.type-dmca { background: #fff3e0; color: #ef6c00; }
.status-resolved { background: var(--success-bg); color: var(--success); }
.status-rejected { background: #ffebee; color: #c62828; }
.content-cell { max-width: 300px; }
.feedback-content { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.link-btn { font-size: 0.75rem; color: var(--primary-text); }
.link-btn:hover { text-decoration: underline; }
.text-muted { color: var(--text-muted); }
.action-cell { display: flex; gap: 8px; white-space: nowrap; }
.admin-select { padding: 6px 12px; font-size: 0.875rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); cursor: pointer; transition: 0.2s ease; }
.admin-select:focus { outline: none; border-color: var(--primary-text); }
.admin-select:hover { border-color: var(--primary-text); }
.toast-message { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); padding: 12px 24px; background: #333; color: white; border-radius: 8px; font-size: 0.875rem; opacity: 0; transition: 0.2s ease; z-index: 9999; }
.toast-message.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==================== Modal 弹窗 ==================== */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal > .modal-overlay { position: absolute; inset: 0; background: var(--bg-overlay); backdrop-filter: blur(4px); }
.modal > .modal-content { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); animation: modalIn 0.2s ease-out; }
@keyframes modalIn {
from { opacity: 0; transform: translateY(-20px); }
to { opacity: 1; transform: translateY(0); }
}
.modal .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal .modal-header h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.modal .modal-close { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--text-muted); transition: 0.2s ease; cursor: pointer; background: transparent; border: none; }
.modal .modal-close:hover { background: var(--bg-secondary); color: var(--text); }
.modal > .modal-content .admin-form { padding: 20px; }
.modal > .modal-content .form-group { margin-bottom: 16px; }
.modal > .modal-content .form-group:last-of-type { margin-bottom: 0; }
.modal .modal-actions, .action-modal-overlay .modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.modal .modal-body { padding: 20px; }
.test-status-info { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 12px; }
.test-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--primary-alpha); border-top-color: var(--primary-text); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin {
to { transform: rotate(360deg); }
}
.result-summary { font-size: 0.875rem; font-weight: 500; color: var(--text); padding: 8px 12px; background: var(--bg-secondary); border-radius: 6px; }
@media (max-width: 768px) {
.admin-stats-grid { grid-template-columns: 1fr 1fr; }
.queue-summary-grid { grid-template-columns: 1fr; }
.form-row { flex-direction: column; }
.form-row .form-group { width: 100%; }
.crawler-grid { grid-template-columns: 1fr; }
}

/* ==================== 视频播放页面 ==================== */
.m3u8-player-page .header-icon, .m3u8-player-page .player-info li::before { color: var(--primary); }
.m3u8-player-page .info-header { color: var(--primary-light); }
.m3u8-player-page .url-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-alpha); }
.m3u8-player-page .play-btn { background: var(--primary-solid); color: var(--on-primary); }
.m3u8-player-page .play-btn:hover { background: var(--primary-solid-hover); box-shadow: 0 4px 15px var(--primary-alpha-high); }
.watch-page { display: flex; flex-direction: column; margin-top: -32px; width: 100%; }
.watch-breadcrumb { display: flex; align-items: center; gap: 8px; padding: 1rem; background: var(--bg); border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.watch-breadcrumb a { color: var(--primary-text); transition: opacity var(--transition); }
.watch-breadcrumb a:hover { opacity: 0.8; }
.breadcrumb-sep { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-muted); }
.video-section { width: 100%; padding: 0.5rem; position: relative; }
.video-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; }
.loading-spinner { width: 36px; height: 36px; border: 3px solid rgba(255, 255, 255, 0.2); border-top-color: var(--primary-text); border-radius: 50%; animation: spin 1s linear infinite; }
#artplayer-app { position: relative; width: 100%; background: #000; overflow: hidden; max-height: 90dvh; aspect-ratio: 16 / 9; }
.video-container:has(#artplayer-app > .art-video-player > .artplayer-plugin-danmuku) { padding-bottom: 40px; background: #000; }
#artplayer-app:has(> .art-video-player > .artplayer-plugin-danmuku) { overflow: visible; }
#artplayer-app > .art-video-player:has(> .artplayer-plugin-danmuku) { margin-bottom: 0; }
.video-info-section { padding: 24px 40px; max-width: 1200px; margin: 0 auto; width: 100%; }
.video-detail-card { display: flex; gap: 20px; margin-bottom: 20px; }
.detail-poster { flex-shrink: 0; width: 120px; }
.detail-poster img { width: 100%; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.detail-info { flex: 1; min-width: 0; }
.detail-title { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.current-ep { color: var(--primary-text); margin-left: 8px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag-item { display: inline-block; padding: 3px 10px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 4px; font-size: 0.75rem; color: var(--text-secondary); }
.tag-item.type { background: var(--primary-solid); border-color: var(--primary-text); color: white; }
.detail-meta { font-size: 0.875rem; line-height: 1.8; }
.meta-row { display: flex; }
.meta-label { color: var(--primary-text); flex-shrink: 0; margin-right: 4px; }
.meta-value { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.speed-indicator { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; vertical-align: middle; }
.speed-indicator.fast { background-color: #4caf50; }
.speed-indicator.normal { background-color: #ff9800; }
.speed-indicator.slow { background-color: #f44336; }
.video-summary { padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.video-summary p { font-size: 0.875rem; line-height: 1.8; color: var(--text-secondary); }
.video-episodes-section { margin-bottom: 24px; }
.episodes-header { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; color: var(--primary-text); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.episodes-icon { width: 18px; height: 18px; }
.source-selector { margin-left: auto; display: flex; gap: 8px; }
.source-btn { padding: 4px 12px; font-size: 0.75rem; font-weight: 500; color: var(--text-muted); background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 4px; transition: 0.2s ease; }
.source-btn:hover { border-color: var(--primary-text); color: var(--primary-text); }
.source-btn.active { background: var(--primary-solid); border-color: var(--primary-text); color: white; }
.episodes-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ep-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 60px; padding: 8px 16px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 4px; font-size: 0.875rem; color: var(--text); transition: 0.2s ease; }
.episodes-list > .ep-btn[hidden] { display: none; }
.ep-btn:not(:disabled):hover { border-color: var(--primary-text); color: var(--primary-text); }
.ep-btn:disabled { opacity: .45; cursor: not-allowed; }
.ep-btn.active { background: var(--primary-solid); border-color: var(--primary-text); color: white; }
.episode-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 8px; margin: 10px 0 14px; }
.episode-navigation:empty { display: none; }
.episode-nav-link, .episode-nav-current { min-width: 0; min-height: 52px; display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-elevated); }
.episode-nav-link { color: var(--text-secondary); }
.episode-nav-link.next { align-items: flex-end; text-align: right; border-color: var(--primary-alpha-high); color: var(--primary-text); }
.episode-nav-link:hover { border-color: var(--primary-text); color: var(--primary-text); }
.episode-nav-link.disabled { color: var(--text-muted); opacity: .5; }
.episode-nav-link small, .episode-nav-current small { max-width: 100%; overflow: hidden; color: var(--text-muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.episode-nav-current { align-items: center; text-align: center; background: var(--bg-secondary); }
.episode-nav-current strong { max-width: 160px; overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.episode-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; color: var(--text-muted); }
.episodes-expand-toggle { margin-top: 10px; padding: 5px 0; border: 0; background: transparent; color: var(--primary-text); font-size: .78rem; cursor: pointer; }
.episodes-expand-toggle:hover { text-decoration: underline; }
.alt-sources-list { display: flex; flex-wrap: wrap; gap: 10px; }
.alt-source-item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 4px; font-size: 0.875rem; color: var(--text); transition: background-color 0.2s, border-color 0.2s; }
.alt-source-item:hover { border-color: var(--primary-text); color: var(--primary-text); }
.alt-source-item.active { background: var(--primary-solid); border-color: var(--primary-text); color: white; pointer-events: none; }
.alt-source-name { font-weight: 500; }
.alt-source-quality, .alt-source-speed { font-size: 0.75rem; padding: 1px 6px; border-radius: 3px; line-height: 1.4; }
.alt-source-quality.stable { background: rgba(76, 175, 80, 0.15); color: #4caf50; }
.alt-source-quality.normal { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.alt-source-quality.unstable { background: rgba(244, 67, 54, 0.15); color: #f44336; }
.alt-source-quality.unknown { background: rgba(158, 158, 158, 0.15); color: #9e9e9e; }
.alt-source-speed.fast { color: #4caf50; }
.alt-source-speed.normal { color: #ffc107; }
.alt-source-speed.slow { color: #f44336; }
.alt-source-item.active .alt-source-quality, .alt-source-item.active .alt-source-speed { background: rgba(255, 255, 255, 0.2); color: white; }
.play-disclaimer { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 0.5rem; padding: 12px 16px; background: var(--warning-bg); border-left: 3px solid var(--warning); color: var(--text-secondary); }
.play-disclaimer .disclaimer-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--warning); }
.play-disclaimer .disclaimer-body { min-width: 0; }
.play-disclaimer .disclaimer-title { display: block; margin-bottom: 4px; font-size: 0.875rem; color: var(--warning); }
.play-disclaimer .disclaimer-text { margin: 0; font-size: 0.82rem; line-height: 1.6; }
.play-disclaimer .disclaimer-text em { font-style: normal; font-weight: 600; color: var(--text); }
.play-disclaimer .disclaimer-sub { margin-top: 4px; color: var(--text-muted); }
@media (max-width: 576px) {
.play-disclaimer { gap: 8px; padding: 8px 10px; border-left-width: 2px; }
.play-disclaimer .disclaimer-icon { width: 16px; height: 16px; margin-top: 1px; }
.play-disclaimer .disclaimer-title { margin-bottom: 2px; font-size: 0.78rem; line-height: 1.35; }
.play-disclaimer .disclaimer-text { font-size: 0.74rem; line-height: 1.45; }
.play-disclaimer .disclaimer-sub { margin-top: 2px; }
}
.video-actions-bar { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.video-action-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 1rem; color: var(--text-secondary); background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: 0.2s ease; white-space: nowrap; text-decoration: none; width: auto; height: auto; }
.video-action-btn:hover { background: var(--bg); border-color: var(--primary-text); color: var(--primary-text); transform: translateY(-2px); box-shadow: var(--shadow); }
.video-action-btn .action-icon { width: 18px; height: 18px; flex-shrink: 0; }
.video-action-btn.is-active { background: var(--primary-solid); border-color: var(--primary-text); color: #fff; }
.video-action-btn.is-active:hover { background: var(--primary-solid); border-color: var(--primary-text); color: #fff; opacity: 0.85; }
.play-watched-action { display: inline-flex; }

/* ==================== 视频播放页面响应式 ==================== */
@media (max-width: 768px) {
.watch-page { margin-top: -20px; }
.watch-breadcrumb { font-size: 0.75rem; }
.video-info-section { padding: 20px 16px; }
.video-detail-card { gap: 16px; }
.detail-poster { width: 90px; }
.detail-title { font-size: 1.1rem; }
.detail-tags { gap: 6px; }
.tag-item { padding: 2px 8px; font-size: 0.75rem; }
.detail-meta { font-size: 0.75rem; }
.episodes-header { flex-wrap: wrap; font-size: 0.875rem; }
.source-selector { width: 100%; margin-left: 0; margin-top: 8px; }
.ep-btn { min-width: 50px; padding: 6px 12px; font-size: 0.75rem; }
.episode-navigation { margin-top: 8px; }
.episode-nav-link, .episode-nav-current { min-height: 48px; padding: 7px 8px; font-size: .78rem; }
.episode-nav-current strong { max-width: 110px; font-size: .8rem; }
.video-info-section .movie-section { overflow: hidden; max-width: 100%; }
.video-info-section .search-result-grid { grid-template-columns: 1fr; }
.video-actions-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px; background: var(--bg-secondary); border-radius: 12px; border: 1px solid var(--border); }
.video-action-btn, .ad-skip-label { justify-content: center; padding: 10px; background: var(--bg); border-radius: 8px; border: 1px solid var(--border); white-space: normal; font-size: 0.875rem; min-width: 0; }
}
@media (max-width: 480px) {
.video-detail-card { gap: 12px; }
.detail-poster { width: 75px; }
.detail-title { font-size: 1rem; }
.current-ep { display: block; margin-left: 0; margin-top: 4px; font-size: 0.875rem; }
.meta-row { flex-direction: column; }
.meta-label { margin-bottom: 2px; }
.meta-value { white-space: normal; }
.video-actions-bar { grid-template-columns: 1fr; gap: 8px; }
.video-action-btn, .ad-skip-label { width: 100%; min-width: 0; white-space: normal; }
}

/* ==================== 反馈历史区域 ==================== */
.feedback-history-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.feedback-history-section .section-header { margin-bottom: 24px; }
.feedback-history-section .section-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 600; color: var(--text); }
.feedback-history-section .section-title svg { color: var(--primary-text); }
.feedback-filter { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.feedback-filter .filter-btn { padding: 6px 14px; font-size: 0.875rem; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.feedback-filter .filter-btn:hover { border-color: var(--primary-text); color: var(--primary-text); }
.feedback-filter .filter-btn.active { background: var(--primary-solid); color: white; border-color: var(--primary-text); }
.feedback-history { display: flex; flex-direction: column; gap: 16px; }
.feedback-item { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; transition: border-color var(--transition), box-shadow var(--transition); }
.feedback-item:hover { border-color: var(--primary-text); box-shadow: 0 4px 12px var(--primary-alpha); }
.feedback-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.feedback-type { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.feedback-type.bug { background: var(--error-bg); color: var(--error); }
.feedback-type.request { background: #e3f2fd; color: #1565c0; }
.feedback-type.suggestion { background: var(--success-bg); color: var(--success); }
.feedback-type.dmca { background: var(--warning-bg); color: var(--warning); }
.feedback-status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; }
.feedback-status.status-pending { background: var(--warning-bg); color: var(--warning); }
.feedback-status.status-resolved { background: var(--success-bg); color: var(--success); }
.feedback-status.status-rejected { background: var(--error-bg); color: var(--error); }
.feedback-time { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.feedback-body { display: flex; flex-direction: column; gap: 10px; }
.feedback-text { font-size: 0.875rem; line-height: 1.7; color: var(--text-secondary); word-break: break-word; }
.feedback-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--primary-text); transition: opacity var(--transition); }
.feedback-link:hover { opacity: 0.8; }
.feedback-reply { margin-top: 12px; padding: 12px; background: var(--bg-secondary); border-radius: 6px; border-left: 3px solid var(--primary); }
.feedback-reply-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 0.75rem; }
.reply-label { font-weight: 600; color: var(--primary-text); display: flex; align-items: center; gap: 4px; }
.reply-time { color: var(--text-muted); font-size: 0.75rem; }
.feedback-reply-content { font-size: 0.875rem; color: var(--text); line-height: 1.6; }
.load-more-wrapper { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 20px; }
.load-more-btn { padding: 10px 32px; font-size: 0.875rem; }
.feedback-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; text-align: center; color: var(--text-muted); }
.feedback-empty svg { margin-bottom: 16px; opacity: 0.5; }
.feedback-empty p { font-size: 1rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; }
.feedback-empty-hint { font-size: 0.875rem; }
.feedback-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; gap: 12px; color: var(--text-muted); font-size: 0.875rem; }
.feedback-loading.htmx-indicator { display: none; }
.htmx-request .feedback-loading.htmx-indicator, .htmx-request.feedback-loading.htmx-indicator { display: flex; }
@media (max-width: 768px) {
.feedback-history-section { margin-top: 32px; padding-top: 24px; }
.feedback-filter { gap: 6px; }
.feedback-filter .filter-btn { padding: 5px 12px; font-size: 0.75rem; }
.feedback-item { padding: 16px; }
.feedback-header { gap: 8px; }
.feedback-time { width: 100%; margin-left: 0; margin-top: 4px; }
}

/* ==================== 版权过滤提醒 ==================== */
.copyright-notice { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 1px solid rgba(239, 108, 0, 0.3); border-radius: 8px; margin-bottom: 16px; font-size: 0.875rem; color: var(--warning); }
.copyright-notice svg { flex-shrink: 0; color: #ff9800; }
@media (prefers-color-scheme: dark) {
.copyright-notice { background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 193, 7, 0.1) 100%); border-color: rgba(255, 152, 0, 0.4); color: #ffb74d; }
}

/* ==================== 分页导航 ==================== */
.pagination-container { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; padding: 1rem; }
.pagination-btn { padding: 0.5rem 1rem; background: var(--primary-solid); color: white; border: none; border-radius: 6px; cursor: pointer; transition: opacity var(--transition), transform var(--transition); font-size: 0.875rem; font-weight: 500; }
.pagination-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.pagination-info { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; }
.pagination-loading { display: none; text-align: center; padding: 1rem; }
.pagination-loading.htmx-request { display: block; }
.loading-spinner-small { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.1); border-radius: 50%; border-top-color: var(--primary-text); animation: spin 1s ease-in-out infinite; margin: 0 auto; }
[data-theme='dark'] .pagination-btn { background: var(--primary-dark); }
[data-theme='dark'] .pagination-btn:hover { background: var(--primary-solid); }

/* ==================== UI 组件：弹窗与评分标签 ==================== */
.action-modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); padding: 20px; }
.action-modal-overlay .modal-container { background: var(--bg); border: 1px solid var(--border); border-radius: 24px; width: 100%; max-width: 460px; padding: 32px; position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); animation: modalSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
.modal-close-btn { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-secondary); color: var(--text-muted); transition: all 0.2s; border: 1px solid var(--border); }
.modal-close-btn:hover { background: var(--border); color: var(--text); transform: rotate(90deg); }
.action-modal-overlay .modal-header { margin-bottom: 24px; text-align: left; }
.modal-title { font-size: 1.4rem; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.modal-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }
.score-chips-group { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.score-chip { flex: 1; min-width: 70px; padding: 12px 8px; border-radius: 12px; background: var(--bg-secondary); border: 2px solid var(--border); text-align: center; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.score-chip .chip-label { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); }
.score-chip .chip-desc { font-size: 0.75rem; color: var(--text-muted); }
.score-chip:hover { border-color: var(--primary); transform: translateY(-2px); background: var(--bg); }
.score-chip.active { background: var(--primary-solid); border-color: var(--primary-text); }
.score-chip.active .chip-label, .score-chip.active .chip-desc { color: #ffffff; }
.modal-form .form-label { display: block; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.modal-form .form-textarea { width: 100%; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 14px; padding: 16px; color: var(--text); font-size: 1rem; line-height: 1.5; resize: none; transition: all 0.2s; margin-top: 8px; }
.modal-form .form-textarea:focus { outline: none; border-color: var(--primary-text); background: var(--bg); box-shadow: 0 0 0 4px var(--primary-alpha); }
.modal-form .modal-actions { margin-top: 32px; display: flex; gap: 12px; }
.modal-form .modal-actions .btn { flex: 1; padding: 14px; border-radius: 14px; font-weight: 700; font-size: 1rem; transition: all 0.3s; }
.modal-form .btn-submit { background: var(--primary-solid); color: #ffffff; box-shadow: 0 4px 15px var(--primary-alpha-high); }
.modal-form .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--primary-alpha-high); background: var(--primary-dark); }
@keyframes modalFadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes modalSlideUp {
from { opacity: 0; transform: translateY(40px) scale(0.95); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.movie-actions .edit-form { display: none; }

/* ==================== 自动播放下一集浮层 ==================== */
.autoplay-overlay { position: absolute; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: autoplayFadeIn 0.3s ease; cursor: pointer; }
@keyframes autoplayFadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.autoplay-card { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 32px 40px; text-align: center; max-width: 380px; width: 90%; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); animation: autoplaySlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); cursor: default; }
@keyframes autoplaySlideUp {
from { opacity: 0; transform: translateY(20px) scale(0.95); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.autoplay-title { font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 8px; letter-spacing: 0.5px; }
.autoplay-next-name { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 20px; }
.autoplay-progress-ring { width: 80px; height: 80px; margin: 0 auto 20px; position: relative; }
.autoplay-progress-ring svg { transform: rotate(-90deg); }
.autoplay-progress-ring circle { fill: none; stroke-width: 4; }
.autoplay-progress-ring .ring-bg { stroke: rgba(255, 255, 255, 0.1); }
.autoplay-progress-ring .ring-fg { stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.autoplay-countdown { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.autoplay-actions { display: flex; gap: 12px; justify-content: center; }
.autoplay-btn { padding: 10px 24px; border-radius: 10px; font-size: 0.875rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
.autoplay-btn-cancel { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.15); }
.autoplay-btn-cancel:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.autoplay-btn-play { background: var(--primary-solid); color: #fff; }
.autoplay-btn-play:hover { background: var(--primary-solid-hover); transform: translateY(-1px); box-shadow: 0 4px 15px var(--primary-alpha-high); }
.autoplay-toggle { margin-top: 16px; font-size: 0.75rem; color: rgba(255, 255, 255, 0.35); cursor: pointer; user-select: none; transition: color 0.2s; }
.autoplay-toggle:hover { color: rgba(255, 255, 255, 0.6); }
@media (max-width: 768px) {
.autoplay-overlay { padding: 48px 12px 56px; }
.autoplay-card { padding: 20px 16px; border-radius: 12px; max-width: 100%; }
.autoplay-progress-ring { width: 56px; height: 56px; margin-bottom: 12px; }
.autoplay-countdown { font-size: 1.5rem; }
.autoplay-title { font-size: 0.75rem; margin-bottom: 4px; }
.autoplay-next-name { font-size: 1rem; margin-bottom: 14px; }
.autoplay-btn { padding: 8px 18px; font-size: 0.75rem; }
.autoplay-toggle { margin-top: 12px; font-size: 0.75rem; }
}
.htmx-progress { position: fixed; top: 0; left: 0; width: 0; height: 0; pointer-events: none; }
.htmx-progress-bar { display: none; }
.htmx-panel-shell { position: relative; min-height: 190px; }
.htmx-panel-shell-dashboard { min-height: 280px; }
.htmx-panel-indicator { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; justify-content: flex-start; padding: 24px 0; background: var(--bg); color: var(--text-muted); opacity: 0; visibility: hidden; pointer-events: none; }
body .htmx-panel-indicator.htmx-request { opacity: 0; visibility: visible; animation: htmx-indicator-reveal 160ms ease 150ms both; }
.htmx-loading-label { display: block; margin-top: 14px; color: var(--text-muted); font-size: 0.75rem; text-align: center; }
.htmx-skeleton-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: 100%; }
.htmx-skeleton-card { position: relative; overflow: hidden; min-height: 210px; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(var(--border), var(--border)) 12px calc(100% - 38px) / 68% 10px no-repeat, linear-gradient(var(--border), var(--border)) 12px calc(100% - 18px) / 42% 8px no-repeat, var(--bg-secondary); }
.htmx-skeleton-list { display: grid; gap: 12px; width: 100%; }
.htmx-skeleton-row { position: relative; overflow: hidden; min-height: 78px; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(var(--border), var(--border)) 86px 20px / 42% 10px no-repeat, linear-gradient(var(--border), var(--border)) 86px 42px / 66% 8px no-repeat, linear-gradient(var(--border), var(--border)) 14px 14px / 54px 50px no-repeat, var(--bg); }
.htmx-skeleton-card::before, .htmx-skeleton-row::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.42) 50%, transparent 80%); transform: translateX(-100%); animation: htmx-skeleton-shimmer 1.25s ease-in-out infinite; }
[data-theme='dark'] .htmx-skeleton-card::before, [data-theme='dark'] .htmx-skeleton-row::before { background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.08) 50%, transparent 80%); }
@keyframes htmx-indicator-reveal {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes htmx-skeleton-shimmer {
from { transform: translateX(-100%); }
to { transform: translateX(100%); }
}
@media (max-width: 720px) {
.htmx-skeleton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.htmx-skeleton-card:nth-child(n + 3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
body .htmx-panel-indicator.htmx-request { animation-duration: 1ms; }
.htmx-skeleton-card::before, .htmx-skeleton-row::before { animation: none; }
.spinner, .loading-spinner, .loading-spinner-small, .search-loading-spinner, .discover-spinner, .foryou-loading-spinner, .action-modal-overlay, .action-modal-overlay .modal-container { animation: none !important; }
}
.config-url-box { display: flex; align-items: center; gap: 0.75rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; margin: 0.75rem 0; overflow-x: auto; }
.config-url-box code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.875rem; color: var(--primary-text); word-break: break-all; flex: 1; }
.copy-btn { flex-shrink: 0; padding: 0.4rem 1rem; background: var(--primary-solid); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 0.875rem; font-weight: 500; transition: opacity 0.2s; }
.copy-btn:hover { opacity: 0.85; }
.tvbox-screenshots { display: flex; gap: 1rem; margin: 1rem 0; }
.screenshot-item { flex: 1; }
.screenshot-placeholder { background: var(--bg-secondary); border: 1px dashed var(--border); border-radius: 8px; padding: 2rem 1rem; text-align: center; color: var(--text-secondary); font-size: 0.875rem; }
.screenshot-caption { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ====== 公开主页 /user/:id ====== */
.pub-page { padding: 0 1rem 3rem; }
.pub-hero { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.pub-hero-inner { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.pub-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-alpha); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.pub-ident { flex: 1; min-width: 0; }
.pub-username { font-size: 1.375rem; font-weight: 700; margin: 0 0 0.25rem; line-height: 1.3; }
.pub-joined { color: var(--text-muted); font-size: 0.8125rem; margin: 0; }
.pub-hero-actions { flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem; }
/* 胶囊按钮的形状和尺寸：分享与关注共用一套。
   两者在公开主页 hero 里并排，各写各的尺寸必然对不齐。 */
/* 高度写死而不是用内边距撑：分享按钮里是 16px 图标、关注按钮是文字，
   移动端分享还会隐藏文字变成纯图标，内容高度三种情况都不同。
   固定高度 + 居中，无论里面放什么，并排永远等高。 */
.pub-share-btn, .follow-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; height: 2.25rem; padding: 0 1rem; border: 1px solid transparent; border-radius: 999px; font-size: 0.8125rem; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
/* 描边皮肤：分享，以及已关注状态 */
.pub-share-btn, .follow-btn.following { background: var(--bg); color: var(--text-secondary); border-color: var(--border-strong); font-weight: 500; }
.pub-share-btn:hover { border-color: var(--primary-text); color: var(--primary-text); }
.pub-share-btn.copied { border-color: var(--success); color: var(--success); }
/* 实心皮肤：还没关注时，关注是这一屏的主操作 */
.follow-btn { background: var(--primary-solid); color: var(--on-primary); font-weight: 600; }
/* :not(.following) 不能省：.follow-btn:hover 和 .follow-btn.following 特异性相同，
   谁写在后面谁赢，会把「已关注」在鼠标悬停时刷回实心红。 */
.follow-btn:not(.following):hover { background: var(--primary-solid-hover); }
.follow-btn.following:hover { color: var(--error); border-color: var(--error-border); }
.follow-count { font-weight: 500; opacity: 0.75; }
.pub-stats { display: flex; gap: 0; }
.pub-stat { flex: 1; text-align: center; padding: 0.75rem 0; }
.pub-stat + .pub-stat { border-left: 1px solid var(--border); }
.pub-stat-num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.pub-stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.125rem; }
.pub-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pub-tab { padding: 0.75rem 1.25rem; font-size: 0.9375rem; font-weight: 500; color: var(--text-muted); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.pub-tab:hover { color: var(--text-secondary); }
.pub-tab.active { color: var(--primary-text); border-bottom-color: var(--primary-text); }
.pub-tab-count { font-size: 0.75rem; color: var(--text-muted); margin-left: 0.25rem; }
.pub-tab.active .pub-tab-count { color: var(--primary-text); opacity: 0.7; }
.pub-panel { display: none; }
.pub-panel.active { display: block; }
.pub-wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.pub-wish-card { display: block; text-decoration: none; color: inherit; border-radius: var(--radius-sm); overflow: hidden; }
.pub-wish-card:hover .pub-wish-title { color: var(--primary-text); }
.pub-wish-poster { position: relative; aspect-ratio: 2/3; background: var(--bg-secondary); border-radius: var(--radius-sm); overflow: hidden; }
.pub-wish-poster img { width: 100%; height: 100%; object-fit: cover; }
.pub-wish-rating { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.7); color: var(--rating-star); font-size: 0.6875rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.pub-wish-info { padding: 0.5rem 0.125rem 0; }
.pub-wish-title { font-size: 0.8125rem; font-weight: 600; margin: 0; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-wish-year { font-size: 0.6875rem; color: var(--text-muted); margin: 0.125rem 0 0; }
.pub-timeline { display: flex; flex-direction: column; gap: 1.25rem; }
.pub-tl-item { display: flex; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.pub-tl-item:last-child { border-bottom: none; padding-bottom: 0; }
.pub-tl-poster { flex-shrink: 0; width: 72px; }
.pub-tl-poster a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.pub-tl-poster img { width: 72px; height: 108px; object-fit: cover; display: block; }
.pub-tl-body { flex: 1; min-width: 0; }
.pub-tl-head { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.375rem; flex-wrap: wrap; }
.pub-tl-title { font-size: 1rem; font-weight: 600; color: var(--text); text-decoration: none; }
.pub-tl-title:hover { color: var(--primary-text); }
.pub-tl-year { font-size: 0.8125rem; color: var(--text-muted); }
.pub-tl-rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.375rem; }
.pub-tl-stars { color: var(--rating-star); font-size: 0.875rem; letter-spacing: 1px; }
.pub-tl-score { font-size: 0.8125rem; font-weight: 700; color: var(--text-secondary); }
.pub-tl-no-rating { font-size: 0.8125rem; color: var(--text-muted); font-style: italic; }
.pub-tl-comment { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin: 0 0 0.375rem; }
.pub-tl-time { font-size: 0.75rem; color: var(--text-muted); }
.pub-monthly-list { display: flex; flex-direction: column; gap: 0.75rem; }
.pub-monthly-card { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem; background: var(--bg-secondary); border-radius: var(--radius-sm); text-decoration: none; color: inherit; transition: background 0.2s, box-shadow 0.2s; }
.pub-monthly-card:hover { background: var(--brand-bg-light); box-shadow: var(--shadow); }
.pub-monthly-tag { flex-shrink: 0; width: 52px; height: 52px; border-radius: 10px; background: linear-gradient(160deg, #1a1710 0%, #121115 60%, #0d0d10 100%); color: #f3ede2; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.pub-monthly-tag-m { font-size: 1.05rem; font-weight: 700; font-family: "Noto Serif SC", serif; }
.pub-monthly-tag-y { font-size: 0.625rem; color: #e3b25c; letter-spacing: 0.5px; margin-top: 2px; }
.pub-monthly-body { flex: 1; min-width: 0; }
.pub-monthly-persona { font-size: 0.9375rem; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-monthly-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.pub-monthly-best-poster { width: 32px; height: 45px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.pub-monthly-arrow { flex-shrink: 0; color: var(--text-muted); opacity: 0.5; transition: opacity 0.2s; }
.pub-monthly-card:hover .pub-monthly-arrow { opacity: 1; }
.pub-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.pub-empty svg { margin-bottom: 0.75rem; }
.pub-empty p { font-size: 0.9375rem; }
@media (max-width: 640px) {
.pub-page { padding: 0 0.75rem 2rem; }
.pub-hero-inner { gap: 0.75rem; }
.pub-avatar { width: 52px; height: 52px; font-size: 1.25rem; }
.pub-username { font-size: 1.125rem; }
.pub-share-label { display: none; }
.pub-share-btn { padding: 0 0.5rem; }
.pub-stat-num { font-size: 1.25rem; }
.pub-tab { padding: 0.625rem 1rem; font-size: 0.875rem; }
.pub-wish-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.75rem; }
.pub-tl-poster { width: 56px; }
.pub-tl-poster img { width: 56px; height: 84px; }
.pub-tl-title { font-size: 0.9375rem; }
.pub-monthly-card { padding: 0.875rem 1rem; gap: 0.75rem; }
.pub-monthly-best-poster { display: none; }
}

/* ====== 月度观影小记 /user/:id/monthly/:ym ====== */
.monthly-page { max-width: 900px; margin: 0 auto; padding: 0 1rem 3rem; }
.monthly-top-bar { padding: 1.5rem 0 1rem; }
.monthly-layout { display: flex; align-items: flex-start; gap: 2.5rem; }
.monthly-card-col { flex: 0 0 380px; width: 380px; }
.monthly-list-col { flex: 1; min-width: 0; padding-top: 4px; }
.monthly-list-col .monthly-full-list { margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--text-secondary); font-size: 0.875rem; text-decoration: none; }
.back-link:hover { color: var(--primary-text); }
.monthly-full-list { margin-bottom: 2rem; }
.monthly-list-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.monthly-movie-list { display: flex; flex-direction: column; gap: 1rem; }
.monthly-movie-item { display: flex; gap: 0.875rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.monthly-movie-item:last-child { border-bottom: none; }
.monthly-movie-poster { flex-shrink: 0; width: 56px; }
.monthly-movie-poster a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.monthly-movie-poster img { width: 56px; height: 84px; object-fit: cover; display: block; }
.monthly-movie-body { flex: 1; min-width: 0; }
.monthly-movie-title { font-size: 0.9375rem; font-weight: 600; color: var(--text); text-decoration: none; display: block; margin-bottom: 0.25rem; }
.monthly-movie-title:hover { color: var(--primary-text); }
.monthly-movie-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; margin-bottom: 0.25rem; }
.monthly-movie-stars { color: var(--rating-star); letter-spacing: 1px; }
.monthly-movie-score { font-weight: 700; color: var(--text-secondary); }
.monthly-movie-meta time { color: var(--text-muted); font-size: 0.75rem; }
.monthly-movie-comment { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; margin: 0; }

/* ====== 月度观影小记卡片：电影票根 ====== */
.mc-card-wrap { max-width: 380px; margin: 0 auto 2rem; }
.mc-card { width: 100%; border-radius: 24px; overflow: hidden; position: relative; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.mc-feature { position: relative; background: radial-gradient(120% 90% at 100% 0%, rgba(227, 178, 92, 0.16), transparent 50%), linear-gradient(160deg, #1a1710 0%, #121115 55%, #0d0d10 100%); color: #f3ede2; padding: 26px 22px 20px; }
.mc-feature::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E"); background-size: 180px 180px; opacity: 0.06; mix-blend-mode: overlay; pointer-events: none; }
.mc-feature-top { position: relative; display: flex; justify-content: space-between; align-items: center; z-index: 1; }
.mc-feature-brand { font-size: 11px; letter-spacing: 3px; font-weight: 700; color: #e3b25c; }
.mc-feature-issue { font-size: 11px; letter-spacing: 1px; color: rgba(243, 237, 226, 0.5); font-family: "SFMono-Regular", Consolas, monospace; }
.mc-feature-top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.mc-feature-user { font-size: 11px; letter-spacing: 0.5px; color: rgba(243, 237, 226, 0.75); font-weight: 600; }
.mc-persona { position: relative; z-index: 1; margin-top: 24px; }
.mc-persona-label { font-size: 12px; color: rgba(243, 237, 226, 0.55); }
.mc-persona-title { margin-top: 6px; font-family: "Noto Serif SC", "Source Han Serif SC", Georgia, serif; font-size: 30px; font-weight: 700; line-height: 1.28; }
.mc-persona-line { margin-top: 10px; font-size: 13px; line-height: 1.6; font-style: italic; color: rgba(243, 237, 226, 0.72); }
.mc-filmstrip { position: relative; z-index: 1; display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.mc-filmstrip-item { flex: 0 1 78px; max-width: 78px; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; position: relative; background: linear-gradient(160deg, #3a3a42, #16161a); }
.mc-filmstrip-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mc-filmstrip-item:nth-child(4n+1) { transform: rotate(-3deg); }
.mc-filmstrip-item:nth-child(4n+2) { transform: rotate(2deg); }
.mc-filmstrip-item:nth-child(4n+3) { transform: rotate(-2deg); }
.mc-filmstrip-item:nth-child(4n+4) { transform: rotate(3deg); }
.mc-filmstrip-cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 4px 5px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.82)); font-size: 11px; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-filmstrip-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10, 10, 12, 0.72); color: #fff; font-family: "Noto Serif SC", serif; font-weight: 700; font-size: 16px; }
.mc-perf { position: relative; height: 0; border-top: 2px dashed rgba(243, 237, 226, 0.3); background: #121115; }
.mc-perf::before, .mc-perf::after { content: ""; position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.mc-perf::before { left: -10px; }
.mc-perf::after { right: -10px; }
.mc-stub { background: #f3ede2; color: #2a231a; padding: 18px 22px 20px; }
.mc-fields { display: flex; justify-content: space-between; font-family: "SFMono-Regular", Consolas, monospace; }
.mc-field-label { font-size: 11px; letter-spacing: 1px; color: #8a7d68; }
.mc-field-value { font-size: 18px; font-weight: 700; margin-top: 2px; }
.mc-featured { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(42, 35, 26, 0.2); }
.mc-featured-poster { width: 40px; height: 56px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: #cabfa8; }
.mc-featured-body { flex: 1; min-width: 0; }
.mc-featured-label { font-size: 11px; letter-spacing: 1px; color: #8a7d68; }
.mc-featured-title { font-size: 14px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-featured-rating { font-family: "SFMono-Regular", Consolas, monospace; font-size: 14px; font-weight: 700; color: #b5822c; flex-shrink: 0; }
.mc-quote { margin-top: 14px; font-family: "Noto Serif SC", serif; font-style: italic; font-size: 13px; line-height: 1.6; color: #5b5142; }
.mc-stub-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(42, 35, 26, 0.2); }
.mc-barcode { display: flex; gap: 2px; height: 32px; align-items: flex-end; }
.mc-barcode span { display: block; width: 2px; height: 100%; background: #2a231a; }
.mc-barcode span:nth-child(3n) { width: 1px; height: 65%; }
.mc-barcode span:nth-child(4n) { width: 3px; height: 85%; }
.mc-barcode span:nth-child(5n) { height: 55%; }
.mc-qr { flex-shrink: 0; width: 44px; height: 44px; }
.mc-qr img { display: block; width: 100%; height: 100%; border-radius: 4px; }
.mc-stub-hint { text-align: center; font-size: 11px; color: #8a7d68; margin-top: 10px; }
.mc-stub-domain { text-align: center; font-size: 10px; letter-spacing: 1px; color: #b0a692; margin-top: 3px; font-family: "SFMono-Regular", Consolas, monospace; }
.monthly-actions { text-align: center; margin: 1.5rem 0; }
.mc-share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--primary-solid); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.mc-share-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.mc-share-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.monthly-bottom-note { text-align: center; color: var(--text-muted); font-size: 0.75rem; margin-top: 0.5rem; }
.monthly-overlap { text-align: center; font-size: 0.8125rem; color: var(--text-secondary); background: var(--bg-secondary); border-radius: 10px; padding: 10px 14px; margin: 0.75rem 0; }
.monthly-overlap strong { color: var(--primary-text); }

/* ====== 响应式 ====== */
@media (max-width: 860px) {
.monthly-layout { flex-direction: column; align-items: center; gap: 0; }
.monthly-card-col { width: 100%; max-width: 380px; flex: initial; }
.monthly-list-col { width: 100%; max-width: 480px; padding-top: 0; }
}
@media (max-width: 480px) {
.mc-card-wrap { max-width: 100%; padding: 0 16px; }
.mc-feature, .mc-stub { padding-left: 18px; padding-right: 18px; }
.mc-persona-title { font-size: 26px; }
.mc-field-value { font-size: 16px; }
}

/* ==================== 片场 ==================== */
.cinema-page { --cinema-accent: var(--primary); max-width: 1120px; margin: 0 auto; }
.cinema-masthead { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 36px; padding: 24px 0 32px; border-top: 3px solid var(--text); border-bottom: 1px solid var(--border); }
.cinema-kicker, .cinema-program-seen { margin: 0 0 12px; color: var(--cinema-accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; }
.cinema-masthead h1 { margin: 0; font-family: "Songti SC", "Noto Serif SC", Georgia, serif; font-size: clamp(4rem, 9vw, 7.5rem); font-weight: 700; letter-spacing: -0.08em; line-height: 0.88; }
.cinema-intro { margin: 22px 0 0; color: var(--text-secondary); font-family: "Songti SC", "Noto Serif SC", Georgia, serif; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.cinema-week { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; padding-bottom: 4px; }
.cinema-week span { color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.12em; }
.cinema-week strong { font-family: "Songti SC", "Noto Serif SC", Georgia, serif; font-size: clamp(1.25rem, 2.6vw, 2rem); font-weight: 500; white-space: nowrap; }
.cinema-section { padding-top: clamp(40px, 6vw, 72px); }
.cinema-section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.cinema-section-number { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid color-mix(in srgb, var(--cinema-accent) 55%, var(--border)); border-radius: 50%; color: var(--cinema-accent); font-size: 0.75rem; font-weight: 700; }
.cinema-section-heading h2 { margin: 0; font-family: "Songti SC", "Noto Serif SC", Georgia, serif; font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.1; }
.cinema-section-heading p { margin: 7px 0 0; color: var(--text-muted); font-size: 0.86rem; line-height: 1.6; }
.cinema-program { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--border); background: var(--border); }
.cinema-program-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; min-height: 180px; padding: 22px; background: var(--bg); }
.cinema-program-feature { grid-column: span 2; grid-row: span 2; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); align-items: end; padding: clamp(24px, 4vw, 42px); }
.cinema-program-feature:only-child { grid-column: 1 / -1; grid-template-columns: minmax(150px, 240px) minmax(0, 420px); }
.cinema-program-poster { display: block; min-width: 0; overflow: hidden; background: var(--bg-secondary); aspect-ratio: 2 / 3; }
.cinema-program-poster img, .cinema-comment-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 420ms cubic-bezier(.16, 1, .3, 1); }
.cinema-program-item:hover .cinema-program-poster img, .cinema-comment:hover .cinema-comment-poster img { transform: scale(1.035); }
.cinema-program-copy { align-self: end; min-width: 0; }
.cinema-program-copy h3 { margin: 0; font-family: "Songti SC", "Noto Serif SC", Georgia, serif; font-size: 1rem; line-height: 1.35; }
.cinema-program-feature .cinema-program-copy h3 { font-size: clamp(1.55rem, 3vw, 2.7rem); }
.cinema-program-copy h3 a { color: var(--text); text-decoration: none; }
.cinema-program-copy h3 a:hover { color: var(--cinema-accent); }
.cinema-program-seen { margin-bottom: 8px; letter-spacing: 0.08em; }
.cinema-program-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 12px; color: var(--text-muted); font-size: 0.76rem; }
.cinema-rating, .cinema-comment-rating .is-filled { color: var(--rating-star, #d79a2b); }
.cinema-columns { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(270px, 0.8fr); gap: clamp(44px, 7vw, 84px); }
.cinema-comment-list { border-top: 1px solid var(--text); }
.cinema-comment { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: clamp(18px, 3vw, 30px); padding: 26px 0; border-bottom: 1px solid var(--border); }
.cinema-comment-poster { align-self: start; overflow: hidden; background: var(--bg-secondary); aspect-ratio: 2 / 3; }
.cinema-comment-body { min-width: 0; }
.cinema-comment-meta { display: flex; flex-wrap: wrap; gap: 4px 7px; color: var(--text-muted); font-size: 0.76rem; }
.cinema-comment-meta a { color: var(--text-secondary); text-decoration: none; }
.cinema-comment-meta a:first-child { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 600; }
.cinema-comment-meta a:hover { color: var(--cinema-accent); }
.cinema-comment blockquote { margin: 14px 0 18px; color: var(--text); font-family: "Songti SC", "Noto Serif SC", Georgia, serif; font-size: clamp(1.04rem, 2vw, 1.3rem); line-height: 1.7; }
.cinema-comment blockquote::before { content: "“"; margin-left: -0.55em; color: var(--cinema-accent); }
.cinema-comment-footer, .cinema-comment-actions { display: flex; align-items: center; }
.cinema-comment-footer { flex-wrap: wrap; gap: 8px 16px; color: var(--text-muted); font-size: 0.72rem; }
.cinema-comment-rating { letter-spacing: -0.08em; }
.cinema-comment-actions { gap: 12px; margin-left: auto; }
.cinema-page .comment-like-btn, .cinema-page .comment-reply-toggle, .cinema-login-action { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--text-muted); font: inherit; text-decoration: none; cursor: pointer; }
.cinema-page .comment-like-btn:hover, .cinema-page .comment-like-btn.liked, .cinema-page .comment-reply-toggle:hover, .cinema-login-action:hover { color: var(--cinema-accent); }
.cinema-page .comment-replies-container:empty { display: none; }
.cinema-page .comment-replies-container { margin-top: 14px; padding-left: 14px; border-left: 1px solid var(--border); }
.cinema-page .comment-reply-list { display: grid; gap: 8px; margin-bottom: 10px; }
.cinema-page .comment-reply-item { display: flex; flex-wrap: wrap; gap: 6px; color: var(--text-secondary); font-size: 0.75rem; }
.cinema-page .comment-reply-user, .cinema-page .comment-reply-time { color: var(--text-muted); }
.cinema-page .comment-reply-form { display: flex; gap: 8px; }
.cinema-page .comment-reply-input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px; background: transparent; color: var(--text); }
.cinema-page .comment-reply-login-hint { margin: 0; color: var(--text-muted); font-size: 0.75rem; }
.cinema-radar { align-self: start; }
.cinema-friend-list { margin: 0; padding: 0; border-top: 1px solid var(--text); list-style: none; }
.cinema-friend-list li { border-bottom: 1px solid var(--border); }
.cinema-friend-row { display: flex; align-items: center; gap: 10px; }
.cinema-friend { flex: 1; min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; padding: 17px 0; color: var(--text); text-decoration: none; }
.cinema-friend-avatar { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--bg-secondary); font-size: 1.1rem; }
.cinema-friend-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.cinema-friend-copy strong { overflow: hidden; font-size: 0.88rem; text-overflow: ellipsis; white-space: nowrap; }
.cinema-friend-copy small { color: var(--text-muted); font-size: 0.74rem; }
.cinema-quiet-state, .cinema-radar-empty { padding: 36px; border: 1px dashed var(--border); color: var(--text-muted); }
.cinema-quiet-state p, .cinema-radar-empty p { margin: 0 0 9px; }
.cinema-quiet-state a, .cinema-radar-empty a { color: var(--cinema-accent); text-decoration: none; }
.cinema-radar-empty { text-align: center; }
.cinema-radar-sweep { display: block; width: 62px; height: 62px; margin: 0 auto 18px; border: 1px solid var(--border); border-radius: 50%; background: conic-gradient(from 10deg, transparent 0 72%, color-mix(in srgb, var(--cinema-accent) 34%, transparent)); }
@media (max-width: 900px) {
.cinema-program { grid-template-columns: 1fr 1fr; }
.cinema-program-feature { grid-column: 1 / -1; }
.cinema-columns { grid-template-columns: 1fr; }
.cinema-radar { max-width: 560px; }
}
@media (max-width: 620px) {
.cinema-page { padding: 0; }
.cinema-masthead { grid-template-columns: 1fr; gap: 24px; }
.cinema-week { align-items: flex-start; }
.cinema-program { display: flex; flex-direction: column; }
.cinema-program-item, .cinema-program-feature, .cinema-program-feature:only-child { grid-template-columns: 92px minmax(0, 1fr); min-height: 0; padding: 18px; }
.cinema-program-feature .cinema-program-copy h3 { font-size: 1.3rem; }
.cinema-comment { grid-template-columns: 58px minmax(0, 1fr); gap: 16px; }
.cinema-comment-footer { align-items: flex-start; flex-direction: column; }
.cinema-comment-actions { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
.cinema-program-poster img, .cinema-comment-poster img { transition: none; }
}

/* ==================== Watch 页面（内容优先） ==================== */
.watch-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.w-icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; flex-shrink: 0; }
.watch-now-bar-wrap { width: 100%; padding: 0 0.5rem; position: relative; }
.watch-now-bar { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.watch-now-title { font-size: 1.15rem; font-weight: 600; }
.watch-now-ep { color: var(--primary-text); font-weight: 500; font-size: 1rem; }
.watch-now-rating { color: var(--primary-text); font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.watch-now-source { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-secondary); cursor: pointer; padding: 4px 10px; border-radius: 4px; border: 1px solid var(--border); transition: border-color 0.2s; }
.watch-now-source:hover { border-color: var(--primary-text); }
.w-source-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.w-source-dot.stable { background: var(--success, #4caf50); }
.w-source-dot.normal { background: var(--warning, #ffc107); }
.w-source-dot.unstable { background: var(--error, #f44336); }
.w-source-dot.unknown { background: #9e9e9e; }
.w-source-dot.good { background: var(--success, #4caf50); }
.watch-info-card { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.watch-poster-wrap { flex-shrink: 0; }
.watch-poster { width: 120px; border-radius: 6px; display: block; object-fit: cover; aspect-ratio: 2/3; background: var(--bg-secondary); }
.watch-info-body { flex: 1; min-width: 0; }
.watch-info-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.watch-info-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.watch-tag { font-size: 0.75rem; padding: 2px 8px; border-radius: 3px; background: var(--bg-secondary); color: var(--text-secondary); }
.watch-info-meta { font-size: 0.875rem; color: var(--text-secondary); }
.watch-meta-line { margin-top: 4px; }
.watch-meta-label { color: var(--text-muted); font-size: 0.75rem; }
.watch-summary { margin-top: 10px; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.watch-summary.expanded { -webkit-line-clamp: unset; }
.watch-detail-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 0.82rem; color: var(--primary-text); }
.watch-detail-link:hover { text-decoration: underline; }
@media (max-width: 640px) {
.watch-poster { width: 80px; }
.watch-summary { -webkit-line-clamp: 2; }
}
.watch-section { margin-top: 22px; }
.watch-section-title { font-size: 1rem; font-weight: 600; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.watch-source-panel { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 16px; }
/* 顶部那块是信息条下方的浮层：收起时不占位，展开时盖在播放器上，不推动布局。
   z-index 要压过播放器——#artplayer-app 没有 z-index，内部控件层会直接参与比较。 */
.watch-source-panel.floating { display: none; position: absolute; top: 100%; left: 0.5rem; right: 0.5rem; z-index: 200; margin-top: 0; background: var(--bg-elevated); box-shadow: var(--shadow-lg); }
.watch-source-panel.floating.open { display: block; }
/* 限高只有浮层需要，免得来源多时顶穿屏幕；下方那块是常规区块，跟着页面滚就行。 */
.watch-source-panel.floating .watch-source-body { max-height: 60vh; overflow-y: auto; }
.watch-source-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; user-select: none; font-size: 0.875rem; color: var(--text-secondary); }
.watch-source-header:hover { color: var(--text); }
.watch-arrow { transition: transform 0.2s; }
.watch-source-panel.open .watch-arrow { transform: rotate(180deg); }
.watch-source-body { display: none; padding: 0 16px 14px; gap: 8px; }
/* 来源名长短不一，flex 换行会参差不齐；固定三列对齐，手机降到一列。 */
.watch-source-panel.open .watch-source-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.watch-source-chip { display: flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 4px; font-size: 0.82rem; background: var(--bg-secondary); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; color: var(--text-secondary); min-width: 0; }
.watch-source-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.watch-version-tag { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; }
.watch-source-chip:hover { border-color: var(--primary-text); color: var(--text); }
.watch-source-chip.active { background: rgba(224, 144, 21, 0.15); border-color: var(--primary-text); color: var(--primary-text); font-weight: 500; }
/* 稳定度标签固定在最右端。速度存在时由它顶开左边的空白，缺速度时标签自己顶。 */
.watch-quality-tag { font-size: 0.75rem; padding: 1px 5px; border-radius: 2px; flex-shrink: 0; margin-left: auto; }
.watch-speed + .watch-quality-tag { margin-left: 0; }
.watch-quality-tag.stable { background: rgba(76, 175, 80, 0.15); color: #4caf50; }
.watch-quality-tag.normal { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.watch-quality-tag.unstable { background: rgba(244, 67, 54, 0.15); color: #f44336; }
.watch-quality-tag.unknown { background: rgba(158, 158, 158, 0.15); color: #9e9e9e; }
.watch-speed { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; margin-left: auto; }
@media (max-width: 768px) {
.watch-source-panel.open .watch-source-body { grid-template-columns: minmax(0, 1fr); }
/* 手机上标题和评分先占满第一行，"当前线路"独占第二行整行：源名靠左，箭头贴右。 */
.watch-now-source { flex-basis: 100%; margin-left: 0; }
.watch-now-source > #currentSourceLabel { margin-right: auto; }
}
.watch-action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.watch-action-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 4px; font-size: 0.875rem; background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }
.watch-action-btn:hover { border-color: var(--primary-text); color: var(--primary-text); }
.watch-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--bg-secondary); border: 1px solid var(--border); padding: 10px 20px; border-radius: 6px; font-size: 0.875rem; color: var(--text); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); display: none; align-items: center; gap: 8px; z-index: 100; }
.watch-toast.show { display: inline-flex; }

/* ===== 追剧更新时间 ===== */
.air-schedule { margin: 16px 0; padding: 12px 14px; background: var(--brand-bg-light); border: 1px solid var(--primary-alpha-high); border-radius: var(--radius-sm); }
.air-schedule-main { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; color: var(--text); }
.air-schedule-icon { width: 16px; height: 16px; color: var(--primary-text); flex-shrink: 0; }
.air-schedule-label { color: var(--text-secondary); }
.air-schedule-ep { font-weight: 600; color: var(--primary-text); }
.air-schedule-dot { color: var(--text-muted); }
.air-schedule-date { color: var(--text); }
.air-schedule-relative { margin-left: auto; padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; color: var(--text-secondary); background: var(--bg-secondary); border: 1px solid var(--border); }
.air-schedule-relative-soon { color: #fff; background: var(--primary-solid); border-color: var(--primary-text); }
.air-schedule-more { margin-top: 8px; }
.air-schedule-more > summary { cursor: pointer; font-size: 0.75rem; color: var(--text-secondary); list-style: none; user-select: none; }
.air-schedule-more > summary::-webkit-details-marker { display: none; }
.air-schedule-more > summary::before { content: "▸ "; color: var(--text-muted); }
.air-schedule-more[open] > summary::before { content: "▾ "; }
.air-schedule-more > summary:hover { color: var(--primary-text); }
.air-schedule-list { margin: 8px 0 0; padding: 0; list-style: none; }
.air-schedule-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.75rem; color: var(--text-secondary); border-top: 1px dashed var(--border); }
.air-schedule-list-ep { min-width: 62px; font-weight: 600; color: var(--text); }
.air-schedule-list-relative { margin-left: auto; color: var(--text-muted); }
@media (max-width: 600px) {
.air-schedule-main { font-size: 0.82rem; }
.air-schedule-relative { margin-left: 0; }
}

/* ===== 首页今日更新 ===== */
.today-updates-hint { color: var(--text-muted); font-weight: normal; font-size: 0.75rem; }
.today-updates-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.today-update-card { display: flex; align-items: center; gap: 10px; padding: 8px; text-decoration: none; color: inherit; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.today-update-card:hover { border-color: var(--primary-text); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.today-update-poster { width: 46px; height: 66px; flex-shrink: 0; object-fit: cover; border-radius: 4px; background: var(--border); }
.today-update-poster-empty { display: block; }
.today-update-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.today-update-title { font-size: 0.88rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-update-ep { font-size: 0.75rem; color: var(--primary-text); }
.today-update-progress { font-size: 0.72rem; color: var(--text-muted); }

/* Ad-skip toggle (play/watch pages) */
.ad-skip-toggle, .ad-skip-toggle form { display: contents; }
.ad-skip-label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: inherit; color: var(--text-secondary); background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: 0.2s ease; white-space: nowrap; text-decoration: none; }
.ad-skip-text { font-weight: 500; }
.ad-skip-hint { font-size: 0.75rem; color: var(--text-muted); }
.ad-skip-locked { text-decoration: none; }
.ad-skip-label:hover { background: var(--bg); border-color: var(--primary-text); color: var(--primary-text); }
.ad-skip-switch { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.ad-skip-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ad-skip-track { position: absolute; inset: 0; background: var(--border-strong, #ccc); border-radius: 999px; transition: background 0.2s; }
.ad-skip-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,0.15); transition: transform 0.2s; }
.ad-skip-track.on { background: var(--success, #2e7d32); }
.ad-skip-track.on::after { transform: translateX(16px); }

/* Ad-skip player overlays */
.ad-skip-prompt { position: absolute; top: 12px; right: 12px; z-index: 90; background: rgba(0,0,0,0.82); color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 0.82rem; display: flex; align-items: center; gap: 10px; max-width: 360px; backdrop-filter: blur(6px); }
.ad-skip-prompt-text { flex: 1; min-width: 0; line-height: 1.4; }
.ad-skip-prompt-btns { display: flex; gap: 6px; flex-shrink: 0; }
.ad-skip-prompt-btn { padding: 5px 12px; border-radius: 6px; font-size: 0.78rem; font-weight: 600; cursor: pointer; border: none; transition: background 0.15s; }
.ad-skip-prompt-btn.confirm { background: var(--primary-solid, #1976d2); color: #fff; }
.ad-skip-prompt-btn.confirm:hover { background: var(--primary-solid-hover, #1565c0); }
.ad-skip-prompt-btn.reject { background: rgba(255,255,255,0.15); color: #fff; }
.ad-skip-prompt-btn.reject:hover { background: rgba(255,255,255,0.25); }
.ad-skip-prompt-btn.close { background: transparent; color: rgba(255,255,255,0.5); font-size: 1rem; padding: 2px 6px; line-height: 1; }
.ad-skip-toast { position: absolute; top: 12px; right: 12px; z-index: 90; background: rgba(0,0,0,0.75); color: #fff; border-radius: 8px; padding: 8px 14px; font-size: 0.78rem; backdrop-filter: blur(6px); animation: adSkipFadeIn 0.15s ease, adSkipFadeOut 0.15s ease 1.85s forwards; pointer-events: auto; }
.ad-skip-toast a { color: rgba(255,255,255,0.7); margin-left: 10px; text-decoration: underline; cursor: pointer; }
.ad-skip-toast a:hover { color: #fff; }
@keyframes adSkipFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes adSkipFadeOut { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ad-skip-toast { animation: none; } }
@media (max-width: 480px) {
  .ad-skip-prompt { top: auto; bottom: 56px; right: 8px; left: 8px; max-width: none; }
  .ad-skip-toast { top: auto; bottom: 56px; right: 8px; }
}

/* -- 短评互动（点赞 / 回复）：详情页、片场、关注动态和短评页共用 -- */
.user-comment-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 2px;
}

.comment-like-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted, #888);
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.15s;
}

.comment-like-btn:hover {
    color: #ff5c7a;
}

.comment-like-btn.liked {
    color: #ff5c7a;
}

.comment-like-count {
    min-width: 8px;
}

.comment-reply-toggle {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted, #888);
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.15s;
}

.comment-reply-toggle:hover {
    color: var(--primary, #4f8cff);
}

.comment-replies-container:empty {
    display: none;
}

.comment-replies-container {
    width: 100%;
    margin-top: 6px;
    padding-left: 12px;
    border-left: 2px solid var(--border-color, rgba(255,255,255,0.08));
}

.comment-reply-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
}

.comment-reply-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    font-size: 0.78rem;
}

.comment-reply-user {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-muted, #888);
    flex-shrink: 0;
}

.comment-reply-avatar {
    font-size: 12px;
    line-height: 1;
}

.comment-reply-text {
    color: var(--text-secondary, #e0e0e0);
    word-break: break-all;
}

.comment-reply-time {
    color: var(--text-muted, #888);
    font-size: 0.7rem;
    white-space: nowrap;
}

.comment-reply-form {
    display: flex;
    gap: 6px;
}

.comment-reply-input {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    font-size: 0.8rem;
    border: 1px solid var(--border, rgba(255,255,255,0.15));
    border-radius: 6px;
    background: transparent;
    color: var(--text, inherit);
}

.comment-reply-submit {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.comment-reply-login-hint {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
    margin: 0;
}

.comment-reply-login-hint a {
    color: var(--primary, #4f8cff);
}
