:root { --theme-color: #495057; --bg-color: #f5f5f5; --footer-bg: #1a1a1a; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, "PingFang SC", sans-serif; background: var(--bg-color); color: #333; margin: 0; padding: 0; font-size: 14px; }
a { text-decoration: none; color: inherit; }
.wrap { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px 10px; 
}

.header { 
    background: #fff; 
    padding: 0; 
    margin-bottom: 0; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); 
    position: sticky; 
    top: 0; 
    z-index: 999; 
}

.nav-box { 
    display: flex; 
    align-items: center; 
    height: 50px; 
    overflow-x: auto; 
    white-space: nowrap; 
    -ms-overflow-style: none;  
    scrollbar-width: none; 
}

.nav-box::-webkit-scrollbar { 
    display: none !important; 
    width: 0 !important; 
    height: 0 !important; 
    background: transparent; 
}

.logo { 
    font-size: 26px; 
    font-weight: 900; 
    margin-right: 25px; 
    color: var(--theme-color); 
    letter-spacing: -1.5px; 
    padding-left: 5px; 
    font-family: Arial, sans-serif; 
}

.nav-link { padding: 0 15px; height: 50px; line-height: 50px; font-size: 15px; font-weight: 500; color: #666; position: relative; background: transparent !important; border-radius: 0 !important; }
.nav-link.active { color: var(--theme-color) !important; font-weight: 800 !important; font-size: 17px !important; }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 3px; background: var(--theme-color); border-radius: 2px; }

.crumb { 
    padding: 15px 5px; 
    margin-bottom: 10px; 
    font-size: 13px; 
    color: #999; 
    display: flex; 
    align-items: center; 
    white-space: nowrap; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
}

.crumb::-webkit-scrollbar { display: none; }

