*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Netflix-inspired dark cinematic palette */
    --bg: #141414;
    --bg-surface: #181818;
    --bg-card: #181818;
    --bg-card-hover: #2f2f2f;
    --bg-elevated: #242424;
    --bg-soft: #1f1f1f;
    --surface: #181818;

    --text: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;

    --accent: #e50914;
    --accent-hover: #f6121d;
    --accent-soft: rgba(229, 9, 20, 0.16);
    --accent-light: rgba(229, 9, 20, 0.18);

    /* 兼容旧变量名：原黄色 CTA 体系在暗色主题下统一映射为红色/白色 */
    --accent-yellow: #e50914;
    --accent-yellow-hover: #f6121d;
    --accent-yellow-soft: rgba(229, 9, 20, 0.16);
    --accent-yellow-dark: #ffffff;

    --brand-dark: #000000;

    --accent-cyan: #e50914;
    --accent-pink: #f6121d;
    --accent-orange: #e50914;
    --accent-violet: #e50914;

    --grad-sunset: linear-gradient(135deg, #f40612 0%, #b00610 100%);
    --grad-ocean: linear-gradient(135deg, #f40612 0%, #83050c 100%);
    --grad-glow: none;
    --grad-watch: linear-gradient(135deg, #f40612 0%, #b00610 100%);
    --grad-hero: linear-gradient(to top, #141414 0%, rgba(20, 20, 20, 0.7) 30%, rgba(20, 20, 20, 0) 60%);

    --warn: #f7b928;
    --warn-soft: rgba(247, 185, 40, 0.15);
    --success: #46d369;
    --success-soft: rgba(70, 211, 105, 0.15);
    --danger: #e50914;
    --warning: #f7b928;

    --border: #333333;
    --border-light: #262626;

    --radius: 6px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 16px;
    --header-h: 60px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.7);
    --glow-cyan: 0 0 18px rgba(229, 9, 20, 0.45);

    --fb-sidebar-w: 240px;
    --fb-feed-max: 1600px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body,
.fb-body {
    font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4%;
}

/* Header — Netflix style: solid black, text nav */
.site-header,
.fb-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.85) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    height: var(--header-h);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-inner,
.fb-header-inner {
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 20px;
    max-width: none;
    margin: 0 auto;
    padding: 0 4%;
}

.logo {
    display: flex;
    align-items: center;
    align-self: center;
    height: auto;
    padding: 3px 10px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.logo:hover {
    transform: scale(1.03);
}

.fb-logo.logo {
    width: auto;
    height: auto;
    border-radius: 6px;
    justify-content: flex-start;
    padding: 3px 10px;
    flex-shrink: 0;
}

.logo-img {
    height: 38px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
    filter: none;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #e50914;
}

.fb-header-search {
    display: flex;
    align-items: center;
    flex: 0 1 260px;
    min-width: 0;
    margin: 0;
    margin-left: auto;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    height: 38px;
    transition: border-color 0.2s, background 0.2s;
}

.fb-header-search:focus-within {
    border-color: #fff;
    background: rgba(0, 0, 0, 0.8);
}

.fb-search-icon {
    font-size: 0.875rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.fb-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: #fff;
    outline: none;
    padding: 0 8px;
}

.fb-search-input::placeholder {
    color: var(--text-muted);
}

.header-nav,
.fb-header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 0;
}

/* Netflix 文字导航：隐藏 FB 式图标+双行结构，只保留横向文字链接 */
.fb-header-nav-item {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: auto;
    padding: 8px 12px;
    border-radius: 4px;
    border-bottom: none;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.fb-header-nav-item:hover {
    background: transparent;
    color: #fff;
}

.fb-header-nav-item.active {
    color: #fff;
    border-bottom: none;
    border-radius: 4px;
    font-weight: 700;
}

.fb-nav-icon {
    display: none;
}

.fb-nav-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0;
    white-space: nowrap;
}

.fb-header-nav-item.active .fb-nav-label {
    font-weight: 700;
}

.nav-link {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    background: transparent;
    color: #fff;
}

.nav-link.active {
    color: #fff;
    background: transparent;
    font-weight: 700;
}

/* Language switcher */
.lang-switcher {
    position: relative;
    margin-left: 12px;
}

.lang-switcher-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.lang-switcher-trigger:hover {
    border-color: #fff;
    background: rgba(0, 0, 0, 0.8);
}

.lang-switcher-icon {
    font-size: 0.95rem;
}

.lang-switcher-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-secondary);
}

