:root {
    --bg-root:      #111111;
    --bg-surface:   #1a1a1a;
    --bg-card:      #222222;
    --bg-topbar:    #0d0d0d;
    --bg-navbar:    #161616;
    --clr-border:   #2c2c2c;
    --clr-border-lt:#363636;
    --clr-pink:     #e6007e;
    --clr-pink-lt:  #ff2da0;
    --clr-cyan:     #00ccff;
    --clr-cyan-dk:  #00aadd;
    --clr-violet:   #9933ff;
    --clr-violet-lt:#bb55ff;
    --clr-green:    #00ff88;
    --clr-yellow:   #ffd000;
    --clr-text:     #cccccc;
    --clr-text-dk:  #ffffff;
    --clr-muted:    #777777;
    --clr-heading:  #ffffff;
    --radius-xs:    3px;
    --radius-sm:    6px;
    --radius-md:    10px;
    --radius-lg:    14px;
    --radius-pill:  999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }

body {
    background: var(--bg-root);
    color: var(--clr-text);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif;
    line-height: 1.6;
}

a { color: var(--clr-cyan); text-decoration: none; transition: color .15s; }
a:hover { color: var(--clr-pink-lt); }
img { max-width: 100%; display: block; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ───── LAYOUT ───── */
.canvas {
    width: 100%; padding: 0 14px; margin: 0 auto; max-width: 1280px;
}
.slot { margin: 5px 0; }

/* ───── HEADER ───── */
.site-bar {
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--clr-border);
    padding: 10px 0;
}
.site-bar .canvas { display: flex; align-items: center; gap: 16px; }

.bar-brand { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }

