/* ==================== 变量 ==================== */
:root {
    /* 品牌色 */
    --primary: #f60c3e;
    --primary-light: #ff6b8a;
    --primary-dark: #d10a35;
    --primary-alpha: rgba(246, 12, 62, 0.1);
    --primary-alpha-high: rgba(246, 12, 62, 0.35);

    /* 中性色 (黑夜模式重点) */
    --bg: #ffffff;
    --bg-secondary: #fafafa;
    --text: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #f0f0f0;
    --border-strong: #e0e0e0;
    --border-primary: var(--primary);

    /* 状态色 */
    --success: #2e7d32;
    --success-bg: #e8f5e9;
    --warning: #ef6c00;
    --warning-bg: #fff3e0;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --error-border: #fecaca;
    --rating: #ffc107;
    --rating-star: #ffac2d;

    /* 特定功能色 */
    --info: #1565c0;
    --info-bg: #e3f2fd;
    --brand-bg-light: #fff5f7;
    --logout: #ff4d4f;
    --logout-alpha: rgba(255, 77, 79, 0.15);

    /* 辅助与装饰 */
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --radius: 0;
    --radius-sm: 8px;
    --sidebar-width: 220px;
    --border-width: .625rem;
    --transition: 0.3s ease;
}
/* 夜间模式变量覆盖 */
[data-theme='dark'] {
    /* 中性色重塑 */
    --bg: #0d0d0f;           /* 极深背景，带有电影感 */
    --bg-secondary: #1a1c22; /* 侧边栏和输入框的背景 */
    --text: #eeeeee;         /* 主文字，浅灰白 */
    --text-secondary: #a0a0a0; /* 次要文字 */
    --text-muted: #666666;

    --border: #2a2d35;       /* 边框变深 */
    --border-strong: #3f434c;

    /* 状态色调整 (稍微调亮以保持对比度) */
    --success: #4caf50;
    --success-bg: rgba(76, 175, 80, 0.1);
    --warning: #ff9800;
    --warning-bg: rgba(255, 152, 0, 0.1);

    /* 品牌色在深色下的适配 */
    --primary: #8e0b2a;
    --primary-light: #ff4d70;
    --primary-alpha: rgba(246, 12, 62, 0.15);
    --primary-alpha-high: rgba(246, 12, 62, 0.45);

    /* 辅助装饰 */
    --bg-overlay: rgba(0, 0, 0, 0.8);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);

    /* 针对搜索框的特殊调整 */
    --brand-bg-light: #1e1215; /* 搜索框附近微弱的红韵 */
}
/* 在夜间模式下，明亮的海报可能刺眼。可以给海报增加一个微小的滤镜，悬停时恢复亮度 */
[data-theme='dark'] img {
    filter: brightness(0.8) contrast(1.1);
    transition: filter 0.3s ease;
}
[data-theme='dark'] img:hover {
    filter: brightness(1);
}
/* ==================== 重置 ==================== */
*, *::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.3s 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.3s 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;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== 固定边框容器 ==================== */
.app-frame {
    position: fixed;
    inset: 0;
    border: var(--border-width) solid var(--primary);
    pointer-events: none;
    z-index: 9999;
}

.app-container {
    display: flex;
    height: calc(100vh - var(--border-width) * 2);
    background: var(--bg);
    margin: var(--border-width);
    overflow: hidden;
}

/* ==================== 侧边栏 ==================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    font-size: 1.8rem;
}

.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: 0.95rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.nav-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
}

.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;                  /* 与常规 nav-item 保持一致的间距 */
    padding: 12px 16px;         /* 与常规 nav-item 保持一致的内边距 */
    width: 100%;                /* 宽度撑满 */
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 0.95rem;         /* 统一字号 */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary);
}

.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: var(--border-width);
    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;
}

/* ==================== Footer ==================== */
.main-footer {
    padding: 24px 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    background: var(--bg-secondary);
}

.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.8rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    font-size: 0.8rem;
    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);
}

