:root {
    --bg-color: #141414;
    --panel-bg: #1f1f1f;
    --accent: #e50914;
    --text-main: #ffffff;
    --text-sub: #b3b3b3;
    --border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100vh;
    padding-bottom: 60px;
    overflow-x: hidden;
}

/* 全局滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #141414;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 导航 */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transition: 0.3s;
}

.navbar-custom.scrolled {
    background: #141414;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.brand small {
    color: #777;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
}

/* Hero */
#heroCarousel {
    height: clamp(680px, 92vh, 980px);
    background: #000;
}

#heroCarousel .carousel-inner,
.carousel-item {
    height: 100%;
    background-color: #000;
}

.hero-media {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.02);
    transition: transform 9s ease;
}

.carousel-item.active .hero-bg {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 8, 8, 0.96) 0%, rgba(8, 8, 8, 0.72) 32%, rgba(8, 8, 8, 0.12) 68%, transparent 100%),
        linear-gradient(0deg, #141414 0%, rgba(20, 20, 20, 0.92) 12%, rgba(20, 20, 20, 0.2) 52%, transparent 72%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, transparent 24%);
    display: flex;
    align-items: flex-end;
    padding: 0 5% 9%;
}

.hero-content {
    max-width: 660px;
    padding-bottom: 18px;
    animation: fadeInUp 0.8s;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #d4d4d4;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hero-rank {
    padding: 4px 9px;
    border-radius: 3px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}

.hero-logo {
    display: block;
    width: auto;
    max-width: min(470px, 70vw);
    max-height: 176px;
    margin: 0 0 18px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 5px 18px rgba(0, 0, 0, 0.55));
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 5.2rem);
    font-weight: 900;
    line-height: 1;
    margin: 0 0 18px;
    text-shadow: 2px 3px 16px rgba(0, 0, 0, 0.8);
}

.hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 16px;
    color: #d8d8d8;
    font-size: 13px;
    font-weight: 600;
}

.hero-meta > span + span::before {
    content: '•';
    margin-right: 13px;
    color: #777;
}

.hero-score {
    color: #f5c518;
}

.hero-hd {
    padding: 1px 6px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 3px;
    font-size: 10px;
    line-height: 17px;
}

.hero-desc {
    max-width: 580px;
    font-size: 1.03rem;
    line-height: 1.75;
    color: #dedede;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-play {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-play:hover {
    background: #e6e6e6;
}

.btn-info {
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
    border: none;
    padding: 12px 26px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.2s;
    backdrop-filter: blur(5px);
}

.btn-info:hover {
    background: rgba(109, 109, 110, 0.5);
}

.hero-indicators {
    right: 5%;
    left: auto;
    bottom: 96px;
    margin: 0;
    justify-content: flex-end;
    gap: 7px;
}

.hero-indicators [data-bs-target] {
    width: 24px;
    height: 3px;
    margin: 0;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
    transition: width 0.25s, background 0.25s;
}

.hero-indicators .active {
    width: 42px;
    background: #fff;
}

@media(max-width: 768px) {
    .brand {
        font-size: 21px;
    }

    .brand img {
        width: 32px;
        height: 32px;
    }

    #heroCarousel {
        height: 82vh;
        min-height: 600px;
    }

    #heroCarousel .carousel-inner,
    .carousel-item {
        height: 100%;
    }

    .hero-bg {
        object-position: center 18%;
    }

    .hero-overlay {
        padding: 0 6% 13%;
        background:
            linear-gradient(0deg, #141414 0%, rgba(20, 20, 20, 0.98) 24%, rgba(20, 20, 20, 0.88) 50%, rgba(20, 20, 20, 0.3) 76%, transparent 100%),
            linear-gradient(90deg, rgba(8, 8, 8, 0.78) 0%, rgba(8, 8, 8, 0.25) 65%, transparent 100%),
            linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, transparent 25%);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-logo {
        max-width: 78vw;
        max-height: 128px;
        margin-bottom: 13px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-kicker {
        margin-bottom: 12px;
    }

    .hero-meta {
        gap: 9px;
        margin-bottom: 12px;
        font-size: 12px;
    }

    .hero-meta > span + span::before {
        margin-right: 9px;
    }

    .hero-desc {
        font-size: 0.94rem;
        line-height: 1.65;
        -webkit-line-clamp: 2;
        margin-bottom: 18px;
    }

    .btn-play,
    .btn-info {
        padding: 10px 18px;
        font-size: 0.95rem;
    }

    .hero-indicators {
        right: 6%;
        bottom: 43px;
    }

    .search-section.search-active {
        margin-top: 64px;
        padding: 0 4%;
    }

    .search-section.search-active .search-input {
        height: 52px;
        font-size: 16px;
    }
}

/* 搜索框 */
.search-section {
    position: relative;
    margin-top: -35px;
    z-index: 20;
    padding: 0 5%;
    margin-bottom: 40px;
}

.search-section.search-active {
    margin-top: 72px;
    margin-bottom: 24px;
}

#search-result-anchor {
    scroll-margin-top: 170px;
}

