:root {
    --bg-base: #08090D;
    --bg-surface: #10121A;
    --bg-card: #141724;
    --accent-red: #FF2E93;
    --accent-red-glow: rgba(255, 46, 147, 0.35);
    --accent-gradient: linear-gradient(135deg, #FF2E93 0%, #D6006E 55%, #8F0050 100%);
    --accent-emerald: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --accent-gold: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; outline: none; }
body {
    background-color: var(--bg-base);
    background-image: radial-gradient(circle at 10% 5%, rgba(255, 46, 147, 0.12) 0%, transparent 45%), radial-gradient(circle at 90% 90%, rgba(214, 0, 110, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;
    min-height: 100vh; padding-bottom: 90px; overflow-x: hidden; user-select: none;
}
.app-container { max-width: 480px; margin: 0 auto; position: relative; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
.top-bar { position: sticky; top: 0; z-index: 100; background: rgba(8, 9, 13, 0.98); border-bottom: var(--border-subtle); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.brand-identity { display: flex; align-items: center; gap: 12px; }
.brand-logo-wrap { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 46, 147, 0.3); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px var(--accent-red-glow); flex-shrink: 0; }
.brand-logo-img { width: 32px; height: 32px; }
.brand-title-wrap { display: flex; flex-direction: column; }
.brand-main-title { display: flex; align-items: center; gap: 6px; line-height: 1.15; }
.brand-word-1 { font-size: 15px; font-weight: 900; letter-spacing: -0.3px; color: #F8FAFC; text-transform: uppercase; }
.brand-word-2 { font-size: 15px; font-weight: 900; letter-spacing: -0.3px; background: linear-gradient(135deg, #FF6EB4 0%, #FF2E93 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-transform: uppercase; }
.brand-badge { background: rgba(255, 46, 147, 0.16); border: 1px solid rgba(255, 46, 147, 0.35); color: #FF6EB4; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: 0.5px; }
.brand-sub-bar { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.sub-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-red); box-shadow: 0 0 8px var(--accent-red); }
.brand-sub-bar span { font-size: 9px; font-weight: 700; letter-spacing: 1.2px; color: var(--text-muted); text-transform: uppercase; }
.content-padding { padding: 16px; }
.search-box { position: relative; margin-bottom: 16px; }
.search-field { width: 100%; background: var(--bg-surface); border: var(--border-subtle); padding: 12px 16px 12px 42px; border-radius: var(--radius-md); color: #fff; font-size: 13px; font-family: inherit; transition: 0.25s ease; }
.search-field:focus { border-color: var(--accent-red); background: #141724; box-shadow: 0 0 0 3px rgba(255, 46, 147, 0.15); }
.search-field::placeholder { color: var(--text-muted); }
.search-field { -webkit-user-select: text; user-select: text; -webkit-appearance: none; appearance: none; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }
.story-scroll-wrap { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }
.story-scroll-wrap::-webkit-scrollbar { display: none; }
.story-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; flex-shrink: 0; }
.story-ring { width: 58px; height: 58px; border-radius: 50%; padding: 2px; background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px var(--accent-red-glow); }
.story-avatar { width: 100%; height: 100%; border-radius: 50%; background: #000; border: 2px solid var(--bg-base); object-fit: cover; }
.story-label { font-size: 10px; color: var(--text-secondary); font-weight: 600; max-width: 62px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.category-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 16px; scrollbar-width: none; }
.category-chips::-webkit-scrollbar { display: none; }
.chip { padding: 7px 14px; background: var(--bg-surface); border: var(--border-subtle); color: var(--text-secondary); font-size: 12px; font-weight: 600; border-radius: var(--radius-full); white-space: nowrap; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 6px; }
.chip.active { background: #fff; color: #000; border-color: #fff; }
.chip-count { background: rgba(0,0,0,0.15); font-size: 10px; padding: 1px 6px; border-radius: 10px; }
.chip.active .chip-count { background: #000; color: #fff; }
.feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.grid-card { background: var(--bg-card); border-radius: var(--radius-md); border: var(--border-subtle); overflow: hidden; position: relative; cursor: pointer; transition: 0.2s transform ease; }
.grid-card:active { transform: scale(0.97); }
.grid-thumb-box { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0c0e16; overflow: hidden; }
.grid-thumb-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid-thumb-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 40%, rgba(8,9,13,0.85) 100%); pointer-events: none; }
.grid-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 46, 147, 0.95); border: 2px solid rgba(255, 255, 255, 0.95); color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(255, 46, 147, 0.6); z-index: 3; padding-left: 3px; pointer-events: none; }
.grid-top-tags { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.grid-vip-tag { background: var(--accent-gold); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 6px; display: flex; align-items: center; gap: 4px; box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4); }
.grid-fav-btn { width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; }
.grid-cat-tag { position: absolute; bottom: 8px; left: 8px; background: rgba(17, 21, 32, 0.92); border: 1px solid rgba(255,255,255,0.15); color: #F8FAFC; font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 6px; z-index: 2; }
.grid-video-tag { position: absolute; bottom: 8px; right: 8px; z-index: 2; background: rgba(8, 9, 13, 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 46, 147, 0.55); color: #FF2E93; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; text-shadow: 0 0 8px rgba(255, 46, 147, 0.45); }
.grid-info { padding: 10px 10px 12px; }
.grid-title { font-size: 12px; font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px; }
.grid-meta { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--text-muted); }
.grid-meta-item { display: flex; align-items: center; gap: 4px; }
#detailView { position: fixed; inset: 0; background: var(--bg-base); z-index: 250; display: none; overflow-y: auto; padding-bottom: 90px; }
#detailView.show { display: block; }
.detail-header { position: sticky; top: 0; z-index: 10; background: rgba(8, 9, 13, 0.98); border-bottom: var(--border-subtle); padding: 12px 16px; display: flex; align-items: center; gap: 12px; max-width: 480px; margin: 0 auto; }
.back-btn-top { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.06); border: var(--border-subtle); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.back-btn-top:active { transform: scale(0.94); }
.detail-header-title { font-size: 13px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.detail-body { max-width: 480px; margin: 0 auto; padding: 16px; }
.custom-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255, 46, 147, 0.3); box-shadow: 0 6px 24px rgba(0,0,0,0.6); margin-bottom: 16px; }
.custom-player .drive-frame-wrap { position: absolute; top: -14%; left: -2%; width: 104%; height: 135%; pointer-events: auto; }
.custom-player .drive-frame-wrap iframe, .custom-player .drive-frame-wrap video { width: 100%; height: 100%; border: 0; display: block; }
.vast-layer { position: absolute; inset: 0; z-index: 9; display: none; background: #000 center/cover no-repeat; }
.vast-layer.show { display: block; }
.vast-layer::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,13,0.55), rgba(8,9,13,0.8)); }
.vast-layer.playing::before { display: none; }
.vast-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; display: none; }
.vast-layer.playing .vast-video { display: block; }
.vast-ad-container { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.vast-start { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.vast-layer.playing .vast-start { display: none; }
.vast-play { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.95); background: var(--accent-gradient); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; padding-left: 4px; cursor: pointer; box-shadow: 0 6px 24px var(--accent-red-glow); }
.vast-play:active { transform: scale(0.94); }
.vast-hint { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.vast-bar { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 4; display: none; align-items: center; justify-content: flex-start; pointer-events: none; }
.vast-layer.playing .vast-bar { display: flex; }
.vast-badge { background: rgba(8,9,13,0.7); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 4px 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); }
.vast-badge b { margin-left: 4px; color: #FFB400; font-variant-numeric: tabular-nums; }
.player-lock-overlay { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 8; padding: 20px; text-align: center; gap: 10px; }
.player-lock-overlay::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 13, 0.8) 0%, rgba(8, 9, 13, 0.92) 100%); z-index: 1; }
.player-lock-overlay > * { position: relative; z-index: 2; }
.player-lock-overlay.show { display: flex; }
.lock-icon-box { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 46, 147, 0.2); border: 1px solid var(--accent-red); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--accent-red); box-shadow: 0 0 20px var(--accent-red-glow); }
.lock-title { font-size: 14px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.lock-sub { font-size: 11px; color: #cbd5e1; max-width: 280px; line-height: 1.4; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
.lock-btn { background: var(--accent-gradient); color: #fff; border: none; padding: 11px 24px; border-radius: var(--radius-full); font-size: 12px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 18px var(--accent-red-glow); transition: 0.2s transform ease; font-family: inherit; }
.lock-btn:active { transform: scale(0.95); }
.timer-badge { display: none; align-items: center; gap: 8px; background: rgba(245, 158, 11, 0.25); border: 1px solid rgba(245, 158, 11, 0.5); color: #fbbf24; padding: 8px 18px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; }
.timer-badge.show { display: inline-flex; }
.detail-title { font-size: 16px; font-weight: 800; color: #fff; line-height: 1.4; margin-bottom: 10px; }
.detail-meta-row { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.detail-meta-left { display: flex; align-items: center; gap: 12px; }
.download-btn { width: 100%; padding: 14px; border-radius: 12px; border: none; background: var(--accent-emerald); color: #fff; font-family: inherit; font-size: 14px; font-weight: 800; letter-spacing: 0.4px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4); transition: 0.2s; margin-bottom: 12px; }
.download-btn:active { transform: scale(0.98); }
.detail-actions { display: flex; gap: 10px; margin-bottom: 20px; }
.detail-action-btn { flex: 1; padding: 12px; border-radius: 12px; background: rgba(255,255,255,0.06); border: var(--border-subtle); color: #fff; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: 0.2s; }
.detail-action-btn.liked { background: rgba(255, 46, 147, 0.15); border-color: rgba(255, 46, 147, 0.4); color: #FF6EB4; }
.detail-section-title { font-size: 14px; font-weight: 800; color: #FF6EB4; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.app-card-panel { background: var(--bg-card); border: var(--border-subtle); border-radius: var(--radius-lg); padding: 18px; margin-top: 10px; }
.tutorial-player-box { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 16px; }
.instruction-step { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 13px; color: #E2E8F0; }
.step-number { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 46, 147, 0.15); border: 1px solid var(--accent-red); color: #FF6EB4; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; flex-shrink: 0; }
.native-tab-bar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto; height: 64px; background: rgba(10, 11, 16, 0.98); border-top: var(--border-subtle); display: flex; justify-content: space-around; align-items: center; z-index: 100; padding-bottom: env(safe-area-inset-bottom); }
.tab-link { background: none; border: none; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; font-family: inherit; cursor: pointer; transition: 0.2s; width: 25%; }
.tab-link i { font-size: 18px; }
.tab-link.active { color: #fff; }
.tab-link.active i { color: var(--accent-red); transform: translateY(-2px); filter: drop-shadow(0 2px 8px var(--accent-red-glow)); }
.unlock-modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.88); display: none; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.unlock-modal-overlay.active { display: flex; }
.unlock-card { background: linear-gradient(145deg, #161928, #0e111a); border: 1px solid rgba(16, 185, 129, 0.4); box-shadow: 0 10px 40px rgba(16, 185, 129, 0.35), 0 0 80px rgba(0,0,0,0.8); border-radius: 24px; width: 100%; max-width: 320px; padding: 26px 20px; text-align: center; position: relative; animation: popupIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popupIn { 0% { transform: scale(0.7) translateY(20px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
.unlock-badge-icon { width: 66px; height: 66px; border-radius: 50%; background: rgba(16, 185, 129, 0.15); border: 2px solid #10B981; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #10B981; box-shadow: 0 0 25px rgba(16, 185, 129, 0.6); }
.unlock-modal-title { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.unlock-modal-desc { font-size: 12px; color: #94A3B8; line-height: 1.5; margin-bottom: 20px; }
.unlock-modal-play-btn { width: 100%; padding: 13px; border-radius: 12px; background: var(--accent-emerald); color: #fff; border: none; font-size: 13px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5); transition: 0.2s; font-family: inherit; }
.unlock-modal-play-btn:active { transform: scale(0.96); }
.app-toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); background: rgba(17, 20, 30, 0.96); border: 1px solid rgba(255, 46, 147, 0.3); color: #fff; padding: 10px 20px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; display: none; z-index: 1000; box-shadow: 0 10px 25px rgba(0,0,0,0.5); max-width: 92vw; text-align: center; }
.ad-slot { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; width: 100%; }
.ad-slot:empty { display: none; margin: 0; }
.ad-wrap { width: 100%; text-align: center; }
.ad-label { font-size: 9px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.ad-frame { width: 100%; border: 0; display: block; background: transparent; overflow: hidden; }
.feed-grid .feed-ad { grid-column: 1 / -1; width: 100%; text-align: center; }
.detail-top-gap { max-width: 480px; margin: 0 auto; min-height: 70px; padding: 8px 16px 4px; display: flex; align-items: center; justify-content: center; }
.detail-top-gap .ad-slot { margin: 0; }
.grid-card { content-visibility: auto; contain-intrinsic-size: auto 300px; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.grid-thumb-box img { opacity: 0; transition: opacity 0.3s ease; }
.grid-thumb-box img.loaded { opacity: 1; }
.story-avatar { opacity: 0; transition: opacity 0.3s ease; }
.story-avatar.loaded { opacity: 1; }
.grid-title { letter-spacing: 0.1px; }
#detailView.show { animation: slideUp 0.25s ease-out; }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 44px 16px; }
.empty-state i { font-size: 34px; color: rgba(255, 46, 147, 0.55); margin-bottom: 12px; display: block; }
.empty-state p { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
#gridSentinel { height: 1px; width: 100%; }
@media (prefers-reduced-motion: reduce) { .fade-up, #detailView.show { animation: none; } }
.trend-sec { margin-bottom: 20px; display: none; }
.trend-title { font-size: 14px; font-weight: 800; color: #FF6EB4; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.trend-title small { font-size: 10px; font-weight: 600; color: var(--text-muted); }
.trend-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.trend-scroll::-webkit-scrollbar { display: none; }
.trend-card { flex: 0 0 104px; cursor: pointer; transition: 0.2s transform ease; display: block; }
.trend-card:active { transform: scale(0.96); }
.trend-thumb { position: relative; width: 104px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #0c0e16; border: var(--border-subtle); }
.trend-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trend-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8,9,13,0.85) 100%); pointer-events: none; }
.trend-fire { position: absolute; top: 6px; left: 6px; z-index: 2; background: rgba(255, 46, 147, 0.92); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 6px; display: flex; align-items: center; gap: 3px; }
.trend-name { font-size: 10px; font-weight: 700; color: #fff; line-height: 1.3; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seo-intro { margin: 8px 0 24px; padding: 14px 16px; background: var(--bg-surface); border: var(--border-subtle); border-radius: var(--radius-md); text-align: center; }
.seo-intro h1 { font-size: 12px; font-weight: 800; color: var(--text-secondary); margin-bottom: 6px; letter-spacing: 0.2px; }
.seo-intro p { font-size: 11px; line-height: 1.6; color: var(--text-muted); }
.new-banner { margin-bottom: 16px; }
.nb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 2px; }
.nb-head-left { display: flex; align-items: center; gap: 9px; }
.nb-head-icon { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-gradient); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px var(--accent-red-glow); }
.nb-head-title { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; color: #fff; line-height: 1.1; }
.nb-head-sub { font-size: 9px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
.nb-count { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.nb-count b { color: #fff; }
.nb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 22px; }
.nb-track::-webkit-scrollbar { display: none; }
.nb-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0c0e16; border: 1px solid rgba(255,255,255,0.1); border-radius: 22px; cursor: pointer; display: block; }
.nb-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.nb-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 30%, rgba(8,9,13,0.55) 62%, rgba(8,9,13,0.95) 100%); pointer-events: none; }
.nb-tag { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px; background: rgba(8, 9, 13, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.nb-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-red); box-shadow: 0 0 0 0 rgba(255, 46, 147, 0.7); animation: nbPulse 1.6s ease-out infinite; }
@keyframes nbPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 46, 147,0.7); } 70% { box-shadow: 0 0 0 7px rgba(255, 46, 147,0); } 100% { box-shadow: 0 0 0 0 rgba(255, 46, 147,0); } }
.nb-bottom { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.nb-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; letter-spacing: -0.2px; color: #fff; line-height: 1.35; text-shadow: 0 2px 10px rgba(0,0,0,0.85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-watch { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; background: #fff; color: #0b0c12; font-size: 11px; font-weight: 800; letter-spacing: 0.3px; box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
.nb-watch i { font-size: 10px; color: var(--accent-red); }
.nb-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.nb-dot { width: 6px; height: 6px; border-radius: 6px; background: rgba(255,255,255,0.22); transition: 0.25s; cursor: pointer; }
.nb-dot.active { width: 20px; background: var(--accent-red); }
@media (prefers-reduced-motion: reduce) { .nb-tag i { animation: none; } }
#homeSec.is-searching #storyBar, #homeSec.is-searching #homeTrendSec, #homeSec.is-searching #adSlotHomeBanner, #homeSec.is-searching #newBanner { display: none !important; }
.search-info { font-size: 12px; font-weight: 700; color: var(--text-secondary); margin: -4px 2px 12px; display: none; }
.search-info b { color: #FF6EB4; }
#homeSec.is-searching .search-info { display: block; }
.hidden { display: none !important; }
.fade-up { animation: fadeUp 0.25s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ===== আলাদা পেজ বানানোর জন্য ছোট সংযোজন (ডিজাইন অপরিবর্তিত) ===== */
.card-link { position: absolute; inset: 0; z-index: 1; }
.grid-top-tags { pointer-events: none; }
.grid-fav-btn { pointer-events: auto; position: relative; z-index: 3; }
.grid-cat-tag, .grid-video-tag { pointer-events: none; }
a.grid-title { color: #fff; }
#detailView.page { position: static; inset: auto; display: block; z-index: auto; overflow: visible; padding-bottom: 0; animation: none; }
.page-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 16px; }
.page-pager a { padding: 6px 12px; background: var(--bg-surface); border: var(--border-subtle); color: var(--text-secondary); font-size: 11px; font-weight: 700; border-radius: var(--radius-full); }
.page-pager a.on { background: #fff; color: #000; }
.detail-desc { background: var(--bg-surface); border: var(--border-subtle); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 20px; }
.detail-desc h2 { font-size: 13px; font-weight: 800; color: var(--text-secondary); margin-bottom: 8px; }
.detail-desc p { font-size: 12px; line-height: 1.7; color: #CBD5E1; margin-bottom: 8px; user-select: text; -webkit-user-select: text; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.detail-tags a { font-size: 11px; font-weight: 700; color: #FF6EB4; background: rgba(255, 46, 147, 0.1); padding: 4px 10px; border-radius: var(--radius-full); }
.crumbs { font-size: 10px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.6; }
.crumbs a { color: var(--text-secondary); }

/* ===== Brand: MKS DESHI ===== */
.brand-word-1 { letter-spacing: 1.2px; font-size: 17px; }
.brand-word-2 { letter-spacing: 1.2px; font-size: 17px; filter: drop-shadow(0 0 10px rgba(255, 46, 147, 0.45)); }
.brand-main-title { gap: 7px; }
.brand-sub-bar span { letter-spacing: 2px; }

/* ===== "সকল ভাইরাল ভিডিও" heading (Trending Video-এর মতো একই স্টাইল) ===== */
.all-title { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 14px; font-weight: 800; color: #FF6EB4; }
.all-title h2 { font-size: 14px; font-weight: 800; color: #FF6EB4; margin: 0; }
.all-title small { font-size: 10px; font-weight: 600; color: var(--text-muted); }
#homeSec.is-searching #allTitle { display: none !important; }
/* কাছাকাছি স্পেসিং: Trending → ব্যানার → সকল ভিডিও */
#homeTrendSec { margin-bottom: 8px; }
#homeTrendSec .trend-scroll { padding-bottom: 0; }
#adSlotHomeBanner { margin: 0 0 12px; gap: 8px; }
.ad-slot .ad-wrap { background: none; border: 0; padding: 0; }
.ad-slot .ad-label { margin-bottom: 3px; }

/* ===== NEW badge ===== */
.grid-tag-col { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.new-badge { display: inline-flex; align-items: center; gap: 5px; background: linear-gradient(135deg, #FF2E93, #FF4081); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: 1.2px; padding: 3px 8px 3px 6px; border-radius: 6px; box-shadow: 0 2px 10px rgba(255, 46, 147, 0.55); border: 1px solid rgba(255, 255, 255, 0.35); }
.new-badge i { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: newPulse 1.4s ease-in-out infinite; }
.new-badge.inline { font-size: 10px; padding: 3px 9px 3px 7px; }
@keyframes newPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
@media (prefers-reduced-motion: reduce) { .new-badge i { animation: none; } }

/* ===== Fullscreen (কাস্টম বাটন, নিচে-বামে) ===== */
.fs-btn { position: absolute; left: 8px; bottom: 8px; z-index: 10; width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(8, 9, 13, 0.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 14px; display: none; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; box-shadow: 0 3px 12px rgba(0,0,0,0.45); }
.fs-btn:active { transform: scale(0.92); }
.custom-player.player-on .fs-btn { display: flex; }
.custom-player.is-fs { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; border: 0; margin: 0; background: #000; }
.custom-player.is-fs .fs-btn { left: max(10px, env(safe-area-inset-left)); bottom: max(10px, env(safe-area-inset-bottom)); }
.fs-lock, .fs-lock body { overflow: hidden; }
.fs-lock .custom-player.is-fs { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 9999; }

/* =====================================================================
   v8 — Premium polish (শুধু লুক; কোনো ফিচার বা ডেটা বদলায়নি)
   ===================================================================== */

/* ১. ফন্ট ও রঙ (আরও গভীর নীলচে-কালো ডার্ক) */
:root {
    --bg-base: #07080D;
    --bg-surface: #0F111A;
    --bg-card: #131622;
    --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 46, 147, 0.25);
}
body {
    font-family: 'Inter', 'Plus Jakarta Sans', 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, .detail-title, .grid-title, .trend-name, .brand-main-title { letter-spacing: -0.1px; }

/* ২. হেডার ও ট্যাব বার: glass blur */
.top-bar {
    background: rgba(8, 9, 13, 0.72);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.native-tab-bar {
    background: rgba(10, 11, 16, 0.78);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.tab-link { position: relative; }
.tab-link.active { color: #fff; }
.tab-link.active::before { content: ''; position: absolute; top: -9px; left: 50%; width: 26px; height: 3px; margin-left: -13px; border-radius: 0 0 4px 4px; background: var(--accent-gradient); box-shadow: 0 2px 10px var(--accent-red-glow); }

/* সার্চ বার */
.search-field { border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09); transition: border-color .2s, box-shadow .2s, background .2s; }
.search-field:focus { background: rgba(255, 255, 255, 0.06); }

/* ৩. ভিডিও কার্ড */
.feed-grid { gap: 14px 12px; }
.grid-card { border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: var(--shadow-card); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.grid-thumb-box { background: linear-gradient(100deg, #0c0e16 30%, #161a28 50%, #0c0e16 70%); background-size: 200% 100%; animation: skel 1.4s linear infinite; }
.grid-thumb-box:has(img.loaded) { animation: none; background: #0c0e16; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.grid-thumb-box img { transition: opacity .35s ease, transform .5s ease; }
.grid-title { font-weight: 700; line-height: 1.38; }
.grid-meta { font-size: 10.5px; gap: 6px; }
.grid-views { color: var(--text-secondary); font-weight: 600; }
.grid-views i { color: #FF6EB4; font-size: 10px; }

/* Play আইকন ছোট ও হালকা, যাতে ছবি পরিষ্কার দেখা যায় */
.grid-play-btn { width: 28px; height: 28px; font-size: 10px; padding-left: 2px; border-width: 1.5px; background: rgba(255, 46, 147, 0.78); box-shadow: 0 2px 10px rgba(255, 46, 147, 0.45); opacity: .92; transition: transform .2s ease, opacity .2s ease; }

@media (hover: hover) {
    .grid-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
    .grid-card:hover .grid-thumb-box img { transform: scale(1.05); }
    .grid-card:hover .grid-play-btn { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
}

/* Trending ব্যাজ (কার্ডের কোণায় ভাসবে) */
.trend-badge, .trend-fire {
    display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #fff;
    background: linear-gradient(135deg, #FF6A00, #FF2E93); padding: 3px 8px 3px 6px; border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 2px 10px rgba(255, 46, 147, 0.55);
}
.trend-badge i, .trend-fire i { font-size: 9px; animation: fireFlick 1.2s ease-in-out infinite; }
@keyframes fireFlick { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.grid-tag-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* ৪. Trending কার্ড: YouTube সাইজ ১৬:৯ */
.trend-scroll { gap: 12px; scroll-snap-type: x proximity; }
.trend-card { flex: 0 0 210px; scroll-snap-align: start; }
.trend-thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: var(--shadow-card); }
.trend-thumb img { transition: transform .5s ease; }
.trend-fire { position: absolute; top: 8px; left: 8px; z-index: 2; }
.trend-name { font-size: 12px; margin-top: 8px; line-height: 1.35; }
.trend-views { font-size: 10.5px; color: var(--text-muted); font-weight: 600; margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.trend-views i { color: #FF6EB4; font-size: 10px; }
@media (hover: hover) { .trend-card:hover .trend-thumb img { transform: scale(1.06); } }

/* ৫. স্মুথ অ্যানিমেশন / বাটন হোভার */
.chip, .lock-btn, .download-btn, .detail-action-btn { transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease; }
.chip:active, .detail-action-btn:active, .download-btn:active { transform: scale(.97); }
@media (hover: hover) {
    .chip:hover { border-color: rgba(255, 46, 147, 0.5); color: #fff; }
    .detail-action-btn:hover { background: rgba(255, 255, 255, 0.1); }
    .download-btn:hover { box-shadow: 0 6px 24px rgba(16, 185, 129, 0.55); }
}

/* ৬. ভিডিও প্লেয়ার পেজ */
.custom-player { border-radius: 16px; border: 1px solid rgba(255, 46, 147, 0.28); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 46, 147, 0.08); }
.detail-title { font-size: 17px; font-weight: 800; }
.detail-meta-row { padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.detail-meta-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-meta-left .grid-meta-item i { color: #FF6EB4; }
.detail-desc { border-radius: 16px; }
.detail-section-title { font-size: 15px; }

/* ৭. ফুটার ও 404 */
.site-footer { margin: 8px 16px 24px; padding: 18px 16px; text-align: center; background: var(--bg-surface); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 16px; }
.site-footer .ft-brand { font-size: 13px; font-weight: 900; letter-spacing: .6px; color: #fff; }
.site-footer .ft-brand b { color: var(--accent-red); }
.site-footer .ft-links { display: flex; justify-content: center; gap: 16px; margin: 10px 0 8px; font-size: 11px; font-weight: 700; }
.site-footer .ft-links a { color: var(--text-secondary); transition: color .2s; }
.site-footer .ft-links a:hover { color: #FF6EB4; }
.site-footer .ft-copy { font-size: 10px; color: var(--text-muted); }
.nf-wrap { text-align: center; padding: 56px 16px; }
.nf-code { font-size: 78px; font-weight: 900; line-height: 1; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px var(--accent-red-glow)); }
.nf-title { font-size: 16px; font-weight: 800; margin: 12px 0 6px; color: #fff; }
.nf-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.nf-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 9999px; background: var(--accent-gradient); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 4px 18px var(--accent-red-glow); }

@media (prefers-reduced-motion: reduce) {
    .grid-thumb-box, .trend-badge i, .trend-fire i { animation: none; }
    .grid-card, .grid-thumb-box img, .grid-play-btn { transition: none; }
}

/* =====================================================================
   v9 — মোবাইল "ভিডিও-টিউব" লুক (শুধু মোবাইল; ফিচার/ডেটা অপরিবর্তিত)
   ===================================================================== */
.content-padding { padding: 12px 12px 16px; }

/* সার্চ বার: বড় ও পরিষ্কার */
.search-box { margin-bottom: 12px; }
.search-field { padding: 14px 16px 14px 44px; font-size: 14px; border-radius: 12px; }

/* ক্যাটাগরি চিপ: উপরে আটকে থাকবে (স্ক্রলে সবসময় হাতের কাছে) */
.category-chips { position: sticky; top: 66px; z-index: 50; margin: 0 -12px 12px; padding: 8px 12px; background: rgba(7, 8, 13, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.chip { padding: 8px 15px; font-size: 12px; font-weight: 700; }
.chip.active { background: var(--accent-gradient); color: #fff; border-color: transparent; box-shadow: 0 3px 14px var(--accent-red-glow); }
.chip.active .chip-count { background: rgba(0, 0, 0, 0.3); color: #fff; }

/* সেকশন হেডার: বাঁ পাশে লাল দাগ */
.all-title, .trend-title, .detail-section-title { position: relative; padding-left: 12px; font-size: 15px; font-weight: 800; color: #fff; }
.all-title::before, .trend-title::before, .detail-section-title::before { content: ''; position: absolute; left: 0; top: 50%; width: 4px; height: 18px; margin-top: -9px; border-radius: 4px; background: var(--accent-gradient); box-shadow: 0 0 10px var(--accent-red-glow); }
.all-title i, .trend-title i, .detail-section-title i { color: #FF6EB4; }
.all-title small, .trend-title small { margin-left: 2px; }
.all-title { margin-bottom: 12px; }

/* কার্ড: টিউব স্টাইল থাম্বনেইল */
.feed-grid { gap: 16px 10px; }
.grid-card { background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.grid-card:active { transform: scale(0.98); }
.grid-thumb-box { border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.grid-thumb-overlay { background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 35%, rgba(0, 0, 0, 0.6) 100%); }
.grid-views-pill { position: absolute; bottom: 7px; right: 7px; z-index: 2; pointer-events: none; display: inline-flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 6px; letter-spacing: .2px; }
.grid-views-pill i { color: #FF6EB4; font-size: 9px; }
.grid-cat-tag { bottom: 7px; left: 7px; background: rgba(0, 0, 0, 0.72); border: 0; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-info { padding: 9px 2px 0; }
.grid-title { font-size: 13px; font-weight: 700; line-height: 1.35; margin-bottom: 5px; min-height: 35px; }
.grid-meta { font-size: 11px; }
.grid-watch { color: #FF6EB4; font-weight: 700; }
.grid-watch i { font-size: 8px; }

/* New Video ব্যানার ও স্টোরি বার */
.new-banner { margin-bottom: 14px; }
.nb-slide { border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.story-scroll-wrap { gap: 14px; padding-bottom: 12px; }
.story-ring { width: 60px; height: 60px; }

/* ট্রেন্ডিং ও ভিডিও পেজ */
.trend-sec { margin-bottom: 22px; }
.detail-body { padding-left: 12px; padding-right: 12px; }
.custom-player { border-radius: 14px; }
.detail-actions .detail-action-btn { border-radius: 12px; padding: 13px; }
.page-pager a { padding: 8px 14px; font-size: 12px; }
.page-pager a.on { background: var(--accent-gradient); color: #fff; box-shadow: 0 3px 12px var(--accent-red-glow); }

/* v10 — ট্রেন্ডিং লেখা ছোট; থাম্বনেইলের নিচের ট্যাগ একটু উপরে ও ছোট */
.trend-badge, .trend-fire { font-size: 8px; padding: 2px 6px 2px 5px; gap: 3px; letter-spacing: .4px; border-radius: 5px; }
.trend-badge i, .trend-fire i { font-size: 8px; }
.trend-fire { top: 6px; left: 6px; }
.trend-title, .all-title, .detail-section-title { font-size: 13px; }
.trend-title small, .all-title small { font-size: 9px; }
.trend-name { font-size: 11px; margin-top: 6px; }
.trend-views { font-size: 10px; }
.grid-views-pill { bottom: 12px; right: 7px; font-size: 9px; padding: 2px 6px; gap: 3px; border-radius: 5px; }
.grid-views-pill i { font-size: 8px; }
.grid-cat-tag { bottom: 12px; left: 7px; font-size: 8.5px; padding: 2px 6px; border-radius: 5px; max-width: 52%; }
.new-badge { font-size: 8px; padding: 2px 6px 2px 5px; }
.grid-vip-tag { font-size: 8px; padding: 2px 6px; }

/* v11 — থাম্বনেইলের ব্যাজ: আরও ছোট, একদম কোণায় (ছবির ওপর কম পড়ে) */
.grid-top-tags { top: 4px; left: 4px; right: 4px; align-items: flex-start; }
.grid-tag-col { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 3px; max-width: calc(100% - 28px); }
.trend-badge, .trend-fire, .new-badge, .grid-vip-tag { font-size: 7px; padding: 1.5px 4px 1.5px 3.5px; gap: 2px; border-radius: 4px; letter-spacing: .3px; line-height: 1.25; }
.trend-badge i, .trend-fire i, .grid-vip-tag i { font-size: 7px; }
.new-badge i { width: 3.5px; height: 3.5px; }
.trend-fire { top: 4px; left: 4px; }
.grid-fav-btn { width: 22px; height: 22px; font-size: 10px; border-width: 1px; }
.grid-views-pill { bottom: 4px; right: 4px; font-size: 7.5px; padding: 1.5px 5px; gap: 3px; border-radius: 4px; }
.grid-views-pill i { font-size: 7px; }
.grid-cat-tag { bottom: 4px; left: 4px; font-size: 7.5px; padding: 1.5px 5px; border-radius: 4px; max-width: 58%; }

/* ===== Layout update: compact banner, smaller category circles, trending cards = grid card size ===== */
.nb-slide { aspect-ratio: 2.3 / 1; }
.nb-track { border-radius: 16px; }
.nb-head { margin-bottom: 7px; }
.new-banner { margin-bottom: 10px; }
.nb-tag { top: 8px; left: 8px; padding: 3px 9px 3px 7px; font-size: 9px; }
.nb-bottom { left: 11px; right: 11px; bottom: 10px; gap: 10px; }
.nb-title { font-size: 12px; -webkit-line-clamp: 1; }
.nb-watch { padding: 6px 11px; font-size: 10px; }
.nb-dots { margin-top: 7px; }

.story-scroll-wrap { gap: 10px; padding-bottom: 8px; }
.story-item { gap: 4px; }
.story-ring { width: 46px; height: 46px; padding: 2px; }
.story-label { font-size: 9px; max-width: 50px; }

.trend-scroll { gap: 10px; }
.trend-card { flex: 0 0 calc((100% - 50px) / 2); }
.trend-name { font-size: 13px; font-weight: 700; line-height: 1.35; margin-top: 9px; }
.trend-views { font-size: 11px; }

/* ===== Card preview (shown only on cards that have a preview link) ===== */
.grid-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .2s ease; z-index: 1; pointer-events: none; -webkit-user-drag: none; }
.grid-preview.on { opacity: 1; }
.grid-thumb-box[data-preview] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* ===== Fix: off-screen card placeholder height now matches real card (no jump while scrolling) ===== */
.grid-card { contain-intrinsic-size: auto 150px; }

/* ===== Video page: smaller gap between back arrow and player ===== */
.detail-header { padding-top: 8px; padding-bottom: 8px; }
.detail-body { padding-top: 6px; }
.crumbs { margin-bottom: 6px; line-height: 1.4; }


/* ===== নতুন হেডার: মেনু (বামে) · নাম (মাঝে) · সার্চ (ডানে) ===== */
.top-bar { gap: 10px; min-height: 66px; }
.tb-btn { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); color: #FF6EB4; font-size: 16px; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s, transform .15s; }
.tb-btn:active { transform: scale(.94); }
.tb-btn.on { background: rgba(255, 46, 147, 0.16); border-color: rgba(255, 46, 147, 0.55); box-shadow: 0 0 14px rgba(255, 46, 147, 0.35); }
.top-bar .brand-identity { flex: 1; min-width: 0; justify-content: center; gap: 0; }
.top-bar .brand-title-wrap { align-items: center; }
.top-bar .brand-main-title { gap: 7px; line-height: 1.1; justify-content: center; }
.top-bar .brand-word-1, .top-bar .brand-word-2 { font-family: 'Pacifico', 'Brush Script MT', 'Segoe Script', cursive; font-weight: 400; font-size: 24px; letter-spacing: 0.5px; text-transform: none; }
.top-bar .brand-word-1 { color: #FFFFFF; text-shadow: 0 0 10px rgba(255, 255, 255, 0.25); }
.top-bar .brand-word-2 { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: #FF1744; color: #FF1744; text-shadow: 0 0 14px rgba(255, 23, 68, 0.6); filter: none; }
.top-bar .brand-badge { align-self: flex-start; margin-top: 2px; }
.top-bar .brand-sub-bar { justify-content: center; margin-top: 0; }
.tb-panel { position: absolute; left: 0; right: 0; top: 100%; background: rgba(8, 9, 13, 0.98); border-bottom: 1px solid rgba(255, 46, 147, 0.35); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55); padding: 12px 16px 14px; max-height: 70vh; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.tb-panel.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
.tb-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tb-cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: #E2E8F0; font-size: 13px; font-weight: 600; min-width: 0; }
.tb-cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-cat small { flex: 0 0 auto; font-size: 10px; padding: 1px 7px; border-radius: 10px; background: rgba(255, 46, 147, 0.18); color: #FF6EB4; font-weight: 700; }
.tb-cat:active, .tb-cat.active { background: rgba(255, 46, 147, 0.16); border-color: rgba(255, 46, 147, 0.55); color: #fff; }
.tb-search .search-box { margin: 0; }

