/* theme-04 — MLSBD Visual+ overrides (landing, masonry grid, player, menu) */

:root {
    --background: #1a1a1a;
    --surface: #292929;
    --surface-alt: #333333;
}

body, button, input, select, textarea {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.custom_logo img {
    max-height: 42px;
    width: auto;
    vertical-align: middle;
}

#spinner {
    display: none !important;
}

/* Visual+ hides #main until masonry.js fades it in. We do not load that script. */
#main,
.site-main {
    opacity: 1 !important;
}

#primary {
    padding-right: 0;
    float: none;
}

body.t05-has-sidebar #primary {
    float: left;
    width: 100%;
    padding-right: 320px;
    box-sizing: border-box;
}

body.t05-has-sidebar #secondary {
    float: right;
    width: 300px;
    margin-left: -300px;
    position: sticky;
    top: 8px;
}

.t05-heading {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #eee;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.t05-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 28px 0 16px;
    flex-wrap: wrap;
}

.t05-row-head .t05-heading {
    margin: 0;
}

.t05-more,
.catalog-home-head__more {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: var(--primary, #40d7bc) !important;
    color: var(--button-text, #111) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    border: 1px solid transparent !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.t05-more:hover,
.catalog-home-head__more:hover {
    filter: brightness(1.15) !important;
    color: var(--button-text, #111) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 64, 215, 188), 0.45) !important;
}

.t05-home-row {
    clear: both;
}

.t05-hero-section {
    clear: both;
    margin-bottom: 8px;
}

.t05-fallback-catalog {
    margin-top: 0;
}

.t05-hero-section + .t05-fallback-catalog,
.t05-hero-section + .t05-home-row {
    margin-top: 20px;
}

/* CSS grid instead of JS masonry absolute positioning */
#content.site-content:not(.t05-single),
.t05-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px 8px;
    position: relative !important;
    height: auto !important;
}

@media screen and (max-width: 900px) {
    #content.site-content:not(.t05-single),
    .t05-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 640px) {
    #content.site-content:not(.t05-single),
    .t05-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px 6px;
    }
}

@media screen and (max-width: 420px) {
    #content.site-content:not(.t05-single),
    .t05-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.masonry .hentry,
.page-template-home-page-php .hentry,
.hentry.masonry-brick {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

.masonry .hentry img,
.page-template-home-page-php .hentry img,
.hentry.masonry-brick img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 140 / 205;
    object-fit: cover;
}

.visual-thumbnail {
    position: relative;
    margin: 0;
    overflow: hidden;
}

/* Movie card language / dubbed badge — original MLSBD computed styles */
.visual-thumbnail .movie-language-badge,
.visual-thumbnail .movie-language-badge:visited {
    position: absolute !important;
    right: 18px !important;
    bottom: 18px !important;
    left: 18px !important;
    z-index: 20 !important;
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 3px 8px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--primary, #40d7bc) !important;
    color: var(--button-text, #111) !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

.visual-thumbnail .movie-language-badge:hover,
.visual-thumbnail .movie-language-badge:focus,
.visual-thumbnail .movie-language-badge:active {
    background: var(--primary, #40d7bc) !important;
    color: var(--button-text, #111) !important;
    text-decoration: none !important;
    transform: none !important;
    filter: none !important;
}

.visual-thumbnail .movie-language-badge.badge-pos-bottom {
    top: auto !important;
    right: 18px !important;
    bottom: 18px !important;
    left: 18px !important;
    transform: none !important;
}

/* Optional theme setting: compact top-right chip */
.visual-thumbnail .movie-language-badge.badge-pos-top,
.visual-thumbnail .t05-lang-badge {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 20 !important;
    display: inline-block !important;
    width: auto !important;
    max-width: calc(100% - 12px) !important;
    margin: 0 !important;
    padding: 3px 7px !important;
    border-radius: 4px !important;
    background: var(--primary, #40d7bc) !important;
    color: var(--button-text, #111) !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    letter-spacing: normal !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.visual-thumbnail .movie-language-badge.badge-pos-top:hover {
    background: var(--primary, #40d7bc) !important;
    color: var(--button-text, #111) !important;
    filter: none !important;
    transform: none !important;
}

/* Poster dubbed bar sits on Watch Now during hover — hide it and use overlay copy instead */
.visual-thumbnail:hover .movie-language-badge {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.overlay .overlay-lang-text {
    color: var(--primary, #40d7bc);
    font-weight: 700;
    text-transform: uppercase;
}

.hentry.masonry-brick .t05-lang-badge ~ .overlay .featured-badge,
.hentry.masonry-brick:has(.t05-lang-badge) .featured-badge,
.hentry.masonry-brick:has(.movie-language-badge.badge-pos-top) .featured-badge {
    display: none;
}

.entry-title a,
.entry-title a:visited,
a.t05-card .entry-title {
    color: var(--primary, #40d7bc);
    padding: 4px 2px 6px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    display: block;
    text-decoration: none !important;
}

.entry-title a:hover,
a.t05-card .entry-title:hover {
    color: #6ee7d4;
    text-decoration: none !important;
}

.visual-thumbnail > a.visual-thumbnail-link,
.visual-thumbnail > a:not(.movie-language-badge) {
    display: block;
    width: 100%;
    height: 100%;
}

.overlay .watch a {
    color: inherit;
    text-decoration: none !important;
    display: inline-block;
}

/* Home top intro (theme panel home_content) — above search */
.theme-home-top-content {
    clear: both;
    padding: 6px 2px 12px;
    margin: 0 0 8px;
    color: #ddd;
    font-size: 14px;
    line-height: 1.7;
}

.theme-home-top-content a {
    color: var(--primary, #40d7bc);
    text-decoration: none;
}

.theme-home-top-content a:hover {
    text-decoration: underline;
}

.theme-home-top-content p {
    margin: 0 0 10px;
}

.theme-home-top-content p:last-child {
    margin-bottom: 0;
}

.theme-home-bottom-content {
    clear: both;
    padding: 16px 0 24px;
    margin: 12px 0 0;
    color: #ddd;
    line-height: 1.6;
}

.theme-home-bottom-content a {
    color: var(--primary, #40d7bc);
}

/* Bottom SEO + FAQs from Admin → Settings → Landing (when landing is off) */
.theme-home-landing-content--t04 {
    clear: both;
    padding: 28px 0 36px;
    margin: 20px 0 0;
    border-top: 1px solid #2a2a2a;
}

.theme-home-landing-content--t04 .theme-home-seo {
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: #ddd;
    font-size: 15px;
    line-height: 1.75;
    text-align: left;
}

.theme-home-landing-content--t04 .theme-home-seo a {
    color: var(--primary, #40d7bc);
    text-decoration: none;
}

.theme-home-landing-content--t04 .theme-home-seo a:hover {
    text-decoration: underline;
}

.theme-home-landing-content--t04 .theme-home-seo h2 {
    color: var(--primary, #40d7bc);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin: 28px 0 14px;
    text-align: center;
    clear: none !important;
}

.theme-home-landing-content--t04 .theme-home-seo h2:first-child {
    margin-top: 0;
}

.theme-home-landing-content--t04 .theme-home-seo h3 {
    color: var(--primary, #40d7bc);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 22px 0 8px;
    text-align: left;
    clear: none !important;
}

.theme-home-landing-content--t04 .theme-home-seo p {
    margin: 0 0 16px;
    color: #ccc;
}

.theme-home-landing-content--t04 .theme-home-seo strong {
    color: #eee;
}

.theme-home-landing-content--t04 .theme-home-faq-list {
    margin: 8px 0 0;
}

.theme-home-landing-content--t04 .theme-home-faq-item {
    margin: 0 0 18px;
}

.theme-home-landing-content--t04 .theme-home-faq-item h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.theme-home-landing-content--t04 .theme-home-faq-item p {
    margin: 0;
}

@media screen and (max-width: 640px) {
    .theme-home-landing-content--t04 .theme-home-seo h2 {
        font-size: 18px;
    }

    .theme-home-landing-content--t04 .theme-home-seo h3,
    .theme-home-landing-content--t04 .theme-home-faq-item h3 {
        font-size: 15px;
    }

    .t05-lang-badge {
        font-size: 9px;
        padding: 2px 5px;
    }
}

a.t05-card:hover .overlay,
.visual-thumbnail:hover .overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .92);
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    padding: 12px 12px 36px;
    font-size: 12px;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

#masthead .site-title a.custom_logo {
    color: var(--primary, #40d7bc);
    text-decoration: none;
    text-shadow: none;
    letter-spacing: 1px;
}

.main-navigation .menu-item-has-children > a:after {
    content: "";
    font-family: inherit;
    width: 0;
    height: 0;
    border: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #ddd;
    position: absolute;
    right: 14px;
    top: 50%;
    margin-top: -2px;
}

.main-navigation .menu-item-has-children a {
    padding-right: 15px;
}

.main-navigation .menu > .menu-item-has-children > a {
    padding-right: 36px;
}

#masthead,
#masthead .section,
.main-navigation,
.main-navigation .menu {
    overflow: visible;
}

.main-navigation .menu > li:hover > a,
.main-navigation .menu > li.current-menu-item > a {
    background: var(--primary, #40d7bc) !important;
    color: var(--button-text, #111) !important;
    border-color: var(--primary, #40d7bc) !important;
}

.main-navigation .menu > li:hover > a:after,
.main-navigation .menu > li.current-menu-item > a:after {
    border-top-color: var(--button-text, #111);
}

.sub-menu li:hover,
.sub-menu li a:hover,
.sub-menu li:hover > a {
    background: var(--primary, #40d7bc) !important;
    color: var(--button-text, #111) !important;
}

.main-navigation .menu > li > .sub-menu {
    left: 0;
    right: auto;
}

.main-navigation .menu > li:nth-last-child(-n+2) > .sub-menu {
    left: auto;
    right: 0;
}

/* Whole poster card is one link */
a.t05-card {
    display: block;
    color: inherit;
    text-decoration: none !important;
}

a.t05-card:hover,
a.t05-card:focus {
    color: inherit;
    text-decoration: none !important;
}

a.t05-card .overlay {
    pointer-events: none;
}

.hentry.masonry-brick {
    cursor: pointer;
}

.overlay .meta {
    font-size: 11px;
    line-height: 1.45;
    text-align: left;
}

.overlay .watch {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}

a.t05-card .featured-badge {
    float: right;
}

/* Pagination: strip the outer #nav-below box only */
#nav-below {
    clear: both;
    margin: 24px 0 16px;
    width: 100%;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

#wp_page_numbers {
    margin: 10px 0;
    width: 100%;
}

#wp_page_numbers ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

#wp_page_numbers ul::after {
    display: none;
}

#wp_page_numbers li {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
}

#wp_page_numbers li.page_info {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    padding: 6px 12px;
    margin-right: 4px !important;
    border: 1px solid #333;
    border-radius: 4px;
    background: #1e1e1e;
    color: #999;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

#wp_page_numbers a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 32px;
    padding: 0 12px !important;
    border: 1px solid #383838 !important;
    border-radius: 4px !important;
    background: #252525 !important;
    color: #ddd !important;
    font-size: 13px !important;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease-in-out;
}

#wp_page_numbers a:hover {
    background: #333 !important;
    color: #fff !important;
    border-color: #555 !important;
    text-decoration: none;
}

#wp_page_numbers li.active_page a,
#wp_page_numbers li.active_page a:hover {
    background: var(--primary, #40d7bc) !important;
    color: #0b0f19 !important;
    border-color: var(--primary, #40d7bc) !important;
    font-weight: 700 !important;
    cursor: default;
    box-shadow: 0 0 10px rgba(64, 215, 188, 0.4);
}

#wp_page_numbers li.prev_page a,
#wp_page_numbers li.next_page a {
    font-size: 18px !important;
    line-height: 1;
    font-weight: 700;
}

#wp_page_numbers li.space {
    color: #888;
    padding: 0 4px;
    font-weight: bold;
    font-size: 14px;
}

#wp_page_numbers li.first_last_page a {
    font-style: normal;
}

.t05-empty {
    grid-column: 1 / -1;
    padding: 24px 8px;
    color: #bbb;
}

.t05-genre-dir {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    padding: 8px 0 28px;
}

.t05-genre-dir a {
    display: block;
    background: var(--surface, #292929);
    color: var(--primary, #40d7bc);
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
}

.t05-genre-dir a:hover {
    background: #000;
    color: #fff;
}

.t05-genre-dir span {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

/* ==============================
   MLSBD LANDING PAGE (theme-04)
   Matched to mlsbd.lat Visual+ CSS
================================ */
body.mlsbd-landing-page {
    background: #000 !important;
    color: #fff;
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
}

body.mlsbd-landing-page #page,
body.mlsbd-landing-page #main,
body.mlsbd-landing-page #primary {
    background: #000;
}

body.mlsbd-landing-page #main > .section {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.mlsbd-landing-page #masthead {
    margin-bottom: 0;
}

body.mlsbd-landing-page #primary {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.mlsbd-landing-page #colophon {
    background: #000;
    border-top: 1px solid #222;
}

body.mlsbd-landing-page #colophon .section {
    max-width: 1100px;
    color: #888;
}

body.mlsbd-landing-page .top-search {
    display: none !important;
}

.mlsbd-landing {
    background: #000;
    min-height: 40vh;
    color: #fff;
    text-align: center;
    padding: 28px 20px 36px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mlsbd-logo {
    font-size: 78px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1;
    margin: 0 auto;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    word-break: break-word;
}

.mlsbd-logo-link {
    display: inline-block;
    line-height: 0;
    max-width: 100%;
}

.mlsbd-logo img {
    display: block;
    max-height: 96px;
    max-width: min(360px, 88vw);
    width: auto;
    height: auto;
    margin: 0 auto;
}

.mlsbd-logo .play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 125px;
    height: 125px;
    margin: 0 20px;
    border-radius: 50%;
    background: var(--primary, #40d7bc);
    color: #fff;
    font-size: 62px;
    vertical-align: middle;
}

.mlsbd-logo .play .fa {
    margin: 0 0 0 8px;
    line-height: 1;
}

.mlsbd-title {
    max-width: 1200px;
    margin: 22px auto 28px;
    padding: 0 8px;
    color: var(--primary, #40d7bc);
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 700;
    line-height: 1.45;
    clear: none !important;
    overflow-wrap: anywhere;
}

.mlsbd-search {
    width: 88%;
    max-width: 1125px;
    margin: 0 auto 28px;
}

.mlsbd-search form {
    width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    margin: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.mlsbd-search label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.mlsbd-search .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

.mlsbd-search input[type="search"],
.mlsbd-search input[type="text"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100% !important;
    height: 80px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    outline: none !important;
    padding: 0 30px !important;
    font-size: 20px !important;
    background: #fff !important;
    color: #333 !important;
    border-radius: 5px 0 0 5px !important;
    box-shadow: none !important;
}

.mlsbd-search button,
.mlsbd-search input[type="submit"] {
    flex: 0 0 auto !important;
    width: 130px !important;
    height: 80px !important;
    padding: 0 !important;
    border: 0 !important;
    background: var(--primary, #40d7bc) !important;
    color: #111 !important;
    font-size: 22px !important;
    cursor: pointer !important;
    border-radius: 0 5px 5px 0 !important;
}

.mlsbd-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 16px;
    margin: 0 auto 8px;
}

.mlsbd-home-btn,
a.mlsbd-home-btn {
    display: inline-block;
    padding: 16px 50px;
    background: var(--primary, #40d7bc) !important;
    color: var(--button-text, #111) !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb, 64, 215, 188), 0.35);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.mlsbd-home-btn:hover,
a.mlsbd-home-btn:hover {
    background: var(--primary, #40d7bc) !important;
    color: var(--button-text, #111) !important;
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(var(--primary-rgb, 64, 215, 188), 0.55);
}

.mlsbd-home-btn--secondary,
a.mlsbd-home-btn--secondary {
    background: transparent !important;
    color: var(--primary, #40d7bc) !important;
    box-shadow: none;
    border: 2px solid var(--primary, #40d7bc);
}

.mlsbd-home-btn--secondary:hover,
a.mlsbd-home-btn--secondary:hover {
    background: var(--primary, #40d7bc) !important;
    color: var(--button-text, #111) !important;
    filter: none;
}

.mlsbd-content {
    max-width: 1100px;
    margin: 80px auto 0;
    padding: 0 25px 60px;
    color: #ddd;
    text-align: left;
    line-height: 1.8;
    font-size: 17px;
    box-sizing: border-box;
}

.mlsbd-content h2 {
    color: var(--primary, #40d7bc);
    font-size: 34px;
    line-height: 1.3;
    margin: 60px 0 22px;
    text-align: center;
    clear: none !important;
}

.mlsbd-content h3 {
    color: var(--primary, #40d7bc);
    font-size: 25px;
    line-height: 1.4;
    margin: 38px 0 12px;
    clear: none !important;
}

.mlsbd-content p {
    margin: 0 0 22px;
}

.mlsbd-content strong {
    color: #fff;
}

.mlsbd-content ol,
.mlsbd-content ul {
    padding-left: 30px;
}

.mlsbd-content li {
    margin-bottom: 14px;
}

/* Tablet */
@media (max-width: 1024px) {
    .mlsbd-landing {
        padding: 24px 16px 32px;
    }

    .mlsbd-logo {
        font-size: clamp(22px, 3.5vw, 34px);
    }

    .mlsbd-logo img {
        max-height: 84px;
    }

    .mlsbd-logo .play {
        width: 95px;
        height: 95px;
        font-size: 46px;
        margin: 0 14px;
    }

    .mlsbd-title {
        font-size: 42px;
        margin: 18px auto 24px;
    }

    .mlsbd-search input[type="search"],
    .mlsbd-search input[type="text"] {
        height: 68px !important;
        font-size: 18px !important;
        padding: 0 22px !important;
    }

    .mlsbd-search button,
    .mlsbd-search input[type="submit"] {
        width: 110px !important;
        height: 68px !important;
        font-size: 18px !important;
    }
}

/* Mobile — same as mlsbd.lat */
@media (max-width: 768px) {
    .mlsbd-landing {
        min-height: 36vh;
        padding: 20px 12px 28px;
    }

    .mlsbd-logo {
        font-size: 40px;
    }

    .mlsbd-logo img {
        max-height: 64px;
    }

    .mlsbd-logo .play {
        width: 65px;
        height: 65px;
        font-size: 32px;
        margin: 0 8px;
    }

    .mlsbd-logo .play .fa {
        margin-left: 4px;
    }

    .mlsbd-title {
        font-size: 32px;
        line-height: 1.35;
        margin: 16px auto 22px;
    }

    .mlsbd-search {
        width: 100%;
        margin-bottom: 22px;
    }

    .mlsbd-search input[type="search"],
    .mlsbd-search input[type="text"] {
        height: 60px !important;
        font-size: 16px !important;
        padding: 0 18px !important;
    }

    .mlsbd-search button,
    .mlsbd-search input[type="submit"] {
        width: 85px !important;
        height: 60px !important;
        font-size: 17px !important;
    }

    .mlsbd-home-btn {
        padding: 16px 38px;
        font-size: 18px;
    }

    .mlsbd-content {
        margin-top: 50px;
        padding: 0 15px 40px;
        font-size: 15px;
    }

    .mlsbd-content h2 {
        font-size: 27px;
        margin-top: 45px;
    }

    .mlsbd-content h3 {
        font-size: 21px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .mlsbd-landing {
        min-height: 32vh;
        padding: 16px 10px 24px;
    }

    .mlsbd-logo {
        font-size: 28px;
    }

    .mlsbd-logo img {
        max-height: 52px;
    }

    .mlsbd-logo .play {
        width: 52px;
        height: 52px;
        font-size: 24px;
        margin: 0 6px;
    }

    .mlsbd-title {
        font-size: 24px;
        margin: 14px auto 18px;
    }

    .mlsbd-search input[type="search"],
    .mlsbd-search input[type="text"] {
        height: 52px !important;
        font-size: 15px !important;
        padding: 0 14px !important;
    }

    .mlsbd-search button,
    .mlsbd-search input[type="submit"] {
        width: 74px !important;
        height: 52px !important;
        font-size: 15px !important;
    }

    .mlsbd-home-btn {
        padding: 14px 28px;
        font-size: 16px;
    }
}

.video_player {
    width: 100%;
    margin: -2px 0 10px;
}

.t05-episodes {
    margin: 20px 0;
}

.t05-episodes a {
    display: inline-block;
    margin: 0 6px 8px 0;
    padding: 6px 12px;
    background: var(--surface, #292929);
    color: var(--primary, #40d7bc);
    text-decoration: none;
    border-radius: 3px;
}

.t05-episodes a:hover,
.t05-episodes a.is-on {
    background: #e10600;
    color: #fff;
}

.panel-group {
    margin: 16px 0 28px;
}

.panel {
    border: 1px solid var(--surface-alt, #313131);
    margin-bottom: 8px;
    background: #222;
}

.panel-heading a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    transition: color .2s ease, background .2s ease;
}

.panel-heading a:hover,
.panel-heading a.active {
    color: var(--primary, #40d7bc) !important;
}

.panel-heading a::after {
    content: '+';
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #888888;
    margin-left: 12px;
    flex-shrink: 0;
    transition: color .2s ease;
}

.panel-heading a.active::after {
    content: '−';
    color: var(--primary, #40d7bc);
}

.panel-collapse {
    display: none;
}

.panel-collapse.is-open {
    display: block;
}

.panel-body {
    padding: 0 14px 14px;
    color: #ddd;
}

.t05-contact label {
    display: block;
    margin: 0 0 14px;
}

.t05-contact input,
.t05-contact textarea {
    width: 100%;
    max-width: 640px;
    padding: 8px 10px;
    background: var(--surface, #292929);
    border: 1px solid var(--surface-alt, #313131);
    color: #eee;
}

.t05-contact button {
    background: var(--primary, #40d7bc);
    color: #111;
    border: 0;
    padding: 10px 22px;
    font-weight: 700;
    cursor: pointer;
}

.t05-page-body {
    padding: 8px 0 32px;
    color: #ddd;
    line-height: 1.7;
}

.mf-player-tabs {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mf-player-tabs .player-tab-btn {
    background: var(--surface, #292929);
    color: #ddd;
    border: 1px solid var(--surface-alt, #313131);
    padding: 6px 12px;
    cursor: pointer;
}

.mf-player-tabs .player-tab-btn.active {
    background: var(--primary, #40d7bc);
    color: #111;
    border-color: var(--primary, #40d7bc);
}

body.single #content.t05-single,
body.page #content.t05-single {
    display: block !important;
    width: 100%;
    max-width: none;
    height: auto !important;
    grid-template-columns: none;
    gap: 0;
}

/* Detail page: keep Visual+ 1020px .section container + sidebar (do NOT break layout) */
body.single.t05-has-sidebar #primary,
body.t05-has-sidebar #primary {
    float: left;
    width: 100%;
    padding-right: 320px;
    box-sizing: border-box;
}

body.single.t05-has-sidebar #secondary,
body.t05-has-sidebar #secondary {
    float: right;
    width: 300px;
    margin-left: -300px;
    position: sticky;
    top: 0;
}

body.single #main > .section.clearfix {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 5px;
}

/* Single detail page styles (Visual+ container already set above) */
body.single #content.t05-single .entry-title.single-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #eee;
    line-height: 1.35;
}

body.single #content.t05-single .moviemeta > h1,
body.single #content.t05-single .moviemeta > h1 a {
    color: var(--primary, #40d7bc);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
}

body.single #content.t05-single .moviemeta p {
    margin-bottom: 10px;
    line-height: 1.55;
    color: #ddd;
}

body.single #content.t05-single .moviemeta a {
    color: var(--primary, #40d7bc);
}

body.single #content.t05-single .t05-episodes a:hover,
body.single #content.t05-single .t05-episodes a.is-on {
    background: #e10600;
    color: #fff !important;
}

body.single .t04-detail {
    margin: 8px 0 20px;
    padding: 0 10px;
    box-sizing: border-box;
    color: #eee;
}

body.single .t04-share-nav {
    padding: 0 10px;
    box-sizing: border-box;
    overflow: hidden;
}

body.single .t04-detail-grid {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

body.single .t04-detail-poster {
    flex: 0 0 168px;
    width: 168px;
    max-width: 42%;
}

body.single .t04-detail-poster img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--primary, #40d7bc);
    background: #111;
}

body.single .t04-detail-info {
    flex: 1 1 auto;
    min-width: 0;
}

body.single .t04-detail-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary, #40d7bc);
}

body.single .t04-detail-title a,
body.single #content.t05-single .t04-detail-title a {
    color: var(--primary, #40d7bc);
    text-decoration: none;
}

body.single .t04-detail-row {
    margin: 0 0 7px;
    font-size: 14px;
    line-height: 1.45;
    color: #fff;
}

body.single .t04-detail-row a,
body.single .t04-detail-val,
body.single #content.t05-single .t04-detail-row a {
    color: var(--primary, #40d7bc);
}

body.single .t04-detail-sep {
    color: var(--primary, #40d7bc);
    margin: 0 2px;
}

body.single .t04-detail-imdb {
    color: #f5c518;
    font-weight: 700;
    margin-right: 4px;
}

body.single .t04-detail-imdb-url {
    margin: 12px 0 8px;
    overflow-wrap: anywhere;
}

body.single .t04-detail-row .t04-imdb-url {
    margin: 0 0 0 .4rem;
    font-size: .92em;
    overflow-wrap: anywhere;
}

body.single .t04-detail-blurb {
    margin: 10px 0 16px;
    line-height: 1.55;
    color: #fff;
}

body.single .t04-detail-blurb a {
    color: var(--primary, #40d7bc);
    font-weight: 700;
}

body.single .t04-print-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

body.single .t04-dl-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.single .t04-dl-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--primary, #40d7bc);
    background: transparent;
}

body.single .t04-dl-table th,
body.single .t04-dl-table td {
    border: 1px solid var(--primary, #40d7bc);
    padding: 8px 6px;
    text-align: center;
    font-size: 14px;
}

body.single .t04-dl-table th {
    background: var(--primary, #40d7bc);
    color: #fff;
    font-weight: 700;
}

body.single .t04-dl-table td,
body.single .t04-dl-table td a {
    color: var(--primary, #40d7bc);
    background: transparent;
}

body.single .t04-dl-table td a:hover {
    color: #fff;
}

body.single #content.t05-single .l-hd-links {
    display: flex;
    justify-content: space-between;
    gap: 1%;
    margin: 0 0 10px;
    clear: both;
}

body.single #content.t05-single a.hd-links {
    width: 49.5%;
    float: none;
    flex: 1 1 49%;
    padding: 8px 0;
    text-align: center;
    margin: 5px 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
    border-radius: 0;
    text-decoration: none;
    background: var(--primary, #40d7bc);
    box-sizing: border-box;
}

body.single #content.t05-single a.hd-links:hover {
    background: var(--primary, #40d7bc);
    color: #fff !important;
    text-decoration: none;
}

body.single .watch-hd {
    text-align: center;
    border-bottom: 1px solid #161616;
}

body.single .watch-hd img {
    max-width: 100%;
    height: auto;
}

body.single .t05-player-host .player-poster__content {
    display: none;
}

body.single .t05-player-host .player-poster__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    margin: 0;
}

body.single .t05-player-host .player-poster__play .fa {
    display: block;
    width: auto;
    height: auto;
    font-size: 100px;
    line-height: 1;
    color: var(--primary, #40d7bc);
    opacity: 0.85;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.single .t05-player-host .player-poster__play .fa:before {
    display: block;
    font-size: inherit;
    color: inherit;
}

body.single .t05-player-host .video_player_thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background-color: #000;
    background-size: cover;
    background-position: center;
}

body.single .t05-player-host.video_player {
    height: auto;
    margin: 0 0 10px;
}

body.single .featured-movies {
    overflow: hidden;
    margin: 0 0 12px;
}

body.single .t04-top-content {
    padding: 10px 0 12px;
    margin: 0 0 8px;
    color: #ddd;
    line-height: 1.6;
    border-bottom: 1px solid #161616;
}

body.single .t04-top-content a {
    color: var(--primary, #40d7bc);
}

body.single .movielinks {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
    margin: 0 0 12px;
}

@media screen and (max-width: 640px) {
    body.single #content.t05-single .l-hd-links {
        flex-direction: column;
        gap: 6px;
    }

    body.single #content.t05-single a.hd-links {
        width: 100%;
        flex: 1 1 auto;
    }
}

body.mlsbd-landing-page .site-ad {
    max-width: min(720px, 100%);
    margin-left: auto;
    margin-right: auto;
}

body.mlsbd-landing-page .site-ad--layout {
    max-width: min(1100px, 100%);
    padding-left: 16px;
    padding-right: 16px;
}

.t04-play-back {
    margin: 0 0 8px;
}

.t04-play-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary, #40d7bc);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.t04-play-back a:hover {
    color: #fff;
}

.t04-play-ep {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--surface, #292929);
    border-radius: 3px;
    color: var(--primary, #40d7bc);
    font-size: 13px;
    font-weight: 700;
    vertical-align: middle;
}

.t05-player-host .player-mode-tabs {
    padding: 12px 14px 0;
    margin: 0;
}

.t05-player-host .player-mode-tab {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 3px;
    border: 1px solid #3a3a3a;
    background: var(--surface, #292929);
    color: #ddd;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.t05-player-host .player-mode-tab:hover {
    background: #333;
    color: #fff;
}

.t05-player-host .player-mode-tab.is-on {
    background: var(--primary, #40d7bc);
    border-color: var(--primary, #40d7bc);
    color: #111;
}

.t05-player-host .player-downloads {
    padding: 12px 14px 16px;
}

.t05-player-host .player-downloads__lead {
    color: #ccc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.t05-player-host .player-downloads__btn {
    border-radius: 3px;
    background: var(--surface, #292929);
    border: 1px solid #3a3a3a;
    color: var(--primary, #40d7bc);
}

.t05-player-host .player-downloads__btn:hover {
    background: var(--primary, #40d7bc);
    border-color: var(--primary, #40d7bc);
    color: #111;
}

body.single .t05-single > .hentry,
body.page .t05-single > .hentry {
    float: none !important;
    width: 100% !important;
    margin: 0 0 20px !important;
    position: relative !important;
}

.t05-related {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px 8px;
    margin: 12px 0 28px;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100%;
}

.t05-heading,
#nav-below,
.t05-empty {
    grid-column: 1 / -1;
}

/* Sidebar widgets (MLSBD Visual+) */
#secondary .widget_search form {
    display: flex;
    gap: 6px;
    padding: 12px 16px 16px;
    margin: 0;
}

#secondary .widget_search .field {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
}

#secondary .widget_search .submit {
    flex: 0 0 auto;
    max-width: none;
}

#secondary .cat-post-item {
    padding: 6px 0;
    overflow-wrap: anywhere;
}

#secondary .cat-post-item .fa-play-circle {
    color: var(--primary, #40d7bc);
    margin-right: 6px;
}

#secondary .cat-post-title {
    text-decoration: none;
}

#secondary .textwidget {
    overflow: hidden;
    padding-bottom: 10px;
}

/* Watch player — 16:9, poster click-to-play, server tabs */
.t05-player-host.video_player {
    height: auto;
    margin: 0 0 18px;
    background: #111;
    border: 1px solid var(--surface-alt, #313131);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
    overflow: hidden;
}

.t05-player-host .player-section {
    margin: 0;
}

.t05-player-host .player-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    height: auto;
    background: #000;
    overflow: hidden;
}

.t05-player-host .t05-player-empty {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 2rem 1.25rem;
    text-align: center;
    color: #d5d5d5;
    background: #111;
}

.t05-player-host .t05-player-empty p {
    margin: 0 0 .75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.t05-player-host .t05-player-empty__hint {
    font-size: .875rem;
    color: #888;
    max-width: 36rem;
}

.t05-server-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    background: #191919;
    border-top: 1px solid #2a2a2a;
}

.t05-server-bar__label {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #888;
}

.t05-player-host .mf-player-tabs {
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    gap: 4px;
    border: 0;
}

.t05-player-host .mf-player-tabs .nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.t05-player-host .mf-player-tabs .player-tab-btn {
    background: var(--surface, #292929);
    color: #bbb;
    border: 1px solid var(--surface-alt, #313131);
    padding: 3px 8px;
    min-height: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .02em;
    border-radius: 2px;
    cursor: pointer;
}

.t05-player-host .mf-player-tabs .player-tab-btn.active {
    background: var(--primary, #40d7bc);
    color: #111;
    border-color: var(--primary, #40d7bc);
}

.t05-detail-panel {
    background: #222;
    border: 1px solid var(--surface-alt, #313131);
    padding: 14px 16px 8px;
    margin: 0 0 18px;
}

.t05-detail-panel > h2 {
    margin: 0 0 12px;
}

.t05-player-host .player-frame__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.t05-player-host .player-poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    background-color: #111;
    color: #fff;
}

.t05-player-host .player-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 42%, rgba(0, 0, 0, .78));
    pointer-events: none;
}

.t05-player-host .player-poster__content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    text-align: left;
    text-shadow: 0 1px 8px #000;
}

.t05-player-host .player-poster__eyebrow,
.t05-player-host .player-poster__active-player {
    display: inline-block;
    margin: 0 8px 6px 0;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary, #40d7bc);
}

.t05-player-host .player-poster__title {
    display: block;
    font-size: clamp(16px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.25;
}

.t05-player-host .player-poster__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    font-size: 13px;
    color: #ddd;
}

.t05-player-host .play_action {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.t05-player-host .play_action .fa {
    display: block;
    width: auto;
    height: auto;
    font-size: 72px;
    color: var(--primary, #40d7bc);
    opacity: .9;
}

.t05-player-host .player-frame--loaded .player-poster,
.t05-player-host .player-frame--playing .player-poster {
    display: none;
}

.t05-single .entry-title {
    overflow-wrap: anywhere;
}

#colophon .section {
    overflow-wrap: anywhere;
}

/* Visual+ hamburger is 950px. Keep submenus collapsed until tap. */
@media screen and (max-width: 950px) {
    .main-navigation .menu {
        max-height: min(80vh, 640px);
        overflow: auto;
    }

    .main-navigation.toggled .menu {
        display: block;
    }

    .main-navigation ul ul {
        display: none !important;
    }

    .main-navigation li.is-open > ul {
        display: block !important;
    }
}

@media screen and (max-width: 960px) {
    body.t05-has-sidebar .section.clearfix {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.single.t05-has-sidebar #primary,
    body.t05-has-sidebar #primary {
        float: none !important;
        order: 1;
        width: 100% !important;
        max-width: 100%;
        padding-right: 0 !important;
        padding-left: 0;
        box-sizing: border-box;
    }

    body.single.t05-has-sidebar #secondary,
    body.t05-has-sidebar #secondary {
        float: none !important;
        order: 2;
        clear: both;
        display: block;
        width: 100% !important;
        max-width: 100%;
        margin: 20px 0 0 !important;
        position: static !important;
        left: auto;
        right: auto;
        box-sizing: border-box;
    }

    .top-search form {
        padding-right: 84px;
    }

    .t05-player-host .play_action .fa {
        font-size: 56px;
    }
}

@media screen and (max-width: 640px) {
    .section {
        padding: 0 8px;
    }

    #content.site-content:not(.t05-single),
    .t05-grid,
    .t05-related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 6px;
    }

    .t05-row-head {
        flex-wrap: wrap;
        margin: 20px 0 10px;
    }

    .t05-genre-dir {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .top-search {
        padding: 6px;
    }

    .top-search #s,
    .top-search .field,
    #secondary .widget_search .field {
        font-size: 16px;
    }

    .t05-player-host .player-poster__content {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .t05-player-host .play_action .fa {
        font-size: 44px;
    }

    .t05-server-bar {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .t05-player-host .mf-player-tabs .player-tab-btn {
        padding: 3px 7px;
        font-size: 10px;
        min-height: 0;
        flex: 0 0 auto;
    }

    .t05-episodes a {
        font-size: 13px;
        padding: 8px 10px;
    }

    .t04-detail-grid {
        gap: 10px;
    }

    .t04-detail-poster {
        flex: 0 0 36%;
        width: 36%;
        max-width: 140px;
    }

    .t04-detail-title {
        font-size: 1.02rem;
    }

    .t04-detail-row,
    .t04-dl-table th,
    .t04-dl-table td {
        font-size: 13px;
    }

    .table-responsive,
    .movielinks,
    .entry-content table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Inline SVG icon system - replaces FontAwesome */
.inline-svg {
    display: inline-block;
    vertical-align: -0.15em;
    fill: currentColor;
}
.mlsbd-logo .play svg {
    width: 60px;
    height: 60px;
    margin-left: 6px;
}
.t05-player-host .play_action svg {
    display: block;
    width: 72px;
    height: 72px;
    color: var(--primary, #40d7bc);
    opacity: .9;
    transition: transform .2s ease, opacity .2s ease;
}
.t05-player-host .player-poster:hover .play_action svg,
.t05-player-host .play_action:hover svg {
    opacity: 1;
    transform: scale(1.08);
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spinner-svg {
    animation: spin 1s linear infinite;
    display: none;
    position: absolute;
    right: 95px;
    top: 10px;
}

