:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #bb86fc;
    --secondary-bg: #1f1f1f;
    --header-bg: #0a0a0a;
    --sidebar-bg: #1a1a1a;
    --sidebar-text: #e0e0e0;
    --sidebar-title: #ffffff;
    --sidebar-link: #b0b0b0;
    --sidebar-link-hover: #007bff;
    --tag-bg: #333333;
    --tag-text: #e0e0e0;
    --tag-bg-hover: #4a4a4a;
    --date-text: #888888;
    --scrollbar-thumb: #4a4a4a;
    --scrollbar-thumb-hover: #666666;
    --text-color: #ffffff;
    --link-hover-color: #007bff;
}
.videoalt {
    width: 100%;
    float: left;
    text-align: center;
    height: 90px;
    background: rgb(31 31 31 / 88%);
    padding: 0px;
    margin-bottom: 15px;
}
/* Reset dan gaya dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #464040;
    background-color: #121212;
}

/* Navbar styles */
.navbar {
    background-color: #333;
    color: white;
    padding: 1rem;
}

.navbar-logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

.navbar-toggle {
    display: none;
}

.navbar-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.navbar-menu > li {
    display: inline-block;
    margin-right: 1rem;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #444;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    padding: 12px 16px;
    display: block;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden; /* Mencegah scroll horizontal */
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: #333;
        z-index: 1000;
        padding: 1rem;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px; /* Sesuaikan dengan tinggi navbar */
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background-color: #333;
        z-index: 999;
        overflow-y: auto;
        padding-bottom: 60px; /* Tambahkan padding di bawah */
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        margin: 0;
        width: 100%;
    }

    .navbar-menu a,
    .dropdown-toggle {
        display: block;
        padding: 0.5rem 1rem;
        width: 100%;
        box-sizing: border-box;
        color: white;
        text-decoration: none;
    }

    .dropdown-menu {
        display: none;
        background-color: #444;
        width: 100%;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-menu a {
        padding-left: 2rem;
    }

    .navbar-toggle {
        display: block;
        cursor: pointer;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #9b59b6;
        transition: all 0.3s ease-in-out;
    }

    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Header dan Navigasi */
header {
    background-color: #1a1a1a;
    
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}


nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #333;
}

/* Dropdown menu */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    min-width: 200px;
}

nav ul li:hover > ul {
    display: block;
}

nav ul li ul li {
    width: 100%;
}

nav ul li ul li a {
    padding: 0.7rem 1rem;
}

/* Tombol menu untuk tampilan mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Konten Utama */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    padding-top: 3px; /* Sesuaikan nilai ini dengan tinggi navbar Anda */
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* Grid Film */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
}

.movie-poster {
    flex: 0 0 300px;
    min-width: 200px;
    max-width: 300px;
}

.movie-poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .play-button {
    opacity: 1;
}

.movie-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.movie-title {
    font-size: 14px;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-rating {
    font-size: 12px;
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #444;
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 40px 0 20px;
    font-family: Arial, sans-serif;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    margin-right: 30px;
    margin-bottom: 20px;
    min-width: 200px;
}

.footer-section:last-child {
    margin-right: 0;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #b0b0b0;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #b0b0b0;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333333;
}

.footer-bottom p {
    font-size: 12px;
    color: #888888;
}

/* Responsive design for footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        margin-right: 0;
        margin-bottom: 30px;
    }
}

/* Responsif */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden; /* Mencegah scroll horizontal */
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: #333;
        z-index: 1000;
        padding: 1rem;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px; /* Sesuaikan dengan tinggi navbar */
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background-color: #333;
        z-index: 999;
        overflow-y: auto;
        padding-bottom: 60px; /* Tambahkan padding di bawah */
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        margin: 0;
        width: 100%;
    }

    .navbar-menu a,
    .dropdown-toggle {
        display: block;
        padding: 0.5rem 1rem;
        width: 100%;
        box-sizing: border-box;
        color: white;
        text-decoration: none;
    }

    .dropdown-menu {
        display: none;
        background-color: #444;
        width: 100%;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-menu a {
        padding-left: 2rem;
    }

    .navbar-toggle {
        display: block;
        cursor: pointer;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #9b59b6;
        transition: all 0.3s ease-in-out;
    }

    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .dropdown-toggle::after {
        content: '\25BC';
        float: right;
    }

    .dropdown-menu.show {
        display: block;
    }

    /* Tambahkan ini untuk memberikan ruang di atas konten utama */
    main {
        padding-top: 10px; /* Sesuaikan dengan tinggi navbar */
    }
}

@media screen and (min-width: 576px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .movie-card h2 {
        font-size: 1rem;
    }

    .movie-card p {
        font-size: 0.8rem;
    }
}

@media screen and (min-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .movie-card h2 {
        font-size: 1.1rem;
    }

    .movie-card p {
        font-size: 0.9rem;
    }
}

