/* ============================================================
   漫一点射 mydsp.css
   版式：完整移植 yuman18 的布局骨架
         （6列网格/竖版封面/抽屉菜单/搜索弹窗/轮播/10列友链格/花瓣飘落）
   配色：原站是粉白系，此处换成 深紫黑 + 玫瑰红
   原站没有 :root 变量层，这里建立；以后调色只改 :root
   ============================================================ */

:root{
    /* 深紫黑底 */
    --bg:        #0d0810;
    --bg-2:      #160c1d;
    --surface:   #181020;
    --surface-2: #22162f;
    --surface-3: #2b1b3a;
    /* 半透明面（对应原站的 rgba(255,255,255,.85) 毛玻璃） */
    --glass:     rgba(40, 24, 55, 0.78);
    --glass-2:   rgba(30, 18, 42, 0.92);

    /* 深紫 */
    --brand:     #2a1040;
    --brand-2:   #3d1a5c;

    /* 玫瑰红 */
    --rose:      #e63462;
    --rose-2:    #ff4d7d;
    --rose-dim:  #8f2440;

    /* 文字 */
    --text:      #ece6f2;
    --text-dim:  #a596b4;
    --text-mute: #7a6c8a;

    --line:      #3a2552;
    --line-soft: #2c1c3e;
}

*{
    margin:0; padding:0; box-sizing:border-box;
    font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
    -webkit-tap-highlight-color:transparent;
}

html{
    /* iOS Safari 状态栏/底部工具栏/回弹区只认纯色，渐变图对它等于透明=白条 */
    background-color:var(--bg);
    color-scheme:dark;
}

