:root {
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --accent: #e50914;
    --accent-hover: #ff0f1a;
    --text-white: #ffffff;
    --text-gray: #a3a3a3;
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: -1px;
}

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

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* Search Box */
.search-box {
    display: flex;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    padding: 0 1rem;
    outline: none;
    width: 200px;
}

.search-box button {
    background: var(--accent);
    border: none;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--accent-hover);
}

/* Hero Section */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    transition: background-image 0.5s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.4) 50%, transparent 100%),
                linear-gradient(to top, rgba(10,10,10,1) 0%, transparent 30%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.badge {
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(128, 128, 128, 0.4);
    color: white;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(128, 128, 128, 0.6);
}

/* Grid Section */
.content-section {
    margin-top: -100px;
    position: relative;
    z-index: 20;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 2/3;
}

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

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

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.card:hover .card-info {
    opacity: 1;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Player Modal */
.player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2100;
}

.iframe-container {
    flex-grow: 1;
    background: #000;
    position: relative;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
}

.player-info {
    padding: 2rem 0;
    background: var(--bg-dark);
}

.player-controls {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.btn-tab {
    background: rgba(255,255,255,0.05);
    color: var(--text-gray);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
}

.btn-tab.active {
    background: var(--accent);
    color: white;
}

/* Loader */
.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    grid-column: 1 / -1;
    margin: 4rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

#loadMoreBtn {
    padding: 1rem 3rem;
    font-size: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-white);
}

#loadMoreBtn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .nav-links, .search-box { display: none; }
    .hero h1 { font-size: 2.5rem; }
}
