/* Base Settings & Variables */
:root {
    --bg-dark: #0a0a0f;
    --text-light: #f0f0f5;
    --accent: #ff3366;
    --accent-hover: #ff1a53;
    --glass-bg: rgba(25, 25, 35, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    /* subtle gradient background */
    background: radial-gradient(circle at top right, #1a1a2e 0%, var(--bg-dark) 40%, var(--bg-dark) 100%);
    min-height: 100vh;
}

/* Utilities */
.hidden {
    display: none !important;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.splash-content {
    text-align: center;
    position: relative;
}

#splash-name {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateX(100px);
}

#splash-reveal {
    font-size: 2rem;
    font-weight: 300;
    margin-top: 1rem;
    color: #aaa;
    opacity: 0;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(10,10,15,0.9) 0%, rgba(10,10,15,0) 100%);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 5%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    cursor: pointer;
}

.logo i {
    color: var(--accent);
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: #aaa;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1.1rem;
}

nav a:hover, nav a.active {
    color: #fff;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.6);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 40px;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
}

.btn-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

/* Hero Background (Optional dynamic background) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1626814026160-2237a95fc5a0?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
    opacity: 0.3;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

#hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#hero-desc {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
}

/* Movies Section */
.movies-section {
    padding: 4rem 5%;
}

.movies-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.movies-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* Movie Card */
.movie-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.movie-thumb {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.movie-card:hover .movie-info {
    transform: translateY(0);
    opacity: 1;
}

.movie-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.movie-actions {
    display: flex;
    gap: 0.5rem;
}

.movie-actions button {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 2001;
    border-radius: 20px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.video-container {
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

#video-wrapper {
    width: 100%;
    height: 100%;
}

#video-wrapper iframe, #video-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
}

.auth-container, .form-container {
    max-width: 450px;
    padding: 3rem 2rem;
}

.modal h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-weight: 300;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0,0,0,0.5);
}

.error-msg {
    color: var(--accent);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #aaa;
}

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* Admin Section */
.admin-section {
    padding: 6rem 5% 4rem;
}

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

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
}

.admin-list-item .movie-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-list-item img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-list-actions {
    display: flex;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    #splash-name { font-size: 3rem; }
    #splash-reveal { font-size: 1.2rem; }
    
    #hero-title { font-size: 2.5rem; }
    
    header { padding: 1rem 5%; flex-wrap: wrap; }
    nav { margin-top: 1rem; width: 100%; justify-content: space-between; }
    
    .movies-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
