/*
Theme Name: Filmoholicari
Description: Klasični tamni izgled (poster mreža, zvjezdice, HD oznake) za filmoholicari.com. Radi sa MAS Videos pluginom.
Version: 1.0.0
Author: Filmoholicari
Text Domain: filmoholicari
*/

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#0d0d0d;color:#c9c9c9;font:14px/1.45 "Helvetica Neue",Helvetica,Arial,sans-serif}
a{color:#e6e6e6;text-decoration:none}
a:hover{color:#fff}
img{max-width:100%;height:auto;display:block}
.fh-wrap{max-width:1440px;margin:0 auto;padding:0 16px}

/* ---------- HEADER ---------- */
.fh-top{background:linear-gradient(#262626,#141414 60%,#0b0b0b);border-bottom:1px solid #000;box-shadow:0 1px 0 #2c2c2c inset}
.fh-top .fh-wrap{display:flex;align-items:center;gap:28px;height:60px}
.fh-logo{font-weight:700;font-style:italic;font-size:27px;letter-spacing:-.6px;color:#fff;text-shadow:0 1px 0 #000,0 0 12px rgba(255,255,255,.08);white-space:nowrap}
.fh-logo:hover{color:#fff}
.fh-lg-a{color:#b97ff0;padding-right:1px}
.fh-lg-b{color:#fff}
.fh-logo:hover .fh-lg-a{color:#cf9fff}
.fh-wm .fh-lg-a{color:rgba(196,140,250,.75)}
.fh-wm .fh-lg-b{color:rgba(255,255,255,.6)}
.fh-lg-a.fh-lg-serijo{color:#4fcf6f}
.fh-logo:hover .fh-lg-a.fh-lg-serijo{color:#74e38f}
.fh-wm .fh-lg-a.fh-lg-serijo{color:rgba(100,215,130,.8)}
.fh-nav{display:flex;gap:0;overflow-x:auto;scrollbar-width:none;border-radius:4px;box-shadow:0 0 0 1px #000,0 1px 0 #333}
.fh-nav::-webkit-scrollbar{display:none}
.fh-nav a{display:flex;align-items:center;gap:6px;white-space:nowrap;padding:8px 14px;font-size:13px;color:#cfcfcf;background:linear-gradient(#3b3b3b,#262626);border-right:1px solid #111;box-shadow:0 1px 0 rgba(255,255,255,.08) inset}
.fh-nav a:first-child{border-radius:4px 0 0 4px}
.fh-nav a:last-child{border-radius:0 4px 4px 0;border-right:0}
.fh-nav a:hover{background:linear-gradient(#454545,#2c2c2c);color:#fff}
.fh-nav a.is-active{background:linear-gradient(#141414,#1d1d1d);color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.7) inset}
.fh-hd{display:inline-block;font:700 10px/1 Arial,sans-serif;color:#fff;background:#4a4a4a;border:1px solid #6a6a6a;border-radius:2px;padding:2px 3px;letter-spacing:.3px}
.fh-nav a.is-active .fh-hd{background:#333;border-color:#555}

.fh-bar{background:#181818;border-bottom:3px solid #45205c;box-shadow:0 1px 0 #0a0a0a}
.fh-bar .fh-wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:62px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}
.fh-search{display:flex;align-items:center;background:#2a2a2a;border:1px solid #3b3b3b;border-radius:22px;padding:3px;box-shadow:0 2px 3px rgba(0,0,0,.6) inset;width:min(420px,100%)}
.fh-search input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:#eee;font-size:14px;padding:8px 14px}
.fh-search input::placeholder{color:#8a8a8a}
.fh-search button{border:0;cursor:pointer;color:#fff;font-size:13px;padding:8px 18px;border-radius:18px;background:linear-gradient(#5e5e5e,#3a3a3a);box-shadow:0 1px 0 rgba(255,255,255,.15) inset,0 1px 2px #000}
.fh-search button:hover{background:linear-gradient(#6c6c6c,#444)}
.fh-genres{background:#2a2a2a;color:#ddd;border:1px solid #3b3b3b;border-radius:4px;padding:8px 10px;font-size:13px;max-width:100%}

/* ---------- LISTING ---------- */
.fh-main{padding:26px 0 40px}
.fh-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 18px}
.fh-head h1,.fh-head h2{margin:0;font-size:20px;font-weight:700;color:#fff}
.fh-head h1 small,.fh-head h2 small{color:#777;font-weight:400;font-size:13px;margin-left:6px}
.fh-sort{display:flex;gap:6px;flex-wrap:wrap}
.fh-sort a{font-size:12px;padding:5px 10px;border:1px solid #333;border-radius:3px;background:#1a1a1a;color:#aaa}
.fh-sort a.is-active,.fh-sort a:hover{background:#2e2e2e;color:#fff;border-color:#4a4a4a}
.fh-chips{display:flex;gap:6px;flex-wrap:wrap;margin:-6px 0 20px}
.fh-chips a{font-size:12px;padding:4px 10px;border-radius:12px;background:#1b1b1b;border:1px solid #2c2c2c;color:#aaa}
.fh-chips a:hover,.fh-chips a.is-active{color:#fff;border-color:#45205c;background:#241530}

.fh-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:26px 18px}
.fh-card{display:block;color:#bdbdbd}
.fh-card-top{display:flex;align-items:center;justify-content:space-between;height:18px;margin-bottom:5px}
.fh-poster{position:relative;aspect-ratio:2/3;background:#1c1c1c;overflow:hidden;box-shadow:0 2px 6px rgba(0,0,0,.8);border:1px solid #1f1f1f}
.fh-poster img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease,filter .25s ease}
.fh-card:hover .fh-poster img{transform:scale(1.04);filter:brightness(1.12)}
.fh-card:hover .fh-poster{border-color:#555}
.fh-tag{position:absolute;left:0;bottom:0;background:rgba(0,0,0,.78);color:#fff;font-size:10px;font-weight:700;padding:3px 6px;letter-spacing:.3px}
.fh-card-title{margin-top:7px;font-size:12.5px;line-height:1.3;color:#c4c4c4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fh-card-title .fh-year{color:#767676}
.fh-card:hover .fh-card-title{color:#fff}

.fh-stars{position:relative;display:inline-block;font-size:13px;line-height:1;letter-spacing:1px;color:#3e3e3e;white-space:nowrap}
.fh-stars::before{content:"★★★★★"}
.fh-stars span{position:absolute;left:0;top:0;overflow:hidden;color:#f2b01e;white-space:nowrap}
.fh-stars span::before{content:"★★★★★"}

.fh-empty{padding:60px 0;text-align:center;color:#888}

.fh-pages{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:36px 0 0}
.fh-pages a,.fh-pages span{min-width:36px;text-align:center;padding:7px 11px;font-size:13px;border:1px solid #2e2e2e;border-radius:3px;background:linear-gradient(#2a2a2a,#1b1b1b);color:#bbb}
.fh-pages a:hover{color:#fff;border-color:#4a4a4a}
.fh-pages .current{background:#45205c;border-color:#5b2a7a;color:#fff}
.fh-pages .dots{background:none;border-color:transparent}
.fh-pages.is-hidden{display:none}
.fh-more{display:flex;justify-content:center;align-items:center;min-height:44px;margin:30px 0 0}
.fh-more .fh-btn{display:none;padding:10px 26px;font-size:13px}
.fh-more.is-manual .fh-btn{display:inline-block}
.fh-spin{display:none;width:28px;height:28px;border:3px solid #2e2e2e;border-top-color:#8e44c9;border-radius:50%;animation:fh-spin .8s linear infinite}
.fh-more.is-loading .fh-spin{display:block}
@keyframes fh-spin{to{transform:rotate(360deg)}}

/* ---------- SINGLE ---------- */
.fh-hero{position:relative;overflow:hidden;border-bottom:1px solid #000}
.fh-hero-bg{position:absolute;inset:-40px;background-size:cover;background-position:center 20%;filter:blur(22px) brightness(.45) saturate(1.1);transform:scale(1.1)}
.fh-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.25),rgba(13,13,13,.92) 92%,#0d0d0d)}
.fh-hero .fh-wrap{position:relative;z-index:1;padding-top:30px;padding-bottom:30px}
.fh-hero.has-bd .fh-hero-bg{inset:0;filter:brightness(.95) saturate(1.1);transform:none;background-position:center top}
.fh-hero.has-bd::after{background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0) 60%,rgba(13,13,13,.7) 88%,#0d0d0d)}
.fh-hero.has-bd .fh-wrap{padding-top:44px;padding-bottom:44px}
.fh-single{display:grid;grid-template-columns:300px minmax(0,1fr);gap:0;background:rgba(18,18,18,.9);box-shadow:0 10px 30px rgba(0,0,0,.7);border:1px solid #222}
.fh-single-poster{background:#111;align-self:start}
.fh-single-poster img{width:100%;aspect-ratio:2/3;object-fit:cover}
.fh-single-main{padding:18px 22px 22px;min-width:0}
.fh-title{margin:0 0 8px;font-size:26px;line-height:1.2;font-weight:700;color:#fff}
.fh-title .fh-year{color:#8a8a8a;font-weight:400;font-size:20px;margin-left:6px}
.fh-title .fh-hd{vertical-align:6px;margin-left:6px}
.fh-epbadge{display:inline-block;margin-left:8px;font-size:13px;font-weight:700;color:#fff;background:#45205c;border-radius:3px;padding:3px 7px;vertical-align:5px}
.fh-rateline{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 14px;font-size:13px;color:#9a9a9a}
.fh-rateline .fh-stars{font-size:18px}
.fh-share{display:flex;gap:5px;margin-left:auto}
.fh-share a{font:700 11px/1 Arial,sans-serif;color:#fff;background:#4267b2;border:1px solid #35589c;border-radius:3px;padding:5px 8px}
.fh-share a:hover{background:#365899;color:#fff}

.fh-player{position:relative;background:#000;aspect-ratio:16/9;border:1px solid #000;box-shadow:0 0 0 1px #2a2a2a}
.fh-player-in{position:absolute;inset:0}
.fh-player-in iframe,.fh-player-in video,.fh-player-in embed,.fh-player-in object{position:absolute;inset:0;width:100%!important;height:100%!important;border:0}
.fh-player-in > *:not(iframe):not(video){max-width:100%}
.fh-wm{position:absolute;top:10px;right:14px;z-index:3;pointer-events:none;font-weight:700;font-style:italic;font-size:22px;color:rgba(255,255,255,.55);text-shadow:0 1px 3px #000}
.fh-noplayer{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#777;text-align:center;padding:20px}

.fh-servers{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.fh-servers button,.fh-btn{cursor:pointer;font-size:12px;padding:7px 12px;border:1px solid #333;border-radius:3px;color:#ccc;background:linear-gradient(#303030,#1d1d1d)}
.fh-servers button:hover,.fh-btn:hover{color:#fff;border-color:#555}
.fh-servers button.is-active{background:#45205c;border-color:#5b2a7a;color:#fff}
.fh-epnav{display:flex;justify-content:space-between;gap:8px;margin-top:12px}
.fh-epnav .fh-btn{display:inline-block}
.fh-epnav .fh-btn.is-disabled{opacity:.35;pointer-events:none}

.fh-info{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:26px;padding:26px 0 6px}
.fh-desc{color:#b8b8b8;font-size:14px;line-height:1.65}
.fh-desc p{margin:0 0 10px}
.fh-meta{background:#151515;border:1px solid #232323;padding:14px 16px;font-size:13px}
.fh-meta div{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid #222}
.fh-meta div:last-child{border-bottom:0}
.fh-meta b{color:#888;font-weight:400}
.fh-meta span{color:#ddd;text-align:right}
.fh-meta a{color:#d7b6ef}

.fh-section{padding:24px 0 0}
.fh-section h2{font-size:18px;color:#fff;margin:0 0 16px}

/* seasons */
.fh-seasons{margin-top:4px}
.fh-season-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.fh-season-tabs button{cursor:pointer;font-size:12.5px;padding:7px 12px;border:1px solid #333;border-radius:3px;color:#bbb;background:linear-gradient(#2c2c2c,#1b1b1b)}
.fh-season-tabs button.is-active{background:#45205c;border-color:#5b2a7a;color:#fff}
.fh-season-panel{display:none}
.fh-season-panel.is-active{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.fh-ep{display:flex;gap:8px;align-items:center;background:#181818;border:1px solid #262626;border-radius:3px;padding:8px 10px;font-size:12.5px;color:#bbb;min-width:0}
.fh-ep b{flex:none;color:#fff;background:#2b2b2b;border-radius:2px;padding:3px 5px;font-size:11px}
.fh-ep span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fh-ep:hover{border-color:#5b2a7a;color:#fff}
.fh-ep.is-current{background:#2a1838;border-color:#5b2a7a;color:#fff}

/* page */
.fh-page{max-width:900px}
.fh-page h1{color:#fff;font-size:24px;margin:0 0 16px}
.fh-page .fh-content{color:#bbb;line-height:1.7}
.fh-page .fh-content a{color:#d7b6ef}

/* ---------- FOOTER ---------- */
.fh-foot{background:#090909;border-top:1px solid #1d1d1d;margin-top:30px}
.fh-foot .fh-wrap{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding-top:22px;padding-bottom:22px;font-size:12.5px;color:#6f6f6f}
.fh-foot .fh-logo{font-size:20px}
.fh-foot nav{display:flex;gap:16px;flex-wrap:wrap}
.fh-foot nav a{color:#8a8a8a}
.fh-foot nav a:hover{color:#fff}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1439px){.fh-grid{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media (max-width:1200px){.fh-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media (max-width:1020px){
  .fh-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .fh-single{grid-template-columns:230px minmax(0,1fr)}
  .fh-info{grid-template-columns:1fr}
}
@media (max-width:820px){
  .fh-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 14px}
  .fh-top .fh-wrap{height:auto;flex-wrap:wrap;gap:8px;padding-top:10px;padding-bottom:10px}
  .fh-nav{width:100%}
  .fh-single{grid-template-columns:1fr}
  .fh-single-poster{display:none}
  .fh-share{margin-left:0}
}
@media (max-width:620px){
  .fh-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px}
  .fh-title{font-size:21px}
  .fh-single-main{padding:14px}
  .fh-hero .fh-wrap{padding-left:0;padding-right:0;padding-top:0}
  .fh-wm{font-size:15px}
  .fh-search{width:100%}
  .fh-genres{width:100%}
}
@media (max-width:400px){.fh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Slični: samo puni redovi (8 / 7 / 6 / 5 / 8 / 6 / 6) */
@media (max-width:1439px){.fh-grid-rel>:nth-child(n+8){display:none}}
@media (max-width:1200px){.fh-grid-rel>:nth-child(n+7){display:none}}
@media (max-width:1020px){.fh-grid-rel>:nth-child(n+6){display:none}}
@media (max-width:820px){.fh-grid-rel>:nth-child(n+6){display:block}}
@media (max-width:620px){.fh-grid-rel>:nth-child(n+7){display:none}}
/* Pozadina na mobitelu/tabletu: iza naslova i plejera (kao na računaru) */
@media (max-width:820px){
  .fh-hero.has-bd .fh-hero-bg{background-size:cover;background-position:center top;filter:brightness(.85) saturate(1.1)}
  .fh-hero.has-bd::after{background:linear-gradient(rgba(13,13,13,.35),rgba(13,13,13,.55) 45%,rgba(13,13,13,.85) 80%,#0d0d0d)}
  .fh-hero.has-bd .fh-single{background:rgba(14,14,14,.35);box-shadow:none;border-color:rgba(255,255,255,.06)}
  .fh-hero.has-bd .fh-title,.fh-hero.has-bd .fh-rateline{text-shadow:0 1px 3px rgba(0,0,0,.9)}
}
@media (max-width:620px){
  .fh-hero.has-bd .fh-wrap{padding-top:0;padding-bottom:0}
  .fh-hero.has-bd .fh-single{border:0}
}
/* Nalog i zakljucani domaci filmovi */
.fh-acc{margin-left:auto;display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:13px}
.fh-acc a{color:#cfcfcf;padding:7px 12px;border:1px solid #333;border-radius:4px;background:linear-gradient(#303030,#1d1d1d)}
.fh-acc a:hover{color:#fff;border-color:#555}
.fh-acc a.fh-acc-reg{background:linear-gradient(#7b3aa3,#45205c);border-color:#2d1440;color:#fff}
.fh-acc a.fh-acc-reg:hover{background:linear-gradient(#8a45b5,#52276e)}
.fh-acc-name{display:flex;align-items:center;gap:6px;color:#b97ff0;max-width:190px;overflow:hidden}
.fh-acc-name span{overflow:hidden;text-overflow:ellipsis;color:#ddd}
.fh-player.fh-locked{display:flex;background:radial-gradient(ellipse at 50% 0,rgba(110,50,150,.45),rgba(0,0,0,.94) 70%),#050505}
.fh-player.fh-locked .fh-player-in{position:relative;inset:auto;flex:1;display:flex;align-items:center;justify-content:center}
.fh-lock{width:100%;display:flex;justify-content:center;padding:24px 16px}
.fh-lock-in{width:100%;max-width:380px;text-align:center}
.fh-lock-ico{width:46px;height:46px;margin:0 auto 10px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(#7b3aa3,#45205c);box-shadow:0 0 0 4px rgba(185,127,240,.15)}
.fh-lock h3{margin:0 0 6px;font-size:19px;line-height:1.3;color:#fff}
.fh-lock-txt{margin:0 0 14px;color:#aaa;font-size:13px;line-height:1.5}
.fh-lock-err{margin:0 0 12px;padding:9px 12px;border-radius:4px;background:rgba(200,40,60,.15);border:1px solid rgba(220,60,80,.5);color:#ffb3bd;font-size:13px;text-align:left}
.fh-lock-tabs{display:flex;margin-bottom:12px;border:1px solid #333;border-radius:4px;overflow:hidden}
.fh-lock-tabs button{flex:1;cursor:pointer;padding:9px;font-size:13px;color:#aaa;background:#1b1b1b;border:0}
.fh-lock-tabs button+button{border-left:1px solid #333}
.fh-lock-tabs button.is-active{background:#45205c;color:#fff}
.fh-auth-form{display:flex;flex-direction:column;gap:9px}
.fh-auth-form[hidden]{display:none}
.fh-auth-form input{width:100%;background:#1c1c1c;border:1px solid #3b3b3b;border-radius:4px;color:#eee;font-size:14px;padding:11px 12px;outline:0}
.fh-auth-form input:focus{border-color:#7b3aa3;box-shadow:0 0 0 2px rgba(123,58,163,.3)}
.fh-lock-btn{cursor:pointer;padding:12px;border-radius:4px;border:1px solid #2d1440;color:#fff;font-weight:700;font-size:14px;background:linear-gradient(#7b3aa3,#45205c)}
.fh-lock-btn:hover{background:linear-gradient(#8a45b5,#52276e)}
.fh-lock-btn:disabled{opacity:.6;cursor:wait}
.fh-lock-note{color:#777;font-size:12px}
.fh-lock-note a{color:#b97ff0}
.fh-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.fh-acc-page{max-width:460px;margin:40px auto;background:rgba(18,18,18,.95);border:1px solid #222;box-shadow:0 10px 30px rgba(0,0,0,.7)}
.fh-okmsg{margin:0 0 10px;padding:10px 14px;border-radius:4px;background:rgba(60,170,90,.15);border:1px solid rgba(79,207,111,.45);color:#bff0cb;font-size:13px}
@media (max-width:820px){.fh-acc{order:2}.fh-nav{order:3}}
@media (max-width:620px){.fh-acc a{padding:6px 10px}.fh-acc-name{max-width:110px}.fh-acc-page{margin:20px auto}}
/* Zakljucani domaci posteri + prozor za registraciju */
.fh-lockbadge{position:absolute;top:6px;right:6px;z-index:2;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(#7b3aa3,#45205c);box-shadow:0 2px 6px rgba(0,0,0,.75),0 0 0 2px rgba(255,255,255,.18)}
.fh-lockbadge svg{width:16px;height:16px}
.fh-card-locked .fh-poster::after{content:"Registruj se za gledanje";position:absolute;left:0;right:0;bottom:0;padding:22px 6px 9px;font-size:11px;font-weight:700;text-align:center;color:#fff;background:linear-gradient(transparent,rgba(40,10,60,.94));opacity:0;transition:opacity .15s}
.fh-card-locked:hover .fh-poster::after{opacity:1}
.fh-noscroll{overflow:hidden}
.fh-modal{position:fixed;inset:0;z-index:9999;display:flex;padding:16px;background:rgba(0,0,0,.8);overflow-y:auto}
.fh-modal-box{position:relative;width:100%;max-width:440px;margin:auto;background:radial-gradient(ellipse at 50% 0,rgba(110,50,150,.45),rgba(12,12,12,.98) 70%),#0c0c0c;border:1px solid #2c2c2c;border-radius:6px;box-shadow:0 20px 60px rgba(0,0,0,.85)}
.fh-modal-x{position:absolute;top:6px;right:8px;z-index:1;width:34px;height:34px;border:0;background:transparent;color:#aaa;font-size:28px;line-height:1;cursor:pointer}
.fh-modal-x:hover{color:#fff}
.fh-modal-film{margin:0 0 6px;color:#cf9fff;font-size:13px;font-weight:700}
@media (max-width:620px){.fh-lockbadge{width:24px;height:24px;top:4px;right:4px}.fh-lockbadge svg{width:13px;height:13px}}
@media (max-width:620px){.fh-nav a{flex:1 0 auto;justify-content:center;padding:9px 8px;font-size:13px}.fh-nav a .fh-hd{display:none}}