.search-box-wrapper {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-box-wrapper:focus-within {
    border-color: var(--accent);
    background: #000;
}

.search-icon {
    padding: 0 20px;
    color: #888;
    font-size: 18px;
    cursor: pointer;
}

.search-input {
    width: 100%;
    height: 60px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    outline: none;
}

/* 列表通用 */
.section-container {
    padding: 0 5%;
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.section-line {
    width: 4px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
    margin-right: 12px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1.1rem;
    opacity: 0.7;
}

/* 热榜导航按钮 */
.hot-row-nav {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.nav-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.nav-btn i {
    font-size: 12px;
}

/* 移动端隐藏导航按钮 */
@media (max-width: 768px) {
    .hot-row-nav {
        display: none;
    }
    
    .hot-row {
        padding: 0 15px 20px;
        margin: 0 -15px;
    }
    
    .hot-card {
        min-width: 120px;
        width: 120px;
    }
}

.hot-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    padding: 0 20px 20px;
    margin: 0 -20px;
}

.hot-row::-webkit-scrollbar {
    height: 0px;
}

.hot-row:active {
    cursor: grabbing;
    scroll-snap-type: none;
}

.hot-row.grabbing {
    cursor: grabbing;
    scroll-snap-type: none;
}

.hot-card {
    min-width: 150px;
    width: 150px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.hot-card {
    min-width: 150px;
    width: 150px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.hot-row {
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
}

.hot-row img {
    -webkit-user-drag: none;
}

@media (max-width: 768px) {
    .hot-row {
        padding: 0 15px 18px;
        margin: 0 -15px;
        scroll-snap-type: x proximity;
    }

    .hot-card {
        min-width: 120px;
        width: 120px;
    }
}

.hot-card:hover {
    transform: scale(1.08);
    z-index: 10;
}

.poster-wrap {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 6px;
    overflow: hidden;
    background: #222;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s;
}

.rank-badge {
    position: absolute;
    top: -12px;
    left: -8px;
    font-size: 64px;
    font-weight: 900;
    color: #141414;
    -webkit-text-stroke: 2px #666;
    font-family: impact, sans-serif;
    text-shadow: 2px 2px 0px #eee;
    z-index: 10;
    pointer-events: none;
    line-height: 1;
}

.rating-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: #46d369;
    font-weight: bold;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(70, 211, 105, 0.3);
}

.poster-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #333 0%, #111 100%);
    padding: 5px;
    text-align: center;
}

.fallback-text {
    font-size: 12px;
    color: #999;
}

.movie-name {
    margin-top: 10px;
    font-size: 14px;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-weight: 500;
}

.movie-date {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 2px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    min-height: 300px;
}

.result-card {
    cursor: pointer;
    transition: 0.2s;
}

.result-card:hover {
    transform: translateY(-5px);
}

/* ★★★ 播放页重构：影院模式 ★★★ */
.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #141414;
    z-index: 9999;
    display: none;
    overflow-y: auto;
}

.detail-overlay.active {
    display: block;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.close-btn {
    position: fixed;
    top: 25px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 10005;
    backdrop-filter: blur(10px);
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* 布局容器 */
.player-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 4% 50px;
}

/* 视频区域 */
.player-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    border: 1px solid #333;
}

/* 视频信息栏 */
.video-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.video-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.2;
}

.video-meta {
    color: #888;
    font-size: 14px;
}

