/*
Theme Name: FilmyFlix
Theme URI: https://example.com/filmyflix
Description: TMDb-driven movie theme with hero slider, curated sections, full Discover page with infinite scroll, and rich detail pages.
Version: 1.6.0
Author: FilmyFlix
License: GPLv2 or later
Text Domain: filmyflix
*/
:root{--bg:#0a0a0a;--panel:#0f0f0f;--panel-soft:#111111;--border:#232323;--text:#e5e7eb;--muted:#9ca3af;--primary:#10b981;--primary-700:#059669;--warn:#f59e0b;--danger:#ef4444}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji;line-height:1.5}
a{color:inherit;text-decoration:none}
a.link{color:#a7f3d0}a.link:hover{text-decoration:underline}
img{max-width:100%;display:block}
.container{max-width:1100px;margin:0 auto;padding:24px 16px}
.border{border:1px solid var(--border)}
.rounded{border-radius:12px}.rounded-md{border-radius:8px}.rounded-lg{border-radius:14px}
.small{font-size:12px;color:var(--muted)}.text-muted{color:var(--muted)}
.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:rgba(16,185,129,.12);border:1px solid rgba(16,185,129,.35);color:#d1fae5;font-size:12px}
.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}
.p-2{padding:8px}.p-3{padding:12px}.p-4{padding:16px}.p-6{padding:24px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--border);color:#e5e7eb;background:transparent;border-radius:8px;cursor:pointer}
.btn:hover{background:#1a1a1a}
.btn-primary{background:var(--primary);color:#06231b;border-color:rgba(16,185,129,.7)}
.btn-outline{background:transparent;border-color:var(--border);color:#e5e7eb}.btn-outline:hover{background:#1a1a1a}
.btn[disabled]{opacity:.6;cursor:not-allowed}
.input{width:100%;background:#0c0c0c;border:1px solid var(--border);color:#e5e7eb;border-radius:8px;padding:10px 12px;outline:none}
.input:focus{border-color:#14532d;box-shadow:0 0 0 3px rgba(16,185,129,.15)}
.select{width:100%;background:#0c0c0c;border:1px solid var(--border);color:#e5e7eb;border-radius:8px;padding:10px 12px;outline:none}
.row{display:flex;align-items:center;gap:8px}.right{margin-left:auto}
header.site{position:sticky;top:0;z-index:40;background:rgba(10,10,10,.80);backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;gap:12px;padding:12px 16px;max-width:1100px;margin:0 auto}
.brand{display:flex;align-items:center;gap:8px;font-weight:600;font-size:18px}.brand-icon{width:20px;height:20px;display:inline-block;border-radius:4px;background:var(--primary)}
.nav{display:flex;gap:6px;margin-left:12px}.nav a{padding:6px 10px;border-radius:6px}.nav a:hover{background:#1a1a1a}
@media(max-width:639px){.nav{display:none}}
.hero{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:14px}
.hero-viewport{overflow:hidden}.hero-track{display:flex;will-change:transform;transition:transform .6s ease}
.hero-slide{min-width:100%;height:42vh;position:relative}@media(min-width:640px){.hero-slide{height:56vh}}
.hero-img{width:100%;height:100%;object-fit:cover}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(10,10,10,.95) 0%,rgba(10,10,10,.25) 55%,rgba(10,10,10,0) 100%)}
.hero-content{position:absolute;left:0;right:0;bottom:0;padding:14px}@media(min-width:640px){.hero-content{padding:24px}}
.hero-title{font-size:20px;font-weight:700;text-shadow:0 2px 12px rgba(0,0,0,.85)}@media(min-width:640px){.hero-title{font-size:30px}}
.hero-desc{margin-top:8px;color:#cbd5e1;font-size:14px;max-width:800px;text-shadow:0 2px 12px rgba(0,0,0,.85)}
.hero-rating{margin-top:12px;display:flex;align-items:center;color:#facc15}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-title{font-weight:600;font-size:18px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(min-width:640px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:768px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1280px){.grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}}
.card{background:var(--panel);border:1px solid var(--border);border-radius:12px;overflow:hidden;transition:border-color .2s ease,transform .15s ease}
.card:hover{border-color:rgba(16,185,129,.5);transform:translateY(-2px)}
.poster{aspect-ratio:2/3;width:100%;object-fit:cover;background:#1b1b1b}
.card-body{padding:12px}.card-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.card-title{font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-rating{display:flex;align-items:center;color:#facc15;font-size:12px}
.star{display:inline-block;width:14px;height:14px;margin-right:4px;background:conic-gradient(#facc15,#eab308);-webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22currentColor%22><path d=%22M12 .587l3.668 7.431 8.207 1.192-5.938 5.789 1.402 8.167L12 18.896l-7.339 3.87 1.402-8.167L.125 9.21l8.207-1.192z%22/></svg>') center/contain no-repeat;mask:url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22currentColor%22><path d=%22M12 .587l3.668 7.431 8.207 1.192-5.938 5.789 1.402 8.167L12 18.896l-7.339 3.87 1.402-8.167L.125 9.21l8.207-1.192z%22/></svg>') center/contain no-repeat}
.card-meta{margin-top:6px;display:flex;align-items:center;justify-content:space-between;color:#9ca3af;font-size:12px}
.movie-hero{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:14px;height:42vh}@media(min-width:640px){.movie-hero{height:56vh}}
.movie-hero img{width:100%;height:100%;object-fit:cover}.movie-hero .overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(10,10,10,.95) 0%,rgba(10,10,10,.25) 55%,rgba(10,10,10,0) 100%)}
.movie-header{display:flex;gap:12px;align-items:flex-start;margin-top:16px}
.movie-title{font-weight:700;font-size:22px}@media(min-width:640px){.movie-title{font-size:32px}}
.movie-meta{margin-top:6px;color:#cbd5e1;display:flex;flex-wrap:wrap;gap:8px;font-size:13px}
.chips{display:flex;gap:6px;flex-wrap:nowrap;overflow:auto;white-space:nowrap}.chip{background:#121212;border:1px solid var(--border);color:#d1fae5;font-size:12px;padding:4px 8px;border-radius:999px;display:inline-flex;align-items:center;gap:6px}
.section{margin-top:16px}
.providers{display:flex;flex-wrap:wrap;gap:8px}.provider{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid var(--border);background:#0f0f0f;border-radius:999px;font-size:12px}.provider img{width:20px;height:20px;object-fit:cover;border-radius:4px;background:#1b1b1b}
.footer{border-top:1px solid var(--border);color:#9ca3af;padding:24px 16px}
.banner{display:flex;align-items:center;gap:12px;border:1px solid var(--border);background:#131313;border-radius:10px;padding:12px}
.banner.ok{background:rgba(16,185,129,.1);border-color:rgba(16,185,129,.4);color:#bbf7d0}.banner.fail{background:rgba(244,63,94,.08);border-color:rgba(244,63,94,.35);color:#fecdd3}
.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media(min-width:640px){.filters{grid-template-columns:repeat(5,minmax(0,1fr))}}
.cast-card{width:130px;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#0f0f0f}
.cast-img{aspect-ratio:2/3;width:100%;object-fit:cover;background:#1b1b1b}
.cast-info{padding:8px}.cast-name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cast-char{font-size:12px;color:#9ca3af;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.only-sm{display:none}
@media(max-width:639px){.only-sm{display:block}}
