/* 国漫刷｜老模板页面(播放页/搜索页/个人中心/登录注册)的统一头部。
   桌面(≥768px)整条头部由 public/head.html 里的 .gm-topbar 替换老主题的 PC 头部;手机沿用老主题的头部块,只修 logo 与搜索胶囊。
   外置文件,不进 ThinkPHP 模板。老主题 .head_box.show-pc 自带 position:fixed / 背景 / z-index,这里只负责里面的布局。 */
.head_box.gm-topbar-wrap{padding:0!important;margin:0!important;min-width:0!important;width:100%!important;left:0!important;right:0!important}
.gm-topbar{display:flex;align-items:center;gap:22px;height:80px;padding:0 28px;max-width:1600px;margin:0 auto;box-sizing:border-box;color:#f5f4f7;font-family:-apple-system,"SF Pro Display","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;font-size:15px;line-height:1.4}
.gm-topbar *,.gm-topbar *::before,.gm-topbar *::after{box-sizing:border-box}
.gm-topbar .gm-brand{display:flex;align-items:center;gap:9px;flex:none;text-decoration:none!important;color:#fff!important}
.gm-topbar .gm-brand img{width:40px;height:40px;display:block;object-fit:contain;max-width:none}
.gm-topbar .gm-brand b{font-size:20px;font-weight:900;letter-spacing:.5px;color:#fff;white-space:nowrap}
.gm-topbar .gm-nav{display:flex;align-items:center;gap:2px;flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap}
.gm-topbar .gm-nav a{display:inline-flex;align-items:center;height:36px;padding:0 12px;border-radius:18px;font-size:15px;font-weight:600;color:#c9c8d0!important;text-decoration:none!important;transition:background .15s,color .15s}
.gm-topbar .gm-nav a:hover{color:#fff!important;background:#131318}
.gm-topbar .gm-search{flex:1 1 auto;min-width:150px;max-width:520px;margin-left:auto;position:relative;display:flex;align-items:center}
.gm-topbar .gm-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:16px;height:16px;fill:none;stroke:#8d8c97;stroke-width:2;stroke-linecap:round;pointer-events:none}
.gm-topbar .gm-search input{width:100%;height:40px;margin:0;border-radius:20px;border:1px solid #2c2c35;background:#131318;color:#f5f4f7;font-size:14px;padding:0 76px 0 38px;outline:0;box-shadow:none;-webkit-appearance:none;appearance:none}
.gm-topbar .gm-search input:focus{border-color:#fe2c55}
.gm-topbar .gm-search input::placeholder{color:#8d8c97;opacity:1}
.gm-topbar .gm-search button{position:absolute;right:4px;top:50%;transform:translateY(-50%);height:32px;margin:0;padding:0 14px;border:0;border-radius:16px;background:#fe2c55;color:#fff;font-size:13.5px;font-weight:700;line-height:1;cursor:pointer;-webkit-appearance:none;appearance:none}
.gm-topbar .gm-search button:hover{background:#cf1d44}
/* 登录 / 注册 / 我的(登录态由 gm-head.js 探测后切换) */
.gm-topbar .gm-auth{display:flex;align-items:center;gap:8px;flex:none}
.gm-topbar .gm-auth a{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;padding:0 15px;border-radius:17px;font-size:13.5px;font-weight:700;line-height:1;white-space:nowrap;text-decoration:none!important;cursor:pointer}
.gm-topbar .gm-auth .gm-auth-in{color:#f5f4f7!important;border:1px solid #2c2c35;background:#131318}
.gm-topbar .gm-auth .gm-auth-in:hover{border-color:#8d8c97}
.gm-topbar .gm-auth .gm-auth-up{color:#fff!important;background:#fe2c55}
.gm-topbar .gm-auth .gm-auth-up:hover{background:#cf1d44}
.gm-topbar .gm-auth .gm-auth-me{color:#f5f4f7!important;border:1px solid #2c2c35;background:#131318;padding:0 13px 0 9px}
.gm-topbar .gm-auth .gm-auth-me svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.gm-topbar .gm-auth[data-logged="1"] .gm-auth-in,.gm-topbar .gm-auth[data-logged="1"] .gm-auth-up{display:none}
.gm-topbar .gm-auth:not([data-logged="1"]) .gm-auth-me{display:none}
.gm-topbar .gm-auth .gm-auth-out{color:#8d8c97!important;padding:0 8px;font-weight:600}
.gm-topbar .gm-auth .gm-auth-out:hover{color:#f5f4f7!important}
.gm-topbar .gm-auth:not([data-logged="1"]) .gm-auth-out{display:none}
@media (max-width:1180px){.gm-topbar .gm-nav a.cat{display:none}}   /* 窄屏收起分类,只留 首页/刷剧/最近更新 */
@media (max-width:830px){   /* 老主题 ≤830px 头部只留 54px 位置 */
  .gm-topbar{height:50px;padding:0 16px;gap:12px}
  .gm-topbar .gm-brand img{width:30px;height:30px} .gm-topbar .gm-brand b{font-size:17px}
  .gm-topbar .gm-nav a{height:30px;padding:0 9px;font-size:14px}
  .gm-topbar .gm-search{min-width:120px} .gm-topbar .gm-search input{height:34px;padding:0 66px 0 34px} .gm-topbar .gm-search svg{left:12px} .gm-topbar .gm-search button{height:28px;padding:0 12px}
  .gm-topbar .gm-auth a{height:30px;padding:0 12px;font-size:13px} .gm-topbar .gm-auth .gm-auth-up{display:none}
}

/* 手机头部(老主题块):品牌与搜索胶囊 */
.mac-logo .logo_b{display:inline-flex!important;align-items:center;gap:8px;text-decoration:none!important}
.mac-logo .logo_b img{width:36px!important;height:36px!important;display:block;object-fit:contain}
.mac-logo .logo_b span{color:#fff!important;font-weight:900!important;font-size:19px!important;letter-spacing:.5px;line-height:1}
.mac-logo--foot .logo_b span{color:inherit!important}
.head_search_capsule_hot,.head_hot_overlay,.head_search_capsule_ai_ico{display:none!important}
.head_search_capsule{display:flex!important;align-items:center;gap:6px;height:40px!important;padding:0 4px 0 14px!important;background:#131318!important;border:1px solid #2c2c35!important;box-shadow:none!important;border-radius:22px!important;outline:0!important}
.head_search_capsule:focus-within{border-color:#fe2c55!important}
.head_search_capsule_field{flex:1;min-width:0;position:relative}
.head_search_capsule .mac_wd{width:100%!important;height:36px!important;border:0!important;outline:0!important;background:transparent!important;color:#f5f4f7!important;font-size:14px!important;padding:0!important;box-shadow:none!important}
.head_search_capsule .mac_wd::placeholder{color:#8d8c97;opacity:1}
.head_search_capsule_submit{flex:none;display:inline-flex!important;align-items:center;gap:5px;height:32px!important;padding:0 14px 0 12px!important;border:0!important;border-radius:16px!important;background:#fe2c55!important;color:#fff!important;font-size:13.5px!important;font-weight:700;line-height:1;cursor:pointer}
.head_search_capsule_submit::before{content:"";width:15px;height:15px;background:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center/contain no-repeat}

/* 个人中心「分享推广」卡片:图标里印着 VIP,站内没有 VIP,整张撤掉(游客态是 javascript:; 链接,老的 href 规则抓不到) */
.member-quick-card.mac-quick-invite-guest,.member-quick-card.open-share,.member-quick-card:has(img[src*="/ic_3@"]),.user-benefits__quick-card:has(img[src*="/ic_3@"]){display:none!important}
