/* =========================================
   LiveTV BD - মেইন স্টাইলশিট
   ডার্ক টিভি স্ট্রিমিং UI
   ========================================= */

/* ---- টোকেন সিস্টেম ---- */
:root {
    --bg-base:     #0a0d14;
    --bg-surface:  #111520;
    --bg-card:     #161b2e;
    --bg-card-hover: #1d2340;
    --bg-input:    #1a1f30;

    --accent:      #e63e3e;
    --accent-glow: rgba(230, 62, 62, 0.25);
    --accent-2:    #ff6b35;
    --live-green:  #22c55e;

    --text-primary:   #f0f2f8;
    --text-secondary: #8892aa;
    --text-muted:     #4a5270;

    --border:      rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.15);

    --font-bn:     'Hind Siliguri', 'Segoe UI', sans-serif;
    --font-en:     'Space Grotesk', sans-serif;

    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;

    --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px var(--accent-glow);

    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- বেস ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-bn);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-2); }

/* ---- স্ক্রলবার ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ============================================
   নেভিগেশন
   ============================================ */
#mainNav {
    background: rgba(10, 13, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
    z-index: 1030;
}

.nav-logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff;
    box-shadow: var(--shadow-glow);
}

.nav-brand-text {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* সার্চ */
.nav-search { width: 100%; max-width: 420px; position: relative; }
.search-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); z-index: 2;
    pointer-events: none;
}
.search-input {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: 50px !important;
    padding: 0.5rem 1rem 0.5rem 2.4rem;
    font-size: 0.88rem;
    width: 100%;
    transition: var(--transition);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    background: var(--bg-card) !important;
    outline: none;
}
.search-suggestions {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: none;
    z-index: 1000;
    box-shadow: var(--shadow-card);
}
.search-suggestions.show { display: block; }
.suggestion-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    font-size: 0.85rem;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--bg-card-hover); color: var(--accent); }
.suggestion-img {
    width: 32px; height: 32px; object-fit: contain;
    border-radius: 4px; background: var(--bg-input);
}

/* নেভ লিংক */
.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.88rem;
    padding: 0.45rem 0.75rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.navbar-nav .nav-link:hover { color: var(--text-primary) !important; background: var(--bg-input); }

/* ক্যাটাগরি ড্রপডাউন */
.cat-dropdown {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 220px;
}
.cat-dropdown .dropdown-item {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    display: flex; align-items: center; gap: 8px;
    transition: var(--transition);
}
.cat-dropdown .dropdown-item:hover { color: var(--accent); background: var(--bg-input); }
.cat-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
}

/* ============================================
   হিরো সেকশন
   ============================================ */
.hero-section {
    background: linear-gradient(160deg, #0f1629 0%, #0a0d14 40%, #0d0a14 100%);
    padding: 70px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 70% at 70% 30%, rgba(230,62,62,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-title {
    font-family: var(--font-en);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}
.hero-title .accent-word {
    color: var(--accent);
    display: inline-block;
}
.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 1rem 0 2rem;
}
.hero-stats {
    display: flex; gap: 2rem; flex-wrap: wrap;
}
.stat-item { }
.stat-num {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.hero-visual {
    position: relative;
    display: flex; justify-content: center; align-items: center;
}
.hero-tv-frame {
    width: 100%; max-width: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    position: relative;
}
.hero-tv-screen {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1040 0%, #0a0d14 50%, #140a10 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.hero-play-btn {
    width: 64px; height: 64px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff;
    box-shadow: 0 0 0 12px var(--accent-glow), var(--shadow-glow);
    animation: pulse-play 2s infinite;
    cursor: pointer;
}
@keyframes pulse-play {
    0%, 100% { box-shadow: 0 0 0 8px rgba(230,62,62,0.2), 0 0 30px rgba(230,62,62,0.2); }
    50% { box-shadow: 0 0 0 18px rgba(230,62,62,0.08), 0 0 50px rgba(230,62,62,0.3); }
}
.hero-live-tag {
    position: absolute; top: 10px; left: 10px;
    background: var(--accent);
    color: #fff; font-size: 0.7rem; font-weight: 700;
    padding: 2px 8px; border-radius: 4px;
    letter-spacing: 0.05em;
    display: flex; align-items: center; gap: 4px;
}
.hero-channel-strip {
    padding: 10px 14px;
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid var(--border);
}
.hero-ch-name { font-size: 0.82rem; color: var(--text-primary); font-weight: 500; }
.hero-ch-cat { font-size: 0.72rem; color: var(--text-muted); }

/* ============================================
   ফিল্টার বার
   ============================================ */
.filter-bar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
    position: sticky; top: 60px; z-index: 100;
}
.filter-scroll {
    display: flex; align-items: center; gap: 8px;
    overflow-x: auto; padding-bottom: 2px;
    scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.82rem;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-bn);
    flex-shrink: 0;
}
.filter-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============================================
   সেকশন হেডার
   ============================================ */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.4rem;
}
.section-title {
    font-family: var(--font-en);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex; align-items: center; gap: 8px;
    letter-spacing: -0.02em;
}
.section-title .title-icon {
    color: var(--accent); font-size: 1rem;
}
.section-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    transition: var(--transition);
}
.section-link:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================
   চ্যানেল কার্ড
   ============================================ */
