/* ============================================
   VideoHub - Complete Video Streaming Platform
   Dark Theme - YouTube-style
   ============================================ */

:root {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --surface-hover: #252525;
    --surface-light: #2a2a2a;
    --border: #2a2a2a;
    --border-light: #3a3a3a;
    --text: #f1f1f1;
    --text-secondary: #aaa;
    --text-muted: #717171;
    --accent: #ff0000;
    --accent-hover: #cc0000;
    --success: #2ea44f;
    --warning: #f0883e;
    --danger: #ff4444;
    --blue: #3ea6ff;
    --sidebar-width: 240px;
    --header-height: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    height: var(--header-height);
    display: flex; align-items: center; justify-content: space-between;
}

.logo-area { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
    width: 32px; height: 32px; background: var(--accent);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 14px; color: white;
}
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); }

.search-bar {
    flex: 1; max-width: 640px; margin: 0 24px;
    position: relative;
}
.search-bar input {
    width: 100%; height: 40px; background: var(--bg);
    border: 1px solid var(--border); border-radius: 20px 0 0 20px;
    padding: 0 16px; color: var(--text); font-size: 14px;
    outline: none; transition: border 0.2s;
}
.search-bar input:focus { border-color: #3ea6ff; }
.search-btn {
    position: absolute; right: -40px; top: 0;
    width: 64px; height: 40px; border-radius: 0 20px 20px 0;
    border: 1px solid var(--border); border-left: none;
    background: var(--surface-hover); color: var(--text);
    cursor: pointer; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
}
.search-btn:hover { background: var(--border-light); }

.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-link {
    color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500;
    padding: 8px 16px; border-radius: 18px; transition: background 0.2s;
}
.nav-link:hover, .nav-link.active { background: var(--surface-hover); }

.admin-btn {
    background: var(--accent); color: white; border: none;
    padding: 8px 16px; border-radius: 18px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background 0.2s; margin-left: 8px;
}
.admin-btn:hover { background: var(--accent-hover); }

.mobile-menu-btn {
    display: none; background: none; border: none;
    color: var(--text); font-size: 20px; cursor: pointer;
    padding: 8px; border-radius: 50%;
}
.mobile-menu-btn:hover { background: var(--surface-hover); }

/* ============================================
   MAIN LAYOUT
   ============================================ */
.main-layout {
    display: flex; margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

.sidebar {
    width: var(--sidebar-width); background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 12px 0; position: fixed;
    height: calc(100vh - var(--header-height));
    overflow-y: auto; z-index: 100;
}

.sidebar-section { padding: 8px 0; border-bottom: 1px solid var(--border); }
.sidebar-title {
    padding: 8px 24px; font-size: 12px; font-weight: 600;
    color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px;
}
.sidebar-item {
    display: flex; align-items: center; gap: 16px;
    padding: 10px 24px; cursor: pointer; transition: background 0.2s;
    font-size: 14px; color: var(--text); text-decoration: none;
}
.sidebar-item:hover, .sidebar-item.active { background: var(--surface-hover); }
.sidebar-item .icon { font-size: 18px; width: 24px; text-align: center; }

.content-area {
    margin-left: var(--sidebar-width); flex: 1; padding: 24px;
    max-width: calc(100% - var(--sidebar-width));
    min-height: calc(100vh - var(--header-height));
}

/* ============================================
   VIDEO GRID
   ============================================ */
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.section-title { font-size: 20px; font-weight: 600; }
.section-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
    padding: 6px 14px; border-radius: 8px; background: var(--surface);
    border: 1px solid var(--border); font-size: 13px; cursor: pointer;
    color: var(--text); transition: all 0.2s;
}
.pill:hover, .pill.active { background: var(--text); color: var(--bg); }

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.video-card {
    background: var(--surface); border-radius: 12px; overflow: hidden;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border); text-decoration: none; color: var(--text);
    display: block;
}
.video-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

.thumbnail-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.thumbnail-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.video-card:hover .thumbnail-wrap img { transform: scale(1.05); }

