* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #6366f1;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #f8fafc;
    --text-color: #1e293b;
    --text-secondary: #64748b;
    --bg-color: #ffffff;
    --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

/* RTL (维吾尔语) 特定样式 */
body.rtl {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* LTR (中文) 特定样式 */
body.ltr {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* RTL 模式下调整箭头和方向 */
[dir="rtl"] .menu-arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .back-btn {
    transform: scaleX(-1);
}

/* RTL 模式下的特定布局调整 */
[dir="rtl"] .quick-buttons,
[dir="rtl"] .video-grid {
    direction: rtl;
}

[dir="rtl"] .nav-item,
[dir="rtl"] .menu-item {
    flex-direction: row-reverse;
}

/* 确保输入框在 RTL 模式下正确显示 */
[dir="rtl"] input,
[dir="rtl"] select {
    text-align: right;
}

/* 确保菜单图标在 RTL 模式下正确 */
[dir="rtl"] .menu-icon {
    margin-left: 0;
    margin-right: 0;
}

/* 语言选择弹窗 */
.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.language-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
}

.language-content h2 {
    font-size: 28px;
    margin-bottom: 40px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.language-btn {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 35px 45px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.language-btn:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.language-btn:active {
    transform: scale(0.98);
}

.lang-flag {
    font-size: 48px;
}

.lang-text {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

/* 主应用 */
.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-container {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 70px;
    -webkit-overflow-scrolling: touch;
}

.page {
    display: none;
    min-height: 100%;
}

.page.active {
    display: block;
}

/* 头部 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-icon {
    font-size: 18px;
}

.search-placeholder {
    color: var(--text-secondary);
    font-size: 15px;
}

/* 轮播图 */
.carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: 10px 0;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, var(--bg-color));
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background-color: white;
    width: 24px;
    border-radius: 4px;
}

/* 快捷按钮 */
.quick-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 10px;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8);
    animation: btnPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.quick-btn:nth-child(1) { animation-delay: 0.1s; }
.quick-btn:nth-child(2) { animation-delay: 0.15s; }
.quick-btn:nth-child(3) { animation-delay: 0.2s; }
.quick-btn:nth-child(4) { animation-delay: 0.25s; }

@keyframes btnPopIn {
    0% {
        opacity: 0;
        transform: scale(0.4) translateY(30px);
    }
    50% {
        transform: scale(1.2) translateY(-8px);
    }
    80% {
        transform: scale(0.9) translateY(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.quick-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.quick-btn:hover::before {
    width: 200px;
    height: 200px;
}

.quick-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.3), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.quick-btn:active {
    transform: scale(0.75);
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.2);
    transition: all 0.08s ease;
}

.quick-btn:active::before {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, transparent 70%);
}

.quick-btn:active .quick-icon {
    transform: scale(1.3);
    transition: transform 0.1s ease;
}

.quick-icon {
    font-size: 28px;
}

.quick-btn span:last-child {
    font-size: 13px;
    color: var(--text-color);
}

/* 区块标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 10px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.more {
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 15px 25px;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--card-shadow);
    opacity: 0;
    transform: scale(0.8);
    animation: cardPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.video-card:nth-child(1) { animation-delay: 0.05s; }
.video-card:nth-child(2) { animation-delay: 0.1s; }
.video-card:nth-child(3) { animation-delay: 0.15s; }
.video-card:nth-child(4) { animation-delay: 0.2s; }
.video-card:nth-child(5) { animation-delay: 0.25s; }
.video-card:nth-child(6) { animation-delay: 0.3s; }
.video-card:nth-child(7) { animation-delay: 0.35s; }
.video-card:nth-child(8) { animation-delay: 0.4s; }
.video-card:nth-child(9) { animation-delay: 0.45s; }
.video-card:nth-child(10) { animation-delay: 0.5s; }
.video-card:nth-child(11) { animation-delay: 0.55s; }
.video-card:nth-child(12) { animation-delay: 0.6s; }

@keyframes cardPopIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(40px);
    }
    40% {
        transform: scale(1.15) translateY(-10px);
    }
    70% {
        transform: scale(0.95) translateY(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 10px 20px -8px rgba(0, 0, 0, 0.1);
}

.video-card:active {
    transform: scale(0.85) translateY(0);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    transition: all 0.08s ease;
}

.video-card:active img {
    filter: brightness(0.8);
}

.video-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.video-card-info {
    padding: 8px;
}

.video-card-title {
    font-size: 13px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.video-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 11px;
    color: var(--text-secondary);
}

.vip-badge {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

/* 筛选器 */
.filters {
    background: white;
    padding: 20px;
    margin: 15px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.filter-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 55px;
    font-weight: 500;
}

.filter-group select {
    flex: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-group select:hover {
    border-color: #cbd5e1;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 用户头部 */
.user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 30px 20px;
    background: var(--primary-gradient);
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.user-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.vip-status {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* 菜单列表 */
.menu-list {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInFromLeft 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.15s; }
.menu-item:nth-child(3) { animation-delay: 0.2s; }
.menu-item:nth-child(4) { animation-delay: 0.25s; }
.menu-item:nth-child(5) { animation-delay: 0.3s; }
.menu-item:nth-child(6) { animation-delay: 0.35s; }
.menu-item:nth-child(7) { animation-delay: 0.4s; }

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    transition: width 0.4s ease;
    border-radius: 16px;
}

.menu-item:hover::before {
    width: 100%;
}

.menu-item:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 15px 35px -10px rgba(99, 102, 241, 0.25), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.menu-item:active {
    transform: scale(0.95) translateX(4px);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
    transition: all 0.1s ease;
}

.menu-icon {
    font-size: 22px;
    width: 30px;
    text-align: center;
}

.menu-item span:nth-child(2) {
    flex: 1;
    font-size: 15px;
}

.menu-arrow {
    color: var(--text-secondary);
    font-size: 24px;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid #f1f5f9;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.nav-item:active::after {
    width: 120px;
    height: 120px;
}

.nav-item:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.nav-item.active {
    color: var(--primary-color);
    transform: scale(1.1);
}

.nav-item.active .nav-icon {
    animation: bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.nav-item:active {
    transform: scale(0.9);
    transition: all 0.1s ease;
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 3px;
}

.nav-item span:last-child {
    font-size: 11px;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 35px 30px;
    width: 100%;
    max-width: 380px;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close:hover {
    background: #f1f5f9;
    color: #64748b;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
}

.modal-content input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    color: var(--text-color);
    font-size: 15px;
    transition: all 0.3s;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.modal-content button {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.modal-content button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modal-content button:hover::before {
    width: 300px;
    height: 300px;
}

.modal-content button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

.modal-content button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.1s ease;
}

.modal-content button:active {
    opacity: 0.9;
}

.switch-form {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
}

/* 记住我选项 */
.remember-me {
    margin-bottom: 18px;
}

.remember-me label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.remember-me input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

/* 设备信息显示 */
.device-info {
    margin-top: 24px;
}

.device-info-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
}

.device-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
}

.device-info-item:last-child {
    margin-bottom: 0;
}

.device-info-label {
    color: var(--text-secondary);
}

.device-info-value {
    color: var(--text-color);
    font-weight: 600;
}

/* 全屏页面 */
.full-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 3000;
    overflow-y: auto;
}

.full-page.active {
    display: block;
}

.full-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.video-player {
    width: 100%;
    background-color: #000;
    aspect-ratio: 16/9;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-info {
    padding: 20px;
}

.video-info h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.video-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.video-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.video-detail-section {
    margin-bottom: 15px;
}

.video-detail-section strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 5px;
}

.video-detail-section span {
    color: var(--text-secondary);
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 16px;
}

/* Toast 提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    z-index: 10000;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* VIP 角标 */
.vip-corner {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.video-card {
    position: relative;
}

/* 大弹窗 */
.modal-content.large {
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
}

/* 观看记录列表 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    background-color: #333;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.history-item:active {
    background-color: #444;
}

.history-item img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
}

.history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.history-info h4 {
    font-size: 15px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 历史记录列表 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
}

.history-item:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.history-item img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
}

.history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.history-info h4 {
    font-size: 15px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 订单列表 */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.order-info {
    flex: 1;
}

.order-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.order-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.order-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.order-amount {
    font-size: 20px;
    font-weight: 700;
    color: #6366f1;
}

.order-status-tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.order-status-tag.pending {
    background: #fed7aa;
    color: #ea580c;
}

.order-status-tag.paid {
    background: #bbf7d0;
    color: #16a34a;
}

.order-status-tag.cancelled {
    background: #e2e8f0;
    color: #64748b;
}

.pay-btn {
    padding: 10px 24px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
}

.pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

/* VIP套餐 */
.vip-packages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.vip-package {
    position: relative;
    padding: 24px 20px;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #e2e8f0;
    text-align: center;
    box-shadow: var(--card-shadow);
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    animation: vipPackagePopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.vip-package:nth-child(1) { animation-delay: 0.1s; }
.vip-package:nth-child(2) { animation-delay: 0.2s; }
.vip-package:nth-child(3) { animation-delay: 0.3s; }

@keyframes vipPackagePopIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.vip-package::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 18px;
}

.vip-package:hover::before {
    opacity: 1;
}

.vip-package:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.3), 0 15px 30px -10px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.vip-package:active {
    transform: scale(0.95);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease;
}

.vip-package.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    transform: scale(1.02);
    box-shadow: 0 15px 35px -10px rgba(99, 102, 241, 0.3);
}

.vip-package.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 16px;
    width: 28px;
    height: 28px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    animation: checkMarkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkMarkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.vip-package.popular {
    border-color: var(--primary-color);
    border-width: 3px;
}

.popular-tag {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary-gradient);
    color: white;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.vip-package h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.vip-price {
    margin-bottom: 10px;
}

.vip-price .currency {
    font-size: 16px;
    color: var(--primary-color);
}

.vip-price .amount {
    font-size: 36px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-package p {
    color: var(--text-secondary);
    font-size: 14px;
}

.purchase-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.purchase-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s, height 0.8s;
}

.purchase-btn:hover::before {
    width: 400px;
    height: 400px;
}

.purchase-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6), 0 8px 20px rgba(0, 0, 0, 0.1);
}