body{
    background-color:var(--bg);
    background-image:radial-gradient(circle at 10% 20%, var(--bg-2) 0%, #110a17 50%, var(--bg) 100%);
    background-attachment:fixed;
    min-height:100vh;
    padding:24px 0 0 0;
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    overflow-x:hidden;
    color:var(--text);
}

/* 桌面端左右点阵花边（原站是粉点，这里换成暗玫瑰点） */
body::before, body::after{
    content:'';
    position:absolute;
    top:0; width:120px; height:100%;
    background:radial-gradient(circle, rgba(230,52,98,0.22) 20%, transparent 20%),
               radial-gradient(circle, rgba(230,52,98,0.22) 20%, transparent 20%);
    background-size:20px 20px;
    background-position:0 0, 10px 10px;
    opacity:0.35;
    pointer-events:none;
    z-index:1;
}
body::before{ left:0; }
body::after { right:0; }

a{ text-decoration:none; color:inherit; }

/* ================= 花瓣飘落 ================= */
@keyframes fall{
    0%   { transform:translateY(-20px) rotate(0deg);  opacity:0; }
    10%  { opacity:0.55; }
    100% { transform:translateY(100vh) rotate(360deg); opacity:0; }
}
.petal-container{
    position:fixed; top:0; left:0; width:100%; height:100%;
    pointer-events:none; z-index:2; overflow:hidden;
}
.petal{
    position:absolute;
    background:linear-gradient(135deg, var(--rose-2) 0%, var(--rose-dim) 100%);
    border-radius:50% 0 50% 50%;
    opacity:0.55;
    filter:drop-shadow(0 1px 3px rgba(230,52,98,0.45));
    animation:fall linear infinite;
}

/* ================= 主体容器 ================= */
.main-wrapper{ width:100%; max-width:1200px; padding:0 16px; z-index:10; flex:1; }

/* ================= 头部导航 ================= */
.pixel-header{
    background:var(--glass);
    border:1px solid var(--line);
    border-radius:12px;
    height:56px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    margin-bottom:18px;
    box-shadow:0 2px 12px rgba(0,0,0,0.45);
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
    position:relative;
}
.logo-area{
    font-size:1.4rem; font-weight:900; color:var(--text);
    white-space:nowrap; cursor:pointer;
}
.logo-area span{ color:var(--rose-2); font-style:italic; }

.nav-container{ display:flex; align-items:center; }
.pixel-nav{ display:flex; list-style:none; gap:4px; }
.nav-link{
    font-size:0.95rem; color:var(--text-dim); font-weight:700;
    padding:6px 14px; text-decoration:none; white-space:nowrap; transition:all 0.2s;
    border-radius:20px;
}
.nav-link:hover{ color:var(--rose-2); }
.nav-link.active{
    color:#fff; background:var(--rose); border-radius:20px;
    box-shadow:0 2px 8px rgba(230,52,98,0.45);
}

.right-actions{ display:flex; align-items:center; gap:16px; color:var(--text-dim); }
.action-icon{
    cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition:color 0.2s; padding:4px;
}
.action-icon:hover,
.action-icon.active{ color:var(--rose-2); }
.hamburger-icon{ display:none; }

/* ================= Banner ================= */
.pixel-banner-box{
    width:100%; height:250px; border-radius:12px;
    border:1px solid var(--line); overflow:hidden; position:relative;
    box-shadow:0 4px 16px rgba(0,0,0,0.5);
}
.banner-core{
    width:100%; height:100%;
    background-size:cover; background-position:center;
    background-color:var(--surface-2); /* placeholder */
    background-color:var(--surface-2);
}

/* ================= 板块标题 ================= */
.section-header{
    display:flex; justify-content:space-between; align-items:center;
    margin-bottom:14px; margin-top:28px;
}
.title-left{ display:flex; align-items:center; gap:10px; }
/* 分区吉祥物：原图是 1408x768 粉底立绘，这里裁成圆形头像，只露角色的脸+上半身 */
.index-title-icon{
    width:46px; height:46px; flex:0 0 46px;
    border-radius:50%;
    object-fit:cover;
    object-position:center 20%;
    border:2px solid var(--rose);
    background:var(--surface-2);
    box-shadow:0 2px 8px rgba(230,52,98,.35);
}
@media (max-width:768px){
    .index-title-icon{ width:38px; height:38px; flex:0 0 38px; }
}
.main-title{ font-size:1.15rem; font-weight:800; color:var(--text); }
.sub-info{ font-size:0.85rem; color:var(--text-mute); }
.more-text{
    color:var(--text-dim); font-weight:700; cursor:pointer;
    transition:color 0.2s; font-size:0.9rem; white-space:nowrap;
}
.more-text:hover{ color:var(--rose-2); }

/* ================= 卡片网格：PC 一行 6 个 ================= */
.pixel-grid{
    display:grid;
    grid-template-columns:repeat(6, minmax(0, 1fr));
    gap:16px;
}

.comic-item-card{ cursor:pointer; width:100%; }

.cover-wrap{
    border:1px solid var(--line);
    border-radius:8px;
    position:relative;
    overflow:hidden;
    padding-top:135%;            /* 竖版封面比例，跟原站一致 */
    box-shadow:0 2px 8px rgba(0,0,0,0.45);
    background:var(--surface-2);
}
.cover-image{
    position:absolute; top:0; left:0; width:100%; height:100%;
    background-size:cover; background-position:center;
    background-color:var(--surface-2); /* placeholder */
    transition:transform 0.3s ease;
    /* 2026-10-13 加：也支持 img 版（pic177 Referer 防盗链需要用 img + referrerpolicy，CSS bg-image 不听 meta referrer）*/
    object-fit:cover; object-position:center; display:block;
}
.comic-item-card:hover .cover-image{ transform:scale(1.05); }

.mini-badge{
    position:absolute; top:0; right:0; z-index:3;
    background:var(--rose);
    color:#fff; font-size:0.65rem; font-weight:700;
    padding:2px 7px; border-bottom-left-radius:8px;
}

.visible-rating{
    position:absolute; bottom:8px; left:8px; z-index:4;
    background:rgba(13,8,16,0.82);
    backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
    border:1px solid rgba(230,52,98,0.45);
    padding:2px 7px; border-radius:6px;
    font-size:0.75rem; color:var(--rose-2); font-weight:800;
    box-shadow:0 2px 6px rgba(0,0,0,0.4);
}

.comic-title{
    font-size:0.9rem; font-weight:600; color:var(--text);
    transition:color 0.2s;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    padding:8px 2px 4px 2px; text-align:left;
}
.comic-item-card:hover .comic-title{ color:var(--rose-2); }

.comic-tag-info{
    font-size:0.78rem; color:var(--text-mute);
    padding:0 2px; text-align:left;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    opacity:0.9; display:block; width:100%;
}

/* ================= 遮罩 ================= */
.global-overlay{
    position:fixed; top:0; left:0; width:100%; height:100%;
    background:rgba(8,4,12,0.62);
    backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
    z-index:999; opacity:0; pointer-events:none;
    transition:opacity 0.3s ease;
}
.global-overlay.active{ opacity:1; pointer-events:auto; }

/* ================= 手机右侧抽屉 ================= */
.menu-drawer{
    position:fixed; top:0; right:-280px; width:280px; height:100%;
    background:var(--glass-2);
    backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
    border-left:1px solid var(--line);
    box-shadow:-4px 0 24px rgba(0,0,0,0.6);
    z-index:1000; padding:24px;
    display:flex; flex-direction:column;
    transition:right 0.3s cubic-bezier(0.16,1,0.3,1);
}
.menu-drawer.active{ right:0; }
.drawer-header{
    display:flex; justify-content:space-between; align-items:center; margin-bottom:30px;
}
.drawer-title{ font-size:1.1rem; font-weight:800; color:var(--text); }
.drawer-close{ cursor:pointer; color:var(--text-dim); padding:4px; }
.drawer-close:hover{ color:var(--rose-2); }
.drawer-nav-list{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.drawer-nav-item a{
    display:block; padding:12px 16px; border-radius:8px;
    color:var(--text-dim); font-weight:700; text-decoration:none;
    font-size:1rem; transition:all 0.2s;
}
.drawer-nav-item a.active,
.drawer-nav-item a:hover{
    color:#fff; background:var(--rose);
    box-shadow:0 2px 8px rgba(230,52,98,0.35);
}

/* ================= 弹窗（搜索） ================= */
.global-modal{
    position:fixed; top:50%; left:50%;
    transform:translate(-50%,-50%) scale(0.9);
    width:90%; max-width:440px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:16px; padding:24px; z-index:1000;
    opacity:0; pointer-events:none;
    box-shadow:0 10px 40px rgba(0,0,0,0.7);
    transition:transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
}
.global-modal.active{
    opacity:1; pointer-events:auto; transform:translate(-50%,-50%) scale(1);
}
.modal-title{
    font-size:1.15rem; font-weight:800; color:var(--text);
    margin-bottom:16px; text-align:center;
}
.modal-input{
    width:100%; height:42px;
    border:1px solid var(--line); border-radius:21px;
    padding:0 18px; font-size:0.95rem; color:var(--text); outline:none;
    background:var(--surface-2); transition:border-color 0.2s;
}
.modal-input::placeholder{ color:var(--text-mute); }
.modal-input:focus{ border-color:var(--rose); background:var(--surface-3); }

.modal-btn-group{ display:flex; gap:12px; margin-top:18px; }
.modal-btn{
    flex:1; height:40px; border-radius:20px; border:none;
    font-weight:700; cursor:pointer; font-size:0.9rem; transition:all 0.2s;
}
.btn-cancel{ background:var(--surface-3); color:var(--text-dim); }
.btn-cancel:hover{ color:var(--text); }
.btn-submit{
    background:var(--rose); color:#fff;
    box-shadow:0 2px 8px rgba(230,52,98,0.35);
}
.btn-submit:hover{ background:var(--rose-2); }

/* ================= 分页 ================= */
.pagination-container{
    display:flex; justify-content:center; align-items:center;
    gap:6px; margin:40px 0 60px 0; user-select:none; width:100%;
    flex-wrap:wrap;
}
.page-link{
    min-width:36px; height:36px; padding:0 8px;
    background:var(--glass);
    border:1px solid var(--line);
    border-radius:8px;
    color:var(--text-dim);
    font-size:0.88rem; font-weight:700;
    display:flex; align-items:center; justify-content:center;
    text-decoration:none; transition:all 0.2s ease-in-out;
}
.page-link:hover{
    background:var(--surface-3); color:var(--rose-2);
    border-color:var(--rose); transform:translateY(-1px);
}
.page-link.active{
    background:var(--rose); color:#fff !important; border-color:var(--rose);
    box-shadow:0 3px 10px rgba(230,52,98,0.45);
    pointer-events:none; transform:none;
}
.page-link.disabled{
    background:rgba(24,16,32,0.5); border-color:var(--line-soft);
    color:var(--text-mute); cursor:not-allowed;
    pointer-events:none; box-shadow:none; transform:none;
}
.page-ellipsis{
    color:var(--text-dim); font-weight:700; padding:0 4px;
    font-size:0.9rem; letter-spacing:1px;
}

/* ================= 页脚 ================= */
.pixel-footer{
    width:100%; margin-top:60px; padding:30px 20px;
    background:rgba(24,16,32,0.6);
    border-top:1px solid var(--line);
    text-align:center; font-size:0.85rem; color:var(--text-dim); z-index:10;
}
.footer-links{
    display:flex; justify-content:center; gap:24px;
    margin-bottom:12px; list-style:none; flex-wrap:wrap;
}
.footer-links a{
    color:var(--text-dim); text-decoration:none; font-weight:600; transition:color 0.2s;
}
.footer-links a:hover{ color:var(--rose-2); }

/* ================= 友链格：PC 一行 10 个 ================= */
.pixel-friend-grid{
    display:grid;
    grid-template-columns:repeat(10, minmax(0, 1fr));
    gap:12px 10px;
    width:100%;
}
.pixel-friend-grid .friend-item{
    height:36px; padding:0 4px;
    background:var(--glass);
    border:1px solid var(--line);
    border-radius:8px;
    color:var(--text-dim);
    font-size:0.82rem; font-weight:700;
    display:flex; align-items:center; justify-content:center;
    text-decoration:none; transition:all 0.2s ease-in-out;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    text-align:center; width:100%;
}
.pixel-friend-grid .friend-item:hover{
    background:var(--surface-3); color:var(--rose-2);
    border-color:var(--rose); transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(230,52,98,0.28);
}

/* ================= 轮播 ================= */
.banner-swiper .swiper-wrapper{ display:flex !important; flex-direction:row !important; }
.banner-swiper .swiper-slide{
    width:100% !important; height:100% !important;
    flex-shrink:0 !important;
    background-color:var(--surface-2) !important;
}
.banner-swiper .swiper-slide img{
    width:100% !important; height:100% !important;
    object-fit:contain !important; display:block !important;
}
.banner-swiper{ width:100%; height:250px !important; overflow:hidden !important; }

/* 横幅位没配图片友链(1~100号段)时，别留一个空盒子占着首屏。
   :has() 现代浏览器都支持；下面 JS 里还有一道兜底。 */
.pixel-banner-box:not(:has(.swiper-slide)){ display:none; }

/* ================= 手机端 ================= */
@media (max-width:768px){
    body{ padding:12px 0 0 0; }
    body::before, body::after{ display:none; }

    .pixel-header{ height:52px; padding:0 14px; margin-bottom:12px; border-radius:10px; }
    .nav-container{ display:none; }
    .right-actions{ gap:14px; }
    .action-icon svg{ width:20px !important; height:20px !important; }
    .hamburger-icon{ display:flex; }

    .pixel-banner-box{ height:150px !important; }
    .banner-swiper{ height:150px !important; overflow:hidden !important; }
    .banner-swiper .swiper-slide img{ height:150px !important; object-fit:cover !important; }

    /* 手机一行 3 个 */
    .pixel-grid{
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap:10px;
    }

    .cover-wrap{ border-radius:6px; }
    .visible-rating{ bottom:4px; left:4px; padding:1px 5px; font-size:0.7rem; border-radius:4px; }
    .comic-title{ font-size:0.82rem; padding-top:6px; }
    .section-header{ margin-top:20px; margin-bottom:10px; }
    .main-title{ font-size:1.05rem; }
    .pixel-footer{ margin-top:40px; padding:24px 16px; }

    /* 友链手机一行 4 个 */
    .pixel-friend-grid{
        grid-template-columns:repeat(4, minmax(0, 1fr));
        gap:8px 6px;
    }
    .pixel-friend-grid .friend-item{
        height:32px; font-size:0.78rem; border-radius:6px; padding:0 2px;
    }

    .pagination-container{ gap:4px; margin:30px 0 40px 0; }
    .page-link{ min-width:32px; height:32px; font-size:0.82rem; border-radius:6px; padding:0 5px; }
    .page-ellipsis{ padding:0 2px; font-size:0.8rem; }
}

/* ============================================================
   顶部 coverflow 轮播（自 99av 的 av-carousel 移植，配色换成本站调色板）
   中间大卡 21:9，左右各露一张缩小压暗的，到点自动往左滑一张。
   没数据时 JS 会挂 .av-carousel--none 把整块收掉。
   ============================================================ */
.av-carousel {
  position: relative;
  width: 100%;
  margin: 18px 0 16px;
  min-height: 120px;
  -webkit-tap-highlight-color: transparent;
}

.av-carousel:empty, .av-carousel--none { display: none; }

.av-carousel__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;      /* 侧卡超出的部分裁掉，避免横向滚动条 */
  touch-action: pan-y;   /* 纵向照常滚页面，横向交给轮播 */
}

.av-carousel__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  aspect-ratio: 21 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .7);
  transform-origin: center center;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), opacity .45s ease;
  will-change: transform, opacity;
  cursor: pointer;
  display: block;
}