/* 投屏按钮 */
.btn-cast {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

.btn-cast:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 控制区域 (下半部分) */
.controls-area {
    background: #1f1f1f;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 线路选择 (横向滚动) */
.panel-title {
    font-size: 14px;
    color: #888;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.source-pill {
    padding: 8px 16px;
    border-radius: 6px;
    background: #2a2a2a;
    border: 1px solid #333;
    color: #ccc;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.source-pill:hover {
    background: #333;
    border-color: #666;
    color: #fff;
}

.source-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

/* 选集 (大网格) */
.ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    /* 自适应宽度，最小100px */
    gap: 12px;
}

.ep-btn {
    background: #2a2a2a;
    border: 1px solid transparent;
    color: #ddd;
    padding: 12px 5px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-btn:hover {
    background: #333;
    color: #fff;
    border-color: #555;
}

.ep-btn.active {
    background: #fff;
    color: #000;
    font-weight: bold;
    border-color: #fff;
}

/* 状态灯 */
.latency-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot-green {
    background: #46d369;
    box-shadow: 0 0 5px #46d369;
}

.dot-yellow {
    background: #ffcc00;
}

.dot-red {
    background: #ff453a;
}

.footer {
    text-align: center;
    font-size: 12px;
    color: #444;
    margin-top: 80px;
    padding-bottom: 20px;
}

/* ===== 搜索结果分类标签 ===== */
.result-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
}

.result-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-sub);
    font-size: 15px;
    padding: 10px 6px;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.result-tab:hover { color: #fff; }

.result-tab.active {
    color: #fff;
    border-bottom-color: var(--accent);
    font-weight: 600;
}

.result-tab i { margin-right: 6px; }

.tab-count {
    display: inline-block;
    min-width: 20px;
    padding: 1px 7px;
    margin-left: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #bbb;
    font-size: 11px;
    font-weight: 400;
    text-align: center;
}

.result-tab.active .tab-count {
    background: rgba(229, 9, 20, 0.18);
    color: #ff6b6b;
}

/* ===== 网盘资源列表 ===== */
.cloud-panel { margin-top: 4px; }

.cloud-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.cloud-filter {
    border: 1px solid var(--border);
    background: transparent;
    color: #aaa;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: .18s;
}

.cloud-filter:hover {
    color: #fff;
    border-color: #666;
}

.cloud-filter.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.cloud-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cloud-item {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 16px;
    transition: border-color .2s, transform .2s;
}

.cloud-item:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.cloud-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.disk-badge {
    flex: none;
    font-size: 11px;
    line-height: 1;
    padding: 5px 9px;
    border-radius: 5px;
    color: #fff;
    background: #555;
    white-space: nowrap;
}

.disk-baidu { background: #2932e1; }
.disk-aliyun { background: #ff6a00; }
.disk-quark { background: #6c5ce7; }
.disk-uc { background: #ff7a00; }
.disk-tianyi { background: #009688; }
.disk-mobile { background: #0086d1; }
.disk-115 { background: #1e88e5; }
.disk-pikpak { background: #00a86b; }
.disk-xunlei { background: #00a1d6; }
.disk-123 { background: #ff5722; }
.disk-guangya { background: #8e44ad; }
.disk-magnet { background: #e50914; }
.disk-ed2k { background: #607d8b; }
.disk-others { background: #555; }

.cloud-title {
    flex: 1;
    min-width: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cloud-date {
    flex: none;
    color: #777;
    font-size: 12px;
}

.cloud-content {
    color: #9a9a9a;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.cloud-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.cloud-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-mini {
    font-size: 11px;
    color: #8f8f8f;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 2px 7px;
}

.cloud-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.cloud-actions .pwd {
    color: #ffcc00;
    font-size: 12px;
}

.cloud-actions .pwd b {
    letter-spacing: 1px;
}

.btn-copy {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    font-size: 12px;
    border-radius: 5px;
    padding: 3px 8px;
    cursor: pointer;
}

.btn-copy:hover { color: #fff; border-color: #fff; }

.btn-open {
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    border-radius: 5px;
    padding: 5px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-open:hover { background: #f6121d; color: #fff; }

.cloud-empty {
    text-align: center;
    color: #777;
    font-size: 14px;
    padding: 48px 0;
}

@media (max-width: 576px) {
    .cloud-title { font-size: 14px; }
    .cloud-date { display: none; }
    .cloud-actions { margin-left: 0; }
}

/* TMDb 详情 */
body.tmdb-open {
    overflow: hidden;
}

.tmdb-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    overflow-y: auto;
    padding: 36px 18px 72px;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
}

.tmdb-overlay.active {
    display: block;
    animation: tmdbFadeIn 0.25s ease-out;
}

@keyframes tmdbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tmdb-loading {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 15px;
    text-align: center;
}

.tmdb-sheet {
    width: min(1180px, 100%);
    margin: 0 auto;
    overflow: hidden;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.75);
    animation: tmdbSheetIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tmdbSheetIn {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tmdb-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #0a0a0a;
}

.tmdb-banner-media {
    position: absolute;
    inset: 0;
    display: block;
}

.tmdb-banner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 23%;
}

.tmdb-banner-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, #0d0d0d 0%, rgba(13, 13, 13, 0.96) 10%, rgba(13, 13, 13, 0.42) 48%, transparent 78%),
        linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.18) 48%, transparent 72%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.62) 0%, transparent 30%);
}

.tmdb-kind {
    position: absolute;
    top: 24px;
    left: 28px;
    z-index: 1;
    padding: 6px 11px;
    color: #eee;
    font-size: 12px;
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.tmdb-content {
    position: relative;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 44px;
    margin-top: -168px;
    padding: 0 48px 50px;
}

.tmdb-poster-col {
    position: relative;
    z-index: 2;
}

.tmdb-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #101010;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow: 0 26px 62px rgba(0, 0, 0, 0.72);
}

.tmdb-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmdb-poster-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 48px;
}

.tmdb-info-col {
    min-width: 0;
    padding-top: 64px;
}

.tmdb-logo {
    display: block;
    width: auto;
    max-width: min(480px, 64vw);
    max-height: 132px;
    margin: -4px 0 18px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 7px 24px rgba(0, 0, 0, 0.7));
}

.tmdb-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.65);
}

.tmdb-tagline {
    margin-bottom: 16px;
    color: #9d9d9d;
    font-size: 15px;
    font-style: italic;
}

.tmdb-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 16px;
    margin-bottom: 14px;
    color: #c8c8c8;
    font-size: 14px;
}

.tmdb-meta .tmdb-score {
    color: #ffd34d;
    font-weight: 700;
}

.tmdb-certification {
    padding: 1px 7px;
    color: #ddd;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
}

.tmdb-credit {
    margin-bottom: 14px;
    color: #b9b9b9;
    font-size: 14px;
    line-height: 1.6;
}

.tmdb-genres,
.tmdb-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tmdb-genres span {
    padding: 4px 10px;
    color: #eee;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.tmdb-keywords span {
    color: #8e8e8e;
    font-size: 12px;
}

.tmdb-keywords span::before {
    content: '#';
    color: #5e5e5e;
}

.tmdb-overview {
    max-width: 780px;
    margin: 0 0 24px;
    color: #d0d0d0;
    font-size: 15px;
    line-height: 1.78;
}

.tmdb-source-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: -8px 0 18px;
    padding: 7px 11px;
    color: #c9c9c9;
    font-size: 13px;
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(229, 9, 20, 0.28);
    border-radius: 6px;
}

.tmdb-source-note i {
    color: var(--accent);
}

.tmdb-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.tmdb-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 17px;
    color: #e6e6e6;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    cursor: pointer;
    transition: 0.2s;
}

.tmdb-action:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.tmdb-action.primary {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.tmdb-action.primary:hover {
    background: #f6121d;
}

.tmdb-block {
    padding: 27px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.tmdb-block h3 {
    margin: 0 0 17px;
    color: #f1f1f1;
    font-size: 18px;
    font-weight: 700;
}

.tmdb-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}

.tmdb-block-head h3 {
    margin: 0;
}

.tmdb-region-select {
    padding: 6px 28px 6px 10px;
    color: #d7d7d7;
    font-size: 13px;
    background: #222;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.tmdb-cast-row,
.tmdb-rec-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.tmdb-cast-card {
    width: 96px;
    flex: 0 0 96px;
    text-align: center;
}

.tmdb-cast-photo {
    width: 84px;
    height: 84px;
    margin: 0 auto 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #555;
    background: #262626;
    border-radius: 50%;
}

.tmdb-cast-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmdb-cast-name {
    overflow: hidden;
    color: #eee;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tmdb-cast-role {
    margin-top: 3px;
    overflow: hidden;
    color: #858585;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tmdb-provider-groups {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tmdb-provider-label {
    margin-bottom: 9px;
    color: #858585;
    font-size: 12px;
}

.tmdb-provider-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tmdb-provider {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 112px;
    color: #d6d6d6;
    font-size: 13px;
}

.tmdb-provider img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 9px;
}

.tmdb-no-provider {
    color: #777;
    font-size: 14px;
}

.tmdb-provider-link {
    display: inline-block;
    margin-top: 16px;
    color: #8e8e8e;
    font-size: 11px;
    text-decoration: none;
}

.tmdb-provider-link:hover {
    color: #c8c8c8;
}

.tmdb-rec-card {
    width: 128px;
    flex: 0 0 128px;
    cursor: pointer;
    transition: transform 0.2s;
}

.tmdb-rec-card:hover {
    transform: translateY(-4px);
}

.tmdb-rec-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #252525;
    border-radius: 9px;
}

.tmdb-rec-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmdb-rec-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b4b4b;
    font-size: 28px;
}

.tmdb-rec-name {
    margin-top: 8px;
    overflow: hidden;
    color: #ddd;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tmdb-rec-sub {
    margin-top: 3px;
    color: #777;
    font-size: 11px;
}

@media (max-width: 820px) {
    .tmdb-overlay { padding: 0 0 48px; }
    .tmdb-sheet { border-radius: 0; }
    .tmdb-banner { height: 340px; }
    .tmdb-content {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: -104px;
        padding: 0 20px 34px;
    }
    .tmdb-poster-col { width: 122px; margin-bottom: 20px; }
    .tmdb-info-col { padding-top: 0; }
    .tmdb-logo { max-width: min(300px, 78vw); max-height: 92px; margin-bottom: 12px; }
    .tmdb-title { font-size: 2rem; }
    .tmdb-overview { font-size: 14px; line-height: 1.7; }
    .tmdb-actions { margin-bottom: 22px; }
    .tmdb-block { padding: 22px 0; }
    .close-btn { top: 14px; right: 14px; }
}

@media (max-width: 480px) {
    .tmdb-kind { top: 16px; left: 18px; }
    .tmdb-banner { height: 300px; }
    .tmdb-content { margin-top: -88px; padding: 0 15px 28px; }
    .tmdb-poster-col { width: 108px; margin-bottom: 16px; }
    .tmdb-logo { max-width: min(250px, 76vw); max-height: 76px; }
    .tmdb-title { font-size: 1.8rem; }
    .tmdb-meta { gap: 7px 12px; font-size: 12px; }
    .tmdb-action { padding: 8px 12px; font-size: 13px; }
    .tmdb-cast-card { width: 82px; flex-basis: 82px; }
    .tmdb-cast-photo { width: 72px; height: 72px; }
    .tmdb-rec-card { width: 108px; flex-basis: 108px; }
}

.android-download-wrap {
    max-width: 1180px;
    margin: 20px auto 4px;
    padding: 0 24px;
}

.android-download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: linear-gradient(110deg, rgba(246, 18, 29, 0.17), rgba(20, 20, 24, 0.96) 36%, #141418);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

.android-download-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    font-size: 25px;
    background: #f6121d;
    box-shadow: 0 8px 22px rgba(246, 18, 29, 0.32);
}

.android-download-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.android-download-copy strong {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.android-download-copy span {
    color: #a5a5ad;
    font-size: 12px;
    line-height: 1.45;
}

.android-download-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #fff !important;
    background: #f6121d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.android-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(246, 18, 29, 0.34);
}

@media (max-width: 640px) {
    .android-download-wrap { padding: 0 14px; margin-top: 14px; }
    .android-download-card { gap: 11px; padding: 12px; }
    .android-download-icon { width: 40px; height: 40px; font-size: 22px; }
    .android-download-copy strong { font-size: 13px; }
    .android-download-copy span { font-size: 10.5px; }
    .android-download-btn { padding: 9px 12px; font-size: 11px; }
}

/* 搜索结果聚合 */
.result-meta {
    margin-top: 3px;
    text-align: center;
    color: #777;
    font-size: 11px;
}

.search-notice {
    margin: 2px 0 18px;
    padding: 9px 13px;
    border-radius: 8px;
    color: #b9b9b9;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12.5px;
}

/* 继续观看与收藏 */
.library-row {
    align-items: stretch;
}

.library-card {
    padding-bottom: 4px;
}

.library-card .poster-wrap {
    overflow: visible;
}

.library-card .poster-wrap img,
.library-card .poster-fallback {
    border-radius: 6px;
    overflow: hidden;
}

.history-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    z-index: 4;
}

.history-progress span {
    display: block;
    height: 100%;
    background: var(--accent);
}

.history-badge {
    top: auto;
    right: auto;
    bottom: 9px;
    left: 6px;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    background: rgba(0, 0, 0, 0.78);
    border-color: rgba(255, 255, 255, 0.12);
}

.library-remove {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 6;
    width: 25px;
    height: 25px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: 0.18s;
    cursor: pointer;
    font-size: 12px;
}

.library-card:hover .library-remove {
    opacity: 1;
}

/* 播放页新增控件 */
.video-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-cast-active {
    color: #ff6b74;
    border-color: rgba(229, 9, 20, 0.55);
    background: rgba(229, 9, 20, 0.16);
}

.player-box {
    position: relative;
}

.player-notice {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 8;
    transform: translateX(-50%);
    max-width: min(92%, 560px);
    padding: 9px 15px;
    border-radius: 999px;
    color: #fff;
    background: rgba(10, 10, 10, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    font-size: 13px;
    text-align: center;
    pointer-events: none;
}

.footer-link {
    color: #777;
    text-decoration: none;
}

.footer-link:hover {
    color: #bbb;
}

@media (max-width: 640px) {
    .library-card {
        min-width: 126px;
        width: 126px;
    }
    .library-remove {
        opacity: 1;
    }
}

.section-more {
    margin-left: auto;
    padding: 7px 13px;
    color: #d7d7d7;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;
}

.section-more:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.section-more + .hot-row-nav {
    margin-left: 12px;
}

.tmdb-cast-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.tmdb-cast-card:hover {
    transform: translateY(-4px);
}

.tmdb-crew-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tmdb-crew-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 170px;
    padding: 8px 12px 8px 8px;
    color: #ececec;
    text-align: left;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;
}

.tmdb-crew-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.tmdb-crew-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #777;
    background: #272727;
    border-radius: 50%;
}

.tmdb-crew-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmdb-crew-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tmdb-crew-copy b {
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tmdb-crew-copy small {
    color: #8f8f8f;
    font-size: 10px;
}

.person-overlay,
.calendar-overlay {
    z-index: 1080;
}

.person-sheet,
.calendar-sheet {
    width: min(1160px, calc(100% - 40px));
    margin: 32px auto 46px;
    overflow: hidden;
    color: #eee;
    background: #141416;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.7);
}

.person-hero {
    position: relative;
    height: 360px;
    background: radial-gradient(circle at 25% 20%, #39393f, #121214 70%);
}

.person-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    opacity: 0.42;
    filter: saturate(0.85);
}

.person-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #141416 0%, rgba(20, 20, 22, 0.94) 28%, rgba(20, 20, 22, 0.2) 80%, rgba(20, 20, 22, 0.5) 100%),
        linear-gradient(90deg, rgba(20, 20, 22, 0.85), transparent 70%);
}

.person-kind,
.calendar-kicker {
    color: #a8a8ad;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.person-kind {
    position: absolute;
    top: 26px;
    left: 30px;
}

.person-body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 34px;
    margin-top: -126px;
    padding: 0 46px 38px;
    position: relative;
}

.person-profile {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #202024;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
}

.person-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-profile-empty {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #555;
    font-size: 58px;
}

.person-main {
    min-width: 0;
    padding-top: 92px;
}

.person-kicker {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.person-main h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.05;
}

.person-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 15px;
    margin-bottom: 18px;
    color: #aaaab0;
    font-size: 13px;
}

/* B 站风格播放器 */
.stream-player {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.person-bio {
    max-width: 820px;
    max-height: 15.4em;
    margin: 0 0 20px;
    overflow: auto;
    color: #d0d0d4;
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-line;
    scrollbar-width: thin;
}

.person-filmography {
    padding: 28px 46px 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.person-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.person-section-head h3 {
    margin: 0;
    color: #f3f3f3;
    font-size: 19px;
    font-weight: 800;
}

.person-section-head span {
    color: #77777f;
    font-size: 11px;
}

.person-credit-grid,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 20px 16px;
}

.person-credit-card {
    min-width: 0;
    padding: 0;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.person-credit-poster {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    color: #555;
    background: #232327;
    border-radius: 10px;
    transition: transform 0.2s;
}

.person-credit-card:hover .person-credit-poster {
    transform: translateY(-4px);
}

.person-credit-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-credit-name {
    display: block;
    margin-top: 8px;
    overflow: hidden;
    color: #e4e4e7;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.person-credit-meta {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #7f7f87;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-sheet {
    padding: 32px 38px 44px;
}

.calendar-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.calendar-head h2 {
    margin: 7px 0 0;
    color: #fff;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 900;
}

.calendar-date-title {
    color: #a4a4aa;
    font-size: 13px;
    white-space: nowrap;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 4px 10px;
    color: #a5a5ac;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.calendar-day:hover {
    color: #eee;
    background: rgba(255, 255, 255, 0.09);
}

.calendar-day.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 10px 26px rgba(229, 9, 20, 0.32);
}

.calendar-day span,
.calendar-day small {
    font-size: 10px;
}

.calendar-day b {
    font-size: 22px;
    line-height: 1;
}

.calendar-day.today:not(.active) {
    border-color: rgba(246, 18, 29, 0.5);
}

.calendar-content {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.calendar-empty {
    padding: 26px;
    color: #77777f;
    font-size: 13px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.calendar-loading {
    min-height: 280px;
}

@media (max-width: 820px) {
    .person-sheet,
    .calendar-sheet {
        width: 100%;
        margin: 0 0 40px;
        border-radius: 0;
    }
    .person-hero { height: 280px; }
    .person-body {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: -100px;
        padding: 0 20px 30px;
    }
    .person-profile { width: 126px; }
    .person-main { padding-top: 0; }
    .person-filmography { padding: 24px 20px 36px; }
    .calendar-sheet { padding: 26px 18px 36px; }
    .calendar-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .calendar-days { gap: 5px; }
    .calendar-day b { font-size: 18px; }
    .calendar-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 16px 12px; }
}

/* PWA 安装入口 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.nav-live-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ddd;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 12px;
    text-decoration: none;
    transition: 0.2s;
}

.nav-live-link:hover {
    color: #fff;
    background: rgba(229, 9, 20, 0.82);
    border-color: rgba(229, 9, 20, 0.9);
}

@media (max-width: 560px) {
    .nav-actions { gap: 7px; }
    .nav-live-link { padding: 6px 9px; }
    .nav-admin-link { display: none; }
}

.pwa-install-btn {
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ddd;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s;
}

.pwa-install-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.pwa-install-btn[hidden] {
    display: none !important;
}

/* 播放器增强 */
.skip-intro-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 9;
    padding: 10px 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.skip-intro-btn:hover {
    background: rgba(229, 9, 20, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
}

.next-episode-card {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 10;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(92%, 520px);
    padding: 12px 15px;
    color: #fff;
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
    font-size: 13px;
}

.next-episode-card span {
    flex: 1;
    white-space: nowrap;
}

.next-episode-card button {
    padding: 7px 11px;
    color: #fff;
    background: rgba(229, 9, 20, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}

.next-episode-card button.secondary {
    background: rgba(255, 255, 255, 0.1);
}

.skip-editor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0 0 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.skip-editor-title {
    color: #f2f2f2;
    font-size: 13px;
    font-weight: 700;
}

.skip-editor-hint {
    color: #888;
    font-size: 12px;
}

.skip-editor-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #bbb;
    font-size: 12px;
}

.skip-editor input[type="number"] {
    width: 72px;
    padding: 6px 8px;
    color: #fff;
    background: #171717;
    border: 1px solid #333;
    border-radius: 7px;
}

.skip-editor input[type="checkbox"] {
    accent-color: #e50914;
}

.skip-editor button {
    padding: 7px 10px;
    color: #ddd;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    font-size: 12px;
    cursor: pointer;
}

.skip-editor button.primary {
    color: #fff;
    background: rgba(229, 9, 20, 0.8);
    border-color: rgba(229, 9, 20, 0.9);
}

@media (max-width: 640px) {
    .skip-intro-btn {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .next-episode-card {
        left: 12px;
        right: 12px;
        bottom: 16px;
        max-width: none;
        transform: none;
        flex-wrap: wrap;
        font-size: 12px;
    }

    .next-episode-card span {
        white-space: normal;
    }

    .skip-editor {
        padding: 12px;
    }
}