.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    max-height: 60vh;
    overflow-y: auto;
    background: #1f1f1f;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 6px;
    z-index: 200;
}

.lang-switcher-option {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}

.lang-switcher-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lang-switcher-option.active {
    color: #fff;
    background: var(--accent);
    font-weight: 600;
}

/* Netflix full-width shell: 左栏导航并入顶部 header，右栏挂件转为全宽底部位 */
.fb-shell {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
    flex: 1;
    width: 100%;
}

.fb-sidebar-left {
    display: none;
}

.fb-sidebar-right {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 4% 0;
}

.fb-feed.site-main {
    flex: none;
    padding: 0;
    min-width: 0;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 4%;
    padding-right: 4%;
}

.fb-card {
    background: transparent;
    border-radius: var(--radius);
    box-shadow: none;
    padding: 0;
    border: none;
}

.fb-profile-link,
.fb-profile-avatar,
.fb-profile-avatar-text,
.fb-profile-text,
.fb-profile-name,
.fb-profile-slogan,
.fb-shortcuts,
.fb-shortcut,
.fb-shortcut-icon {
    color: inherit;
}

.fb-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    letter-spacing: 0.01em;
}

.fb-sidebar-right .fb-card.fb-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.fb-widget-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fb-widget-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}

.fb-widget-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.fb-widget-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 999px;
}

.fb-widget-footer .fb-footer-mini {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.fb-filter-card.filters {
    margin-bottom: 0;
}

.fb-feed-header.list-meta {
    margin-bottom: 0;
    align-items: baseline;
}

.fb-feed-intro .page-intro {
    margin: 0;
}

.fb-feed-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fb-card-grid {
    gap: 20px;
}

.fb-footer-bottom {
    display: block;
}

/* Main (legacy pages) */
.site-main {
    flex: 1;
    padding: 16px 0 24px;
}

/* Filters */
.filters {
    margin-bottom: 12px;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.75fr) auto;
    gap: 12px;
    align-items: end;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.filter-field-platform {
    min-width: 0;
}

.filter-field-action {
    width: 96px;
    justify-content: flex-end;
}

.filter-control {
    width: 100%;
    min-height: 44px;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.platform-picker {
    position: relative;
    width: 100%;
}

.platform-picker-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text);
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.25;
    cursor: pointer;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s, background 0.2s;
}

.platform-picker-trigger:hover {
    border-color: var(--accent-cyan);
    background: var(--bg-card-hover);
}

.platform-picker-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.platform-picker img.platform-picker-icon {
    display: block;
    max-width: 20px;
}

.platform-picker-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
    font-size: 0.875rem;
    line-height: 1;
}

.platform-picker-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-picker-caret {
    width: 0;
    height: 0;
    margin-left: auto;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-muted);
    flex-shrink: 0;
}

.platform-picker-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 120;
    min-width: 200px;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-lg);
}

.platform-picker-menu[hidden] {
    display: none !important;
}

.platform-picker-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--text);
    font-size: 0.875rem;
    white-space: nowrap;
    transition: background 0.15s;
}

.platform-picker-option span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.platform-picker-option:hover {
    background: var(--bg-card-hover);
}

.platform-picker-option.active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.filter-select {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--bg-surface);
    color: var(--text);
    font-size: 0.875rem;
    font-family: inherit;
    min-height: 44px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b3b3b3' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s;
}

.filter-select option {
    background: #1f1f1f;
    color: #fff;
}

.filter-select:hover {
    border-color: var(--accent-cyan);
}

.search-input {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.btn-search {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-search:hover {
    background: var(--accent-hover);
}

.btn-search:active {
    transform: scale(0.97);
}

/* ===== Netflix Hero billboard（列表首页首条精选） ===== */
.hero {
    position: relative;
    /* 与 .fb-feed 的 4% 侧内边距对消，做出血效果；超宽屏自然收在 1600 容器内 */
    margin-left: -4%;
    margin-right: -4%;
    margin-bottom: 36px;
    height: clamp(420px, 62vh, 660px);
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 0.55;
}

.hero-fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, var(--bg) 0%, rgba(20, 20, 20, 0.25) 38%, rgba(20, 20, 20, 0) 62%),
        linear-gradient(to right, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 32%, rgba(0, 0, 0, 0) 62%);
}

