:root {
    --primary-color: #ff9d00;
    --primary-hover: #e68a00;
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --bg-card-hover: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --header-height: 70px;
    --glass-bg: rgba(15, 15, 15, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --accent-gradient: linear-gradient(135deg, #ff9d00, #ff5e00);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

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

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

/* Header */
#main-header {
    height: var(--header-height);
    background: transparent;
    backdrop-filter: blur(0px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

#main-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    height: 60px;
}

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

.logo a {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    font-weight: 400;
    color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.search-box {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px 15px;
    width: 300px;
}

.search-box input {
    background: none;
    border: none;
    color: white;
    padding: 8px;
    width: 100%;
    outline: none;
}

.search-box button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-login {
    background: var(--primary-color);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
}

.btn-login:hover {
    background: var(--primary-hover);
}

/* Hero Section */
#hero {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-dark) 5%, transparent 50%, rgba(10,10,10,0.8) 100%);
}

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

.badge {
    background: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

#hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#hero p {
    color: #22c55e;
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 35px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-logo-img {
    max-width: 350px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 20px rgba(255, 157, 0, 0.5));
    animation: fadeInLogo 1.5s ease-out;
}

@keyframes fadeInLogo {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Movie Grid */
#trending {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
}

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

.movie-card {
    transition: var(--transition);
}

.poster {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.movie-card:hover {
    transform: translateY(-10px);
}

.movie-card:hover .poster img {
    transform: scale(1.1);
    filter: brightness(0.4);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.poster:hover .overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transform: scale(0.8);
    transition: var(--transition);
}

.poster:hover .play-btn {
    transform: scale(1);
}

.quality {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 5;
}

.rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--primary-color);
    z-index: 5;
}

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

/* Coming Soon Specific */
.movie-card.coming-soon .poster img {
    filter: grayscale(0.8) brightness(0.7);
}

.movie-card.coming-soon:hover .poster img {
    filter: grayscale(0) brightness(0.6);
}

.movie-card.coming-soon .play-btn {
    background: #666;
}

.info {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.btn-watch-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
}

.btn-watch-now:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-watch-now i {
    font-size: 10px;
}

/* Site Description Section */
#site-description {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.description-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
}

.description-content h2, .description-content h3 {
    margin-bottom: 20px;
}

.description-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.feature-list i {
    color: var(--primary-color);
    font-size: 14px;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo a {
    font-size: 24px;
    font-weight: 700;
}

.footer-logo span {
    color: var(--primary-color);
}

.disclaimer {
    color: #555;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-top: 30px;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.pagination span.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.pagination-bottom {
    margin-top: 50px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 992px) {
    .search-box {
        display: none;
    }
    .hero-content h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .footer-links ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