/* ==================== 移动端顶栏 ==================== */
.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: 28px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.mobile-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-user {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--text-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 .icon {
    font-size: 2.2rem;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 8px;
}

.hero-subtitle-small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== 搜索框 ==================== */
.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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 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);
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    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: 0.95rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.suggestion-type {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.suggestion-year {
    color: var(--text-muted);
}

.suggestion-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== 提示信息 ==================== */
.notice {
    text-align: center;
    padding: 12px;
    font-size: 0.9rem;
}

.notice-primary {
    color: var(--primary);
}

.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.85rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.tags-toggle:hover {
    background: var(--primary-alpha);
    color: var(--primary);
}

.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.85rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.tag:hover {
    color: var(--primary);
}

.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);
}

/* ==================== 继续观看区域（简洁版） ==================== */
.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);
}

.section-more {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.section-more:hover {
    color: var(--primary);
}

/* ==================== 电影网格 ==================== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.discover-grid {
    grid-template-columns: repeat(5, 1fr);
}

@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);
    transition: transform var(--transition), box-shadow var(--transition);
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.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.8rem;
    font-weight: 600;
}

.movie-info {
    padding: 10px 12px;
}

.movie-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-year {
    font-size: 0.8rem;
    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.3s 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);
}

/* 移动端：删除按钮始终显示 */
@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);
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    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);
    color: var(--primary);
}

/* ==================== 表单 ==================== */
.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);
}

.form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-link {
    text-align: center;
    margin-top: 16px;
    color: var(--text-muted);
}

.form-link a {
    color: var(--primary);
}

/* ==================== 页面标题 ==================== */
.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: 0.95rem;
    margin-top: 16px;
}

/* ==================== 搜索结果网格 ==================== */
.search-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.search-result-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    align-items: flex-start;
}

.search-result-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-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.7rem;
}

.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-remarks {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    margin: 0;
    padding: 3px;
}

/* 元信息行 */
.card-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    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);
    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: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.source-item {
    font-size: 0.7rem;
    padding: 3px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.source-item.available {
    border-color: var(--success);
    color: var(--success);
    background: var(--success-bg);
}

.source-item.slow {
    border-color: #ffb74d;
    color: #e65100;
    background: #fff3e0;
}

.source-item .speed {
    font-weight: 600;
    opacity: 0.8;
}

/* 响应式 - 搜索结果 */
@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: 0.95rem;
    }
}

/* ==================== 内容页面 ==================== */
.content-page {
    max-width: 800px;
}

.content-page h2 {
    font-size: 1.2rem;
    margin: 24px 0 12px;
    color: var(--text);
}

.content-page p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.content-page ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.content-page li {
    list-style: disc;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* ==================== 管理后台 ==================== */
.admin-header {
    margin-bottom: 24px;
}

.admin-nav {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.admin-nav a {
    color: var(--text-secondary);
    padding: 8px 0;
}

.admin-nav a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
}

.dashboard-card .icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.dashboard-card h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.dashboard-card .stat {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    :root {
        --border-width: .375rem;
    }

    .sidebar {
        position: fixed;
        left: var(--border-width);
        top: var(--border-width);
        bottom: var(--border-width);
        z-index: 100;
        transform: translateX(calc(-100% - var(--border-width)));
        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;
    }

    .home-hero h1 {
        font-size: 1.8rem;
    }

    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    /* 继续观看区域紧凑化 */
    #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.65rem;
        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);
    }

    /* 继续观看区域在极小屏幕下改为3列 */
    #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;
    padding: 30px 20px;
}

/* 主要头部区域：三栏布局 */
.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.85rem;
    margin-bottom: 12px;
}

/* 属性列表 */
.movie-attrs {
    font-size: 0.85rem;
    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);
}

/* 评分列 */
.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.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.rating-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.rating-stars {
    color: #ffac2d;
    font-size: 0.7rem;
    letter-spacing: -1px;
}

/* 操作按钮 */
.movie-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.movie-actions .btn {
    font-size: 0.95rem;
    padding: 12px 12px;
    border-radius: 8px;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
}

/* 收藏按钮特定样式 */
.btn-favorite {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-favorite:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-alpha);
}

.btn-favorite.favorited {
    background: var(--brand-bg-light);
    border-color: var(--primary-light);
    color: var(--primary);
}