.av-carousel__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* 侧卡压暗，突出中间那张 */
.av-carousel__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  transition: opacity .45s ease;
  pointer-events: none;
  border-radius: inherit;
}
.av-carousel__slide--active::after { opacity: 0; }
.av-carousel__slide--hidden { opacity: 0; pointer-events: none; }

.av-carousel__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity .45s ease;
  border-radius: inherit;
}
.av-carousel__slide--active .av-carousel__cap { opacity: 1; }

.av-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.av-carousel__dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--text-dim);
  opacity: .45;
  transition: width .3s ease, opacity .3s ease, background .3s ease;
  cursor: pointer;
}
.av-carousel__dot--on {
  width: 18px;
  opacity: 1;
  background: var(--rose);
}

/* ---------- 4) 图标翻页网格 ---------- */


/* ============================================================
   播放页 / 详情页
   ============================================================ */
.play-crumb{
    font-size:.85rem; color:var(--text-mute);
    margin:4px 0 10px; line-height:1.8;
}
.play-crumb a{ color:var(--text-dim); }
.play-crumb a:hover{ color:var(--rose-2); }

.play-title{
    font-size:1.25rem; font-weight:800; color:var(--text);
    margin:0 0 12px; line-height:1.4;
}

/* 播放器外壳：16:9，内部交给 maccms 的 MacPlayer */
.play-stage{
    width:100%;
    background:#000;
    border:1px solid var(--line);
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 6px 24px rgba(0,0,0,0.55);
}
.play-stage__inner{ position:relative; width:100%; }
.play-stage__inner iframe,
.play-stage__inner video{ display:block; width:100%; border:0; }