.channel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex; flex-direction: column;
    height: 100%;
    position: relative;
}
.channel-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.channel-card.featured {
    border-color: rgba(230,62,62,0.3);
}
.featured-badge {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    background: var(--accent);
    color: #fff; font-size: 0.65rem; font-weight: 700;
    padding: 2px 7px; border-radius: 4px;
    letter-spacing: 0.04em;
    display: flex; align-items: center; gap: 3px;
}
.channel-thumb {
    aspect-ratio: 16/9;
    background: var(--bg-surface);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.channel-logo {
    max-width: 70%; max-height: 60%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    transition: var(--transition);
}
.channel-card:hover .channel-logo { transform: scale(1.05); }
.channel-thumb-fallback {
    font-size: 2.5rem; color: var(--text-muted);
}
/* হোভার ওভারলে */
.channel-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.channel-card:hover .channel-overlay { opacity: 1; }
.overlay-play {
    width: 48px; height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff;
    box-shadow: var(--shadow-glow);
    transform: scale(0.8); transition: var(--transition);
}
.channel-card:hover .overlay-play { transform: scale(1); }

.channel-body {
    padding: 0.85rem;
    display: flex; flex-direction: column; flex: 1;
}
.channel-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.channel-meta {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.75rem;
}
.category-badge {
    background: rgba(230,62,62,0.15);
    color: var(--accent);
    border: 1px solid rgba(230,62,62,0.25);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.view-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 3px;
}
.watch-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-family: var(--font-bn);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%;
    text-decoration: none;
}
.watch-btn:hover {
    background: #c73232; color: #fff;
    transform: scale(1.01);
}

/* ============================================
   স্কেলেটন লোডার
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-wave 1.4s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-wave {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.skeleton-thumb { aspect-ratio: 16/9; }
.skeleton-body { padding: 0.85rem; }
.skeleton-line { height: 12px; margin-bottom: 8px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-btn { height: 36px; border-radius: var(--radius-sm); }

/* ============================================
   ইনফিনিট স্ক্রল লোডার
   ============================================ */
.load-more-trigger {
    display: flex; justify-content: center; padding: 2rem 0;
}
.load-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   প্লেয়ার পেজ
   ============================================ */
.player-section {
    background: #000;
    min-height: 50vh;
    position: relative;
}
.player-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    max-height: 75vh;
    overflow: hidden;
}
#videoPlayer {
    width: 100%; height: 100%;
    display: block;
}
.player-controls-bar {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 1.5rem 1rem 0.75rem;
    display: flex; align-items: center; gap: 12px;
    opacity: 0; transition: var(--transition);
}
.player-wrapper:hover .player-controls-bar { opacity: 1; }

.player-btn {
    background: none; border: none; color: #fff;
    font-size: 1.2rem; cursor: pointer;
    padding: 0.3rem; border-radius: 4px;
    transition: var(--transition);
    line-height: 1;
}
.player-btn:hover { color: var(--accent); }

