/**
 *                          ___                   _       _         _
 *                         / __)                 | |     | |       | |
 *     _ _ _ _ _ _ _ _ _ _| |__ _____  ____ _   _| |  _  | |__   __| |
 *    | | | | | | | | | (_   __|____ |/ ___) | | | |_/ ) |  _ \ / _  |
 *    | | | | | | | | | | | |  / ___ | |   | |_| |  _ ( _| |_) | (_| |
 *     \___/ \___/ \___(_)|_|  \_____|_|   |____/|_| \_|_)____/ \____|
 *
 *
 * 	Author: MD OMAR FARUK
 * 	Author URI: www.faruk.bd
 * 	Author Contact: https://faruk.bd/#contact
 * 	Author Email: info@faruk.bd | farukmr@gmail.com
 * 	Copyright © 2026
 *                          ___                   _       _         _
 *                         / __)                 | |     | |       | |
 *     _ _ _ _ _ _ _ _ _ _| |__ _____  ____ _   _| |  _  | |__   __| |
 *    | | | | | | | | | (_   __|____ |/ ___) | | | |_/ ) |  _ \ / _  |
 *    | | | | | | | | | | | |  / ___ | |   | |_| |  _ ( _| |_) | (_| |
 *     \___/ \___/ \___(_)|_|  \_____|_|   |____/|_| \_|_)____/ \____|
 *
 *  Movies & Series - a streaming-site layout drawn with the site's shared
 *  colour variables, so it sits inside whichever theme is in use.
 */

/* ============================================================= posters */

.mv-home { margin: 24px 0 8px; }
.mv-home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.mv-home-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; line-height: 28px; }
.mv-home-head h2 svg { width: 24px; height: 24px; fill: var(--brand); }
.mv-home-head a { font-weight: 500; font-size: 14px; color: var(--brand); }

.mv-row {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 180px); gap: 14px;
    overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px;
}
.mv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 14px; }

