/* variables.css loaded separately via HTML */
/* ===== Reset & Basics ===== */
.container { max-width: 1600px; margin: 0 auto; padding: 0 2.5rem; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
/* ===== Utility Classes ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; font-weight: 600; }
.text-xl { font-size: 1.5rem; font-weight: 700; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-8 { padding: var(--space-8); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.pr-4 { padding-right: var(--space-4); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-6 { margin-bottom: var(--space-6); }
.ml-2 { margin-left: var(--space-2); }
.gap-1 { gap: var(--space-1); }
.gap-3 { gap: var(--space-3); }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.items-start { align-items: flex-start; }
.block { display: block; }
.hidden { display: none !important; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.top-4 { top: var(--space-4); }
.left-4 { left: var(--space-4); }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.h-full { height: 100%; }
.rounded-lg { border-radius: var(--radius-md); }
.opacity-0 { opacity: 0; }
.cursor-pointer { cursor: pointer; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-2xl { font-size: 1.875rem; font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-normal { font-weight: 400; }
.text-white { color: #fff; }
.text-secondary { color: var(--text-secondary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-blue-400 { color: var(--accent); }
.text-cyan-400 { color: var(--sky); }
.text-pink-400 { color: var(--red); }
.text-purple-400 { color: var(--purple); }
.text-orange-400 { color: var(--amber); }
.text-yellow-400 { color: var(--amber); }
.text-emerald-400 { color: var(--green); }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.transition-opacity { transition: opacity 0.2s ease; }
.transition-all { transition: all 0.2s ease; }
.hover\:text-white:hover { color: var(--text); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:text-\[var\(--primary\)\]:hover { color: var(--primary); }
.hover\:border-\[var\(--primary\)\]:hover { border-color: var(--primary); }
.border-\[var\(--glass-border\)\] { border: 1px solid var(--border); }
.hover\:bg-blue-400\/10:hover { background: rgba(79, 124, 255, 0.10); }
.hover\:bg-cyan-400\/10:hover { background: rgba(14, 165, 233, 0.10); }
.hover\:bg-pink-400\/10:hover { background: rgba(244, 63, 94, 0.10); }
.hover\:bg-purple-400\/10:hover { background: rgba(139, 92, 246, 0.10); }
.hover\:bg-orange-400\/10:hover { background: rgba(245, 158, 11, 0.10); }
.hover\:bg-emerald-400\/10:hover { background: rgba(16, 185, 129, 0.10); }
.hover\:bg-yellow-400\/10:hover { background: rgba(245, 158, 11, 0.10); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .animate-spin { animation: none; } }
/* ===== Components ===== */
/* CARD — clean surface, subtle border + shadow */
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--r);
padding: 1.25rem 1.4rem;
box-shadow: var(--shadow);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
position: relative;
}
.card:hover { border-color: var(--border-strong); }
/* BUTTON */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.45rem;
padding: 0.55rem 1rem;
border-radius: var(--r-sm);
font-weight: 600;
font-size: 0.875rem;
transition: all 0.18s ease;
cursor: pointer;
border: 1px solid transparent;
line-height: 1.2;
}
.btn-primary {
background: var(--primary-gradient);
color: #fff;
box-shadow: 0 2px 8px rgba(79, 99, 235, 0.25);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 4px 14px rgba(79, 99, 235, 0.35); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-secondary {
background: var(--surface);
color: var(--text);
border: 1px solid var(--border-strong);
box-shadow: var(--shadow);
}
.btn-secondary:hover { background: var(--surface-2); }
.btn-outline { background: transparent; color: var(--text-2); border: 1px solid var(--border-strong); }
.btn-outline:hover { color: var(--text); border-color: var(--primary); }
/* ===== Sidebar ===== */
:root { --sidebar-width: 244px; --sidebar-collapsed-width: 76px; --header-height: 64px; }
.sidebar {
width: var(--sidebar-width);
height: 100vh;
position: fixed;
left: 0;
top: 0;
display: flex;
flex-direction: column;
background: var(--side-bg);
border-right: 1px solid var(--border);
z-index: 50;
transition: width 0.3s ease;
overflow-x: hidden;
}
.nav-section {
font-size: 10.5px;
text-transform: uppercase;
letter-spacing: .08em;
color: var(--text-3);
font-weight: 600;
padding: 14px 1.25rem 6px;
}
.user-profile-container {
padding: 0.85rem 1rem;
margin-top: auto;
border-top: 1px solid var(--border);
}
.user-profile-content { display: flex; align-items: center; gap: 0.7rem; overflow: hidden; }
.sidebar-toggle-btn {
display: flex; align-items: center; justify-content: center;
width: 28px; height: 28px;
border-radius: 6px;
color: var(--text-3);
cursor: pointer;
transition: all 0.2s;
border: 1px solid transparent;
background: transparent;
}
.sidebar-toggle-btn:hover { color: var(--text); background: var(--hover); }
/* Theme toggle */
.theme-toggle {
display: flex; align-items: center; gap: 0.5rem;
width: 100%;
padding: 0.55rem 0.75rem;
margin-bottom: 0.5rem;
border-radius: var(--r-sm);
background: transparent;
border: 1px solid var(--border);
color: var(--text-2);
font-size: 0.8rem; font-weight: 500;
cursor: pointer; transition: all 0.18s ease;
}
.theme-toggle:hover { background: var(--hover); color: var(--text); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: inline-flex; }
:root[data-theme="dark"] .theme-toggle .sun { display: inline-flex; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
/* Collapsed state */
.sidebar.collapsed { width: var(--sidebar-collapsed-width); }
.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-section,
.sidebar.collapsed .user-info,
.sidebar.collapsed .theme-toggle span { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 0.7rem 0; }
.sidebar.collapsed .nav-icon { margin-right: 0; }
.sidebar.collapsed .sidebar-toggle-btn { transform: rotate(180deg); }
.sidebar.collapsed .theme-toggle { justify-content: center; }
/* NAV ITEM */
.nav-item {
display: flex;
align-items: center;
padding: 0.6rem 0.75rem;
margin: 1px 0;
border-radius: var(--r-sm);
transition: all 0.15s ease;
color: var(--text-2);
font-weight: 500;
font-size: 0.875rem;
white-space: nowrap;
overflow: hidden;
position: relative;
}
.nav-item:hover { color: var(--text); background: var(--surface-2); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item.active::before {
content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.nav-icon { margin-right: 0.7rem; color: currentColor; min-width: 18px; width: 18px; height: 18px; }
/* Main content offset */
#mainContent { transition: margin-left 0.3s ease; margin-left: var(--sidebar-width); }
body.sidebar-collapsed #mainContent { margin-left: var(--sidebar-collapsed-width); }
/* ===== Page header (shared) ===== */
.page-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.4px; }
.page-header .sub { color: var(--text-3); font-size: 0.85rem; margin-top: 0.3rem; }
.page-header .actions { display: flex; gap: 0.6rem; align-items: center; }
/* ===== Responsive ===== */
@media (max-width: 1024px) {
.sidebar { width: var(--sidebar-collapsed-width); }
.sidebar .brand-text, .sidebar .nav-text, .sidebar .nav-section,
.sidebar .user-info, .sidebar .theme-toggle span { display: none; }
.sidebar .nav-item { justify-content: center; padding: 0.7rem 0; }
.sidebar .nav-icon { margin-right: 0; }
#mainContent { margin-left: var(--sidebar-collapsed-width); }
}
@media (max-width: 768px) {
.mobile-col { flex-direction: column !important; }
.mobile-w-full { width: 100% !important; }
.mobile-items-start { align-items: flex-start !important; }
.mobile-gap-4 { gap: 1rem !important; }
.mobile-border-0 { border: none !important; }
.container { padding: 0 1rem; }
:root { --sidebar-collapsed-width: 0px; }
.sidebar { transform: translateX(-100%); }
.sidebar:not(.collapsed) { transform: translateX(0); width: 100%; background: var(--surface); }
body.sidebar-collapsed #mainContent { margin-left: 0; }
#mainContent { margin-left: 0 !important; }
.video-header-image { width: 100% !important; height: auto !important; aspect-ratio: 16/9; margin-bottom: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; width: 100%; }
.tabs-container { overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 1rem; -webkit-overflow-scrolling: touch; }
.tab-btn { white-space: nowrap; }
.mobile-menu-btn {
display: flex !important; align-items: center; justify-content: center;
width: 40px; height: 40px; margin-bottom: 1rem;
background: var(--surface); color: var(--text);
border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer;
}
}
.mobile-menu-btn { display: none; }
/* Mobile responsive tables (card view) */
@media (max-width: 768px) {
table, thead, tbody, th, td, tr { display: block; }
thead tr { position: absolute; top: -9999px; left: -9999px; }
tr { margin-bottom: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; }
td { border: none; position: relative; padding-left: 50% !important; padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; min-height: 2rem; display: flex; align-items: center; text-align: right; justify-content: flex-end; }
td::before { content: attr(data-label); position: absolute; left: 1rem; width: 45%; padding-right: 10px; white-space: nowrap; text-align: left; font-weight: bold; color: var(--text-muted); }
td[data-label="Video"] { padding-left: 0 !important; display: block; text-align: left; }
td[data-label="Video"]::before { display: none; }
td[data-label="Rank"] { display: inline-block; padding: 0 !important; margin-bottom: 0.5rem; width: auto; }
td[data-label="Rank"]::before { display: none; }
td[data-label="Rank"] span { font-size: 0.875rem !important; background: var(--accent-soft); padding: 2px 8px; border-radius: 4px; color: var(--text-muted); border: 1px solid var(--border); }
}
/* ===== Shared components ===== */
/* Progress bar */
.bar-track { flex: 1; height: 8px; background: var(--inset); border-radius: var(--radius-full); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--radius-full); transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) { .bar-fill { transition: none; } }
/* Toolbar + filter chips */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.toolbar .sep { width: 1px; align-self: stretch; background: var(--border); margin: 2px 0.35rem; }
.toolbar .spacer { margin-left: auto; }
.toolbar select {
padding: 0.45rem 0.6rem;
font-size: 0.82rem;
border-radius: var(--r-sm);
}
.field { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text-3); }
.chip {
display: inline-flex; align-items: center; gap: 6px;
padding: 0.45rem 0.8rem;
border-radius: var(--radius-full);
border: 1px solid var(--border-strong);
background: var(--surface);
color: var(--text-2);
font-size: 0.82rem; font-weight: 500;
cursor: pointer; user-select: none;
transition: all 0.15s ease;
}
.chip:hover { background: var(--surface-2); color: var(--text); }
.chip input { display: none; }
.chip:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip svg { width: 14px; height: 14px; }
/* Badge */
.badge {
display: inline-flex; align-items: center; gap: 4px;
font-size: 0.7rem; font-weight: 700;
padding: 2px 8px; border-radius: 6px;
border: 1px solid transparent; line-height: 1.4;
}
.badge-muted { background: var(--surface-2); color: var(--text-secondary); }
.badge-primary { background: var(--accent-soft); color: var(--accent); }
.badge-success { background: rgba(var(--success-rgb), 0.14); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.14); color: var(--warning); }
.badge-danger { background: rgba(var(--danger-rgb), 0.14); color: var(--danger); }
/* Skeleton shimmer */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--radius-md); }
.skeleton::after {
content: ""; position: absolute; inset: 0; transform: translateX(-100%);
background: linear-gradient(90deg, transparent, var(--hover-strong), transparent);
animation: skeleton-shimmer 1.4s infinite;
}
@keyframes skeleton-shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }
/* Form controls */
select, input[type="text"], input[type="search"], input[type="number"], input[type="date"], input[type="datetime-local"], textarea {
background: var(--surface);
color: var(--text);
border: 1px solid var(--border-strong);
border-radius: var(--r-sm);
padding: 0.5rem 0.7rem;
font-family: inherit;
font-size: 0.875rem;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
select:focus, input[type="text"]:focus, input[type="search"]:focus, input[type="number"]:focus, input[type="date"]:focus, input[type="datetime-local"]:focus, textarea:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
select option { background: var(--surface); color: var(--text); }
/* Table */
table { width: 100%; border-collapse: collapse; }
thead th {
text-align: left; font-size: 0.75rem; font-weight: 600;
text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted);
padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border);
}
tbody td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); }
tbody tr { transition: background 0.15s ease; }
tbody tr:hover { background: var(--hover); }