.purchase-btn:active {
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.15s ease;
}

.purchase-btn:active::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 70%);
}

/* 下拉刷新样式 */
.pull-refresh-indicator {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 50;
    opacity: 0;
    transition: all 0.3s ease;
}

.pull-refresh-indicator.visible {
    opacity: 1;
}

.pull-refresh-indicator.refreshing .pull-refresh-icon {
    animation: spin 0.8s linear infinite;
}

.pull-refresh-icon {
    font-size: 32px;
    transition: transform 0.3s ease;
}

.pull-refresh-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 观看记录横向滚动 */
.watch-history-scroll {
    display: flex;
    gap: 12px;
    padding: 0 15px 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.watch-history-scroll::-webkit-scrollbar {
    display: none;
}

.watch-history-card {
    flex-shrink: 0;
    width: 120px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--card-shadow);
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    animation: cardPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.watch-history-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    pointer-events: none;
}

.watch-history-card .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 10;
    transition: all 0.3s;
}

.watch-history-card:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.2);
    background: white;
}

.watch-history-card:active {
    transform: scale(0.95);
}

.watch-history-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.watch-history-card-info {
    padding: 8px;
    position: relative;
    z-index: 5;
}

.watch-history-card-title {
    font-size: 12px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.watch-history-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
    z-index: 10;
}