.mv-card { display: block; color: var(--ink); text-decoration: none; min-width: 0; }
.mv-card:hover { color: var(--ink); }
.mv-poster {
    position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden;
    background: var(--bg-soft); transition: transform .18s ease, box-shadow .18s ease;
}
.mv-card:hover .mv-poster { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.mv-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mv-poster em {
    position: absolute; font-style: normal; font-size: 11px; font-weight: 700; line-height: 1;
    padding: 4px 6px; border-radius: 5px; color: #fff; background: rgba(0, 0, 0, .7);
}
.mv-q { top: 8px; left: 8px; }
.mv-lock { top: 8px; right: 8px; background: #f5a524 !important; color: #111 !important; }
.mv-rate { bottom: 8px; left: 8px; color: #ffd24d !important; }
.mv-name { display: block; margin-top: 8px; font-weight: 600; font-size: 14px; line-height: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-sub { display: block; color: var(--muted); font-size: 12.5px; }

/* ================================================================ hero */

.mv-hero {
    position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 20px; min-height: 380px;
    background: #0b0b0f var(--bg) center / cover no-repeat; color: #fff; display: flex; align-items: flex-end;
}
.mv-hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .1) 100%),
                linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, transparent 45%);
}
.mv-hero-in { position: relative; padding: 40px 44px; max-width: 760px; }
.mv-kicker { text-transform: uppercase; letter-spacing: 1.2px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.mv-hero h1 { margin: 8px 0 8px; font-size: 42px; line-height: 1.08; font-weight: 800; letter-spacing: -.5px; }
.mv-tagline { margin: 0 0 8px; font-style: italic; color: rgba(255, 255, 255, .8); }
.mv-hero-text { margin: 0 0 18px; color: rgba(255, 255, 255, .88); font-size: 15px; line-height: 1.55; }
.mv-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.mv-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 8px; border: 0;
    background: rgba(255, 255, 255, .22); color: #fff; font: 700 15px/44px inherit; font-family: inherit;
    text-decoration: none; cursor: pointer; backdrop-filter: blur(4px);
}
.mv-btn:hover { background: rgba(255, 255, 255, .32); color: #fff; }
.mv-btn-play { background: #fff; color: #111; }
.mv-btn-play:hover { background: rgba(255, 255, 255, .85); color: #111; }
.mv-btn-dark { background: var(--bg-soft); color: var(--ink); backdrop-filter: none; }
.mv-btn-dark:hover { color: var(--ink); filter: brightness(.95); background: var(--bg-soft); }

/* ============================================================== detail */

.mv-detail { min-height: 460px; }
.mv-detail-in { display: flex; gap: 32px; align-items: flex-end; max-width: 1100px; }
.mv-detail-poster { width: 210px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); flex: none; }
.mv-original { color: rgba(255, 255, 255, .7); margin-bottom: 6px; }
.mv-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .9); margin: 6px 0 10px; }
.mv-star { color: #ffd24d; font-weight: 700; }
.mv-age, .mv-qbox { border: 1px solid rgba(255, 255, 255, .6); border-radius: 4px; padding: 0 6px; font-size: 12px; font-weight: 700; }
.mv-genres { display: flex; flex-wrap: wrap; gap: 6px; }
.mv-genres a { padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 13px; text-decoration: none; }
.mv-genres a:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.mv-members { margin-top: 12px; color: #f5a524; font-weight: 600; font-size: 13.5px; }

.mv-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; margin: 8px 0 12px; }
.mv-main h2 { font-size: 20px; margin: 18px 0 10px; }
.mv-story { font-size: 15px; line-height: 1.65; color: var(--ink); }
.mv-info { display: grid; grid-template-columns: 90px 1fr; gap: 10px 14px; margin: 22px 0 0; padding: 18px; border-radius: 12px; background: var(--bg-soft); }
.mv-info dt { color: var(--muted); font-size: 13px; }
.mv-info dd { margin: 0; font-size: 14px; }
.mv-cast { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.mv-cast a { color: var(--brand); }

.mv-seasons-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.mv-season-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mv-season-tabs a { padding: 7px 14px; border-radius: 8px; background: var(--bg-soft); font-weight: 600; font-size: 13.5px; }
.mv-season-tabs a.on { background: var(--ink); color: var(--bg); }
.mv-episodes { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.mv-ep { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.mv-ep:hover { background: var(--bg-soft); color: var(--ink); }
.mv-ep-no { width: 24px; text-align: center; font-size: 20px; color: var(--muted); flex: none; }
.mv-ep-still { position: relative; width: 170px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--bg-soft); flex: none; }
.mv-ep-still img { width: 100%; height: 100%; object-fit: cover; }
.mv-ep-still i {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%;
    background: rgba(0, 0, 0, .55); color: #fff; font-style: normal; display: grid; place-items: center; opacity: 0; transition: opacity .15s;
}
.mv-ep:hover .mv-ep-still i { opacity: 1; }
.mv-ep-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mv-ep-text b { font-size: 15px; }
.mv-ep-text em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.mv-ep-text span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* ============================================================ browse */

.mv-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 4px 0 8px; }
.mv-kinds { display: flex; gap: 6px; margin-right: 6px; }
.mv-kinds a { padding: 7px 14px; border-radius: 8px; background: var(--bg-soft); font-weight: 600; font-size: 14px; }
.mv-kinds a.on { background: var(--ink); color: var(--bg); }
.mv-filters input, .mv-filters select {
    height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit;
}
.mv-filters input { min-width: 220px; }
.mv-count { color: var(--muted); margin: 10px 0 16px; }

/* ============================================================ player */

.mv-play { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 1500px; margin: 0 auto; }
.mv-play.has-list { grid-template-columns: minmax(0, 1fr) 360px; }
.mv-player { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.mv-player video, .mv-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.mv-noplay { height: 100%; display: grid; place-items: center; color: #aaa; padding: 20px; text-align: center; }
.mv-play-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.mv-play-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.mv-play-ep { color: var(--muted); margin-top: 2px; }
.mv-play-btns { display: flex; gap: 10px; }
.mv-play-btns .mv-btn-play { background: var(--ink); color: var(--bg); }
.mv-play-desc { color: var(--muted); line-height: 1.6; max-width: 900px; }
.mv-play-list { background: var(--bg-soft); border-radius: 12px; padding: 14px; max-height: calc(100vh - 110px); overflow-y: auto; }
.mv-play-list h3 { margin: 2px 4px 12px; font-size: 16px; }
.mv-pl-item { display: flex; gap: 10px; padding: 8px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.mv-pl-item:hover { background: var(--bg); color: var(--ink); }
.mv-pl-item.on { background: var(--bg); box-shadow: inset 3px 0 0 var(--brand); }
.mv-pl-still { width: 120px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; flex: none; background: var(--line); }
.mv-pl-still img { width: 100%; height: 100%; object-fit: cover; }
.mv-pl-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.mv-pl-text em { font-style: normal; color: var(--muted); font-size: 12px; }

.mv-up-next {
    position: fixed; right: 24px; bottom: 24px; z-index: 3000; display: flex; gap: 14px; align-items: center;
    padding: 14px 16px; border-radius: 12px; background: #111; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.mv-up-next button { background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 8px; padding: 8px 12px; cursor: pointer; font: inherit; }

/* ============================================================= trailer */

.mv-modal { position: fixed; inset: 0; z-index: 4000; background: rgba(0, 0, 0, .8); display: grid; place-items: center; padding: 20px; }
.mv-modal[hidden] { display: none; }
.mv-modal-in { position: relative; width: min(1100px, 100%); }
.mv-modal-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.mv-modal-frame iframe, .mv-modal-frame video { width: 100%; height: 100%; border: 0; display: block; }
.mv-modal-x {
    position: absolute; right: -6px; top: -46px; width: 40px; height: 40px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}

/* ============================================================== phones */

@media (max-width: 1000px) {
    .mv-body, .mv-play.has-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .mv-hero { min-height: 320px; border-radius: 12px; }
    .mv-hero-in { padding: 24px 20px; }
    .mv-hero h1 { font-size: 28px; }
    .mv-detail-in { flex-direction: column; align-items: flex-start; gap: 16px; }
    .mv-detail-poster { width: 120px; }
    .mv-ep-still { width: 120px; }
    .mv-filters input { min-width: 0; flex: 1 1 100%; }
    .mv-row { grid-auto-columns: 42%; }
}
