/* 视频站自定义样式 */

/* ===== 全局 ===== */
html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    margin-bottom: 0;
}

/* 滚动条样式（Webkit内核） */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #555; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #888; }

/* ===== 视频卡片 ===== */
.video-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3) !important;
}

/* ===== 导航栏 ===== */
.navbar-nav .nav-link {
    padding: 0.4rem 0.75rem;
    transition: color 0.2s;
}
.navbar-nav .nav-link:hover {
    color: #dc3545 !important;
}

/* ===== 搜索框 ===== */
.navbar .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* ===== 分页 ===== */
.pagination .page-link {
    transition: all 0.2s;
}
.pagination .page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* ===== 按钮焦点 ===== */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(220, 53, 69, 0.3);
}

/* ===== 演员卡片 ===== */
.actor-card {
    transition: all 0.2s;
}
.actor-card:hover {
    border-color: #dc3545 !important;
    transform: translateY(-2px);
}

/* ===== 相关视频 ===== */
.related-video-item img {
    transition: opacity 0.2s;
}
.related-video-item:hover img {
    opacity: 0.85;
}

/* ===== 加载动画 ===== */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #dc3545;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 广告位占位 ===== */
.ad-banner, .ad-sidebar {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 面包屑 ===== */
.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: #dc3545;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

/* ===== 响应式调整 ===== */
@media (max-width: 576px) {
    .container-fluid { padding-left: 8px; padding-right: 8px; }
    .row.g-2 { --bs-gutter-x: 6px; --bs-gutter-y: 6px; }
}
