﻿:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: var(--bg-main); color: var(--text-primary); line-height: 1.5; padding-bottom: 60px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
header { background: #ffffff; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 40; box-shadow: var(--shadow-sm); }
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-icon { background: #eff6ff; color: var(--primary); width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.logo-title { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }
.user-nav { display: flex; align-items: center; gap: 12px; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; font-size: 0.75rem; font-weight: 600; border-radius: 9999px; }
.badge-admin { background: #fef3c7; color: #92400e; }
.badge-member { background: #e0e7ff; color: #3730a3; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: all 0.15s ease; text-decoration: none; }
.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: #ffffff; border: 1px solid var(--border-color); color: var(--text-primary); }
.btn-outline:hover { background: #f1f5f9; }
.btn-danger { background: var(--danger); color: #ffffff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-sm { padding: 6px 10px; font-size: 0.775rem; }
.storage-card { background: var(--card-bg); border-radius: var(--radius-md); border: 1px solid var(--border-color); padding: 18px 20px; margin: 20px 0; box-shadow: var(--shadow-sm); }
.storage-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.storage-title { font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); }
.storage-meta { font-size: 0.85rem; color: var(--text-primary); font-weight: 600; }
.progress-bar-container { background: #e2e8f0; height: 12px; border-radius: 9999px; overflow: hidden; position: relative; margin-bottom: 8px; }
.progress-bar { height: 100%; background: #10b981; border-radius: 9999px; transition: width 0.4s ease; }
.progress-bar.warning { background: #f59e0b; }
.progress-bar.danger { background: #ef4444; }
.storage-details { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-secondary); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--card-bg); padding: 14px 18px; border-radius: var(--radius-md); border: 1px solid var(--border-color); margin-bottom: 24px; }
.filter-inputs { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.input-control { padding: 8px 12px; font-size: 0.875rem; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: #ffffff; outline: none; }
.input-control:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.video-card { background: var(--card-bg); border-radius: var(--radius-md); border: 1px solid var(--border-color); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.thumbnail-wrapper { position: relative; width: 100%; padding-top: 56.25%; background: #1e293b; cursor: pointer; }
.thumbnail-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbnail-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 2.5rem; }
.play-overlay-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: rgba(0, 0, 0, 0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ffffff; font-size: 22px; }
.duration-pill { position: absolute; bottom: 8px; right: 8px; background: rgba(0, 0, 0, 0.75); color: #ffffff; font-size: 0.725rem; padding: 2px 6px; border-radius: 4px; }
.card-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; word-break: break-word; }
.card-meta { font-size: 0.8rem; color: var(--text-secondary); display: flex; gap: 12px; margin-bottom: 12px; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border-color); }
.modal-backdrop { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; padding: 16px; }
.modal-backdrop.active { opacity: 1; pointer-events: auto; }
.modal-box { background: #ffffff; border-radius: var(--radius-lg); width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: transparent; border: none; font-size: 1.25rem; cursor: pointer; color: var(--text-secondary); }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; background: #f8fafc; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 10px; }
.modal-delete-box { max-width: 560px; border-top: 6px solid var(--danger); }
.delete-alert-banner { background: #fee2e2; border: 1px solid #fecaca; color: #991b1b; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; display: flex; gap: 12px; align-items: center; }
.delete-alert-icon { font-size: 28px; }
.delete-video-preview-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); background: #f1f5f9; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.modal-player-box { max-width: 860px; background: #0f172a; color: #ffffff; }
.modal-player-box .modal-header { background: #0f172a; border-color: #334155; }
.modal-player-box .modal-title { color: #ffffff; }
.modal-player-box .modal-close { color: #94a3b8; }
.player-video { width: 100%; max-height: 70vh; background: #000000; display: block; }
.upload-status-box { background: #f8fafc; border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 14px; margin-top: 16px; }
.status-step { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.empty-state { text-align: center; padding: 60px 20px; background: var(--card-bg); border-radius: var(--radius-md); border: 1px dashed var(--border-color); grid-column: 1 / -1; }
.empty-icon { font-size: 48px; color: #cbd5e1; margin-bottom: 12px; }
