/* APTV.PRO 播放页样式 */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
            min-height: 100vh; color: #fff; padding-bottom: 80px;
        }
        .top-nav {
            position: fixed; top: 0; left: 0; right: 0; z-index: 100;
            display: flex; align-items: center; padding: 14px 20px; gap: 12px;
        }
        .back-btn {
            width: 36px; height: 36px; border-radius: 50%;
            background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
            display: flex; align-items: center; justify-content: center; cursor: pointer;
            color: #fff; text-decoration: none; font-size: 18px; flex-shrink: 0;
        }
        .top-nav .title { flex: 1; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .player-wrap {
            position: relative; z-index: 1; width: 100%; background: #000;
            border-radius: 16px; overflow: hidden;
            aspect-ratio: 16/9; max-height: 70vh; overflow: hidden; border-radius: 16px;
            margin-bottom: 8px;
        }
        .player-wrap video, .player-wrap .tcplayer { width: 100%; height: 100%; border-radius: inherit; }
        .player-wrap .tcplayer-container,
        .player-wrap .tcp-player,
        .player-wrap iframe,
        .player-wrap .tcp-player > *,
        .player-wrap .tcplayer-container > *,
        .player-wrap .tcplayer-container *,
        .player-wrap .tcp-player *,
        .player-wrap .vcp-player,
        .player-wrap video { border-radius: inherit !important; overflow: hidden; }
        
        .player-wrap .play-overlay {
            position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
            background: rgba(0,0,0,0.4); cursor: pointer; z-index: 10;
        }
        .player-wrap .play-overlay svg { width: 60px; height: 60px; opacity: 0.9; position: relative; z-index: 2; }
        /* 炫彩旋转光环 */
        .play-overlay::before {
            content: ''; position: absolute; width: 90px; height: 90px;
            border-radius: 50%;
            background: conic-gradient(#FF6B00, #FF8C00, #FFA500, #ec4899, #f43f5e, #f59e0b, #10b981, #FF6B00);
            animation: rainbowSpin 2s linear infinite;
            z-index: 1;
        }
        .play-overlay::after {
            content: ''; position: absolute; width: 78px; height: 78px;
            border-radius: 50%; background: rgba(0,0,0,0.6);
            z-index: 1;
        }
        @keyframes rainbowSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
        .play-overlay.playing::before,
        .play-overlay.playing::after { display: none; }
        /* 播放器加载动画 */
        @keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
        @keyframes pulse-dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
        .player-loading { display: flex; flex-direction: column; align-items: center; gap: 16px; }
        .player-loading .ring-wrap { position: relative; width: 60px; height: 60px; }
        .player-loading .ring { position: absolute; inset: 0; border: 3px solid rgba(255,107,0,0.6); border-radius: 50%; animation: pulse-ring 1.5s ease-out infinite; }
        .player-loading .ring:nth-child(2) { animation-delay: 0.5s; }
        .player-loading .ring:nth-child(3) { animation-delay: 1s; }
        .player-loading .dot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
        .player-loading .dot::after { content: ''; width: 16px; height: 16px; background: #FF6B00; border-radius: 50%; animation: pulse-dot 1.5s ease-in-out infinite; }
        .player-loading .text { color: rgba(255,255,255,0.7); font-size: 13px; }
        .overlay-lines { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 4px 0; }
        .overlay-lines::-webkit-scrollbar { height: 0; }
        .overlay-line-btn { flex-shrink: 0; padding: 5px 12px; border-radius: 14px; font-size: 11px; cursor: pointer; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.75); transition: all 0.2s; white-space: nowrap; backdrop-filter: blur(4px); }
        .overlay-line-btn.active { background: rgba(255, 107, 0, 0.6); border-color: rgba(255, 107, 0, 0.7); color: #fff; }
        .overlay-line-btn:hover { background: rgba(255, 107, 0, 0.35); border-color: rgba(255, 107, 0, 0.5); }
        .chat-actions { display: flex; gap: 10px; align-items: center; }
        .chat-actions .icon-btn { background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; display: flex; align-items: center; gap: 3px; padding: 2px; border-radius: 6px; transition: all 0.2s; }
        .chat-actions .icon-btn:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
        .chat-actions .icon-count { font-size: 10px; color: rgba(255,255,255,0.4); }

        .content { padding: 70px 16px 20px; max-width: 1200px; margin: 0 auto; }
        .info-card {
            width: 100%; box-sizing: border-box;
            background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
            border-radius: 20px; padding: 24px; margin-bottom: 16px;
            backdrop-filter: blur(10px);
        }
        .info-card .vod-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
        .info-card .vod-score { font-size: 13px; font-weight: 600; color: #f5a623; background: rgba(245,166,35,0.12); padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
        .info-card .vod-meta { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
        .info-card .vod-meta span { background: rgba(255,255,255,0.08); padding: 4px 10px; border-radius: 10px; }
        .actions {
            display: flex; gap: 8px; margin-bottom: 16px;
        }
        .action-btn {
            flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
            padding: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12);
            background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.8);
            font-size: 13px; cursor: pointer; transition: all 0.2s;
        }
        .action-btn:hover { background: rgba(255,255,255,0.1); }
        .action-btn.active { background: rgba(255, 107, 0, 0.25); border-color: rgba(255, 107, 0, 0.5); color: #FFA500; }
        .action-btn svg { width: 18px; height: 18px; }
        .desc-text { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; max-height: 80px; overflow: hidden; transition: max-height 0.3s; }
        .desc-text.expanded { max-height: none; }
        .desc-toggle { color: #FF6B00; font-size: 13px; cursor: pointer; margin-top: 8px; display: inline-block; }
        .section { margin-bottom: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 24px; backdrop-filter: blur(10px); }
        .section-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
        .section-title::before { content: ''; width: 3px; height: 16px; background: linear-gradient(135deg, #FF6B00, #FF8C00); border-radius: 2px; }
        .line-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
        .line-tab {
            padding: 8px 16px; border-radius: 20px; font-size: 13px; cursor: pointer;
            background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.7); transition: all 0.2s;
        }
        .line-tab.active { background: rgba(99, 102, 241, 0.25); border-color: rgba(99, 102, 241, 0.5); color: #fff; }
        .ep-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
        .ep-btn {
            padding: 10px 6px; border-radius: 10px; font-size: 12px; text-align: center; cursor: pointer;
            background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
            color: rgba(255,255,255,0.7); transition: all 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .ep-btn.active { background: rgba(255, 107, 0, 0.3); border-color: #FF6B00; color: #fff; }
        .related-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
        .related-card { cursor: pointer; text-decoration: none; }
        .related-card .thumb {
            aspect-ratio: 3/4; border-radius: 10px; background-size: cover; background-position: center;
            background-color: rgba(99, 102, 241, 0.2); margin-bottom: 6px;
            display: flex; align-items: center; justify-content: center; font-size: 28px;
        }
        .related-card .rname { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .related-card .rmeta { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
        .error-msg { text-align: center; padding: 60px 20px; color: rgba(255,255,255,0.5); }
        .toast {
            position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
            background: rgba(0,0,0,0.8); color: #fff; padding: 12px 24px;
            border-radius: 20px; font-size: 14px; z-index: 999; pointer-events: none;
            opacity: 0; transition: opacity 0.3s;
        }
        .toast.show { opacity: 1; }
        @media (max-width: 480px) {
            .ep-grid { grid-template-columns: repeat(4, 1fr); }
            .related-grid { grid-template-columns: repeat(3, 1fr); }
        }
        .tab-bar {
            position: fixed; bottom: 0; left: 0; right: 0;
            display: flex; background: rgba(15, 12, 41, 0.8);
            border-top: 1px solid rgba(255,255,255,0.06); padding: 8px 0 env(safe-area-inset-bottom, 8px);
            backdrop-filter: blur(10px); z-index: 101;
        }
        .tab-item {
            flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
            text-decoration: none; color: rgba(255,255,255,0.65); font-size: 11px;
        }
        .tab-item svg { width: 22px; height: 22px; stroke: rgba(255,255,255,0.65); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

        .actions-icons { display: flex; gap: 16px; justify-content: flex-end; align-items: center; margin-bottom: 12px; }
        .icon-btn { background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 8px; transition: all 0.2s; }
        .icon-btn:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
        .icon-btn.active { color: #818cf8; }
        .icon-count { font-size: 12px; color: rgba(255,255,255,0.5); }
        .chat-box { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; margin-top: 16px; margin-bottom: 8px; overflow: hidden; backdrop-filter: blur(10px); }
        .chat-header { display: flex; align-items: center; padding: 6px 12px; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
        .chat-title { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.9); white-space: nowrap; }
        .chat-header-left { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
        .chat-actions { margin-left: auto; }
        .chat-online { font-size: 11px; color: #4ade80; display: flex; align-items: center; gap: 4px; }
        .chat-online::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
        .chat-messages { height: 120px; overflow-y: auto; padding: 8px 12px; scroll-behavior: smooth; }
        .chat-msg { display: flex; gap: 8px; padding: 6px 0; }
        .chat-msg .avatar { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.1); flex-shrink: 0; object-fit: cover; }
        .chat-msg .avatar-placeholder { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; color: #fff; }
        .chat-msg .body { flex: 1; min-width: 0; }
        .chat-msg .meta { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
        .chat-msg .name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.8); }
        .chat-msg .time { font-size: 10px; color: rgba(255,255,255,0.3); }
        .chat-msg .text { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.4; word-break: break-word; }
        .chat-msg .del-btn { font-size: 10px; color: rgba(255,255,255,0.2); cursor: pointer; margin-left: 4px; }
        .chat-msg .del-btn:hover { color: #ef4444; }
        .chat-msg.self { flex-direction: row-reverse; }
        .chat-msg.self .body { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
        .chat-msg.self .meta { flex-direction: row-reverse; }
        .chat-msg.self .text { background: rgba(99, 102, 241, 0.25); border-radius: 12px 12px 2px 12px; padding: 6px 10px; display: inline-block; max-width: 80%; }
        .chat-msg .text { background: rgba(255,255,255,0.06); border-radius: 12px 12px 12px 2px; padding: 6px 10px; display: inline-block; max-width: 80%; }
        .chat-empty { text-align: center; padding: 30px 20px; color: rgba(255,255,255,0.25); font-size: 13px; }
        .chat-input-bar { padding: 6px 10px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; gap: 6px; flex-shrink: 0; }
        .chat-input-bar input { flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 8px 14px; color: #fff; font-size: 13px; outline: none; }
        .chat-input-bar input::placeholder { color: rgba(255,255,255,0.25); }
        .chat-input-bar button { background: linear-gradient(135deg, #667eea, #764ba2); border: none; border-radius: 16px; padding: 8px 16px; color: #fff; font-size: 13px; cursor: pointer; white-space: nowrap; }
        .chat-input-bar button:disabled { opacity: 0.5; cursor: not-allowed; }

        .chat-login-hint { text-align: center; padding: 12px; color: rgba(255,255,255,0.4); font-size: 13px; }
        .chat-login-hint a { color: #818cf8; text-decoration: none; }
        .play-url-box {
            background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px; padding: 12px; margin-bottom: 8px;
            backdrop-filter: blur(10px);
        }
        .play-url-box .url-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
        .play-url-box .url-row { display: flex; gap: 6px; align-items: center; }
        .play-url-box .url-input { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 8px 10px; color: rgba(255,255,255,0.7); font-size: 12px; outline: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .play-url-box .url-copy { background: linear-gradient(135deg, #667eea, #764ba2); border: none; border-radius: 8px; padding: 8px 14px; color: #fff; font-size: 12px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
        .play-url-box .url-import { background: linear-gradient(135deg, #f5a623, #e8961a); border: none; border-radius: 8px; padding: 8px 14px; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
        .tubo-import-btn {
            display: flex; align-items: center; justify-content: center; gap: 8px;
            width: 100%; min-height: 50px; margin-top: 14px;
            padding: 14px 18px; color: #fff; font-size: 16px; font-weight: 700;
            background: linear-gradient(135deg, #ff365c, #e62a4e);
            border-radius: 14px; text-decoration: none;
            -webkit-tap-highlight-color: transparent;
        }
        .tubo-import-btn:active { transform: scale(.97); }
        .tubo-import-tip {
            text-align: center; font-size: 11px; color: rgba(255,255,255,0.35);
            margin-top: 8px; line-height: 1.5;
        }

/* ========== 主题切换 ========== */
[data-theme="light"] body {
  background: #f5f6f8 !important;
  color: #1a1a1a;
}
[data-theme="light"] .top-nav {
  background: #ffffff !important;
  border-bottom: 1px solid #ececef;
}
[data-theme="light"] .top-nav .title {
  color: #1a1a1a;
}
[data-theme="light"] .back-btn {
  background: rgba(0,0,0,0.05) !important;
  border-color: rgba(0,0,0,0.08) !important;
  color: #4a4a5a;
}
[data-theme="light"] .back-btn:hover {
  background: rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .info-card {
  background: #ffffff;
  border-color: #ececef;
}
[data-theme="light"] .info-card .vod-title {
  color: #1a1a1a;
}
[data-theme="light"] .info-card .vod-meta {
  color: #8a8a8e;
}
[data-theme="light"] .info-card .vod-meta span {
  background: #f5f6f8;
  color: #6b6b7b;
}
[data-theme="light"] .section {
  background: #ffffff;
  border-color: #ececef;
}
[data-theme="light"] .section-title {
  color: #1a1a1a;
}
[data-theme="light"] .desc-text {
  color: #6b6b7b;
}
[data-theme="light"] .action-btn {
  background: #f5f6f8;
  border-color: #e0e0e4;
  color: #6b6b7b;
}
[data-theme="light"] .action-btn:hover {
  background: #ececef;
}
[data-theme="light"] .action-btn.active {
  background: rgba(255, 107, 0, 0.12);
  border-color: rgba(255, 107, 0, 0.3);
  color: #FF6B00;
}
[data-theme="light"] .ep-btn {
  background: #f5f6f8;
  border-color: #e0e0e4;
  color: #6b6b7b;
}
[data-theme="light"] .ep-btn:hover {
  background: #ececef;
}
[data-theme="light"] .ep-btn.active {
  background: rgba(255, 107, 0, 0.15);
  border-color: #FF6B00;
  color: #FF6B00;
}
[data-theme="light"] .overlay-line-btn {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.12);
  color: #4a4a5a;
}
[data-theme="light"] .overlay-line-btn.active {
  background: rgba(255, 107, 0, 0.2);
  border-color: rgba(255, 107, 0, 0.4);
  color: #FF6B00;
}
[data-theme="light"] .overlay-line-btn:hover {
  background: rgba(255, 107, 0, 0.12);
}
[data-theme="light"] .tab-bar {
  background: #ffffff;
  border-top-color: #ececef;
}
[data-theme="light"] .tab-bar a {
  color: #8a8a8e;
}
[data-theme="light"] .tab-item svg {
  stroke: #8a8a8e;
}
[data-theme="light"] .tab-bar a.active {
  color: #FF6B00;
}
[data-theme="light"] .tab-bar a.active svg {
  stroke: #FF6B00;
}
[data-theme="light"] .player-wrap {
  background: #e8e8ec;
}
[data-theme="light"] .player-loading .text {
  color: #8a8a8e;
}
[data-theme="light"] .chat-actions .icon-btn {
  color: #8a8a8e;
}
[data-theme="light"] .chat-actions .icon-btn:hover {
  background: rgba(0,0,0,0.05);
  color: #1a1a1a;
}
[data-theme="light"] .chat-box {
  background: #ffffff;
  border-color: #ececef;
}
[data-theme="light"] .chat-header {
  border-bottom-color: #ececef;
}
[data-theme="light"] .chat-title {
  color: #1a1a1a;
}
[data-theme="light"] .chat-msg .name {
  color: #4a4a5a;
}
[data-theme="light"] .chat-msg .time {
  color: #a0a0b0;
}
[data-theme="light"] .chat-msg .text {
  color: #4a4a5a;
  background: #f5f6f8;
}
[data-theme="light"] .chat-msg.self .text {
  background: rgba(255, 107, 0, 0.12);
  color: #FF6B00;
}
[data-theme="light"] .chat-empty {
  color: #a0a0b0;
}
[data-theme="light"] .chat-input-bar {
  border-top-color: #ececef;
}
[data-theme="light"] .chat-input-bar input {
  background: #f5f6f8;
  border-color: #e0e0e4;
  color: #1a1a1a;
}
[data-theme="light"] .chat-input-bar input::placeholder {
  color: #c0c0c8;
}
[data-theme="light"] .chat-input-bar button {
  background: linear-gradient(135deg, #FF6B00, #FF8C00);
}
[data-theme="light"] .chat-msg .avatar {
  background: #e0e0e4;
}
[data-theme="light"] .chat-msg .del-btn {
  color: #c0c0c8;
}
[data-theme="light"] .play-url-box .url-label {
  color: #4a4a5a;
}
[data-theme="light"] .play-url-box .url-row span {
  color: #4a4a5a !important;
}
[data-theme="light"] .play-url-box .url-input {
  background: #f5f6f8;
  border-color: #e0e0e4;
  color: #4a4a5a;
}
[data-theme="light"] .play-url-box .url-copy {
  background: linear-gradient(135deg, #FF6B00, #FF8C00);
}
[data-theme="light"] .tubo-import-btn {
  background: linear-gradient(135deg, #FF6B00, #FF8C00);
  color: #fff;
}
[data-theme="light"] .tubo-import-tip {
  color: #8a8a8e;
}
/* 切换按钮 */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all 0.2s; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8); flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.25); }
.theme-toggle svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.8); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="light"] .theme-toggle {
  background: rgba(0,0,0,0.05) !important;
  border-color: rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .theme-toggle svg {
  stroke: #4a4a5a;
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }
