/* General Styles */
:root {
    --bg-color: #0f0f0f;
    --card-bg: #1e1e1e;
    --gold: #d4af37;
    --gold-light: #f1d592;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

/* Common Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 30px;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid var(--gold);
}

/* Header */
header {
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--gold);
}

.search-bar {
    position: relative;
}

.search-bar input {
    background: #2a2a2a;
    border: 1px solid transparent;
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.movie-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid transparent;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.movie-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

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

.movie-card h3 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card .rating {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: bold;
}

.movie-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: black;
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: bold;
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-col p, .footer-col li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.copy-right {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Floating App Button */
.floating-download {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: black;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    z-index: 999;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .section-title { font-size: 1.5rem; }
}
