/*
 * z0011 - "科技银河" Tech Galaxy / Silver Futuristic Theme
 * Primary: #00A3FF (Azure Blue)
 * Secondary: #7B68EE (Medium Slate Blue / Purple)
 * Background: #0d1117 (GitHub Dark)
 * Style: Glassmorphism, animated gradients, neon glow, futuristic monospace accents
 */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #c9d1d9;
    background: #0d1117;
    line-height: 1.6;
    min-height: 100vh;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 10%, rgba(0,163,255,.06) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 80% 85%, rgba(123,104,238,.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
a { color: #c9d1d9; text-decoration: none; transition: color .2s; }
a:hover { color: #00A3FF; }
img { max-width: 100%; display: block; }

/* ===== Animated Header ===== */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: linear-gradient(270deg, rgba(0,163,255,.08), rgba(123,104,238,.08), rgba(0,163,255,.04), rgba(123,104,238,.06));
    background-size: 400% 100%;
    animation: headerGradient 12s ease infinite;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 1px 30px rgba(0,0,0,.4);
}
@keyframes headerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hd-wrap {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 58px;
    padding: 0 20px;
    gap: 16px;
}
.logo {
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    background: linear-gradient(135deg, #00A3FF 0%, #7B68EE 50%, #00A3FF 100%);
    background-size: 200% 100%;
    animation: logoShimmer 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}
@keyframes logoShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
header nav[aria-label="主导航"] {
    display: flex;
    gap: 2px;
    flex: 1;
    overflow: hidden;
    flex-wrap: nowrap;
}
header nav[aria-label="主导航"] a {
    padding: 7px 14px;
    font-size: 13px;
    color: #8b949e;
    white-space: nowrap;
    border-radius: 8px;
    transition: all .25s;
    position: relative;
}
header nav[aria-label="主导航"] a:hover {
    color: #e6edf3;
    background: rgba(255,255,255,.06);
}
header nav[aria-label="主导航"] a.active {
    color: #00A3FF;
    background: rgba(0,163,255,.12);
    box-shadow: inset 0 0 0 1px rgba(0,163,255,.2);
}
header nav[aria-label="主导航"] a.sub { font-size: 12px; color: #484f58; }
header nav[aria-label="主导航"] a.sub:hover { color: #8b949e; }
header nav[aria-label="主导航"] a.sub.active { color: #7B68EE; background: rgba(123,104,238,.12); box-shadow: inset 0 0 0 1px rgba(123,104,238,.2); }

/* Search bar */
.hd-search { display: flex; flex-shrink: 0; }
.hd-search input {
    width: 170px;
    height: 34px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px 0 0 8px;
    padding: 0 12px;
    font-size: 13px;
    color: #c9d1d9;
    outline: none;
    transition: all .3s;
}
.hd-search input:focus {
    border-color: rgba(0,163,255,.5);
    background: rgba(0,163,255,.06);
    box-shadow: 0 0 12px rgba(0,163,255,.15);
}
.hd-search button {
    height: 34px;
    padding: 0 16px;
    background: linear-gradient(135deg, #00A3FF, #7B68EE);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all .25s;
}
.hd-search button:hover {
    box-shadow: 0 0 16px rgba(0,163,255,.35);
}

/* Mobile buttons */
.m-btns { display: none; gap: 8px; flex-shrink: 0; margin-left: auto; }
.m-btns button {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    cursor: pointer;
    color: #00A3FF;
    padding: 6px;
    transition: all .2s;
}
.m-btns button:hover {
    background: rgba(0,163,255,.1);
    border-color: rgba(0,163,255,.3);
}

/* Search Panel (Mobile) */
.search-panel {
    display: none;
    padding: 12px 20px;
    background: rgba(13,17,23,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.search-panel.show { display: flex; gap: 8px; }
.search-panel input {
    flex: 1;
    height: 40px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    color: #c9d1d9;
    outline: none;
}
.search-panel input:focus { border-color: rgba(0,163,255,.5); box-shadow: 0 0 12px rgba(0,163,255,.1); }
.search-panel button {
    height: 40px;
    padding: 0 20px;
    background: linear-gradient(135deg, #00A3FF, #7B68EE);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

/* Mobile Nav */
.m-nav {
    display: none;
    background: rgba(13,17,23,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 6px;
}
.m-nav.show { display: flex; }
.m-nav a {
    padding: 8px 16px;
    font-size: 14px;
    color: #8b949e;
    border-radius: 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    transition: all .2s;
}
.m-nav a:hover { color: #00A3FF; background: rgba(0,163,255,.1); border-color: rgba(0,163,255,.2); }
.m-nav a.sub { font-size: 12px; color: #484f58; }

/* ===== Main Container ===== */
main { max-width: 1280px; margin: 0 auto; padding: 20px 20px; position: relative; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
main > h1 {
    font-size: 20px;
    font-weight: 700;
    color: #e6edf3;
    padding: 10px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    position: relative;
}
main > h1::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #00A3FF, #7B68EE);
    border-radius: 1px;
}

/* ===== Section Headers - Gradient Text ===== */
.sec-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    position: relative;
}
.sec-hd::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #00A3FF, #7B68EE);
    border-radius: 1px;
}
.sec-hd span {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #00A3FF, #7B68EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}
.sec-hd .more, .sec-hd a:not(:first-child) {
    font-size: 13px;
    color: #484f58;
    transition: all .2s;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.06);
}
.sec-hd .more:hover, .sec-hd a:not(:first-child):hover {
    color: #00A3FF;
    border-color: rgba(0,163,255,.3);
    background: rgba(0,163,255,.06);
}

/* ===== Video Grid - Glassmorphism Cards ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
a.card {
    display: block;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    overflow: hidden;
    transition: all .35s cubic-bezier(.25,.8,.25,1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}
a.card:hover {
    border-color: rgba(0,163,255,.45);
    box-shadow: 0 8px 32px rgba(0,163,255,.2), 0 0 0 1px rgba(0,163,255,.1);
    transform: translateY(-6px);
}
a.card .cover {
    display: block;
    position: relative;
    padding-bottom: 140%;
    overflow: hidden;
    background: #161b22;
}
a.card .cover img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.25,.8,.25,1);
}
a.card:hover .cover img { transform: scale(1.08); }
a.card .cover .mark {
    position: absolute;
    right: 0;
    top: 10px;
    background: linear-gradient(135deg, #00A3FF, #7B68EE);
    color: #fff;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px 2px 12px;
    border-radius: 4px 0 0 4px;
    letter-spacing: .5px;
    box-shadow: 0 2px 8px rgba(0,163,255,.3);
}
a.card .card-body {
    padding: 10px 12px;
}
a.card .title {
    display: block;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #8b949e;
    transition: color .2s;
}
a.card:hover .title { color: #e6edf3; }
a.card .card-score {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #7B68EE;
    padding: 0 12px 8px;
}

/* ===== Category Tabs - Glass Capsules ===== */
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.cat-tabs a {
    padding: 6px 18px;
    font-size: 13px;
    border-radius: 20px;
    color: #8b949e;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    transition: all .25s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.cat-tabs a:hover {
    color: #e6edf3;
    border-color: rgba(255,255,255,.15);
    background: rgba(255,255,255,.07);
}
.cat-tabs a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(0,163,255,.25), rgba(123,104,238,.25));
    border-color: rgba(0,163,255,.4);
    box-shadow: 0 0 12px rgba(0,163,255,.15);
}

/* ===== Breadcrumb ===== */
nav.breadcrumb {
    font-size: 13px;
    color: #484f58;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
nav.breadcrumb a { color: #8b949e; }
nav.breadcrumb a:hover { color: #00A3FF; }
nav.breadcrumb span { color: #c9d1d9; }

/* ===== Detail Page - Glass Panel ===== */
.detail {
    display: flex;
    gap: 24px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}
.detail::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0,163,255,.15), transparent 40%, transparent 60%, rgba(123,104,238,.15));
    z-index: -1;
    pointer-events: none;
    opacity: .5;
}
.detail-cover { width: 220px; flex-shrink: 0; }
.detail-cover img { width: 100%; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.detail-info { flex: 1; min-width: 0; }
.detail-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #e6edf3;
    line-height: 1.4;
    border: none;
    padding: 0;
}
.detail-info h1::after { display: none; }
.score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #00A3FF, #7B68EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}
.info-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.info-table th {
    width: 55px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #484f58;
    padding: 5px 0;
    vertical-align: top;
}
.info-table td {
    font-size: 13px;
    color: #8b949e;
    padding: 5px 0;
    line-height: 1.6;
}
.info-table td a { color: #00A3FF; }
.info-table td a:hover { color: #7B68EE; }
.play-action { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 32px;
    background: linear-gradient(135deg, #00A3FF, #7B68EE);
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all .3s;
    box-shadow: 0 4px 16px rgba(0,163,255,.3);
}
.btn-play:hover {
    box-shadow: 0 6px 24px rgba(0,163,255,.45);
    transform: translateY(-2px);
    color: #fff;
}
.btn-play.disabled {
    background: #21262d;
    color: #484f58;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ===== Vod / Episode List ===== */
.vod-group { margin-bottom: 14px; }
.vod-name {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #00A3FF;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
}
.ep-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-btn {
    display: inline-block;
    padding: 5px 16px;
    font-size: 13px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    color: #8b949e;
    transition: all .25s;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
}
.ep-btn:hover {
    border-color: rgba(0,163,255,.4);
    color: #00A3FF;
    background: rgba(0,163,255,.06);
    box-shadow: 0 0 10px rgba(0,163,255,.1);
}
.ep-btn.active {
    background: linear-gradient(135deg, #00A3FF, #7B68EE);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(0,163,255,.3);
}

/* ===== Description ===== */
.desc {
    font-size: 14px;
    line-height: 1.9;
    color: #8b949e;
    padding: 14px 18px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ===== Player - Neon Glow Border ===== */
.player-box { margin-bottom: 20px; }
.player-wrap {
    position: relative;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid rgba(0,163,255,.3);
    box-shadow:
        0 0 20px rgba(0,163,255,.15),
        0 0 60px rgba(123,104,238,.08),
        inset 0 0 20px rgba(0,0,0,.5);
}
.player-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0d1117;
    color: #8b949e;
    font-size: 14px;
    z-index: 5;
    gap: 12px;
}
.player-loading.hide { display: none; }
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,.08);
    border-top-color: #00A3FF;
    border-right-color: #7B68EE;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 12px rgba(0,163,255,.2);
}
@keyframes spin { to { transform: rotate(360deg); } }
.video-player { width: 100%; height: 100%; }
.video-player iframe { width: 100%; height: 100%; border: none; }

/* ===== Pagination - Glass Pills ===== */
.paging { padding: 20px 0; text-align: center; }
.paging ul {
    list-style: none;
    padding: 0; margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.paging a, .paging span {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    color: #8b949e;
    transition: all .25s;
}
.paging a:hover {
    border-color: rgba(0,163,255,.4);
    color: #00A3FF;
    background: rgba(0,163,255,.06);
}
.paging .active a, .paging span.current, .paging a.current {
    background: linear-gradient(135deg, #00A3FF, #7B68EE);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(0,163,255,.25);
}
.paging .disabled a { color: #21262d; cursor: default; border-color: rgba(255,255,255,.04); }

/* ===== Empty State ===== */
.empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #484f58;
    background: rgba(255,255,255,.02);
    border: 1px dashed rgba(255,255,255,.08);
    border-radius: 14px;
    margin: 20px 0;
}

/* ===== Footer - Subtle Glass ===== */
footer {
    border-top: 1px solid rgba(255,255,255,.06);
    background: rgba(13,17,23,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-top: 40px;
    position: relative;
    z-index: 1;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,163,255,.3), rgba(123,104,238,.3), transparent);
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px;
    text-align: center;
}
.footer-links { margin-bottom: 10px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.footer-links a {
    color: #484f58;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all .2s;
}
.footer-links a:hover { color: #00A3FF; background: rgba(0,163,255,.06); }
.footer-inner p { font-size: 12px; color: #30363d; margin-top: 4px; }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
}
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    header nav[aria-label="主导航"] a.sub { display: none; }
}
@media (max-width: 768px) {
    .grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    header nav[aria-label="主导航"] { display: none; }
    .hd-search { display: none; }
    .m-btns { display: flex; }
    .detail { flex-direction: column; gap: 16px; padding: 18px; }
    .detail-cover { width: 180px; margin: 0 auto; }
    .hd-wrap { height: 52px; padding: 0 14px; }
    main { padding: 14px 14px; }
    .sec-hd span { font-size: 16px; }
    a.card:hover { transform: translateY(-3px); }
}
@media (max-width: 480px) {
    .grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    main { padding: 10px 10px; }
    .detail { padding: 14px; gap: 12px; }
    .detail-cover { width: 140px; }
    .detail-info h1 { font-size: 18px; }
    .ep-btn { padding: 4px 12px; font-size: 12px; }
    .logo { font-size: 17px; }
    .sec-hd { margin: 20px 0 12px; }
    a.card .title { font-size: 12px; padding: 8px 8px; }
    a.card .cover .mark { font-size: 10px; padding: 2px 8px 2px 10px; }
    .cat-tabs a { padding: 5px 12px; font-size: 12px; }
    .player-wrap { border-radius: 10px; }
    .btn-play { padding: 8px 24px; font-size: 14px; }
}
