/*
Theme Name:   Desireel.net
Theme URI:    https://desireel.net
Author:       Desireel.net
Author URI:   https://desireel.net
Description:  OlaMovies-inspired dark-mode WordPress Movies & Web-Series Download theme branded for Desireel.net. Features 4K/1080p quality badges, MediaInfo technical specs, Trending strip, responsive 2-col mobile / 5-col desktop poster grid, screenshot lightbox, grouped G-Drive/Direct download links, and built-in CPT + taxonomies.
Version:      2.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  desireel-net
*/

:root {
    --ola-bg: #0c0d11;
    --ola-surface: #14161e;
    --ola-surface-2: #1c1f2b;
    --ola-border: #252938;
    --ola-text: #f1f5f9;
    --ola-muted: #94a3b8;
    --ola-primary: #0ea5e9;
    --ola-primary-hover: #0284c7;
    --ola-crimson: #e11d48;
    --ola-gold: #f59e0b;
    --ola-green: #10b981;
    --ola-purple: #8b5cf6;
    --ola-radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--ola-bg);
    color: var(--ola-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ola-primary); text-decoration: none; transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease; }
a:hover { color: #38bdf8; }
img { max-width: 100%; height: auto; display: block; }

.ola-container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.ola-header {
    background: #0a0b0f;
    border-bottom: 1px solid var(--ola-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.ola-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
}
.ola-brand {
    display: inline-flex;
    align-items: center;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
    white-space: nowrap;
}
.ola-brand:hover { color: #fff; }
.ola-brand-dot {
    background: linear-gradient(135deg, var(--ola-primary), #2563eb);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 5px;
    margin-left: 4px;
    letter-spacing: 0.01em;
}

.ola-search-wrap {
    flex: 1;
    max-width: 460px;
}
.ola-search-form {
    display: flex;
    align-items: center;
    background: var(--ola-surface);
    border: 1px solid var(--ola-border);
    border-radius: 999px;
    overflow: hidden;
}
.ola-search-form:focus-within { border-color: var(--ola-primary); }
.ola-search-form input {
    width: 100%;
    background: transparent;
    border: 0;
    color: #fff;
    padding: 9px 15px;
    font-size: 0.88rem;
    outline: none;
}
.ola-search-form button {
    background: var(--ola-primary);
    color: #fff;
    border: 0;
    padding: 9px 18px;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    white-space: nowrap;
}
.ola-search-form button:hover { background: var(--ola-primary-hover); }

.ola-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ola-btn-sm {
    background: var(--ola-surface-2);
    color: #e2e8f0;
    border: 1px solid var(--ola-border);
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.ola-btn-sm:hover { border-color: var(--ola-primary); color: #fff; }
.ola-btn-tg { background: #0284c7; border-color: #0284c7; color: #fff; }
.ola-btn-tg:hover { background: #0369a1; color: #fff; }

.ola-hamburger {
    display: none;
    background: var(--ola-surface-2);
    border: 1px solid var(--ola-border);
    color: #fff;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

/* Sub-Nav Category Bar */
.ola-subnav {
    background: var(--ola-surface);
    border-top: 1px solid rgba(255,255,255,0.04);
}
.ola-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    flex-wrap: wrap;
}
.ola-nav-list > li { position: relative; }
.ola-nav-list > li > a {
    display: inline-block;
    padding: 7px 12px;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
}
.ola-nav-list > li > a:hover,
.ola-nav-list > li.active > a {
    background: var(--ola-surface-2);
    color: var(--ola-primary);
}
.ola-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--ola-surface);
    border: 1px solid var(--ola-border);
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.6);
    list-style: none;
    z-index: 120;
}
.ola-has-dd:hover .ola-dropdown,
.ola-has-dd.open .ola-dropdown { display: block; }
.ola-dropdown li a {
    display: block;
    padding: 7px 11px;
    font-size: 0.83rem;
    color: #e2e8f0;
    border-radius: 5px;
}
.ola-dropdown li a:hover { background: var(--ola-surface-2); color: var(--ola-primary); }

/* Notice Strip */
.ola-notice {
    margin: 14px 0 18px;
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(14,165,233,0.14), rgba(37,99,235,0.08));
    border: 1px solid rgba(14,165,233,0.35);
    border-radius: var(--ola-radius);
    color: #bae6fd;
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ola-notice button {
    background: transparent;
    border: 0;
    color: #bae6fd;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

/* Quality Filter Chips */
.ola-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 12px;
    margin-bottom: 10px;
    scrollbar-width: none;
}
.ola-chips::-webkit-scrollbar { display: none; }
.ola-chip {
    flex: 0 0 auto;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    background: var(--ola-surface-2);
    border: 1px solid var(--ola-border);
    letter-spacing: 0.02em;
}
.ola-chip:hover { border-color: var(--ola-primary); color: #fff; }
.ola-chip-4k { background: #be123c; border-color: #f43f5e; }
.ola-chip-hd { background: #0369a1; border-color: #0ea5e9; }
.ola-chip-hevc { background: #6d28d9; border-color: #8b5cf6; }
.ola-chip-dual { background: #047857; border-color: #10b981; }
.ola-chip-series { background: #b45309; border-color: #f59e0b; }

/* Section Heading */
.ola-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ola-border);
}
.ola-sec-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ola-sec-title::before {
    content: "";
    width: 4px;
    height: 18px;
    background: var(--ola-primary);
    border-radius: 2px;
}

/* Trending Horizontal Strip */
.ola-trending {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--ola-border) transparent;
}
.ola-trend-item {
    flex: 0 0 138px;
    background: var(--ola-surface);
    border: 1px solid var(--ola-border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.ola-trend-item img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.ola-trend-item .ola-trend-lbl {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 7px 6px;
    background: linear-gradient(transparent, rgba(0,0,0,0.92));
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content + Sidebar Layout */
.ola-layout {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 24px;
    align-items: start;
}

/* Movie Grid */
.ola-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ola-grid-full {
    grid-template-columns: repeat(5, 1fr);
}
.ola-card {
    background: var(--ola-surface);
    border: 1px solid var(--ola-border);
    border-radius: var(--ola-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.ola-card:hover { transform: translateY(-4px); border-color: var(--ola-primary); }
.ola-thumb {
    position: relative;
    aspect-ratio: 2 / 3;
    background: #1a1d28;
    overflow: hidden;
}
.ola-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ola-no-img {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--ola-muted);
    font-size: 0.82rem;
    font-weight: 700;
}
.ola-q-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background: var(--ola-crimson);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.ola-q-badge.is-4k { background: #d97706; color: #111; }
.ola-imdb-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    background: rgba(12, 13, 17, 0.84);
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}
.ola-lang-ribbon {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(12, 13, 17, 0.85);
    color: #38bdf8;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 7px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ola-card-body {
    padding: 10px 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ola-card-title {
    margin: 0 0 6px;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    color: #f8fafc;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ola-card-foot {
    display: flex;
    justify-content: space-between;
    font-size: 0.73rem;
    color: var(--ola-muted);
}

/* Sidebar */
.ola-sidebar { display: grid; gap: 18px; }
.ola-widget {
    background: var(--ola-surface);
    border: 1px solid var(--ola-border);
    border-radius: var(--ola-radius);
    padding: 16px;
}
.ola-widget h3 {
    margin: 0 0 12px;
    font-size: 0.94rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ola-border);
}
.ola-pop-list { display: grid; gap: 10px; }
.ola-pop-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    align-items: center;
}
.ola-pop-item img { width: 52px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; }
.ola-pop-title { font-size: 0.82rem; font-weight: 700; color: #f1f5f9; line-height: 1.3; margin-bottom: 3px; }
.ola-pop-meta { font-size: 0.72rem; color: var(--ola-muted); }
.ola-genre-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.ola-genre-cloud a {
    background: var(--ola-surface-2);
    border: 1px solid var(--ola-border);
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
}
.ola-genre-cloud a:hover { border-color: var(--ola-primary); color: #fff; }

/* Pagination */
.ola-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: 28px 0 8px;
    flex-wrap: wrap;
}
.ola-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: var(--ola-surface);
    border: 1px solid var(--ola-border);
    border-radius: 6px;
    color: var(--ola-text);
    font-weight: 700;
    font-size: 0.86rem;
}
.ola-pagination .page-numbers.current,
.ola-pagination .page-numbers:hover {
    background: var(--ola-primary);
    border-color: var(--ola-primary);
    color: #fff;
}

/* Single Movie / Show Page */
.ola-single-wrap {
    max-width: 980px;
    margin: 20px auto 40px;
    padding: 0 16px;
}
.ola-single-box {
    background: var(--ola-surface);
    border: 1px solid var(--ola-border);
    border-radius: 12px;
    overflow: hidden;
}
.ola-hero-banner {
    position: relative;
    padding: 26px;
    background: linear-gradient(to bottom, rgba(12,13,17,0.78), var(--ola-surface)), var(--ola-hero-bg, none);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--ola-border);
}
.drseo-breadcrumbs, .ms-breadcrumbs {
    font-size: 0.8rem;
    color: var(--ola-muted);
    margin-bottom: 12px;
}
.ola-single-title {
    margin: 0 0 18px;
    font-size: clamp(1.35rem, 2.5vw, 1.95rem);
    line-height: 1.25;
    color: #fff;
}
.ola-hero-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}
.ola-single-poster img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--ola-border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
}
.ola-meta-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ola-meta-table tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
.ola-meta-table th { text-align: left; padding: 7px 10px 7px 0; color: #38bdf8; width: 135px; font-weight: 700; }
.ola-meta-table td { padding: 7px 0; color: #e2e8f0; }

.ola-single-content { padding: 24px; }
.ola-block-title {
    margin: 24px 0 12px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ola-block-title::before { content: ""; width: 4px; height: 17px; background: var(--ola-crimson); border-radius: 2px; }
.ola-block-title:first-child { margin-top: 0; }

.ola-story {
    background: var(--ola-bg);
    border: 1px solid var(--ola-border);
    border-radius: 8px;
    padding: 15px 18px;
    color: #cbd5e1;
    font-size: 0.92rem;
}

/* MediaInfo Tech Box (OlaMovies Signature) */
.ola-mediainfo {
    background: #090b10;
    border: 1px solid var(--ola-border);
    border-left: 3px solid var(--ola-primary);
    border-radius: 6px;
    padding: 14px 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    color: #cbd5e1;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* 2x2 Screenshots */
.ola-shots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.ola-shot {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ola-border);
    aspect-ratio: 16 / 9;
    cursor: zoom-in;
    background: #000;
}
.ola-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.ola-shot:hover img { transform: scale(1.03); }

/* Download Stack */
.ola-dl-list { display: grid; gap: 10px; }
.ola-dl-card {
    background: var(--ola-bg);
    border: 1px solid var(--ola-border);
    border-radius: 8px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.ola-dl-title { font-weight: 800; color: #fff; font-size: 0.94rem; }
.ola-dl-badges { display: flex; gap: 7px; margin-top: 4px; flex-wrap: wrap; }
.ola-b-q { background: rgba(225,29,72,0.18); color: #fda4af; padding: 2px 8px; border-radius: 4px; font-size: 0.74rem; font-weight: 700; }
.ola-b-s { background: rgba(14,165,233,0.18); color: #7dd3fc; padding: 2px 8px; border-radius: 4px; font-size: 0.74rem; font-weight: 700; }
.ola-b-srv { background: rgba(16,185,129,0.16); color: #6ee7b7; padding: 2px 8px; border-radius: 4px; font-size: 0.74rem; font-weight: 700; }
.ola-dl-btn {
    background: linear-gradient(135deg, var(--ola-primary), #2563eb);
    color: #fff !important;
    font-weight: 800;
    font-size: 0.86rem;
    padding: 10px 20px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ola-dl-btn:hover { filter: brightness(1.1); }

/* Trailer */
.ola-video { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--ola-border); }
.ola-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Footer */
.ola-footer {
    margin-top: 44px;
    background: #08090d;
    border-top: 1px solid var(--ola-border);
    padding: 28px 0;
    text-align: center;
    color: var(--ola-muted);
    font-size: 0.84rem;
}
.ola-footer p { margin: 6px 0; }

/* Modal & Lightbox */
.ola-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.84);
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.ola-modal.open { display: flex; }
.ola-modal-box {
    background: var(--ola-surface);
    border: 1px solid var(--ola-border);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    padding: 22px;
    position: relative;
}
.ola-modal-box h3 { margin: 0 0 10px; color: var(--ola-primary); }
.ola-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: 0;
    color: var(--ola-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.ola-lb-img { max-width: 92vw; max-height: 86vh; border-radius: 8px; border: 2px solid var(--ola-border); }

/* Responsive Breakpoints (Mobile-First Safe) */
@media (max-width: 1080px) {
    .ola-layout { grid-template-columns: 1fr; }
    .ola-grid, .ola-grid-full { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .ola-header-top { flex-wrap: wrap; padding: 10px 0; }
    .ola-hamburger { display: inline-block; }
    .ola-header-actions { display: none; }
    .ola-search-wrap { order: 3; flex: 1 0 100%; max-width: 100%; }
    .ola-subnav { display: none; }
    .ola-subnav.open { display: block; }
    .ola-nav-list { flex-direction: column; align-items: stretch; padding: 8px 0; }
    .ola-dropdown { position: static; box-shadow: none; border: 0; background: var(--ola-bg); margin-top: 4px; }
    .ola-grid, .ola-grid-full { grid-template-columns: repeat(3, 1fr); gap: 11px; }
    .ola-hero-grid { grid-template-columns: 1fr; }
    .ola-single-poster { max-width: 200px; margin: 0 auto; }
    .ola-shots { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .ola-grid, .ola-grid-full { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ola-hero-banner, .ola-single-content { padding: 16px; }
    .ola-dl-card { flex-direction: column; align-items: stretch; text-align: center; }
    .ola-dl-badges { justify-content: center; }
    .ola-dl-btn { justify-content: center; }
}