[dir="rtl"] .hero-fade {
    background:
        linear-gradient(to top, var(--bg) 0%, rgba(20, 20, 20, 0.25) 38%, rgba(20, 20, 20, 0) 62%),
        linear-gradient(to left, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 32%, rgba(0, 0, 0, 0) 62%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    padding: 0 4% 52px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-kicker-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
}

.hero-kicker-platform {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e6e6e6;
    letter-spacing: 0.04em;
}

.hero-title {
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    font-weight: 900;
    line-height: 1.06;
    color: #fff;
    max-width: 62%;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-btn-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: background 0.2s ease;
}

.hero-btn-play:hover {
    background: rgba(255, 255, 255, 0.78);
}

.hero-btn-play .hero-play-icon {
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .hero {
        height: 440px;
        margin-bottom: 24px;
    }

    .hero-bg {
        opacity: 0.4;
        object-position: center 15%;
    }

    .hero-inner {
        padding-bottom: 36px;
    }

    .hero-title {
        max-width: 100%;
        font-size: clamp(1.7rem, 7vw, 2.4rem);
    }

    .hero-btn-play {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
}

/* List */
.list-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.page-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.01em;
}

.total-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
}

.card,
.fb-card-item {
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    overflow: visible;
    box-shadow: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.card:hover,
.fb-card-item:hover {
    transform: scale(1.06);
    z-index: 5;
}

.card-cover-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.25s ease;
}

.card:hover .card-cover-wrap,
.fb-card-item:hover .card-cover-wrap {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
}

.card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .card-cover {
    transform: none;
}

