:root{--bg:#0b0b0d;--panel:#151517;--line:#29292c;--yellow:#ffd51b;--red:#ae1017;--muted:#aaa}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#f4f4f4;font-family:"Cairo",Tahoma,Arial,sans-serif}.top{min-height:66px;background:#080809;border-bottom:3px solid #8e090f;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:8px max(calc((100vw - 1220px)/2),24px);position:sticky;top:0;z-index:5}.brand{font-size:23px;font-weight:900;color:#fff;text-decoration:none;white-space:nowrap}.brand span,.hero h1 span{color:var(--yellow)}.brand i{display:inline-grid;place-items:center;background:var(--yellow);color:#111;font-size:15px;font-style:normal;border-radius:6px;width:34px;height:34px;margin-inline-start:7px}.top nav{display:flex;align-items:center;gap:24px;white-space:nowrap}.top nav a{color:#eee;text-decoration:none;font-size:14px;font-weight:800}.top nav a:hover,.foot-links a:hover{color:var(--yellow)}.search{display:flex;direction:ltr}.search input{width:205px;background:#171719;border:1px solid #303034;border-radius:20px 0 0 20px;padding:10px 13px;color:white;outline:none;font:inherit}.search button{border:0;background:var(--red);color:white;border-radius:0 18px 18px 0;padding:0 15px;font-size:19px;cursor:pointer}.wrap{max-width:1220px;margin:auto;padding:22px 0;min-height:75vh}.hero{border:1px solid #29292c;border-radius:17px;padding:25px 30px;background:radial-gradient(ellipse at right,#210909 0,#100b0b 45%,#0c0c0e 82%);text-align:right}.hero h1{font-size:27px;margin:0 0 10px}.hero p,.muted{color:#bcbcc0;line-height:1.9}.actions{display:flex;gap:10px}.btn{display:inline-block;padding:11px 18px;border-radius:10px;text-decoration:none;font-weight:800;color:#111;background:var(--yellow);border:1px solid var(--yellow);font-family:inherit}.btn.alt{background:transparent;color:#eee;border-color:#303034}.section{margin-top:28px}.section-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #242427;padding:0 0 12px;margin-bottom:15px}.section-head h1,.section-head h2{font-size:20px;margin:0}.all{background:#9c1116;color:white;text-decoration:none;border-radius:22px;padding:7px 15px;font-size:13px}.grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:15px}.card{background:#171719;border:1px solid #27272a;border-radius:13px;overflow:hidden;position:relative;transition:.18s;text-decoration:none;color:#f3f3f3}.card:hover{transform:translateY(-3px);border-color:#74610c}.poster{height:280px;display:grid;place-items:center;text-align:center;padding:15px;font-size:23px;font-weight:900;line-height:1.5;text-shadow:0 2px 8px #000;background:linear-gradient(145deg,#21191d,#824b42 55%,#101012);background-position:center;background-size:cover}.card:nth-child(6n+2) .poster{background-image:linear-gradient(145deg,#16212b,#9da6ad 48%,#251a1a)}.card:nth-child(6n+3) .poster{background-image:linear-gradient(145deg,#4a342b,#ba8b71 48%,#161618)}.card:nth-child(6n+4) .poster{background-image:linear-gradient(145deg,#121217,#641921 55%,#171717)}.card:nth-child(6n+5) .poster{background-image:linear-gradient(145deg,#183244,#84949c 55%,#282020)}.card:nth-child(6n) .poster{background-image:linear-gradient(145deg,#393019,#d59c3b 48%,#1b1716)}.count{position:absolute;top:8px;right:8px;background:#090909dc;color:var(--yellow);font-size:11px;border-radius:7px;padding:4px 7px}.card-title{padding:9px 11px 12px;text-align:right;font-size:14px;font-weight:800;min-height:45px}.seo-copy{padding:22px 25px;background:#111113;border:1px solid #242427;border-radius:14px;margin-top:30px;color:#bdbdc0;line-height:1.9}.seo-copy h2{color:#eee;font-size:20px}.detail-hero{display:grid;grid-template-columns:220px 1fr;gap:27px;background:linear-gradient(115deg,#111113,#241010);border:1px solid #29292c;border-radius:16px;padding:23px}.detail-poster{min-height:285px;border-radius:12px;display:grid;place-items:center;text-align:center;padding:15px;font-size:26px;font-weight:900;background:linear-gradient(145deg,#391a20,#bb8164,#191719);background-size:cover;background-position:center}.detail-copy h1{font-size:27px;margin:8px 0}.meta{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.meta span,.meta a{padding:6px 10px;border:1px solid #353538;border-radius:18px;color:#ddd;font-size:13px;text-decoration:none}.crumb{color:#999;font-size:13px;margin:12px 0 18px}.crumb a{color:var(--yellow);text-decoration:none}.season-row,.server-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:15px 0}.season-row select{background:#1b1b1d;color:#eee;border:1px solid #39393c;padding:9px;border-radius:8px;font:inherit}.episode-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.episode,.server{background:#18181a;border:1px solid #29292c;border-radius:10px;padding:12px 14px;color:#eee;text-decoration:none;display:flex;justify-content:space-between;gap:8px}.episode:hover,.server:hover{border-color:var(--yellow)}.episode small{color:#aaa}.server.active{background:var(--red)}.watch-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px}.watch-title{font-size:22px}.playerbox{background:#050506;border:1px solid #2a2a2d;border-radius:13px;aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden}.playerbox iframe,.playerbox video{width:100%;height:100%;border:0;background:#000}.player-placeholder{text-align:center;color:#ddd}.player-placeholder small{color:#999}.play{width:68px;height:68px;border:0;border-radius:50%;background:var(--yellow);font-size:25px}.side-episodes{background:#121214;border:1px solid #29292c;border-radius:12px;padding:14px}.side-episodes h2{font-size:17px}.side-episodes .episode{margin:8px 0}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.category-tile{padding:20px;background:#171719;border:1px solid #2d2d30;color:var(--yellow);border-radius:12px;text-decoration:none}.empty{text-align:center;padding:80px 10px}.empty a{color:var(--yellow)}footer{border-top:1px solid #29292c;background:#080809;margin-top:36px;padding:25px;color:#aaa;text-align:center}.foot-inner{max-width:1220px;margin:auto}.foot-inner b{color:#fff;font-size:20px}.foot-links{display:flex;gap:18px;justify-content:center;margin:15px}.foot-links a{color:#bbb;text-decoration:none}footer small{display:block;margin-top:17px}@media(max-width:950px){.top{padding:10px 18px;flex-wrap:wrap}.top nav{order:3;width:100%;overflow:auto;gap:18px;padding:7px 0}.search input{width:150px}.wrap{padding:18px}.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.poster{height:235px}.watch-layout{grid-template-columns:1fr}.side-episodes{order:2}}@media(max-width:600px){.top{gap:10px}.brand{font-size:19px}.search{width:100%;order:4}.search input{flex:1}.hero{padding:21px 17px}.hero h1{font-size:21px}.actions{flex-wrap:wrap}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.poster{height:220px;font-size:20px}.detail-hero{grid-template-columns:1fr;padding:15px}.detail-poster{min-height:250px}.episode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-grid{grid-template-columns:1fr 1fr}}

/* Homepage category buttons */
.home-category-buttons{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:10px;
 margin-top:20px;
}
.home-category-buttons a{
 display:flex;
 align-items:center;
 justify-content:center;
 min-height:43px;
 padding:9px 12px;
 background:#ffd51b;
 color:#111;
 border-radius:9px;
 text-decoration:none;
 font-size:14px;
 font-weight:800;
 text-align:center;
 transition:background .2s,transform .2s;
}
.home-category-buttons a:hover{
 background:#e8bc14;
 transform:translateY(-2px);
}
@media(max-width:600px){
 .home-category-buttons{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
 }
 .home-category-buttons a{
  font-size:12px;
  padding:9px 6px;
  min-height:40px;
 }
}

/* Homepage More dropdown */
.home-category-buttons{
 position:relative;
}
.home-more{
 position:relative;
 min-width:0;
}
.home-more-toggle{
 width:100%;
 min-height:43px;
 padding:9px 12px;
 border:0;
 border-radius:9px;
 background:#ffd51b;
 color:#111;
 font:800 14px "Cairo",Tahoma,Arial,sans-serif;
 cursor:pointer;
}
.home-more-toggle:hover{
 background:#e8bc14;
}
.home-more-menu{
 position:absolute;
 top:calc(100% + 8px);
 left:0;
 width:min(650px,85vw);
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:10px;
 padding:12px;
 background:#202022;
 border:1px solid #d8b51d;
 border-radius:12px;
 box-shadow:0 15px 35px #0009;
 z-index:30;
}
.home-more-menu[hidden]{
 display:none!important;
}
.home-more-menu a{
 min-height:48px;
 background:#e9bd23;
 font-size:13px;
}
@media(max-width:600px){
 .home-more-toggle{
  min-height:40px;
  font-size:12px;
 }
 .home-more-menu{
  width:min(90vw,390px);
  gap:7px;
  padding:8px;
 }
 .home-more-menu a{
  font-size:11px;
  padding:8px 4px;
 }
}

/* Header category navigation */
.header-category-nav{
 display:flex;
 align-items:center;
 gap:15px;
 white-space:nowrap;
}
.top nav .header-category-nav a,
.header-more-toggle{
 color:#fff;
 font-size:13px;
 font-weight:800;
 text-decoration:none;
}
.header-more{
 position:relative;
}
.header-more-toggle{
 background:none;
 border:0;
 padding:8px 0;
 font-family:inherit;
 cursor:pointer;
 white-space:nowrap;
}
.header-more-toggle span{
 font-size:10px;
 margin-inline-start:3px;
}
.top nav .header-category-nav a:hover,
.header-more-toggle:hover{
 color:#ffd51b;
}
.header-more-menu{
 position:absolute;
 top:calc(100% + 12px);
 left:0;
 width:420px;
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:4px;
 padding:12px;
 background:#171719;
 border:1px solid #353538;
 border-radius:12px;
 box-shadow:0 15px 35px #000b;
 z-index:100;
 white-space:normal;
}
.header-more-menu[hidden]{
 display:none!important;
}
.top nav .header-more-menu a{
 display:block;
 padding:11px 9px;
 color:#fff;
 background:#222225;
 border-radius:7px;
 font-size:12px;
 text-align:center;
 white-space:normal;
}
.top nav .header-more-menu a:hover{
 background:#333338;
 color:#ffd51b;
}
@media(max-width:1350px){
 .header-category-nav{
  gap:11px;
 }
 .top nav{
  gap:13px;
 }
 .top nav .header-category-nav a,
 .header-more-toggle{
  font-size:12px;
 }
}
@media(max-width:950px){
 .header-category-nav{
  gap:14px;
 }
 .header-more-menu{
  position:fixed;
  top:auto;
  left:12px;
  right:12px;
  width:auto;
  max-height:65vh;
  overflow-y:auto;
 }
}
@media(max-width:600px){
 .header-category-nav{
  gap:12px;
 }
 .header-more-menu{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}

/* Compact episode buttons v1 */
.episode-grid{
 display:grid;
 grid-template-columns:repeat(auto-fill,minmax(78px,1fr));
 gap:10px;
 margin-top:16px;
}

.episode-grid .episode.episode-compact{
 display:flex;
 align-items:center;
 justify-content:center;
 min-width:0;
 min-height:55px;
 padding:8px 5px;
 border:1px solid #2d2d32;
 border-bottom:4px solid #35353b;
 border-radius:11px;
 background:#19191d;
 color:#fff;
 text-decoration:none;
 font-size:14px;
 font-weight:800;
 line-height:1.2;
 text-align:center;
 transition:background .15s,border-color .15s,color .15s;
}

.episode-grid .episode.episode-compact:hover,
.episode-grid .episode.episode-compact:focus-visible{
 background:#ffd51b;
 color:#111;
 border-color:#ffd51b;
 border-bottom-color:#c9a900;
 outline:none;
}

.episode-grid .episode.episode-compact[hidden]{
 display:none!important;
}

@media(max-width:600px){
 .episode-grid{
  grid-template-columns:repeat(auto-fill,minmax(65px,1fr));
  gap:8px;
 }
 .episode-grid .episode.episode-compact{
  min-height:48px;
  font-size:12px;
  border-radius:9px;
 }
}

/* Watch episodes full width v2 */
.watch-layout{
 display:block;
}
.watch-layout > div:first-child{
 width:100%;
 min-width:0;
}
.watch-episodes-section{
 width:100%;
 margin-top:24px;
}
.watch-episodes-section .episode-grid{
 grid-template-columns:repeat(auto-fill,minmax(78px,1fr));
}
.watch-episodes-section .episode-compact.is-current{
 background:#ffd51b;
 color:#111;
 border-color:#ffd51b;
 border-bottom-color:#c9a900;
}
@media(max-width:600px){
 .watch-episodes-section .episode-grid{
  grid-template-columns:repeat(auto-fill,minmax(65px,1fr));
 }
}

/* Watch player size v4 */
.watch-layout{
 display:block;
 width:100%;
 max-width:1080px;
 margin-inline:auto;
}
.watch-layout > div:first-child{
 width:100%;
 min-width:0;
}
.watch-layout .playerbox{
 width:100%;
 aspect-ratio:16/9;
 margin-inline:auto;
}
.watch-episodes-section{
 max-width:1080px;
 margin:18px auto 0;
}
.watch-episodes-section .section-head{
 margin-bottom:12px;
}
.watch-episodes-section .episode-grid{
 grid-template-columns:repeat(auto-fill,minmax(74px,1fr));
 gap:9px;
}
.watch-episodes-section .episode-compact{
 min-height:51px;
 font-size:13px;
}
@media(max-width:600px){
 .watch-episodes-section .episode-grid{
  grid-template-columns:repeat(auto-fill,minmax(62px,1fr));
  gap:7px;
 }
 .watch-episodes-section .episode-compact{
  min-height:46px;
  font-size:12px;
 }
}

/* Series detail redesign v1 */
.detail-hero{
 display:grid;
 grid-template-columns:220px minmax(0,1fr);
 gap:24px;
 align-items:start;
 background:#18181a;
 border:1px solid #29292c;
 border-radius:17px;
 padding:22px;
}
.detail-poster{
 min-height:290px;
 border-radius:13px;
 overflow:hidden;
}
.detail-copy{
 min-width:0;
}
.detail-copy h1{
 font-size:26px;
 margin:0 0 14px;
}
.detail-copy .meta{
 display:flex;
 flex-wrap:wrap;
 gap:9px;
 margin:12px 0;
}
.related-series-section{
 margin-top:30px;
}
.related-series-section .grid{
 grid-template-columns:repeat(6,minmax(0,1fr));
}
@media(max-width:950px){
 .related-series-section .grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
 }
}
@media(max-width:600px){
 .detail-hero{
  grid-template-columns:110px minmax(0,1fr);
  gap:13px;
  padding:13px;
 }
 .detail-poster{
  min-height:160px;
 }
 .detail-copy h1{
  font-size:19px;
 }
 .related-series-section .grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}

/* Player loading poster */
.player-poster-loading{
 background-image:
  linear-gradient(rgba(0,0,0,.25),rgba(0,0,0,.55)),
  var(--player-poster);
 background-size:cover;
 background-position:center;
 background-repeat:no-repeat;
}
.player-poster-loading iframe,
.player-poster-loading video{
 position:relative;
 z-index:1;
}


/* AlooyTV yellow theme */
:root{
 --yellow:#ffd51b;
 --red:#ffd51b;
}
.search button,
.all,
.server.active{
 background:#ffd51b!important;
 color:#111!important;
 border-color:#ffd51b!important;
}
.alooy-poster-player{
 position:relative;
 background:#050506;
}
.alooy-poster-player iframe,
.alooy-poster-player video{
 width:100%;
 height:100%;
}
.alooy-poster-overlay{
 position:absolute;
 inset:0;
 z-index:3;
 width:100%;
 height:100%;
 border:0;
 display:flex;
 align-items:center;
 justify-content:center;
 background-size:cover;
 background-position:center;
 cursor:pointer;
}
.alooy-poster-play{
 width:85px;
 height:85px;
 border-radius:50%;
 display:grid;
 place-items:center;
 background:#ffd51b;
 color:#111;
 font-size:35px;
 box-shadow:0 8px 35px #0009;
 transition:transform .2s;
}
.alooy-poster-overlay:hover .alooy-poster-play{
 transform:scale(1.08);
}
@media(max-width:600px){
 .alooy-poster-play{
  width:65px;
  height:65px;
  font-size:27px;
 }
}
/* ALOOY MOBILE CATEGORY RESPONSIVE V1 */
@media (max-width: 600px) {
  .hero .home-category-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px !important;
    width: 100%;
    margin-top: 18px;
    align-items: stretch;
  }

  .hero .home-category-buttons > a,
  .hero .home-category-dropdown > summary {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 9px 6px !important;
    font-size: 12px !important;
    line-height: 1.5;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .hero .home-category-dropdown {
    position: relative;
    min-width: 0;
  }

  .hero .home-category-dropdown > div {
    right: auto !important;
    left: 0 !important;
    width: min(260px, 85vw);
    min-width: 0 !important;
    max-width: 85vw;
    box-sizing: border-box;
  }

  .hero {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

.fasel-home-hero .home-category-buttons{display:none!important;}
body .section-head h1,body .section-head h2{color:#ffffff!important;}
.fho-category-nav>a:first-child{display:none!important;}

/* Series detail layout fix */
body .fho-series-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 24px !important;
    text-align: center !important;
}

body .fho-series-hero > * {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
}

body .fho-series-hero > :has(h1),
body .fho-series-hero > :has(h2),
body .fho-series-hero > h1,
body .fho-series-hero > h2 {
    order: -1 !important;
}

body .fho-series-hero img {
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 380px !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    border-radius: 12px !important;
}

body .fho-series-hero h1,
body .fho-series-hero h2 {
    position: static !important;
    color: #ffffff !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    margin: 0 0 15px !important;
}

