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

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: #1a1a3e;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #6b6b8d;
    --border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(18, 18, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}
.nav.scrolled {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem; font-weight: 700;
    color: var(--accent); text-decoration: none;
}
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-link {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.95rem; transition: color 0.3s;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--accent); border-radius: 1px;
}

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 80vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 8rem 2rem 4rem;
    overflow: hidden;
}
.hero-float {
    position: absolute; border-radius: 50%;
    filter: blur(60px); opacity: 0.3;
    animation: heroFloat 8s ease-in-out infinite;
}
.hero-float:nth-child(1) {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(245,158,11,0.4), transparent);
    top: 10%; left: 10%; animation-delay: 0s;
}
.hero-float:nth-child(2) {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,0.4), transparent);
    top: 60%; right: 15%; animation-delay: -3s; animation-duration: 10s;
}
.hero-float:nth-child(3) {
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(16,185,129,0.3), transparent);
    bottom: 10%; left: 30%; animation-delay: -5s; animation-duration: 12s;
}
@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 10px) scale(1.05); }
}

.hero-badge {
    display: inline-block; padding: 0.4rem 1.2rem;
    background: var(--accent); color: var(--bg-primary);
    border-radius: 20px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 3.5rem; font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5), 0 0 40px rgba(245, 158, 11, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}
@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(245, 158, 11, 0.5), 0 0 40px rgba(245, 158, 11, 0.3); }
    100% { text-shadow: 0 0 30px rgba(245, 158, 11, 0.7), 0 0 60px rgba(245, 158, 11, 0.4), 0 0 80px rgba(245, 158, 11, 0.2); }
}
.hero-subtitle {
    font-size: 1.1rem; color: var(--text-secondary);
    max-width: 600px; margin-bottom: 3rem;
}

/* ===== PARTICLES ===== */
.particle-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
    position: absolute; border-radius: 50%;
    animation: particleFloat linear infinite;
    box-shadow: 0 0 6px currentColor;
}
@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg) scale(0.5); opacity: 0; }
    10% { opacity: 1; transform: translateY(90vh) rotate(36deg) scale(1); }
    50% { opacity: 0.8; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(360deg) scale(0.3); opacity: 0; }
}

/* ===== SHOOTING STARS ===== */
.shooting-star {
    position: fixed;
    width: 100px; height: 2px;
    background: linear-gradient(90deg, rgba(245,158,11,0.8), transparent);
    border-radius: 50%;
    animation: shootingStar linear infinite;
    pointer-events: none; z-index: 0;
    box-shadow: 0 0 10px rgba(245,158,11,0.5);
}
@keyframes shootingStar {
    0% { transform: translateX(-100px) translateY(0) rotate(-35deg); opacity: 0; }
    5% { opacity: 1; }
    15% { opacity: 1; }
    20% { transform: translateX(calc(100vw + 100px)) translateY(200px) rotate(-35deg); opacity: 0; }
    100% { opacity: 0; }
}

/* ===== GLOWING ORBS ===== */
.glow-orb {
    position: fixed; border-radius: 50%;
    filter: blur(40px);
    animation: orbFloat ease-in-out infinite;
    pointer-events: none; z-index: 0;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    25% { transform: translate(50px, -80px) scale(1.2); opacity: 0.25; }
    50% { transform: translate(-30px, -150px) scale(0.8); opacity: 0.1; }
    75% { transform: translate(80px, -50px) scale(1.1); opacity: 0.2; }
}

/* ===== SECTIONS ===== */
.section {
    max-width: 1200px; margin: 0 auto;
    padding: 4rem 2rem;
}
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem; font-weight: 600;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}
.section-link {
    color: var(--accent); text-decoration: none;
    font-size: 0.9rem; transition: opacity 0.3s;
}
.section-link:hover { opacity: 0.8; }

/* ===== PAGE HEADER ===== */
.page-header {
    text-align: center; padding: 8rem 2rem 3rem;
}
.page-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem;
}
.page-subtitle { color: var(--text-muted); font-size: 1rem; }