.brand-mark {
    font-size: 1.22rem; font-weight: 900; letter-spacing: -.01em;
    white-space: nowrap; text-decoration: none;
    background: linear-gradient(90deg, var(--clr-cyan) 0%, var(--clr-violet) 50%, var(--clr-pink) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bar-sep { width: 1px; height: 20px; background: var(--clr-border-lt); flex-shrink: 0; }

.bar-domain { display: flex; align-items: center; gap: 8px; white-space: nowrap; }

.domain-chip {
    font-size: 11px; color: var(--clr-muted);
    background: var(--bg-surface); border: 1px solid var(--clr-border);
    border-radius: var(--radius-xs); padding: 1px 7px; flex-shrink: 0;
}
.domain-val {
    font-size: 1.1rem; color: var(--clr-pink-lt);
    font-weight: 800; letter-spacing: .03em;
}

/* ───── NAV BAND ───── */
.nav-band {
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--clr-border);
    padding: 3px 0;
}
.nav-cluster {
    display: flex; align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.nav-cluster:last-child { border-bottom: none; }

.nav-cluster-tag {
    display: flex; align-items: center; justify-content: center;
    width: 15%; max-width: 64px; min-width: 42px;
    font-size: 10px; color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.04);
    border-right: 1px solid var(--clr-border);
    text-align: center; padding: 3px 2px;
    word-break: break-all; line-height: 1.3; flex-shrink: 0;
}

.nav-cluster-links {
    display: flex; flex-wrap: wrap; align-items: center;
    flex: 1; padding: 3px 5px; gap: 2px;
}
.nav-cluster-links a {
    color: rgba(255,255,255,.82); font-size: 13px;
    padding: 4px 8px; border-radius: var(--radius-sm);
    transition: background .14s, color .14s;
    white-space: nowrap; text-decoration: none;
    flex: 1 1 calc(25% - 4px); text-align: center; min-width: 0;
}
.nav-cluster-links a:hover,
.nav-cluster-links a.active {
    background: var(--clr-pink); color: #fff; font-weight: 700;
}

/* ───── SEARCH ───── */
.search-block {
    background: var(--bg-root);
    border-bottom: 1px solid var(--clr-border);
    padding: 8px 0;
}
.search-wrap {
    display: flex; align-items: stretch;
    background: #ffffff; border-radius: var(--radius-md); overflow: hidden;
}
.search-wrap input[type="text"] {
    flex: 1; background: transparent; border: none; outline: none;
    color: #111; font-size: 15px; padding: 9px 16px;
    min-width: 0; font-family: inherit;
}
.search-wrap input[type="text"]::placeholder { color: #aaa; }
.search-wrap button {
    background: var(--clr-pink); color: #fff; border: none;
    padding: 9px 18px; font-size: 14px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    transition: background .15s; font-family: inherit; flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,.25);
}
.search-wrap button:hover { background: var(--clr-pink-lt); }

/* ───── HOT SEARCH ───── */
.hot-zone {
    background: var(--bg-root);
    border-bottom: 1px solid var(--clr-border);
    padding: 7px 0;
}
.hot-hd {
    font-size: 12px; font-weight: 700;
    color: var(--clr-heading); margin-bottom: 5px;
}
.hot-list {
    display: flex; flex-wrap: wrap; gap: 5px;
    list-style: none; padding: 0;
}
.hot-list a {
    display: inline-block;
    background: var(--bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-pill);
    padding: 4px 13px; font-size: 12px;
    color: var(--clr-text); transition: all .15s; text-decoration: none;
}
.hot-list a:hover {
    background: var(--clr-pink); border-color: var(--clr-pink);
    color: #fff; font-weight: 600;
}

/* ───── BANNER ───── */
.showcase-wrap { overflow: hidden; background: var(--bg-root); }
.showcase-wrap img { width: 100%; display: block; }

/* ───── MODULE ───── */
.feed-seg { margin: 5px 0; }

.feed-tile {
    background: var(--bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 10px 12px;
}

.feed-hd {
    display: flex; align-items: center; gap: 9px;
    margin-bottom: 8px; padding-bottom: 6px;
    border-bottom: 1px solid var(--clr-border);
}
.feed-hd h3, .feed-hd h4 {
    font-size: 14px; font-weight: 800;
    margin: 0; letter-spacing: .02em;
}
.feed-hd h3 {
    background: linear-gradient(90deg, var(--clr-cyan), var(--clr-violet));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.feed-hd a {
    background: linear-gradient(90deg, var(--clr-cyan), var(--clr-violet));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; text-decoration: none;
}

/* ───── MEDIA GRID ───── */
.clip-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 6px; list-style: none; padding: 0;
}
.clip-grid li { position: relative; }

.clip-frame {
    display: block; border-radius: var(--radius-sm);
    overflow: hidden; background: var(--bg-card);
    transition: transform .18s, opacity .18s;
    aspect-ratio: 600 / 350; position: relative;
}
.clip-frame:hover { transform: scale(1.03); opacity: .88; }
.clip-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.clip-info { margin-top: 4px; }
.clip-info h5 {
    font-size: 12px; font-weight: 400; margin: 0;
    line-height: 1.4; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    color: var(--clr-muted);
}
.clip-info h5 a { color: var(--clr-muted); text-decoration: none; }
.clip-info h5 a:hover { color: var(--clr-pink-lt); }

/* ───── DETAIL ───── */
.entry-bar {
    line-height: 1.8; text-align: center;
    padding: 14px 18px; font-size: 16px;
    margin: 8px 0; word-break: break-all;
    background: var(--bg-surface);
    border: 1px solid var(--clr-border);
    border-top: 3px solid var(--clr-pink);
    border-radius: var(--radius-lg);
    color: var(--clr-text-dk);
}
.entry-bar a { color: var(--clr-cyan); font-weight: 700; margin-right: 8px; text-decoration: none; }
.entry-bar a:hover { color: var(--clr-pink-lt); }

.entry-meta {
    font-size: 14px; line-height: 1.9;
    padding: 14px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--clr-border);
    border-left: 3px solid var(--clr-violet);
    border-radius: var(--radius-md);
    margin: 6px 0; color: var(--clr-text);
}

.torrent-capture-grid picture,
.torrent-capture-grid img {
    width: 100%; display: block;
    border-radius: var(--radius-sm); margin-top: 10px;
    border: 1px solid var(--clr-border);
}

/* ───── DOWNLOAD BUTTONS ───── */
.fetch-btns {
    display: flex; justify-content: center;
    flex-wrap: wrap; gap: 10px; padding: 12px 0;
}
.fetch-btn {
    display: inline-block; padding: 9px 24px;
    border-radius: var(--radius-pill);
    font-size: 14px; font-weight: 700; cursor: pointer;
    border: none; background: var(--clr-pink); color: #fff;
    transition: background .16s, transform .14s;
    text-decoration: none; letter-spacing: .01em;
}
.fetch-btn:hover { background: var(--clr-violet); color: #fff; transform: translateY(-1px); }

/* ───── SHARE ───── */
.copy-row {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap; background: var(--bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 8px 14px; margin: 8px 0;
}
.copy-lbl { font-size: 12px; color: var(--clr-muted); white-space: nowrap; }
.copy-val { flex: 1; font-size: 12px; color: var(--clr-cyan); word-break: break-all; min-width: 0; }
.share-copy-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--clr-pink); color: #fff; border: none;
    border-radius: var(--radius-pill); padding: 5px 14px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    white-space: nowrap; transition: background .15s; font-family: inherit;
}
.share-copy-btn:hover { background: var(--clr-violet); }

/* ───── PAGINATION ───── */
.page-track {
    display: flex; justify-content: center;
    flex-wrap: wrap; gap: 6px; padding: 14px 0;
}
.a_page_info {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface); border: 1px solid var(--clr-border);
    color: var(--clr-text); font-size: 13px; text-decoration: none;
    transition: all .15s;
}
.a_page_info:hover { background: var(--clr-pink); color: #fff; border-color: var(--clr-pink); }
.page_info_focus {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px;
    border-radius: var(--radius-sm);
    background: var(--clr-violet); color: #fff;
    font-size: 13px; font-weight: 700;
}

/* ───── FOOTER LINKS ───── */
.ref-links-zone {
    background: var(--bg-surface);
    border-top: 1px solid var(--clr-border);
    padding: 7px 0;
}
.ref-links-row { display: flex; flex-wrap: wrap; gap: 7px; }
.ref-links-row dd { margin: 0; }
.ref-links-row a {
    display: inline-block; font-size: 12px; color: var(--clr-muted);
    padding: 2px 10px; border-radius: var(--radius-pill);
    border: 1px solid var(--clr-border);
    transition: all .15s; text-decoration: none;
}
.ref-links-row a:hover {
    color: var(--clr-pink-lt); border-color: var(--clr-pink);
    background: rgba(230,0,126,.08);
}

.site-ground {
    background: #000; padding: 12px 0; text-align: center;
    margin-top: 5px; border-top: 1px solid var(--clr-border);
}
.site-ground p { font-size: 12px; color: #444; line-height: 1.8; }

/* ───── PC NAV ───── */
@media (min-width: 769px) {
    .nav-cluster-tag { width: auto; min-width: 54px; max-width: 82px; font-size: 12px; color: rgba(255,255,255,.5); padding: 5px 10px; }
    .nav-cluster-links a { flex: 1 1 auto; font-size: 14px; padding: 5px 12px; }
    .nav-cluster { border-bottom: 1px solid rgba(255,255,255,.04); }
}

/* ───── MOBILE ───── */
@media (max-width: 768px) {
    .clip-grid { grid-template-columns: repeat(2,1fr); gap: 5px; }
    .nav-cluster-links a { font-size: 12px; padding: 3px 4px; flex: 1 1 calc(25% - 4px); }
}
@media (min-width: 480px) and (max-width: 768px) {
    .nav-cluster-links a { font-size: 14px; }
    .nav-cluster-tag { font-size: 10px; }
}

/* ───── HELPERS ───── */
@media (max-width: 640px) { .pc-only { display: none !important; } }
@media (min-width: 641px) { .mob-only { display: none !important; } }
