/* PLAYER 365 ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â Movies reference design. This file owns Movies presentation only. */
body.iptv365-movies-mode,
body.iptv365-movies-mode #app,
body.iptv365-movies-mode .app-container {
  background:#020812 !important;
}
body.iptv365-movies-mode #iptv365GlobalNav { display:none !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen {
  position:fixed !important; inset:0 !important; z-index:900 !important;
  display:flex !important; flex-direction:column !important;
  width:100vw !important; height:100vh !important; height:100dvh !important;
  min-height:0 !important; margin:0 !important; padding:0 !important;
  overflow:hidden !important; box-sizing:border-box !important;
  color:#f7fbff !important; background:#020812 var(--iptv365-global-bg) center center / cover no-repeat !important;
  isolation:isolate !important;
}
body.iptv365-movies-mode #mediaWorkspaceScreen::before { content:none !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen > .iptv365-screen-back,
body.iptv365-movies-mode #mediaWorkspaceScreen > .backToHomeBtn { display:none !important; }
body.iptv365-movies-mode .iptv365-movies-header {
  position:relative; z-index:3; flex:0 0 clamp(72px,9vh,94px); min-height:72px;
  display:grid; grid-template-columns:minmax(180px,1fr) auto minmax(520px,1fr);
  align-items:center; gap:clamp(10px,1.2vw,20px); padding:5px clamp(18px,2.5vw,44px);
  box-sizing:border-box; border-bottom:1px solid rgba(0,150,255,.12);
  background:linear-gradient(90deg,rgba(1,6,13,.96),rgba(2,13,27,.86),rgba(1,6,13,.97));
  height:clamp(72px,9vh,94px); max-height:94px;
}
body.iptv365-movies-mode .iptv365-movie-brand { display:flex; align-items:center; gap:0; width:max-content; text-decoration:none; color:#fff; filter:drop-shadow(0 4px 10px rgba(0,0,0,.55)); }
body.iptv365-movies-mode .iptv365-brand-word { font-size:clamp(18px,1.95vw,31px); font-style:italic; font-weight:950; letter-spacing:-1.6px; }
body.iptv365-movies-mode .iptv365-brand-play { position:relative; display:grid; place-items:center; width:clamp(50px,5.5vw,84px); height:clamp(38px,4.6vw,62px); margin-left:5px; padding-right:10px; clip-path:polygon(0 0,100% 50%,0 100%); border-radius:12px; background:linear-gradient(145deg,#fff06a 0%,#ffc400 48%,#ff8b00 100%); color:#050505; }
body.iptv365-movies-mode .iptv365-brand-play b { font-size:clamp(17px,1.7vw,27px); font-weight:1000; transform:translateX(-5px); }
body.iptv365-movies-mode .iptv365-movies-heading { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:0; min-width:0; color:#f7fbff; text-shadow:0 2px 12px rgba(0,130,255,.22); }
body.iptv365-movies-mode .iptv365-movies-heading-main { display:flex; justify-content:center; align-items:center; gap:10px; font-size:clamp(20px,2.3vw,35px); font-style:italic; font-weight:950; letter-spacing:-1.3px; white-space:nowrap; }
body.iptv365-movies-mode .iptv365-clapper { font-size:clamp(23px,2.55vw,38px); filter:grayscale(1) brightness(2.5); }
body.iptv365-movies-mode .iptv365-movies-category-subtitle { display:block; max-width:min(34vw,460px); margin-top:1px; overflow:hidden; color:#9dbbd2; font-size:clamp(9px,.76vw,12px); font-weight:650; letter-spacing:.7px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
body.iptv365-movies-mode .iptv365-movies-header-tools { display:flex !important; justify-content:flex-end !important; align-items:center !important; gap:clamp(10px,1vw,16px) !important; min-width:0 !important; width:100% !important; margin-left:auto !important; }
/* Search is deliberately anchored at the far-right, immediately before the oval separator and Favorites. */
body.iptv365-movies-mode .iptv365-movies-search-slot { display:flex !important; flex:0 1 clamp(330px,27vw,430px) !important; align-items:center !important; justify-content:flex-end !important; width:clamp(330px,27vw,430px) !important; min-width:290px !important; max-width:430px !important; margin-left:auto !important; }
body.iptv365-movies-mode .iptv365-movies-search-slot #mediaTitleSearch { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23d9f4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") !important; background-repeat:no-repeat !important; background-position:right 15px center !important; background-size:20px 20px !important; padding:0 48px 0 16px !important; }
body.iptv365-movies-mode .iptv365-movies-search-slot #mediaTitleSearch { display:block !important; flex:1 1 auto !important; min-width:0 !important; width:100% !important; max-width:none !important; height:42px !important; margin:0 !important; padding:0 14px !important; border:1px solid rgba(0,160,255,.58) !important; border-radius:12px !important; background:rgba(1,10,20,.92) !important; color:#fff !important; box-sizing:border-box !important; }
body.iptv365-movies-mode .iptv365-movies-search-slot #mediaTitleSearch { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23d9f4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") !important; background-repeat:no-repeat !important; background-position:right 15px center !important; background-size:20px 20px !important; padding:0 48px 0 16px !important; }
body.iptv365-movies-mode .iptv365-movies-oval-divider { flex:0 0 4px; width:4px; height:30px; border-radius:99px; background:linear-gradient(180deg,rgba(50,199,255,.35),rgba(50,199,255,.9),rgba(50,199,255,.35)); box-shadow:0 0 9px rgba(0,165,255,.35); }
body.iptv365-movies-mode .iptv365-movies-favorites-control { display:grid; flex:0 0 48px; place-items:center; width:48px; height:44px; min-height:44px; padding:0; border:1px solid rgba(0,166,255,.48); border-radius:13px; background:linear-gradient(135deg,rgba(5,29,49,.96),rgba(1,13,27,.96)); color:#f8fbff; cursor:pointer; box-shadow:inset 0 0 12px rgba(0,140,255,.07); transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
body.iptv365-movies-mode .iptv365-movies-favorites-control:hover, body.iptv365-movies-mode .iptv365-movies-favorites-control:focus-visible { border-color:#20bdff; box-shadow:0 0 12px rgba(0,166,255,.34),inset 0 0 12px rgba(0,140,255,.12); transform:translateY(-1px); outline:none; }
body.iptv365-movies-mode .iptv365-movies-favorites-heart { color:#ff4d83; font-size:29px; line-height:1; text-shadow:0 0 10px rgba(255,48,111,.38); }
body.iptv365-movies-mode .iptv365-favorites-label { display:none !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .media-grid-header { display:none !important; }

body.iptv365-movies-mode #mediaWorkspaceScreen .split-workspace {
  position:relative; z-index:1; display:grid !important;
  grid-template-columns:minmax(250px,22.5vw) minmax(0,1fr) !important;
  gap:clamp(18px,2vw,34px) !important; flex:1 1 auto !important;
  width:100% !important; height:auto !important; min-height:0 !important;
  box-sizing:border-box !important; margin:0 !important; padding:clamp(16px,2.2vh,26px) clamp(16px,1.6vw,28px) clamp(18px,2.2vh,28px) !important;
  overflow:hidden !important; border:0 !important; border-radius:0 !important;
  background:transparent !important; box-shadow:none !important;
}
body.iptv365-movies-mode #mediaWorkspaceScreen .left-list-panel {
  display:flex !important; flex-direction:column !important; min-width:0 !important; min-height:0 !important;
  width:auto !important; height:100% !important; padding:0 clamp(8px,.9vw,15px) 12px 0 !important;
  overflow:hidden !important; border:0 !important; border-right:0 !important; border-radius:0 !important;
  background:linear-gradient(180deg,rgba(1,8,17,.72),rgba(1,13,25,.82)) !important;
  box-shadow:12px 0 26px rgba(0,0,0,.14);
}
body.iptv365-movies-mode #mediaWorkspaceScreen .panel-header { display:none !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPanelSearch { flex:0 0 44px !important; width:calc(100% - 10px) !important; height:44px !important; min-height:44px !important; margin:0 5px 13px !important; padding:0 14px !important; box-sizing:border-box !important; border:1px solid rgba(0,157,255,.5) !important; border-radius:12px !important; outline:none !important; background:rgba(2,13,27,.92) !important; color:#fff !important; font-size:14px !important; }

/* Movies-only: the search input is relocated into the top header by app.js. */
body.iptv365-movies-mode #mediaWorkspaceScreen .media-grid-header { display:none !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .left-list-panel .panel-header { display:none !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .items-scroll-list { display:flex !important; flex:1 1 auto !important; flex-direction:column !important; gap:7px !important; min-height:0 !important; height:auto !important; max-height:none !important; overflow-y:auto !important; overflow-x:hidden !important; padding:0 5px 12px !important; background:transparent !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .list-item-btn { display:flex !important; flex:0 0 auto !important; flex-direction:row !important; align-items:center !important; justify-content:flex-start !important; gap:clamp(10px,1vw,17px) !important; width:100% !important; min-height:clamp(43px,5.7vh,58px) !important; padding:7px clamp(10px,1.15vw,19px) !important; border:1px solid rgba(0,126,205,.13) !important; border-radius:12px !important; background:linear-gradient(105deg,rgba(3,19,34,.92),rgba(1,10,21,.9)) !important; color:#f8fbff !important; text-align:left !important; font-size:clamp(12px,.98vw,17px) !important; font-weight:650 !important; cursor:pointer !important; text-align:left !important; transition:background .18s ease,border-color .18s ease,box-shadow .18s ease !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv365-category-icon { flex:0 0 clamp(28px,2.8vw,43px); display:grid; place-items:center; color:#f7fbff; font-size:clamp(22px,2.2vw,34px); line-height:1; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv365-category-label { display:block !important; flex:1 1 auto !important; min-width:0 !important; overflow:hidden !important; text-align:left !important; text-overflow:ellipsis !important; white-space:nowrap !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .list-item-btn:hover { border-color:rgba(0,174,255,.72) !important; background:rgba(0,55,94,.68) !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .list-item-btn.active { border:1px solid #ffd72e !important; background:linear-gradient(100deg,#ffdf32,#ffb900 72%,#ff8b00) !important; color:#050b13 !important; box-shadow:0 0 10px rgba(255,208,0,.75),0 0 26px rgba(255,196,0,.4),inset 0 0 12px rgba(255,255,255,.28) !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .list-item-btn.active .iptv365-category-icon { color:#050b13; }
body.iptv365-movies-mode #mediaWorkspaceScreen .media-grid-container { display:flex !important; flex-direction:column !important; min-width:0 !important; min-height:0 !important; height:100% !important; padding:0 !important; overflow:hidden !important; background:transparent !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .media-grid-header { display:none !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen #currentCategoryHeading { margin:0 !important; color:#fff !important; font-size:clamp(19px,1.7vw,28px) !important; font-weight:850 !important; letter-spacing:.1px !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .media-grid-header #mediaTitleSearch { width:min(300px,30vw) !important; height:44px !important; margin:0 !important; padding:0 15px !important; box-sizing:border-box !important; border:1px solid rgba(0,160,255,.55) !important; border-radius:12px !important; outline:none !important; background:rgba(1,10,20,.94) !important; color:#fff !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid {
  display:grid !important; grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  grid-auto-rows:max-content !important; align-content:start !important; align-items:stretch !important;
  gap:clamp(14px,1.65vw,25px) !important; flex:1 1 auto !important;
  width:100% !important; min-width:0 !important; min-height:0 !important; height:auto !important;
  padding:2px 5px 22px !important; box-sizing:border-box !important;
  overflow-x:hidden !important; overflow-y:auto !important;
  background:transparent !important; scrollbar-width:thin !important; scrollbar-color:rgba(0,155,255,.55) rgba(0,0,0,.2) !important;
}
/* Movie cards: one compact poster surface with an integrated title overlay.
   The image fills the card; the title no longer occupies a separate black row. */
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid > .poster-card {
  position:relative !important; display:block !important; align-self:start !important;
  min-width:0 !important; width:100% !important; height:auto !important;
  aspect-ratio:.72 / 1 !important; overflow:hidden !important;
  border:1.5px solid rgba(0,174,255,.9) !important;
  border-radius:clamp(12px,1.1vw,19px) !important;
  background:#020b17 !important;
  box-shadow:0 0 7px rgba(0,169,255,.62),0 0 18px rgba(0,126,255,.2),inset 0 0 8px rgba(0,157,255,.1) !important;
  cursor:pointer !important; isolation:isolate !important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease !important;
}
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid > .poster-card:hover,
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid > .poster-card:focus-within {
  transform:translateY(-2px) !important; border-color:#65dcff !important;
  box-shadow:0 0 9px rgba(0,194,255,.9),0 0 25px rgba(0,145,255,.45) !important;
}
body.iptv365-movies-mode #mediaWorkspaceScreen .poster-img-wrap {
  position:absolute !important; inset:0 !important; z-index:0 !important;
  width:100% !important; height:100% !important; overflow:hidden !important;
  background:#020b17 !important;
}
body.iptv365-movies-mode #mediaWorkspaceScreen .poster-img-wrap img {
  display:block !important; width:100% !important; height:100% !important;
  object-fit:cover !important; object-position:center center !important;
  border:0 !important; border-radius:0 !important;
}
body.iptv365-movies-mode #mediaWorkspaceScreen .poster-info {
  position:absolute !important; z-index:2 !important; left:0 !important; right:0 !important; bottom:0 !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  width:100% !important; min-height:clamp(54px,7.2vh,82px) !important;
  max-height:34% !important; margin:0 !important; padding:9px 10px !important;
  box-sizing:border-box !important; overflow:hidden !important;
  background:linear-gradient(180deg,rgba(0,5,12,.62),rgba(0,5,12,.88)) !important;
  backdrop-filter:blur(2px) !important; -webkit-backdrop-filter:blur(2px) !important;
}
body.iptv365-movies-mode #mediaWorkspaceScreen .poster-title {
  display:-webkit-box !important; width:100% !important; max-height:100% !important;
  overflow:hidden !important; color:#fff !important;
  font-size:clamp(12px,.98vw,16px) !important; font-weight:750 !important;
  line-height:1.25 !important; text-align:center !important;
  text-overflow:ellipsis !important; -webkit-line-clamp:3 !important;
  -webkit-box-orient:vertical !important; white-space:normal !important;
  overflow-wrap:anywhere !important; text-shadow:0 1px 5px rgba(0,0,0,.9) !important;
}
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv365-fav-star { position:absolute !important; top:9px !important; right:9px !important; bottom:auto !important; left:auto !important; z-index:5 !important; display:grid !important; place-items:center !important; width:32px !important; height:32px !important; margin:0 !important; padding:0 !important; border:1px solid rgba(255,255,255,.48) !important; border-radius:50% !important; background:rgba(0,5,12,.76) !important; color:#ffe05b !important; font-size:20px !important; line-height:1 !important; cursor:pointer !important; box-shadow:0 2px 8px rgba(0,0,0,.5) !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .poster-fallback { display:grid !important; place-items:center !important; width:100% !important; height:100% !important; background:#020b17 url("assets/player365-fallback-logo.png") center / 72% auto no-repeat !important; font-size:0 !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid:has(> .iptv-media-details) { display:block !important; overflow-y:auto !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details {
  position:relative !important; isolation:isolate !important; display:flex !important; flex-direction:column !important;
  width:100% !important; min-height:clamp(480px,68vh,720px) !important; box-sizing:border-box !important;
  padding:clamp(16px,2vw,28px) !important; overflow:hidden !important; border:1px solid rgba(0,166,255,.72) !important;
  border-radius:22px !important; background:linear-gradient(135deg,#06182a,#020a14 72%) !important; color:#fff !important;
  box-shadow:0 0 10px rgba(0,166,255,.48),0 0 28px rgba(0,132,255,.22),inset 0 0 24px rgba(0,145,255,.08) !important;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease !important;
}
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details:hover { border-color:#22c5ff !important; box-shadow:0 0 14px rgba(0,185,255,.75),0 0 38px rgba(0,135,255,.34),inset 0 0 30px rgba(0,145,255,.12) !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-backdrop { position:absolute !important; inset:0 !important; z-index:-2 !important; overflow:hidden !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-backdrop img { width:100% !important; height:100% !important; object-fit:cover !important; object-position:center 35% !important; opacity:.46 !important; filter:blur(1.5px) saturate(1.08) !important; transform:scale(1.035) !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-shade { position:absolute !important; inset:0 !important; z-index:-1 !important; background:linear-gradient(90deg,rgba(2,11,22,.92) 0%,rgba(2,13,26,.84) 48%,rgba(2,10,20,.58) 100%),linear-gradient(0deg,rgba(0,5,12,.52),rgba(0,5,12,.2)) !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-back { position:relative !important; z-index:3 !important; align-self:flex-start !important; display:inline-flex !important; align-items:center !important; gap:7px !important; min-height:34px !important; margin:0 0 12px !important; padding:0 12px !important; border:1px solid rgba(0,170,255,.55) !important; border-radius:9px !important; background:rgba(1,18,34,.74) !important; color:#eaf7ff !important; font-size:12px !important; font-weight:750 !important; cursor:pointer !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-layout { position:relative !important; z-index:2 !important; display:grid !important; grid-template-columns:minmax(190px,27%) minmax(0,1fr) !important; gap:clamp(22px,3vw,48px) !important; align-items:center !important; width:100% !important; flex:1 1 auto !important; min-height:0 !important; padding:clamp(6px,1.2vw,18px) !important; border-radius:16px !important; cursor:pointer !important; outline:none !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-layout:focus-visible { box-shadow:0 0 0 2px #fff,0 0 0 5px #00aaff !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-poster-wrap { position:relative !important; width:100% !important; max-width:330px !important; justify-self:center !important; aspect-ratio:2/3 !important; overflow:hidden !important; border:2px solid #09baff !important; border-radius:20px !important; background:#06111d !important; box-shadow:0 0 10px rgba(0,174,255,.85),0 0 28px rgba(0,132,255,.38) !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-poster { display:block !important; width:100% !important; height:100% !important; object-fit:contain !important; background:#050c15 !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-copy { display:flex !important; flex-direction:column !important; align-items:flex-start !important; min-width:0 !important; color:#f5faff !important; padding:clamp(8px,1.2vw,18px) !important; text-shadow:0 2px 8px rgba(0,0,0,.75) !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-title { margin:0 0 18px !important; color:#fff !important; font-size:clamp(28px,3.1vw,50px) !important; line-height:1.13 !important; font-weight:900 !important; letter-spacing:-.6px !important; overflow-wrap:anywhere !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-meta { display:flex !important; flex-wrap:wrap !important; align-items:center !important; gap:9px 18px !important; margin:0 0 clamp(22px,2.4vw,36px) !important; color:#e7f2ff !important; font-size:clamp(13px,1.15vw,18px) !important; line-height:1.5 !important; font-weight:600 !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-description { max-width:1000px !important; margin:0 0 clamp(26px,3vw,44px) !important; color:#f4f8ff !important; font-size:clamp(15px,1.35vw,21px) !important; line-height:1.65 !important; font-weight:450 !important; white-space:normal !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-play { display:inline-flex !important; align-items:center !important; justify-content:center !important; gap:12px !important; min-width:clamp(190px,23vw,300px) !important; min-height:clamp(52px,5.5vw,76px) !important; margin-top:auto !important; padding:0 30px !important; border:1px solid rgba(255,255,255,.65) !important; border-radius:15px !important; background:linear-gradient(100deg,#ffe875,#ffc400 70%,#ffad00) !important; color:#07111c !important; font-size:clamp(17px,1.55vw,25px) !important; font-weight:950 !important; letter-spacing:.4px !important; cursor:pointer !important; box-shadow:0 0 12px rgba(255,203,0,.42) !important; text-shadow:none !important; transition:transform .18s ease,box-shadow .18s ease !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-play:hover { transform:translateY(-2px) !important; box-shadow:0 0 18px rgba(255,213,0,.7),0 0 34px rgba(255,190,0,.3) !important; }
@media (max-width:850px) {
 body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details { min-height:0 !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-layout { grid-template-columns:minmax(130px,32%) minmax(0,1fr) !important; gap:16px !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-title { font-size:clamp(22px,4vw,34px) !important; }
}
@media (max-width:600px) {
 body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-layout { grid-template-columns:minmax(0,1fr) !important; justify-items:center !important; gap:18px !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-poster-wrap { width:min(58vw,230px) !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-copy { width:100% !important; padding:4px !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-title { font-size:26px !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-play { width:100% !important; }
}
body.iptv365-movies-mode #mediaWorkspaceScreen *, body.iptv365-movies-mode #iptv365MoviesHeader * { scrollbar-width:thin; }
@media (max-width:1250px) {
 body.iptv365-movies-mode #mediaWorkspaceScreen .split-workspace { grid-template-columns:minmax(210px,25vw) minmax(0,1fr) !important; gap:14px !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
 body.iptv365-movies-mode .iptv365-movies-header { grid-template-columns:minmax(130px,.7fr) minmax(150px,.8fr) minmax(470px,1.8fr); }
}
@media (max-width:850px) {
 body.iptv365-movies-mode .iptv365-movies-header { flex-basis:76px; min-height:76px; grid-template-columns:minmax(115px,1fr) auto minmax(300px,1fr); gap:8px; padding:5px 12px; }
 body.iptv365-movies-mode .iptv365-brand-word { font-size:20px; }
 body.iptv365-movies-mode .iptv365-brand-play { width:55px; height:43px; }
 body.iptv365-movies-mode .iptv365-movies-heading-main { font-size:21px; }
 body.iptv365-movies-mode .iptv365-movies-category-subtitle { max-width:28vw; font-size:9px; }
 body.iptv365-movies-mode .iptv365-movies-header-tools { gap:7px; }
 body.iptv365-movies-mode .iptv365-movies-search-slot { flex:0 1 clamp(250px,30vw,340px) !important; width:clamp(250px,30vw,340px) !important; min-width:210px !important; max-width:340px !important; }
 body.iptv365-movies-mode .iptv365-movies-favorites-control { flex-basis:42px; width:42px; height:40px; min-height:40px; padding:0; }
 body.iptv365-movies-mode .iptv365-movies-favorites-heart { font-size:26px; }
 body.iptv365-movies-mode .iptv365-movies-tool-divider { display:none; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .split-workspace { grid-template-columns:minmax(165px,29vw) minmax(0,1fr) !important; gap:10px !important; padding:12px 10px !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:12px !important; }
}
@media (max-width:600px) {
 body.iptv365-movies-mode .iptv365-movies-header { flex-basis:76px; min-height:76px; grid-template-columns:minmax(110px,1fr) auto minmax(110px,1fr); gap:5px; padding:4px 8px; }
 body.iptv365-movies-mode .iptv365-brand-word { font-size:15px; letter-spacing:-.8px; }
 body.iptv365-movies-mode .iptv365-brand-play { width:42px; height:34px; margin-left:2px; }
 body.iptv365-movies-mode .iptv365-brand-play b { font-size:14px; }
 body.iptv365-movies-mode .iptv365-movies-heading-main { gap:4px; font-size:16px; letter-spacing:-.5px; }
 body.iptv365-movies-mode .iptv365-movies-category-subtitle { max-width:26vw; font-size:8px; letter-spacing:0; }
 body.iptv365-movies-mode .iptv365-clapper { font-size:21px; }
 body.iptv365-movies-mode .iptv365-movies-header-tools { display:grid; grid-template-columns:minmax(72px,1fr) 3px 34px; grid-template-rows:auto; align-items:center; gap:3px 5px; width:100%; }
 body.iptv365-movies-mode .iptv365-movies-search-slot { grid-column:1; grid-row:1; width:100% !important; min-width:0 !important; max-width:none !important; flex:1 1 auto !important; }
 body.iptv365-movies-mode .iptv365-movies-oval-divider { grid-column:2; grid-row:1; }
 body.iptv365-movies-mode .iptv365-movies-favorites-control { grid-column:3; grid-row:1; flex-basis:34px; width:34px; height:34px; min-height:34px; padding:0; }
 body.iptv365-movies-mode .iptv365-movies-search-slot #mediaTitleSearch { height:34px !important; padding:0 34px 0 8px !important; background-position:right 9px center !important; background-size:16px 16px !important; font-size:11px !important; }
 body.iptv365-movies-mode .iptv365-movies-oval-divider { height:22px; width:3px; flex-basis:3px; }
 body.iptv365-movies-mode .iptv365-movies-favorites-control { min-height:34px; gap:0; padding:0; }
 body.iptv365-movies-mode .iptv365-movies-favorites-heart { font-size:21px; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .split-workspace { grid-template-columns:minmax(105px,31vw) minmax(0,1fr) !important; gap:7px !important; padding:8px 5px !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .left-list-panel { padding-right:4px !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .panel-header { display:none !important; }
/* Series retains its original category heading. */

 body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPanelSearch { height:34px !important; min-height:34px !important; flex-basis:34px !important; margin:0 2px 8px !important; padding:0 7px !important; font-size:10px !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .list-item-btn { min-height:36px !important; gap:5px !important; padding:5px 4px !important; border-radius:8px !important; font-size:9px !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .iptv365-category-icon { flex-basis:18px; font-size:15px; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .media-grid-header { display:none !important; flex-wrap:wrap !important; gap:8px !important; min-height:0 !important; margin-bottom:10px !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen #currentCategoryHeading { font-size:15px !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen #mediaTitleSearch { width:100% !important; height:36px !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:9px !important; padding:0 2px 14px !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid > .poster-card { aspect-ratio:.70 / 1 !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .poster-info { min-height:46px !important; max-height:36% !important; padding:6px 5px !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .poster-title { font-size:10px !important; line-height:1.2 !important; text-align:center !important; -webkit-line-clamp:3 !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .iptv365-fav-star { top:6px !important; right:6px !important; bottom:auto !important; left:auto !important; width:27px !important; height:27px !important; font-size:17px !important; }
}
@media (max-width:380px) {
 body.iptv365-movies-mode #mediaWorkspaceScreen .split-workspace { grid-template-columns:minmax(92px,30vw) minmax(0,1fr) !important; }
 body.iptv365-movies-mode #mediaWorkspaceScreen .iptv365-category-icon { display:none; }
}
@media (prefers-reduced-motion:reduce) {
 body.iptv365-movies-mode #mediaWorkspaceScreen *, body.iptv365-movies-mode .iptv365-movies-header * { transition:none !important; animation:none !important; }
}


/* ================================================================
   PLAYER 365 MOVIE DETAILS V10 ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â full available right pane, responsive,
   neon only on hover / keyboard focus, and TV-remote focus affordance.
   This block is scoped to Movies details only.
   ================================================================ */
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid.iptv365-details-open {
  display:flex !important;
  flex:1 1 0 !important;
  flex-direction:column !important;
  align-content:stretch !important;
  align-items:stretch !important;
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  max-height:100% !important;
  padding:0 !important;
  margin:0 !important;
  overflow:hidden !important;
  background:transparent !important;
}
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid.iptv365-details-open > .iptv-media-details {
  flex:1 1 0 !important;
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  max-height:100% !important;
  margin:0 !important;
  padding:clamp(16px,2vw,30px) !important;
  box-sizing:border-box !important;
  border:1px solid rgba(0,166,255,.34) !important;
  box-shadow:none !important;
  outline:none !important;
  cursor:pointer !important;
  transition:border-color .2s ease, box-shadow .2s ease !important;
}
/* Keep the card quiet until the pointer is over it. */
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details:hover,
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details:focus-visible {
  border-color:#20c8ff !important;
  box-shadow:0 0 12px rgba(0,185,255,.82),0 0 34px rgba(0,135,255,.38),inset 0 0 24px rgba(0,145,255,.10) !important;
}
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-layout {
  grid-template-columns:minmax(150px,25%) minmax(0,1fr) !important;
  height:100% !important;
  min-height:0 !important;
  align-items:center !important;
  gap:clamp(18px,2.6vw,42px) !important;
  padding:clamp(8px,1vw,16px) !important;
}
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-poster-wrap {
  width:min(100%,clamp(150px,20vw,310px)) !important;
  max-height:calc(100% - 12px) !important;
  aspect-ratio:2 / 3 !important;
}
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-copy {
  justify-content:center !important;
  max-height:100% !important;
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
}
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-play:focus-visible,
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-back:focus-visible {
  outline:2px solid #fff !important;
  outline-offset:3px !important;
  box-shadow:0 0 0 5px #00aaff,0 0 22px rgba(0,170,255,.75) !important;
}
/* Laptop/tablet: let the detail panel use the full height available beside categories. */
@media (min-width:701px) {
  body.iptv365-movies-mode #mediaWorkspaceScreen .split-workspace:has(#mediaPosterGrid.iptv365-details-open) {
    min-height:0 !important;
    height:100% !important;
    overflow:hidden !important;
  }
}
/* Smaller devices: remove the cramped category column while a detail is open. */
@media (max-width:700px) {
  body.iptv365-movies-mode #mediaWorkspaceScreen .split-workspace:has(#mediaPosterGrid.iptv365-details-open) {
    display:flex !important;
    flex-direction:column !important;
    gap:0 !important;
    padding:8px !important;
    overflow:hidden !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .split-workspace:has(#mediaPosterGrid.iptv365-details-open) .left-list-panel {
    display:none !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .split-workspace:has(#mediaPosterGrid.iptv365-details-open) .media-grid-container {
    flex:1 1 0 !important;
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details {
    padding:12px !important;
    border-radius:15px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-layout {
    display:grid !important;
    grid-template-columns:minmax(0,34%) minmax(0,1fr) !important;
    gap:12px !important;
    padding:4px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-poster-wrap {
    width:100% !important;
    max-width:190px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-title {
    font-size:clamp(20px,4vw,32px) !important;
    margin-bottom:10px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-meta {
    gap:5px 9px !important;
    margin-bottom:12px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-description {
    font-size:clamp(12px,2vw,16px) !important;
    line-height:1.45 !important;
    margin-bottom:14px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-play {
    min-width:0 !important;
    min-height:46px !important;
    width:min(100%,230px) !important;
    padding:0 12px !important;
    font-size:clamp(14px,2vw,18px) !important;
  }
}
@media (max-width:480px) {
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-layout {
    grid-template-columns:minmax(0,1fr) !important;
    align-content:start !important;
    justify-items:center !important;
    gap:10px !important;
    overflow-y:auto !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-poster-wrap {
    width:min(34vw,150px) !important;
    max-width:150px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-copy {
    width:100% !important;
    padding:4px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-title {
    font-size:clamp(19px,5vw,25px) !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-detail-description {
    font-size:13px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-play {
    width:100% !important;
    max-width:none !important;
  }
}
@media (hover:none) {
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details:hover {
    border-color:rgba(0,166,255,.34) !important;
    box-shadow:none !important;
  }
}

/* =========================================================
   IPTV365 VOD PLAYER ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â TRUE EDGE-TO-EDGE DEVICE LAYOUT
   Loaded after legacy stylesheets to neutralize old modal sizing.
   The video keeps its aspect ratio; unused space remains black.
   ========================================================= */
#cinemaModal:not(.hidden),
#cinemaModal.iptv-cinema-active {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
  z-index: 2147483000 !important;
}

#cinemaModal:not(.hidden) > .cinema-player-shell,
#cinemaModal.iptv-cinema-active > .cinema-player-shell {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  width: 100vw !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  background: #000 !important;
}

#cinemaModal:not(.hidden) .cinema-header {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 54px !important;
  padding: 8px clamp(12px, 2vw, 28px) !important;
  box-sizing: border-box !important;
  background: #151c2d !important;
}

#cinemaModal:not(.hidden) .cinema-header h3 {
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #fff !important;
  font-size: clamp(14px, 1.6vw, 21px) !important;
}

#cinemaModal:not(.hidden) .cinema-stage {
  position: relative !important;
  display: flex !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
}

#cinemaModal:not(.hidden) .cinema-stage video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
}

#cinemaModal:not(.hidden) .close-modal-btn {
  flex: 0 0 auto !important;
  min-height: 38px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
}

@media (max-width: 700px) {
  #cinemaModal:not(.hidden) .cinema-header {
    min-height: 46px !important;
    padding: 6px 9px !important;
  }
  #cinemaModal:not(.hidden) .close-modal-btn {
    min-height: 34px !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  #cinemaModal:not(.hidden) .cinema-header {
    min-height: 38px !important;
    padding: 4px 10px !important;
  }
  #cinemaModal:not(.hidden) .close-modal-btn {
    min-height: 30px !important;
    padding: 4px 9px !important;
  }
}


/* V13: country flag REPLACES the generic icon in Movies category rows. */
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv365-category-flag {
  flex: 0 0 clamp(28px, 2.8vw, 43px) !important;
  width: clamp(28px, 2.8vw, 43px) !important;
  min-width: clamp(28px, 2.8vw, 43px) !important;
  height: 1.35em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
  font-size: clamp(22px, 2.2vw, 34px) !important;
  line-height: 1 !important;
  overflow: visible !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.55));
}
body.iptv365-movies-mode #mediaWorkspaceScreen .list-item-btn.active .iptv365-category-flag {
  filter: none !important;
}
@media (max-width: 700px) {
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv365-category-flag {
    flex-basis: 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    font-size: 23px !important;
  }
}

/* ================================================================
   MOVIES WORKSPACE Ã¢â‚¬â€ SINGLE FULL-VIEWPORT BACKGROUND
   This is a workspace background, NOT a movie-card background.
   Movie posters/cards/grid dimensions and layout remain unchanged.
   ================================================================ */
body.iptv365-movies-mode,
body.iptv365-movies-mode #app,
body.iptv365-movies-mode .app-container {
  background: #020812 var(--iptv365-global-bg) center center / cover no-repeat fixed !important;
}

body.iptv365-movies-mode #mediaWorkspaceScreen {
  background-color: #020812 !important;
  background-image: var(--iptv365-global-bg) !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

body.iptv365-movies-mode #mediaWorkspaceScreen .split-workspace,
body.iptv365-movies-mode #mediaWorkspaceScreen .media-grid-container,
body.iptv365-movies-mode #mediaWorkspaceScreen .media-grid-header,
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid {
  background: transparent !important;
}

body.iptv365-movies-mode .iptv365-movies-header {
  background: linear-gradient(90deg, rgba(1,6,13,.40), rgba(2,13,27,.22), rgba(1,6,13,.40)) !important;
}

/* ================================================================
   MOVIES FEATURED DETAILS CARD â€” TITLE / 5-LINE SUMMARY / PLAY CTA
   Scoped only to the Movies details card. Poster and grid untouched.
   ================================================================ */
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details .iptv-media-detail-copy {
  justify-content: center !important;
  gap: 0 !important;
}

body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details .iptv-media-detail-title {
  max-width: 100% !important;
  margin: 0 0 12px !important;
  font-size: clamp(25px, 2.65vw, 42px) !important;
  line-height: 1.12 !important;
  font-weight: 900 !important;
  letter-spacing: -0.45px !important;
  overflow-wrap: anywhere !important;
}

body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details .iptv-media-detail-meta {
  margin: 0 0 16px !important;
  gap: 7px 14px !important;
  font-size: clamp(12px, 1.05vw, 16px) !important;
  line-height: 1.4 !important;
}

body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details .iptv-media-detail-description {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 5 !important;
  line-clamp: 5 !important;
  overflow: hidden !important;
  max-height: calc(1.5em * 5) !important;
  margin: 0 !important;
  font-size: clamp(14px, 1.18vw, 18px) !important;
  line-height: 1.5 !important;
  font-weight: 450 !important;
  overflow-wrap: anywhere !important;
}

body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details .iptv-media-play {
  align-self: flex-start !important;
  margin: 20px 0 0 !important;
  min-width: clamp(190px, 21vw, 270px) !important;
  min-height: 56px !important;
  padding: 0 26px !important;
  border-radius: 12px !important;
  font-size: clamp(16px, 1.35vw, 21px) !important;
  letter-spacing: .25px !important;
}

@media (max-width: 850px) {
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details .iptv-media-detail-title {
    font-size: clamp(22px, 3.4vw, 32px) !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details .iptv-media-detail-description {
    font-size: 14px !important;
  }
}

@media (max-width: 600px) {
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details .iptv-media-detail-copy {
    align-items: stretch !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv-media-details .iptv-media-play {
    align-self: stretch !important;
    width: 100% !important;
    margin-top: 16px !important;
  }
}
/* ============================================================
   Change #2 (user-approved): Movie poster cards — Premium Glass
   default state; Premium Neon highlight ONLY on hover / focus /
   active. Scoped strictly to Movies mode. These rules repeat the
   exact selectors of the default card rule above, later in the
   file, so they win the cascade at equal specificity.
   ============================================================ */
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid > .poster-card {
  border:1px solid rgba(255,255,255,.16) !important;
  background:linear-gradient(165deg,rgba(255,255,255,.09),rgba(255,255,255,.02) 45%,rgba(2,11,23,.4)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 0 0 1px rgba(255,255,255,.03),0 10px 26px rgba(0,0,0,.5) !important;
  transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease !important;
}
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid > .poster-card:hover,
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid > .poster-card:focus,
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid > .poster-card:focus-visible,
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid > .poster-card:focus-within,
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid > .poster-card:active {
  transform:translateY(-2px) !important;
  border-color:rgba(103,220,255,.95) !important;
  box-shadow:0 0 10px rgba(0,194,255,.75),0 0 28px rgba(0,145,255,.4),0 0 55px rgba(0,110,255,.2),inset 0 0 12px rgba(0,174,255,.16) !important;
  outline:none !important;
}
/* Change #2: missing-poster fallback — the official logo asset, centered at a
   proper scale on a premium glass panel (no broken image, no empty space).
   Change #36: the new neon logo replaces the old logo asset here. */
body.iptv365-movies-mode #mediaWorkspaceScreen .poster-fallback {
  background:#020b17 url("assets/player365-fallback-logo.png") center / 72% auto no-repeat !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 0 34px rgba(0,140,255,.08) !important;
}

/* Change #3 (user-approved): Movies "Load More" button — glass pill that spans
   the grid width; premium neon only on hover / keyboard focus. */
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid > .iptv365-load-more { grid-column:1 / -1 !important; justify-self:center !important; align-self:start !important; margin:8px 0 26px !important; padding:12px 36px !important; border-radius:999px !important; border:1px solid rgba(255,255,255,.28) !important; background:rgba(255,255,255,.06) !important; color:#fff !important; font-size:15px !important; font-weight:700 !important; letter-spacing:.02em !important; cursor:pointer !important; backdrop-filter:blur(4px) !important; -webkit-backdrop-filter:blur(4px) !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 8px 22px rgba(0,0,0,.45) !important; transition:box-shadow .28s ease,border-color .28s ease !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid > .iptv365-load-more:hover,
body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid > .iptv365-load-more:focus-visible { border-color:rgba(103,220,255,.95) !important; box-shadow:0 0 10px rgba(0,194,255,.7),0 0 26px rgba(0,145,255,.35),inset 0 1px 0 rgba(255,255,255,.18) !important; outline:none !important; }

/* Change #4 (user-approved): movie card info badges under the cleaned title —
   small glass pills; the year badge carries a restrained gold accent. */
body.iptv365-movies-mode #mediaWorkspaceScreen .poster-info { flex-wrap:wrap !important; row-gap:4px !important; align-content:center !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .poster-badges { display:flex !important; flex-wrap:wrap !important; gap:5px !important; justify-content:center !important; align-items:center !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .poster-badge { font-size:10.5px !important; font-weight:800 !important; letter-spacing:.05em !important; line-height:1 !important; padding:3px 8px !important; border-radius:999px !important; border:1px solid rgba(255,255,255,.3) !important; background:rgba(255,255,255,.08) !important; color:#eaf6ff !important; white-space:nowrap !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .poster-badge--year { color:#ffd76a !important; border-color:rgba(255,215,106,.5) !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .poster-badge--rating { color:#ffe9a8 !important; }

/* Change #5 (user-approved): sidebar category count pills, the gold adult PIN
   pill, and the parental PIN gate overlay. */
.iptv365-category-count { margin-left:auto !important; flex:0 0 auto !important; font-size:11px !important; font-weight:800 !important; letter-spacing:.03em !important; line-height:1 !important; padding:4px 9px !important; border-radius:999px !important; border:1px solid rgba(255,255,255,.25) !important; background:rgba(255,255,255,.09) !important; color:#eaf6ff !important; }
.iptv365-category-pin { margin-left:auto !important; flex:0 0 auto !important; font-size:11px !important; font-weight:800 !important; letter-spacing:.03em !important; line-height:1 !important; padding:4px 9px !important; border-radius:999px !important; border:1px solid rgba(255,215,106,.55) !important; background:rgba(255,215,106,.08) !important; color:#ffd76a !important; }
.iptv365-pin-gate { position:fixed !important; inset:0 !important; z-index:9999 !important; display:flex !important; align-items:center !important; justify-content:center !important; background:rgba(1,6,16,.72) !important; backdrop-filter:blur(6px) !important; }
.iptv365-pin-card { width:min(92vw,340px) !important; box-sizing:border-box !important; padding:24px 22px !important; border-radius:18px !important; border:1px solid rgba(103,220,255,.4) !important; background:linear-gradient(160deg,rgba(6,26,48,.97),rgba(2,10,22,.97)) !important; box-shadow:0 24px 60px rgba(0,0,0,.6) !important; text-align:center !important; }
.iptv365-pin-title { font-size:18px !important; font-weight:900 !important; color:#fff !important; }
.iptv365-pin-text { margin:8px 0 14px !important; font-size:13.5px !important; color:#bcd9f5 !important; }
.iptv365-pin-input { display:block !important; width:100% !important; box-sizing:border-box !important; margin:0 0 10px !important; padding:11px 12px !important; border-radius:10px !important; border:1px solid rgba(255,255,255,.3) !important; background:rgba(255,255,255,.06) !important; color:#fff !important; font-size:17px !important; font-weight:800 !important; letter-spacing:.35em !important; text-align:center !important; }
.iptv365-pin-error { margin:2px 0 8px !important; font-size:13px !important; font-weight:700 !important; color:#ff9d9d !important; }
.iptv365-pin-actions { display:flex !important; gap:10px !important; margin-top:6px !important; }
.iptv365-pin-actions button { flex:1 1 0 !important; padding:11px 10px !important; border-radius:999px !important; border:1px solid rgba(255,255,255,.3) !important; background:rgba(255,255,255,.06) !important; color:#fff !important; font-size:14px !important; font-weight:800 !important; cursor:pointer !important; }
.iptv365-pin-actions .iptv365-pin-ok { border-color:rgba(103,220,255,.8) !important; background:rgba(0,140,255,.18) !important; }

/* Change #6 (user-approved): slightly larger, more cinematic movie cards.
   Desktop only — the min-width:1251px scope leaves the existing 4/3/2-column
   breakpoints completely untouched. The 5-column layout is preserved: cards
   gain width from a tighter column gap and trimmer grid side padding.
   Card aspect .72 -> .695 makes cards ~9% taller overall and moves the
   poster box closer to the native 2/3 poster ratio, so artwork is cropped
   slightly LESS than before; object-fit stays cover (never distorted). */
@media (min-width:1251px) {
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid { column-gap:12px !important; padding-left:2px !important; padding-right:2px !important; }
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPosterGrid > .poster-card { aspect-ratio:.695 / 1 !important; }
}

/* Change #7 (user-approved): smart Load More states — a soft pulse while the
   button waits at the bottom (auto-load dwell) and a dimmed busy state while
   the next batch is being appended. */
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv365-load-more--waiting { animation:iptv365LoadMorePulse 1.1s ease-in-out infinite !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv365-load-more--loading { opacity:.72 !important; pointer-events:none !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv365-load-more[disabled] { cursor:wait !important; }
@keyframes iptv365LoadMorePulse { 0%,100% { box-shadow:0 0 0 rgba(0,194,255,0); } 50% { box-shadow:0 0 16px rgba(0,194,255,.55); } }

/* ===== Change #8 (user-requested): Movies — sidebar + poster grid fit snug
   to the top toolbar. Only the split-workspace top padding changes
   (clamp(16px,2.2vh,26px) -> 6px) on viewports >= 851px, so both columns
   move up together; small-screen layouts keep their current padding. ===== */
@media (min-width:851px) {
  body.iptv365-movies-mode #mediaWorkspaceScreen .split-workspace { padding-top:6px !important; }
}

/* ===== Change #9 (user-approved design): professional search toggle in the
   Movies top bar. The toggle + clear buttons are added by app.js
   (setupMoviesSearchToggle). They stay hidden everywhere except Movies
   mode on viewports >= 851px; Series and small screens keep the current
   always-visible search field exactly as before. Collapsed, the slot
   shrinks to just the magnifier button; open (.iptv365-search-open), the
   field expands right-aligned next to the favourites button and the
   legacy max-width:34% clamp from premium-unified.css is lifted. ===== */
.iptv365-search-toggle, .iptv365-search-clear { display:none !important; }
@media (min-width:851px) {
  body.iptv365-movies-mode .iptv365-search-toggle {
    display:grid !important; place-items:center; flex:0 0 48px; width:48px; height:44px; padding:0;
    border:1px solid rgba(0,166,255,.48); border-radius:13px;
    background:linear-gradient(135deg,rgba(5,29,49,.96),rgba(1,13,27,.96));
    cursor:pointer; box-shadow:inset 0 0 12px rgba(0,140,255,.07);
    transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }
  body.iptv365-movies-mode .iptv365-search-toggle:hover,
  body.iptv365-movies-mode .iptv365-search-toggle:focus-visible {
    border-color:#20bdff; box-shadow:0 0 12px rgba(0,166,255,.34), inset 0 0 12px rgba(0,140,255,.12);
    transform:translateY(-1px); outline:none;
  }
  body.iptv365-movies-mode .iptv365-search-toggle.is-open {
    border-color:#20bdff; box-shadow:0 0 12px rgba(0,166,255,.34), inset 0 0 12px rgba(0,140,255,.12);
  }
  body.iptv365-movies-mode .iptv365-movies-search-slot:not(.iptv365-search-open) {
    flex:0 0 auto !important; width:auto !important; min-width:0 !important;
  }
  body.iptv365-movies-mode .iptv365-movies-search-slot:not(.iptv365-search-open) #mediaTitleSearch,
  body.iptv365-movies-mode .iptv365-movies-search-slot:not(.iptv365-search-open) .iptv365-search-clear {
    display:none !important;
  }
  body.iptv365-movies-mode .iptv365-movies-search-slot.iptv365-search-open {
    align-items:center !important; gap:9px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen .iptv365-movies-search-slot.iptv365-search-open #mediaTitleSearch {
    flex:1 1 auto !important; width:auto !important; max-width:none !important;
    background-image:none !important; padding:0 40px 0 16px !important;
  }
  body.iptv365-movies-mode .iptv365-search-clear {
    display:grid !important; place-items:center; flex:0 0 26px; width:26px; height:26px;
    margin:0 0 0 -37px; padding:0; border:0; border-radius:50%;
    background:rgba(0,166,255,.16); color:#cfe9ff; font-size:13px; line-height:1;
    cursor:pointer; z-index:2;
  }
  body.iptv365-movies-mode .iptv365-search-clear:hover,
  body.iptv365-movies-mode .iptv365-search-clear:focus-visible {
    background:rgba(0,166,255,.32); outline:none;
  }
}

/* ===== Change #14 (user-approved): the user's 365 PLAYER badge (transparent
   assets/player365-badge.png) replaces the old logo in the Movies header
   brand and the missing-poster fallback. ===== */
body.iptv365-movies-mode .iptv365-movie-brand { width:167px !important; height:56px !important; background:url("assets/player365-fallback-logo.png") center / contain no-repeat !important; }
body.iptv365-movies-mode .iptv365-movie-brand > span { display:none !important; }
body.iptv365-movies-mode #mediaWorkspaceScreen .poster-fallback {
  background:#020b17 url("assets/player365-fallback-logo.png") center / 72% auto no-repeat !important;
}

/* ===== Change #38 (user-approved): wide responsive toolbar logo. The new
   neon pill logo (assets/player365-fallback-logo.png) is 3:1, so the brand
   grows wider with the header; smaller sizes at narrow widths so the
   centered heading and header tools never collide. ===== */
@media (max-width:1100px) {
  body.iptv365-movies-mode .iptv365-movie-brand { width:143px !important; height:48px !important; }
}
@media (max-width:600px) {
  body.iptv365-movies-mode .iptv365-movie-brand { width:119px !important; height:40px !important; }
}

/* ===== Change #53 (user-approved): unified category sidebar — the Live TV
   sidebar design (#45 rows + #51 gold search field, values verbatim) applied
   to Movies. Desktop only (min-width:851px); portrait/small screens keep
   their current behavior. Live TV itself is untouched (no rule here targets
   it). The media search handler already exists and works (app.js) — this is
   a restyle only; no DOM or JS change. The gold PIN pill is deliberately
   untouched (media-only, no Live equivalent). Long names WRAP to 2 lines
   like Live (user's pick) instead of the old ellipsis. Values ported from
   the approved preview simulation (smoke24/unifiedsidebar/override.css). */
@media (min-width:851px) {

  /* Sidebar shell — Live #45: transparent, gold-tinted right border. */
  body.iptv365-movies-mode #mediaWorkspaceScreen .left-list-panel {
    padding: 0 10px 4px 2px !important;
    background: transparent !important;
    border-right: 1px solid rgba(240, 201, 79, .16) !important;
    box-shadow: none !important;
  }

  /* Search field — Live #51 gold-tinted field, verbatim values. The media
     input is bare (no wrapping label), so the magnifier is a background
     SVG (same technique the title search already uses). */
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPanelSearch {
    flex: 0 0 50px !important;
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 0 10px !important;
    padding: 0 14px 0 46px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(240, 201, 79, 0.85) !important;
    border-radius: 12px !important;
    outline: none !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23ffd76a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"), linear-gradient(100deg, rgba(240, 201, 79, 0.30), rgba(240, 201, 79, 0.13)) !important;
    background-repeat: no-repeat !important;
    background-position: left 14px center, 0 0 !important;
    background-size: 22px 22px, auto !important;
    box-shadow: 0 4px 18px rgba(240, 201, 79, 0.14) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPanelSearch::placeholder {
    color: rgba(255, 238, 190, 0.88) !important;
    opacity: 1 !important;
    font-weight: 650 !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaPanelSearch:focus {
    border-color: #ffd76a !important;
    box-shadow: 0 0 0 3px rgba(240, 201, 79, 0.35), 0 4px 22px rgba(240, 201, 79, 0.25) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23ffd76a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"), linear-gradient(100deg, rgba(240, 201, 79, 0.38), rgba(240, 201, 79, 0.18)) !important;
  }

  /* List — Live #45: gap 8px, padding, gold scrollbar. */
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaCategoryList {
    gap: 8px !important;
    padding: 10px 2px 6px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(240, 201, 79, .55) transparent !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaCategoryList::-webkit-scrollbar {
    width: 6px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaCategoryList::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f0c94f, #8a6a1c) !important;
    border-radius: 6px !important;
  }

  /* Rows — Live #45 values verbatim. */
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaCategoryList .list-item-btn {
    min-height: 50px !important;
    padding: 9px 14px !important;
    gap: 12px !important;
    border: 1px solid rgba(255, 255, 255, .09) !important;
    border-radius: 12px !important;
    background: linear-gradient(100deg, rgba(16, 20, 36, .72), rgba(8, 10, 22, .72)) !important;
    color: #f6f8ff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: .01em !important;
    box-shadow: none !important;
  }

  /* Label — Live behavior: no ellipsis, long names wrap to 2 lines. */
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaCategoryList .list-item-btn .iptv365-category-label {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  /* Icon/flag slot — Live #45: 26px box, 17px, gold. */
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaCategoryList .list-item-btn .iptv365-category-flag,
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaCategoryList .list-item-btn .iptv365-category-icon {
    display: inline-flex !important;
    flex: 0 0 26px !important;
    width: 26px !important;
    min-width: 26px !important;
    height: auto !important;
    align-items: center !important;
    justify-content: center !important;
    color: #f0c94f !important;
    font-size: 17px !important;
    line-height: 1 !important;
    filter: none !important;
  }

  /* Count pill — Live #45 values. The gold PIN pill is NOT touched. */
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaCategoryList .list-item-btn .iptv365-category-count {
    margin-left: auto !important;
    flex: 0 0 auto !important;
    padding: 3px 8px !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .06) !important;
    color: #c9d4e8 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  /* Hover + focus — Live #45 values verbatim. */
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaCategoryList .list-item-btn:hover,
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaCategoryList .list-item-btn:focus-visible {
    border-color: rgba(240, 201, 79, .45) !important;
    background: linear-gradient(100deg, rgba(28, 32, 54, .82), rgba(12, 14, 28, .82)) !important;
    box-shadow: none !important;
    outline: none !important;
  }

  /* Active row — Live #45 gold gradient. */
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaCategoryList .list-item-btn.active {
    border: 1px solid #ffd76a !important;
    background: linear-gradient(100deg, #ffd76a, #e8a90c 72%, #d18f00) !important;
    color: #1a1206 !important;
    box-shadow: 0 0 12px rgba(240, 201, 79, .35), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaCategoryList .list-item-btn.active .iptv365-category-flag,
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaCategoryList .list-item-btn.active .iptv365-category-icon {
    color: #1a1206 !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen #mediaCategoryList .list-item-btn.active .iptv365-category-count {
    border-color: rgba(26, 18, 6, .35) !important;
    background: rgba(26, 18, 6, .12) !important;
    color: #1a1206 !important;
  }
}

/* ===== Change #55 (user-approved): sidebar position alignment — Movies.
   Neutralize the stale inset:12px leftover (premium-unified.css L902) and set
   the workspace padding to Live TV's 12px, so the sidebar search field sits
   at exactly Live's spot (left 14 / top 91) and the toolbar gap matches
   (22px). Mirrors the Live precedent (galaxy-workspace-fix.css L169).
   Desktop only (min-width:851px); portrait/small screens unchanged. Values
   verbatim from the proven preview simulation
   (smoke24/sidebarpos/override.css). Grid gap and all other rules untouched. */
@media (min-width: 851px) {
  body.iptv365-movies-mode #mediaWorkspaceScreen .split-workspace {
    inset: auto !important;
    padding: 12px !important;
  }
}

/* ==================================================================
   Change #74 (user-approved 2026-11-14): Movies redesign, mobile
   portrait only. Scoped to the redesign class the controller adds to
   #mediaWorkspaceScreen for Movies + portrait. Desktop, landscape,
   Series and Live TV are untouched.
   ================================================================== */
@media (max-width: 950px) and (orientation: portrait) {
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .split-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 0 !important;
    inset: auto !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .left-list-panel {
    display: none !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid {
    padding-bottom: 96px !important;
    overflow-anchor: none !important;
  }
  /* Change #223 (2026-11-17): the burgundy radial gradient below hid
     the owner's wallpaper on Movies home — the workspace behind this
     grid already paints var(--iptv365-global-bg). Transparent lets
     the wallpaper show through; display + padding unchanged. */
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid.iptv365-mhome-open {
    display: block !important;
    padding: 12px 12px 96px !important;
    background: transparent !important;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-pills {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-pills::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-pill {
    flex: 0 0 auto; white-space: nowrap; padding: 9px 14px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
    color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-pill.is-active {
    background: linear-gradient(100deg, #ffe875, #ffc400 70%, #ffad00);
    color: #1a0d00; border-color: transparent;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-hero {
    position: relative; height: 210px; border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(212, 175, 55, .55); background: #1c0a10;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-hero-art {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-hero-shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .82));
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-hero-copy {
    position: absolute; left: 14px; right: 14px; bottom: 14px; color: #fff;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-hero-kicker {
    font-size: 10px; font-weight: 700; letter-spacing: .8px; color: #f5d76e; margin-bottom: 4px;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-hero-title {
    font-size: 23px; font-weight: 800; line-height: 1.15;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-hero-meta {
    font-size: 12px; color: rgba(255, 255, 255, .82); margin-top: 4px;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-hero-actions {
    display: flex; gap: 8px; margin-top: 10px;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-hero-btn {
    padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-hero-btn.gold {
    background: linear-gradient(100deg, #ffe875, #ffc400 70%, #ffad00); color: #1a0d00; border: none;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-hero-btn.ghost {
    background: rgba(0, 0, 0, .45); color: #fff; border: 1px solid rgba(255, 255, 255, .5);
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-hero-dots {
    position: absolute; right: 12px; bottom: 12px; display: flex; gap: 5px;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-hero-dot {
    width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0;
    background: rgba(255, 255, 255, .45); cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-hero-dot.on {
    width: 18px; border-radius: 999px; background: #ffc400;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-rowsec { margin-top: 20px; }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-rowhead {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 10px;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-seemore {
    padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(212, 175, 55, .7);
    background: transparent; color: #f5d76e; font-size: 12px; font-weight: 700; cursor: pointer;
    white-space: nowrap;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-row {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-row .poster-card {
    position: relative !important; display: block !important; width: 100% !important;
    aspect-ratio: .72 / 1 !important; overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .22) !important; border-radius: 12px !important;
    background: #020b17 !important; cursor: pointer !important; isolation: isolate !important;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-row .iptv365-fav-star {
    width: 24px !important; height: 24px !important; font-size: 15px !important;
    top: 5px !important; right: 5px !important;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-ph {
    aspect-ratio: .72 / 1; border-radius: 12px; background: rgba(255, 255, 255, .07);
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-allcountries {
    width: 100%; margin-top: 22px; padding: 13px; border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, .7); background: transparent;
    color: #f5d76e; font-size: 14px; font-weight: 700; cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chrome {
    background: rgba(10, 4, 8, .94); border-bottom: 1px solid rgba(212, 175, 55, .35);
    padding: 10px 12px 8px; flex: none;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chrome-row {
    display: flex; align-items: center; gap: 10px;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chrome-back {
    flex: none; width: 34px; height: 34px; border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, .7); background: transparent;
    color: #f5d76e; font-size: 22px; line-height: 1; cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chrome-title {
    flex: 1 1 auto; min-width: 0; text-align: center; color: #fff;
    font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chrome-sort {
    flex: none; max-width: 118px; height: 34px; padding: 0 6px; border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, .7); background: #160409; color: #f5d76e;
    font-size: 12px; font-weight: 700; cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chrome-row2 {
    display: flex; align-items: center; gap: 10px; margin-top: 8px;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chrome-count {
    flex: none; color: #f5d76e; font-size: 12px; font-weight: 700; white-space: nowrap;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chrome-search { flex: 1 1 auto; min-width: 0; }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chrome-search .search-input {
    width: 100% !important; height: 36px !important; margin: 0 !important;
    background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .25) !important;
    border-radius: 10px !important; color: #fff !important; font-size: 13px !important;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-topbar {
    display: flex; align-items: center; gap: 10px; padding: 4px 0 14px;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-topbar-back {
    flex: none; width: 34px; height: 34px; border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, .7); background: transparent;
    color: #f5d76e; font-size: 22px; line-height: 1; cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-topbar-title {
    flex: 1 1 auto; text-align: center; color: #fff; font-size: 18px; font-weight: 800;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-topbar-spacer { flex: none; width: 34px; }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-countryrow {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 15px 6px; border: none; border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: transparent; color: #fff; font-size: 15px; font-weight: 600;
    text-align: left; cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-countryrow.is-total { cursor: default; opacity: .85; }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-country-flag { font-size: 22px; }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-country-name { flex: 1 1 auto; }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-country-count { color: #f5d76e; font-size: 13px; font-weight: 700; }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-country-chev { color: #d4af37; font-size: 18px; }
  /* Details: art card on top, poster overlapping, title beside it. */
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) > .iptv-media-details {
    padding: 12px !important; min-height: 0 !important; height: auto !important; max-height: none !important;
    flex: none !important;
    background: linear-gradient(160deg, #2a0a12, #0d0307 70%) !important;
    border-color: rgba(212, 175, 55, .5) !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, .22) !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-details:hover {
    border-color: rgba(212, 175, 55, .8) !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, .35) !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-detail-backdrop {
    position: relative !important; inset: auto !important; z-index: 0 !important;
    flex: none !important; height: 230px !important;
    border-radius: 16px !important; overflow: hidden !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-detail-backdrop img {
    opacity: .85 !important; filter: blur(2px) saturate(1.15) !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-detail-shade {
    top: 12px !important; left: 12px !important; right: 12px !important; bottom: auto !important;
    height: 230px !important; z-index: 1 !important; border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55)) !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-back {
    position: absolute !important; top: 24px !important; left: 24px !important;
    z-index: 5 !important; margin: 0 !important;
    width: 40px !important; height: 40px !important; padding: 0 !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    border-radius: 50% !important; background: rgb(1, 18, 34) !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-back::before,
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-back::after {
    content: none !important; display: none !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-back .iptv-back-label {
    display: none !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-back .iptv-back-icon {
    margin: 0 !important; font-size: 20px !important; line-height: 1 !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-detail-layout {
    grid-template-columns: 104px minmax(0, 1fr) !important;
    gap: 12px !important; align-items: start !important; justify-items: stretch !important;
    align-content: start !important; height: auto !important; flex: none !important;
    margin-top: -72px !important; padding: 0 4px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-detail-poster-wrap {
    width: 104px !important; max-width: 104px !important; margin: 0 !important;
    height: 156px !important; min-height: 156px !important; max-height: none !important;
    justify-self: start !important; border: 2px solid #d4af37 !important; border-radius: 14px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-detail-poster {
    object-fit: cover !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-detail-copy {
    padding: 8px 0 0 !important; max-height: none !important; overflow-y: visible !important;
    justify-content: flex-start !important; align-items: stretch !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-detail-title {
    font-size: 22px !important; margin-bottom: 8px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-detail-meta {
    font-size: 12px !important; margin-bottom: 0 !important; gap: 6px 10px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-detail-below {
    grid-column: 1 / -1 !important; display: flex !important; flex-direction: column !important;
    gap: 12px !important; margin-top: 4px !important; min-width: 0 !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-detail-description {
    margin: 0 !important; font-size: 14px !important; line-height: 1.6 !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv-media-play {
    width: 100% !important;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chips {
    display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chip {
    padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(0, 0, 0, .45); color: #fff; font-size: 11px; font-weight: 700;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-watchlist {
    width: 100%; height: 46px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06);
    color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-mini {
    display: flex; gap: 8px;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-mini-btn {
    flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 6px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06);
    color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-cast {
    color: #e8dcc0; font-size: 13px; line-height: 1.5;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-similar { margin-top: 18px; }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-similar-head {
    font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 10px;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-similar-row {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-minicard {
    background: none; border: none; padding: 0; text-align: left; cursor: pointer; min-width: 0;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-minicard-poster {
    position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18); background: #020b17;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-minicard-poster img {
    display: block; width: 100%; height: 100%; object-fit: cover;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-minicard-fallback {
    display: grid; place-items: center; width: 100%; height: 100%; font-size: 26px;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-minicard-name {
    margin-top: 6px; color: #fff; font-size: 11px; line-height: 1.3; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
}
/* Dropdown: appended to <body>, so it lives outside the portrait scope
   above; the controller only opens it in portrait Movies. */
.iptv365-mhome-dropdown {
  position: fixed; z-index: 8500; min-width: 220px; max-width: calc(100vw - 16px);
  max-height: 60dvh; overflow-y: auto; padding: 6px;
  background: rgba(22, 4, 9, .97); border: 1px solid rgba(212, 175, 55, .55);
  border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .6);
}
.iptv365-mhome-drop-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 10px; border: none; border-radius: 10px; background: transparent;
  color: #fff; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer;
}
.iptv365-mhome-drop-row:hover { background: rgba(255, 255, 255, .08); }
.iptv365-mhome-drop-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iptv365-mhome-drop-count { color: #f5d76e; font-size: 12px; font-weight: 700; }

/* Change #75: Resume Tracking + Continue Watching (portrait Movies redesign). */
@media (max-width: 950px) and (orientation: portrait) {
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-cw-progress {
    position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: rgba(255, 255, 255, .28); z-index: 6; overflow: hidden;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-cw-progress > i {
    display: block; height: 100%; background: #ffc400;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-cw-left {
    position: absolute; top: 6px; left: 6px; z-index: 6; padding: 2px 7px;
    border-radius: 999px; background: rgba(0, 0, 0, .75); color: #ffd75e;
    font-size: 10px; font-weight: 700; white-space: nowrap;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-cw-resume-line {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #ffd75e; font-weight: 700;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-cw-resume-line .iptv365-cw-bar {
    flex: 1 1 auto; height: 5px; border-radius: 99px;
    background: rgba(255, 255, 255, .22); overflow: hidden;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-cw-resume-line .iptv365-cw-bar > i {
    display: block; height: 100%; background: #ffc400;
  }
}
/* Change #75: resume marker on series episode rows (all sizes). */
#mediaWorkspaceScreen .iptv-episode-row { position: relative; }
#mediaWorkspaceScreen .iptv365-resume-mark {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255, 255, 255, .18); overflow: hidden;
}
#mediaWorkspaceScreen .iptv365-resume-mark > i { display: block; height: 100%; background: #ffc400; }

/* Change #76: Series redesign (portrait only) — mirrors the Movies
   redesign (Change #74) + Continue Watching (Change #75). Season tabs
   are compact horizontal pills (user refinement: the stacked
   full-width season blocks looked too wide). */
@media (max-width: 950px) and (orientation: portrait) {
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign .split-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 0 !important;
    inset: auto !important;
  }
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign .left-list-panel {
    display: none !important;
  }
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign #iptv365MoviesHeader {
    display: none !important;
  }
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign #mediaPosterGrid {
    padding-bottom: 96px !important;
    overflow-anchor: none !important;
  }
  /* Category/collection grids: 2 columns, like the Movies redesign
     (the standard series grid is 3 columns at this width). Inert on
     the home/details grids, which render as blocks. */
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign #mediaPosterGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  /* Change #223 (2026-11-17): same burgundy-gradient removal as the
     Movies rule above — the Series home grid was hiding the owner's
     wallpaper too. Transparent lets it show through. */
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign #mediaPosterGrid.iptv365-mhome-open {
    display: block !important;
    padding: 12px 12px 96px !important;
    background: transparent !important;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-pills {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-pills::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-pill {
    flex: 0 0 auto; white-space: nowrap; padding: 9px 14px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
    color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-pill.is-active {
    background: linear-gradient(100deg, #ffe875, #ffc400 70%, #ffad00);
    color: #1a0d00; border-color: transparent;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-hero {
    position: relative; height: 210px; border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(212, 175, 55, .55); background: #1c0a10;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-hero-art {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-hero-shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .82));
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-hero-copy {
    position: absolute; left: 14px; right: 14px; bottom: 14px; color: #fff;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-hero-kicker {
    font-size: 10px; font-weight: 700; letter-spacing: .8px; color: #f5d76e; margin-bottom: 4px;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-hero-title {
    font-size: 23px; font-weight: 800; line-height: 1.15;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-hero-meta {
    font-size: 12px; color: rgba(255, 255, 255, .82); margin-top: 4px;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-hero-actions {
    display: flex; gap: 8px; margin-top: 10px;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-hero-btn {
    padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-hero-btn.gold {
    background: linear-gradient(100deg, #ffe875, #ffc400 70%, #ffad00); color: #1a0d00; border: none;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-hero-btn.ghost {
    background: rgba(0, 0, 0, .45); color: #fff; border: 1px solid rgba(255, 255, 255, .5);
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-hero-dots {
    position: absolute; right: 12px; bottom: 12px; display: flex; gap: 5px;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-hero-dot {
    width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0;
    background: rgba(255, 255, 255, .45); cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-hero-dot.on {
    width: 18px; border-radius: 999px; background: #ffc400;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-rowsec { margin-top: 20px; }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-rowhead {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 10px;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-seemore {
    padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(212, 175, 55, .7);
    background: transparent; color: #f5d76e; font-size: 12px; font-weight: 700; cursor: pointer;
    white-space: nowrap;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-row {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-row .poster-card {
    position: relative !important; display: block !important; width: 100% !important;
    aspect-ratio: .72 / 1 !important; overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .22) !important; border-radius: 12px !important;
    background: #020b17 !important; cursor: pointer !important; isolation: isolate !important;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-row .iptv365-fav-star {
    width: 24px !important; height: 24px !important; font-size: 15px !important;
    top: 5px !important; right: 5px !important;
  }
  /* Series cards do not get the movies-scoped poster-info layout, so the
     row cards need it spelled out (proven in the Preview81 mock). */
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-row .poster-card .poster-info {
    position: absolute !important; z-index: 2 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    display: flex !important; flex-wrap: wrap !important; align-items: center !important; justify-content: center !important;
    align-content: center !important; row-gap: 4px !important; width: 100% !important;
    min-height: 46px !important; max-height: 36% !important; margin: 0 !important; padding: 6px 5px !important;
    box-sizing: border-box !important; overflow: hidden !important;
    background: linear-gradient(180deg, rgba(0, 5, 12, .62), rgba(0, 5, 12, .88)) !important;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-row .poster-card .poster-title {
    width: 100% !important; text-align: center !important; font-size: 11px !important; line-height: 1.25 !important;
    display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-row .poster-card .poster-badges {
    display: flex !important; gap: 4px !important; justify-content: center !important;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-ph {
    aspect-ratio: .72 / 1; border-radius: 12px; background: rgba(255, 255, 255, .07);
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-allcountries {
    width: 100%; margin-top: 22px; padding: 13px; border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, .7); background: transparent;
    color: #f5d76e; font-size: 14px; font-weight: 700; cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chrome {
    background: rgba(10, 4, 8, .94); border-bottom: 1px solid rgba(212, 175, 55, .35);
    padding: 10px 12px 8px; flex: none;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chrome-row {
    display: flex; align-items: center; gap: 10px;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chrome-back {
    flex: none; width: 34px; height: 34px; border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, .7); background: transparent;
    color: #f5d76e; font-size: 22px; line-height: 1; cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chrome-title {
    flex: 1 1 auto; min-width: 0; text-align: center; color: #fff;
    font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chrome-sort {
    flex: none; max-width: 118px; height: 34px; padding: 0 6px; border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, .7); background: #160409; color: #f5d76e;
    font-size: 12px; font-weight: 700; cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chrome-row2 {
    display: flex; align-items: center; gap: 10px; margin-top: 8px;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chrome-count {
    flex: none; color: #f5d76e; font-size: 12px; font-weight: 700; white-space: nowrap;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chrome-search { flex: 1 1 auto; min-width: 0; }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chrome-search .search-input {
    width: 100% !important; height: 36px !important; margin: 0 !important;
    background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .25) !important;
    border-radius: 10px !important; color: #fff !important; font-size: 13px !important;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-topbar {
    display: flex; align-items: center; gap: 10px; padding: 4px 0 14px;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-topbar-back {
    flex: none; width: 34px; height: 34px; border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, .7); background: transparent;
    color: #f5d76e; font-size: 22px; line-height: 1; cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-topbar-title {
    flex: 1 1 auto; text-align: center; color: #fff; font-size: 18px; font-weight: 800;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-topbar-spacer { flex: none; width: 34px; }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-countryrow {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 15px 6px; border: none; border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: transparent; color: #fff; font-size: 15px; font-weight: 600;
    text-align: left; cursor: pointer;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-countryrow.is-total { cursor: default; opacity: .85; }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-country-flag { font-size: 22px; }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-country-name { flex: 1 1 auto; }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-country-count { color: #f5d76e; font-size: 13px; font-weight: 700; }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-country-chev { color: #d4af37; font-size: 18px; }
  /* Details back button: clean 40px circle, like Movies. The arrow is a
     CSS escape so no literal glyph can mojibake. */
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign .iptv-series-details .iptv-media-back {
    position: absolute !important; top: 12px !important; left: 12px !important;
    z-index: 5 !important; margin: 0 !important;
    width: 40px !important; height: 40px !important; padding: 0 !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    border-radius: 50% !important; background: rgb(1, 18, 34) !important;
    border: 1px solid rgba(255, 255, 255, .25) !important;
    font-size: 0 !important; color: #fff !important;
  }
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign .iptv-series-details .iptv-media-back::before {
    content: none !important; display: none !important;
  }
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign .iptv-series-details .iptv-media-back::after {
    content: "\2190" !important; display: block !important;
    font-size: 20px !important; line-height: 1 !important;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chips {
    display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chip {
    padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(0, 0, 0, .45); color: #fff; font-size: 11px; font-weight: 700;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-shome-resume {
    display: block; width: 100%; margin: 14px 0 4px; padding: 13px 16px;
    border: none; border-radius: 999px; cursor: pointer;
    background: linear-gradient(100deg, #ffe875, #ffc400 70%, #ffad00);
    color: #1a0d00; font-size: 14px; font-weight: 800;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-mini {
    display: flex; gap: 8px; margin-top: 10px;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-mini-btn {
    flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 6px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06);
    color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-cast {
    color: #e8dcc0; font-size: 13px; line-height: 1.5;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-similar { margin-top: 18px; }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-similar-head {
    font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 10px;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-similar-row {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-minicard {
    background: none; border: none; padding: 0; text-align: left; cursor: pointer; min-width: 0;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-minicard-poster {
    position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18); background: #020b17;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-minicard-poster img {
    display: block; width: 100%; height: 100%; object-fit: cover;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-minicard-fallback {
    display: grid; place-items: center; width: 100%; height: 100%; font-size: 26px;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-minicard-name {
    margin-top: 6px; color: #fff; font-size: 11px; line-height: 1.3; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  /* Continue Watching overlays (same values as Change #75, series scope). */
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-cw-progress {
    position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: rgba(255, 255, 255, .28); z-index: 6; overflow: hidden;
  }
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-cw-progress > i {
    display: block; height: 100%; background: #ffc400;
  }
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-cw-left {
    position: absolute; top: 6px; left: 6px; z-index: 6; padding: 2px 7px;
    border-radius: 999px; background: rgba(0, 0, 0, .75); color: #ffd75e;
    font-size: 10px; font-weight: 700; white-space: nowrap;
  }
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-cw-ep {
    position: absolute; top: 28px; left: 6px; z-index: 6; padding: 2px 7px;
    border-radius: 999px; background: rgba(0, 0, 0, .75); color: #7fd4ff;
    font-size: 10px; font-weight: 700; white-space: nowrap;
  }
  /* Season tabs: compact horizontal pills (user refinement). The active
     tab keeps its blue fill; only the layout/width changes. */
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign .iptv-series-details .iptv-season-tabs {
    display: flex !important; gap: 8px !important; overflow-x: auto !important;
    grid-template-columns: none !important;
    width: 100% !important; margin: 12px 0 16px !important; padding: 2px 0 4px !important;
    scrollbar-width: none !important;
  }
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign .iptv-series-details .iptv-season-tabs::-webkit-scrollbar {
    width: 0 !important; height: 0 !important; display: none !important;
  }
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign .iptv-series-details .iptv-season-tab {
    flex: 0 0 auto !important; flex-direction: row !important; gap: 6px !important;
    width: auto !important; min-height: 0 !important; padding: 9px 16px !important;
    border-radius: 999px !important; font-size: 13px !important;
  }
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign .iptv-series-details .iptv-season-tab small {
    font-size: 11px !important;
  }
}

/* Change #78: swipeable home rows (portrait only) — Movies + Series.
   User-approved Preview83. Category and country rows show 3 posters
   plus a peek of the next and slide horizontally through up to 30
   rendered posters; titles read at 12px on the bigger cards. The
   Continue Watching row (.iptv365-cw-rowsec) is EXCLUDED — it keeps
   its 4-poster fixed grid. Category/collection grids, details,
   desktop and landscape are untouched. */
@media (max-width: 950px) and (orientation: portrait) {
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-rowsec:not(.iptv365-cw-rowsec) .iptv365-mhome-row,
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-rowsec:not(.iptv365-cw-rowsec) .iptv365-mhome-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: none !important;
    gap: 10px !important;
    padding-bottom: 2px !important;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-rowsec:not(.iptv365-cw-rowsec) .iptv365-mhome-row::-webkit-scrollbar,
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-rowsec:not(.iptv365-cw-rowsec) .iptv365-mhome-row::-webkit-scrollbar {
    width: 0 !important; height: 0 !important; display: none !important;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-rowsec:not(.iptv365-cw-rowsec) .iptv365-mhome-row .poster-card,
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-rowsec:not(.iptv365-cw-rowsec) .iptv365-mhome-row .poster-card,
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-rowsec:not(.iptv365-cw-rowsec) .iptv365-mhome-row .iptv365-mhome-ph,
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-rowsec:not(.iptv365-cw-rowsec) .iptv365-mhome-row .iptv365-mhome-ph {
    flex: 0 0 calc((100% - 20px) / 3.3) !important;
    width: auto !important;
    scroll-snap-align: start !important;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-rowsec:not(.iptv365-cw-rowsec) .iptv365-mhome-row .poster-card .poster-title,
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-rowsec:not(.iptv365-cw-rowsec) .iptv365-mhome-row .poster-card .poster-title {
    font-size: 12px !important;
  }
}

/* Change #83: a favourited Movies/Series card star shows RED
   (gold = not favourited). The body-prefixed chains beat the
   movies-mode star rule; the plain rule covers any other context. */
body.iptv365-movies-mode #mediaWorkspaceScreen .iptv365-fav-star.is-fav:not(.iptv365-never),
body.iptv365-series-mode #mediaWorkspaceScreen .iptv365-fav-star.is-fav:not(.iptv365-never),
#mediaWorkspaceScreen .iptv365-fav-star.is-fav:not(.iptv365-never) {
  color:#e5484d!important;
}

/* Change #86: the Movies/Series home pills and the Series season
   pills use the desktop nav's rainbow sky-glass style when selected,
   with yellow text as the user asked. The :not() points beat the
   gold pill rules above and the series-visual.css season-tab rule
   (which loads after this file, so specificity must decide). */
#mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-pill.is-active:not(.iptv365-never),
#mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-pill.is-active:not(.iptv365-never),
#mediaWorkspaceScreen.iptv365-series-redesign .iptv-series-details .iptv-season-tab.active:not(.iptv365-never) {
  color: #ffe27a !important;
  border: 1px solid transparent !important;
  background-color: transparent !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.50), rgba(255,255,255,0.10) 42%, rgba(255,255,255,0.00) 58%),
    linear-gradient(90deg, rgba(255,138,0,0.92), rgba(255,45,149,0.92), rgba(138,43,226,0.92), rgba(0,217,255,0.92)),
    linear-gradient(90deg, #FF8A00, #FF2D95, #8A2BE2, #00D9FF) !important;
  background-origin: padding-box, padding-box, border-box !important;
  background-clip: padding-box, padding-box, border-box !important;
  -webkit-backdrop-filter: blur(8px) saturate(150%) !important;
  backdrop-filter: blur(8px) saturate(150%) !important;
  box-shadow:
    0 0 16px rgba(255, 45, 149, 0.55),
    0 0 32px rgba(138, 43, 226, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35) !important;
}
#mediaWorkspaceScreen.iptv365-series-redesign .iptv-series-details .iptv-season-tab.active small:not(.iptv365-never) {
  color: #ffe27a !important;
}

/* Change #82: the Adult 18+ country row carries a red lock treatment,
   and the Adult row on the By Country screen shows a lock panel
   instead of posters (the artwork stays behind the PIN gate). */
#mediaWorkspaceScreen .iptv365-mhome-countryrow-adult:not(.iptv365-never) {
  border-color: rgba(229, 72, 77, .75) !important;
  box-shadow: 0 0 14px rgba(229, 72, 77, .35) !important;
}
#mediaWorkspaceScreen .iptv365-mhome-countryrow-adult .iptv365-mhome-country-chev:not(.iptv365-never) {
  color: #ff8a8f !important;
}
#mediaWorkspaceScreen .iptv365-mhome-adultlock:not(.iptv365-never) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 120px !important;
  overflow: hidden !important;
  border: 1px dashed rgba(229, 72, 77, .6) !important;
  border-radius: 12px !important;
  background: rgba(229, 72, 77, .06) !important;
  color: #ff8a8f !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* Change #88 (user-approved Preview90): country-collection rows +
   clean poster cards, Movies redesign (portrait) only. */
#mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid.iptv365-mhome-3col {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
#mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-countryrows {
  display: flex !important; flex-direction: column !important; gap: 18px !important;
  padding: 4px 14px 20px !important; grid-column: 1 / -1 !important;
}
#mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-countryrow-strip {
  display: flex !important; gap: 10px !important;
}
#mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-countryrow-strip > .poster-card {
  flex: 1 1 0 !important; min-width: 0 !important; aspect-ratio: .70/1 !important;
}
#mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-countryrow-strip > .iptv365-mhome-ph {
  flex: 1 1 0 !important; aspect-ratio: .70/1 !important;
}
/* Clean cards: the poster shows fully — no overlaid name, only the
   small year chip at the bottom edge (rating/format dropped). */
#mediaWorkspaceScreen.iptv365-movies-redesign .poster-card .poster-title {
  display: none !important;
}
#mediaWorkspaceScreen.iptv365-movies-redesign .poster-card .poster-badge:not(.poster-badge--year) {
  display: none !important;
}
/* Change #90 supersedes the #88 name-below treatment: the name now
   rides INSIDE the fallback frame, below the logo (Preview92). The
   card keeps its normal shape; only the fallback internals change. */

/* Change #90 (user-approved Preview91 + Preview92): clean poster
   cards for Series (portrait redesign scope), the glass-effect
   removal for Movies, and the in-frame fallback name (below the
   logo) for both. Favourites overlay + desktop/landscape untouched. */
/* The fallback name is hidden everywhere by default; the redesign
   scopes below show it. */
.poster-fallback-name {
  display: none !important;
}
/* Movies: remove the glass overlay behind the year chip. The title
   is already hidden by the #88 rule above; the badge row keeps its
   position. */
#mediaWorkspaceScreen.iptv365-movies-redesign .poster-card .poster-info {
  background: transparent !important; box-shadow: none !important;
}
/* Movies fallback: logo upper, name below it inside the frame. */
#mediaWorkspaceScreen.iptv365-movies-redesign .poster-card .poster-fallback {
  display: flex !important; flex-direction: column !important;
  align-items: center !important; justify-content: flex-end !important;
  box-sizing: border-box !important; padding: 0 10px 18% !important;
  background-position: center 30% !important;
  background-size: 66% auto !important;
}
#mediaWorkspaceScreen.iptv365-movies-redesign .poster-card .poster-fallback-name {
  display: -webkit-box !important; -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important; overflow: hidden !important;
  max-width: 100% !important; font-size: 13px !important;
  font-weight: 700 !important; line-height: 1.3 !important;
  color: #fff !important; text-align: center !important;
  text-shadow: 0 1px 5px rgba(0,0,0,.9) !important;
}
/* Series: full poster, no glass band, no overlaid name, year chip
   on the right. The two-id chains beat series-visual.css (which
   loads last) and the #76 row-card rules. */
body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign #mediaPosterGrid .poster-card .poster-title:not(.iptv365-never) {
  display: none !important;
}
body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign #mediaPosterGrid .poster-card .poster-badge:not(.poster-badge--year):not(.iptv365-never) {
  display: none !important;
}
body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign #mediaPosterGrid .poster-card .poster-info:not(.iptv365-never) {
  background: transparent !important; box-shadow: none !important;
  min-height: 0 !important; padding: 0 8px 8px !important;
}
body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign #mediaPosterGrid .poster-card .poster-badges:not(.iptv365-never) {
  justify-content: flex-end !important; width: 100% !important;
}
/* Series fallback: logo upper, name below it inside the frame. */
body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign #mediaPosterGrid .poster-card .poster-fallback:not(.iptv365-never) {
  display: flex !important; flex-direction: column !important;
  align-items: center !important; justify-content: flex-end !important;
  box-sizing: border-box !important; padding: 0 10px 18% !important;
  background-position: center 30% !important;
  background-size: 66% auto !important;
}
body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign #mediaPosterGrid .poster-card .poster-fallback-name:not(.iptv365-never) {
  display: -webkit-box !important; -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important; overflow: hidden !important;
  max-width: 100% !important; font-size: 13px !important;
  font-weight: 700 !important; line-height: 1.3 !important;
  color: #fff !important; text-align: center !important;
  text-shadow: 0 1px 5px rgba(0,0,0,.9) !important;
}

/* Change #105 (user order): the Movies/Series home banner is removed
   in app.js; home rows show 2 full posters + a half peek, row
   posters carry no text/badges, and the full-view chrome shows only
   Back. Portrait redesign only — country rows, full grids, details,
   favourites, the country overlay and desktop/landscape untouched. */
@media (max-width: 950px) and (orientation: portrait) {
  /* 2 full cards + half of the third: 2.5 widths + 2 gaps = 100%.
     The two-id chains beat the #78 strip sizing (1,5,0). The row
     keeps the #78 flex/scroll/snap behaviour; only the card width
     changes. Home rows only (.iptv365-mhome-home-rows is added by
     the home renderers alone). */
  #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid .iptv365-mhome-home-rows .iptv365-mhome-rowsec:not(.iptv365-never) .iptv365-mhome-row .poster-card,
  #mediaWorkspaceScreen.iptv365-series-redesign #mediaPosterGrid .iptv365-mhome-home-rows .iptv365-mhome-rowsec:not(.iptv365-never) .iptv365-mhome-row .poster-card,
  #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid .iptv365-mhome-home-rows .iptv365-mhome-rowsec:not(.iptv365-never) .iptv365-mhome-row .iptv365-mhome-ph,
  #mediaWorkspaceScreen.iptv365-series-redesign #mediaPosterGrid .iptv365-mhome-home-rows .iptv365-mhome-rowsec:not(.iptv365-never) .iptv365-mhome-row .iptv365-mhome-ph {
    flex: 0 0 calc((100% - 20px) / 2.5) !important;
  }
  /* Pure posters: the whole info overlay (title + year/rating/format
     badges) is gone in home rows. The favourite star is a sibling of
     .poster-info so it stays, and the no-poster fallback name lives
     inside .poster-fallback so it stays too. */
  #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid .iptv365-mhome-home-rows .iptv365-mhome-rowsec:not(.iptv365-never) .iptv365-mhome-row .poster-card .poster-info,
  #mediaWorkspaceScreen.iptv365-series-redesign #mediaPosterGrid .iptv365-mhome-home-rows .iptv365-mhome-rowsec:not(.iptv365-never) .iptv365-mhome-row .poster-card .poster-info {
    display: none !important;
  }
  /* Full-view chrome: only the Back button on top. The chrome
     element exists only in the full views (category / country-full /
     Continue Watching collection) and is removed everywhere else, so
     this cannot leak into home, country or dropdown views. */
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chrome .iptv365-mhome-chrome-title:not(.iptv365-never),
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chrome .iptv365-mhome-chrome-title:not(.iptv365-never),
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chrome .iptv365-mhome-chrome-row2:not(.iptv365-never),
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chrome .iptv365-mhome-chrome-row2:not(.iptv365-never) {
    display: none !important;
  }
  /* The Back button itself must stay visible. Pre-existing trap:
     galaxy-workspace-fix.css hides EVERY button[aria-label*="Back"]
     inside the media screen whenever body lacks .iptv365-movies-mode
     (1,3,2) — zeroing display, visibility, opacity, pointer-events,
     width, height, min sizes, margin, padding and border, all
     !important — so the Series chrome Back (aria-label="Back") was
     invisible live. This (1,5,1) chain re-asserts every zeroed
     property the base chrome-back rule provides (margin/padding stay
     at the galaxy rule's 0 — the base rule sets neither and the ‹
     glyph stays centred); the Movies twin is harmless insurance. */
  body:not(.iptv365-movies-mode) #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chrome .iptv365-mhome-chrome-back:not(.iptv365-never),
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chrome .iptv365-mhome-chrome-back:not(.iptv365-never) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border: 1px solid rgba(212, 175, 55, .7) !important;
  }
}

/* Change #115 (user-approved Preview106): Movies home genre rows +
   More pagination + 4-column full views. Portrait redesign only —
   Series, country rows/collections, the CW collection, favourites
   and desktop/landscape untouched. */
@media (max-width: 950px) and (orientation: portrait) {
  /* The category + genre full views render four small posters per
     row. The (2,3,0) chain beats the 2-column portrait grid rule
     (2,1,1) and the 3-column rule; the class is added only by the
     redesign's full-view paths (AfterCategory + ShowGenreFull) and
     stripped by RemoveChrome, so the country full view keeps its
     3-column class and the CW collection keeps the default grid. */
  #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid.iptv365-mhome-4col:not(.iptv365-never) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  /* The home More button carries the glass Load More LOOK (copied
     declarations) but NOT the .iptv365-load-more class: that class
     is the full-view batching hook (getMoviesLoadMoreButton), and
     sharing it would let the batching machinery hijack this
     button. Block + auto margins centre it in the block-layout
     home grid; the grid's 96px bottom padding clears the fixed
     bottom bar. */
  #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid > .iptv365-mhome-more:not(.iptv365-never) {
    display: block !important;
    margin: 8px auto 26px !important;
    padding: 12px 36px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: .02em !important;
    cursor: pointer !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 22px rgba(0,0,0,.45) !important;
    transition: box-shadow .28s ease, border-color .28s ease !important;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid > .iptv365-mhome-more:hover:not(.iptv365-never),
  #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid > .iptv365-mhome-more:focus-visible:not(.iptv365-never) {
    border-color: rgba(103,220,255,.95) !important;
    box-shadow: 0 0 10px rgba(0,194,255,.7), 0 0 26px rgba(0,145,255,.35), inset 0 1px 0 rgba(255,255,255,.18) !important;
    outline: none !important;
  }
}

/* ================================================================
   Change #133 (user-approved Preview133 picture 2): full-screen
   Movies/Series home + flagged scrolling category strip.
   Portrait redesign home only — every rule is scoped to a grid
   that carries the strip, so country/category/full views keep
   their existing spacing. The tight top kills four measured
   sources: the workspace flex gap (premium-unified.css
   max-width:760px rule), the grid's 12px top padding
   (!important), the pills' 12px bottom padding, and the 20px
   top margin of the first content section after the strip.
   Inter-row spacing below is untouched. */
@media (max-width: 950px) and (orientation: portrait) {
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign:has(#mediaPosterGrid > .iptv365-mhome-strip),
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign:has(#mediaPosterGrid > .iptv365-mhome-strip) {
    gap: 0 !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid.iptv365-mhome-open:has(> .iptv365-mhome-strip),
  body.iptv365-series-mode #mediaWorkspaceScreen.iptv365-series-redesign #mediaPosterGrid.iptv365-mhome-open:has(> .iptv365-mhome-strip) {
    padding: 4px 12px 96px !important;
  }
  #mediaWorkspaceScreen #mediaPosterGrid:has(> .iptv365-mhome-strip) .iptv365-mhome-pills {
    padding: 2px 0 8px !important;
  }
  #mediaWorkspaceScreen #mediaPosterGrid .iptv365-mhome-strip + .iptv365-mhome-rowsec {
    margin-top: 0 !important;
  }
  #mediaWorkspaceScreen #mediaPosterGrid .iptv365-mhome-strip + .iptv365-mhome-home-rows > .iptv365-mhome-rowsec:first-child {
    margin-top: 0 !important;
  }
  #mediaWorkspaceScreen .iptv365-mhome-strip {
    display: flex; flex-wrap: nowrap; gap: 8px;
    overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -ms-overflow-style: none;
    padding: 0 0 10px; margin: 0;
  }
  #mediaWorkspaceScreen .iptv365-mhome-strip::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
  #mediaWorkspaceScreen .iptv365-mhome-strip-chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 12px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07);
    color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
    white-space: nowrap; cursor: pointer; max-width: 200px; overflow: hidden;
  }
  #mediaWorkspaceScreen .iptv365-mhome-strip-flag {
    flex: 0 0 auto; font-size: 16px; line-height: 1;
  }
  #mediaWorkspaceScreen .iptv365-mhome-strip-label {
    overflow: hidden; text-overflow: ellipsis;
  }
  /* Selected chip: the #86/#128 rainbow sky-glass stack, verbatim. */
  #mediaWorkspaceScreen .iptv365-mhome-strip-chip.is-active:not(.iptv365-never) {
    color: #ffe27a !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background-color: transparent !important;
    background-image:
      linear-gradient(180deg, rgba(255,255,255,0.50), rgba(255,255,255,0.10) 42%, rgba(255,255,255,0.00) 58%),
      linear-gradient(90deg, rgba(255,138,0,0.92), rgba(255,45,149,0.92), rgba(138,43,226,0.92), rgba(0,217,255,0.92)),
      linear-gradient(90deg, #FF8A00, #FF2D95, #8A2BE2, #00D9FF) !important;
    background-origin: padding-box, padding-box, border-box !important;
    background-clip: padding-box, padding-box, border-box !important;
    -webkit-backdrop-filter: blur(8px) saturate(150%) !important;
    backdrop-filter: blur(8px) saturate(150%) !important;
    box-shadow:
      0 0 16px rgba(255, 45, 149, 0.55),
      0 0 32px rgba(138, 43, 226, 0.35),
      0 4px 14px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35) !important;
  }
}

/* ================================================================
   Change #157 (user-approved): the full-view chrome title is
   visible again — the selected category/country name, centred in
   the Back button row, in Movies AND Series. The #105 hide rule
   above (same (1,4,0) chain, both !important) is beaten by
   position: this block is later in the file. Only the title's
   display is restored — the base chrome-title rule supplies the
   centred, ellipsis-clipped typography, and the count row stays
   hidden. The title element is created fresh by every full-view
   entry and removed by RemoveChrome, so it can never go stale. */
@media (max-width: 950px) and (orientation: portrait) {
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chrome .iptv365-mhome-chrome-title:not(.iptv365-never),
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chrome .iptv365-mhome-chrome-title:not(.iptv365-never) {
    display: block !important;
  }
}

/* ================================================================
   Change #166 (user order): grid-density +/− buttons in the
   full-view chrome row (Movies + Series, portrait only). The
   buttons are plain gold symbols — no circle, border, background
   or shadow — absolutely positioned at the right of the row, so
   the centred title (back + spacer, both 34px) does not move.
   The invisible tap target is ~44px tall via transparent
   padding. Series gains the 3/4-column grid rules Movies already
   had, so the density classes work in both sections. */
@media (max-width: 950px) and (orientation: portrait) {
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-chrome-row,
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-chrome-row {
    position: relative;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-density,
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-density {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; gap: 2px;
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-density-btn,
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-density-btn {
    -webkit-appearance: none; appearance: none;
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
    color: #ffe27a; font-size: 22px; font-weight: 700; line-height: 1;
    padding: 11px 10px; margin: 0; cursor: pointer;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
  }
  #mediaWorkspaceScreen.iptv365-movies-redesign .iptv365-mhome-density-btn:active,
  #mediaWorkspaceScreen.iptv365-series-redesign .iptv365-mhome-density-btn:active {
    color: #fff;
  }
  /* Series 3-column + 4-column full-view grids, mirroring the
     Movies rules. The :not(.iptv365-never) on BOTH is load-bearing:
     the Series redesign's own 2-column rule above is
     body.iptv365-series-mode ... (2,2,1) + !important, which beats
     a plain (2,2,0) class rule — the 4-column rule already used
     this trick, and the 3-column rule needs it too. */
  #mediaWorkspaceScreen.iptv365-series-redesign #mediaPosterGrid.iptv365-mhome-3col:not(.iptv365-never) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #mediaWorkspaceScreen.iptv365-series-redesign #mediaPosterGrid.iptv365-mhome-4col:not(.iptv365-never) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}

/* Change #169 (user-approved Preview169 variant 5 + dimmed banner):
   full-screen movie details, portrait only. The panel fills the
   viewport and covers the header and bottom bar; the movie's banner
   art fills the whole screen behind a dark veil so it shows through
   only faintly; poster, title, chips and plot are centred; the real
   Watchlist button is drawn as a star (top-right); Resume / Play
   from Start keep the #75 logic untouched. Series details are
   untouched: every rule here is scoped to movies mode.
   Stacking: a plain fixed panel cannot reach the viewport because
   .split-workspace carries backdrop-filter (premium-unified.css),
   which makes it the containing block for fixed descendants, and
   because the workspace paints below the header/bottom bar. The two
   :has() rules below neutralise the filter and lift the workspace
   ONLY while a details panel is in the grid; the moment any back
   path removes the panel from the DOM they stop matching, so the
   filter, stacking, scroll, bottom bar and header restore exactly
   with no JS state to manage. */
@media (max-width: 950px) and (orientation: portrait) {
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign:not(.hidden):has(#mediaPosterGrid > .iptv-media-details) {
    z-index: 99500 !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign:not(.hidden) .split-workspace:has(#mediaPosterGrid > .iptv-media-details) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 99500 !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) > .iptv-media-details {
    position: fixed !important; inset: 0 !important;
    z-index: 99000 !important;
    width: auto !important; height: auto !important; max-height: none !important;
    margin: 0 !important; padding: 0 !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    overflow-y: auto !important; overflow-x: hidden !important;
    display: flex !important; flex-direction: column !important;
    background: #050508 !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) > .iptv-media-details:hover {
    border-color: transparent !important; box-shadow: none !important;
  }
  /* Dimmed banner: fixed behind everything so it stays put while the
     content scrolls; the veil leaves the art only faintly visible. */
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv-media-detail-backdrop {
    position: fixed !important; inset: 0 !important;
    height: auto !important; z-index: 0 !important; flex: none !important;
    border-radius: 0 !important; overflow: hidden !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv-media-detail-backdrop img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; object-position: center 30% !important;
    opacity: 1 !important; filter: blur(3px) saturate(1.15) !important; transform: none !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv-media-detail-shade {
    position: fixed !important; inset: 0 !important;
    height: auto !important; z-index: 1 !important; border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(5,5,8,.88) 0%, rgba(5,5,8,.78) 45%, rgba(5,5,8,.86) 100%) !important;
  }
  /* Back: plain arrow, top-left. The existing one-step back handler
     is untouched. */
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv-media-back {
    position: absolute !important; top: 18px !important; left: 20px !important;
    z-index: 5 !important; width: auto !important; height: auto !important;
    margin: 0 !important; padding: 8px 6px !important;
    background: transparent !important; border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important; color: #fff !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv-media-back .iptv-back-icon {
    font-size: 28px !important;
  }
  /* Favourite star: the real Watchlist button (same handler/state),
     drawn as a star. Gold outline = not favourited, red filled =
     favourited (#83 rule, via the .is-fav class paintWatch sets). */
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv365-mhome-watchlist:not(.iptv365-cw-fromstart) {
    position: absolute !important; top: 16px !important; right: 20px !important;
    left: auto !important; bottom: auto !important; z-index: 6 !important;
    width: 44px !important; height: 44px !important; margin: 0 !important; padding: 0 !important;
    background: transparent !important; border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important; font-size: 0 !important; line-height: 1 !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv365-mhome-watchlist:not(.iptv365-cw-fromstart)::before {
    content: "\2606" !important; font-size: 29px !important; line-height: 44px !important; color: #ffe27a !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv365-mhome-watchlist:not(.iptv365-cw-fromstart).is-fav::before {
    content: "\2605" !important; color: #e5484d !important;
  }
  /* Centred content above the veil. */
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv-media-detail-layout {
    position: relative !important; z-index: 2 !important;
    display: flex !important; flex-direction: column !important;
    align-items: center !important; text-align: center !important;
    padding: 46px 28px 30px !important; margin: 0 !important;
    grid-template-columns: none !important; gap: 0 !important; height: auto !important; flex: none !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv-media-detail-poster-wrap {
    width: 176px !important; max-width: 176px !important;
    height: 264px !important; min-height: 264px !important; max-height: none !important;
    margin: 0 0 16px !important; justify-self: center !important;
    border: 1px solid rgba(255,255,255,.28) !important; border-radius: 20px !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.6) !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv-media-detail-copy {
    display: flex !important; flex-direction: column !important; align-items: center !important;
    padding: 0 !important; width: 100% !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv-media-detail-title {
    font-size: 27px !important; text-align: center !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv365-mhome-chips {
    justify-content: center !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv365-mhome-chip {
    background: transparent !important; border-color: rgba(255,255,255,.32) !important;
    color: rgba(255,255,255,.92) !important;
  }
  /* Duplicate meta line: chips carry the same info. Hidden via CSS
     only; the node stays in the DOM. */
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv-media-detail-meta {
    display: none !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv365-mhome-detail-below {
    width: 100% !important; gap: 12px !important; margin-top: 14px !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv-media-detail-description {
    text-align: center !important; font-size: 14px !important; line-height: 1.65 !important;
    color: rgba(255,255,255,.78) !important;
  }
  /* Trailer/Cast/Similar row + cast line stay visible below the
     buttons, inside the scrollable panel. */
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv365-mhome-cast {
    text-align: center !important;
  }
  body.iptv365-movies-mode #mediaWorkspaceScreen.iptv365-movies-redesign #mediaPosterGrid:not(.iptv365-never) .iptv365-mhome-similar {
    position: relative !important; z-index: 2 !important;
    margin: 0 !important; padding: 0 28px 30px !important;
    width: 100% !important; box-sizing: border-box !important;
  }
}

/* ================================================================
   Change #266 (user-approved PreviewSeeMore): on the Movies/Series
   "See More" full-view pages the category-name bar touches the top
   toolbar. The 7px gap is the flex `gap` on #mediaWorkspaceScreen
   from premium-unified.css (@media max-width:760px,
   #mediaWorkspaceScreen:not(.hidden) { gap:7px !important }). This
   (1,2,0) :has() rule zeroes that gap — the actual gap source, not
   a negative-margin compensation — only while a full-view chrome
   exists, so home rows, the classic views and desktop keep the
   gap. No details exclusion is needed: the details panel covers
   the header entirely (fixed, z 99000) while open. */
@media (max-width: 950px) and (orientation: portrait) {
  #mediaWorkspaceScreen:not(.hidden):has(.iptv365-mhome-chrome) {
    gap: 0 !important;
  }
}