.btn-favorite.favorited:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-favorite .icon {
    font-size: 1.1rem;
    transition: transform 0.3s 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);
}

/* 内容区块 */
.movie-section {
    margin-bottom: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.movie-section .section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.movie-summary {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-indent: 2em;
}

/* ==================== 电影详情页响应式 ==================== */
@media (max-width: 640px) {
    .movie-page {
        padding: 20px 16px;
    }

    .movie-header {
        flex-wrap: wrap;
    }

    .movie-poster-col {
        width: 100px;
    }

    .movie-info-col {
        flex: 1;
        min-width: 150px;
    }

    .movie-rating-col {
        width: 100%;
        display: flex;
        gap: 12px;
        align-items: center;
        margin-top: 12px;
    }

    .rating-block {
        margin-bottom: 0;
        padding: 10px 16px;
    }

    .movie-actions {
        flex: 1;
        flex-direction: row;
        justify-content: flex-start;
    }

    .movie-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .movie-poster-col {
        width: 80px;
    }

    .movie-name {
        font-size: 1.1rem;
    }

    .movie-attrs {
        font-size: 0.8rem;
    }

    .rating-num {
        font-size: 1.5rem;
    }
}

/* ==================== 认证页面（登录/注册） ==================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

/* Logo 区域 */
.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 {
    font-size: 2rem;
}

/* 认证卡片 */
.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.9rem;
    text-align: center;
    margin-bottom: 28px;
}

/* 警告/错误提示 */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    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.9rem;
    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: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.auth-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.auth-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    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);
}

/* 提示文字 */
.auth-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 提交按钮 */
.auth-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s 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.9rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}

.auth-footer a:hover {
    color: var(--primary-dark);
}

/* 认证页面响应式 */
@media (max-width: 480px) {
    .auth-page {
        padding: 24px 16px;
        min-height: auto;
    }

    .auth-title {
        font-size: 1.3rem;
    }

    .auth-logo {
        font-size: 1.5rem;
    }

    .auth-logo-icon {
        font-size: 1.7rem;
    }
}

/* ==================== 用户中心页面 ==================== */
.user-center {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 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: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
    border: none;
}

.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.9rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.user-since {
    font-size: 0.8rem;
    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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.action-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.stat-item:hover {
    border-color: var(--primary);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Tab 导航 */
.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: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-btn svg {
    width: 18px;
    height: 18px;
}

/* 观影历史卡片包装 */
.history-card-wrapper {
    position: relative;
}

.history-card-wrapper .watch-delete-btn {
    top: 10px;
    right: 10px;
}

/* Tab 内容 */
.tab-content {
    margin-top: 24px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-more {
    text-align: center;
    margin-top: 24px;
}

/* ==================== 设置页面 ==================== */
.settings-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.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);
}

.settings-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.settings-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.settings-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text);
}

.settings-value .badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--success-bg);
    color: var(--success);
    border-radius: 4px;
}

.settings-input-group {
    display: flex;
    gap: 10px;
}

.settings-input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

.settings-input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.settings-item > input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

.settings-item > input:focus {
    outline: none;
    border-color: var(--primary);
}

.settings-actions {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.settings-back {
    margin-top: 24px;
}

.settings-back .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* 成功提示样式 */
.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: 10px 16px;
        font-size: 0.9rem;
    }

    .tab-btn svg {
        width: 16px;
        height: 16px;
    }
}

@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);
    }
}

/* ==================== Admin 后台布局 ==================== */
.admin-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Admin 头部 */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

/* Admin Tab导航 */
.admin-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 10px;
}

.admin-tab {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.admin-tab:hover {
    color: var(--text);
}

.admin-tab.active {
    background: var(--bg);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Admin 统计卡片网格 */
.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;
}

.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.85rem;
    color: var(--text-muted);
}

/* Admin 区块 */
.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.9rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.quick-action-card:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.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);
}

/* Admin 卡片 */
.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 表格 */
.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.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.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
    background: var(--bg-secondary);
}

.id-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.key-badge {
    background: var(--success-bg);
    color: var(--success);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.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.8rem;
}

.status-active {
    background: var(--success-bg);
    color: var(--success);
}

