body {
    background-color: #191919;
    color: #e0e0e0;
    font-family: "Inter", sans-serif;
    margin: 0 auto;
    padding: 0;
}

.navbar-brand, .nav-link {
    color: #ffffff !important;
    transition: color 0.2s ease-in-out;
}

.nav-link:hover, .navbar-brand:hover {
    color: #ffc107 !important;
}

.drama-card {
    background-color: #1e1e1e;
    border: 1px solid #2c2c2c;
    border-radius: 2px;
    overflow: hidden;
    text-decoration: none;
    color: #e0e0e0;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.drama-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    color: #ffc107;
}

.drama-card-poster {
    position: relative;
    padding-top: 150%; 
}

.drama-card-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  	padding: 4px;
  	object-fit: cover;
}

.drama-card-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 8px;
    font-size: 0.8rem;
    text-align: right;
}

.drama-card-body {
    padding: 0.5rem;
    flex-grow: 1;
}

.drama-card-title {
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skeleton {
    background-color: #2a2a2a;
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-poster {
    padding-top: 150%;
}

.skeleton-title {
    height: 24px;
    margin-top: 1rem;
}

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

#detail-genres .badge {
    transition: background-color 0.2s ease;
}
#detail-genres .badge:hover {
    background-color: #ffc107 !important;
    color: #121212 !important;
}

#server-buttons .btn.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #121212;
    font-weight: bold;
}
#episode-buttons .btn.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #121212;
}
/* Add these new styles to your existing assets/css/style.css file */

.nav-tabs {
    border-bottom: 2px solid #333;
}

.nav-tabs .nav-link {
    border: none;
    color: #a0a0a0;
    font-weight: 500;
}

.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
    color: #ffc107;
    background-color: transparent;
    border-bottom: 2px solid #ffc107;
}

.tab-content > .tab-pane {
    padding: 1rem 0;
}

.section-header {
    border-left: 4px solid #ffc107;
    padding-left: 1rem;
}

#episode-buttons .btn, #server-buttons .btn {
    border-color: #444;
}
.drama-card-poster {
    position: relative;
    overflow: hidden; /* Important to contain the badge */
}

.drama-card-status-badge {
    position: absolute;
    top: 18px;
    left: -30px;
    background-color: #dc3545;
    color: white;
    padding: 4px 30px;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-45deg);
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.drama-card-status-badge.on-going {
    background-color: #dc3545; 
}

.drama-card-status-badge.complete {
    background-color: #198754; /* Green for Complete */
}
.row > .col-custom-5 {
    flex: 0 0 auto;
    width: 50%;
}

/* Tablets: 3 items per row */
@media (min-width: 576px) {
    .row > .col-custom-5 {
        width: 33.333%;
    }
}

/* Desktops: 4 items per row */
@media (min-width: 768px) {
    .row > .col-custom-5 {
        width: 25%;
    }
}

/* Large Desktops: 5 items per row */
@media (min-width: 1200px) {
    .row > .col-custom-5 {
        width: 20%;
    }
}

.sidebar-ad-placeholder {
    background-color: #1e1e1e;
    border: 1px solid #2c2c2c;
    border-radius: 2px;
    padding: 3px;
    text-align: center;
}

.sidebar-box {
    background-color: #1e1e1e;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    padding: 1rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffc107;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 2;
    column-gap: 1rem;
}

.sidebar-category-list li a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: #e0e0e0;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-category-list li a:hover {
    background-color: #ffc107;
    color: #121212;
}

/* Scrollbar styling for webkit browsers */
.sidebar-category-list::-webkit-scrollbar {
  width: 5px;
}
.sidebar-category-list::-webkit-scrollbar-track {
  background: #1e1e1e;
}
.sidebar-category-list::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 5px;
}
.sidebar-category-list::-webkit-scrollbar-thumb:hover {
  background: #ffc107;
}
.custom-pagination {
    justify-content: center; /* Center on mobile */
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 10px;
}

/* Hide non-essential info on mobile by default */
.pagination-info,
.custom-pagination .page-item-last {
    display: none;
}

.custom-pagination .pagination {
    --bs-pagination-border-width: 0;
    --bs-pagination-border-radius: 0.375rem;
}

.custom-pagination .page-link {
    background-color: #2a2a2a;
    color: #e0e0e0;
    margin: 0 2px;
}

.custom-pagination .page-link:hover {
    background-color: #444;
    color: #fff;
}

.custom-pagination .page-item.active .page-link {
    background-color: #f8f9fa;
    color: #121212;
    font-weight: bold;
}

.custom-pagination .page-item.disabled .page-link {
    background-color: #2a2a2a;
    color: #555;
}

/* On screens larger than 576px (tablets and desktops) */
@media (min-width: 576px) {
    .custom-pagination {
        justify-content: flex-start; /* Align left on larger screens */
    }

    /* Show the hidden elements again */
    .pagination-info,
    .custom-pagination .page-item-last {
        display: block;
    }
}

.player-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    color: #a0a0a0;
    background-color: #000;
}

.player-placeholder-error {
    color: #ffc107; /* Use your accent color for errors */
}

.player-placeholder-error small {
    color: #a0a0a0;
    margin-top: 5px;
}
#detail-tags .badge:hover {
    background-color: #ffc107 !important;
    color: #121212 !important;
}
.meta-link {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.meta-link:hover {
    color: #ffc107;
}
.mobile-header-btn, .navbar-toggler {
    color: #e0e0e0;
    font-size: 1.25rem;
    border: none;
}
.mobile-header-btn:focus, .navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler {
    padding: 0.25rem 0.5rem; /* Adjust padding for hamburger */
}

/* Styling for the search modal popup */
#searchModal .modal-content {
    background-color: #2a2a2a;
    border: 1px solid #444;
}
#searchModal .modal-body {
    padding: 1.5rem;
}
#searchModal .form-control {
    background-color: #1e1e1e;
    border: 1px solid #444;
    color: #fff;
}
#searchModal .form-control:focus {
    background-color: #1e1e1e;
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
    color: #fff;
}
#similar-slider {
    padding: 0 5px; /* Add a little padding so cards don't touch the edges */
}

.swiper-button-next,
.swiper-button-prev {
    color: #ffc107; /* Use your site's accent color */
    background-color: rgba(18, 18, 18, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background-color 0.2s ease;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(18, 18, 18, 0.8);
}