.crumb a { color: #666; transition: color 0.2s; }
.crumb a:hover { color: var(--theme-color); }
.crumb .sep { 
    margin: 0 8px; 
    color: #ccc; 
    font-size: 10px; 
    font-family: sans-serif;
}
.crumb em { 
    font-style: normal; 
    color: #999; 
    font-weight: 400; 
}
.mod { margin-bottom: 25px; }
.mod-head { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; }
.mod-title { font-size: 20px; font-weight: 800; color: #111; margin: 0; line-height: 1; border-left: 4px solid var(--theme-color); padding-left: 10px; }
.mod-head a { font-size: 13px; color: #999; font-weight: 400; display: inline-flex; align-items: center; transition: color 0.2s; }
.mod-head a:hover { color: var(--theme-color) !important; }
.list-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 25px 15px; }

.item { display: block; position: relative; width: 100%; overflow: hidden; }
.item-cover { display: block; width: 100%; padding-bottom: 145%; position: relative; border-radius: 6px; overflow: hidden; background: #f0f0f0; z-index: 1; }
.item-cover img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.item:hover .item-cover img { transform: scale(1.05); }
.item-score { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.65); color: #fff; font-size: 11px; padding: 1px 5px; border-radius: 4px; z-index: 20; pointer-events: none; }
.item-note { display: block; width: 100%; text-align: right; margin-top: -26px; margin-bottom: 8px; padding-right: 6px; position: relative; z-index: 15; min-height: 17px; color: rgba(255,255,255,0.95); font-size: 12px; text-shadow: 1px 1px 2px rgba(0,0,0,0.9); pointer-events: none; }
.item-title { font-size: 15px; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; line-height: 1.4; }
.item-sub { font-size: 13px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0; line-height: 1.4; }

.playlist-box { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.playlist-head { display: flex; align-items: baseline; margin-bottom: 15px; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
.playlist-title { display: inline !important; font-size: 18px !important; font-weight: 800; color: #111; margin-right: 10px; border-left: 4px solid var(--theme-color); padding-left: 10px; line-height: 1; }
.playlist-update { font-size: 12px; color: #999; }

.play-list { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; max-height: 240px; overflow-y: auto; padding-right: 5px; align-content: start; }
.play-list::-webkit-scrollbar { width: 6px; }
.play-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.play-list::-webkit-scrollbar-thumb:hover { background: var(--theme-color); } 
.play-list::-webkit-scrollbar-track { background: #f9f9f9; }

.play-btn { display: block; text-align: center; height: 38px; line-height: 36px; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 4px; font-size: 13px; color: #333; transition: all 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 5px; }
.play-btn:hover { background: #fff; border-color: var(--theme-color); color: var(--theme-color); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.play-btn.active { background: var(--theme-color); color: #fff; border-color: var(--theme-color); }

.detail-box { background: #fff; padding: 20px; border-radius: 8px; }
.detail-layout { display: flex; gap: 20px; }
.d-cover { width: 150px; flex-shrink: 0; position: relative; border-radius: 6px; overflow: hidden; background-color: #f0f0f0; }
.d-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-score { position: absolute; top: 6px; right: 6px; background: rgba(255, 102, 0, 0.9); color: #fff; font-weight: bold; font-size: 12px; padding: 2px 6px; border-radius: 4px; z-index: 5; }
.d-remarks { position: absolute; bottom: 0; right: 0; color: #fff; font-size: 12px; padding: 3px 8px; background: rgba(0,0,0,0.7); border-top-left-radius: 6px; z-index: 5; line-height: 1; }
.d-info { flex: 1; min-width: 0; margin-right: 20px; }
.d-title { font-size: 22px; font-weight: bold; margin: 0 0 10px; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; display: block; }
.d-tags p { margin: 4px 0; font-size: 14px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; display: block; }
.d-btn-play { display: block; margin-top: 20px; height: 40px; line-height: 40px; background: linear-gradient(90deg, var(--theme-color), #ff5500); color: #fff; text-align: center; border-radius: 20px; font-weight: bold; font-size: 16px; width: 100%; max-width: 200px; }

.d-right { width: 250px; flex-shrink: 0; border-left: 1px dashed #eee; margin-left: 20px; padding-left: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qr-box { text-align: center; }
.qr-box p { font-size: 14px; color: #777; margin-bottom: 12px; letter-spacing: 1px; }
.qr-img { width: 170px; height: 170px; padding: 10px; border: 1px solid #f0f0f0; border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.score-num { color: #ff6600 !important; font-size: 14px !important; font-weight: bold; }

.page { margin: 30px 0; text-align: center; font-size: 0; }
.page a, .page span { display: inline-block; padding: 8px 16px; margin: 0 4px; font-size: 14px; color: #666; background: #fff; border: 1px solid #eee; border-radius: 4px; text-decoration: none; transition: all 0.2s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.page span.current, .page a:hover { background: var(--theme-color); color: #fff; border-color: var(--theme-color); box-shadow: 0 2px 5px rgba(0,0,0,0.15); transform: translateY(-1px); }
.page span.page-text { border: none; background: transparent; color: #999; box-shadow: none; font-size: 12px; padding: 8px 5px; }

.cmt-box, .faq-box, .info-content { background: #fff; padding: 15px; margin-bottom: 20px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.faq-item { border-bottom: 1px dashed #eee; padding: 10px 0; }
.faq-q { font-weight: bold; color: #333; font-size: 14px; margin-bottom: 4px; }
.faq-a { color: #666; font-size: 13px; }
.cmt-item { border-bottom: 1px solid #f5f5f5; padding: 10px 0; }
.cmt-user { display: flex; justify-content: space-between; font-size: 12px; color: #999; margin-bottom: 4px; }
.cmt-text { font-size: 13px; color: #333; line-height: 1.4; }
.info-text { font-size: 13px !important; color: #666 !important; line-height: 1.8 !important; text-align: justify !important; }

.player-box { width: 100%; padding-bottom: 56.25%; height: 0 !important; background: #000; position: relative; overflow: hidden; }
.player-box iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.footer { background-color: var(--footer-bg) !important; padding: 40px 0; margin-top: 40px; color: #666; font-size: 13px; text-align: center; border-top: 3px solid var(--theme-color); }
.footer-links { margin-bottom: 15px; }
.footer-links a { color: #999; margin: 0 10px; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: #fff; } 
.footer p { margin: 6px 0; line-height: 1.6; }

.main-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); padding: 20px; }
.st-filter { margin-bottom: 20px; border-bottom: 1px solid #f5f5f5; }
.st-scroll-box { display: flex; align-items: center; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 15px; margin-bottom: -5px; scrollbar-width: none; -ms-overflow-style: none; }
.st-scroll-box::-webkit-scrollbar { display: none; width: 0; height: 0; }

.filter-item { display: inline-block; font-size: 15px; color: #333; margin-right: 25px; text-decoration: none; position: relative; padding-bottom: 2px; }
.filter-item.active { color: var(--theme-color) !important; font-weight: 900 !important; }
.active-line { position: absolute !important; bottom: -12px !important; left: 50% !important; transform: translateX(-50%) !important; width: 20px !important; height: 3px !important; background: var(--theme-color) !important; border-radius: 3px !important; box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important; display: block !important; }
.update-note { font-size: 12px !important; color: #999 !important; font-weight: 400 !important; margin-left: 8px !important; }

.tag-box { padding: 15px !important; background: #fff !important; overflow: hidden !important; border-radius: 6px; }
.tag-item { float: left !important; margin: 0 10px 10px 0 !important; color: #666 !important; font-size: 12px !important; background: #f5f5f5 !important; padding: 5px 10px !important; border-radius: 3px !important; transition: all 0.2s ease; }
.tag-item:hover { color: var(--theme-color) !important; background: #eee !important; }

.tag-item.hot { color: var(--theme-color) !important; font-weight: 900 !important; background: rgba(0,0,0,0.03) !important; }

.more-icon { font-size: 12px; margin-left: 2px; }

.map-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.map-head {
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 15px;
    margin-bottom: 20px;
    position: relative;
}
.map-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #333;
    margin: 0;
    padding-left: 15px;
    border-left: 6px solid var(--theme-color); 
    line-height: 1.2;
}

.cat-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
}
.cat-group {
    background: #fbfbfb;
    padding: 20px;
    border-radius: 6px;
    border: 1px dashed #eee;
    transition: all 0.3s;
}
.cat-group:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: var(--theme-color);
}
.cat-parent {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 10px;
}
.cat-parent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: var(--theme-color);
    border-radius: 2px;
}

.cat-parent:hover { color: var(--theme-color); }

.cat-children {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cat-pill {
    font-size: 14px;
    color: #555;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 5px 15px;
    border-radius: 4px;
    transition: all 0.2s;
}
.cat-pill:hover {
    color: #fff;
    background: var(--theme-color);
    border-color: var(--theme-color);
}

.link-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.matrix-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #555;
    background: #f9f9f9;
    padding: 10px 12px;
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    overflow: hidden;
    text-decoration: none;
}
.matrix-item:hover {
    background: #fff;
    color: var(--theme-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left-color: var(--theme-color);
    transform: translateY(-2px);
}
.matrix-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 5px;
    font-weight: 500;
}
.matrix-note {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}
.matrix-item:hover .matrix-note {
    color: var(--theme-color);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .map-card { padding: 15px; }
    .map-title { font-size: 18px !important; border-left-width: 4px; }
    .cat-container { grid-template-columns: 1fr; }
    .link-matrix {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .matrix-item {
        font-size: 12px;
        padding: 8px;
        flex-direction: column;
        align-items: flex-start;
    }
    .matrix-name { width: 100%; margin-bottom: 2px; }
    .matrix-note { font-size: 10px; opacity: 0.6; }
}

.v22-d5d0-header { background: #fff !important; box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important; position: sticky; top: 0; z-index: 999; }
.v22-d5d0-logo { font-size: 26px !important; font-weight: 900 !important; color: var(--theme-color) !important; letter-spacing: -1.5px !important; }
.v22-d5d0-mod-head-type { margin-bottom: 20px !important; display: flex !important; align-items: center !important; }
.v22-d5d0-type-title { font-size: 18px !important; font-weight: 700 !important; color: #333 !important; margin: 0 !important; line-height: 1 !important; }

.ep-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 0 0 12px 12px;
    border: 1px solid #f6f6f6;
    border-top: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    position: relative;
    z-index: 2;
}

.ep-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    width: 100px;
    background-color: #f7f8fa;
    color: #555;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    cursor: pointer;
}

.ep-nav-item.disabled {
    opacity: 0.4;
    background-color: #f0f0f0;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

a.ep-nav-item:hover {
    background-color: var(--theme-color) !important;
    color: #fff !important;
    border-color: var(--theme-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.ep-nav-item span {
    white-space: nowrap;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .d-right { display: none !important; }
    .detail-layout { flex-wrap: wrap; }
    .d-info { width: 100%; margin-right: 0; }
    .nav-link { font-size: 14px; padding: 0 12px; }
    .wrap { padding: 0 10px; }
    .list-grid { grid-template-columns: repeat(3, 1fr); gap: 15px 8px; }
    .item-title { font-size: 12px; margin-top: 4px; }
    .item-sub { font-size: 11px; transform: scale(0.9); transform-origin: left top; width: 110%; } 
    .item-note { font-size: 10px; margin-top: -22px; padding-right: 4px; } 
    .item-score { font-size: 10px; padding: 1px 4px; }
    .d-cover { width: 110px; }
    .d-title { font-size: 17px; }
    .play-list { grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 200px; }
    .play-btn { height: 40px; line-height: 38px; font-size: 14px; }
    .page a, .page span { padding: 6px 12px; font-size: 12px; margin: 0 2px; }
    .footer-links a { display: inline-block; margin: 5px 8px; font-size: 12px; }
    .map-list a { width: 33.33%; font-size: 12px; }

    .ep-nav-row { padding: 12px 15px; }
    .ep-nav-item { padding: 9px 0; width: 45%; font-size: 13px; background-color: #f5f5f5; }

    .map-card { padding: 15px; }
    .map-title { font-size: 18px !important; }
    .cat-container { grid-template-columns: 1fr; }
    .link-matrix { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .matrix-item { font-size: 12px; padding: 6px 8px; }
    .matrix-note { display: none; }
}

.mod-head-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #f5f5f5; 
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.mod-head-flex .mod-title,
.mod-head-flex h1 {
    margin: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important; 
    line-height: 1.2 !important;
}

.type-count-label {
    font-size: 13px;
    color: #999;
    white-space: nowrap; 
    margin-left: 15px;
}

.type-count-label b {
    color: var(--theme-color); 
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    margin: 0 3px;
    font-size: 15px;
}