/*
Theme Name: SerialHub Original Complete v1.4.2
Theme URI: https://serialhub.live/
Author: SerialHub
Description: SerialHub theme recreated from the supplied Blogger XML, with automatic Movies/Serials navigation, separate poster grids, community links, responsive design, and basic SEO-friendly markup.
Version: 1.4.2
Requires at least: 6.0
Tested up to: 7.1.3
Requires PHP: 7.4
Text Domain: serialhub-original
*/

:root{--sh-bg:#0b0b0b;--sh-panel:#141414;--sh-card:#1b1b1b;--sh-red:#e50914;--sh-text:#f3f3f3;--sh-muted:#aaa;--sh-border:#2b2b2b;--sh-width:1180px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--sh-bg);color:#ddd;font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.55}
a{color:#eee;text-decoration:none}
a:hover{color:#fff;text-decoration:none}
img{max-width:100%;height:auto}
button,input{font:inherit}
.sh-container{width:min(var(--sh-width),calc(100% - 36px));margin-inline:auto}
.sh-site-header{background:#000;border-bottom:1px solid #222}
.sh-header-main{min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.sh-brand{display:flex;align-items:center;gap:12px;min-width:0}
.custom-logo-link{display:block;line-height:0}
.custom-logo{max-height:64px;width:auto;object-fit:contain}
.sh-site-title{font-family:Oswald,Impact,'Arial Narrow',sans-serif;font-size:38px;font-weight:700;font-style:italic;letter-spacing:1px;text-transform:uppercase;line-height:1.1;background:linear-gradient(90deg,#e50914,#ff3b30 45%,#fff);-webkit-background-clip:text;background-clip:text;color:transparent;margin:0}
.sh-site-title a{color:inherit}
.sh-site-description{color:#aaa;font-size:12px;margin:6px 0 0}
.sh-header-social{display:flex;align-items:center;gap:8px}
.sh-social-link{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;background:#1877f2;color:#fff;font-weight:700;font-size:14px}
.sh-social-link.whatsapp{background:#25d366}
.sh-nav-wrap{background:#111;border-bottom:1px solid #262626;box-shadow:0 4px 16px rgba(0,0,0,.35)}
.sh-nav-inner{display:flex;align-items:center;gap:12px;min-height:58px}
.sh-mobile-nav-toggle{display:none;background:#181818;color:#fff;border:1px solid #333;border-radius:4px;padding:8px 12px;cursor:pointer}
.sh-primary-nav{flex:1;min-width:0}
.sh-primary-nav ul{display:flex;align-items:center;gap:4px;list-style:none;margin:0;padding:0}
.sh-primary-nav li{margin:0;padding:0}
.sh-primary-nav a{display:block;padding:18px 15px 15px;color:#ddd;font-size:13px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;border-bottom:3px solid transparent}
.sh-primary-nav a:hover,.sh-primary-nav .current-menu-item>a{border-bottom-color:var(--sh-red);color:#fff}
.sh-header-search{display:flex;flex:0 1 330px;min-width:190px}
.sh-header-search input[type=search]{min-width:0;width:100%;height:40px;padding:0 15px;border:1px solid #333;border-radius:22px 0 0 22px;background:#222;color:#fff;outline:none}
.sh-header-search input[type=submit]{height:40px;border:0;border-radius:0 22px 22px 0;padding:0 16px;background:var(--sh-red);color:#fff;font-size:12px;font-weight:700;cursor:pointer}
.sh-layout{display:grid;grid-template-columns:minmax(0,1fr) 295px;gap:28px;padding-top:28px;padding-bottom:38px}
.sh-main{min-width:0}
.sh-sidebar{min-width:0}
.sh-community-banner{width:100%;margin:0 0 26px;background:linear-gradient(135deg,#111,#181818 55%,#101010);border:1px solid #2c2c2c;border-left:4px solid var(--sh-red);border-radius:7px;overflow:hidden}
.sh-community-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 17px 13px}
.sh-community-copy{min-width:0;flex:1}
.sh-community-kicker{color:var(--sh-red);font-size:10px;font-weight:700;letter-spacing:1.5px;margin-bottom:4px}
.sh-community-title{color:#fff;font-size:19px;font-weight:700;line-height:1.25;margin:0 0 5px}
.sh-community-text{color:#bdbdbd;font-size:13px;line-height:1.45;margin:0}
.sh-community-actions{display:flex;flex:0 0 auto;align-items:center;gap:7px}
.sh-community-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 12px;border-radius:5px;color:#fff!important;font-size:10px;font-weight:700;white-space:nowrap}
.sh-community-btn.whatsapp{background:#25d366}
.sh-community-btn.facebook{background:#1877f2}
.sh-community-btn:hover{filter:brightness(1.08)}
.sh-community-note{border-top:1px solid #292929;padding:8px 15px;color:#929292;text-align:center;font-size:11px}
.sh-content-section{margin:0 0 38px}
.sh-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#0d0d0d;border-left:4px solid var(--sh-red);padding:13px 16px;margin:0 0 16px}
.sh-section-heading h2{margin:0;color:#fff;font-size:19px;line-height:1.35;font-weight:700}
.sh-view-all{font-size:12px;color:#ddd;white-space:nowrap}
.sh-view-all:hover{color:var(--sh-red)}
.sh-poster-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.sh-poster-card{min-width:0;background:var(--sh-card);border:1px solid #242424;border-radius:5px;overflow:hidden;transition:transform .18s ease,border-color .18s ease}
.sh-poster-card:hover{transform:translateY(-2px);border-color:#555}
.sh-poster-link{display:block;height:100%;color:#fff}
.sh-poster-image-wrap{aspect-ratio:2/3;background:#090909;overflow:hidden}
.sh-poster-image{display:block;width:100%;height:100%;object-fit:cover}
.sh-poster-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:190px;color:#aaa;background:linear-gradient(140deg,#171717,#090909);font-weight:700;text-align:center;padding:12px}
.sh-poster-info{padding:10px 9px 12px}
.sh-poster-title{font-size:13px;font-weight:700;line-height:1.4;color:#fff;margin:0;overflow-wrap:anywhere}
.sh-poster-action{display:inline-block;margin-top:7px;color:#bbb;font-size:10px;text-transform:uppercase;letter-spacing:.4px}
.sh-sidebar-widget{background:#181818;border:1px solid #262626;margin-bottom:22px}
.sh-sidebar-heading{background:#0d0d0d;border-left:4px solid var(--sh-red);padding:14px 15px;color:#fff;font-size:14px;font-weight:700;text-transform:uppercase;margin:0}
.sh-sidebar-list{list-style:none;margin:0;padding:0}
.sh-sidebar-list li{padding:12px 14px;border-bottom:1px solid #292929;margin:0}
.sh-sidebar-list li:last-child{border-bottom:0}
.sh-sidebar-list a{color:#ddd;font-weight:600;font-size:13px}
.sh-sidebar-list a:before{content:'›';color:var(--sh-red);font-size:20px;line-height:0;vertical-align:-1px;margin-right:9px}
.sh-widget-content{padding:14px}
.sh-widget-content ul{padding-left:18px;margin:0}
.sh-widget-content li{margin:0 0 8px}
.sh-widget-content a{overflow-wrap:anywhere}
.sh-single-header{margin:0 0 18px;padding-bottom:12px;border-bottom:1px solid #2a2a2a}
.sh-single-title{color:#fff;font-size:30px;line-height:1.25;margin:0 0 8px;font-weight:700}
.sh-entry-meta{font-size:12px;color:#aaa}
.sh-entry-content{font-size:17px;line-height:1.65;overflow-wrap:anywhere}
.sh-entry-content img{height:auto;max-width:100%}
.sh-entry-content iframe{max-width:100%}
.sh-entry-content h2,.sh-entry-content h3{color:#fff;line-height:1.3}
.sh-entry-content a{color:#ff626a;text-decoration:underline}
.sh-entry-content p{margin:0 0 1.2em}
.sh-post-nav{display:flex;justify-content:space-between;gap:12px;margin:28px 0;padding:16px 0;border-top:1px solid #333;border-bottom:1px solid #333}
.sh-post-nav a{max-width:48%;color:#eee;font-weight:700}
.sh-related{margin-top:30px}
.sh-related h2{font-size:19px;color:#fff;border-left:4px solid var(--sh-red);background:#0d0d0d;padding:12px 14px}
.sh-archive-title{background:#0d0d0d;border-left:4px solid var(--sh-red);padding:14px 16px;margin:0 0 18px;font-size:22px;color:#fff}
.sh-pagination{margin:28px 0;text-align:center}
.sh-pagination .page-numbers{display:inline-block;padding:8px 12px;margin:3px;background:#222;border:1px solid #333;border-radius:4px;color:#fff}
.sh-pagination .current,.sh-pagination a:hover{background:var(--sh-red);border-color:var(--sh-red)}
.sh-site-footer{background:#080808;border-top:1px solid #242424;padding:30px 0 0;color:#aaa}
.sh-footer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;padding-bottom:25px}
.sh-footer-widget h2,.sh-footer-widget h3{background:#111;border-left:4px solid var(--sh-red);padding:13px 15px;font-size:14px;color:#fff;margin:0 0 12px}
.sh-footer-widget ul{list-style:none;margin:0;padding:0}
.sh-footer-widget li{border-bottom:1px solid #222;padding:8px 0}
.sh-footer-widget a{color:#bbb}
.sh-footer-bottom{background:#000;border-top:1px solid #222;text-align:center;padding:13px 18px;color:#777;font-size:11px}
.sh-footer-bottom a{color:#aaa}
.sh-no-posts{background:#171717;padding:25px;color:#aaa;border:1px solid #282828}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.sh-poster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sh-layout{grid-template-columns:minmax(0,1fr) 265px;gap:22px}.sh-community-inner{gap:12px}.sh-community-btn{padding:9px 9px}}
@media(max-width:760px){.sh-container{width:calc(100% - 24px)}.sh-header-main{min-height:74px}.sh-site-title{font-size:30px}.custom-logo{max-height:50px}.sh-site-description{display:none}.sh-header-social{gap:5px}.sh-social-link{width:34px;height:34px;font-size:12px}.sh-nav-inner{display:block;padding:8px 0}.sh-mobile-nav-toggle{display:block;width:100%;text-align:left;margin:0 0 8px}.sh-primary-nav{display:none}.sh-primary-nav.is-open{display:block}.sh-primary-nav ul{display:block}.sh-primary-nav a{padding:12px 10px;border-bottom:1px solid #252525;border-left:3px solid transparent}.sh-primary-nav a:hover,.sh-primary-nav .current-menu-item>a{border-left-color:var(--sh-red);border-bottom-color:#252525}.sh-header-search{margin:9px 0 3px;max-width:none}.sh-layout{display:block;padding-top:18px}.sh-sidebar{margin-top:30px}.sh-community-inner{display:block;text-align:center;padding:14px 12px 11px}.sh-community-title{font-size:18px}.sh-community-text{font-size:12px}.sh-community-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:12px;gap:7px}.sh-community-btn{padding:10px 6px;font-size:10px}.sh-community-note{font-size:10px;padding:7px 8px}.sh-poster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sh-poster-info{padding:8px 8px 10px}.sh-poster-title{font-size:11.5px}.sh-poster-action{font-size:9px}.sh-section-heading h2{font-size:16px}.sh-view-all{font-size:11px}.sh-single-title{font-size:25px}.sh-entry-content{font-size:16px}.sh-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(max-width:420px){.sh-site-title{font-size:25px}.sh-header-main{gap:8px}.sh-header-social{display:none}.sh-section-heading{padding:11px 10px}.sh-section-heading h2{font-size:14px}.sh-view-all{font-size:10px}.sh-footer-grid{grid-template-columns:1fr}}


/* SerialHub Original Complete v1.1 - Blogger layout refinements */
.sh-brand{gap:14px}
.sh-wordmark-wrap{display:flex;flex-direction:column;justify-content:center;min-width:0}
.sh-wordmark{font-family:Oswald,Impact,'Arial Narrow',sans-serif;font-size:34px;font-weight:700;font-style:italic;letter-spacing:.7px;text-transform:uppercase;line-height:1.0;white-space:nowrap}
.sh-wordmark .sh-wordmark-serial{color:#e50914}
.sh-wordmark .sh-wordmark-hub{color:#f1f1f1}
.sh-wordmark-tagline{margin-top:5px;color:#aaa;font-size:10px;letter-spacing:1px;text-transform:uppercase}
.sh-header-main{min-height:88px}
.sh-primary-nav a{padding-left:13px;padding-right:13px}
.sh-primary-nav li.sh-nav-home>a{border-bottom-color:var(--sh-red)}
.sh-poster-image-wrap{position:relative}
.sh-poster-fallback{display:none;align-items:center;justify-content:center;width:100%;height:100%;min-height:190px;color:#aaa;background:linear-gradient(140deg,#171717,#090909);font-weight:700;text-align:center;padding:12px;font-size:13px;line-height:1.4}
.sh-sidebar-compact-list{list-style:none;margin:0;padding:0}
.sh-sidebar-compact-list li{margin:0;padding:10px 14px;border-bottom:1px solid #292929}
.sh-sidebar-compact-list li:last-child{border-bottom:0}
.sh-sidebar-compact-list a{color:#ddd;font-size:13px;font-weight:600}
.sh-sidebar-compact-list a:before{content:'›';color:var(--sh-red);font-size:20px;line-height:0;vertical-align:-1px;margin-right:9px}
@media(max-width:760px){
 .sh-topbar-inner{min-height:24px}
 .sh-wordmark{font-size:25px;letter-spacing:.3px}
 .sh-wordmark-tagline{font-size:8px;letter-spacing:.6px}
 .sh-header-main{min-height:72px}
 .sh-brand{gap:8px}
 .custom-logo{max-height:48px;max-width:58px}
 .sh-header-social{display:flex}
 .sh-social-link{width:30px;height:30px}
}
@media(max-width:420px){
 .sh-wordmark{font-size:20px}
 .sh-wordmark-tagline{font-size:7px}
 .sh-header-main{gap:5px}
 .custom-logo{max-width:44px;max-height:42px}
 .sh-header-social{gap:4px}
 .sh-social-link{width:27px;height:27px;font-size:11px}
}


/* SerialHub Original Complete v1.3.0 - removed top CONNECT WITH US strip */
/* The user wants social links only in the SerialHub Family banner, not in the header above search. */
.sh-header-social{display:none !important}
/* Hide the separate QuadLayers Social Chat floating bubble; keep the banner's own Join WhatsApp button visible. */
#qlwapp, .qlwapp, .qlwapp-container, .qlwapp-toggle, .qlwapp-box,
.qlwapp__container, .qlwapp__toggle, .qlwapp__button, .qlwapp-trigger, .qlwapp-widget,
.social-chat-widget, .social-chat-button {display:none !important; visibility:hidden !important; pointer-events:none !important}


/* SerialHub Original Complete v1.4.1 — single-post readability and responsive video embeds */
body.single-post .sh-container.sh-layout {
  width: min(1320px, calc(100% - 36px));
  max-width: 1320px;
}
body.single-post .sh-layout {
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
}
body.single-post .sh-entry-content {
  container-type: inline-size;
  font-size: 18px;
  line-height: 1.8;
  max-width: none;
  color: #f0f0f0;
}
body.single-post .sh-entry-content p,
body.single-post .sh-entry-content li {
  font-size: inherit;
  line-height: 1.8;
}
body.single-post .sh-entry-content iframe,
body.single-post .sh-entry-content embed,
body.single-post .sh-entry-content video,
body.single-post .sh-entry-content .wp-block-embed,
body.single-post .sh-entry-content .wp-block-embed__wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 22px auto !important;
  border: 0 !important;
}
body.single-post .sh-entry-content iframe,
body.single-post .sh-entry-content embed,
body.single-post .sh-entry-content video {
  height: clamp(280px, 56.25cqw, 540px) !important;
  min-height: 280px;
  aspect-ratio: 16 / 9;
}
body.single-post .sh-entry-content .wp-block-embed__wrapper {
  position: relative;
}
body.single-post .sh-entry-content .wp-block-embed iframe {
  margin: 0 auto !important;
}
body.single-post .sh-entry-content img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  body.single-post .sh-container.sh-layout {
    width: calc(100% - 24px);
  }
  body.single-post .sh-layout {
    display: block;
  }
  body.single-post .sh-entry-content {
    font-size: 17px;
    line-height: 1.75;
  }
  body.single-post .sh-entry-content iframe,
  body.single-post .sh-entry-content embed,
  body.single-post .sh-entry-content video {
    height: clamp(220px, 56.25cqw, 360px) !important;
    min-height: 220px;
  }
}


/* SerialHub Original Complete v1.4.2 — centered post copy and episode hub pages */
/* Center post descriptions, CTA links and embeds to match the original Blogger layout. */
body.single-post .sh-entry-content {
  text-align: center !important;
}
body.single-post .sh-entry-content p,
body.single-post .sh-entry-content h2,
body.single-post .sh-entry-content h3,
body.single-post .sh-entry-content blockquote,
body.single-post .sh-entry-content .wp-block-button,
body.single-post .sh-entry-content .wp-block-embed {
  text-align: center !important;
}
body.single-post .sh-entry-content ul,
body.single-post .sh-entry-content ol {
  display: table;
  text-align: left !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.single-post .sh-entry-content table {
  margin-left: auto !important;
  margin-right: auto !important;
}
body.single-post .sh-post-nav {
  justify-content: center;
  text-align: center;
}
body.single-post .sh-post-nav > div {
  flex: 1 1 50%;
  text-align: center;
}
body.single-post .sh-post-nav a {
  display: inline-block;
  max-width: 100%;
}
.sh-show-page-intro {
  color: #bbb;
  text-align: center;
  margin: -5px 0 20px;
  line-height: 1.65;
}
.sh-show-page-pagination {
  margin: 28px 0;
  text-align: center;
}
.sh-show-page-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 3px;
  background: #222;
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
}
.sh-show-page-pagination .current,
.sh-show-page-pagination a:hover {
  background: var(--sh-red);
  border-color: var(--sh-red);
}
.sh-show-page .sh-archive-title { text-transform: none; }