/* 选集 */
.play-eps{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:10px;
    padding:12px 14px;
    margin:14px 0 4px;
}
.play-eps-hd{ display:flex; align-items:baseline; margin-bottom:10px; }
.play-eps-hd .t{
    position:relative; padding-left:11px;
    font-size:16px; font-weight:800; color:var(--text);
}
.play-eps-hd .t:before{
    content:''; position:absolute; left:0; top:50%; transform:translateY(-50%);
    width:4px; height:15px; border-radius:2px;
    background:linear-gradient(180deg, var(--rose-2), var(--rose));
}
.play-eps-hd .sub{ margin-left:10px; font-size:12px; color:var(--text-mute); }
.play-eps-list{
    display:flex; flex-wrap:wrap; gap:8px; list-style:none;
    margin:0; padding:0; max-height:210px; overflow-y:auto;
}
.play-eps-list li{ list-style:none; }
.play-eps-list li a{
    display:block; min-width:54px; text-align:center;
    padding:7px 13px;
    border:1px solid var(--line); border-radius:5px;
    background:var(--surface-2); color:var(--text-dim);
    font-size:13px; text-decoration:none; white-space:nowrap; transition:.15s;
}
.play-eps-list li a:hover{ border-color:var(--rose); color:var(--rose-2); }
.play-eps-list li.active a{
    background:var(--rose); border-color:var(--rose); color:#fff; font-weight:700;
}

