* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #fff;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #000;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: #e50914;
    font-size: 22px;
    font-weight: 900;
}

.search-container input {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #333;
    background: #111;
    color: white;
    width: 150px;
}

.category-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
}

.cat-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 10px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
    font-size: 13px;
}

.cat-btn img {
    width: 22px;
    height: 14px;
    object-fit: cover;
}

main {
    padding-bottom: 120px;
}

.section-title {
    padding: 0 15px;
    margin-bottom: 15px;
    font-size: 18px;
    border-left: 4px solid #e50914;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 15px;
}

.movie-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: white;
}

.movie-thumbnail {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.movie-info {
    padding: 8px;
}

.movie-title {
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- STYLE UNTUK HASHTAG (BARU) --- */
.movie-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.tag-item {
    font-size: 10px;
    color: #ff4a5a; /* Warna merah muda neon terang khas hashtag */
    background: rgba(255, 74, 90, 0.1); /* Latar kotak transparan tipis */
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.tag-item:hover {
    background: #e50914;
    color: white;
}

.ad-container-bottom {
    width: 100%;
    text-align: center;
    padding: 20px;
}
/* --- DESAIN TOMBOL NOMOR HALAMAN (PAGINATION) --- */
.pagination-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
    padding-bottom: 20px;
}

.page-num {
    background-color: #1a1a1a;
    color: white;
    border: 1px solid #333;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.page-num.active {
    background-color: #e50914; /* Warna merah saat halaman sedang dibuka */
    border-color: #e50914;
}

.page-num:hover:not(.active) {
    background-color: #333;
}
