/* Filmyzilla Theme - Dark theme (#1e1c1a) with blue nav bar */
/* Custom-tailored for Filmyzilla41.net with 5 columns on desktop */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #1e1c1a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #1e1c1a !important;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 14px;
}

/* Lightweight local replacement for the few Bootstrap Icons used by this skin.
   Keeps existing <i class="bi bi-*"> markup without loading the full icon font. */
.bi {
    display: inline-block;
    width: 1em;
    height: 1em;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    vertical-align: -0.125em;
}

.bi::before {
    display: inline-block;
}

.bi-list::before { content: "\2630"; }
.bi-search::before { content: "\1F50D"; font-size: 0.92em; }
.bi-film::before { content: "\25A3"; }
.bi-star-fill::before { content: "\2605"; }
.bi-download::before { content: "\2193"; }
.bi-lightning-fill::before { content: "\26A1"; }
.bi-chevron-left::before { content: "\2039"; }
.bi-chevron-right::before { content: "\203A"; }
.bi-chevron-down::before { content: "\25BE"; }
.bi-arrow-down-up::before { content: "\2195"; }
.bi-list-ul::before { content: "\2261"; }

a {
    color: #1e73be;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #5ba3e6;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.clearfix::before,
.clearfix::after {
    content: " ";
    display: table;
}

.clearfix::after {
    clear: both;
}

.text-center, .tCenter {
    text-align: center;
}

/* Wrapper / Containers */
.main-container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    clear: both;
}

#page, .container {
    max-width: 1170px;
    margin: 0 auto;
    width: 100%;
}

#page {
    margin-top: 15px;
    min-height: 400px;
    clear: both;
}

/* ===== COMPACT TOP BAR (CineVood-style) ===== */
.site-top-compact {
    max-width: 1170px;
    margin: 0 auto;
    padding: 12px 15px 0;
    position: relative;
    z-index: 1000;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

/* ===== HEADER ===== */
#site-header {
    width: 100%;
    background: #1e1c1a;
    border: 1px solid #3a3836;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    position: relative;
    z-index: 1001;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    flex-wrap: wrap;
}

.logo-wrap {
    display: flex;
    align-items: center;
}

#logo {
    display: flex;
    align-items: center;
}

#logo a {
    display: inline-block;
    line-height: 1;
}

#logo img.site-logo,
#logo.image-logo img {
    display: block;
    max-height: 60px;
    width: auto;
    max-width: 100%;
    height: auto;
}

#logo a span.logo-white {
    color: #ffffff;
}

#logo a span.logo-red {
    color: #e74c3c;
}

