@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@400;700;900&display=swap');

:root {
    --bg-dark: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --neon-cyan: #00f3ff;
    --neon-magenta: #ff003c;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.brand-logo {
    font-family: 'Outfit', sans-serif;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 10px var(--neon-magenta);
}

/* Glass UI Elements */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 4rem;
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.brand-logo span {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--neon-cyan), #007bb5);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--neon-magenta), #b5003c);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.6);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-outline:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* Hero Section */
.hero {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero::before {
    /* Deep dark overlay for readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.6);
    background: radial-gradient(circle at left, rgba(10, 10, 12, 0.8) 0%, rgba(10, 10, 12, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Sliders / Carousels */
.slider-section {
    padding: 3rem 4rem;
    position: relative;
    z-index: 5;
}

.slider-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--neon-magenta);
    padding-left: 1rem;
}

.media-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scroll-behavior: smooth;
    /* Hide scrollbar for Chrome, Safari and Opera */
}

.media-slider::-webkit-scrollbar {
    display: none;
}

.media-slider {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Media Cards */
.media-card {
    min-width: 250px;
    height: 375px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background-color: #222;
}

.media-card img.poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.media-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: var(--transition);
}

.media-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
}

.media-card:hover img.poster {
    transform: scale(1.1);
}

.media-card:hover .card-overlay {
    opacity: 1;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    gap: 10px;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--neon-cyan);
}

.btn-icon.active-watchlist {
    background: var(--neon-magenta);
    border-color: var(--neon-magenta);
    box-shadow: 0 0 15px var(--neon-magenta);
}

.btn-icon.active-watchlist:hover {
    background: rgba(255, 0, 60, 0.8);
}


/* Auth Pages Form */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: url('../img/auth-bg.jpg') center/cover no-repeat;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    text-align: center;
    z-index: 2;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(5px);
}

.auth-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-container .subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
    padding: 12px;
}

.auth-link {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(255, 0, 60, 0.1);
    border: 1px solid rgba(255, 0, 60, 0.3);
    color: #ff4d6d;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

/* Admin Elements */
.admin-container {
    padding: 8rem 4rem 4rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}