.duration-badge {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.8); color: white;
    padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 500;
}
.quality-badge {
    position: absolute; top: 8px; left: 8px;
    padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.card-info { padding: 12px; }
.card-title {
    font-size: 14px; font-weight: 500; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 6px;
}
.card-meta {
    font-size: 12px; color: var(--text-secondary);
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.card-meta span { display: flex; align-items: center; gap: 4px; }

/* ============================================
   VIDEO PLAYER PAGE
   ============================================ */
.player-page { max-width: 1200px; margin: 0 auto; }

.player-container {
    background: #000; border-radius: 12px; overflow: hidden;
    position: relative; aspect-ratio: 16/9;
}
.player-video { width: 100%; height: 100%; object-fit: contain; }
.player-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.player-container:hover .player-overlay { opacity: 1; }
.play-big {
    width: 68px; height: 68px; border-radius: 50%;
    background: rgba(0,0,0,0.7); border: 2px solid rgba(255,255,255,0.3);
    color: white; font-size: 24px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    pointer-events: auto; transition: transform 0.2s, background 0.2s;
}
.play-big:hover { transform: scale(1.1); background: rgba(0,0,0,0.9); }

.player-controls {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 16px 12px; display: flex; align-items: center; gap: 12px;
    opacity: 0; transition: opacity 0.3s;
}
.player-container:hover .player-controls { opacity: 1; }
.player-container.paused .player-controls { opacity: 1; }

.ctrl-btn {
    background: none; border: none; color: white; font-size: 18px;
    cursor: pointer; width: 32px; height: 32px; display: flex;
    align-items: center; justify-content: center; border-radius: 50%;
    transition: background 0.2s; flex-shrink: 0;
}
.ctrl-btn:hover { background: rgba(255,255,255,0.2); }

.progress-bar {
    flex: 1; height: 4px; background: rgba(255,255,255,0.3);
    border-radius: 2px; cursor: pointer; position: relative;
}
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; width: 0%; transition: width 0.1s; }
.progress-bar:hover { height: 6px; }
.time-display { font-size: 12px; color: rgba(255,255,255,0.8); min-width: 90px; white-space: nowrap; }

.quality-select, .speed-select {
    background: rgba(0,0,0,0.6); color: white; border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px; padding: 2px 8px; font-size: 12px; cursor: pointer;
}

.video-details { padding: 16px 0; }
.video-title-large { font-size: 20px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.video-stats-row {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 12px; border-bottom: 1px solid var(--border);
    flex-wrap: wrap; gap: 12px;
}
.stats-left { color: var(--text-secondary); font-size: 14px; }
.action-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.action-btn {
    display: flex; align-items: center; gap: 6px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); padding: 8px 16px; border-radius: 20px;
    font-size: 14px; cursor: pointer; transition: background 0.2s;
}
.action-btn:hover { background: var(--surface-hover); }
.action-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

.desc-box {
    background: var(--surface); border-radius: 12px; padding: 16px;
    margin-top: 12px; border: 1px solid var(--border);
}
.desc-text { font-size: 14px; line-height: 1.6; color: var(--text); }

/* Comments */
.comments-section { margin-top: 24px; }
.comments-header { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.comment-input-wrap { display: flex; gap: 12px; margin-bottom: 20px; }
.avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px; flex-shrink: 0; color: white;
}
.comment-input {
    flex: 1; background: transparent; border: none;
    border-bottom: 1px solid var(--border); color: var(--text);
    padding: 8px 0; font-size: 14px; outline: none; width: 100%;
}
.comment-input:focus { border-bottom-color: var(--accent); }
.comment-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

.comment-item { display: flex; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.comment-body { flex: 1; }
.comment-author { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.comment-time { color: var(--text-secondary); font-weight: 400; margin-left: 6px; font-size: 12px; }
.comment-text { font-size: 14px; line-height: 1.5; color: var(--text); }
.comment-actions-row { display: flex; gap: 12px; margin-top: 6px; }
.comment-action { font-size: 12px; color: var(--text-secondary); cursor: pointer; background: none; border: none; }
.comment-action:hover { color: var(--text); }

/* Related Videos */
.related-section { margin-top: 32px; }
.related-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-panel { padding: 0; }
.admin-header {
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.admin-header h1 { font-size: 24px; font-weight: 600; }

.admin-tabs {
    display: flex; gap: 4px; background: var(--bg); padding: 4px;
    border-radius: 8px; margin-bottom: 24px; flex-wrap: wrap;
}
.admin-tab {
    padding: 10px 16px; border-radius: 6px; border: none;
    background: transparent; color: var(--text-secondary); font-size: 13px;
    font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.admin-tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.admin-tab:hover:not(.active) { color: var(--text); }

.admin-view { display: none; }
.admin-view.active { display: block; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px;
}
.stat-label { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.stat-change { font-size: 12px; color: var(--success); }
.stat-change.down { color: var(--danger); }

/* Charts */
.chart-area {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px; margin-bottom: 24px;
}
.chart-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 180px; padding-bottom: 24px; border-bottom: 1px solid var(--border); position: relative; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bar { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; transition: height 0.5s ease; min-height: 4px; }
.bar-label { font-size: 11px; color: var(--text-secondary); }

/* Data Tables */
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.data-table th, .data-table td { padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--bg); font-weight: 600; color: var(--text-secondary); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table tr:hover { background: var(--surface-hover); }
.data-table tr:last-child td { border-bottom: none; }
.table-thumb { width: 80px; height: 45px; border-radius: 6px; object-fit: cover; }
.table-actions { display: flex; gap: 8px; }
.table-btn {
    padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border);
    background: var(--bg); color: var(--text); font-size: 12px; cursor: pointer;
    transition: all 0.2s;
}
.table-btn:hover { background: var(--surface-hover); }
.table-btn.danger { border-color: var(--danger); color: var(--danger); }
.table-btn.danger:hover { background: var(--danger); color: white; }
.table-btn.primary { border-color: var(--accent); color: var(--accent); }
.table-btn.primary:hover { background: var(--accent); color: white; }

.badge-preview { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; }

/* Settings Cards */
.settings-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px; margin-bottom: 16px;
}
.settings-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border); border-radius: 12px;
    padding: 40px; text-align: center; cursor: pointer;
    transition: all 0.2s; background: var(--bg);
}
.upload-zone:hover { border-color: var(--accent); background: rgba(255,0,0,0.05); }
.upload-zone .icon { font-size: 48px; margin-bottom: 12px; color: var(--text-secondary); }
.upload-zone p { color: var(--text-secondary); font-size: 14px; }
.upload-zone p strong { color: var(--text); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.form-input, .form-select, .form-textarea {
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 14px; color: var(--text); font-size: 14px; outline: none;
    transition: border 0.2s; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue); }
.form-textarea { min-height: 100px; resize: vertical; }

.color-picker-wrap { display: flex; align-items: center; gap: 12px; }
.color-picker { width: 44px; height: 44px; border: none; border-radius: 8px; cursor: pointer; background: none; padding: 0; }
.color-value { font-size: 14px; font-family: monospace; color: var(--text-secondary); }

.toggle-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.toggle-switch {
    width: 44px; height: 24px; background: var(--border); border-radius: 12px;
    position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0;
}
.toggle-switch.on { background: var(--accent); }
.toggle-switch::after {
    content: ''; position: absolute; width: 20px; height: 20px;
    background: white; border-radius: 50%; top: 2px; left: 2px;
    transition: transform 0.2s;
}
.toggle-switch.on::after { transform: translateX(20px); }
.toggle-label { font-size: 14px; }

/* Buttons */
.btn-text {
    background: none; border: none; color: var(--text); font-size: 14px;
    padding: 8px 16px; cursor: pointer; border-radius: 18px; transition: background 0.2s;
}
.btn-text:hover { background: var(--surface-hover); }
.btn-primary {
    background: var(--accent); color: white; border: none;
    padding: 8px 16px; border-radius: 18px; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-success {
    background: var(--success); color: white; border: none;
    padding: 8px 16px; border-radius: 18px; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: opacity 0.2s;
}
.btn-success:hover { opacity: 0.9; }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--surface); border-radius: 16px; border: 1px solid var(--border);
    width: 100%; max-width: 800px; max-height: 90vh; overflow-y: auto;
}
.modal-header {
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h2 { font-size: 18px; font-weight: 600; }
.modal-close {
    background: none; border: none; color: var(--text-secondary);
    font-size: 24px; cursor: pointer; width: 32px; height: 32px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--surface-hover); color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }

/* Search Suggestions */
.suggestions {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 0 0 12px 12px; margin-top: 4px; overflow: hidden;
    display: none; z-index: 100;
}
.suggestions.active { display: block; }
.suggestion-item {
    padding: 10px 16px; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    transition: background 0.2s;
}
.suggestion-item:hover { background: var(--surface-hover); }

/* Toast */
.toast {
    position: fixed; bottom: 24px; right: 24px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 14px 20px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transform: translateY(100px); opacity: 0; transition: all 0.3s;
    z-index: 3000;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 18px; }
.toast-text { font-size: 14px; font-weight: 500; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 40px 24px; margin-top: 40px;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    max-width: 1200px; margin: 0 auto;
}
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a {
    display: block; color: var(--text-secondary); text-decoration: none;
    font-size: 13px; margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.social-icons { display: flex; gap: 12px; margin-top: 12px; }
.social-icon {
    width: 36px; height: 36px; border-radius: 50%; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); text-decoration: none; font-size: 16px;
    transition: all 0.2s;
}
.social-icon:hover { background: var(--accent); color: white; }
.footer-bottom {
    text-align: center; margin-top: 32px; padding-top: 24px;
    border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 13px;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--bg);
}
.login-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 40px; width: 100%; max-width: 400px;
}
.login-box h1 { text-align: center; margin-bottom: 24px; font-size: 24px; }
.login-box .logo-area { justify-content: center; margin-bottom: 24px; }
.login-box .form-group { margin-bottom: 16px; }
.login-box .btn-primary { width: 100%; padding: 12px; border-radius: 8px; font-size: 16px; }
.login-error { color: var(--danger); font-size: 13px; margin-top: 8px; text-align: center; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.empty-state .icon { font-size: 64px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.page-btn {
    padding: 8px 14px; border-radius: 8px; background: var(--surface);
    border: 1px solid var(--border); color: var(--text); cursor: pointer;
    font-size: 14px; transition: all 0.2s;
}
.page-btn:hover, .page-btn.active { background: var(--accent); border-color: var(--accent); color: white; }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .content-area { margin-left: 0; max-width: 100%; padding: 16px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .nav-menu { display: none; }
    .mobile-menu-btn { display: block; }
    .search-bar { margin: 0 12px; }
    .admin-tabs { overflow-x: auto; flex-wrap: nowrap; }
    .video-stats-row { flex-direction: column; align-items: flex-start; }
    .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .action-btns { width: 100%; }
    .action-btn { flex: 1; justify-content: center; }
}
