/* ===== StrmPlay 前端样式 ===== */

/* ---- 日间模式（全局默认配色）---- */
:root {
    --bg: #dddddd;
    --card-bg: rgba(255, 255, 255, 0.58);
    --card-border: rgba(0, 0, 0, 0.06);
    --border: #e2e4ea;
    --text: #333344;
    --text-dim: #000000;
    --heading: #111122;
    --accent: #6c4cf0;
    --accent-hover: #5a3de0;
    --danger: #e03d58;
    --success: #0ea88c;
    --thumb-bg: #eef0f5;
    --navbar-bg: rgba(238, 240, 246, 0);
    --strm-bg: #f0f2f8;
    --logo-color: #1a1a2e;
    --nav-hover: #111122;
    --radius: 12px;
    --max-w: 1400px;
    --shadow: rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== 工具类 ===== */
.hidden { display: none !important; }

/* ===== 导航栏 ===== */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0px solid var(--border);
    padding: 0 24px;
}
.navbar-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
.navbar .logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--logo-color);
    font-size: 1.25rem; font-weight: 700;
}
.navbar .logo .icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--accent), #a29bfe);
    border-radius: 10px; display: flex;
    align-items: center; justify-content: center;
}
.navbar .logo .icon svg { width: 18px; height: 18px; fill: #fff; }
.navbar .nav-links { display: flex; align-items: center; gap: 8px; }
.navbar .nav-links a {
    display: inline-flex; align-items: center; gap: 5px;
    height: 34px;
    padding: 0 12px 0 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem; font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}
.navbar .nav-links a svg {
    width: 15px; height: 15px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: var(--nav-hover);
    border-color: rgba(124,92,252,0.25);
    background: rgba(124,92,252,0.12);
}
.navbar .nav-links a:hover svg,
.navbar .nav-links a.active svg {
    opacity: 1;
}

/* ===== 标签按钮 ===== */
.nav-dropdown {
    position: relative;
}
.nav-category-btn {
    display: inline-flex; align-items: center; gap: 5px;
    height: 34px;
    padding: 0 12px 0 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.8rem; font-weight: 500;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-category-btn svg:first-child {
    width: 15px; height: 15px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.nav-category-btn:hover {
    color: var(--nav-hover);
    border-color: rgba(124,92,252,0.25);
    background: rgba(124,92,252,0.12);
}
.nav-category-btn:hover svg:first-child {
    opacity: 1;
}

/* ===== 标签全屏弹窗 ===== */
.tag-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.tag-modal.show { opacity: 1; }
.tag-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.tag-modal-body {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: var(--card-bg);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(1);
    transition: opacity 0.22s ease;
}
.tag-modal.show .tag-modal-body { opacity: 1; }
.tag-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 22px 16px;
    flex-shrink: 0;
}
.tag-modal-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}
.tag-modal-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}
.tag-modal-close:hover {
    background: rgba(124,92,252,0.18);
    color: var(--accent);
}
.tag-modal-grid {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
}
.tag-chip {
    padding: 9px 16px;
    border: 1px solid var(--card-border);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s;
}
.tag-chip:hover {
    border-color: rgba(124,92,252,0.4);
    background: rgba(124,92,252,0.14);
    color: var(--accent);
}
.tag-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.tag-empty {
    color: var(--text-dim);
    font-size: 0.85rem;
    padding: 8px;
}

