* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", sans-serif; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; min-height: 100vh; line-height: 1.6; }
header { text-align: center; padding: 60px 20px 40px; }
header h1 { font-size: 3rem; margin-bottom: 10px; background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.subtitle { color: #aaa; font-size: 1.1rem; }
main { max-width: 1000px; margin: 0 auto; padding: 0 20px 60px; }
section { background: rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 30px; margin-bottom: 30px; border: 1px solid rgba(255, 255, 255, 0.1); }
section h2 { margin-bottom: 20px; font-size: 1.5rem; }
.hint { color: #aaa; font-size: 0.9rem; margin-bottom: 20px; }
.search-box { display: flex; gap: 10px; margin-bottom: 20px; }
.search-box input { flex: 1; padding: 14px 20px; border: 2px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.3); color: #fff; border-radius: 8px; font-size: 1rem; outline: none; }
.search-box input:focus { border-color: #ff6b6b; }
.search-box button { padding: 14px 30px; background: linear-gradient(90deg, #ff6b6b, #ee5a52); color: white; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; font-weight: bold; }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-top: 20px; }
.movie-card { background: rgba(0, 0, 0, 0.3); border-radius: 10px; overflow: hidden; }
.movie-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2); }
.movie-card img { width: 100%; height: 250px; object-fit: cover; background: #333; }
.movie-card .info { padding: 12px; }
.movie-card .title { font-weight: bold; font-size: 0.95rem; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movie-card .year { font-size: 0.8rem; color: #aaa; margin-bottom: 8px; }
.movie-card button { width: 100%; padding: 8px; background: #6bcf7f; border: none; color: white; border-radius: 5px; cursor: pointer; font-weight: bold; font-size: 0.85rem; }
.ranking-list { display: flex; flex-direction: column; gap: 12px; }
.ranking-item { display: flex; align-items: center; gap: 15px; padding: 15px; background: rgba(0, 0, 0, 0.3); border-radius: 10px; }
.rank-number { font-size: 1.8rem; font-weight: bold; width: 50px; text-align: center; color: #ffd93d; }
.ranking-item img { width: 60px; height: 90px; object-fit: cover; border-radius: 5px; background: #333; flex-shrink: 0; }
.ranking-info { flex: 1; }
.ranking-info .title { font-size: 1.1rem; font-weight: bold; margin-bottom: 5px; }
.ranking-info .votes { color: #6bcf7f; font-size: 0.9rem; }
.vote-btn { padding: 10px 20px; background: linear-gradient(90deg, #ff6b6b, #ee5a52); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 0.95rem; }
.loading, .empty { text-align: center; color: #888; padding: 30px; }
.toast { position: fixed; top: 30px; left: 50%; transform: translateX(-50%) translateY(-100px); background: rgba(0, 0, 0, 0.9); color: white; padding: 15px 30px; border-radius: 8px; z-index: 1000; transition: transform 0.3s; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-left: 4px solid #6bcf7f; }
.toast.error { border-left: 4px solid #ff6b6b; }
footer { text-align: center; padding: 30px; color: #666; font-size: 0.9rem; }
.enter-theater-btn { display: inline-block; margin-top: 20px; padding: 14px 30px; background: linear-gradient(90deg, #ff6b6b, #ffd93d); color: #1a1a2e; text-decoration: none; border-radius: 30px; font-weight: bold; font-size: 1.1rem; box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3); transition: transform 0.2s; }
.enter-theater-btn:hover { transform: translateY(-3px); }