:root {
    --vod-bg: #0f1117;
    --vod-surface: #171b24;
    --vod-surface-2: #1f2533;
    --vod-border: #2a3142;
    --vod-text: #e8ecf4;
    --vod-muted: #9aa3b5;
    --vod-accent: #6c8cff;
    --vod-accent-2: #8b5cf6;
    --vod-radius: 12px;
    --vod-ad-h-list-top: 68px;
    --vod-ad-h-list-bottom: 68px;
    --vod-ad-h-list-inline: 100px;
    --vod-ad-h-play-top: 68px;
    --vod-ad-h-play-bottom: 76px;
    --vod-ad-h-play-side: 240px;
    --vod-ad-h-sticky-top: 44px;
    --vod-ad-h-sticky-bottom: 44px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--vod-bg);
    color: var(--vod-text);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.vod-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.vod-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 17, 23, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--vod-border);
}

.vod-header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    flex-wrap: wrap;
}

.vod-domain-nav {
    display: flex;
    flex: 1;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.vod-domain-nav-item {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--vod-border);
    color: var(--vod-muted);
    font-size: 12px;
    white-space: nowrap;
}

.vod-domain-nav-item:hover,
.vod-domain-nav-item.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--vod-accent), var(--vod-accent-2));
}

.vod-logo {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--vod-accent), var(--vod-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vod-search {
    flex: 1;
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin-left: auto;
}

.vod-search input {
    flex: 1;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--vod-border);
    border-radius: 999px;
    background: var(--vod-surface);
    color: var(--vod-text);
    outline: none;
}

.vod-search input:focus {
    border-color: var(--vod-accent);
}

.vod-search button {
    flex: 0 0 auto;
    height: 40px;
    min-width: 72px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--vod-accent), var(--vod-accent-2));
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0;
    line-height: 40px;
    font-size: 14px;
}

.vod-main { padding: 24px 0 48px; }

.vod-footer {
    padding: 24px 0 40px;
    border-top: 1px solid var(--vod-border);
    color: var(--vod-muted);
    text-align: center;
    font-size: 14px;
}

.vod-hero {
    margin-bottom: 28px;
}

.vod-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.vod-hero p {
    margin: 0;
    color: var(--vod-muted);
}

.vod-domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.vod-domain-card {
    padding: 20px;
    border: 1px solid var(--vod-border);
    border-radius: var(--vod-radius);
    background: linear-gradient(180deg, var(--vod-surface), var(--vod-surface-2));
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.vod-domain-card:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 140, 255, 0.5);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.vod-domain-name {
    font-size: 16px;
    font-weight: 600;
    word-break: break-all;
    margin-bottom: 12px;
}

.vod-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(108, 140, 255, 0.15);
    color: #b9c7ff;
    font-size: 12px;
}

.vod-badge-warn {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

.vod-notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: var(--vod-radius);
    border: 1px solid var(--vod-border);
    font-size: 14px;
    line-height: 1.6;
}

.vod-notice strong {
    display: block;
    margin-bottom: 6px;
}

.vod-notice p {
    margin: 0 0 8px;
    color: var(--vod-muted);
}

.vod-notice p:last-child {
    margin-bottom: 0;
}

.vod-notice a {
    color: var(--vod-accent);
}

.vod-notice-warn {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.35);
}

.vod-notice-warn strong {
    color: #fcd34d;
}

.vod-notice-error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.35);
}

.vod-notice-error strong {
    color: #fca5a5;
}

.vod-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    color: var(--vod-muted);
    font-size: 14px;
}

.vod-breadcrumb a:hover { color: var(--vod-accent); }

.vod-domain-head {
    margin-bottom: 20px;
}

.vod-domain-head h1 {
    margin: 0 0 6px;
    font-size: 24px;
    word-break: break-all;
}

.vod-domain-head p {
    margin: 0;
    color: var(--vod-muted);
}

.vod-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.vod-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--vod-border);
    background: var(--vod-surface);
    color: var(--vod-muted);
    font-size: 14px;
    transition: all .2s;
}

.vod-cat-tab em {
    font-style: normal;
    font-size: 12px;
    opacity: .75;
}

.vod-cat-tab:hover,
.vod-cat-tab.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--vod-accent), var(--vod-accent-2));
}

.vod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.vod-grid-sm {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.vod-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--vod-radius);
    background: var(--vod-surface);
    border: 1px solid var(--vod-border);
    transition: transform .2s, border-color .2s;
}

.vod-card:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 140, 255, 0.45);
}

.vod-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #11151d;
    overflow: hidden;
    border-radius: 0;
}

.vod-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vod-play-icon {
    position: absolute;
    inset: auto 10px 10px auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.vod-card .vod-title {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 12px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--vod-text);
    background: var(--vod-surface-2, var(--vod-surface));
    border-top: 1px solid var(--vod-border);
    box-sizing: border-box;
}

.vod-card .vod-title-text {
    display: block;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 22px;
    height: 44px;
    max-height: 44px;
}

