:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary-color: #00f2ff;
    --accent-color: #7000ff;
    --text-color: #e0e0e0;
    --muted-color: #94a3b8;
    --title-color: #ffffff;
    --shimmer-bg: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
}

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

body {
    background: radial-gradient(circle at 50% -20%, #1a1a2e 0%, var(--bg-color) 80%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hidden {
    display: none !important;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--muted-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #fff;
}

/* SEARCH */
.search-container {
    max-width: 900px;
    margin: 5rem auto 3rem;
    display: flex;
    gap: 0;
    padding: 0 1.5rem;
    transition: transform 0.3s ease;
}

.search-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.15);
    transform: translateY(-2px);
}

#search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    outline: none;
}

#search-btn {
    background: var(--primary-color);
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

#search-btn:hover {
    transform: scale(1.05);
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--title-color);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* GRIDS */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
    justify-content: center;
    gap: 3rem;
    padding: 1rem 5% 6rem;
}

/* MOVIE CARD */
.movie-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.poster-preview {
    height: 500px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #121212;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}

.movie-card:hover .poster-img {
    transform: scale(1.05);
}

.trailer-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.movie-info {
    padding: 2rem;
    flex: 1;
}

.movie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.movie-title {
    font-size: 1.5rem;
    color: var(--title-color);
    font-weight: 700;
    line-height: 1.2;
}

.movie-rating {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.movie-meta {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.movie-desc {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    color: var(--muted-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--accent-color);
    padding: 1.2rem;
    margin-bottom: 2rem;
    border-radius: 0 12px 12px 0;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01);
}

.curator-label {
    display: block;
    font-size: 0.7rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.curator-note {
    font-size: 1rem;
    color: #fff;
    font-weight: 400;
    line-height: 1.5;
}

.card-footer {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-seen {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-seen:hover {
    background: #fff;
    color: #000;
    transform: scale(0.98);
}

.btn-seen.marked {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* SKELETON / LOADING */
#loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
    justify-content: center;
    gap: 3rem;
    width: 100%;
    padding: 0 5%;
}

.skeleton-card {
    height: 700px;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--shimmer-bg);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar { padding: 1rem 5%; }
    .nav-links { display: none; }
    .section-title { font-size: 1.8rem; }
    .movie-grid { gap: 2rem; }
    .movie-card { border-radius: 18px; }
}
