/* ═══════════════════════════════════════════════════════════════ TGMedia — Cinematic Dark Theme Design: Deep navy + electric accent + glass cards ═══════════════════════════════════════════════════════════════ */ :root { --bg-deep: #09090f; --bg-surface: #0f0f1a; --bg-card: rgba(255,255,255,0.04); --bg-card-hover:rgba(255,255,255,0.07); --bg-glass: rgba(15,15,30,0.85); --accent: #6c63ff; --accent-light: #8b85ff; --accent-dim: rgba(108,99,255,0.18); --accent-glow: rgba(108,99,255,0.35); --text-primary: #f0f0ff; --text-secondary: #9090b8; --text-muted: #5a5a7a; --border: rgba(255,255,255,0.08); --border-hover: rgba(108,99,255,0.4); --green: #4ade80; --yellow: #facc15; --red: #f87171; --blue: #60a5fa; --radius-sm: 8px; --radius: 12px; --radius-lg: 18px; --radius-xl: 24px; --shadow-card: 0 4px 24px rgba(0,0,0,0.4); --shadow-glow: 0 0 40px rgba(108,99,255,0.2); --font: 'Inter', system-ui, -apple-system, sans-serif; --font-mono: 'JetBrains Mono', 'Fira Code', monospace; --transition: 0.2s cubic-bezier(0.4,0,0.2,1); --sidebar-w: 240px; --header-h: 60px; } *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; } body { font-family: var(--font); background: var(--bg-deep); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; } /* ── Scrollbar ───────────────────────────────────────────────── */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(108,99,255,0.3); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: rgba(108,99,255,0.55); } /* ── Layout ──────────────────────────────────────────────────── */ #app { display: grid; grid-template-rows: var(--header-h) 1fr; grid-template-columns: var(--sidebar-w) 1fr; grid-template-areas: "header header" "sidebar main"; min-height: 100vh; } /* ── Header ──────────────────────────────────────────────────── */ #header { grid-area: header; display: flex; align-items: center; gap: 16px; padding: 0 24px; background: var(--bg-glass); border-bottom: 1px solid var(--border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 100; } .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; } .logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--accent), #a855f7); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; } .logo-text { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } /* Search Bar */ #search-bar { flex: 1; max-width: 580px; position: relative; } #search-input { width: 100%; padding: 9px 16px 9px 40px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 14px; font-family: var(--font); outline: none; transition: var(--transition); } #search-input:focus { border-color: var(--accent); background: rgba(108,99,255,0.08); box-shadow: 0 0 0 3px var(--accent-dim); } #search-input::placeholder { color: var(--text-muted); } .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; font-size: 15px; } .header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; } /* ── Sidebar ─────────────────────────────────────────────────── */ #sidebar { grid-area: sidebar; padding: 20px 12px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; overflow-y: auto; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); } .sidebar-section { margin-bottom: 8px; } .sidebar-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); padding: 0 12px; margin-bottom: 4px; } .nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); cursor: pointer; color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: var(--transition); border: none; background: transparent; width: 100%; text-align: left; text-decoration: none; } .nav-item:hover { background: var(--bg-card-hover); color: var(--text-primary); } .nav-item.active { background: var(--accent-dim); color: var(--accent-light); border: 1px solid rgba(108,99,255,0.25); } .nav-item .icon { font-size: 16px; width: 20px; text-align: center; } .nav-badge { margin-left: auto; background: var(--accent-dim); color: var(--accent-light); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 20px; } /* Filter Panel */ .filter-group { padding: 8px 0; border-top: 1px solid var(--border); } .filter-title { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px 6px; } .filter-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px; } .chip { font-size: 12px; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); cursor: pointer; transition: var(--transition); white-space: nowrap; } .chip:hover { border-color: var(--accent); color: var(--accent-light); } .chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent-light); } /* ── Main Content ────────────────────────────────────────────── */ #main { grid-area: main; padding: 24px; overflow-y: auto; min-height: 0; } /* Page views */ .page { display: none; } .page.active { display: block; } /* ── Media Grid ──────────────────────────────────────────────── */ .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; } .section-title { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; } .result-count { font-size: 13px; color: var(--text-muted); } .sort-select { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 13px; padding: 6px 10px; outline: none; cursor: pointer; } .sort-select:hover { border-color: var(--accent); } /* Grid */ .media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; } /* Card */ .media-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); position: relative; } .media-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-card), var(--shadow-glow); } .card-poster { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: var(--bg-surface); display: block; } .card-poster-placeholder { aspect-ratio: 16/9; width: 100%; background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%); display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--text-muted); } .card-body { padding: 10px 12px 12px; } .card-title { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; } .badge-type { background: rgba(96,165,250,0.15); color: var(--blue); } .badge-quality { background: rgba(74,222,128,0.15); color: var(--green); } .badge-year { background: rgba(255,255,255,0.06); color: var(--text-muted); } .badge-count { background: rgba(108,99,255,0.15); color: var(--accent-light); } /* Card overlay on hover */ .card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,9,15,0.95) 0%, transparent 50%); opacity: 0; transition: opacity var(--transition); display: flex; align-items: flex-end; padding: 12px; gap: 8px; } .media-card:hover .card-overlay { opacity: 1; } .btn-play, .btn-download-mini { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer; font-size: 14px; transition: var(--transition); } .btn-play { background: var(--accent); color: white; } .btn-play:hover { background: var(--accent-light); transform: scale(1.1); } .btn-download-mini { background: rgba(255,255,255,0.12); color: var(--text-primary); } .btn-download-mini:hover { background: rgba(255,255,255,0.22); } /* ── Media Detail Modal ──────────────────────────────────────── */ #modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; } #modal-overlay.open { display: flex; } #modal { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-xl); width: 100%; max-width: 800px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,0.6); animation: modal-in 0.25s cubic-bezier(0.34,1.56,0.64,1); } @keyframes modal-in { from { opacity: 0; transform: scale(0.92) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } } .modal-hero { position: relative; aspect-ratio: 16/7; background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%); overflow: hidden; } .modal-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; } .modal-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(9,9,15,0.9) 30%, transparent 100%); padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; } .modal-close { position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,0.5); border: 1px solid var(--border); color: var(--text-primary); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: var(--transition); } .modal-close:hover { background: var(--accent); } .modal-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); } .modal-subtitle { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; } .modal-body { padding: 24px; } .modal-description { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; } .modal-actions { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; } /* ── Video Player ────────────────────────────────────────────── */ #player-section { display: none; margin-bottom: 24px; } #player-section.visible { display: block; } #video-player { width: 100%; border-radius: var(--radius); background: #000; max-height: 380px; outline: none; } /* ── Files Table ─────────────────────────────────────────────── */ .files-table { width: 100%; border-collapse: collapse; font-size: 13px; } .files-table th { text-align: left; padding: 8px 12px; color: var(--text-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border); } .files-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-secondary); vertical-align: middle; } .files-table tr:hover td { background: var(--bg-card); } .files-table tr:last-child td { border-bottom: none; } /* ── Buttons ─────────────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: var(--radius-sm); border: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); text-decoration: none; white-space: nowrap; font-family: var(--font); } .btn-primary { background: var(--accent); color: white; } .btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); } .btn-ghost { background: rgba(255,255,255,0.07); color: var(--text-primary); border: 1px solid var(--border); } .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--border-hover); } .btn-sm { padding: 6px 12px; font-size: 12px; } .btn-icon { padding: 8px; width: 34px; height: 34px; justify-content: center; } /* ── Pagination ──────────────────────────────────────────────── */ .pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; padding-bottom: 8px; } .page-btn { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); padding: 0 8px; } .page-btn:hover { border-color: var(--accent); color: var(--accent-light); } .page-btn.active { background: var(--accent); border-color: var(--accent); color: white; } .page-btn:disabled { opacity: 0.3; cursor: default; } /* ── Stats Page ──────────────────────────────────────────────── */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; } .stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; } .stat-value { font-size: 32px; font-weight: 800; letter-spacing: -1px; background: linear-gradient(135deg, var(--text-primary), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; } /* ── Toast Notifications ─────────────────────────────────────── */ #toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 8px; } .toast { background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; font-size: 13px; color: var(--text-primary); box-shadow: var(--shadow-card); backdrop-filter: blur(20px); animation: toast-in 0.3s ease; display: flex; align-items: center; gap: 10px; min-width: 240px; } .toast.success { border-left: 3px solid var(--green); } .toast.error { border-left: 3px solid var(--red); } .toast.info { border-left: 3px solid var(--accent); } @keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } } /* ── Loading States ──────────────────────────────────────────── */ .spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .loading-center { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; gap: 16px; color: var(--text-muted); font-size: 14px; } .skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75% ); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); } @keyframes shimmer { to { background-position: -200% 0; } } .skeleton-card { aspect-ratio: unset; height: 220px; border-radius: var(--radius); } /* ── Empty State ─────────────────────────────────────────────── */ .empty-state { text-align: center; padding: 80px 20px; } .empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.4; } .empty-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; } .empty-desc { font-size: 14px; color: var(--text-muted); } /* ── Responsive ──────────────────────────────────────────────── */ @media (max-width: 768px) { :root { --sidebar-w: 0px; } #app { grid-template-columns: 1fr; grid-template-areas: "header" "main"; } #sidebar { display: none; } #main { padding: 16px; } .media-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; } .modal-title { font-size: 20px; } .modal-body { padding: 16px; } } /* ── Utility ─────────────────────────────────────────────────── */ .flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .mt-4 { margin-top: 16px; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .text-muted { color: var(--text-muted); } .text-sm { font-size: 13px; } .font-bold { font-weight: 700; } .w-full { width: 100%; }