* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #1a1a1a;
    overflow: hidden;
    touch-action: pan-y;
    font-family: system-ui, -apple-system, sans-serif;
}
.video-swiper {
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.video-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.video-item.active {
    opacity: 1;
    z-index: 1;
}
.video-container {
    position: relative;
    width: 90vw;
    max-width: 1280px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}
.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    cursor: pointer;
    pointer-events: auto;
}
.big-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
    z-index: 2;
}
.video-container:hover .big-play-btn,
.video-player.paused + .video-overlay .big-play-btn {
    opacity: 1;
}
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 15px 20px;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.progress-fill {
    height: 100%;
    background: #e63946;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}
.progress-handle {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}
.progress-bar:hover .progress-handle {
    opacity: 1;
}
.control-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 1;
}
.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
}
.control-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s ease;
    z-index: 1;
    position: relative;
}
.control-btn:hover {
    background: rgba(255,255,255,0.2);
}
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
}
.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    opacity: 1;
    z-index: 1;
}
.volume-fill {
    height: 100%;
    background: #e63946;
    border-radius: 2px;
    width: 100%;
}
.speed-select {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 1;
}
.speed-select option {
    background: #333;
    color: #fff;
}
.time-display {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    z-index: 1;
}
.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: block;
}
.video-placeholder {
    width: 100%;
    height: 100%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    flex-direction: column;
}
.video-info {
    width: 90vw;
    max-width: 1280px;
    color: #fff;
    z-index: 2;
    padding: 0 20px;
}
.author-nick {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.video-desc {
    font-size: 1rem;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.action-bar {
    position: absolute;
    right: calc((100vw - 90vw) / 2 + 20px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 2;
}
.author-avatar-wrap {
    position: relative;
}
.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.follow-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e63946;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid #fff;
}
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    transition: transform 0.2s ease;
}
.action-btn:hover {
    transform: scale(1.1);
}
.action-icon {
    font-size: 2rem;
}
.action-count {
    font-size: 1rem;
    font-weight: 500;
}
.like-active {
    color: #e63946;
}
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2rem;
    z-index: 99;
}
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 999;
    display: none;
}
.toast.show {
    display: block;
    animation: toast 2s ease forwards;
}
.comment-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 20px;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}
.comment-modal.show {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
}
.comment-input-wrap {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
    margin: 10px 0 0 0;
}
.comment-input {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    resize: none;
    margin-bottom: 10px;
}
.comment-submit {
    background: #e63946;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.comment-submit:hover {
    background: #d12f3c;
}
.comment-list {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.comment-item {
    display: flex;
    gap: 10px;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}
.comment-content-wrap {
    flex: 1;
}
.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.comment-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
}
.comment-time {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 8px;
}
.comment-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}
.comment-like {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    cursor: pointer;
}
.comment-reply {
    color: #666;
    cursor: pointer;
}
.reply-toggle {
    color: #e63946;
    font-size: 0.8rem;
    cursor: pointer;
    margin-bottom: 8px;
}
.reply-list {
    margin-left: 50px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    display: none;
}
.reply-list.show {
    display: flex;
}
.reply-item {
    display: flex;
    gap: 10px;
}
.comment-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}
.no-comment {
    text-align: center;
    padding: 20px;
    color: #666;
}
.reply-tag {
    color: #e63946;
    font-weight: 500;
}
.unlock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}
.unlock-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}
.unlock-message {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}
.unlock-btn {
    background: #e63946;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.unlock-btn:hover {
    background: #d12f3c;
}
@keyframes toast {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}
@media (max-width: 768px) {
    .video-container {
        width: 95vw;
        margin-bottom: 15px;
    }
    .action-bar {
        right: calc((100vw - 95vw) / 2 + 10px);
        gap: 1.5rem;
    }
    .author-avatar {
        width: 60px;
        height: 60px;
    }
    .follow-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    .action-icon {
        font-size: 1.5rem;
    }
    .action-count {
        font-size: 0.9rem;
    }
    .video-info {
        width: 95vw;
    }
    .author-nick {
        font-size: 1rem;
    }
    .video-desc {
        font-size: 0.9rem;
    }
    .comment-modal {
        max-height: 70vh;
        padding: 15px;
    }
    .reply-list {
        margin-left: 30px;
    }
    .big-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .volume-slider {
        width: 60px;
    }
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .speed-select {
        padding: 3px 8px;
        font-size: 0.8rem;
    }
    .unlock-title {
        font-size: 1.2rem;
    }
    .unlock-message {
        font-size: 0.9rem;
    }
    .unlock-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}