/* 影视资源管理系统 - 全局样式 */

/* ===== 全局 ===== */
body {
    font-size: 14px;
    background: #f4f6fa !important;
}

.navbar-brand i { font-size: 1.2rem; }

/* ===== 影片卡片 ===== */
.film-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid #e2e8f0;
}
.film-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.15) !important;
    border-color: #93c5fd;
}
.film-card .card-footer {
    border-top: 1px solid #f1f5f9;
    font-size: 0.78rem;
}
.film-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.url-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    word-break: break-all;
}

/* ===== 表格 ===== */
.table th {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 5;
}
.table td {
    font-size: 0.85rem;
    vertical-align: middle;
}
.table-hover tbody tr:hover td {
    background: #eff6ff !important;
}
.form-check-input {
    cursor: pointer;
}

/* ===== 弹窗 ===== */
.modal-header.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}
.modal-header.bg-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}
.modal-body .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
}
.content-area {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.9rem;
    line-height: 1.7;
    max-height: 400px;
    overflow-y: auto;
}

/* ===== 分页 ===== */
.pagination .page-link {
    font-size: 0.82rem;
    padding: 0.3rem 0.6rem;
}

/* ===== 按钮组 ===== */
.btn-group-sm .btn {
    padding: 0.2rem 0.5rem;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.8rem;
    }
    .film-card .card-body {
        padding: 0.75rem;
    }
    main.container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .stats-bar { display: none !important; }
}

/* ===== 加载动画 ===== */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ===== Alert ===== */
.alert-dismissible .btn-close-sm {
    padding: 0.5rem;
}

/* ===== 工具栏 ===== */
.card.shadow-sm .card-body .btn-sm {
    white-space: nowrap;
}
.vr {
    width: 1px;
    height: 24px;
    background: #d1d5db;
    margin: 0 4px;
}
