/* Reset & Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b0b0b;
    color: #ffffff;
    overflow-x: hidden;
}

/* Header LK21 Style */
header {
    background-color: #141414;
    border-bottom: 3px solid #df1a5a;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-icon {
    font-size: 28px;
}

.logo-highlight {
    color: #df1a5a;
}

.search-bar {
    display: flex;
    flex: 1;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.search-bar button {
    background-color: #df1a5a;
    border: none;
    color: white;
    padding: 0 15px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.search-bar button:hover {
    background-color: #b81045;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #cccccc;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #df1a5a;
}

/* Teks Berjalan di bawah header */
.category-bar {
    background-color: #f7b731;
    color: #000000;
    padding: 8px 0;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

/* Container Utama */
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid #222222;
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.section-title span {
    color: #f7b731;
}

/* Grid & Kartu Portofolio (Mirip grid Film) */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.movie-card {
    background-color: #141414;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid #222;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: #df1a5a;
}

.card-image-wrapper {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #1e1e24, #2a2a35);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder {
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
}

/* Efek Glow sewaktu Hover */
.movie-card:hover .avatar-placeholder {
    color: #df1a5a;
    text-shadow: 0 0 10px rgba(223, 26, 90, 0.6);
}

/* Badge Rating & Label */
.badge-rating {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    border-left: 3px solid #f7b731;
}

.badge-rating span {
    color: #f7b731;
}

.badge-role {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #df1a5a;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* Info Detail */
.movie-info {
    padding: 12px;
}

.member-name {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
    margin-bottom: 4px;
}

.member-title {
    font-size: 12px;
    color: #aaaaaa;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #777777;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #555555;
    border-top: 1px solid #1a1a1a;
    margin-top: 50px;
}

/* Hiburan Mouse Trail */
#trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #df1a5a;
    box-shadow: 0 0 8px #df1a5a, 0 0 15px #f7b731;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: fadeOut 0.8s linear forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
}

/* Responsive Grid */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
    }
    .search-bar {
        max-width: 100%;
    }
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

.modal-overlay {
    display: none; /* Tersembunyi secara default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: #151515;
    border: 2px solid #df1a5a;
    border-radius: 8px;
    width: 100%;
    max-width: 700px;
    position: relative;
    animation: zoomIn 0.3s ease-out;
    color: #fff;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.close-modal:hover {
    color: #df1a5a;
}

.modal-body-layout {
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

.modal-poster-wrapper {
    flex: 1;
    max-width: 200px;
    aspect-ratio: 2 / 3;
    background: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #333;
}

.modal-info-wrapper {
    flex: 2;
}

#modal-name {
    color: #fecc00;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    height: 25px;
}

.modal-meta .quality-tag, .modal-meta .rating-tag {
    position: static;
}

.modal-description h3 {
    color: #df1a5a;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.modal-description p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* RESPONSIVE UNTUK LAYAR HP */
@media (max-width: 600px) {
    .modal-body-layout {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
        text-align: center;
    }
    .modal-poster-wrapper {
        max-width: 150px;
    }
    .modal-meta {
        justify-content: center;
    }
}