.corner-mark {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.corner-mark.hot {
    background: var(--accent);
    color: #fff;
}

.corner-mark.new {
    background: #fff;
    color: #000;
}

.card-body {
    padding: 10px 2px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.card:hover .card-title,
.fb-card-item:hover .card-title {
    color: #fff;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.card-platform-icon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.page-btn {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.page-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.page-info {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Empty & Error */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 1rem;
}

.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.error-page p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 700;
    transition: background 0.2s;
    box-shadow: none;
}

.btn-back:hover {
    background: var(--accent-hover);
}

/* Detail */
.detail-page {
    max-width: 100%;
}

/* ===== Detail Page: 3-Column Layout ===== */
.detail-page {
    padding: 24px 0 40px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

/* --- Left Column: Cover + Info + Episodes --- */
.detail-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-left::-webkit-scrollbar {
    width: 6px;
}

.detail-left::-webkit-scrollbar-track {
    background: transparent;
}

.detail-left::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.detail-left::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.detail-left {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.detail-cover {
    width: 100%;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 9 / 16;
    background: var(--bg-card);
}

.detail-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- Center Column: Video Player --- */
.detail-center {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Right Column: Promotion + Share --- */
.detail-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.player-wrap {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.player-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.player-loading.hidden {
    display: none;
}

.player-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* 视频卡死/黑屏提示（player-watchdog.js） */
.player-stuck {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    text-align: center;
}

.player-stuck-msg {
    margin: 0;
    max-width: 320px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.player-stuck-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.player-stuck-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.player-stuck-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.player-stuck-btn.is-primary {
    border-color: var(--accent);
    background: var(--accent);
}

.player-stuck-btn.is-primary:hover {
    background: var(--accent-hover);
}

.detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.detail-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.detail-platform-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
}

.tag-badge {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.detail-date {
    color: var(--text-muted, #999);
    font-size: 0.8rem;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    padding: 6px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.detail-desc-wrap {
    position: relative;
    margin-bottom: 16px;
}

.detail-desc-collapsed {
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.detail-desc-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--bg-card));
    pointer-events: none;
}

.desc-toggle {
    display: block;
    margin-top: 8px;
    padding: 6px 0;
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s;
}

.desc-toggle:hover {
    color: var(--accent-pink);
}

.episodes {
    margin-bottom: 0;
    width: 100%;
}

.episodes-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.episode-btn {
    padding: 12px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-align: center;
}

.episode-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--text);
}

.episode-btn.active {
    border-color: transparent;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(229, 9, 20, 0.35);
}

/* Promotion */
.promotion-guide {
    margin-bottom: 0;
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

.promotion-skeleton {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promotion-placeholder {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.promotion-guide-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.promotion-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.promotion-guide-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.promotion-guide-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.promotion-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: transform 0.15s, opacity 0.15s;
}

.promo-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.promo-btn:active {
    transform: scale(0.98);
}

.promo-btn-primary {
    background: #fff;
    color: #000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.promo-btn-primary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.promo-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.promo-btn-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.promo-btn-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.promo-btn-text strong {
    font-size: 0.875rem;
    font-weight: 600;
}

.promo-btn-text small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.promo-code-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}

.promo-code-info strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.promo-code-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Share */
.share-section {
    margin-bottom: 0;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

.share-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.1s;
}

.share-btn span:last-child {
    display: none;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.share-btn:active {
    transform: scale(0.94);
}

.share-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
}

.share-btn-facebook {
    background: #1877f2;
    color: #fff;
}

.share-btn-facebook .share-btn-icon {
    font-family: Georgia, serif;
}

.share-btn-twitter {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.share-btn-kakaotalk {
    background: #FEE500;
    color: #191919;
}

.share-btn-kakaotalk .share-btn-icon {
    background: rgba(0, 0, 0, 0.1);
}

.share-btn-line {
    background: #06C755;
    color: #fff;
}

.share-btn-telegram {
    background: #26A5E4;
    color: #fff;
}

.share-btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.share-btn-reddit {
    background: #FF4500;
    color: #fff;
}

.share-btn-email {
    background: #475569;
    color: #fff;
}

.share-btn-copy {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    grid-column: 1 / -1;
}

/* In narrow sidebars (book left column), stack share buttons vertically */
.book-left .share-buttons {
    grid-template-columns: 1fr;
}

.book-left .share-btn-copy {
    grid-column: auto;
}

.share-btn-copy .share-btn-icon {
    background: var(--bg);
}

.share-btn-tiktok {
    background: #010101;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.share-btn-tiktok .share-btn-icon {
    background: linear-gradient(135deg, #25f4ee, #fe2c55);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1rem;
}

.share-feedback {
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--success);
    font-weight: 500;
}

/* Book detail */
.book-layout {
    display: grid;
    gap: 28px;
}

.book-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.book-right {
    min-width: 0;
}

.book-cover-wrap {
    max-width: 240px;
    margin: 0 auto;
}

.book-cover {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.book-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.3;
}

.book-author {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.book-chapters {
    margin-top: 24px;
}

.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding-right: 4px;
}

.chapter-list::-webkit-scrollbar {
    width: 4px;
}

.chapter-list::-webkit-scrollbar-track {
    background: transparent;
}

.chapter-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.chapter-btn {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chapter-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    color: var(--text);
}

.chapter-btn.active {
    border-color: transparent;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}

.chapter-content {
    display: none;
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

.chapter-content.active {
    display: block;
}

.chapter-content-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.chapter-content-body {
    white-space: pre-wrap;
    line-height: 1.85;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.promo-code-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.promo-code-btn:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.promo-code-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.promo-code-value {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-cyan);
}

.promo-code-action {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* About page */
.about-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 0;
}

.about-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 32px;
    color: #fff;
    letter-spacing: 0.01em;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.about-section p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s, background 0.15s;
}

.about-contact-item:hover {
    border-color: var(--accent-cyan);
    background: var(--bg-card-hover);
}

.about-contact-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.about-contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.about-contact-info strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.about-contact-info span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 0;
    background: #000;
    color: var(--text-secondary);
    margin-top: 48px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
}

.footer-slogan {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.footer-contact-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.footer-contact-link {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-contact-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Mobile bottom TabBar */
.mobile-tabbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(12, 12, 12, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px env(safe-area-inset-right) 8px env(safe-area-inset-left);
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    color: var(--text-muted);
    font-size: 0.6875rem;
    transition: color 0.15s;
}

.tabbar-item.active {
    color: var(--accent);
}

.tabbar-icon {
    font-size: 1.15rem;
    line-height: 1;
}

@media (max-width: 1100px) {
    .fb-sidebar-right {
        display: none;
    }

    .fb-header-search {
        max-width: none;
        flex: 1 1 auto;
    }
}

@media (min-width: 1101px) {
    .fb-lang-switcher {
        margin-left: 8px;
    }
}

@media (max-width: 768px) {
    .mobile-tabbar {
        display: flex;
        justify-content: space-around;
    }
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
    .header-nav {
        display: none;
    }

    .site-header {
        height: var(--header-h);
    }

    .header-inner {
        gap: 10px;
        height: var(--header-h);
    }

    .logo-img {
        height: 32px;
        max-width: 120px;
    }

    .filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .filter-field-search {
        grid-column: 1;
    }

    .filter-field-action {
        grid-column: 2;
        width: 100%;
        align-self: end;
    }

    .page-title {
        font-size: 1.2rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-contact {
        align-items: center;
    }
}

@media (max-width: 480px) {
    :root {
        --header-h: 52px;
    }

    .site-header {
        height: var(--header-h);
    }

    .header-inner {
        gap: 6px;
        height: var(--header-h);
    }

    .logo-img {
        height: 28px;
        max-width: 100px;
        filter: none;
    }

    .header-nav {
        gap: 2px;
    }

    .nav-link {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-field:nth-child(3) {
        grid-column: 1 / -1;
    }

    .platform-picker-menu {
        min-width: 100%;
        width: max-content;
        max-width: min(280px, calc(100vw - 32px));
    }

    .header-nav {
        gap: 4px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.8125rem;
    }

    .about-title {
        font-size: 1.4rem;
    }
}

@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Mobile/Tablet (single-column): player first, promotion right under episodes */
@media (max-width: 899px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    /* 单列顺序：播放器+选集 → 推广卡 → 封面/简介 → 分享。
       .detail-right 用 display:contents 展开，让推广卡直接成为栅格项，
       再用 order 提到选集正下方，用户可以马上点到推广入口。 */
    .detail-right {
        display: contents;
    }

    .detail-center {
        order: -3;
        align-items: stretch;
    }

    #promotion-container {
        order: -2;
    }

    .detail-left {
        order: -1;
    }

    .episode-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        margin: 0 -4px;
    }

    .episode-btn {
        flex: 0 0 auto;
        min-width: 56px;
        scroll-snap-align: center;
    }
}

/* Tablet+: 3-column layout — left(cover+info) | center(player+episodes) | right(promo+share) */
@media (min-width: 900px) {
    .detail-layout {
        grid-template-columns: minmax(0, 260px) minmax(0, 1fr) minmax(0, 300px);
        gap: 32px;
    }

    .detail-left {
        position: sticky;
        top: calc(var(--header-h) + 16px);
        align-self: start;
        max-height: calc(100vh - var(--header-h) - 32px);
        overflow-y: auto;
        padding-right: 4px;
    }

    .detail-right {
        position: sticky;
        top: calc(var(--header-h) + 16px);
    }

    .book-layout {
        grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
        gap: 28px;
    }

    .book-left {
        position: sticky;
        top: calc(var(--header-h) + 16px);
        align-self: start;
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1200px) {
    .detail-layout {
        grid-template-columns: minmax(0, 280px) minmax(0, 1fr) minmax(0, 340px);
        gap: 40px;
    }

    .detail-left {
        max-height: calc(100vh - var(--header-h) - 40px);
    }

    .detail-right {
        top: calc(var(--header-h) + 20px);
    }

    .book-layout {
        grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .page-title {
        font-size: 1.6rem;
    }
}
/* SEO: list intro text */
.page-intro {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: -12px 0 24px;
    max-width: 860px;
}

/* SEO: breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb-link {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--accent);
}

.breadcrumb-sep {
    color: var(--text-muted);
    opacity: 0.6;
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 500;
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* SEO: more-from-source module */
.more-section {
    margin-top: 40px;
}

.more-section .list-meta {
    margin-bottom: 16px;
}

.more-link {
    font-size: 0.8125rem;
    color: var(--accent);
    font-weight: 600;
}

.more-link:hover {
    color: var(--accent-hover);
}

/* SEO: editorial overlay sections */
.overlay-section {
    margin-top: 36px;
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.overlay-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.overlay-text {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.overlay-chars {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

.overlay-chars li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.overlay-faq {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}

.overlay-faq:last-child {
    margin-bottom: 0;
}

.overlay-faq[open] {
    border-color: var(--border);
}

.overlay-faq-q {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 44px 10px 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.overlay-faq-q::-webkit-details-marker {
    display: none;
}

.overlay-faq-q:hover {
    background: var(--bg-card-hover);
}

.overlay-faq-q:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.overlay-faq-q::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    color: var(--text-secondary);
}

.overlay-faq[open] .overlay-faq-q::after {
    content: '\2212';
    color: var(--accent);
}

[dir="rtl"] .overlay-faq-q {
    padding: 10px 16px 10px 44px;
}

[dir="rtl"] .overlay-faq-q::after {
    right: auto;
    left: 16px;
}

.overlay-faq-a {
    margin: 0;
    padding: 2px 16px 14px;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.overlay-similar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.overlay-similar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
}

.overlay-similar-item:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.overlay-similar-item img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

@media (max-width: 640px) {
    .page-intro {
        margin-top: -8px;
    }

    .breadcrumb-current {
        max-width: 200px;
    }
}

/* SEO: genre landing pages */
.genre-links-section,
.popular-genres {
    margin-top: 36px;
}

.genre-links-section .list-meta,
.popular-genres .list-meta {
    margin-bottom: 14px;
}

.genre-links-section .page-title,
.popular-genres .page-title {
    font-size: 1.125rem;
}

.genre-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.genre-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.genre-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.genre-chip-count {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* SEO: platform landing about section */
.platform-about {
    margin-top: 36px;
    padding: 20px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.platform-about .page-title {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.platform-about p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.75;
}

/* SEO: clickable tag chips on detail pages */
.detail-tags .tag-link {
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.detail-tags .tag-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* =============================================================================
   ZIP 资源包预览播放器（DramaBox/dianzhong 源）
   浏览器内解析 ZIP 目录，视频字节走 CF Worker 边缘代理，不经源站。
   结构由 web/static/js/zip-player.js 生成（.zp/.zp-main/.ep-video/.zp-bar/...）。
   ============================================================================= */
.player-wrap.is-zip {
    aspect-ratio: auto;
    max-width: 860px;
    background: var(--bg-card);
    overflow: visible;
}

.player-wrap.is-zip .video-player,
.player-wrap.is-zip .player-loading {
    display: none;
}

.zip-mount[hidden] {
    display: none;
}

.zp {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
}

.zp-main {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* 竖屏短剧 9:16：锁高度让宽度由 aspect-ratio 反推，居中留黑边 */
.zp .ep-video {
    display: block;
    height: min(68vh, 720px);
    width: auto;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    margin: 0 auto;
    background: #000;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .45);
}

.zp-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.zp-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.zp-hdr-title {
    font-weight: 600;
    color: var(--text);
}

.zp-hdr-now {
    font-variant-numeric: tabular-nums;
}

.zp-eps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    align-content: start;
}

.zp-eps .ep-btn {
    width: 100%;
    padding: 9px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.zp-eps .ep-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    color: var(--text);
}

.zp-eps .ep-btn.active {
    background: var(--grad-ocean);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
}

.zp-status {
    min-height: 1.2em;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
}

.zp-status:empty {
    display: none;
}

.zp-dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    background: var(--bg-elevated);
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.zp-dl:hover {
    text-decoration: none;
    color: #fff;
    background: var(--bg-card-hover);
    border-color: var(--accent-violet);
}

.zp-dl-inline {
    align-self: center;
}

.zp-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 8px;
    text-align: center;
}

.zp-error-msg {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    max-width: 46ch;
}

.zp-resume {
    background: var(--bg-elevated);
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius);
    padding: 16px 14px;
    margin: 0 18px 14px;
    text-align: center;
}

.zp-resume-msg {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: var(--text);
}

.zp-resume-msg strong {
    color: var(--accent-pink);
}

.zp-resume-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.zp-resume-yes,
.zp-resume-no {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.zp-resume-yes {
    background: var(--grad-ocean);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
}

.zp-resume-no {
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.zp-resume-no:hover {
    color: #fff;
    background: var(--bg-card-hover);
}