.status-inactive {
    background: #ffebee;
    color: #c62828;
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.url-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.empty-cell {
    text-align: center;
    color: var(--text-muted);
    padding: 40px !important;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.actions-cell {
    display: flex;
    gap: 8px;
}

/* Admin 表单 */
.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.9rem;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.result-message {
    font-size: 0.9rem;
    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.8rem;
    color: var(--text-muted);
}

.crawler-stat .stat-value {
    font-size: 0.95rem;
    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 筛选器 */
.admin-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.filter-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 反馈类型标签 */
.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    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 {
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.link-btn {
    font-size: 0.8rem;
    color: var(--primary);
}

.link-btn:hover {
    text-decoration: underline;
}

.text-muted {
    color: var(--text-muted);
}

/* 操作单元格 */
.action-cell {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

/* 角色选择下拉框 */
.role-select {
    padding: 6px 12px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.role-select:focus {
    outline: none;
    border-color: var(--primary);
}

.role-select:hover {
    border-color: var(--primary);
}

/* Toast 提示 */
.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.9rem;
    opacity: 0;
    transition: all 0.3s 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-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px);
}

.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-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: none;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.modal-content .admin-form {
    padding: 20px;
}

.modal-content .form-group {
    margin-bottom: 16px;
}

.modal-content .form-group:last-of-type {
    margin-bottom: 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.modal-body {
    padding: 20px;
}

.test-status-info {
    font-size: 0.9rem;
    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 rgba(246, 12, 62, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-summary {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
}

/* Admin 响应式 */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .form-group {
        width: 100%;
    }

    .crawler-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 视频播放页面 ==================== */
.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.85rem;
}

.watch-breadcrumb a {
    color: var(--primary);
    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.9rem;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Artplayer 容器适配 */
#artplayer-app {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    max-height: 90dvh;
    aspect-ratio: 16 / 9;
}

/* 视频信息区域 */
.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);
    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);
    border-color: var(--primary);
    color: white;
}

/* 信息行 */
.detail-meta {
    font-size: 0.85rem;
    line-height: 1.8;
}

.meta-row {
    display: flex;
}

.meta-label {
    color: var(--primary);
    flex-shrink: 0;
    margin-right: 4px;
}

.meta-value {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 剧情简介 */
.video-summary {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.video-summary p {
    font-size: 0.85rem;
    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: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    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.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.source-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.source-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    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.85rem;
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.ep-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.ep-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* 操作栏 */
.video-actions-bar {
    display: flex;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

/* 操作栏按钮（专用类名，避免与全局 .action-link 冲突） */
.video-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    width: auto;
    height: auto;
}

.video-action-btn:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.video-action-btn .action-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ==================== 视频播放页面响应式 ==================== */
@media (max-width: 768px) {
    .watch-page {
        margin-top: -20px;
    }

    .watch-breadcrumb {
        font-size: 0.8rem;
    }

    .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.7rem;
    }

    .detail-meta {
        font-size: 0.8rem;
    }

    .episodes-header {
        flex-wrap: wrap;
        font-size: 0.9rem;
    }

    .source-selector {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    .ep-btn {
        min-width: 50px;
        padding: 6px 12px;
        font-size: 0.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 {
        justify-content: center;
        padding: 10px;
        background: var(--bg);
        border-radius: 8px;
        border: 1px solid var(--border);
        white-space: nowrap;
        font-size: 0.85rem;
    }
}

@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.9rem;
    }

    .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 {
        width: 100%;
    }
}

/* ==================== 反馈历史区域 ==================== */
.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);
}

/* 反馈列表容器 */
.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);
    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.8rem;
    color: var(--text-muted);
    margin-left: auto;
}

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

.feedback-text {
    font-size: 0.9rem;
    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.8rem;
    color: var(--primary);
    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.8rem;
}

.reply-label {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.reply-time {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.feedback-reply-content {
    font-size: 0.9rem;
    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.9rem;
}

/* 空状态 */
.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.85rem;
}

/* 加载状态 */
.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.9rem;
}

/* htmx 加载指示器 */
.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-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 var(--warning-alpha-30);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--warning-dark);
}

.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;
    }
}

