/* UI Components Styles for Bhuban - Vibrant Sunset Theme */

:root {
    --accent-orange: #ff6b35;
    --accent-pink: #ff006e;
    --accent-yellow: #ffd60a;
    --accent-gradient: linear-gradient(135deg, #ff6b35 0%, #ff006e 50%, #ffd60a 100%);
    --bg-card: rgba(30, 27, 75, 0.4);
    --border-color: rgba(255, 107, 107, 0.25);
    --text-primary: #ffffff;
    --text-secondary: #aaa;
    --accent-primary: #ff6b35;
    --error: #ff4444;
    --bg-hover: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* ── Typography & Colors ── */
.text-bold { font-weight: 600; }
.text-extra-bold { font-weight: 700; }
.text-10 { font-size: 10px; }
.text-11 { font-size: 11px; }
.text-12 { font-size: 12px; }
.text-13 { font-size: 13px; }
.text-14 { font-size: 14px; }
.text-15 { font-size: 15px; }
.text-16 { font-size: 16px; }
.text-20 { font-size: 20px; }
.text-24 { font-size: 24px; }
.text-28 { font-size: 28px; }
.text-36 { font-size: 36px; }
.text-500 { font-weight: 500; }
.text-800 { font-weight: 800; }
.text-upper { text-transform: uppercase; }
.text-italic { font-style: italic; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-primary); }
.text-error { color: var(--error); }
.text-white { color: white; }
.text-white-85 { color: rgba(255, 255, 255, 0.85); }
.text-white-60 { color: rgba(255, 255, 255, 0.6); }
.text-dev { color: #00d4ff !important; }
.text-creator { color: #FF4500 !important; }
.text-premium { color: #ffd60a !important; }
.text-center { text-align: center; }
.text-red { color: var(--error); }

/* ── Layout Utilities ── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-align-center { display: flex; align-items: center; }
.flex-align-end { display: flex; align-items: flex-end; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-4 { gap: 4px; }
.flex-gap-8 { gap: 8px; }
.flex-gap-12 { gap: 12px; }
.flex-gap-16 { gap: 16px; }
.flex-gap-20 { gap: 20px; }
.flex-gap-24 { gap: 24px; }
.flex-gap-30 { gap: 30px; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex: 1; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-shrink-1 { flex-shrink: 1; }
.flex-col { flex-direction: column; }
.p-relative { position: relative; }
.p-absolute { position: absolute; }
.p-fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.full-inset { top: 0; left: 0; right: 0; bottom: 0; }
.z-10 { z-index: 10; }
.z-100 { z-index: 100; }
.z-2000 { z-index: 2000; }
.v-middle { vertical-align: middle; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.obj-cover { object-fit: cover; }
.no-decoration { text-decoration: none; }
.hidden { display: none !important; }
.v-hidden { visibility: hidden !important; opacity: 0 !important; }

/* ── Specific Overrides ── */
.w-40 { width: 40px; }
.w-20 { width: 20px; }
.w-100 { width: 100px; }
.h-100 { height: 100px; }
.w-200 { max-width: 200px; }
.h-40 { height: 40px; }
.h-20 { height: 20px; }
.max-w-480 { max-width: 480px; }
.max-w-800 { max-width: 800px; }
.aspect-16-9 { aspect-ratio: 16/9; }
.br-4 { border-radius: 4px; }
.br-8 { border-radius: 8px; }
.br-12 { border-radius: 12px; }
.br-16 { border-radius: 16px; }
.br-20 { border-radius: 20px; }
.br-24-t { border-radius: 24px 24px 0 0; }
.br-50 { border-radius: 50%; }

.overflow-y-auto { overflow-y: auto; }
.max-h-90vh { max-height: 90vh; }
.min-w-250 { min-width: 250px; }

.m-0 { margin: 0; }
.ml-8 { margin-left: 8px; }
.ml-12 { margin-left: 12px; }
.mt-2 { margin-top: 2px; }
.mt-8-0 { margin: 8px 0; }
.mt-10 { margin-top: 10px; }
.p-0 { padding: 0; }
.p-8-0 { padding: 8px 0; }
.pb-12 { padding-bottom: 12px; }
.p-10 { padding: 10px; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.p-25 { padding: 25px; }
.p-40 { padding: 40px; }
.p-10-20 { padding: 10px 20px; }
.p-10-18 { padding: 10px 18px; }
.p-80-20 { padding: 80px 20px; }

.bg-white-05 { background: rgba(255, 255, 255, 0.05); }
.bg-white-10 { background: rgba(255, 255, 255, 0.1); }
.bg-white-15 { background: rgba(255, 255, 255, 0.15); }
.bg-black-30 { background: rgba(0, 0, 0, 0.3); }
.bg-white-005 { background: rgba(255, 255, 255, 0.05); }
.bg-1e1e1e { background: #1e1e1e; }
.bg-2a2a2a { background: #2a2a2a; }
.bg-141414 { background: #141414; }
.bg-trans { background: transparent; }
.bg-accent { background: var(--accent-primary); }
.border-none { border: none !important; }
.border-accent-30 { border: 1px solid rgba(255, 107, 107, 0.3); }
.pointer { cursor: pointer; }

.opacity-07 { opacity: 0.7; }
.opacity-03 { opacity: 0.3; }
.whitespace-nowrap { white-space: nowrap; }
.text-ellipsis { text-overflow: ellipsis; overflow: hidden; }
.stroke-3 { stroke-width: 3px; }
.transition-all-300 { transition: all 0.3s ease; }
.transition-bg-200 { transition: background 0.2s; }

.line-height-18 { line-height: 1.8; }
.border-l-4-accent { border-left: 4px solid var(--accent-primary); }
.border-t-1-333 { border-top: 1px solid #333; }
.border-1-333 { border: 1px solid #333; }
.border-1-white-10 { border: 1px solid rgba(255, 255, 255, 0.1); }
.border-1-white-20 { border: 1px solid rgba(255, 255, 255, 0.2); }
.border-accent { border-color: var(--accent-primary) !important; }
.border-1-trans { border: 1px solid transparent; }
.mt-15 { margin-top: 15px; }
.whitespace-pre-wrap { white-space: pre-wrap; }

.border-b { border-bottom: 1px solid var(--border-color); }
.header-icon-20 { font-size: 20px; }

.mb-4 { margin-bottom: 4px; }
.mb-5 { margin-bottom: 5px; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mr-8 { margin-right: 8px; }
.ml-auto { margin-left: auto; }
.mt-neg-30 { margin-top: -30px; }
.h-80 { height: 80px; }
.h-60 { height: 60px; }
.shadow-32 { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); }
.shadow-glow { box-shadow: 0 4px 16px var(--glow-color); }
.shadow-glow-large { box-shadow: 0 8px 32px var(--glow-color); }
.block { display: block; }

.grid-stats-4 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 15px; 
}
.grid-traffic-4 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 15px; 
}
.grid-cols-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ── Compatibility & Theming ── */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
/* Standard scrollbar properties removed for cross-browser compatibility */

.glass {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* ── Sidebar Special Links ── */
.sidebar-special-creator {
    background: linear-gradient(90deg, rgba(255, 69, 0, 0.2), transparent);
    border-left: 3px solid #FF4500;
}
.sidebar-special-dev {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.2), transparent);
    border-left: 3px solid #00d4ff;
}
.sidebar-special-premium {
    background: linear-gradient(90deg, rgba(255, 214, 10, 0.2), transparent);
    border-left: 3px solid #ffd60a;
}

/* ── Channel Page Components ── */
.channel-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: var(--accent-gradient);
    opacity: 0.15;
    border-radius: 24px 24px 0 0;
    z-index: 0;
    pointer-events: none;
}

.channel-details-wrapper {
    padding: 0 32px 24px 32px;
    background: var(--bg-primary);
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.avatar-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    opacity: 0.5;
    animation: rotate 3s linear infinite;
    z-index: -1;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid;
    font-size: 14px;
}

.stat-pill-video {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.stat-pill-shorts {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.2);
}

.stat-pill-subs {
    background: rgba(118, 75, 162, 0.1);
    border-color: rgba(118, 75, 162, 0.2);
}
.sidebar-title {
    padding: 8px 24px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.build-tag {
    position: fixed;
    bottom: 5px;
    right: 5px;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 9999;
}

/* ── Specific Components ── */
.upload-btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.account-dropdown {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.advanced-edit-section {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.bg-accent-blue-05 { background: rgba(102, 126, 234, 0.05); }
.text-accent-blue { color: #667eea; }
.aspect-9-16 { aspect-ratio: 9/16; }
.border-2-333 { border: 2px solid #333; }
.list-disc { list-style: disc; }
.pl-20 { padding-left: 20px; }
.p-15 { padding: 15px; }
.bg-accent-10 { background: rgba(255, 107, 53, 0.1); }
.min-w-140 { min-width: 140px; }
.overflow-x-auto { overflow-x: auto; }
.pb-5 { padding-bottom: 5px; }

.bg-black-90 { background: rgba(0, 0, 0, 0.9); }
.bg-black-80 { background: rgba(0, 0, 0, 0.8); }
.bg-black-70 { background: rgba(0, 0, 0, 0.7); }
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }
.object-fit-cover { object-fit: cover; }
.br-50p { border-radius: 50%; }
.pt-56-25p { padding-top: 56.25%; } /* 16:9 Aspect Ratio hack for legacy browsers */

.text-insta { color: #E1306C; }
.text-twitter { color: #1DA1F2; }
.text-youtube { color: #FF0000; }
.opacity-0 { opacity: 0; }
.opacity-1 { opacity: 1; }
.z-1 { z-index: 1; }
.animate-slide-up { animation: slide-up 0.6s ease forwards; }
.visibility-hidden { visibility: hidden; }
.visibility-visible { visibility: visible; }

/* ── Video Card Components ── */
.video-card-container { cursor: pointer; position: relative; }
.thumbnail-canvas { width:100%; height:100%; object-fit:cover; border-top-left-radius:20px; border-top-right-radius:20px; display:block; background:#1a1a2e; }
.quick-actions-overlay { position: absolute; top: 8px; right: 8px; display: none; gap: 8px; }
.action-btn-circle { width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.8); border: none; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.watch-progress-bg { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.3); }
.watch-progress-fill { height: 100%; width: 0%; background: var(--accent-primary); transition: width 0.3s; }
.video-details-container { width: 100%; overflow: hidden; }
.video-title-clamp { 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    max-height: 42px; 
}
.video-channel-clamp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-menu-btn-round { width: 32px; height: 32px; border-radius: 50%; background: transparent; border: none; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; margin-left: auto; }
.bg-1a1a2e { background: #1a1a2e; }
.bg-black-08 { background: rgba(0, 0, 0, 0.8); }
.white-03 { background: rgba(255, 255, 255, 0.3); }

.avatar-48 {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 20px;
}

/* ── Footer ── */
.footer-main {
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    opacity: 0.7;
}

.footer-link {
    color: var(--accent-primary);
    text-decoration: none;
    margin: 0 12px;
}

.footer-link:hover {
    text-decoration: underline;
}

/* ── Additional Utilities ── */
.c-creator-studio { color: #FF4500; }
.c-developer-dashboard { color: #00d4ff; }
.c-error { color: var(--error); }
.c-text-primary { color: var(--text-primary); }
.c-text-secondary { color: var(--text-secondary); }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-20 { font-size: 20px; }
.fs-24 { font-size: 24px; }
.fw-600 { font-weight: 600; }
.fw-800 { font-weight: 800; }
.mt-2 { margin-top: 2px; }
.m-8-0 { margin: 8px 0; }
.p-8-0 { padding: 8px 0; }
.border-b-1 { border-bottom: 1px solid; }
.br-circle { border-radius: 50%; }
.shadow-lg { box-shadow: 0 8px 32px var(--shadow-color); }
.transition-bg-2 { transition: background 0.2s; }

/* ── Sizing & Layout ── */
.w-40 { width: 40px; }
.h-40 { height: 40px; }
.w-168 { width: 168px; }
.h-94 { height: 94px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.obj-cover { object-fit: cover; }
.flex-shrink-0 { flex-shrink: 0; }
.mb-4 { margin-bottom: 4px; }
.lh-1-4 { line-height: 1.4; }
.sw-3 { stroke-width: 3px; }
.flex-0-1-600 { flex: 0 1 600px; }
.m-0-20 { margin: 0 20px; }
.bg-glass-light-5 { background: rgba(255, 255, 255, 0.05); }
.b-1-glass { border: 1px solid var(--glass-border); }
.br-8 { border-radius: 8px; }
.br-12 { border-radius: 12px; }
.br-20 { border-radius: 20px; }
.br-50 { border-radius: 50%; }
.outline-none { outline: none; }
.transition-all-3 { transition: all 0.3s ease; }
.jc-center { justify-content: center; }
.cursor-pointer { cursor: pointer; }
.bg-accent-gradient { background: var(--accent-gradient); }

.account-menu-item:hover { background: var(--bg-hover); }


.menu-item {
    padding: 12px 16px;
    transition: background 0.2s;
}

.menu-item:hover {
    background: var(--bg-hover);
}

.divider-h {
    height: 1px;
    background: var(--border-color);
}

.bg-white-10 { background: rgba(255, 255, 255, 0.1); }
.bg-black { background: #000; }
.c-premium { color: #ffd60a; }
.c-grey-400 { color: #aaa; }
.c-grey-500 { color: #888; }
.min-w-16 { min-width: 16px; }
.text-right { text-align: right; }
.d-box-v-clamp-2 { 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

.sidebar-section-title { padding: 8px 24px; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-special-premium { background: linear-gradient(90deg, rgba(255, 214, 10, 0.2), transparent); border-left: 3px solid #ffd60a; }

.icon-14 { width: 14px; height: 14px; }
.icon-20 { width: 20px; height: 20px; }
.icon-24 { width: 24px; height: 24px; }

/* Modal & Social Utilities */
.modal-overlay-fixed { position: fixed; inset: 0; background: var(--modal-backdrop); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.modal-content-card { background: var(--bg-card); border-radius: 16px; padding: 24px; max-width: 400px; width: 90%; }
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.btn-social { padding: 16px; border: none; border-radius: 12px; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.2s; font-weight: 600; }
.btn-social:hover { transform: translateY(-2px); filter: brightness(1.1); }
.bg-twitter { background: #1DA1F2; }
.bg-facebook { background: #4267B2; }
.bg-whatsapp { background: #25D366; }
.bg-link { background: var(--accent-primary); }
.btn-cancel { margin-top: 16px; width: 100%; padding: 12px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); cursor: pointer; transition: background 0.2s; }
.btn-cancel:hover { background: var(--bg-hover); }

/* Suggestion Utilities */
.suggestion-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: var(--glass-bg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 12px; margin-top: 8px; padding: 8px; z-index: 1000; box-shadow: 0 10px 40px var(--shadow-color); }
.suggestion-item { padding: 10px 16px; cursor: pointer; border-radius: 8px; transition: all 0.2s; display: flex; align-items: center; gap: 10px; }
.suggestion-item:hover { background: var(--bg-hover); }

/* Playlist & AI Stream Utilities */
.playlist-item-thumb { width:100px; height:56px; flex-shrink:0; border-radius:8px; overflow:hidden; }
.playlist-item-img { width:100%; height:100%; object-fit:cover; }
.playlist-item-info { flex:1; }
.playlist-item-title { font-size:13px; line-height:1.3; margin-bottom:2px; font-weight:600; }
.playlist-item-meta { font-size:11px; color:var(--text-secondary); }
.ai-stream-link { color: #3b82f6; text-decoration: none; font-weight: 600; transition: color 0.2s; }
.ai-stream-link:hover { color: #2563eb; text-decoration: underline; }
.avatar-fallback-text { font-size: 16px; font-weight: 600; }

/* Context Menu & List Utilities */
.menu-item-interactive { padding: 12px; cursor: pointer; border-radius: 8px; transition: background 0.2s; display: flex; align-items: center; gap: 10px; }
.menu-item-interactive:hover { background: var(--bg-hover); }
.list-scroll-300 { max-height: 300px; overflow-y: auto; }
.list-scroll-300::-webkit-scrollbar { width: 6px; }
.list-scroll-300::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.icon-30 { width: 30px; height: 30px; }
.icon-40 { width: 40px; height: 40px; }
.icon-64 { font-size: 64px; }
.live-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: #e63946;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    color: white;
}


/* Comments Section */
.comments-section {
    margin-top: 24px;
}

.comments-header {
    margin-bottom: 24px;
}

.comments-title {
    font-size: 20px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Comment Input */
.comment-input-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-input-wrapper {
    flex: 1;
}

.comment-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    transition: all 0.3s ease;
}

.comment-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.comment-cancel-btn,
.comment-submit-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-cancel-btn {
    background: transparent;
    color: #aaa;
}

.comment-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.comment-submit-btn {
    background: #667eea;
    color: #fff;
}

.comment-submit-btn:hover {
    background: #5568d3;
}

.comment-login-prompt {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
    margin-bottom: 24px;
}

.comment-login-prompt a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.comment-login-prompt a:hover {
    text-decoration: underline;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment {
    display: flex;
    gap: 12px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: #aaa;
}

.comment-edited {
    font-size: 11px;
    color: #888;
    font-style: italic;
}


.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: #ddd;
    margin-bottom: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comment-actions-bar {
    display: flex;
    gap: 16px;
    align-items: center;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.comment-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.comment-action-btn i {
    width: 16px;
    height: 16px;
}

/* Replies */
.reply-input-container {
    margin-top: 12px;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.view-replies-btn {
    background: none;
    border: none;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 8px;
}

.view-replies-btn:hover {
    text-decoration: underline;
}

.replies-container {
    margin-top: 12px;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Loading & Error States */
.loading,
.error,
.no-comments {
    padding: 24px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

.error {
    color: #ff6b6b;
}

/* Subscribe Button */
.subscribe-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 24px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn i {
    width: 18px;
    height: 18px;
}

.subscribe-btn.not-subscribed {
    background: #ff4444;
    color: white;
}

.subscribe-btn.not-subscribed:hover {
    background: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}


.subscribe-btn.subscribed {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.subscribe-btn.subscribed:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .comment-input-container {
        gap: 8px;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .comment-input {
        font-size: 13px;
        padding: 10px;
        min-height: 50px;
    }

    .comment-actions {
        flex-direction: row;
    }

    .comment-cancel-btn,
    .comment-submit-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .comment-text {
        font-size: 13px;
    }

    .comment-actions-bar {
        gap: 12px;
        flex-wrap: wrap;
    }

    .comment-action-btn {
        font-size: 12px;
        padding: 4px 6px;
    }

    .subscribe-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .comment-input {
        background: rgba(255, 255, 255, 0.03);
    }

    .comment-input:focus {
        background: rgba(255, 255, 255, 0.06);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment {
    animation: fadeIn 0.3s ease;
}

/* Pinned Comment */
.comment.pinned {
    background: rgba(102, 126, 234, 0.1);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.comment.pinned::before {
    content: "📌 Pinned";
    display: block;
    font-size: 11px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* ── Account Dropdown Menu ── */
.dropdown-menu-glass {
    display: none;
    position: absolute;
    top: 60px;
    right: 16px;
    min-width: 260px;
    background: var(--bg-card, rgba(30, 27, 75, 0.95));
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.08);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 10000;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-menu-glass.open {
    display: block;
}

.menu-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.menu-avatar-fix {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: var(--accent-gradient, linear-gradient(135deg, #ff6b35, #ff006e));
    color: white;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.menu-avatar-fix img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary, #ffffff);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease;
    cursor: pointer;
}

.menu-item:hover {
    background: var(--bg-hover, rgba(255, 255, 255, 0.09));
    color: var(--text-primary, #ffffff);
}

.menu-item.text-error {
    color: var(--error, #ff4444);
}

.menu-item.text-error:hover {
    background: rgba(255, 68, 68, 0.1);
}

.menu-icon {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 15px;
}

.menu-divider {
    height: 1px;
    background: var(--border-color, rgba(255, 255, 255, 0.1));
    margin: 4px 0;
}