@media screen and (min-width: 992px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media screen and (min-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .movie-card h2 {
        font-size: 1rem;
    }

    .movie-card p {
        font-size: 0.8rem;
    }
}

@media screen and (min-width: 1400px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #333;
    color: white;
}

.navbar-logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

.navbar-menu {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin-left: 1rem;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px; /* Sesuaikan dengan tinggi navbar */
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background-color: #333;
        z-index: 999;
        overflow-y: auto;
        padding-bottom: 60px; /* Tambahkan padding di bawah */
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        margin: 0;
        width: 100%;
    }

    .navbar-menu a {
        display: block;
        padding: 0.5rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        max-height: none;
        overflow-y: visible;
    }

    .navbar-toggle {
        display: block;
        cursor: pointer;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #9b59b6;
    }
}

body.menu-open {
    overflow: hidden;
}

/* Styles for post.html */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #1f1f1f;
    border-radius: 0.25rem;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    color: var(--text-color);
    content: "/";
    opacity: 0.5;
}

.breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-color);
    opacity: 0.7;
}

/* Taxonomy */
.taxonomy {
    margin-bottom: 15px;
}

.taxonomy-item {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 5px;
}

/* Video wrapper */
.video-wrapper {
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Social buttons */
.social-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.social-buttons a {
    padding: 5px 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.sh-face {
    background-color: #3b5998;
}

.sh-twitter {
    background-color: #1da1f2;
}

.like-button, .dislike-button {
    background-color: #6c757d;
}

/* Server list */
.server-list {
    margin-bottom: 20px;
}

.server-list .title {
    font-weight: bold;
    margin-bottom: 10px;
}

#listelements {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.elements {
    flex-basis: calc(25% - 15px);
    max-width: calc(25% - 15px);
}

.elements a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    color: white;
    background-size: 200% auto;
    transition: 0.5s;
    box-shadow: 0 4px 15px 0 rgba(45, 54, 65, 0.75);
}

.elements:nth-child(1) a {
    background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
}

.elements:nth-child(2) a {
    background-image: linear-gradient(to right, #fa709a 0%, #fee140 100%);
}

.elements:nth-child(3) a {
    background-image: linear-gradient(to right, #43e97b 0%, #38f9d7 100%);
}

.elements:nth-child(4) a {
    background-image: linear-gradient(to right, #f83600 0%, #f9d423 100%);
}

.elements a:hover {
    background-position: right center;
    transform: scale(1.05);
    box-shadow: 0 6px 20px 0 rgba(45, 54, 65, 0.85);
}

/* Movie info */
.movie-details-container {
    display: flex;
    background-color: #1a1a1a;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
}

.movie-poster {
    flex: 0 0 300px;
    min-width: 200px;
    max-width: 300px;
    margin-right: 20px;
}

.movie-poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.movie-info {
    flex: 1;
    color: #ffffff;
    min-width: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px;
    border-radius: 8px;
}

.movie-info h1 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #9b59b6;
}

.movie-info h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #9b59b6;
}

#film-aciklama {
    margin-bottom: 20px;
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #2c3e50;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #34495e;
    border-radius: 4px;
}

.list-item {
    margin-bottom: 10px;
    font-size: 14px;
}

.infoelements {
    font-weight: bold;
    color: #9b59b6;
    margin-right: 5px;
}

.list-item a {
    color: #ecf0f1;
    text-decoration: none;
}

.list-item a:hover {
    text-decoration: underline;
}

.related-movies {
    margin-top: 30px;
}

.related-movies h2 {
    font-size: 24px;
    color: #3498db;
    margin-bottom: 20px;
}

.movie-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.movie-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.movie-card img {
    width: 100%;
    height: auto;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .play-button {
    opacity: 1;
}

.movie-card .movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
}

.movie-card .movie-title {
    font-size: 14px;
    margin-bottom: 5px;
    color: white;
}

.movie-card .movie-rating {
    font-size: 12px;
    color: #f1c40f;
}

@media (max-width: 768px) {
    .movie-details-container {
        flex-direction: column;
    }

    .movie-poster {
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .movie-info {
        width: 100%;
    }

    .movie-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.title-border {
    border-left: 4px solid #bb86fc;
    padding-left: 10px;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
}

/* Versi mobile untuk .title-border */
@media screen and (max-width: 768px) {
    .title-border {
        border-left: 3px solid #bb86fc; /* Mengurangi ketebalan border */
        padding-left: 8px; /* Mengurangi padding */
        font-size: 16px; /* Mengurangi ukuran font */
    }
}

/* Untuk layar yang sangat kecil */
@media screen and (max-width: 480px) {
    .title-border {
        border-left: 2px solid #bb86fc; /* Lebih mengurangi ketebalan border */
        padding-left: 6px; /* Lebih mengurangi padding */
        font-size: 14px; /* Lebih mengurangi ukuran font */
    }
}

/* Layout untuk konten utama dan sidebar */
.main-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3px;
}

.main-content {
    flex: 1;
    min-width: 0; /* Mencegah konten melebar melebihi container */
}

.sidebar {
    width: 300px;
    flex-shrink: 0; /* Mencegah sidebar menyusut */
}

/* Responsive layout */
@media (max-width: 992px) {
    .main-content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-top: 20px;
    }
}