.watch-history-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

/* 微信登录样式 */
.wechat-login-section {
    margin-bottom: 20px;
}

.wechat-login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.4);
    position: relative;
    overflow: hidden;
}

.wechat-login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.wechat-login-btn:hover::before {
    width: 400px;
    height: 400px;
}

.wechat-login-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(7, 193, 96, 0.5);
}

.wechat-login-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.3);
    transition: all 0.1s ease;
}

.wechat-icon {
    font-size: 24px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-secondary);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.divider span {
    padding: 0 15px;
    font-size: 14px;
}

/* ==================== 播放页面样式 ==================== */

/* 播放器容器 */
.player-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.video-player-full {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
}

.video-player-full video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* 播放器覆盖层 */
.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.player-overlay.hidden {
    opacity: 0;
}

.back-arrow {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.back-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.back-arrow:active {
    transform: scale(0.9);
}

.back-arrow svg {
    width: 24px;
    height: 24px;
}

/* 播放器标题 */
.player-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-overlay.show-title .player-title {
    opacity: 1;
}

/* 播放页面内容 */
.play-page-content {
    padding: 20px 16px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

/* 播放页面进入动画 */
.full-page {
    animation: slideUpFromBottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpFromBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 影视介绍区域 */
.video-intro-section {
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-poster-info {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.play-poster {
    width: 120px;
    height: 170px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.play-poster:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.play-video-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.play-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.play-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.play-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-score {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-stars {
    font-size: 14px;
}

.play-description-container {
    position: relative;
}

.play-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.play-description.expanded {
    -webkit-line-clamp: unset;
}

/* 功能按钮区域 */
.action-buttons {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

/* 描述展开按钮 */
.play-description-toggle {
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    display: inline-block;
    transition: all 0.3s;
}

.play-description-toggle:hover {
    color: #764ba2;
    text-decoration: underline;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 12px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:hover::before {
    width: 200px;
    height: 200px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    flex-direction: row;
    justify-content: center;
    gap: 8px;
}

.action-btn.primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.action-btn.primary:active {
    transform: scale(0.96);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.action-btn.secondary:active {
    transform: scale(0.94);
}

.btn-icon {
    font-size: 20px;
}

.action-btn.primary .btn-icon {
    font-size: 18px;
}

.btn-text {
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.action-btn.primary .btn-text {
    font-size: 15px;
}

/* 选集区域 */
.episode-section {
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.total-episodes {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.episode-btn {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.episode-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    transform: scale(1.08);
}

.episode-btn:active {
    transform: scale(0.92);
}

.episode-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 推荐区域 */
.recommend-section {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.more-btn {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s;
}

.more-btn:hover {
    color: #667eea;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.recommend-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    animation: recommendCardPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.recommend-card:nth-child(1) { animation-delay: 0.05s; }
.recommend-card:nth-child(2) { animation-delay: 0.1s; }
.recommend-card:nth-child(3) { animation-delay: 0.15s; }
.recommend-card:nth-child(4) { animation-delay: 0.2s; }
.recommend-card:nth-child(5) { animation-delay: 0.25s; }
.recommend-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes recommendCardPopIn {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(30px);
    }
    50% {
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.recommend-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.recommend-card:active {
    transform: scale(0.94);
    transition: all 0.1s ease;
}

.recommend-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.recommend-card-info {
    padding: 10px;
}

.recommend-card-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.recommend-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式调整 */
@media (max-width: 375px) {
    .video-grid {
        gap: 8px;
        padding: 0 8px 20px;
    }
    
    .quick-buttons {
        gap: 10px;
        padding: 15px;
    }
    
    .episode-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .action-buttons {
        gap: 8px;
    }
    
    .play-poster {
        width: 100px;
        height: 145px;
    }
    
    .play-title {
        font-size: 19px;
    }
}

@media (max-width: 320px) {
    .episode-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .recommend-grid {
        gap: 8px;
    }
}