/* ===== 标签加载骨架屏 ===== */
.tag-loading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.tag-skeleton {
    height: 36px;
    border-radius: 5px;
    background: linear-gradient(100deg,
        rgba(255, 255, 255, 0.06) 30%,
        rgba(255, 255, 255, 0.16) 50%,
        rgba(255, 255, 255, 0.06) 70%);
    background-size: 200% 100%;
    animation: tag-shimmer 1.2s infinite linear;
}
.tag-skeleton:nth-child(1) { width: 64px; }
.tag-skeleton:nth-child(2) { width: 92px; }
.tag-skeleton:nth-child(3) { width: 78px; }
.tag-skeleton:nth-child(4) { width: 108px; }
.tag-skeleton:nth-child(5) { width: 70px; }
.tag-skeleton:nth-child(6) { width: 96px; }
.tag-skeleton:nth-child(7) { width: 84px; }
.tag-skeleton:nth-child(8) { width: 112px; }
.tag-loading-text {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-left: 6px;
    white-space: nowrap;
}
@keyframes tag-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 密码退出按钮 */
.nav-lockout {
    display: inline-flex; align-items: center; gap: 5px;
    height: 34px;
    padding: 0 12px 0 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-lockout svg {
    width: 15px; height: 15px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.nav-lockout:hover {
    color: var(--danger);
    border-color: rgba(255,77,106,0.35);
    background: rgba(255,77,106,0.08);
}
.nav-lockout:hover svg {
    opacity: 1;
}

/* ===== 主容器 ===== */
.main-container { max-width: var(--max-w); margin: 0 auto; padding: 24px; }

/* ===== 顶部标签筛选条 ===== */
.tag-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(42,42,48,0.12);
    border-radius: 12px;
}
.tag-filter-label {
    font-size: 0.8rem;
    color: rgba(42,42,48,0.55);
    letter-spacing: 1px;
}
.tag-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #000000;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
}
.tag-filter-chip:hover { background: #1a1a1a; }
.tag-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    font-size: 10px;
    line-height: 1;
}


/* ===== 视频卡片网格（PC 每排 3 个） ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}
.video-card {
    background: var(--card-bg);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border: none;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 3px 7px 9px 1px rgb(0 0 0 / 32%);
    text-decoration: none; color: inherit;
    display: block;
    width: 100%;
    transition: box-shadow 0.3s;
}
.video-card:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22),
                0 6px 12px rgba(0, 0, 0, 0.12);
}
.video-card .thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--thumb-bg);
    overflow: hidden;
    border-radius: 5px;
}
.video-card .thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.video-card .thumb .placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); font-size: 2rem;
}

/* === 图片加载前 Shimmer 占位动画 === */
.thumb-skeleton {
    position: absolute; inset: 0;
    z-index: 1;
    overflow: hidden;
    background: var(--thumb-bg);
}
.thumb-shimmer {
    position: absolute; inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.04) 40%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 60%,
        transparent 100%
    );
    animation: shimmer 1.8s ease-in-out infinite;
}
.thumb-shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0,0,0,0.04) 40%,
        rgba(0,0,0,0.07) 50%,
        rgba(0,0,0,0.04) 60%,
        transparent 100%
    );
}
/* === 图片加载完成后置于 skeleton 之上 === */
.video-card .thumb img.loaded {
    z-index: 2;
}
.video-card .info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    padding: 34px 14px 12px;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.46) 20%,
        rgba(0, 0, 0, 0.30) 38%,
        rgba(0, 0, 0, 0.16) 56%,
        rgba(0, 0, 0, 0.06) 74%,
        rgba(0, 0, 0, 0) 100%);
}
.video-card .info .title {
    font-size: 0.70rem; color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    font-weight: 600; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 8px;
}
.video-card .info .meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.78rem; color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.video-card .info .meta .meta-left {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.video-card .info .meta .meta-right {
    flex-shrink: 0;
}

/* === 竖版封面卡片：左图（3:4 居中裁剪） + 右侧文字信息 === */
.video-card.portrait {
    display: flex;
    align-items: stretch;
}
.video-card.portrait .thumb {
    display: flex;
    aspect-ratio: auto;
}
.video-card.portrait .thumb .thumb-skeleton {
    position: relative;
    width: 42%;
    flex: 0 0 42%;
    aspect-ratio: 3 / 4;
}
.video-card.portrait .thumb img {
    position: relative;
    width: 42%;
    flex: 0 0 42%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 5px 0 0 5px;
}
.video-card.portrait .info {
    position: relative;
    flex: 1;
    background: none;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 4px;
    overflow: hidden;
    isolation: isolate;
}
/* 右侧模糊背景：使用当前封面图 */
.video-card.portrait .info::before {
    content: '';
    position: absolute;
    inset: -20px;
    background-image: var(--cover);
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.5);
    transform: scale(1.2);
    z-index: -1;
}
.video-card.portrait .info .title {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    font-size: 0.8rem;
    line-height: 1.35;
    -webkit-line-clamp: 3;
    margin-bottom: 8px;
    align-self: flex-start;
}
.video-card.portrait .info .meta {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.video-card.portrait .info .meta .meta-left,
.video-card.portrait .info .meta .meta-right {
    justify-content: flex-start;
}
.video-card.portrait .info .meta .meta-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.video-card.portrait .info .meta .meta-item {
    font-size: 0.7rem;
}
.video-card .info .meta .meta-item {
    display: inline-flex; align-items: center; gap: 3px;
}
.video-card .info .meta .badge {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px) saturate(1.4);
    -webkit-backdrop-filter: blur(10px) saturate(1.4);
    border: none;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: 0.72rem;
}


/* ===== 骨架屏 ===== */
.skeleton-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    overflow: hidden;
    display: block;
    width: 100%;
}
.skel-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--thumb-bg);
    position: relative;
    overflow: hidden;
}
.skel-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.04) 40%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 60%,
        transparent 100%
    );
    animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.skel-info {
    padding: 14px 16px;
}
.skel-line {
    height: 11px;
    background: var(--thumb-bg);
    border-radius: 2px;
    margin-bottom: 8px;
}
.skel-line:last-child { margin-bottom: 0; }
.skel-line-title  { width: 80%; }
.skel-line-short { width: 42%; }

.skel-shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0,0,0,0.03) 40%,
        rgba(0,0,0,0.06) 50%,
        rgba(0,0,0,0.03) 60%,
        transparent 100%
    );
}

/* ===== 加载状态 ===== */
.loading-area {
    text-align: center; padding: 40px 0; color: var(--text-dim);
}
.loading-area .loading-text {
    margin-top: 12px;
}
.loading-area .spinner {
    display: inline-block;
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.no-more {
    text-align: center; padding: 32px 0;
    color: var(--text-dim); font-size: 0.9rem;
}

/* ===== 沉浸式播放页 ===== */
body.play-page {
    background: #000;
    color: #fff;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.play-bg {
    position: fixed; inset: -20px;
    background-size: cover; background-position: center;
    filter: blur(12px) brightness(0.35);
    z-index: -1;
}
.play-bg::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(255, 255, 255, 0.45);
}

