:root {
    --primary-blue: #0088ff;
    --primary-blue-glow: rgba(0, 136, 255, 0.6);
    --bg-glass: rgba(15, 23, 42, 0.55);
    --bg-card: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --border-color: rgba(0, 136, 255, 0.3);
}
[data-theme="light"] {
    --bg-glass: rgba(255, 255, 255, 0.65);
    --text-color: #0f172a;
    --border-color: rgba(0, 136, 255, 0.5);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; transition: background 0.3s, color 0.3s; }
body { background-color: #000; color: var(--text-color); min-height: 100vh; display: flex; justify-content: center; align-items: center; overflow-x: hidden; padding: 20px; }
#bg-video { position: fixed; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: -1; }
.glass { background: var(--bg-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-color); border-radius: 20px; box-shadow: 0 8px 32px 0 rgba(0, 136, 255, 0.2); }
.container { width: 100%; max-width: 650px; display: flex; flex-direction: column; gap: 20px; }
.header-card { padding: 20px; display: flex; align-items: center; gap: 15px; position: relative; }
.profile-section { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.profile-avatar-wrapper { position: relative; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; cursor: pointer; border: 2px solid var(--primary-blue); box-shadow: 0 0 10px var(--primary-blue-glow); }
.profile-avatar-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.avatar-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; color: #fff; }
.profile-avatar-wrapper:hover .avatar-overlay { opacity: 1; }
.profile-name-wrapper { display: flex; align-items: center; gap: 5px; }
.profile-name { font-size: 0.75rem; font-weight: 600; color: var(--text-color); max-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-edit-name { background: transparent; border: none; color: var(--primary-blue); font-size: 0.7rem; cursor: pointer; padding: 2px; }
.title-wrapper { flex: 1; min-width: 0; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.title-row h1 { font-size: 1.1rem; font-weight: 700; white-space: nowrap; }
.btn-akses-khusus { background: linear-gradient(45deg, var(--primary-blue), #00d2ff); border: none; color: white; font-size: 0.7rem; padding: 6px 12px; border-radius: 20px; font-weight: 600; cursor: pointer; box-shadow: 0 0 10px var(--primary-blue-glow); white-space: nowrap; }
.header-card p { font-size: 0.75rem; opacity: 0.8; margin-top: 2px; }
.theme-toggle { background: transparent; border: none; color: var(--text-color); font-size: 1.2rem; cursor: pointer; padding: 5px; }
.download-section { padding: 20px; }
.input-group { display: flex; align-items: center; background: rgba(255, 255, 255, 0.1); border-radius: 30px; padding: 4px 6px 4px 15px; border: 1px solid var(--border-color); gap: 8px; }
.input-icon { color: var(--primary-blue); }
.input-group input { flex: 1; background: transparent; border: none; outline: none; color: var(--text-color); padding: 8px 0; font-size: 0.85rem; min-width: 0; }
.btn-action { background: var(--primary-blue); border: none; color: white; padding: 8px 16px; border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 0.8rem; white-space: nowrap; }
.video-btn-container { position: relative; margin-top: 20px; border-radius: 15px; overflow: hidden; min-height: 140px; border: 1px solid var(--primary-blue); }
.btn-bg-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.video-btn-content { position: relative; z-index: 2; background: rgba(0, 0, 0, 0.5); padding: 15px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.author-info { display: flex; align-items: center; gap: 10px; color: #fff; }
.author-info img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--primary-blue); }
.download-actions { display: flex; gap: 10px; margin-top: 15px; }
.dl-btn { flex: 1; background: var(--primary-blue); color: white; border: none; padding: 10px; border-radius: 10px; font-weight: 600; cursor: pointer; font-size: 0.8rem; box-shadow: 0 4px 15px var(--primary-blue-glow); }
.hidden { display: none; }
.preset-section { padding: 20px; }
.preset-section h2 { font-size: 1.1rem; }
.sub-text { font-size: 0.75rem; opacity: 0.7; margin-bottom: 12px; }
.preset-search-box { display: flex; align-items: center; background: rgba(255, 255, 255, 0.1); border-radius: 30px; padding: 4px 6px 4px 15px; border: 1px solid var(--border-color); margin-bottom: 12px; gap: 8px; }
.preset-search-box .search-icon { color: var(--primary-blue); font-size: 0.9rem; }
.preset-search-box input { flex: 1; background: transparent; border: none; outline: none; color: var(--text-color); padding: 8px 0; font-size: 0.85rem; min-width: 0; }
.btn-search-preset { background: var(--primary-blue); border: none; color: white; padding: 8px 16px; border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 0.8rem; white-space: nowrap; }
.hashtag-chips { display: flex; gap: 8px; margin-bottom: 15px; overflow-x: auto; padding-bottom: 4px; }
.chip { background: rgba(255, 255, 255, 0.1); border: 1px solid var(--border-color); color: var(--text-color); padding: 5px 12px; border-radius: 15px; font-size: 0.75rem; cursor: pointer; white-space: nowrap; }
.chip.active { background: var(--primary-blue); color: #fff; }
.preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.preset-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/5; background: #000; border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; }
.preset-card img { width: 100%; height: 100%; object-fit: cover; }
.preset-info-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.85)); padding: 10px 8px 8px 8px; color: #fff; }
.preset-title { font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.preset-stats { display: flex; align-items: center; gap: 5px; font-size: 0.65rem; color: #ddd; }
.preset-notfound { grid-column: span 2; text-align: center; font-size: 0.8rem; opacity: 0.7; padding: 20px 0; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); animation: ripple-anim 0.6s linear; background-color: rgba(255, 255, 255, 0.4); }
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }
.scroll-anim { animation: fadeInUp 0.8s ease-out forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
