* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root { --primary-accent: #6c8dff; --spring-easing: cubic-bezier(0.34, 1.2, 0.64, 1); --card-radius: 32px; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; min-height: 100vh; background: radial-gradient(circle at 30% 10%, #eef2fa, #cdd8ec); transition: background 0.5s ease; overflow-x: hidden; }
body.dark, body.dark * { color: #ffffff !important; }
body.dark i, body.dark .fab, body.dark .fas, body.dark .far { color: #f0f3ff !important; }
body.dark { background: radial-gradient(circle at 30% 10%, #0b1120, #020409) !important; }
body.dark .glass-nav, body.dark .page-tabs, body.dark .glass-card { background: rgba(18, 24, 38, 0.75) !important; backdrop-filter: blur(20px) !important; border-color: rgba(255, 255, 255, 0.15) !important; }
body.dark .skill-badge, body.dark .game-bubble, body.dark .contact-btn, body.dark .repo-tile, body.dark .tab-btn:not(.active), body.dark .filter-chip, body.dark .video-card, body.dark .bili-stat-card, body.dark .level-progress-bg, body.dark .video-modal-content, body.dark .bili-search-box input { background: rgba(255, 255, 255, 0.12) !important; border-color: transparent !important; }
body.dark .tab-btn.active { background: var(--primary-accent) !important; color: white !important; }
body.dark .repo-tile:hover, body.dark .skill-badge:hover, body.dark .game-bubble:hover, body.dark .contact-btn:hover, body.dark .video-card:hover { background: var(--primary-accent) !important; color: white !important; }
body.dark input, body.dark .search-box input, body.dark .bili-search-box input { background: rgba(255, 255, 255, 0.15) !important; border-color: rgba(255, 255, 255, 0.3) !important; color: white !important; }
body.dark input::placeholder, body.dark .bili-search-box input::placeholder { color: rgba(255, 255, 255, 0.6) !important; }
body.dark .timeline-item { border-bottom-color: rgba(255, 255, 255, 0.2) !important; }
body.dark .bili-stat-value { color: #6c8dff !important; }
body.dark .level-progress-fill { background: linear-gradient(90deg, #6c8dff, #a0b8ff) !important; }
body.dark .video-stat { color: rgba(255,255,255,0.7) !important; }
body.dark .video-modal-overlay { background: rgba(0, 0, 0, 0.85) !important; }
body.dark .video-tag { background: rgba(108, 141, 255, 0.25) !important; }
.app-wrapper { max-width: 1300px; margin: 0 auto; padding: 24px 20px 40px; }
.glass-nav { background: rgba(245, 248, 255, 0.55); backdrop-filter: blur(18px); border-radius: 60px; padding: 8px 20px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; border: 1px solid rgba(255,255,255,0.4); box-shadow: 0 8px 20px rgba(0,0,0,0.03); }
.logo-area { font-weight: 800; font-size: 1.4rem; background: linear-gradient(130deg, #2c3e66, #6c8dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.dark .logo-area { background: linear-gradient(130deg, #ffffff, #c0d0ff); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.theme-toggle { background: rgba(108,141,255,0.15); border: none; width: 42px; height: 42px; border-radius: 60px; font-size: 1.3rem; cursor: pointer; transition: transform 0.2s ease; }
body.dark .theme-toggle { background: #2d3a5e; }
.page-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 32px; background: rgba(255,255,240,0.2); backdrop-filter: blur(12px); padding: 10px 20px; border-radius: 80px; }
.tab-btn { background: rgba(0,0,0,0.05); border: none; padding: 10px 24px; border-radius: 40px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.25s var(--spring-easing); display: flex; align-items: center; gap: 8px; }
.tab-btn.active { background: var(--primary-accent); color: white; box-shadow: 0 8px 18px rgba(108,141,255,0.4); transform: scale(1.02); }
.pages-container { position: relative; min-height: 550px; }
.page { display: none; animation: pageGlideIn 0.6s var(--spring-easing) forwards; }
.page.active-page { display: block; }
@keyframes pageGlideIn { 0% { opacity: 0; transform: translateY(26px) scale(0.98); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.glass-card { background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(14px); border-radius: var(--card-radius); padding: 28px 24px; border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 12px 28px rgba(0,0,0,0.05); transition: transform 0.3s ease, background 0.5s ease, border-color 0.5s ease; }
.glass-card:hover { transform: translateY(-3px); }
.section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; color: #1f2a3e; }
body.dark .section-title { color: white !important; }
.badge-group { display: flex; flex-wrap: wrap; gap: 14px; }
.skill-badge, .game-bubble { background: rgba(108,141,255,0.12); padding: 10px 20px; border-radius: 40px; font-weight: 500; cursor: pointer; transition: all 0.25s var(--spring-easing); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: #1f2937; }
.skill-badge:hover, .game-bubble:hover { background: var(--primary-accent); color: white !important; transform: translateY(-3px) scale(1.02); }
.timeline-item { padding: 12px 0; border-bottom: 1px dashed rgba(0,0,0,0.1); display: flex; gap: 12px; align-items: center; }
.repo-grid { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 16px; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.repo-grid::-webkit-scrollbar { height: 5px; }
.repo-grid::-webkit-scrollbar-thumb { background: var(--primary-accent); border-radius: 10px; }
.repo-tile { flex: 0 0 280px; background: rgba(0,0,0,0.04); border-radius: 24px; padding: 18px; text-decoration: none; border: 1px solid rgba(0,0,0,0.05); transition: all 0.25s ease; scroll-snap-align: start; color: #1f2937; }
.repo-tile:hover { background: var(--primary-accent); color: white !important; transform: translateY(-6px); }
@media (min-width: 700px) { .repo-grid { display: grid; grid-template-columns: repeat(2,1fr); overflow-x: visible; flex-wrap: wrap; } .repo-tile { flex: auto; width: auto; } }
.contact-buttons { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 8px; }
.contact-btn { background: white; padding: 14px; text-align: center; border-radius: 28px; font-weight: 600; transition: all 0.2s var(--spring-easing); cursor: pointer; text-decoration: none; color: #1f2937; }
.contact-btn:hover { background: var(--primary-accent); color: white !important; transform: scale(1.02); }
.avatar-modern { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.avatar-circle-big { width: 130px; height: 130px; border-radius: 50%; background: linear-gradient(135deg, #fff, #e9efff); padding: 5px; box-shadow: 0 15px 30px rgba(108,141,255,0.3); transition: transform 0.3s var(--spring-easing); cursor: pointer; }
.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.display-name { font-size: 2.1rem; font-weight: 800; background: linear-gradient(135deg, #1f2a44, #6c8dff); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: 12px; }
body.dark .display-name { background: linear-gradient(135deg, #ffffff, #c0d0ff); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
footer { text-align: center; margin-top: 48px; opacity: 0.6; font-size: 0.75rem; }
.filter-chip { background: rgba(0,0,0,0.05); padding: 6px 14px; border-radius: 40px; cursor: pointer; transition: 0.2s; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; }
.search-box input { width: 100%; padding: 12px 16px; border-radius: 40px; border: 1px solid rgba(0,0,0,0.1); background: rgba(255,255,255,0.7); font-size: 0.9rem; outline: none; }
.bili-profile-section { margin-top: 28px; padding-top: 24px; border-top: 1px dashed rgba(0,0,0,0.1); }
body.dark .bili-profile-section { border-top-color: rgba(255,255,255,0.15) !important; }
.bili-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
@media (min-width: 600px) { .bili-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.bili-stat-card { background: rgba(108, 141, 255, 0.08); border-radius: 20px; padding: 16px 12px; text-align: center; transition: all 0.3s var(--spring-easing); border: 1px solid rgba(108, 141, 255, 0.15); }
.bili-stat-card:hover { transform: translateY(-4px); background: rgba(108, 141, 255, 0.15); }
.bili-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--primary-accent); line-height: 1.2; }
.bili-stat-label { font-size: 0.75rem; opacity: 0.7; margin-top: 4px; }
.level-section { margin-top: 16px; }
.level-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.level-badge { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #6c8dff, #a0b8ff); color: white !important; padding: 4px 14px; border-radius: 40px; font-weight: 700; font-size: 0.85rem; }
.level-progress-bg { width: 100%; height: 10px; background: rgba(0,0,0,0.06); border-radius: 10px; overflow: hidden; }
.level-progress-fill { height: 100%; background: linear-gradient(90deg, #6c8dff, #a0b8ff); border-radius: 10px; transition: width 1s var(--spring-easing); }
.bili-search-box { margin-bottom: 16px; }
.bili-search-box input { width: 100%; padding: 12px 16px; border-radius: 40px; border: 1px solid rgba(0,0,0,0.1); background: rgba(255,255,255,0.7); font-size: 0.9rem; outline: none; }
.bili-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.video-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card { background: rgba(255, 255, 255, 0.6); border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 8px 20px rgba(0,0,0,0.04); transition: all 0.3s var(--spring-easing); cursor: pointer; text-decoration: none; color: inherit; display: block; }
.video-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 16px 40px rgba(108,141,255,0.2); }
.video-thumbnail { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform 0.4s ease; }
.video-card:hover .video-thumbnail { transform: scale(1.05); }
.video-thumb-wrap { position: relative; overflow: hidden; }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.75); color: white !important; padding: 2px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; }
.video-info { padding: 14px 16px 16px; }
.video-title { font-weight: 700; font-size: 0.95rem; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; opacity: 0.7; margin-bottom: 10px; }
.video-stats { display: flex; gap: 14px; font-size: 0.78rem; }
.video-stat { display: inline-flex; align-items: center; gap: 4px; opacity: 0.75; }
.video-tag { display: inline-block; background: rgba(108, 141, 255, 0.12); padding: 2px 10px; border-radius: 20px; font-size: 0.72rem; margin-right: 6px; margin-top: 8px; }
.video-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 20px; }
.video-modal-overlay.active { opacity: 1; pointer-events: all; }
.video-modal-content { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); border-radius: 28px; max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; transform: scale(0.9) translateY(20px); transition: transform 0.4s var(--spring-easing); border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 24px 60px rgba(0,0,0,0.2); }
.video-modal-overlay.active .video-modal-content { transform: scale(1) translateY(0); }
.video-modal-header { position: relative; padding: 0; }
.video-modal-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px 28px 0 0; }
.video-modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.5); color: white !important; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: background 0.2s; }
.video-modal-close:hover { background: rgba(0,0,0,0.7); }
.video-modal-body { padding: 20px 24px 24px; }
.video-modal-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.video-modal-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed rgba(0,0,0,0.1); }
body.dark .video-modal-stats { border-bottom-color: rgba(255,255,255,0.15) !important; }
.video-modal-stat { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; opacity: 0.8; }
.video-modal-desc { font-size: 0.9rem; line-height: 1.7; opacity: 0.85; margin-bottom: 20px; }
.video-modal-actions { display: flex; gap: 10px; }
.video-modal-btn { flex: 1; padding: 12px; border-radius: 16px; border: none; font-weight: 600; cursor: pointer; transition: all 0.2s var(--spring-easing); text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.video-modal-btn.primary { background: var(--primary-accent); color: white !important; }
.video-modal-btn.primary:hover { transform: scale(1.03); box-shadow: 0 8px 20px rgba(108,141,255,0.4); }
.video-modal-btn.secondary { background: rgba(0,0,0,0.05); color: inherit; }
.video-modal-btn.secondary:hover { background: rgba(0,0,0,0.1); }
body.dark .video-modal-btn.secondary { background: rgba(255,255,255,0.12) !important; }
.bili-loading { text-align: center; padding: 40px; grid-column: 1 / -1; }
.bili-empty { text-align: center; padding: 60px 20px; grid-column: 1 / -1; }
.bili-empty i { font-size: 3rem; opacity: 0.3; margin-bottom: 12px; display: block; }
@media (max-width: 550px) { .tab-btn span { display: none; } .tab-btn i { margin: 0; font-size: 1.3rem; } .tab-btn { padding: 10px 16px; } .contact-buttons { grid-template-columns: 1fr; } .video-modal-content { max-height: 90vh; border-radius: 20px; } .video-modal-body { padding: 16px 18px 20px; } .bili-stats-grid { grid-template-columns: repeat(2, 1fr); } }