/* 影片信息行 */
.play-info{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:10px;
    padding:12px 14px;
    margin:14px 0 4px;
    display:flex; flex-wrap:wrap; gap:8px 26px;
    font-size:.88rem; color:var(--text-dim);
}
.play-info__row b{
    color:var(--text-mute); font-weight:600; margin-right:8px;
}
.play-info__row a{ color:var(--rose-2); }

/* 详情页：海报 + 信息 */
.detail-top{
    display:flex; gap:18px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:12px;
    padding:16px;
    margin-bottom:6px;
}
.detail-cover{
    flex:0 0 190px; width:190px;
    border:1px solid var(--line); border-radius:8px;
    overflow:hidden; position:relative;
    padding-top:0; height:257px;
    background:var(--surface-2) center/cover no-repeat;
}
.detail-meta{ flex:1; min-width:0; }
.detail-meta h1{
    font-size:1.3rem; font-weight:800; color:var(--text);
    margin:0 0 10px; line-height:1.4;
}
.detail-meta .row{
    font-size:.88rem; color:var(--text-dim);
    margin:6px 0; line-height:1.7;
}
.detail-meta .row b{ color:var(--text-mute); font-weight:600; margin-right:8px; }
.detail-meta .row a{ color:var(--rose-2); }
.detail-score{
    display:inline-block; background:var(--rose); color:#fff;
    font-weight:800; font-size:.85rem;
    padding:3px 10px; border-radius:6px; margin-left:6px;
}
.detail-btns{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
.detail-btn{
    display:inline-block; padding:9px 22px; border-radius:22px;
    font-weight:700; font-size:.9rem;
    background:var(--rose); color:#fff;
    box-shadow:0 3px 10px rgba(230,52,98,.35);
    transition:background .2s;
}
.detail-btn:hover{ background:var(--rose-2); }
.detail-btn--ghost{
    background:var(--surface-3); color:var(--text-dim); box-shadow:none;
}
.detail-btn--ghost:hover{ background:var(--surface-2); color:var(--rose-2); }

.detail-desc{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:10px;
    padding:14px;
    margin:14px 0 4px;
    font-size:.88rem; line-height:1.9; color:var(--text-dim);
}

@media (max-width:768px){
    .play-title{ font-size:1.05rem; }
    .detail-top{ flex-direction:column; gap:14px; }
    .detail-cover{ flex:none; width:150px; height:203px; margin:0 auto; }
    .detail-meta h1{ font-size:1.1rem; text-align:center; }
    .detail-btns{ justify-content:center; }
    .play-eps-list li a{ min-width:44px; padding:6px 10px; font-size:12px; }
    .play-info{ gap:6px 16px; }
}


/* ============================================================
   漫画详情页专属（yuman18 信息卡 + 阅读区）
   ============================================================ */
/* 竖版封面 (漫画海报比例 3:4) */
.detail-cover.comic-cover{ width:220px; flex:0 0 220px; height:293px; }

.meta-badge-box{ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.meta-pill{
    display:inline-block; padding:4px 12px; border-radius:16px;
    background:var(--surface-2); border:1px solid var(--line);
    font-size:.82rem; color:var(--text-dim);
}
.meta-pill a{ color:var(--rose-2); }

.detail-tags{ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.detail-tag-item{
    display:inline-block; padding:3px 11px; border-radius:14px;
    background:rgba(230,52,98,.12); border:1px solid var(--rose-dim);
    font-size:.8rem; color:var(--rose-2);
}
.detail-tag-item:hover{ background:var(--rose); color:#fff; }

.detail-blurb{
    margin:12px 0; padding:12px 14px;
    background:var(--surface-2); border:1px solid var(--line); border-radius:8px;
    font-size:.88rem; line-height:1.8; color:var(--text-dim);
}

/* 阅读区 */
.reader{
    background:var(--surface); border:1px solid var(--line); border-radius:12px;
    padding:16px; margin:16px 0 4px;
}
.reader-hd{ display:flex; align-items:baseline; margin-bottom:14px; }
.reader-hd .t{
    position:relative; padding-left:12px; font-size:1.05rem; font-weight:800; color:var(--text);
}
.reader-hd .t:before{
    content:''; position:absolute; left:0; top:50%; transform:translateY(-50%);
    width:4px; height:16px; border-radius:2px;
    background:linear-gradient(180deg,var(--rose-2),var(--rose));
}
.reader-hd .sub{ margin-left:10px; font-size:.8rem; color:var(--text-mute); }
.reader-pages{ text-align:center; }
.reader-pages img{
    display:block; max-width:100%; width:auto; margin:0 auto;
    border-radius:4px;
}
.reader-foot{ text-align:center; margin-top:18px; }

@media (max-width:768px){
    .detail-cover.comic-cover{ width:150px; flex:none; height:200px; margin:0 auto; }
    .reader{ padding:10px; }
}


/* ============================================================
   漫画选集目录
   ============================================================ */
.chapter-box{
    background:var(--surface); border:1px solid var(--line); border-radius:12px;
    padding:16px; margin:16px 0 4px;
}
.chapter-hd{ display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.chapter-hd .t{
    position:relative; padding-left:12px; font-size:1.05rem; font-weight:800; color:var(--text);
}
.chapter-hd .t:before{
    content:''; position:absolute; left:0; top:50%; transform:translateY(-50%);
    width:4px; height:16px; border-radius:2px;
    background:linear-gradient(180deg,var(--rose-2),var(--rose));
}
.chapter-hd .sub{ font-size:.8rem; color:var(--text-mute); }
/* 分组 tab（1-50话 / 51-100话 …） */
.chapter-tabs{ display:flex; flex-wrap:wrap; gap:8px; margin-left:auto; }
.chapter-tab{
    font-size:.78rem; color:var(--text-dim); cursor:pointer;
    background:var(--surface-2); border:1px solid var(--line);
    padding:5px 14px; border-radius:16px; font-weight:700; transition:.15s;
}
.chapter-tab:hover{ color:var(--rose-2); border-color:var(--rose); }
.chapter-tab.active{ background:var(--rose); border-color:var(--rose); color:#fff; }
.chapter-grid{
    display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px;
    list-style:none; margin:0; padding:0;
}
.chapter-grid li{ list-style:none; }
.chapter-btn{
    display:block; text-align:center;
    padding:9px 8px; border:1px solid var(--line); border-radius:7px;
    background:var(--surface-2); color:var(--text-dim);
    font-size:.82rem; text-decoration:none; white-space:nowrap;
    overflow:hidden; text-overflow:ellipsis; transition:.15s;
}
.chapter-btn:hover{ border-color:var(--rose); color:var(--rose-2); }
.chapter-btn.active{ background:var(--rose); border-color:var(--rose); color:#fff; font-weight:700; }
@media (max-width:768px){ .chapter-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; } }


/* ============================================================
   顶部横向滑动模块（精选宽卡）
   ============================================================ */
.hero-slider{
    position:relative; width:100%;
    margin:8px 0 4px;
    overflow:hidden;
    border-radius:12px;
}
.hero-track{
    display:flex; gap:12px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding:2px;
}
.hero-track::-webkit-scrollbar{ display:none; }
.hero-item{
    flex:0 0 300px;
    position:relative; height:170px;
    border-radius:10px; overflow:hidden;
    border:1px solid var(--line);
    box-shadow:0 4px 14px rgba(0,0,0,.45);
    background:var(--surface-2);
    display:block;
}
.hero-cover{
    position:absolute; inset:0;
    background-size:cover; background-position:center 22%;
    transition:transform .4s ease;
}
.hero-item:hover .hero-cover{ transform:scale(1.05); }
.hero-item:after{
    content:''; position:absolute; inset:0;
    background:linear-gradient(to top, rgba(13,8,16,.92) 0%, rgba(13,8,16,.35) 45%, transparent 70%);
}
.hero-meta{
    position:absolute; left:0; right:0; bottom:0; z-index:2;
    padding:12px 14px;
}
.hero-tag{
    display:inline-block; margin-bottom:6px;
    padding:2px 10px; border-radius:12px;
    background:var(--rose); color:#fff;
    font-size:.7rem; font-weight:700;
}
.hero-title{
    font-size:1rem; font-weight:800; color:#fff;
    margin:0; line-height:1.35;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    text-shadow:0 1px 4px rgba(0,0,0,.7);
}
@media (max-width:768px){
    .hero-item{ flex:0 0 240px; height:140px; }
    .hero-title{ font-size:.9rem; }
}


/* 站名图片 logo（替代文字，防爬虫抓站名） */
.logo-area .logo-img{ height:30px; width:auto; display:block; }
@media (max-width:768px){ .logo-area .logo-img{ height:26px; } }


/* 底部品牌区（站名图片 + 免责声明） */
.footer-brand{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.footer-logo{ height:24px; width:auto; opacity:.9; }
.footer-copy{
    max-width:820px; margin:0 auto;
    font-size:12px; line-height:1.7; color:var(--text-mute); text-align:center;
}