.vod-card-today .vod-title {
    padding: 9px 10px 11px;
}

.vod-card-today .vod-title-text {
    font-size: 12px;
    line-height: 20px;
    height: 40px;
    max-height: 40px;
}

.vod-player-wrap {
    border-radius: var(--vod-radius);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--vod-border);
    margin-bottom: 20px;
}

#vodPlayer {
    width: 100%;
    max-height: 70vh;
    display: block;
    background: #000;
}

.vod-play-info h1 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.4;
}

.vod-play-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--vod-muted);
    font-size: 14px;
}

.vod-related {
    margin-top: 32px;
}

.vod-related h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.vod-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--vod-muted);
    border: 1px dashed var(--vod-border);
    border-radius: var(--vod-radius);
}

.vod-pagination {
    margin-top: 28px;
    text-align: center;
}

.vod-pagination ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.vod-pagination li a,
.vod-pagination li span {
    display: inline-block;
    min-width: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--vod-border);
    background: var(--vod-surface);
    color: var(--vod-text);
}

.vod-pagination li.active span {
    background: linear-gradient(135deg, var(--vod-accent), var(--vod-accent-2));
    border-color: transparent;
}

.vod-grid .vod-ad-list_inline {
    grid-column: 1 / -1;
}

.vod-ad {
    margin: 16px 0;
}

.vod-ad-item {
    display: block;
    border-radius: var(--vod-radius);
    overflow: hidden;
    border: 1px solid var(--vod-border);
    background: var(--vod-surface);
}

.vod-ad-item img {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* 列表顶栏：同位置统一固定高度 */
.vod-ad-list_top .vod-ad-item {
    height: var(--vod-ad-h-list-top);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.04);
}

.vod-ad-list_top .vod-ad-item + .vod-ad-item {
    margin-top: 8px;
}

.vod-ad-list_top .vod-ad-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

.vod-ad-list_top .vod-ad-html {
    height: var(--vod-ad-h-list-top);
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* 列表穿插 */
.vod-ad-list_inline .vod-ad-item {
    height: var(--vod-ad-h-list-inline);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
}

.vod-ad-list_inline .vod-ad-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

.vod-ad-play_side .vod-ad-item {
    height: var(--vod-ad-h-play-side);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vod-ad-play_side .vod-ad-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

.vod-ad-play_bottom .vod-ad-item {
    height: var(--vod-ad-h-play-bottom);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vod-ad-play_bottom .vod-ad-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

.vod-ad-list_bottom .vod-ad-item,
.vod-ad-play_top .vod-ad-item {
    height: var(--vod-ad-h-list-bottom);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
}

.vod-ad-list_bottom .vod-ad-item + .vod-ad-item,
.vod-ad-play_top .vod-ad-item + .vod-ad-item {
    margin-top: 8px;
}

.vod-ad-list_bottom .vod-ad-item img,
.vod-ad-play_top .vod-ad-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

.vod-ad-list_bottom {
    margin-top: 16px;
}

/* ========== 全站悬浮 / 弹窗广告 ========== */
.vod-ad-global.is-hidden {
    display: none !important;
}

.vod-ad-sticky_top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: var(--vod-ad-h-sticky-top);
    background: var(--vod-surface);
    border-bottom: 1px solid var(--vod-border);
}

.vod-ad-sticky_top .vod-ad-item {
    height: 100%;
    border: none;
    border-radius: 0;
}

.vod-ad-sticky_top .vod-ad-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.vod-ad-sticky_bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: var(--vod-ad-h-sticky-bottom);
    background: var(--vod-surface);
    border-top: 1px solid var(--vod-border);
}

.vod-ad-sticky_bottom .vod-ad-item {
    height: 100%;
    border: none;
    border-radius: 0;
}

.vod-ad-sticky_bottom .vod-ad-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.vod-ad-sticky-close {
    position: absolute;
    top: 4px;
    right: 6px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

body.vod-has-sticky-top {
    padding-top: var(--vod-ad-h-sticky-top);
}

body.vod-has-sticky-top .vod-header {
    top: var(--vod-ad-h-sticky-top);
}

body.vod-has-sticky-bottom {
    padding-bottom: var(--vod-ad-h-sticky-bottom);
}

.vod-ad-popup {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.vod-ad-popup.is-open {
    display: flex;
}

.vod-ad-popup-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.vod-ad-popup-panel {
    position: relative;
    z-index: 1;
    width: min(420px, 92vw);
    max-height: 80vh;
    background: var(--vod-surface);
    border-radius: var(--vod-radius);
    overflow: hidden;
    border: 1px solid var(--vod-border);
}

.vod-ad-popup-close {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.vod-ad-popup-body {
    display: block;
    border: none;
    border-radius: 0;
    max-height: 80vh;
}

.vod-ad-popup-body img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.vod-ad-float_br {
    position: fixed;
    right: 12px;
    bottom: 72px;
    z-index: 190;
    width: 88px;
}

.vod-ad-float_br .vod-ad-float-item {
    display: block;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--vod-border);
}

.vod-ad-float_br .vod-ad-float-item img {
    width: 100%;
    height: auto;
    display: block;
}

.vod-ad-float-close {
    position: absolute;
    top: -10px;
    right: -6px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.vod-play-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
    align-items: start;
}

.vod-play-aside .vod-ad {
    position: sticky;
    top: 80px;
}

/* 今日推荐 */
.vod-today {
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--vod-border);
    border-radius: var(--vod-radius);
    background: linear-gradient(180deg, rgba(108, 140, 255, 0.08), transparent);
}

.vod-today-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.vod-today-head h2 {
    margin: 0;
    font-size: 18px;
}

.vod-today-meta {
    color: var(--vod-muted);
    font-size: 13px;
}

.vod-today-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.vod-today-scroll .vod-today-list {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}

.vod-today-scroll .vod-card-today {
    flex: 0 0 160px;
    scroll-snap-align: start;
}

.vod-card-today {
    border-color: rgba(108, 140, 255, 0.35);
}

.vod-section-title {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--vod-muted);
    font-weight: 600;
}

.vod-module-nav,
.vod-footer-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.vod-footer-modules {
    justify-content: center;
    margin-bottom: 12px;
}

.vod-footer-modules a {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--vod-border);
    color: var(--vod-muted);
    font-size: 12px;
}