/* 顶部返回栏 */
.play-topbar {
    position: relative; z-index: 10;
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px;
    flex-shrink: 0;
}
.play-back {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s;
    flex-shrink: 0;
}
.play-back:hover { color: #fff; }
.play-topbar-info {
    min-width: 0; flex: 1;
    display: flex; flex-direction: column; gap: 2px;
}
.play-topbar-title {
    font-size: 0.88rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.play-topbar-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.72rem; opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
.play-badge {
    display: inline-block;
    background: rgba(124,92,252,0.35); color: #c4b5ff;
    padding: 1px 10px; border-radius: 3px;
    font-weight: 600; font-size: 0.7rem;
}
.play-meta-item {
    display: inline-flex; align-items: center; gap: 3px;
    white-space: nowrap;
}
.play-meta-icon {
    width: 12px; height: 12px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* 主内容区 */
.play-main {
    position: relative; z-index: 1;
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 90%; max-width: 1200px; margin: 0 auto;
    padding: 0 0 50px;
    min-height: 0;
    max-height: 100%;
    overflow: visible;
}

/* ==================== 自定义播放器 ==================== */
.play-player-wrap {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    overflow: hidden;
    max-width: 90vw; max-height: 90vh;
    margin: 20px 30px 40px 30px;
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.55),
        14px 18px 36px rgba(0, 0, 0, 0.45),
        24px 32px 60px rgba(0, 0, 0, 0.30);
    position: relative;
    cursor: default;
}
.play-player-wrap video {
    display: block;
    width: 100%; height: 100%;
    outline: none;
    object-fit: fill;
    background: #000;
    position: relative; z-index: 2;
    /* 禁用移动端原生控件和下载/投屏按钮 */
    pointer-events: auto;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
/* 全屏时撑满 */
.play-player-wrap:fullscreen {
    width: 100vw !important; height: 100vh !important;
    border-radius: 0;
}
.play-player-wrap:fullscreen video {
    max-width: 100vw; max-height: 100vh;
    width: 100vw !important; height: 100vh !important;
}
.play-player-wrap:-webkit-full-screen {
    width: 100vw !important; height: 100vh !important;
    border-radius: 0;
}
.play-player-wrap:-webkit-full-screen video {
    max-width: 100vw; max-height: 100vh;
    width: 100vw !important; height: 100vh !important;
}
/* 隐藏 iOS Safari 原生播放按钮 */
video::-webkit-media-controls-start-playback-button { display: none !important; }
video::-webkit-media-controls { display: none !important; }
video::-webkit-media-controls-enclosure { display: none !important; }
video::-webkit-media-controls-panel { display: none !important; }
video::-webkit-media-controls-fullscreen-button { display: none !important; }
video::-webkit-media-controls-timeline { display: none !important; }
video::-webkit-media-controls-current-time-display { display: none !important; }
video::-webkit-media-controls-time-remaining-display { display: none !important; }
video::-webkit-media-controls-mute-button { display: none !important; }
video::-webkit-media-controls-volume-slider { display: none !important; }
/* 隐藏 iOS 画中画按钮 */
video::-webkit-media-controls-pip-button { display: none !important; }

/* 加载遮罩 */
.pl-loading {
    position: absolute; inset: 0; z-index: 5;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px;
    background: rgba(0,0,0,0.55);
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    pointer-events: none;
}
.pl-loading.pl-hidden { display: none; }
.pl-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: pl-spin 0.9s linear infinite;
}
@keyframes pl-spin { to { transform: rotate(360deg); } }

/* 中央大播放按钮 */
.pl-big-play {
    position: absolute; z-index: 6;
    inset: 0; margin: auto;
    width: 80px; height: 80px;
    border-radius: 50%;
    border: none;
    background: rgba(124,92,252,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 4px;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.15s;
}
.pl-big-play:hover { opacity: 1; transform: scale(1.08); }
.pl-big-play:active { transform: scale(0.95); }
.pl-big-play svg {
    width: 28px; height: 28px;
    margin-left: 4px;
    flex-shrink: 0;
}
.pl-big-play-text {
    display: none;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    line-height: 1;
}
.pl-big-play-text.show { display: block; }

/* 网络加载日志 */
.pl-netlog {
    position: fixed;
    bottom: 58px; left: 0;
    z-index: 0;
    max-height: 230px;
    overflow: hidden;
    font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
    font-size: 0.68rem;
    line-height: 1.35;
    color: rgba(255,255,255,0.45);
    pointer-events: none;
    padding: 4px 16px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
}
.pl-netlog-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: netlog-in 0.22s ease-out;
    max-width: 70vw;
}
.pl-netlog-line.removing {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.35s, transform 0.35s;
}

@keyframes netlog-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==================== 播放器内嵌控制条 ==================== */
.pl-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    height: 52px;
    background: transparent;
}

/* 播放/暂停按钮 */
.pl-bar-play {
    flex-shrink: 0;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    transition: opacity 0.2s, transform 0.15s;
}
.pl-bar-play:hover { opacity: 0.8; }
.pl-bar-play:active { transform: scale(0.92); }
.pl-bar-play svg {
    width: 20px; height: 20px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));
}
/* 图标初始均隐藏，由 JS 控制显示 */

/* 进度条 */
.pl-bar-progress {
    flex: 1; min-width: 80px;
    height: 28px;
    display: flex; align-items: center;
    cursor: pointer;
    position: relative;
}
/* 悬停时间提示 */
.pl-bar-hover-time {
    position: absolute;
    bottom: 100%;
    left: 0;
    transform: translateX(-50%);
    padding: 3px 8px;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: rgba(0,0,0,0.8);
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s;
    white-space: nowrap;
    margin-bottom: 6px;
}
.pl-bar-progress:hover .pl-bar-hover-time,
.pl-bar-progress:active .pl-bar-hover-time { opacity: 1; }
.pl-bar-progress-track {
    width: 100%; height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    position: relative;
    transition: height 0.2s;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}
