/* 全局样式 */
:root {
    --bilibili-pink: #FB7299;
    --bilibili-blue: #23ADE5;
    --bilibili-dark: #18191C;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding-top: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: var(--bilibili-pink);
    color: white;
}

.navbar-dark {
    background-color: var(--bilibili-pink);
}

.btn-primary {
    background-color: var(--bilibili-pink);
    border-color: var(--bilibili-pink);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #e0678a;
    border-color: #e0678a;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

footer {
    margin-top: auto;
    background-color: #333;
}

main {
    flex: 1;
}

/* 卡片样式 */
.card {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

/* 视频播放器样式 */
#video-player {
    display: block;
    width: 100%;
    border-radius: 6px;
    background-color: #000;
    aspect-ratio: 16 / 9;
}

.player-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9宽高比 */
    background-color: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* 标签样式 */
.video-tag {
    display: inline-block;
    margin: 0.2rem;
    padding: 0.35rem 0.65rem;
    background-color: rgba(251, 114, 153, 0.1);
    color: var(--bilibili-pink);
    border-radius: 4px;
    font-size: 0.85rem;
}

/* 视频卡片样式 */
.video-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-3px);
}

.video-thumbnail {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.video-title {
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8rem;
}

.video-info {
    display: flex;
    font-size: 0.8rem;
    color: #777;
    margin-top: 4px;
}

.video-info > div {
    margin-right: 12px;
}

.video-info i {
    margin-right: 4px;
}

/* 用户信息样式 */
.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bilibili-pink);
}

.user-level {
    display: inline-block;
    background-color: var(--bilibili-pink);
    color: white;
    font-size: 0.75rem;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* 评论样式 */
.comment {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: 2px solid #e3e3e3;
}

.comment-user-details {
    display: flex;
    flex-direction: column;
}

.comment-username {
    font-weight: 500;
    color: #00a1d6;
    font-size: 14px;
}

.comment-level {
    font-size: 0.7rem;
    padding: 0 4px;
    background-color: var(--bilibili-pink);
    color: white;
    border-radius: 3px;
    display: inline-block;
    margin-left: 5px;
    line-height: 1.4;
}

.comment-content {
    margin-bottom: 10px;
    line-height: 1.5;
    word-break: break-word;
}

.comment-metadata {
    display: flex;
    font-size: 12px;
    color: #888;
}

.comment-time {
    margin-right: 15px;
}

.comment-likes {
    display: flex;
    align-items: center;
}

.load-more-comments {
    background-color: #00a1d6;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.load-more-comments:hover {
    background-color: #0086b3;
}

.load-more-comments:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 搜索结果样式 */
.search-result-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-thumbnail {
    width: 160px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 16px;
    flex-shrink: 0;
}

.search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-metadata {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    flex-wrap: wrap;
}

.search-result-metadata > div {
    margin-right: 12px;
    margin-bottom: 4px;
}

/* 番剧样式 */
.bangumi-cover {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.bangumi-episode {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bangumi-episode:hover {
    background-color: #f5f5f5;
}

.bangumi-episode-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.bangumi-episode-info {
    font-size: 0.8rem;
    color: #777;
}

/* 加载动画 */
.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.loading-animation::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top-color: var(--bilibili-pink);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
    }
    
    .search-result-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* 光标样式 */
.cursor-pointer {
    cursor: pointer;
}

/* 视频播放器相关样式 */
#video-player-container {
    margin-bottom: 20px;
}

.ratio-16x9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 宽高比 */
    overflow: hidden;
}

.ratio-16x9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.direct-download-box {
    padding: 15px;
    margin-top: 15px;
    border-radius: 6px;
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.direct-download-box h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #dc3545;
}

.direct-download-box .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.direct-download-box .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* 复制按钮样式 */
.copy-link-btn {
    transition: all 0.2s;
}

.copy-link-btn:hover {
    background-color: #e9ecef;
}

.copy-link-btn:active {
    transform: scale(0.95);
} 