.header-search {
    flex: 1;
    max-width: 480px;
    margin-left: auto;
    margin-right: 0;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-form fieldset,
.search-form .search-fieldset {
    border: none;
    margin: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-height: 44px;
    background: #252322;
    border: 1px solid #3a3836;
    border-radius: 999px;
    padding: 0 0 0 14px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.search-form fieldset:focus-within,
.search-form .search-fieldset:focus-within {
    border-color: #1e73be;
    background: #2e2c2a;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.18), 0 4px 14px rgba(0, 0, 0, 0.25);
}

.search-field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    color: #6b6b6b;
    font-size: 15px;
    margin-right: 2px;
    transition: color 0.25s ease;
}

.search-form fieldset:focus-within .search-field-icon,
.search-form .search-fieldset:focus-within .search-field-icon {
    color: #1e73be;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 0 12px 0 4px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    background: transparent;
    color: #f0f0f0;
    outline: none;
    height: 44px;
    line-height: 44px;
    -webkit-appearance: none;
    appearance: none;
}

.search-form input[type="search"]::placeholder {
    color: #7a7a7a;
    font-weight: 400;
}

.search-form input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.search-form input[type="search"]:focus {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.sbutton {
    position: static;
    flex-shrink: 0;
    align-self: stretch;
    height: auto;
    min-height: 44px;
    min-width: 44px;
    margin: 0;
    padding: 0 20px;
    background: linear-gradient(135deg, #1e73be 0%, #155a96 100%);
    color: #ffffff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background 0.2s ease, filter 0.2s ease;
    box-shadow: none;
}

.sbutton i {
    font-size: 14px;
    line-height: 1;
}

.sbutton-label {
    line-height: 1;
}

.sbutton:hover {
    background: linear-gradient(135deg, #2282d4 0%, #1a6aad 100%);
    filter: brightness(1.05);
}

.sbutton:active {
    filter: brightness(0.95);
}

/* Auth / Login widget in header */
.header-auth {
    margin-left: 20px;
    font-size: 13px;
    color: #e0e0e0;
    position: relative;
    padding: 10px 0;
}

.header-auth a {
    color: #e0e0e0;
    font-weight: 500;
}

.header-auth a:hover {
    color: #1e73be;
}

.header-auth .avatar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.header-auth .avatar .cover {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    text-indent: -9999px;
    border: 1px solid #ddd;
}

.header-auth .avatar .num {
    background: #e74c3c;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* Dropdown pane on hover */
.header-auth:hover .droptopbar,
.header-auth:hover .loggedpane {
    display: block !important;
}

.header-auth .droptopbar,
.header-auth .loggedpane {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2000;
}

.header-auth ul.login_menu,
.header-auth ul.login_form {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.header-auth ul.login_menu li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.header-auth ul.login_menu li:last-child {
    border-bottom: none;
}

.header-auth ul.login_form li.form-group {
    margin-bottom: 10px;
}

.header-auth ul.login_form li.form-group label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.header-auth ul.login_form li.form-group input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
    background: #fff;
}

.header-auth .login_form_links {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 8px;
}

/* ===== NAVIGATION ===== */
#primary-navigation {
    width: 100%;
    background-color: #1e73be;
    border-radius: 0 0 4px 4px;
    position: relative;
    z-index: 900;
}

.navigation-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigation {
    width: 100%;
}

.navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.navigation ul li {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.navigation ul li a {
    display: block;
    color: #ffffff !important;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
}

.navigation ul li a svg.icon {
    width: 10px !important;
    height: 10px !important;
    margin-left: 6px !important;
    fill: currentColor !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.navigation ul li:hover {
    background: rgba(0, 0, 0, 0.12);
}

.navigation ul li:hover > a {
    color: #ffffff !important;
    text-decoration: none;
}

/* Dropdown Menu */
.navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    display: none;
    flex-direction: column;
    z-index: 2000;
    background-color: #1e73be;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.navigation ul li:hover > ul {
    display: flex;
}

.navigation ul ul li {
    float: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navigation ul ul li a {
    padding: 11px 20px;
    width: 100%;
}

/* Mobile header icon buttons (hidden on desktop) */
.mobile-header-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #3a3836;
    border-radius: 8px;
    background: #252322;
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mobile-header-btn i {
    font-size: 22px;
    line-height: 1;
}

.mobile-header-btn:hover,
.mobile-header-btn:focus-visible {
    background: #2e2c2a;
    border-color: #1e73be;
    color: #ffffff;
    outline: none;
}

.mobile-header-btn[aria-expanded="true"] {
    background: #1e73be;
    border-color: #1e73be;
    color: #ffffff;
}

/* ===== HEADER QUICK LINKS (Filmeog-style colorful pills) ===== */
.header-quick-links {
    max-width: 1170px;
    margin: 10px auto 0;
    padding: 0 15px;
    display: flex;
    justify-content: center;
}

.header-quick-links-inner {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 10px;
    width: auto;
    max-width: 100%;
    justify-content: center;
}

.quick-link {
    display: block;
    width: auto;
    text-decoration: none !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.quick-link span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 16px;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    filter: brightness(1.06);
    text-decoration: none !important;
}

.quick-link:active {
    transform: translateY(0);
}

.quick-link-green span {
    background: linear-gradient(135deg, #2ecc71 0%, #1e9c55 100%);
}

.quick-link-red span {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.quick-link-orange span {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
}

.quick-link-purple span {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

/* Tablet — 2 equal columns, 2 rows */
@media (max-width: 991px) {
    .header-quick-links {
        max-width: 720px;
    }

    .header-quick-links-inner {
        grid-template-columns: repeat(2, auto);
        gap: 8px;
    }
}

/* Mobile — stacked one-by-one (Filmeog style), compact width */
@media (max-width: 767px) {
    .header-quick-links {
        max-width: 100%;
        padding: 0 12px;
        margin-top: 8px;
    }

    .header-quick-links-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .quick-link {
        max-width: 100%;
    }

    .quick-link span {
        min-height: 42px;
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* ===== HEADER CURATED CLOUD LINKS ===== */
.header-curated-cloud {
    max-width: 1170px;
    margin: 8px auto 10px;
    padding: 0 15px;
}

.header-curated-cloud__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.hCat--header {
    padding: 7px 14px;
    font-size: 11.5px;
    font-weight: 600;
    /* Soft shady tint baked into the pill gradient (genre = blue cast). */
    background: linear-gradient(145deg, #2a2826 0%, #1f1d1b 100%);
    border-color: #3a3836;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
                inset 0 0 14px rgba(30, 115, 190, 0.10),
                0 1px 4px rgba(0, 0, 0, 0.22);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
                box-shadow 0.2s ease, transform 0.18s ease;
}

/* Category/collection pills get a warm gold shady tint instead of blue. */
.hCat--header:not([href^="/genre/"]) {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
                inset 0 0 14px rgba(245, 197, 24, 0.08),
                0 1px 4px rgba(0, 0, 0, 0.22);
}

.hCat--header:hover {
    background: linear-gradient(145deg, #236db0 0%, #1a5a94 100%);
    border-color: #1e73be;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 115, 190, 0.32),
                inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.hCat--header:not([href^="/genre/"]):hover {
    background: linear-gradient(145deg, #d9a90e 0%, #c2960c 100%);
    border-color: #f5c518;
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.30),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hCat--header:focus-visible {
    outline: 2px solid #5ba3e6;
    outline-offset: 2px;
}

@media (max-width: 991px) {
    .header-curated-cloud {
        max-width: 720px;
    }
}

@media (max-width: 767px) {
    .header-curated-cloud {
        max-width: 100%;
        padding: 0 12px;
        margin: 6px auto 10px;
        /* Fade-out on the right edge to signal horizontal scroll */
        -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
        mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
    }

    .header-curated-cloud__inner {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .header-curated-cloud__inner::-webkit-scrollbar {
        height: 3px;
    }

    .header-curated-cloud__inner::-webkit-scrollbar-thumb {
        background: #3a3836;
        border-radius: 999px;
    }

    .hCat--header {
        flex: 0 0 auto;
        padding: 7px 12px;
        font-size: 11px;
        scroll-snap-align: start;
        white-space: nowrap;
    }
}

/* ===== QUICK CATEGORY NAV BUTTONS ===== */
.cat-btn-div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    padding: 5px 0;
}

.glow-on-hover {
    display: inline-block;
    padding: 8px 14px;
    border: none;
    outline: none;
    color: #ffffff !important;
    background: #1e73be;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.glow-on-hover:hover {
    background: #155a96;
    box-shadow: 0 0 8px rgba(30, 115, 190, 0.6);
}

/* ===== HOMEPAGE CATEGORY PILL GRID ===== */
.category-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0 20px;
    margin-bottom: 10px;
}

.hCat {
    display: inline-block;
    background: #2a2826;
    color: #e0e0e0 !important;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none !important;
    border: 1px solid #3a3836;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hCat:hover {
    background: #1e73be;
    border-color: #1e73be;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ===== STATIC PAGES ===== */
.static-page-body {
    margin-bottom: 30px;
}

.static-content {
    padding: 16px 18px !important;
}

.static-content p,
.static-content li {
    color: #ccc;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.static-content h2,
.static-content h3 {
    color: #ffffff;
    margin: 18px 0 10px;
    font-size: 16px;
}

.static-content a {
    color: #5ba3e6;
}

.static-pages-nav {
    margin-top: 15px;
}

/* ===== SECTION HEADER ===== */
.section-header {
    background: linear-gradient(135deg, #1e73be 0%, #155a96 100%);
    padding: 10px 15px;
    margin: 15px 0 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header h2 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header.has-icon h2,
.section-header.has-icon h1 {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

.section-header.has-icon h2 .bi,
.section-header.has-icon h1 .bi {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.section-header h1 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== PAGE INTRO (CineVood-style category / static headings) ===== */
.page-intro {
    margin: 10px auto 6px;
}

.section-header.page-title-header {
    margin: 10px 0 0;
    border-radius: 4px;
}

.section-header.page-title-header h1 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
}

.page-intro .path {
    padding: 10px 15px 6px;
    font-size: 12px;
    color: #b7bcc5;
    line-height: 1.5;
}

.page-intro .path a {
    color: #1e73be;
    font-size: 12px;
    text-decoration: none;
}

.page-intro .path a:hover {
    color: #5ba3e6;
    text-decoration: none;
}

.homepage-latest-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.homepage-latest-header {
    margin-top: 0;
    margin-bottom: 10px;
}

.homepage-latest-header + .thumbnail-wrapper {
    padding-top: 0;
}

.category-description-text {
    color: #b0b0b0;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    padding: 0 15px 8px;
}

.category-description-text p {
    margin: 0 0 8px;
}

/* ===== SORT TOOLBAR (Option A — pill chips) ===== */
.sort-toolbar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    background: #2a2826;
    border: 1px solid #3a3836;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.page-intro .sort-toolbar {
    margin: 6px 15px 14px;
}

#tools .sort-toolbar {
    flex: 1 1 100%;
    margin: 0;
}

.sort-toolbar-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b7bcc5;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    min-height: 36px;
    line-height: 1;
    margin: 0;
    cursor: default;
}

.sort-toolbar-label .bi {
    color: #1e73be;
    font-size: 15px;
}

.sort-toolbar-options {
    flex: 1 1 200px;
    min-width: 0;
}

.sort-toolbar-options form,
#sort form {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sort-toolbar-options ul.sort,
#sort form ul.sort,
ul.sort {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.sort-toolbar-options ul.sort li,
#sort form ul.sort li,
ul.sort li {
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sort-toolbar-options ul.sort li a,
#sort form ul.sort li a,
ul.sort li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #e0e0e0 !important;
    text-decoration: none !important;
    text-transform: capitalize !important;
    white-space: nowrap !important;
    background: #1e1c1a !important;
    border: 1px solid #3a3836 !important;
    border-radius: 999px !important;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.sort-toolbar-options ul.sort li a:hover,
#sort form ul.sort li a:hover,
ul.sort li a:hover {
    color: #ffffff !important;
    background: #252322 !important;
    border-color: #1e73be !important;
    box-shadow: 0 0 0 1px rgba(30, 115, 190, 0.2) !important;
}

.sort-toolbar-options ul.sort li.asc a,
.sort-toolbar-options ul.sort li.desc a,
#sort form ul.sort li.asc a,
#sort form ul.sort li.desc a,
ul.sort li.asc a,
ul.sort li.desc a {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1e73be 0%, #155a96 100%) !important;
    border-color: #1e73be !important;
    box-shadow: 0 2px 10px rgba(30, 115, 190, 0.35) !important;
    font-weight: 600 !important;
}

.sort-toolbar-options ul.sort li.asc a::after,
#sort form ul.sort li.asc a::after,
ul.sort li.asc a::after {
    content: '\2191';
    font-size: 11px;
    line-height: 1;
    opacity: 0.95;
}

.sort-toolbar-options ul.sort li.desc a::after,
#sort form ul.sort li.desc a::after,
ul.sort li.desc a::after {
    content: '\2193';
    font-size: 11px;
    line-height: 1;
    opacity: 0.95;
}

@media (max-width: 767px) {
    .sort-toolbar {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 8px;
    }

    .page-intro .sort-toolbar {
        margin: 6px 10px 12px;
    }

    .sort-toolbar-label {
        width: auto;
        min-height: auto;
        justify-content: flex-start;
        padding: 0;
        border-bottom: none;
        font-size: 12px;
        white-space: nowrap;
        color: #e0e0e0;
        flex-shrink: 0;
    }

    .sort-toolbar-label .bi {
        display: none;
    }

    .sort-toolbar-label span {
        display: inline;
        text-transform: capitalize;
        font-weight: 600;
    }

    .sort-toolbar-options {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .sort-toolbar-options ul.sort,
    .sort-toolbar-options #news_set_sort ul.sort,
    #sort form ul.sort,
    ul.sort {
        display: none !important;
    }

    .sort-mobile-select {
        display: block !important;
        width: 100%;
        position: relative;
    }

    .sort-mobile-trigger {
        width: 100%;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 0 14px;
        border: 1px solid #3a3836;
        border-radius: 8px;
        background: #1e1c1a;
        color: #f0f0f0;
        font-size: 14px;
        font-weight: 500;
        font-family: inherit;
        line-height: 1.2;
        cursor: pointer;
        outline: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .sort-mobile-trigger-label {
        flex: 1;
        min-width: 0;
        text-align: left;
        text-transform: capitalize;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sort-mobile-trigger-icon {
        font-size: 14px;
        color: #b7bcc5;
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }

    .sort-mobile-select.is-open .sort-mobile-trigger {
        border-color: #1e73be;
        box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.18);
    }

    .sort-mobile-select.is-open .sort-mobile-trigger-icon {
        transform: rotate(180deg);
        color: #1e73be;
    }

    .sort-mobile-menu {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        z-index: 1200;
        list-style: none;
        margin: 0;
        padding: 6px;
        background: #252322;
        border: 1px solid #3a3836;
        border-radius: 8px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
        max-height: 260px;
        overflow-y: auto;
    }

    .sort-mobile-select.is-open .sort-mobile-menu {
        display: block;
    }

    .sort-mobile-menu li {
        margin: 0;
        padding: 0;
    }

    .sort-mobile-menu-btn {
        width: 100%;
        display: block;
        padding: 11px 12px;
        border: none;
        border-radius: 6px;
        background: transparent;
        color: #e8e8e8;
        font-size: 14px;
        font-weight: 500;
        font-family: inherit;
        text-align: left;
        text-transform: capitalize;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .sort-mobile-menu-btn:hover,
    .sort-mobile-menu-btn:focus-visible {
        background: #333130;
        color: #ffffff;
        outline: none;
    }

    .sort-mobile-menu li.is-active .sort-mobile-menu-btn {
        background: linear-gradient(135deg, #1e73be 0%, #155a96 100%);
        color: #ffffff;
        font-weight: 600;
    }
}

@media (min-width: 768px) {
    .sort-mobile-select {
        display: none !important;
    }
}

/* ===== MOVIE LISTING (5 Columns on Desktop) ===== */
.thumbnail-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 5px 0;
}

.thumb {
    width: calc(20% - 8px); /* Exactly 5 columns on desktop */
    position: relative;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.thumb figure {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
    aspect-ratio: 2/3;
}

.thumb figure a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.thumb figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.thumb figure:hover img {
    transform: scale(1.04);
}

/* Play Icon Overlay on Hover */
.thumb figure::after {
    content: '\25B6';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.thumb figure:hover::after {
    opacity: 1;
}

/* Quality Tag overlay (CineVood-style: yellow badge, black text) */
.movie-quality {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #f5c518;
    color: #111111;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.movie-quality a {
    color: #111111;
    text-decoration: none;
    pointer-events: none;
    cursor: default;
}

.thumbtitle {
    display: block;
    padding: 10px 8px;
    font-size: 12px;
    color: #333333;
    font-weight: 600;
    text-align: left;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
    background: #ffffff;
    min-height: 54px;
    border-radius: 0 0 4px 4px;
    border-top: 1px solid #eeeeee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-grow: 1;
}

.thumbtitle:hover {
    color: #1e73be;
    text-decoration: none;
}

/* ===== MOVIE DETAIL PAGE ===== */
.page-intro + .movie-detail-container {
    margin-top: 0;
}

/* Movie page: blue title bar, then breadcrumbs (CineVood order) */
.movie-page-header-group {
    display: flex;
    flex-direction: column;
    margin: 10px auto 6px;
}

.movie-page-intro {
    order: 1;
}

.movie-page-path {
    order: 2;
}

.post-share-wrap {
    margin: 18px 0 6px;
    padding-top: 4px;
}

.post-share-wrap .sharethis-inline-share-buttons {
    display: block;
    min-height: 40px;
}

.movie-download-summary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #2f2c29 0%, #221f1d 100%);
    border: 1px solid rgba(91, 163, 230, 0.25);
    border-radius: 10px;
    padding: 0;
    margin: 12px 0 16px;
    color: #dedede;
    font-size: 13.5px;
    line-height: 1.65;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.movie-download-summary::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #1e73be 0%, #35c96f 50%, #f5c518 100%);
}

.movie-download-summary__header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.movie-download-summary__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e73be 0%, #5ba3e6 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(30, 115, 190, 0.35);
}

.movie-download-summary__title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1.35;
    margin: 0;
}

.movie-download-summary__content {
    padding: 13px 16px 15px;
}

.movie-download-summary p {
    margin: 0 0 10px;
}

.movie-download-summary p:last-child {
    margin-bottom: 0;
}

.movie-download-summary strong {
    color: #ffffff;
    font-weight: 800;
}

.movie-download-summary a {
    color: #77bdf7;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(119, 189, 247, 0.35);
    transition: color 0.18s ease, border-color 0.18s ease;
}

.movie-download-summary a:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.movie-detail-container {
    background: #2a2826;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.movie-poster {
    margin: 10px auto 20px;
    width: 200px;
    max-width: 100%;
    text-align: center;
}

.movie-poster img {
    display: block;
    width: 200px;
    max-width: 100%;
    aspect-ratio: 2/3;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(30, 115, 190, 0.4);
    margin: 0 auto;
}

.movie-info {
    background: #1e1c1a;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.movie-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.movie-info li {
    padding: 8px 0;
    border-bottom: 1px solid #3a3836;
    font-size: 13px;
    color: #cccccc;
    display: flex;
}

.movie-info li:last-child {
    border-bottom: none;
}

.movie-info li b {
    color: #b7bcc5;
    width: 110px;
    flex-shrink: 0;
    display: inline-block;
}

.movie-info li span {
    flex-grow: 1;
}

.highlight-red {
    color: #e74c3c;
    font-weight: 700;
}

.movie-synopsis {
    background: #1e1c1a;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 13.5px;
    color: #cccccc;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.movie-synopsis strong {
    color: #ffffff;
    display: block;
    margin-bottom: 5px;
}

/* Screenshot styling */
.movie-screenshot {
    text-align: center;
    margin: 20px 0;
}

.movie-screenshot h3 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: left;
    border-left: 3px solid #1e73be;
    padding-left: 10px;
}

.screenshot-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.screenshot-image img {
    border-radius: 4px;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ===== DOWNLOAD LINKS ===== */
.movie-downloads {
    margin: 22px 0 10px;
}

.quality-header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    margin: 0 0 10px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e73be 0%, #155a96 100%);
    box-shadow: 0 2px 10px rgba(30, 115, 190, 0.22);
}

.quality-header__main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    min-width: 0;
    flex: 1;
}

.quality-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 54px;
    padding: 5px 10px;
    background: #f5c518;
    color: #1e1c1a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    border-radius: 4px;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.quality-header__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.quality-header__title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.2px;
}

.quality-header__subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.3;
}

.quality-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    background: rgba(0, 0, 0, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
}

.quality-tier--1080 .quality-badge,
.quality-tier--720 .quality-badge,
.quality-tier--480 .quality-badge {
    background: linear-gradient(135deg, #ffe066 0%, #f5c518 100%);
    color: #1e1c1a;
}

.quality-tier--default .quality-badge {
    background: #f5c518;
    color: #1e1c1a;
}

.dwnLink {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: #1e1c1a;
    color: #5ba3e6 !important;
    border: 1px solid #3a3836;
    border-radius: 4px;
    margin: 6px 0;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dwnLink__name {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
    word-break: break-word;
}

.dwnLink:hover {
    background: #3a3836;
    border-color: #1e73be;
    text-decoration: none;
    color: #ffffff !important;
}

.file-size {
    flex-shrink: 0;
    color: #b7bcc5;
    font-size: 12px;
    background: #2a2826;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

/* Bubbly Buttons & Start Download button */
.startDownload {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 22px;
    background: linear-gradient(135deg, #d9ff00 0%, #b7ff00 100%);
    border: 1px solid #dfff4f;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(183, 255, 0, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-decoration: none !important;
    margin: 0 auto;
}

.startDownload__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    line-height: 1;
    color: #111111;
    opacity: 0.88;
}

.startDownload__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.startDownload__text {
    color: #111111;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    line-height: 1.35;
    text-align: center;
}

.startDownload__bolt {
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1;
    color: #111111;
    opacity: 0.9;
}

.startDownload:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(183, 255, 0, 0.38);
    text-decoration: none !important;
}

.startDownload:active {
    transform: translateY(0);
}

.download-interstitial {
    max-width: 720px;
    margin: 0 auto 30px;
}

.download-card {
    background: #1e1c1a;
    border: 1px solid #3a3836;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.download-meta ul {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.download-meta li {
    padding: 6px 0;
    border-bottom: 1px solid #2a2826;
    color: #e0e0e0;
    font-size: 14px;
}

.download-meta li:last-child {
    border-bottom: none;
}

.download-meta b {
    color: #f5c518;
    margin-right: 6px;
}

.download-actions {
    margin: 20px 0 10px;
}

@media (max-width: 520px) {
    .startDownload {
        padding: 14px 16px;
        gap: 8px;
    }

    .startDownload__icon {
        font-size: 18px;
    }

    .startDownload__text {
        font-size: 12px;
        letter-spacing: 0.3px;
    }

    .startDownload__bolt {
        display: none;
    }
}

.download-note {
    color: #9aa0a6;
    font-size: 12px;
    text-align: center;
    margin: 0 0 16px;
    line-height: 1.5;
}

.download-back {
    text-align: center;
    margin: 0;
}

.back-to-movie {
    color: #1e73be;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.back-to-movie:hover {
    color: #4da3ff;
    text-decoration: underline;
}

/* ===== PAGINATION ===== */
.pagination-wrapper,
.static-pages-nav {
    padding: 28px 0 32px;
    text-align: center;
}

.pagination-nav {
    display: block;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.pagination-pages {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-pages a,
.pagination-pages span,
.static-pages-nav a,
.static-pages-nav span,
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    text-decoration: none;
    color: #cfd4db;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    background: #2a2826;
    border: 1px solid #3a3836;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.pagination-pages a:hover,
.static-pages-nav a:hover,
.page-numbers:hover {
    background: #1e73be;
    color: #ffffff;
    border-color: #1e73be;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(30, 115, 190, 0.35);
}

.pagination-pages span:not(.nav_ext),
.static-pages-nav span:not(.nav_ext),
.pagination strong,
.pagination .current {
    background: linear-gradient(135deg, #1e73be 0%, #155a96 100%);
    color: #ffffff;
    border-color: #1e73be;
    box-shadow: 0 2px 8px rgba(30, 115, 190, 0.45);
    cursor: default;
}

.pagination-pages .nav_ext,
.static-pages-nav .nav_ext,
.pagination .nav_ext {
    min-width: auto;
    height: auto;
    padding: 0 4px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #7a8088;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.page-step {
    display: inline-flex;
    align-items: center;
}

.page-step > a,
.page-step > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: auto;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #cfd4db;
    background: #2a2826;
    border: 1px solid #3a3836;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.page-step > a:hover {
    background: #1e73be;
    color: #ffffff;
    border-color: #1e73be;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(30, 115, 190, 0.35);
}

.page-step > span {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.page-step-label {
    display: inline;
}

.page-step .bi {
    font-size: 15px;
    line-height: 1;
}

@media (max-width: 480px) {
    .pagination-pages a,
    .pagination-pages span,
    .static-pages-nav a,
    .static-pages-nav span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }

    .page-step > a,
    .page-step > span {
        padding: 0 12px;
        height: 38px;
    }
}

/* ===== INFO BOXES & BREADCRUMBS ===== */
.lineblue {
    background: #2a2826;
    border-left: 3px solid #1e73be;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    color: #cccccc;
}

.path {
    padding: 10px 0;
    font-size: 12.5px;
    color: #b7bcc5;
}

.path a {
    color: #1e73be;
}

.path a:hover {
    color: #5ba3e6;
    text-decoration: underline;
}

.tag {
    padding: 8px 0;
    font-size: 11px;
    color: #888888;
    word-break: break-all;
}

/* ===== FOOTER ===== */
#site-footer {
    --footer-gold: #c9a84c;
    --footer-gold-bright: #e0bc5a;
    --footer-gold-hover: #f0d078;
    --footer-gold-muted: #9a8860;
    --footer-sep: #6b6358;
    --footer-note-heading: #e8c96a;
    --footer-note-text: #a8a4a0;
    --footer-keyline-bg: #161514;
    --footer-keyline-border: rgba(58, 56, 54, 0.9);

    background: #0f0e0d;
    border-top: 1px solid #3a3836;
    padding: 0 0 36px;
    margin-top: 30px;
    clear: both;
}

.footer-details {
    padding: 36px 0 28px;
    border-bottom: 1px solid #2a2826;
    margin-bottom: 28px;
}

.footer-details-wrap {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-block {
    margin-bottom: 32px;
    text-align: center;
}

.footer-block:last-child {
    margin-bottom: 0;
}

.footer-block h2 {
    color: var(--footer-note-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 14px;
    letter-spacing: 0.01em;
}

.footer-block > p:not(.footer-keyline) {
    color: var(--footer-note-text);
    font-size: 13px;
    line-height: 1.75;
    margin: 0 0 14px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.footer-keyline {
    display: block;
    background: var(--footer-keyline-bg);
    border: 1px solid var(--footer-keyline-border);
    border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    color: #e2e2e2;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 100%;
    padding: 12px 16px;
    text-align: center;
}

@media (max-width: 767px) {
    .footer-details {
        padding: 28px 0 22px;
        margin-bottom: 22px;
    }

    .footer-block {
        margin-bottom: 26px;
    }

    .footer-block h2 {
        font-size: 15px;
    }

    .footer-block > p:not(.footer-keyline) {
        font-size: 12.5px;
        line-height: 1.7;
    }

    .footer-keyline {
        font-size: 11.5px;
        padding: 10px 12px;
        line-height: 1.7;
    }
}

.copyrights {
    text-align: center;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.copyright {
    font-size: 13px;
    line-height: 1.7;
    color: var(--footer-gold-muted);
    margin-bottom: 16px;
}

.copyright .emoji {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin: 0 4px;
    display: inline-block;
}

.copyright-links {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.02em;
}

.copyright-links a {
    color: var(--footer-gold);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.copyright-links a:hover {
    color: var(--footer-gold-hover);
    text-shadow: 0 0 12px rgba(201, 168, 76, 0.35);
    text-decoration: none;
}

.copyright-links .sep {
    color: var(--footer-sep);
    margin: 0 10px;
    font-weight: 400;
    user-select: none;
}

@media (max-width: 480px) {
    .copyright-links {
        font-size: 13px;
        line-height: 2;
    }

    .copyright-links .sep {
        margin: 0 7px;
    }
}

/* ===== MOBILE SIDEBAR SLIDE-IN MENU ===== */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
}

.menu-overlay.active {
    display: block;
}

.navigation.mobile-menu-wrapper {
    display: block;
    position: fixed;
    top: 0;
    left: -300px;
    z-index: 9999;
    width: 280px;
    height: 100%;
    background-color: #1e1c1a;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    overflow-y: auto;
    transition: left 0.3s ease;
}

.navigation.mobile-menu-wrapper.active {
    left: 0;
}

.navigation.mobile-menu-wrapper ul {
    flex-direction: column;
    padding: 15px 0;
}

.navigation.mobile-menu-wrapper ul li {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navigation.mobile-menu-wrapper ul li a {
    padding: 12px 20px;
    font-size: 14px;
}

.navigation.mobile-menu-wrapper ul ul {
    position: static;
    width: 100%;
    display: none;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
}

.navigation.mobile-menu-wrapper ul ul.open {
    display: flex;
}

.navigation.mobile-menu-wrapper ul ul li a {
    padding-left: 35px;
}

/* ===== DLE OVERRIDES FOR WIDGETS & COMMENT FORMS ===== */
.dle-input,
input[type="text"],
input[type="password"],
textarea,
select {
    padding: 8px 12px;
    background: #1e1c1a;
    border: 1px solid #3a3836;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 13px;
    outline: none;
    margin: 5px 0;
}

.dle-input:focus,
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: #1e73be;
}

.btn-dle,
input[type="submit"],
button[type="submit"] {
    background: #1e73be;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-dle:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: #155a96;
}

/* Comments structure */
.com_list {
    margin-top: 15px;
}

.comments-item {
    background: #1e1c1a;
    border: 1px solid #3a3836;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 10px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: #b7bcc5;
    border-bottom: 1px solid #3a3836;
    padding-bottom: 5px;
}

.comments-author {
    font-weight: bold;
    color: #1e73be;
}

.comments-text {
    font-size: 13px;
    color: #cccccc;
}

/* ===== FEEDBACK / CONTACT PAGE =====
   Scoped to .feedback so these never leak into other DLE pages.
   Restyles the legacy grid_1_4 / grid_3_4 / ui-form / combo / form_submit
   markup without touching the .tpl (all DLE tags preserved). */
.block.story .head {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #3a3836;
}

.block.story .head .title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.feedback {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 22px;
    align-items: start;
}

/* Override the legacy float/grid classes so CSS Grid can drive layout */
.feedback .grid_3_4,
.feedback .grid_1_4 {
    float: none;
    width: auto;
    margin: 0;
    grid: none;
}

.feedback .grid_1_4.right {
    order: 2;
}

.feedback .grid_3_4 {
    order: 1;
}

.feedback .grid_1_4 {
    background: #1e1c1a;
    border: 1px solid #3a3836;
    border-radius: 8px;
    padding: 18px 18px 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #cccccc;
}

.feedback .grid_1_4 b {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #1e73be;
}

.feedback .grid_1_4 b:first-child {
    margin-top: 0;
}

/* Form column */
.feedback .ui-form {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feedback .ui-form .form-group {
    margin: 0 0 14px;
    padding: 0;
}

.feedback .ui-form .form-group > label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #b7bcc5;
}

/* Name + Email side-by-side row */
.feedback .ui-form .combo {
    display: flex;
    gap: 12px;
}

.feedback .ui-form .combo .combo_field {
    flex: 1 1 0;
    min-width: 0;
}

/* Inputs/textarea inherit the global dark overrides; refine for feedback */
.feedback .ui-form input[type="text"],
.feedback .ui-form input[type="email"],
.feedback .ui-form input[type="file"],
.feedback .ui-form textarea,
.feedback .ui-form select {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 13px;
    background: #1e1c1a;
    border: 1px solid #3a3836;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 13.5px;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.feedback .ui-form textarea {
    resize: vertical;
    min-height: 150px;
}

.feedback .ui-form input:focus,
.feedback .ui-form textarea:focus,
.feedback .ui-form select:focus {
    border-color: #1e73be;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.18);
    outline: none;
}

.feedback .ui-form input::placeholder,
.feedback .ui-form textarea::placeholder {
    color: #7a7d83;
}

/* Recipient select (To:) looks like an input */
.feedback .ui-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b7bcc5' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

/* Submit bar */
.feedback .form_submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}

.feedback .form_submit .btn,
.feedback .form_submit button[type="submit"],
.feedback .form_submit input[type="submit"] {
    padding: 11px 26px;
    background: linear-gradient(145deg, #1e73be, #155a96);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.feedback .form_submit .btn:hover,
.feedback .form_submit button[type="submit"]:hover,
.feedback .form_submit input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(30, 115, 190, 0.32);
    background: linear-gradient(145deg, #236db0, #1a5a94);
}

.feedback .form_submit .btn b {
    font-weight: 700;
}

/* Captcha — restyle engine.css light-theme defaults to dark */
.feedback .c-capcha {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback .c-capcha:after {
    display: none;
}

.feedback .c-capcha > a {
    float: none;
    margin: 0;
}

.feedback .c-capcha img {
    width: 120px;
    height: 42px;
    border-radius: 6px;
    border: 1px solid #3a3836;
    background: #fff;
}

.feedback .c-capcha > input {
    width: 150px;
    margin: 0;
    padding: 10px 13px;
    background: #1e1c1a;
    border: 1px solid #3a3836;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 13.5px;
}

.feedback .c-capcha > input:focus {
    border-color: #1e73be;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.18);
    outline: none;
}

/* File input — keep the native filename chip readable on dark bg */
.feedback .ui-form input[type="file"] {
    padding: 9px 11px;
    cursor: pointer;
}

.feedback .ui-form input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 7px 14px;
    background: #2a2826;
    border: 1px solid #3a3836;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.feedback .ui-form input[type="file"]::file-selector-button:hover {
    background: #1e73be;
    border-color: #1e73be;
    color: #ffffff;
}

/* Responsive: stack sidebar under form on tablet/mobile */
@media (max-width: 991px) {
    .feedback {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .feedback .grid_1_4.right {
        order: 1;
    }

    .feedback .grid_3_4 {
        order: 2;
    }
}

@media (max-width: 560px) {
    .feedback .ui-form .combo {
        flex-direction: column;
        gap: 14px;
    }

    .feedback .form_submit {
        flex-direction: column;
        align-items: stretch;
    }

    .feedback .form_submit .btn,
    .feedback .form_submit button[type="submit"] {
        width: 100%;
        text-align: center;
    }

    .feedback .c-capcha {
        flex-wrap: wrap;
    }

    .feedback .c-capcha > input {
        width: 100%;
    }
}

/* ===== SEARCH PAGE =====
   DLE renders the legacy form inside {searchtable}; this wrapper modernizes it
   while preserving all search inputs and advanced-search behavior. */
.site-search-panel {
    max-width: 760px;
    margin: 0 auto 24px;
    padding: 22px;
    background: linear-gradient(145deg, #2b2825 0%, #201e1c 100%);
    border: 1px solid rgba(91, 163, 230, 0.22);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-search-panel__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-search-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: linear-gradient(145deg, #1e73be, #155a96);
    color: #ffffff;
    box-shadow: 0 5px 16px rgba(30, 115, 190, 0.32);
}

.site-search-panel__header h1 {
    margin: 0 0 3px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.site-search-panel__header p {
    margin: 0;
    color: #b7bcc5;
    font-size: 13px;
    line-height: 1.45;
}

.site-search-panel__form,
.site-search-panel__form table,
.site-search-panel__form tbody,
.site-search-panel__form tr,
.site-search-panel__form td {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.site-search-panel__form br {
    display: none;
}

.site-search-panel__form input[type="text"],
.site-search-panel__form input[type="search"] {
    width: 100% !important;
    box-sizing: border-box;
    min-height: 44px;
    margin: 0 0 14px;
    padding: 11px 14px;
    background: #171514;
    border: 1px solid #3a3836;
    border-radius: 7px;
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.site-search-panel__form input[type="text"]:focus,
.site-search-panel__form input[type="search"]:focus {
    border-color: #1e73be;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.18);
    outline: none;
}

.site-search-panel__form input[type="submit"],
.site-search-panel__form input[type="button"],
.site-search-panel__form button,
.site-search-panel__form .bbcodes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0 6px 0 0 !important;
    padding: 10px 18px !important;
    background: linear-gradient(145deg, #ff4968, #f43f5e);
    border: 0 !important;
    border-radius: 6px;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.site-search-panel__form input[type="submit"]:hover,
.site-search-panel__form input[type="button"]:hover,
.site-search-panel__form button:hover,
.site-search-panel__form .bbcodes:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(244, 63, 94, 0.28);
}

.site-search-panel__message,
.site-search-panel .lineblue {
    margin-top: 18px;
    padding: 13px 15px;
    background: rgba(30, 115, 190, 0.08);
    border-left: 3px solid #1e73be;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.site-search-panel__message b,
.site-search-panel .lineblue b {
    color: #ffffff;
}

@media (max-width: 560px) {
    .site-search-panel {
        padding: 18px 15px;
        border-radius: 10px;
    }

    .site-search-panel__header {
        align-items: flex-start;
    }

    .site-search-panel__header h1 {
        font-size: 19px;
    }

    .site-search-panel__form input[type="submit"],
    .site-search-panel__form input[type="button"],
    .site-search-panel__form button,
    .site-search-panel__form .bbcodes {
        width: 100%;
        margin: 0 0 8px !important;
    }
}

/* Homepage intro H1 (SEO — above Latest Releases) */
.main-homepage-heading {
    font-size: 14.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    margin: 0 auto 16px;
    padding: 0 15px;
    line-height: 1.65;
    letter-spacing: 0.2px;
    max-width: 920px;
}

@media (max-width: 600px) {
    .main-homepage-heading {
        font-size: 12.5px;
        margin-bottom: 12px;
    }
}

/* Popular list overrides */
.grid_list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.grid_list .thumb {
    margin-bottom: 10px;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1199px) {
    .main-container, .container, #page {
        max-width: 960px;
    }
    .thumb {
        width: calc(25% - 8px); /* 4 columns on small desktop */
    }
}

@media (max-width: 991px) {
    .main-container, .container, #page {
        max-width: 720px;
    }

    .site-top-compact {
        max-width: 720px;
        padding: 10px 15px 0;
    }

    #site-header {
        position: relative;
        border-bottom: 1px solid #3a3836;
        border-radius: 4px;
    }

    .header-container {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 0 10px;
        padding: 8px 12px 10px;
        flex-wrap: nowrap;
    }

    .mobile-header-btn {
        display: inline-flex;
    }

    .mobile-menu-btn {
        grid-column: 1;
        grid-row: 1;
    }

    .logo-wrap {
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
    }

    .mobile-search-toggle {
        grid-column: 3;
        grid-row: 1;
    }

    #logo img.site-logo,
    #logo.image-logo img {
        max-height: 46px;
    }

    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        display: none;
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding-top: 10px;
    }

    #site-header.search-open .header-search {
        display: block;
    }

    .sbutton-label {
        display: none;
    }

    .sbutton {
        padding: 0 16px;
        min-width: 48px;
    }

    .header-auth {
        margin-left: 0;
        order: 2;
    }

    #primary-navigation {
        display: none;
    }

    .thumb {
        width: calc(33.33% - 7px);
    }
}

@media (max-width: 767px) {
    .main-container, .container, #page {
        max-width: 100%;
    }

    .site-top-compact {
        max-width: 100%;
    }
    
    .thumb {
        width: calc(33.33% - 7px); /* Keep 3 columns */
    }
    
    .movie-detail-container {
        padding: 15px;
    }

    .movie-download-summary {
        margin: 8px 0 12px;
        font-size: 13px;
        line-height: 1.55;
        border-radius: 8px;
    }

    .movie-download-summary__header {
        padding: 12px 13px 9px;
    }

    .movie-download-summary__content {
        padding: 12px 13px 13px;
    }

    .movie-download-summary__title {
        font-size: 13.5px;
    }
}

@media (max-width: 480px) {
    .thumb {
        width: calc(50% - 5px);
    }

    .header-container {
        padding: 8px 10px 10px;
        gap: 0 8px;
    }

    .mobile-header-btn {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }

    .mobile-header-btn i {
        font-size: 20px;
    }

    #logo img.site-logo,
    #logo.image-logo img {
        max-height: 40px;
    }

    .glow-on-hover {
        padding: 6px 10px;
        font-size: 12px;
    }

    #logo a {
        font-size: 22px;
    }
}

/* Tools, Breadcrumbs, Sort, and Tags */
#tools {
    background: #2a2826 !important;
    border-bottom: 1px solid #3a3836 !important;
    padding: 10px 0 !important;
    margin-bottom: 15px !important;
    clear: both !important;
}

#tools .wrp {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1170px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

#breadcrumbs,
.speedbar,
#dle-speedbar {
    font-size: 13px !important;
    color: #b7bcc5 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#breadcrumbs a,
.speedbar a,
#dle-speedbar a {
    color: #1e73be !important;
    text-decoration: none !important;
}

#breadcrumbs a:hover,
.speedbar a:hover,
#dle-speedbar a:hover {
    color: #5ba3e6 !important;
    text-decoration: underline !important;
}

.tags_btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: #b7bcc5 !important;
}

#toptags {
    background: #1e1c1a !important;
    border-bottom: 1px solid #3a3836 !important;
    padding: 15px 0 !important;
}

#toptags .wrp {
    max-width: 1170px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

.tag_list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.tag_list span {
    display: inline-block !important;
}

.tag_list span a,
.tag_list a {
    display: inline-block !important;
    background: #2a2826 !important;
    color: #e0e0e0 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.tag_list span a:hover,
.tag_list a:hover {
    background: #1e73be !important;
    color: #ffffff !important;
}
