
/* ============================================

   Freedom View Skin - Rumble Style

   Light/Dark theme aware

   ============================================ */



.fv-app {

    --fv-bg: var(--bg-primary, #0d1117);

    --fv-bg-secondary: var(--bg-secondary, #161b22);

    --fv-bg-tertiary: var(--bg-tertiary, #21262d);

    --fv-bg-hover: var(--bg-hover, #30363d);

    --fv-text: var(--text-primary, #f0f6fc);

    --fv-text-secondary: var(--text-secondary, #8b949e);

    --fv-text-muted: var(--text-muted, #6e7681);

    --fv-border: var(--border-color, #30363d);

    --fv-accent: #85c742;

}



[data-theme="light"] .fv-app, .light-mode .fv-app, body.light .fv-app {

    --fv-bg: #ffffff;

    --fv-bg-secondary: #f6f8fa;

    --fv-bg-tertiary: #eaeef2;

    --fv-bg-hover: #d0d7de;

    --fv-text: #1f2328;

    --fv-text-secondary: #656d76;

    --fv-text-muted: #8c959f;

    --fv-border: #d0d7de;

}



.fv-app { display: flex; flex-direction: column; min-height: 100vh; background: var(--fv-bg); color: var(--fv-text); }



/* Header */

.fv-header { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 20px; background: var(--fv-bg-secondary); border-bottom: 1px solid var(--fv-border); }

.fv-header-left { display: flex; align-items: center; gap: 12px; }

.fv-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fv-text); font-size: 20px; font-weight: 700; }

.fv-logo-icon { width: 36px; height: 36px; background: var(--fv-accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #000; }

.fv-header-center { flex: 1; max-width: 600px; margin: 0 40px; }

.fv-search-form { display: flex; }

.fv-search-input { flex: 1; padding: 10px 16px; background: var(--fv-bg); border: 1px solid var(--fv-border); border-right: none; border-radius: 6px 0 0 6px; color: var(--fv-text); font-size: 14px; }

.fv-search-input::placeholder { color: var(--fv-text-muted); }

.fv-search-btn { padding: 0 20px; background: var(--fv-accent); border: 1px solid var(--fv-accent); border-radius: 0 6px 6px 0; color: #000; cursor: pointer; }

.fv-header-right { display: flex; align-items: center; gap: 12px; }



/* Skin Switcher */

.fv-skin-switcher { position: relative; }

.fv-skin-btn { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--fv-bg-tertiary); border: none; border-radius: 6px; color: var(--fv-text); cursor: pointer; font-size: 13px; }

.fv-skin-btn:hover { background: var(--fv-bg-hover); }

.fv-skin-dot { width: 10px; height: 10px; border-radius: 50%; }

.fv-skin-dropdown { position: absolute; top: 100%; right: 0; margin-top: 8px; min-width: 180px; background: var(--fv-bg-secondary); border: 1px solid var(--fv-border); border-radius: 8px; display: none; z-index: 200; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }

.fv-skin-switcher.active .fv-skin-dropdown { display: block; }

.fv-skin-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--fv-text); text-decoration: none; font-size: 14px; }

.fv-skin-option:hover { background: var(--fv-bg-tertiary); }

.fv-skin-option.active { background: var(--fv-bg-tertiary); }

.fv-skin-option .fa-check { margin-left: auto; font-size: 12px; color: var(--fv-accent); }



.fv-upload-btn { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--fv-accent); border-radius: 6px; color: #000; text-decoration: none; font-weight: 600; font-size: 14px; }



/* Body Layout */

.fv-body { display: flex; flex: 1; }



/* Sidebar */

.fv-sidebar { width: 240px; padding: 16px 0; background: var(--fv-bg-secondary); display: flex; flex-direction: column; height: calc(100vh - 60px); position: sticky; top: 60px; border-right: 1px solid var(--fv-border); }

.fv-nav { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; }

.fv-nav-item { display: flex; align-items: center; gap: 16px; padding: 10px 12px; color: var(--fv-text); text-decoration: none; border-radius: 8px; font-size: 14px; }

.fv-nav-item:hover { background: var(--fv-bg-tertiary); }

.fv-nav-item.active { background: var(--fv-accent); color: #000; }

.fv-nav-item i { width: 20px; font-size: 16px; text-align: center; }

.fv-nav-divider { height: 1px; background: var(--fv-border); margin: 12px; }



/* Sidebar Footer */

.fv-sidebar-footer { margin-top: auto; padding: 16px; border-top: 1px solid var(--fv-border); }

.fv-footer-links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; }

.fv-footer-links a { color: var(--fv-text-muted); font-size: 12px; text-decoration: none; }

.fv-footer-links a:hover { color: var(--fv-text); }

.fv-footer-tagline { font-size: 12px; color: var(--fv-accent); display: flex; align-items: center; gap: 6px; }



/* Main */

.fv-main { flex: 1; padding: 24px; }



/* Feed */

.fv-tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--fv-border); padding-bottom: 12px; }

.fv-tab { padding: 8px 16px; color: var(--fv-text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; border-radius: 6px; }

.fv-tab:hover { background: var(--fv-bg-tertiary); color: var(--fv-text); }

.fv-tab.active { background: var(--fv-accent); color: #000; }



.fv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.fv-card { text-decoration: none; color: var(--fv-text); }

.fv-card-thumb { position: relative; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }

.fv-card-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

.fv-thumb-placeholder { width: 100%; aspect-ratio: 16/9; background: var(--fv-bg-tertiary); display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--fv-text-muted); }

.fv-duration { position: absolute; bottom: 8px; right: 8px; padding: 3px 6px; background: rgba(0,0,0,0.8); border-radius: 4px; font-size: 12px; color: white; }

.fv-rumbles { position: absolute; bottom: 8px; left: 8px; padding: 4px 8px; background: var(--fv-accent); border-radius: 4px; font-size: 12px; color: #000; font-weight: 600; }

.fv-card-info h3 { font-size: 14px; font-weight: 500; margin: 0 0 6px; line-height: 1.4; }

.fv-card-channel { display: block; font-size: 13px; color: var(--fv-text-secondary); margin-bottom: 4px; }

.fv-card-stats { font-size: 12px; color: var(--fv-text-muted); }



.fv-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--fv-text-muted); }

.fv-empty i { font-size: 48px; margin-bottom: 16px; display: block; color: var(--fv-accent); }



/* Watch View */

.fv-watch { display: flex; gap: 24px; }

.fv-player-section { flex: 1; max-width: 900px; }

.fv-video { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 8px; }

.fv-video-info { padding: 16px 0; }

.fv-video-info h1 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }

.fv-video-meta { font-size: 14px; color: var(--fv-text-secondary); margin-bottom: 16px; }

.fv-video-actions { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.fv-rumble-btn { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--fv-accent); border: none; border-radius: 6px; color: #000; font-weight: 600; cursor: pointer; }

.fv-action { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--fv-bg-tertiary); border: none; border-radius: 6px; color: var(--fv-text); cursor: pointer; }

.fv-action:hover { background: var(--fv-bg-hover); }

.fv-channel-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--fv-border); border-bottom: 1px solid var(--fv-border); }

.fv-channel { display: flex; align-items: center; gap: 12px; }

.fv-avatar { width: 44px; height: 44px; background: var(--fv-bg-tertiary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--fv-text); }

.fv-channel-name { font-weight: 500; }

.fv-follow-btn { padding: 10px 20px; background: var(--fv-accent); border: none; border-radius: 6px; color: #000; font-weight: 600; cursor: pointer; }

.fv-description { padding: 16px 0; font-size: 14px; line-height: 1.6; color: var(--fv-text-secondary); }



/* Related */

.fv-related { width: 380px; flex-shrink: 0; }

.fv-related h3 { font-size: 16px; margin: 0 0 16px; }

.fv-related-item { display: flex; gap: 8px; text-decoration: none; color: var(--fv-text); margin-bottom: 12px; }

.fv-related-thumb { width: 160px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }

.fv-related-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.fv-related-info { flex: 1; }

.fv-related-info h4 { font-size: 13px; font-weight: 500; margin: 0 0 4px; line-height: 1.3; }

.fv-related-info span { display: block; font-size: 12px; color: var(--fv-text-secondary); }



@media (max-width: 1100px) { .fv-related { width: 280px; } }

@media (max-width: 900px) { .fv-watch { flex-direction: column; } .fv-related { width: 100%; } .fv-sidebar { display: none; } }

