/* Global Styles */
body {
    background-color: #000000;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* Helper Classes */
.text-justify {
    text-align: justify;
}

/* Top Bar */
.top-bar {
    background-color: #1a1a1a;
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px solid #000;
}

.top-bar .container {
    display: flex;
    justify-content: center;
}

.top-bar a {
    margin: 0 15px;
    color: #888;
    font-weight: 500;
}

.top-bar a:hover {
    color: #ccc;
    text-decoration: none;
}

/* Logo Section */
.logo-section {
    padding: 25px 0;
    background-color: #000;
    border-bottom: none;
    position: relative;
    z-index: 10;
}

.site-logo {
    font-size: 42px;
    font-weight: bold;
    font-family: 'Arial Narrow', 'Impact', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.site-logo:hover {
    text-decoration: none;
}

.k-red {
    color: #e50914;
    border: 2px solid #e50914;
    padding: 0 8px;
    margin-right: 4px;
    display: inline-block;
    line-height: 1;
}

.movie-white {
    color: #fff;
    font-weight: 400;
}

.hd-red {
    color: #e50914;
    font-weight: bold;
}

/* Featured Horizontal Slider */
.featured-slider-container {
    background-color: #000;
    padding: 0;
    border-top: 1px solid #222;
    border-bottom: 2px solid #222;
    overflow: hidden;
}

/* Full Width Slider */
.featured-slider-container-full {
    background-color: #000;
    padding: 0;
    border-top: 1px solid #222;
    border-bottom: 2px solid #222;
    overflow: hidden;
    width: 100%;
    margin: 0;
}

.featured-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 15px 30px;
    flex-wrap: nowrap;
    width: 100%;
    list-style: none;
    margin: 0;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.featured-row::-webkit-scrollbar {
    height: 6px;
}

.featured-row::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.featured-item {
    width: calc(12% - 9px);
    flex: 0 0 calc(12% - 9px);
    min-width: 120px;
    max-width: 160px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
    aspect-ratio: 2/3;
    transition: transform 0.2s ease;
}

.featured-item:hover {
    transform: scale(1.05);
}

.featured-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out;
    display: block;
    /* Ensure image isn't stretched weirdly */
    object-fit: cover;
}

.featured-item:hover .featured-img {
    opacity: 1;
}

.featured-text {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    font-size: 13px;
    line-height: 1.2;
    text-transform: uppercase;
    pointer-events: none;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

/* Main Navigation */
.main-nav {
    background-color: #0d0d0d !important;
    border-bottom: 1px solid #222;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    min-height: 50px;
}

.main-nav .container {
    max-width: 1400px;
}

.main-nav .nav-link {
    color: #bbb;
    font-weight: 500;
    padding: 15px 12px !important;
    font-size: 13px;
    text-transform: none;
    border-right: 1px solid #1a1a1a;
}

.main-nav .nav-link:hover {
    background-color: #1a1a1a;
    color: #fff !important;
}

.main-nav .nav-link i {
    margin-right: 5px;
}

.search-form {
    padding: 8px 0;
    margin-left: auto;
}

.search-form input {
    background-color: #222;
    border: 1px solid #333;
    color: #999;
    min-width: 250px;
    font-size: 12px;
    padding: 8px 15px;
    border-radius: 0;
    width: 200px;
}

.search-form input:focus {
    background-color: #444;
    border-color: #555;
    color: #fff;
    box-shadow: none;
}

.search-form button {
    display: none;
}

/* Layout */
.container {
    max-width: 1400px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Sidebar */
.sidebar-widget {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 30px;
    border-radius: 0;
    overflow: visible;
}

.widget-title {
    background: #111;
    padding: 8px 12px;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    border-left: 4px solid #e50914;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-links li {
    margin-bottom: 5px;
}

.sidebar-links a {
    color: #0099ff;
    font-size: 13px;
    text-decoration: none;
}

.sidebar-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    line-height: 1.2;
}

.tag-link {
    color: #0099ff;
    /* Blue for most tags */
    text-decoration: none;
    transition: color 0.2s;
}

.tag-link:hover {
    color: #e50914;
}

.tag-link.size-1 {
    font-size: 11px;
    color: #444;
}

/* Smallest, darker grey */
.tag-link.size-2 {
    font-size: 14px;
    color: #0099ff;
}

/* Medium, Blue */
.tag-link.size-3 {
    font-size: 20px;
    color: #6699cc;
}

/* Large, lighter blue/grey */
.sidebar-widget select.form-select {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #eee !important;
    font-size: 13px;
    padding: 8px;
    border-radius: 4px;
}

.sidebar-widget select.form-select:focus {
    border-color: #e50914 !important;
    box-shadow: none;
}

/* Footer */
.footer {
    background-color: #050505;
    padding: 20px 0;
    font-size: 11px;
    color: #666;
    text-align: left;
    border-top: 1px solid #111;
    margin-top: 50px;
}

.footer p {
    margin-bottom: 5px;
    line-height: 1.4;
}

.footer a {
    color: #888;
}

/* Movie Card Style */
/* Movie Card Style */
.movie-card {
    margin-bottom: 35px;
    /* Increased bottom margin */
    position: relative;
    background: transparent;
    border: none;
}

.poster-container {
    position: relative;
    overflow: hidden;
    border: none;
    /* No border as per reference */
    background: #000;
    margin-bottom: 10px;
    /* Space between poster and text */
}

.poster-image {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.movie-card:hover .poster-image {
    transform: scale(1.05);
    opacity: 0.9;
}

.quality-badge {
    display: none;
    /* Hidden based on the screenshot provided which doesn't show them */
}

.movie-info {
    padding: 0;
    text-align: left;
    /* Left align everything */
}

.movie-category {
    font-size: 11px;
    color: #0099ff;
    /* Bright blue color */
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.movie-title {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    /* Allow multi-line */
    white-space: normal;
}

.movie-title a {
    color: #fff;
    text-decoration: none;
}

.movie-title a:hover {
    color: #e50914;
    /* Red hover effect */
}

/* Single Movie Page Styles */
.movie-header {
    background: #111;
    border: 1px solid #222;
    padding: 20px;
    margin-bottom: 20px;
}

.movie-title-large {
    font-size: 24px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #e50914;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #333;
    color: #ccc;
}

.info-list strong {
    color: #fff;
    width: 100px;
    display: inline-block;
}

.download-btn {
    display: block;
    background: #222;
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
}

.download-btn:hover {
    background: #e50914;
    color: #fff;
    border-color: #e50914;
}

.server-badge {
    background: #e50914;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 5px;
}

/* Pagination */
.pagination .page-link {
    background-color: #111;
    border-color: #333;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #e50914;
    border-color: #e50914;
}

.pagination .page-link:hover {
    background-color: #333;
    border-color: #333;
}

/* ==========================================================================
   Responsive Design Media Queries
   ========================================================================== */

/* Large Desktop (min-width: 1400px) */
@media (min-width: 1400px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Tablet and Mobile (max-width: 991px) */
@media (max-width: 991px) {
    .top-bar {
        padding: 0;
        border-bottom: 2px solid #222;
    }

    .mobile-top-toggle {
        cursor: pointer;
        font-weight: bold;
        color: #eee;
        background: #111;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .top-bar a.top-link {
        display: block;
        padding: 8px 15px;
        margin: 0;
        border-bottom: 1px solid #252525;
        font-size: 12px;
        text-align: left;
    }

    .site-logo {
        font-size: 30px;
    }

    .main-nav .container {
        padding: 0 10px;
    }

    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.1);
        padding: 4px 8px;
    }

    .mobile-search-direct input {
        background-color: #1a1a1a !important;
        border: 1px solid #333 !important;
        color: #888 !important;
        border-radius: 4px !important;
        font-size: 14px !important;
        padding: 8px 15px !important;
        width: 100%;
        height: 38px;
    }

    .mobile-search-direct input::placeholder {
        color: #444;
    }

    .mobile-search-direct input:focus {
        border-color: #444 !important;
        box-shadow: none !important;
    }

    .navbar-collapse {
        background: #000;
        padding: 10px;
        margin: 0;
        border: none;
        border-top: 1px solid #1a1a1a;
    }

    .main-nav .nav-link {
        padding: 12px 15px !important;
        border-bottom: 1px solid #111;
        font-size: 14px;
        text-align: left;
    }

    .search-form#search-form-desktop {
        display: none !important;
    }

    /* Offcanvas Styling */
    .mobile-offcanvas {
        width: 280px !important;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .mobile-nav-list .nav-item {
        border-bottom: 1px solid #222;
    }

    .mobile-nav-list .nav-link {
        color: #ccc !important;
        padding: 15px 20px !important;
        font-size: 15px;
        display: flex;
        align-items: center;
        border: none !important;
    }

    .mobile-nav-list .nav-link:hover,
    .mobile-nav-list .nav-link:active {
        background-color: #1a1a1a;
        color: #e50914 !important;
    }

    .mobile-nav-list .dropdown-toggle::after {
        margin-left: auto;
    }

    .mobile-nav-list .dropdown-menu {
        background-color: #111 !important;
        border: none;
        padding: 0;
        margin: 0;
        border-radius: 0;
    }

    .mobile-nav-list .dropdown-item {
        color: #aaa !important;
        padding: 12px 40px !important;
        border-bottom: 1px solid #1a1a1a;
        font-size: 14px;
    }

    .mobile-nav-list .dropdown-item:hover {
        background-color: #222;
        color: #fff !important;
    }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {

    /* Adjust grid to 2 columns for mobile like KatMovieHD app */
    .row-cols-2>* {
        width: 50%;
        padding-left: 5px;
        /* Tighter spacing on mobile */
        padding-right: 5px;
    }

    .g-3,
    .row-cols-2 {
        --bs-gutter-x: 10px;
        /* Overriding Bootstrap gutter for mobile */
    }

    .featured-item {
        min-width: 90px;
        height: 120px;
    }

    .movie-title {
        font-size: 11px;
    }

    .movie-category {
        font-size: 9px;
    }

    .sidebar {
        margin-top: 30px;
    }

    .movie-title {
        font-size: 13px;
        /* Slightly larger on mobile for readability */
        line-height: 1.3;
    }

    .movie-category {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .movie-header {
        padding: 15px;
    }

    .movie-title-large {
        font-size: 20px;
    }

    .info-list strong {
        width: 80px;
        font-size: 13px;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .movie-card {
        margin-bottom: 15px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .site-logo {
        font-size: 26px;
    }

    .featured-slider-container {
        padding: 10px 0;
    }
}

/* Movie Detail Page Custom Styles */
.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: #bbb;
}

.info-list strong {
    color: #eee;
    width: 100px;
    display: inline-block;
}

.download-btn {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #eee;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-bottom: 10px;
}

.download-btn:hover {
    background-color: #252525;
    border-color: #555;
    color: #fff;
    transform: translateY(-2px);
}

.server-badge {
    background-color: #ffc107;
    color: #000;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 15px;
}

/* Category/Tag Header */
.col-md-9 h4 {
    letter-spacing: 0.5px;
}

.movie-title a {
    color: #eee;
    text-decoration: none;
}

.movie-title a:hover {
    color: #fff;
}

/* WordPress Style Content Rendering */
.entry-content {
    color: #bbb;
    font-size: 14px;
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #fff;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

/* Centering Logic (WordPress uses these) */
.entry-content .aligncenter,
.entry-content img[style*="text-align: center"],
.entry-content div[style*="text-align: center"],
.entry-content p[style*="text-align: center"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.entry-content a {
    color: #e50914;
    text-decoration: none;
}

.entry-content a:hover {
    text-decoration: underline;
}

.entry-content blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 16px;
    border-left: 5px solid #e50914;
    background: #111;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 5px;
}

.entry-content pre,
.entry-content code {
    background: #111;
    color: #eee;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

.entry-content pre {
    padding: 15px;
    overflow: auto;
    border: 1px solid #333;
}

/* Responsive Embeds */
.video-container {
    margin-bottom: 30px;
}

.ratio-16x9 iframe,
.ratio-16x9 embed,
.ratio-16x9 object,
.ratio-16x9 video {
    width: 100%;
    height: 100%;
}

/* Mobile Bottom Navigation - Specialized Layout */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px 25px 0 0;
    padding: 0 5px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.mobile-bottom-nav .nav-item a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    height: 100%;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Centered Home Button Styling */
.mobile-bottom-nav .nav-item.center-home {
    flex: 0 0 80px;
}

.mobile-bottom-nav .nav-item.center-home a {
    justify-content: flex-end;
    padding-bottom: 8px;
}

.mobile-bottom-nav .home-circle {
    width: 60px;
    height: 60px;
    background: #111;
    border: 3px solid #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.mobile-bottom-nav .home-circle i {
    font-size: 26px;
    margin: 0;
    color: #888;
}

/* Active State Styles */
.mobile-bottom-nav .nav-item.active a {
    color: #fff;
}

.mobile-bottom-nav .nav-item.active i:not(.home-circle i) {
    background: linear-gradient(180deg, #ff3333 0%, #e50914 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Active Home Button */
.mobile-bottom-nav .nav-item.center-home.active .home-circle {
    background: linear-gradient(135deg, #ff3333 0%, #e50914 100%);
    border-color: #ff3333;
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

.mobile-bottom-nav .nav-item.center-home.active .home-circle i {
    color: #fff;
}

.mobile-bottom-nav .nav-item.center-home.active span {
    color: #e50914;
}

/* Ensure content doesn't get hidden */
@media (max-width: 991px) {
    body {
        padding-bottom: 90px !important;
    }
}