/* ===== MOVIE GRID ===== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* ===== MOVIE CARD ===== */
.movie-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}
.movie-poster-wrap {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
}
.movie-poster {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.movie-card:hover .movie-poster { transform: scale(1.05); }

.poster-fallback {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.poster-fallback.visible { opacity: 1; }
.poster-fallback span {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem; font-weight: 700;
    color: white; text-align: center;
    padding: 1.5rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.05em;
}

.movie-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
    display: flex; align-items: flex-end;
    padding: 1rem; opacity: 0;
    transition: opacity 0.3s;
}
.movie-card:hover .movie-overlay { opacity: 1; }
.movie-recommendation {
    font-size: 0.8rem; color: rgba(255,255,255,0.9);
    font-style: italic;
}

.movie-info { padding: 1rem; }
.movie-title {
    font-size: 0.95rem; font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.movie-meta {
    display: flex; justify-content: space-between;
    font-size: 0.8rem; color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.movie-rating { color: var(--accent); }
.movie-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tag {
    padding: 0.15rem 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px; font-size: 0.7rem;
    color: var(--accent);
}
.progress-badge {
    display: inline-block; padding: 0.1rem 0.4rem;
    border-radius: 8px; font-size: 0.7rem; font-weight: 600;
}
.progress-badge.watched { background: #10b981; color: white; }
.progress-badge.watching { background: #3b82f6; color: white; }
.progress-badge.want { background: #f59e0b; color: var(--bg-primary); }

/* ===== MOVIES SCROLL ===== */
.movies-scroll {
    display: flex; gap: 1.5rem;
    overflow-x: auto; padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}
.movies-scroll .movie-card {
    min-width: 200px; max-width: 200px;
    scroll-snap-align: start; flex-shrink: 0;
}

/* ===== FILTERS ===== */
.filters {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 2rem;
}
.filter-btn {
    padding: 0.4rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* ===== SEARCH ===== */
.search-input {
    width: 100%; max-width: 500px;
    padding: 0.8rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    margin-bottom: 2rem;
    transition: border-color 0.3s;
}
.search-input:focus { border-color: var(--accent); }

/* ===== SMART REC PANEL ===== */
.smart-rec-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem; margin-bottom: 2rem;
}
.smart-rec-title {
    font-family: 'Noto Serif SC', serif;
    color: var(--accent); margin-bottom: 1rem; font-size: 1.1rem;
}
.smart-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem; align-items: end;
}
.smart-rec-group label {
    display: block; font-size: 0.85rem;
    color: var(--text-muted); margin-bottom: 0.4rem;
}
.smart-rec-group select {
    width: 100%; padding: 0.5rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem; outline: none;
}
.smart-rec-group select:focus { border-color: var(--accent); }
.smart-rec-btn {
    padding: 0.5rem 1.5rem;
    background: var(--accent); color: var(--bg-primary);
    border: none; border-radius: var(--radius-sm);
    font-weight: 600; cursor: pointer;
    transition: all 0.3s; height: fit-content;
}
.smart-rec-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.smart-rec-results {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* ===== SCENE PANEL ===== */
.smart-scene-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem; margin: 2rem auto;
    max-width: 700px; text-align: center;
}
.smart-scene-panel h3 {
    font-family: 'Noto Serif SC', serif;
    color: var(--accent); margin-bottom: 1rem;
}
.scene-options {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 0.5rem;
    margin-bottom: 1rem;
}
.scene-btn {
    padding: 0.5rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem; cursor: pointer;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.scene-btn:hover { border-color: var(--accent); color: var(--accent); }
.scene-btn.active {
    background: var(--accent); color: var(--bg-primary);
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.scene-results { margin-top: 1rem; }

/* ===== MOOD ===== */
.mood-section { margin-top: 2rem; }
.mood-label {
    text-align: center; font-size: 1rem;
    color: var(--text-secondary); margin-bottom: 1rem;
}
.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem; max-width: 600px; margin: 0 auto;
}
.mood-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center; cursor: pointer;
    transition: all 0.3s;
}
.mood-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    border-color: var(--accent);
}
.mood-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    animation: moodPulse 2s ease-in-out infinite;
}
@keyframes moodPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.5); }
}
.mood-emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.mood-name { font-size: 0.85rem; color: var(--text-secondary); }

/* ===== TRIVIA ===== */
.trivia-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex; align-items: flex-start; gap: 1rem;
    transition: all 0.3s;
}
.trivia-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}
.trivia-icon { font-size: 2rem; flex-shrink: 0; }
.trivia-content { flex: 1; }
.trivia-movie {
    font-family: 'Noto Serif SC', serif;
    color: var(--accent); font-size: 1rem; margin-bottom: 0.5rem;
}
.trivia-text { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ===== PLAYLIST TABS ===== */
.playlist-tabs {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.playlist-tab {
    padding: 0.4rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted); font-size: 0.85rem;
    cursor: pointer; transition: all 0.3s;
}
.playlist-tab:hover { color: var(--accent); border-color: var(--accent); }
.playlist-tab.active {
    background: var(--accent); color: var(--bg-primary);
    border-color: var(--accent);
}

/* ===== NOTES ===== */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.note-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s;
}
.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}
.note-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 0.75rem; }
.note-title { font-family: 'Noto Serif SC', serif; font-size: 1.1rem; color: var(--text-primary); }
.note-movie { font-size: 0.8rem; color: var(--accent); }
.note-content { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }
.note-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.note-date { font-size: 0.8rem; color: var(--text-muted); }
.note-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* ===== ABOUT ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem; margin-bottom: 3rem;
}
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem; text-align: center;
}
.stat-value { font-size: 2.5rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.5rem; }
.progress-list { display: flex; flex-direction: column; gap: 1rem; }
.progress-item label {
    display: flex; justify-content: space-between;
    font-size: 0.9rem; margin-bottom: 0.3rem;
}
.progress-bar {
    height: 6px; background: var(--bg-card);
    border-radius: 3px; overflow: hidden;
}
.progress-fill {
    height: 100%; background: var(--accent);
    border-radius: 3px; transition: width 1s ease;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-item {
    padding: 0.4rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px; font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== MODAL ===== */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.8); z-index: 2000;
    align-items: center; justify-content: center;
    padding: 2rem;
}
.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    max-width: 700px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    padding: 2rem;
}
.modal-poster-wrap {
    aspect-ratio: 2/3; max-height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden; margin-bottom: 1.5rem;
    display: flex; align-items: center; justify-content: center;
}
.modal-info h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem; margin-bottom: 1rem;
}
.modal-meta {
    display: flex; flex-wrap: wrap; gap: 1rem;
    font-size: 0.9rem; color: var(--text-muted);
    margin-bottom: 1rem;
}
.modal-rating { color: var(--accent); }
.modal-plot {
    color: var(--text-secondary); line-height: 1.8;
    margin-bottom: 1rem;
}
.modal-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: 1rem; }
.btn-primary {
    padding: 0.6rem 1.5rem;
    background: var(--accent); color: var(--bg-primary);
    border: none; border-radius: var(--radius-sm);
    font-weight: 600; cursor: pointer;
}
.btn-secondary {
    padding: 0.6rem 1.5rem;
    background: var(--bg-card); color: var(--text-secondary);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    cursor: pointer;
}

