@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&display=swap');

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #1a1a1a;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}



.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #999;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.search-bar input {
    background: #111;
    border: 1px solid #222;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #ffffff;
    width: 250px;
    transition: border-color 0.2s;
    font-size: 0.9rem;
}

.search-bar input:focus {
    outline: none;
    border-color: #8a2be2;
}

.search-bar input::placeholder {
    color: #666;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    padding: 0 4rem;
    gap: 4rem;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 3rem;
    font-weight: 700;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #ffffff;
    padding: 1.2rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hero-btn:hover {
    background: #8a2be2;
    border-color: #8a2be2;
    transform: translateX(5px);
}

.hero-btn-title {
    font-size: 1.1rem;
}

.hero-btn-subtitle {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
}

.hero-btn:hover .hero-btn-subtitle {
    color: #ddd;
}

/* Bento Grid */
.bento-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 150px);
    gap: 1rem;
    max-width: 600px;
}

.bento-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid #1a1a1a;
    position: relative;
}

.bento-item:hover {
    transform: scale(1.05) rotate(0deg) !important;
    border-color: #8a2be2;
    z-index: 10;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-item:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    transform: rotate(-3deg);
}

.bento-item:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    transform: rotate(2deg);
}

.bento-item:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    transform: rotate(-2deg);
}

.bento-item:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    transform: rotate(3deg);
}

.bento-item:nth-child(5) {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
    transform: rotate(-1deg);
}

.bento-item:nth-child(6) {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
    transform: rotate(2deg);
}

.bento-item:nth-child(7) {
    grid-column: 1 / 2;
    grid-row: 3 / 5;
    transform: rotate(-2deg);
}

.bento-item:nth-child(8) {
    grid-column: 2 / 3;
    grid-row: 4 / 5;
    transform: rotate(3deg);
}

.bento-item:nth-child(9) {
    grid-column: 3 / 4;
    grid-row: 4 / 5;
    transform: rotate(-3deg);
}

/* Content Sections */
.content-section {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: #ffffff;
    font-weight: 800;
}

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

.content-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.content-card:hover {
    transform: translateY(-4px);
    border-color: #8a2be2;
}

.content-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
}

.content-info {
    padding: 0.8rem;
}

.content-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

.rating {
    color: #8a2be2;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        flex-direction: column;
        padding: 2rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 120px);
        max-width: 100%;
    }
    
    .bento-item:nth-child(3) {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    
    .bento-item:nth-child(5) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    
    .bento-item:nth-child(7) {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .content-card img {
        height: 210px;
    }
    
    .search-bar input {
        width: 150px;
    }
}
/* Player Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    width: 100%;
    max-width: 1200px;
    background: #0a0a0a;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #1a1a1a;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #000;
    border-bottom: 1px solid #1a1a1a;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 800;
}

.close-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.close-btn:hover {
    background: #1a1a1a;
    color: #ffffff;
}

#playerIframe {
    width: 100%;
    height: 70vh;
    border: none;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .content-card img {
        height: 210px;
    }
    
    .modal {
        padding: 0;
    }
    
    .modal-content {
        border-radius: 0;
        height: 100%;
        max-width: 100%;
    }
    
    #playerIframe {
        height: calc(100vh - 60px);
    }
}

/* Page Header */
.page-header {
    margin-top: 100px;
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.page-header p {
    font-size: 1.1rem;
    color: #999;
    font-weight: 700;
}

.logo {
    text-decoration: none;
}

/* 3D Carousel */
.carousel-section {
    max-width: 1400px;
    margin: 4rem auto 6rem;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.carousel-container {
    perspective: 1200px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

.carousel {
    position: relative;
    width: 300px;
    height: 450px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    position: absolute;
    width: 280px;
    height: 420px;
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -210px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #1a1a1a;
    background: #0a0a0a;
}

.carousel-item:hover {
    border-color: #8a2be2;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel-item:hover .carousel-item-info {
    opacity: 1;
}

.carousel-item-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.carousel-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
}

.carousel-item-meta .rating {
    color: #8a2be2;
    font-weight: 700;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.carousel-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #ffffff;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: #8a2be2;
    border-color: #8a2be2;
}

@media (max-width: 768px) {
    .carousel-container {
        height: 400px;
    }
    
    .carousel {
        width: 200px;
        height: 300px;
    }
    
    .carousel-item {
        width: 180px;
        height: 270px;
        margin-left: -90px;
        margin-top: -135px;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-carousel {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.loading-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll 30s linear infinite;
    width: max-content;
}

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

.loading-poster {
    width: 200px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #1a1a1a;
    transition: transform 0.3s;
}

.loading-poster:hover {
    transform: scale(1.05);
    border-color: #8a2be2;
}

.loading-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loading-text {
    margin-top: 2rem;
    font-size: 1rem;
    color: #999;
    font-weight: 700;
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: 'loading'; }
    40% { content: 'loading.'; }
    60% { content: 'loading..'; }
    80%, 100% { content: 'loading...'; }
}

.loading-text::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}
