:root {
    --bg-dark: #0a0a0a;
    --bg-light-dark: #121212;
    --gold-primary: #d4af37;
    --gold-secondary: #c5a059;
    --gold-accent: #f9e2af;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --card-bg: #1a1a1a;
    --header-height: 70px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* --- Layout Components --- */

header {
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    letter-spacing: 2px;
}

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

.nav-links a:hover {
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--gold-primary);
    font-weight: bold;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: #222;
    border: 1px solid #444;
    padding: 8px 15px;
    border-radius: 20px;
    color: #fff;
    width: 250px;
    transition: var(--transition-smooth);
}

.search-input:focus {
    width: 300px;
    border-color: var(--gold-primary);
    outline: none;
}

/* --- Footer --- */

footer {
    background: var(--bg-light-dark);
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

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

.footer-col h4 {
    color: var(--gold-primary);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #222;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Section Headers --- */

.section-title {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 15px;
    border-bottom: 2px solid #222;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--gold-primary);
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold-primary);
}

.view-more {
    color: var(--text-muted);
    font-size: 1rem;
}

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

/* --- Movie Cards --- */

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.movie-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.movie-card:hover .movie-poster {
    filter: brightness(0.7);
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rating {
    color: var(--gold-primary);
    font-weight: bold;
}

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

/* --- Buttons --- */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-gold {
    background: var(--gold-primary);
    color: #000;
}

.btn-gold:hover {
    background: var(--gold-secondary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: #000;
}

/* --- Animations --- */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Float Action --- */

.float-app {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.app-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 30px var(--gold-primary); }
    100% { transform: scale(1); }
}

/* --- Mobile Responsive --- */

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    .search-input {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.6rem;
    }
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
