/*
Theme Name: MovieLight
Theme URI: https://example.com/movielight
Author: MovieLight
Description: A light, fast movie download site theme: white header with pill search, category chips row, indigo-accent section headings, poster grid with hover play overlay, clean single post layout and a simple footer. Brand name and logo come from the site's own WordPress settings.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: movielight
*/

/* ============ Base ============ */
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:#fff;color:#6b7280;line-height:1.5}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
ul{list-style:none}
.container{max-width:72rem;margin-left:auto;margin-right:auto;width:100%}
.ml-indigo{color:#6366f1}
.ml-wrap{max-width:72rem;margin:0 auto;padding-top:.5rem}

/* ============ Header ============ */
.site-header{background:#fff;padding:.75rem .5rem}
@media(min-width:640px){.site-header{padding:.75rem 1rem}}
.header-in{max-width:72rem;margin:0 auto;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}
.brand{display:flex;align-items:center;width:100%;padding:0 .5rem}
@media(min-width:768px){.brand{width:41.6667%}}
.brand .custom-logo-link img,.brand img.custom-logo{max-height:53px;width:auto}
.site-title{font-size:1.9rem;font-weight:800;letter-spacing:-.02em;color:#374151;line-height:1}
.site-title span{color:#6366f1}
.menu-btn{flex:none;width:2.6rem;height:2.6rem;margin-right:.6rem;border:1px solid #d1d5db;border-radius:.25rem;background:#fff;color:#6b7280;cursor:pointer;display:flex;align-items:center;justify-content:center}
.menu-btn:hover{box-shadow:0 1px 3px rgba(0,0,0,.12)}
.menu-btn svg{width:20px;height:20px}
.head-right{display:flex;justify-content:center;align-items:center;width:100%;margin:.5rem 0;flex-wrap:wrap}
@media(min-width:640px){.head-right{flex-wrap:nowrap}}
@media(min-width:768px){.head-right{width:58.3333%;margin:0}}
.ml-sform{background:#e5e7eb;padding:.25rem 1rem;display:flex;justify-content:center;align-items:center;border-radius:9999px;width:100%;box-shadow:inset 0 2px 4px rgba(0,0,0,.06)}
@media(min-width:640px){.ml-sform{width:41.6667%}}
.ml-sform svg{width:16px;height:16px;flex:none;color:#6b7280}
.ml-sform input[type=search]{width:100%;appearance:none;-webkit-appearance:none;background:#e5e7eb;margin-left:.5rem;padding:.25rem;border:0;outline:none;color:#6b7280;font-size:1rem}
.top-nav{display:none;width:58.3333%;margin-left:2rem;justify-content:flex-start;align-items:center}
@media(min-width:768px){.top-nav{display:flex}}
.top-nav a,.top-nav li a{text-transform:uppercase;margin:0 .75rem;font-weight:600;letter-spacing:.025em;color:#6b7280;font-size:.95rem}
.top-nav a:hover,.top-nav li a:hover{color:#6366f1}
.top-nav ul{display:flex;align-items:center}

/* ============ Slide drawer ============ */
.drawer{width:20rem;max-width:85vw;position:fixed;top:0;left:0;bottom:0;background:#e5e7eb;z-index:60;padding:1rem .5rem;transform:translateX(-24rem);transition:transform .25s ease;box-shadow:0 10px 25px rgba(0,0,0,.18);overflow-y:auto}
.drawer.open{transform:translateX(0)}
.drawer-head{display:flex;justify-content:flex-start;align-items:center;padding:0 .5rem;margin-bottom:1rem}
.drawer-head .site-title{font-size:1.4rem;margin-left:.5rem}
.drawer nav a,.drawer .menu a{display:block;padding:.5rem .75rem;text-transform:capitalize;color:#4b5563;border-radius:.25rem}
.drawer nav a:hover,.drawer .menu a:hover{background:#d1d5db}
.drawer nav a::before,.drawer .menu a::before{content:"#";color:#6366f1;margin:0 .5rem}
.drawer-close{border:1px solid #d1d5db;border-radius:.25rem;background:transparent;padding:.25rem 1rem;color:#6b7280;cursor:pointer;font-size:1.1rem}
.drawer-close:hover{box-shadow:0 1px 3px rgba(0,0,0,.12)}
.scrim{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:55;opacity:0;pointer-events:none;transition:opacity .25s}
.scrim.on{opacity:1;pointer-events:auto}

/* ============ Category chips ============ */
.cat-row{max-width:72rem;margin:1rem auto -1rem;padding:0 .5rem}
.featured-menu{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;padding:.5rem 0;width:100%}
@media(min-width:640px){.featured-menu{padding:1rem 0}}
.featured-menu li{display:inline-block;border:1px solid #e5e7eb;box-shadow:inset 0 2px 4px rgba(0,0,0,.06);color:#818cf8;letter-spacing:.025em;line-height:1.75rem;margin:.25rem;transition:transform .15s}
.featured-menu li:hover{transform:scale(.95)}
@media(min-width:640px){.featured-menu li{margin-left:1rem;margin-right:1rem}}
.featured-menu a{display:block;padding:.25rem 1rem}
.featured-menu a:hover{background:#f3f4f6}
@media(min-width:640px){.featured-menu a{padding-left:1.5rem;padding-right:1.5rem}}

/* ============ Notice box ============ */
.notice-box{text-align:center;color:#818cf8;border:1px solid #c7d2fe;box-shadow:0 1px 2px rgba(0,0,0,.05);padding:.75rem 1rem;margin:1.5rem 1rem;max-width:36rem;background:#fff}
@media(min-width:640px){.notice-box{margin-left:auto;margin-right:auto}}
.notice-box strong{color:#ef4444;font-weight:700}

/* ============ Section heading ============ */
.sec-head{color:#6b7280;font-size:1rem;font-weight:400;letter-spacing:.025em;padding:.5rem 1rem;border-left:8px solid #a5b4fc;display:flex;justify-content:space-between;align-items:center;max-width:72rem;margin:1.5rem .5rem 0}
@media(min-width:640px){.sec-head{font-size:1.125rem;margin-left:auto;margin-right:auto}}
.sec-head .lft{display:flex;align-items:center;gap:.25rem}
.sec-head svg{width:18px;height:18px;color:#6366f1;margin:0 .25rem}
.page-badge{padding:.25rem 1rem;box-shadow:inset 0 2px 4px rgba(0,0,0,.06);border-radius:.25rem;color:#6366f1;background:#e0e7ff;border:1px solid #c7d2fe;font-size:.875rem}
@media(min-width:640px){.page-badge{font-size:1rem}}

/* ============ Poster grid ============ */
.grid-sec{padding:1rem 0 2rem;text-align:center}
@media(min-width:640px){.grid-sec{padding:2rem 0}}
.card{display:inline-flex;flex-direction:column;width:41.6667%;margin:.5rem .25rem;vertical-align:top;text-align:center}
@media(min-width:640px){.card{width:25%;margin-left:.75rem;margin-right:.75rem}}
@media(min-width:768px){.card{width:16.6667%}}
.card a{cursor:pointer;overflow:hidden;display:block;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.poster{position:relative;overflow:hidden}
.poster img{width:100%;height:250px;object-fit:cover;transition:transform .3s}
@media(min-width:640px){.poster img{height:270px}}
.card a:hover .poster img{transform:scale(1.1)}
.poster .shade{position:absolute;inset:0;background:#000;opacity:0;transition:opacity .2s}
.card a:hover .poster .shade{opacity:.5}
.poster .play{position:absolute;top:33.3333%;left:33.3333%;width:4rem;height:4rem;border:2px solid #d1d5db;border-radius:.25rem;display:none;justify-content:center;align-items:center}
.card a:hover .poster .play{display:flex}
.poster .play svg{width:26px;height:26px;color:#d1d5db;margin-left:4px}
.card .ttl{margin-top:.5rem;display:block;padding:.75rem .5rem;box-shadow:inset 0 2px 4px rgba(0,0,0,.06);color:#6b7280;letter-spacing:.025em;font-size:.875rem;line-height:1.35;background:#fff}
.card a:hover .ttl{color:#6366f1}
.empty-box{max-width:36rem;margin:2rem auto;padding:1.5rem;border:1px dashed #c7d2fe;color:#818cf8;text-align:center}

/* ============ Pagination ============ */
.pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;padding:1rem .5rem 2rem}
.pagination a,.pagination .current{display:inline-block;margin:.5rem;padding:.5rem 2rem;text-align:left;border-radius:.25rem;box-shadow:0 1px 3px rgba(0,0,0,.1);background:#e5e7eb;color:#6b7280;transition:transform .15s}
.pagination a:hover{transform:scale(.95)}
.pagination .current{color:#6366f1;border:1px solid #c7d2fe;background:#fff;box-shadow:none}
.pagination .dots{color:#6b7280;font-size:1.25rem;font-weight:600;margin:0 .75rem;background:none;box-shadow:none;padding:0}

/* ============ Single post ============ */
.title-bar{color:#6b7280;font-size:1.125rem;font-weight:400;letter-spacing:.025em;background:#e5e7eb;padding:.5rem 1rem;margin:0 .5rem;border-radius:.25rem;display:flex;justify-content:space-between;align-items:center}
.title-bar .lft{display:flex;align-items:flex-start;gap:.25rem}
.title-bar svg{width:18px;height:18px;color:#6366f1;flex:none;margin-top:.3rem}
.page-meta{padding:.75rem 1rem;color:#6b7280;font-size:.95rem}
.page-meta a{color:#6366f1}
.page-meta em{font-style:normal}
.entry{color:#6b7280;font-size:1rem;line-height:1.75;margin:1rem 0 2rem;padding:0 1rem}
.entry p{margin-bottom:.5rem;text-align:center}
.entry img{height:auto;margin:1rem auto;text-align:center;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.entry a{color:#3b82f6;cursor:pointer}
.entry a:hover{text-decoration:underline}
.entry h2{color:#60a5fa;font-size:1.125rem;line-height:1.75rem;margin:.75rem 0;padding:.25rem .5rem;text-align:center;font-weight:600}
.entry h3{color:#4b5563;font-size:1.05rem;margin:.75rem 0;text-align:center;font-weight:600}
.entry ul{list-style:square;margin:1em;padding-left:2.5em;text-align:left}
.entry ol{list-style:decimal;margin:1em;padding-left:2.5em;text-align:left}
.entry blockquote{font-style:italic;margin:.5rem 0}
.entry .dl-btn,.entry a.dl-btn{display:inline-block;border:1px solid #6366f1;color:#6366f1;box-shadow:0 1px 3px rgba(0,0,0,.1);font-size:.875rem;max-width:24rem;padding:.5rem 1rem;text-transform:uppercase;width:83.3333%;margin:.5rem auto;transition:transform .15s;text-align:center}
.entry .dl-btn:hover,.entry a.dl-btn:hover{transform:scale(.95);text-decoration:none}
.dl-section{text-align:center;margin:1.5rem auto 0;max-width:42rem;padding:0 1rem}
.dl-heading{color:#60a5fa;font-size:1.25rem;font-weight:600;text-align:center;margin-bottom:.75rem}
.dl-section .dl-btn{display:block;border:1px solid #6366f1;color:#6366f1;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1);font-size:.95rem;max-width:24rem;padding:.6rem 1rem;text-transform:uppercase;margin:.5rem auto;transition:transform .15s;text-align:center}
.dl-section .dl-btn:hover{transform:scale(.97);text-decoration:none;background:#eef2ff}
.how-row{margin-top:2rem;text-align:center}
@media(min-width:640px){.how-row{display:flex;justify-content:center;align-items:center}}
.how-row a{display:block;margin:.5rem 1.5rem;color:#60a5fa;font-size:1.125rem;font-style:italic}
.how-row a:hover{text-decoration:underline}
.report-box{text-align:center;margin:2rem auto;border:2px dashed #d1d5db;padding:.5rem;max-width:42rem;color:#6b7280}
.report-box a{color:#6366f1}
.report-box a:hover{text-decoration:underline}
.report-box .unlink{color:#f87171}
.wrap-up{text-align:center;display:block;font-size:1.125rem;font-style:italic;color:#6b7280;margin-bottom:1rem}
.wrap-up a{color:#6366f1}
.wrap-up a:hover{text-decoration:underline}

/* ============ Page / comments ============ */
.page-body{color:#6b7280;line-height:1.75;padding:0 1rem;margin:1rem 0 2rem}
.page-body p{margin-bottom:.75rem}
.page-body a{color:#3b82f6}
.page-body h2,.page-body h3{color:#374151;margin:1rem 0 .5rem}
.comments-area{max-width:72rem;margin:0 auto;padding:1rem}
.comment-list li{border-left:4px solid #e5e7eb;margin:1rem 0;padding:.5rem 1rem}
.comment-form label{display:block;text-transform:uppercase;letter-spacing:.025em;width:8rem}
.comment-form input[type=text],.comment-form input[type=email],.comment-form textarea{border:1px solid #e5e7eb;border-radius:.25rem;box-shadow:0 1px 2px rgba(0,0,0,.05);margin:.75rem 0;outline:none;padding:1rem;width:100%}
.comment-form textarea{height:5rem;padding:.5rem}
.comment-form input[type=submit]{background:#fff;border:1px solid #6366f1;color:#6366f1;box-shadow:0 1px 3px rgba(0,0,0,.1);cursor:pointer;display:block;margin:1.5rem auto;max-width:24rem;padding:.5rem 1.5rem;text-align:center;width:100%;text-transform:uppercase}
.comment-form input[type=submit]:hover{transform:scale(.95)}

/* ============ Footer ============ */
.seo-text{max-width:72rem;margin:0 auto;padding:1rem;color:#6b7280;line-height:1.7;font-size:.95rem}
.site-footer{max-width:72rem;margin:0 auto;line-height:1.5;padding:1.5rem 1rem;border-top:1px solid #e5e7eb;text-align:center;text-transform:uppercase;color:#4b5563}
@media(min-width:768px){.site-footer{display:flex;justify-content:space-between;align-items:center;text-align:left}}
.site-footer .brand-name{color:#6366f1}
.footer-menu{display:flex;flex-wrap:wrap;justify-content:center}
.footer-menu li{margin:.25rem .75rem}
.footer-menu a{color:#4b5563}
.footer-menu a:hover{color:#6366f1}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