/* Sidebar styles */
.sidebar {
    width: 300px;
    background-color: #1a1a1a; /* Warna latar belakang gelap */
    color: #e0e0e0; /* Warna teks terang */
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff; /* Warna judul lebih terang */
}

.sidebar-list {
    list-style-type: none;
    padding: 0;
}

.sidebar-list-item {
    margin-bottom: 10px;
}

.sidebar-list-item a {
    color: #b0b0b0; /* Warna teks tautan */
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-list-item a:hover {
    color: #007bff; /* Warna hover */
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background-color: #333333; /* Warna latar belakang tag */
    color: #e0e0e0; /* Warna teks tag */
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.tag-item:hover {
    background-color: #4a4a4a; /* Warna hover tag */
}

.recent-post {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.recent-post-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.recent-post-info {
    flex: 1;
}

.recent-post-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #e0e0e0;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #888888; /* Warna teks tanggal */
}

/* Custom scrollbar styles */
.custom-scrollbar {
    max-height: 100px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #4a4a4a;
    border-radius: 4px;
    border: 2px solid #1a1a1a;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #666666;
}

/* Responsive design for sidebar */
@media (max-width: 992px) {
    .sidebar {
        width: 100%;
        margin-top: 20px;
    }
}

/* Styles for #listulx */
#listulx {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

#listulx li {
    width: 50%;
    margin-bottom: 8px;
    box-sizing: border-box;
}

#listulx li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 2px 5px
}

#listulx li a:hover {
    color: var(--primary-color);
}
form.example input[type=text] {
    padding: 10px;
    font-size: 17px;
    border: 1px solid grey;
    float: left;
    width: 80%;
    background: #f1f1f1;
  }
  
  form.example button {
    float: left;
    width: 20%;
    padding: 10px;
    background: #2196F3;
    color: white;
    font-size: 17px;
    border: 1px solid grey;
    border-left: none;
    cursor: pointer;
  }
  
  form.example button:hover {
    background: #0b7dda;
  }
  
  form.example::after {
    content: "";
    clear: both;
    display: table;
  }

  .footer-section .tags {
        
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .footer-section .tag {
        background-color: #1a1a1a;
        color: #ffffff;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.9em;
        text-decoration: none;
        transition: all 0.3s ease;
        margin-bottom: 8px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .footer-section .tag:hover,
    .footer-section .tag:focus {
        background-color: #e1e1e1;
        transform: translateY(-2px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    @media (max-width: 768px) {
        .footer-section .tags {
            justify-content: flex-start;
        }

        .footer-section .tag {
            font-size: 0.8em;
            padding: 5px 10px;
        }
    }

    @media (max-width: 480px) {
        .footer-section .tag {
            font-size: 0.75em;
            padding: 4px 8px;
        }
}
.sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f1f1f100;
    padding: 10px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.close-ad {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.ad-placeholder {
    max-width: 100%;
}

@media screen and (max-width: 728px) {
    .sticky-ad {
        padding: 5px;
    }
    
    .ad-content {
        transform: scale(0.9);
        transform-origin: center center;
    }
}

@media screen and (max-width: 480px) {
    .sticky-ad {
        padding: 3px;
    }
    
    .ad-content {
        transform: scale(0.7);
    }
}

.ad-container {
    margin-top: 60px;
    width: 100%;
    max-width: 1200px; /* Sesuaikan dengan lebar maksimum konten Anda */
    margin: 20px auto;
    padding: 0 15px;
}

.ad-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.ad-placeholder {
    max-width: 100%;
    background-color: #f0f0f000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #666;
    border: 1px solid #ddd;
}

@media screen and (max-width: 768px) {
    .ad-container {
        padding: 0 2px;
        margin-top: 80px;
    }
    
    .ad-wrapper {
        margin-bottom: 15px;
    }
}
.sticky-side-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 999; /* Pastikan ini lebih rendah dari z-index .sticky-ad yang sudah ada jika perlu */
    pointer-events: none;
}

.sticky-side-ad .side-ad-content {
    pointer-events: auto;
}

.left-side-ad {
    left: 10px;
}

.right-side-ad {
    right: 10px;
}

.side-ad-content {
    width: 100%;
    height: 600px;
    overflow: hidden;
}

/* Responsivitas */
@media screen and (max-width: 1400px) {
    .sticky-side-ad {
        display: none;
    }
}

.loading {
    display: none; /* Sembunyikan secara default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading.active {
    display: flex; /* Tampilkan saat aktif */
}