/* ===== AI CHAT ===== */
.ai-chat-btn {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 56px; height: 56px;
    background: var(--accent); color: var(--bg-primary);
    border: none; border-radius: 50%;
    cursor: pointer; z-index: 999;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: all 0.3s;
}
.ai-chat-btn:hover { transform: scale(1.1); }
.ai-chat-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 3000;
    align-items: flex-end; justify-content: flex-end;
    padding: 2rem;
}
.ai-chat-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    width: 400px; max-width: 90vw;
    max-height: 70vh;
    display: flex; flex-direction: column;
    border: 1px solid var(--border);
}
.ai-chat-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.ai-chat-header h3 { font-size: 1rem; }
.ai-chat-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 1.5rem; cursor: pointer;
}
.ai-chat-messages {
    flex: 1; overflow-y: auto; padding: 1rem 1.5rem;
    display: flex; flex-direction: column; gap: 0.75rem;
}
.ai-chat-msg {
    max-width: 85%; padding: 0.75rem 1rem;
    border-radius: var(--radius-md); font-size: 0.9rem;
}
.ai-chat-user {
    align-self: flex-end;
    background: var(--accent); color: var(--bg-primary);
}
.ai-chat-ai {
    align-self: flex-start;
    background: var(--bg-card); color: var(--text-primary);
}
.ai-chat-loading {
    align-self: flex-start;
    background: var(--bg-card); color: var(--text-muted);
    font-style: italic;
}
.ai-chat-input-area { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.ai-chat-input-area select {
    width: 100%; padding: 0.5rem 0.8rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 0.85rem; margin-bottom: 0.75rem; outline: none;
}
.ai-chat-input-row { display: flex; gap: 0.5rem; }
.ai-chat-input-row input {
    flex: 1; padding: 0.6rem 1rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 0.9rem; outline: none;
}
.ai-chat-input-row input:focus { border-color: var(--accent); }
.ai-chat-input-row button {
    padding: 0.6rem 1.2rem;
    background: var(--accent); color: var(--bg-primary);
    border: none; border-radius: var(--radius-sm);
    font-weight: 600; cursor: pointer;
}
.ai-chat-quick-q { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.ai-chat-quick-q button {
    padding: 0.3rem 0.7rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-muted);
    font-size: 0.8rem; cursor: pointer;
}
.ai-chat-quick-q button:hover { color: var(--accent); border-color: var(--accent); }

/* ===== FOOTER ===== */
.footer {
    text-align: center; padding: 2rem;
    color: var(--text-muted); font-size: 0.85rem;
    border-top: 1px solid var(--border);
}
.footer-beian {
    display: flex; align-items: center; justify-content: center;
    gap: 1.5rem; margin-top: 0.75rem; flex-wrap: wrap;
}
.beian-link {
    display: flex; align-items: center; gap: 0.4rem;
    color: var(--text-muted); font-size: 0.8rem;
    text-decoration: none; transition: color 0.3s;
}
.beian-link:hover { color: var(--accent); }
.beian-icon { width: 14px; height: 14px; }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    background: var(--accent); color: var(--bg-primary);
    border: none; border-radius: 50%;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.3s; z-index: 100;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== SCROLL REVEAL ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.reveal { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-left.reveal { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-right.reveal { opacity: 1; transform: translateX(0); }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center; padding: 4rem 2rem;
    color: var(--text-muted); font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .page-title { font-size: 2rem; }
    .section-title { font-size: 1.4rem; }
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
    .nav-links { gap: 1rem; }
    .nav-link { font-size: 0.85rem; }
    .smart-rec-grid { grid-template-columns: 1fr; }
    .mood-grid { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
    .notes-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-beian { flex-direction: column; gap: 0.5rem; }
    .ai-chat-content { width: 100%; max-width: 100%; }
}