.volume-range {
    width: 80px; height: 4px;
    accent-color: var(--accent);
}

.player-live-badge {
    margin-left: auto;
    background: var(--accent);
    color: #fff; font-size: 0.7rem; font-weight: 700;
    padding: 3px 10px; border-radius: 4px;
    display: flex; align-items: center; gap: 4px;
    letter-spacing: 0.05em;
}
.live-dot-animated {
    width: 6px; height: 6px; border-radius: 50%;
    background: #fff;
    animation: blink 1.2s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
}

/* চ্যানেল ইনফো */
.channel-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}
.channel-info-logo {
    width: 60px; height: 60px;
    object-fit: contain;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 6px;
}
.channel-info-name {
    font-family: var(--font-en);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.channel-info-cat {
    margin-top: 4px;
}

/* শেয়ার বার */
.share-bar {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1rem;
}
.share-btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-bn);
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* সম্পর্কিত চ্যানেল */
.related-channel-item {
    display: flex; align-items: center; gap: 10px;
    padding: 0.65rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 8px;
}
.related-channel-item:hover { border-color: var(--accent); transform: translateX(3px); }
.related-logo {
    width: 42px; height: 42px;
    object-fit: contain;
    background: var(--bg-input);
    border-radius: 6px;
    padding: 4px; flex-shrink: 0;
}
.related-name { font-size: 0.85rem; color: var(--text-primary); font-weight: 500; }
.related-cat { font-size: 0.72rem; color: var(--text-muted); }

/* ============================================
   অ্যাডমিন প্যানেল
   ============================================ */
.admin-wrapper {
    display: flex; min-height: 100vh;
}
.admin-sidebar {
    width: 250px; flex-shrink: 0;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 200;
    transition: var(--transition);
}
.sidebar-brand {
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.sidebar-brand-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.9rem;
}
.sidebar-brand-text {
    font-family: var(--font-en);
    font-size: 0.95rem; font-weight: 700;
    color: var(--text-primary);
}
.sidebar-nav { padding: 1rem 0.75rem; flex: 1; overflow-y: auto; }
.sidebar-section-title {
    font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--text-muted);
    padding: 0.5rem 0.75rem; margin-bottom: 4px;
}
.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 0.55rem 0.75rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 2px;
}
.sidebar-link:hover { color: var(--text-primary); background: var(--bg-input); }
.sidebar-link.active { color: #fff; background: var(--accent); }
.sidebar-link i { font-size: 0.95rem; width: 18px; text-align: center; }

.admin-content {
    margin-left: 250px;
    flex: 1;
    background: var(--bg-base);
    min-height: 100vh;
}
.admin-topbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
}
.admin-page-title {
    font-family: var(--font-en);
    font-size: 1rem; font-weight: 600;
    color: var(--text-primary);
}
.admin-body { padding: 1.5rem; }

/* স্ট্যাট কার্ড */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex; align-items: center; gap: 1rem;
    transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.stat-card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.stat-card-icon.red { background: rgba(230,62,62,0.15); color: var(--accent); }
.stat-card-icon.blue { background: rgba(59,130,246,0.15); color: #3b82f6; }
.stat-card-icon.green { background: rgba(34,197,94,0.15); color: var(--live-green); }
.stat-card-icon.orange { background: rgba(249,115,22,0.15); color: #f97316; }
.stat-card-value {
    font-family: var(--font-en);
    font-size: 1.7rem; font-weight: 700;
    color: var(--text-primary); line-height: 1;
}
.stat-card-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* অ্যাডমিন টেবিল */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
    vertical-align: middle;
}
.admin-table tr:hover td { background: var(--bg-card); }
.admin-table img.table-logo {
    width: 36px; height: 36px;
    object-fit: contain; border-radius: 4px;
    background: var(--bg-input); padding: 2px;
}

/* অ্যাডমিন ফর্ম */
.admin-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}
.form-control, .form-select {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.875rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    outline: none;
}
.form-control::placeholder { color: var(--text-muted) !important; }
.form-label {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    display: block;
}