.vod-footer-modules a:hover {
    color: #fff;
    border-color: var(--vod-accent);
}

.vod-footer-mirror {
    margin: 8px 0 20px;
    padding: 0;
    background: var(--vod-surface, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--vod-border);
    text-align: left;
}

.vod-footer-mirror-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 12px;
    gap: 12px;
}

.vod-footer-mirror-head-main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 16px;
    min-width: 0;
}

.vod-footer-mirror-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--vod-text, #333);
    line-height: 1.4;
}

.vod-footer-mirror-desc {
    font-size: 12px;
    font-weight: 400;
    color: var(--vod-muted, #999);
    line-height: 1.4;
}

.vod-footer-mirror-line {
    height: 1px;
    margin: 0;
    background: var(--vod-border, #eee);
}

.vod-footer-mirror-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 28px;
    padding: 14px 18px 16px;
    line-height: 1.6;
}

.vod-footer-mirror-list a {
    color: var(--vod-text, #555);
    text-decoration: none;
    font-size: 13px;
    word-break: break-all;
}

.vod-footer-mirror-list a:hover {
    color: var(--vod-accent);
}

@media (max-width: 640px) {
    .vod-footer-mirror-head {
        padding: 12px 14px 10px;
    }

    .vod-footer-mirror-head-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .vod-footer-mirror-list {
        gap: 8px 18px;
        padding: 12px 14px 14px;
    }
}

.vod-cat-tabs-side {
    flex-direction: column;
    align-items: stretch;
}

@media (max-width: 900px) {
    .vod-play-layout {
        grid-template-columns: 1fr;
    }
    .vod-play-aside .vod-ad {
        position: static;
    }
}

@media (max-width: 640px) {
    .vod-header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .vod-search {
        width: 100%;
        max-width: none;
        margin-left: 0;
        flex-wrap: nowrap;
    }

    .vod-search input {
        min-width: 0;
    }

    .vod-search button {
        min-width: 64px;
        padding: 0 12px;
    }

    .vod-domain-nav {
        width: 100%;
        order: 3;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .vod-ad {
        margin: 10px 0;
    }

    /* 手机：顶栏/底部广告铺满屏幕两侧，PC 不变 */
    .vod-ad-list_top,
    .vod-ad-list_bottom,
    .vod-ad-play_top,
    .vod-ad-play_bottom {
        width: calc(100% + 32px);
        max-width: 100vw;
        margin-left: -16px;
        margin-right: -16px;
    }

    .vod-ad-list_top .vod-ad-item,
    .vod-ad-list_bottom .vod-ad-item,
    .vod-ad-play_top .vod-ad-item,
    .vod-ad-play_bottom .vod-ad-item {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    :root {
        --vod-ad-h-list-top: 58px;
        --vod-ad-h-list-bottom: 58px;
        --vod-ad-h-list-inline: 88px;
        --vod-ad-h-play-top: 58px;
        --vod-ad-h-play-bottom: 66px;
        --vod-ad-h-play-side: 180px;
        --vod-ad-h-sticky-top: 40px;
        --vod-ad-h-sticky-bottom: 40px;
    }

    .vod-ad-float_br {
        width: 72px;
        right: 8px;
        bottom: 64px;
    }

    .vod-ad-list_inline .vod-ad-item img {
        max-height: none;
    }

    .vod-logo {
        font-size: 16px;
    }

    .vod-header-inner {
        min-height: 52px;
    }

    .vod-main {
        padding-top: 16px;
    }

    .vod-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .vod-card-today .vod-title-text {
        line-height: 20px;
        height: 40px;
        max-height: 40px;
    }

    .vod-domain-nav {
        order: 3;
        width: 100%;
    }
}