.pl-bar-progress:hover .pl-bar-progress-track { height: 7px; }
.pl-bar-progress:active .pl-bar-progress-track { height: 7px; }
.pl-bar-buffered {
    position: absolute; left: 0; top: 0; height: 100%;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    width: 0%;
    box-shadow: 0 0 3px rgba(0,0,0,0.4);
}
.pl-bar-filled {
    position: absolute; left: 0; top: 0; height: 100%;
    background: var(--accent);
    border-radius: 3px;
    width: 0%;
    transition: width 0.05s linear;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}
.pl-bar-filled::after {
    content: '';
    position: absolute; right: -4px; top: 50%;
    transform: translateY(-50%);
    width: 10px; height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(124,92,252,0.6);
    opacity: 0;
    transition: opacity 0.2s;
}
.pl-bar-progress:hover .pl-bar-filled::after,
.pl-bar-progress:active .pl-bar-filled::after { opacity: 1; }
.pl-bar-thumb {
    position: absolute; top: 50%; left: 0%;
    width: 14px; height: 14px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(124,92,252,0.5);
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}
.pl-bar:hover .pl-bar-thumb { opacity: 1; }

/* 时间 */
.pl-bar-time {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    color: #fff;
    user-select: none;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* 全屏按钮 */
.pl-bar-fs {
    flex-shrink: 0;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    transition: opacity 0.2s, transform 0.15s;
}
.pl-bar-fs:hover { opacity: 0.8; }
.pl-bar-fs:active { transform: scale(0.92); }
.pl-bar-fs svg {
    width: 17px; height: 17px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));
}

/* ==================== 底部只读进度条 ==================== */
.pl-bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 50;
    padding: 6px 20px 10px;
    pointer-events: none;
}
.pl-bottom-bar-track {
    width: 100%; height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    position: relative;
}
.pl-bottom-bar-buffered {
    position: absolute; left: 0; top: 0; height: 100%;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}
.pl-bottom-bar-filled {
    position: absolute; left: 0; top: 0; height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

/* 视频结束通知 */
.play-end-notify {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 22px; border-radius: 8px;
    display: none; align-items: center; gap: 16px;
    z-index: 1000; font-size: 0.85rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.play-end-notify.visible { display: flex; }
.play-end-notify button {
    background: rgba(0,0,0,0.3); color: #fff; border: none;
    padding: 6px 14px; border-radius: 4px; cursor: pointer;
    font-size: 0.8rem; transition: background 0.2s;
}
.play-end-notify button:hover { background: rgba(0,0,0,0.5); }

/* 播放页响应式 */
@media (max-width: 768px) {
    .play-topbar { padding: 10px 12px; }
    .play-topbar-title { font-size: 0.8rem; }
    .play-main { width: 98%; padding-bottom: 30px; }
    .play-player-wrap { margin: 12px 16px 24px 16px; }
    .pl-bar { gap: 8px; padding: 6px 12px; height: 46px; }
    .pl-bar-play { width: 34px; height: 34px; }
    .pl-bar-play svg { width: 18px; height: 18px; }
    .pl-bar-time { font-size: 0.72rem; }
    .pl-bar-fs { width: 34px; height: 34px; }
    .pl-bar-fs svg { width: 15px; height: 15px; }
}


/* 空状态 */
.empty-state {
    text-align: center; padding: 80px 20px; color: var(--text-dim);
}
.empty-state svg { width: 64px; height: 64px; opacity: 0.3; margin-bottom: 16px; }

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .video-grid { gap: 16px; }
}
@media (max-width: 992px) {
    .video-grid { gap: 14px; }
}
@media (max-width: 768px) {
    .video-grid { gap: 12px; grid-template-columns: 1fr; }
    .video-card { max-width: 680px; margin: 0 auto; }
    .navbar { padding: 0 12px; }
    .navbar .logo { font-size: 1.1rem; }
    .main-container { padding: 16px; }
    .screenshot-carousel img { height: 120px; }
}