/* বাটন */
.btn-accent {
    background: var(--accent);
    color: #fff; border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
    font-family: var(--font-bn);
    cursor: pointer;
    transition: var(--transition);
}
.btn-accent:hover { background: #c73232; }
.btn-outline-accent {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    cursor: pointer; transition: var(--transition);
}
.btn-outline-accent:hover { background: var(--accent); color: #fff; }

/* ============================================
   ফুটার
   ============================================ */
.site-footer { border-top: 1px solid var(--border); }
.footer-top {
    background: var(--bg-surface);
    padding: 3rem 0 2rem;
}
.footer-brand {
    font-family: var(--font-en);
    font-size: 1.2rem; font-weight: 700;
    color: var(--text-primary);
    display: flex; align-items: center;
}
.footer-brand i { color: var(--accent); }
.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 300px;
}
.footer-social { display: flex; gap: 8px; }
.social-btn {
    width: 34px; height: 34px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem; transition: var(--transition);
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }
.footer-heading {
    font-family: var(--font-en);
    font-size: 0.8rem; font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex; align-items: center; gap: 6px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-links a i { font-size: 0.65rem; }
.footer-bottom {
    background: var(--bg-base);
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }
.footer-tech { color: var(--text-muted); font-family: var(--font-en); font-size: 0.75rem; }
.live-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    color: var(--live-green);
    padding: 4px 12px; border-radius: 50px;
    font-size: 0.78rem; font-weight: 500;
}
.live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--live-green);
    animation: blink 1.2s infinite;
}

/* ============================================
   স্ক্রল টু টপ
   ============================================ */
.scroll-top-btn {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 40px; height: 40px;
    background: var(--accent);
    color: #fff; border: none;
    border-radius: 50%;
    font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-glow);
    opacity: 0; pointer-events: none;
    transition: var(--transition);
}
.scroll-top-btn.show { opacity: 1; pointer-events: all; }
.scroll-top-btn:hover { background: #c73232; transform: translateY(-2px); }

/* ============================================
   অ্যালার্ট ও টোস্ট
   ============================================ */
.toast-container { position: fixed; top: 70px; right: 16px; z-index: 9999; }
.custom-toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    min-width: 280px;
    box-shadow: var(--shadow-card);
}
.alert-success { border-left: 3px solid var(--live-green) !important; }
.alert-danger { border-left: 3px solid var(--accent) !important; }
.alert-info { border-left: 3px solid #3b82f6 !important; }

/* ============================================
   রেসপন্সিভ
   ============================================ */
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-left: 0; }
    .hero-visual { display: none; }
    .nav-search { max-width: 100%; margin: 0.5rem 0; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 1.75rem; }
    .hero-stats { gap: 1.2rem; }
    .stat-num { font-size: 1.2rem; }
    .share-bar { gap: 6px; }
    .share-btn { font-size: 0.75rem; padding: 0.35rem 0.7rem; }
}

/* ============================================
   অ্যানিমেশন ইউটিলিটি
   ============================================ */
.fade-in {
    animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* গ্রিড ট্রান্সিশন */
.channels-grid .channel-col {
    animation: fadeIn 0.35s ease both;
}
.channels-grid .channel-col:nth-child(2) { animation-delay: 0.05s; }
.channels-grid .channel-col:nth-child(3) { animation-delay: 0.10s; }
.channels-grid .channel-col:nth-child(4) { animation-delay: 0.15s; }

/* এরর স্টেট */
.error-state {
    text-align: center; padding: 3rem 1rem;
    color: var(--text-muted);
}
.error-state i { font-size: 3rem; color: var(--accent); margin-bottom: 1rem; }
.error-state p { max-width: 300px; margin: 0 auto; }

/* এম্পটি স্টেট */
.empty-state {
    text-align: center; padding: 4rem 1rem;
    color: var(--text-muted);
}
.empty-state i { font-size: 3.5rem; opacity: 0.3; margin-bottom: 1rem; display: block; }

/* ব্যাজ ওভাররাইড */
.badge { font-family: var(--font-bn); font-weight: 500; }

/* লগইন পেজ */
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 400px; width: 100%;
    box-shadow: var(--shadow-card);
}
.login-logo {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-glow);
}
