/*
Theme Name: HausaFlix Live
Theme URI: https://hausaflix.com/
Author: HausaFlix
Description: App-style HausaFlix streaming theme connected to the existing Supabase catalogue, authentication, watchlist, subscriptions and comments.
Version: 2.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hausaflix-live
*/
:root{--bg:#030705;--panel:#0d1510;--panel2:#121c15;--green:#12f34e;--green2:#22c55e;--text:#f5f7f5;--muted:#aab5ad;--line:#20372a;--gold:#f8c84d}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}.hf-shell{width:min(1440px,calc(100% - 48px));margin:auto}.hf-top{position:sticky;top:0;z-index:40;background:rgba(3,7,5,.95);backdrop-filter:blur(16px);border-bottom:1px solid #102018}.hf-head{height:84px;display:grid;grid-template-columns:auto minmax(180px,1fr) auto;gap:26px;align-items:center}.hf-brand{display:flex;align-items:center;gap:12px;font-size:clamp(20px,2.1vw,30px);font-weight:950;letter-spacing:-1px;white-space:nowrap}.hf-brand b{color:var(--green)}.hf-logo{width:48px;height:48px;border:1px solid #13f34e;border-radius:12px;background:linear-gradient(135deg,#0b2513,#020604);display:grid;place-items:center;color:var(--green);font-size:22px;box-shadow:0 0 18px #12f34e24}.hf-searchbox{display:flex;align-items:center;gap:12px;background:#101914;border:1px solid #1b2b20;border-radius:999px;padding:0 18px;height:52px;min-width:0}.hf-searchbox svg{flex-shrink:0;color:#d8e0da}.hf-searchbox input{width:100%;border:0;outline:0;background:transparent;color:white;font-size:15px;min-width:0}.hf-head-actions{display:flex;align-items:center;gap:18px}.hf-iconbtn{width:48px;height:48px;border:1px solid transparent;border-radius:50%;background:transparent;color:white;display:grid;place-items:center}.hf-iconbtn.profile{border:2px solid var(--green)}.hf-iconbtn:hover{background:#102118}.hf-tabs{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;padding:8px 0 18px}.hf-tabs::-webkit-scrollbar,.hf-row::-webkit-scrollbar{display:none}.hf-tab{flex:0 0 auto;min-width:118px;border:1px solid #194a2b;background:#0a120d;color:#f3f7f4;padding:11px 22px;border-radius:999px;font-weight:750}.hf-tab.active,.hf-tab:hover{background:var(--green);border-color:var(--green);color:#001506}.hf-hero{position:relative;min-height:360px;aspect-ratio:2.7/1;max-height:510px;overflow:hidden;border-radius:25px;border:1px solid #1a2b20;background:#0a130d;margin:0 0 12px}.hf-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.9}.hf-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#020604f2 0%,#020604c7 35%,#02060422 72%),linear-gradient(0deg,#020604c4,transparent 55%)}.hf-hero-copy{position:absolute;z-index:1;left:4.5%;bottom:9%;width:min(49%,580px)}.hf-kicker{color:var(--green);font-size:13px;font-weight:900;letter-spacing:2px;text-transform:uppercase}.hf-hero h1{font-size:clamp(28px,3.4vw,52px);line-height:1.02;margin:10px 0 12px;letter-spacing:-1.6px;text-transform:uppercase}.hf-hero p{color:#e0e5e0;max-width:510px;margin:0 0 18px;font-size:clamp(13px,1.3vw,17px)}.hf-primary,.hf-secondary{border:0;border-radius:999px;padding:13px 23px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;gap:10px}.hf-primary{background:var(--green);color:#001506}.hf-secondary{background:#18231b;color:white;border:1px solid #35463a}.hf-primary:hover{background:#39ff6b}.hf-dots{display:flex;justify-content:center;gap:12px;padding:3px 0 20px}.hf-dot{width:12px;height:12px;border-radius:50%;background:#7d8981;border:0;padding:0}.hf-dot.active{background:var(--green)}.hf-section{margin:8px 0 30px}.hf-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:13px}.hf-section-head h2{font-size:clamp(21px,2.2vw,30px);letter-spacing:-.6px;margin:0}.hf-more{color:var(--green);font-weight:800;font-size:14px;white-space:nowrap}.hf-row{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(132px,14.5vw,205px);gap:17px;overflow-x:auto;padding:0 1px 12px;scrollbar-width:thin;scrollbar-color:#254531 transparent}.hf-card{min-width:0;cursor:pointer}.hf-poster{aspect-ratio:2/3;position:relative;border-radius:11px;overflow:hidden;background:linear-gradient(145deg,#15251a,#070b08);border:1px solid #17281d}.hf-poster img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}.hf-card:hover .hf-poster img{transform:scale(1.045)}.hf-poster-fallback{height:100%;display:grid;place-items:center;color:#3b8b51;font-size:40px}.hf-quality{position:absolute;right:7px;bottom:7px;background:var(--green);color:#001506;font-size:10px;font-weight:950;border-radius:4px;padding:3px 5px}.hf-premium{position:absolute;left:7px;top:7px;background:var(--gold);color:#191200;font-size:9px;font-weight:950;border-radius:4px;padding:4px 5px}.hf-card h3{font-size:13px;margin:8px 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:800}.hf-card p{font-size:12px;color:var(--muted);margin:0}.hf-empty{width:100%;padding:30px;border:1px dashed #274532;border-radius:14px;color:var(--muted);text-align:center}.hf-bottom{position:sticky;bottom:0;z-index:35;margin:24px auto 12px;width:min(1440px,calc(100% - 48px));background:rgba(8,15,10,.97);border:1px solid #23392a;border-radius:22px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:9px 8px;backdrop-filter:blur(16px)}.hf-navitem{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;background:transparent;color:#aeb8b0;font-size:12px;font-weight:700;padding:7px 3px;border-radius:14px}.hf-navitem svg{width:25px;height:25px}.hf-navitem.active{color:var(--green);background:#0e2c18}.hf-navitem:hover{color:var(--green)}.hf-footer{padding:15px 0 25px;color:#829087;font-size:12px;text-align:center}.hf-modal{display:none;position:fixed;inset:0;z-index:100;background:#000d;align-items:center;justify-content:center;padding:16px}.hf-modal.open{display:flex}.hf-modal-box{position:relative;width:min(850px,100%);max-height:90vh;overflow:auto;background:#08110b;border:1px solid #294331;border-radius:20px;padding:24px;box-shadow:0 30px 100px #0009}.hf-close{position:absolute;right:14px;top:14px;border:1px solid #304637;background:#18241b;color:white;border-radius:999px;padding:8px 12px}.hf-modal-box h2{margin:0 45px 12px 0}.hf-muted{color:var(--muted)}.hf-form{display:grid;gap:13px}.hf-form label{display:grid;gap:6px;font-size:13px;color:#c5d1c8}.hf-form input,.hf-form textarea,.hf-form select{width:100%;background:#050a07;border:1px solid #2a4131;border-radius:10px;color:white;padding:12px;outline:none}.hf-form textarea{min-height:90px;resize:vertical}.hf-message{display:none;margin:12px 0;padding:12px;border-radius:10px;background:#14291a;border:1px solid #285337;color:#d5fbe0;overflow-wrap:anywhere}.hf-message.show{display:block}.hf-video{display:block;width:100%;max-height:65vh;background:#000;border-radius:13px;margin-top:12px}.hf-details-grid{display:grid;grid-template-columns:170px 1fr;gap:20px}.hf-details-poster{width:100%;border-radius:12px}.hf-actions{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0}.hf-plan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.hf-plan{border:1px solid #263d2d;background:#0e1911;border-radius:14px;padding:16px}.hf-plan strong{font-size:24px;display:block;margin:7px 0}.hf-plan .hf-primary{width:100%;padding:10px 8px;font-size:13px}.hf-comment{padding:12px 0;border-bottom:1px solid #203329}.hf-comment b{font-size:13px}.hf-comment p{margin:5px 0 0;color:#d0d8d1;overflow-wrap:anywhere}.hf-user-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #203329}.hf-avatar{width:52px;height:52px;border:1px solid var(--green);border-radius:50%;display:grid;place-items:center;color:var(--green);font-size:20px}.hf-status-pill{display:inline-block;padding:5px 8px;border-radius:6px;background:#173b22;color:#7fff9b;font-size:11px;font-weight:900}.hf-hidden{display:none!important}.hf-loading{color:var(--muted);padding:30px;text-align:center}
@media(max-width:900px){.hf-shell{width:calc(100% - 28px)}.hf-head{height:70px;gap:14px;grid-template-columns:auto minmax(120px,1fr) auto}.hf-logo{width:40px;height:40px}.hf-brand{gap:8px}.hf-head-actions{gap:6px}.hf-hero{aspect-ratio:2/1;min-height:300px}.hf-hero-copy{width:56%}.hf-row{grid-auto-columns:clamp(130px,23vw,190px)}.hf-bottom{width:calc(100% - 20px);margin-bottom:8px}.hf-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.hf-shell{width:calc(100% - 24px)}.hf-head{height:auto;min-height:70px;grid-template-columns:1fr auto;gap:8px;padding:10px 0}.hf-brand{font-size:20px}.hf-logo{width:38px;height:38px;font-size:18px}.hf-head .hf-searchbox{grid-column:1/-1;grid-row:2;height:48px}.hf-head-actions{grid-column:2;grid-row:1}.hf-iconbtn{width:38px;height:38px}.hf-tabs{gap:9px;padding:9px 0 14px}.hf-tab{min-width:96px;padding:10px 16px;font-size:13px}.hf-hero{min-height:385px;aspect-ratio:auto;border-radius:21px}.hf-hero-image{object-position:center;opacity:.86}.hf-hero:after{background:linear-gradient(0deg,#020604f5 0%,#020604b0 43%,#02060412 100%)}.hf-hero-copy{left:18px;right:18px;bottom:22px;width:auto}.hf-hero h1{font-size:31px;max-width:100%}.hf-hero p{font-size:13px;max-width:95%}.hf-primary,.hf-secondary{padding:12px 17px;font-size:14px}.hf-dots{padding:6px 0 18px}.hf-section{margin-bottom:25px}.hf-section-head h2{font-size:22px}.hf-row{grid-auto-columns:clamp(126px,39vw,170px);gap:12px}.hf-card h3{font-size:12px}.hf-bottom{border-radius:18px;padding:6px 3px;grid-template-columns:repeat(6,minmax(0,1fr))}.hf-navitem{font-size:10px;padding:7px 0;gap:3px}.hf-navitem svg{width:23px;height:23px}.hf-modal-box{padding:18px}.hf-details-grid{grid-template-columns:105px 1fr;gap:13px}.hf-plan-grid{grid-template-columns:1fr 1fr;gap:8px}.hf-plan{padding:12px}.hf-plan strong{font-size:19px}.hf-plan .hf-primary{font-size:11px}.hf-footer{padding-bottom:16px}}

/* App-matching profile dashboard */
.hf-profile-page{max-width:680px;margin:0 auto;padding:26px 18px 42px;min-height:65vh}.hf-profile-brand{display:flex;justify-content:center;align-items:center;gap:13px;margin:0 auto 14px}.hf-profile-logo{width:58px;height:58px;border:2px solid #18f64d;border-radius:15px;display:grid;place-items:center;color:#19f34c;font-weight:1000;font-size:24px;box-shadow:0 0 22px #1aff4a25}.hf-profile-brand strong{font-size:23px;letter-spacing:-.8px}.hf-profile-brand strong span{color:var(--green)}.hf-profile-brand small{display:block;text-align:center;color:#a1aaa4;font-size:8px;letter-spacing:2px}.hf-profile-page>h1{text-align:center;font-size:clamp(30px,7vw,42px);line-height:1.15;margin:8px 0}.hf-profile-intro{text-align:center;color:#9ba49d;margin:0 0 26px}.hf-profile-usercard{display:flex;align-items:center;gap:16px;padding:20px;border-radius:25px;background:#303630;border:1px solid #444d45;margin-bottom:16px}.hf-profile-initial{width:66px;height:66px;border-radius:50%;background:#103e1d;color:#22ff48;display:grid;place-items:center;font-size:27px;font-weight:900;flex-shrink:0}.hf-profile-usercard h2{font-size:20px;margin:0 0 3px}.hf-profile-usercard p{color:#c3cbc5;margin:0;font-size:14px;overflow-wrap:anywhere}.hf-profile-option{width:100%;display:flex;align-items:center;gap:15px;text-align:left;padding:19px 17px;margin:0 0 14px;border:1px solid #3b453d;border-radius:24px;background:#303630;color:#f6f8f6;min-height:102px}.hf-option-icon{width:56px;height:56px;flex:0 0 56px;display:grid;place-items:center;border-radius:17px;background:#0a140d;color:#1cff4a;font-size:30px;font-weight:900}.hf-option-copy{display:grid;gap:3px;min-width:0;flex:1}.hf-option-copy strong{font-size:18px;line-height:1.3}.hf-option-copy small{font-size:13px;line-height:1.45;color:#9ea8a0}.hf-option-arrow{font-size:32px;color:#aab4ac;line-height:1}.hf-toggle{width:75px;height:36px;border-radius:999px;background:#4a554c;display:flex;align-items:center;padding:4px;flex:0 0 auto}.hf-toggle i{width:28px;height:28px;background:#e3e8e4;border-radius:50%;display:block;transition:transform .2s}.hf-toggle.on{background:#218e38}.hf-toggle.on i{transform:translateX(38px);background:#21ff4b}.hf-profile-signedin{padding-top:4px}.hf-profile-edit{padding:18px 0}.hf-logout-button{margin:8px 0 0}.hf-light-mode{--bg:#f3f6f3;--text:#111a13;--muted:#5e6a61}.hf-light-mode .hf-top{background:rgba(245,249,245,.96);border-bottom-color:#d5e0d6}.hf-light-mode .hf-brand,.hf-light-mode .hf-iconbtn{color:#142018}.hf-light-mode .hf-searchbox{background:#e9eee9;border-color:#cbd8cd}.hf-light-mode .hf-searchbox input{color:#142018}.hf-light-mode .hf-profile-usercard,.hf-light-mode .hf-profile-option{background:#e6ebe6;border-color:#d0d9d1;color:#172019}.hf-light-mode .hf-profile-usercard p,.hf-light-mode .hf-option-copy small{color:#58655b}.hf-light-mode .hf-bottom{background:rgba(235,241,235,.97)}.hf-light-mode .hf-navitem{color:#465349}.hf-light-mode .hf-navitem.active{color:#07882a;background:#d5f5dc}.hf-light-mode .hf-modal-box{background:#f6faf6;color:#142018}.hf-light-mode .hf-form input,.hf-light-mode .hf-form textarea,.hf-light-mode .hf-form select{background:#fff;color:#142018;border-color:#bdcbbf}
@media(max-width:620px){.hf-profile-page{padding:20px 0 32px}.hf-profile-option{padding:16px 13px;gap:12px;min-height:94px}.hf-option-icon{width:52px;height:52px;flex-basis:52px}.hf-option-copy strong{font-size:16px}.hf-option-copy small{font-size:12px}.hf-profile-usercard{padding:18px}.hf-profile-initial{width:58px;height:58px}}

/* Google OAuth button */
.hf-google-button{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;min-height:54px;padding:12px 18px;margin:18px 0 12px;border:1px solid #d7ddd8;border-radius:14px;background:#fff;color:#202124;font-family:inherit;font-size:16px;font-weight:700;line-height:1.3;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.hf-google-button span{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#fff;color:#4285f4;font:bold 20px Arial,sans-serif}
.hf-google-button:hover{background:#f6f8f6}
.hf-auth-divider{display:flex;align-items:center;gap:12px;color:var(--hf-muted,#a8b3ad);font-size:13px;margin:8px 0 16px}
.hf-auth-divider:before,.hf-auth-divider:after{content:"";height:1px;flex:1;background:rgba(130,160,140,.25)}
