* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark-blue: #0a0e27;
    --secondary-dark-red: #8b0000;
    --accent-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--primary-dark-blue);
    min-height: 100vh;
    padding: 20px;
    color: var(--accent-white);
    overflow-x: hidden;
    position: relative;
}

/* Animated Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: -2;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-white);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.particle:nth-child(odd) {
    background: var(--secondary-dark-red);
}

.particle:nth-child(3n) {
    background: #4a90e2;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-white) 0%, var(--secondary-dark-red) 50%, #4a90e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.4rem;
    color: var(--accent-white);
    opacity: 0.8;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.quota-status {
    margin-bottom: 2rem;
    text-align: center;
}

.quota-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.1));
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 12px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    animation: pulse-warning 2s infinite;
}

.quota-icon {
    font-size: 1.2rem;
}

.quota-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes pulse-warning {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Sentiment Ticker Styles */
.sentiment-ticker-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sentiment-ticker-container h3 {
    color: var(--accent-white);
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.sentiment-ticker {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 0 auto 20px;
    text-align: center;
}

#sentimentGauge {
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.ticker-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}


.label-positive {
    color: #00cc00;
}

.label-neutral {
    color: #ffdd44;
}

.label-negative {
    color: #ff4444;
}

.sentiment-score {
    color: var(--accent-white);
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    margin-top: 10px;
}

.input-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.input-section:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#videoUrl {
    padding: 18px 24px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    outline: none;
    color: var(--accent-white);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#videoUrl::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#videoUrl:focus {
    border-color: var(--secondary-dark-red);
    box-shadow: 
        0 0 0 4px rgba(139, 0, 0, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.options {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
}

.options label {
    font-weight: 600;
    color: var(--accent-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

#maxComments {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--accent-white);
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#maxComments:focus {
    border-color: var(--secondary-dark-red);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.2);
}

#maxComments option {
    background: var(--primary-dark-blue);
    color: var(--accent-white);
}

#analyzeBtn {
    padding: 18px 36px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-white);
    background: linear-gradient(135deg, var(--secondary-dark-red) 0%, #4a90e2 50%, var(--accent-white) 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 25px rgba(139, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

#analyzeBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

#analyzeBtn:hover::before {
    left: 100%;
}

#analyzeBtn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(139, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#analyzeBtn:active {
    transform: translateY(-1px) scale(0.98);
}

#analyzeBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--secondary-dark-red);
    border-right: 4px solid #4a90e2;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: var(--accent-white);
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.hidden {
    display: none !important;
}

.error {
    background: rgba(139, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    color: #ff6b6b;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-left: 4px solid var(--secondary-dark-red);
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.results {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.video-info {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 25px;
    align-items: start;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.video-info:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.video-info img {
    width: 200px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.video-info img:hover {
    transform: scale(1.05);
}

.video-details h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent-white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.video-details p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.video-thumbnail-container {
    position: relative;
    display: inline-block;
}

.shorts-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.video-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-width: 100px;
}

.stat:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.analysis-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.analysis-section:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.analysis-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--accent-white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-white) 0%, var(--secondary-dark-red) 50%, #4a90e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sentiment-overview {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.sentiment-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.sentiment-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sentiment-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--accent-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.overall-sentiment {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    padding: 25px;
    border-radius: 16px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.overall-sentiment:hover {
    transform: scale(1.05);
}

.overall-sentiment.positive {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
    color: #10b981;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.overall-sentiment.neutral {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    color: #f59e0b;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.overall-sentiment.negative {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.sentiment-chart {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.sentiment-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.sentiment-label {
    width: 90px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.bar-container {
    flex: 1;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 0;
}

.bar-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-white);
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    min-width: 40px;
}

.percentage-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    white-space: nowrap;
}

.bar-fill.positive { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.bar-fill.neutral { 
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.bar-fill.negative { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.summary-section {
    margin-bottom: 30px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.summary-section h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--accent-white);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.summary-text {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 16px;
    border-left: 4px solid var(--secondary-dark-red);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden;
}

.summary-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.themes-section {
    margin-bottom: 30px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.themes-section h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--accent-white);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.themes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    visibility: visible !important;
    opacity: 1 !important;
}

.theme-tag {
    background: linear-gradient(135deg, var(--secondary-dark-red) 0%, #4a90e2 50%, var(--accent-white) 100%);
    color: var(--accent-white);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 4px 15px rgba(139, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.theme-tag:hover::before {
    left: 100%;
}

.theme-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(139, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.comments-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.comments-section:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.comments-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--accent-white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 16px;
    border-left: 4px solid var(--secondary-dark-red);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.comment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.comment-card:hover::before {
    left: 100%;
}

.comment-card:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-left-color: #4a90e2;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author {
    font-weight: 700;
    color: var(--accent-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
}

.comment-likes {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.comment-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Mode Switcher */
.mode-switcher {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.mode-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-white);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.mode-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.mode-btn:hover::before {
    left: 100%;
}

.mode-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(139, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--secondary-dark-red) 0%, #4a90e2 50%, var(--accent-white) 100%);
    border-color: var(--accent-white);
    box-shadow: 
        0 8px 25px rgba(139, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Analytics Mode Selector */
.analytics-mode-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    position: relative;
    z-index: 10;
}

.analytics-mode-selector label {
    font-weight: 600;
    color: var(--accent-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-size: 1rem;
}

#analyticsMode {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--accent-white);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

#analyticsMode:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-dark-red);
}

#analyticsMode:focus {
    border-color: var(--secondary-dark-red);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.2);
}

#analyticsMode option {
    background: var(--primary-dark-blue);
    color: var(--accent-white);
}

/* Success Analysis Section */
.success-analysis-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.success-analysis-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-white);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
    text-align: center;
}

.success-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.success-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.success-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-white);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.success-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.success-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.success-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-white);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.success-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.success-section ul li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.success-section ul li:last-child {
    border-bottom: none;
}

.success-section ul li::before {
    content: '✓ ';
    color: #44ff44;
    font-weight: bold;
    margin-right: 8px;
}

.success-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 10px 0;
}

.success-section strong {
    color: var(--accent-white);
    font-weight: 600;
}

/* 24hr Insights Input Section */
.channel-info {
    text-align: center;
    margin-bottom: 25px;
}

.channel-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-white);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.channel-info p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

#channelAnalyzeBtn {
    padding: 18px 36px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-white);
    background: linear-gradient(135deg, var(--secondary-dark-red) 0%, #4a90e2 50%, var(--accent-white) 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 25px rgba(139, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

#channelAnalyzeBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

#channelAnalyzeBtn:hover::before {
    left: 100%;
}

#channelAnalyzeBtn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(139, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#channelAnalyzeBtn:active {
    transform: translateY(-1px) scale(0.98);
}

#channelAnalyzeBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 24hr Insights Styles */
.overall-metrics {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

.overall-metrics h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--accent-white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    font-weight: 700;
    text-align: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.metric-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-weight: 500;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-white);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.ai-insights-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

.ai-insights-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--accent-white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    font-weight: 700;
    text-align: center;
}

.insights-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.insight-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.insight-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-white);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.insight-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1.05rem;
}

.insight-list {
    list-style: none;
    padding: 0;
}

.insight-list li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 25px;
}

.insight-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--secondary-dark-red);
    font-weight: bold;
}

.channels-breakdown {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

.channels-breakdown h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--accent-white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    font-weight: 700;
    text-align: center;
}

.channels-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.channel-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.channel-card:hover::before {
    left: 100%;
}

.channel-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.channel-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    flex-shrink: 0;
}

.channel-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.channel-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    text-align: center;
    line-height: 1.2;
}

.channel-metrics {
    flex: 1;
    margin-bottom: 0;
}

.channel-metrics h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.shorts-section {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 142, 142, 0.05));
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

.regular-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

.channel-metric {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.channel-metric-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.channel-metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.error-state {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(139, 0, 0, 0.3);
}

footer {
    text-align: center;
    color: var(--accent-white);
    margin-top: 60px;
    padding: 30px;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .video-info {
        flex-direction: column;
        text-align: center;
    }
    
    .video-info img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .sentiment-overview {
        flex-direction: column;
        gap: 15px;
    }
    
    .input-section {
        padding: 25px;
    }
    
    .analysis-section,
    .comments-section {
        padding: 25px;
    }
    
    .theme-tag {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .comment-card {
        padding: 20px;
    }
}

/* Cool Dynamic Results Styles */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.results-title {
    margin: 0;
    font-size: 2rem;
    color: #ffffff;
}

.pulse-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00ff88;
    font-weight: 600;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Sentiment Dashboard */
.sentiment-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.sentiment-gauge-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(139, 0, 0, 0.1));
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
}

.gauge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sentiment-score {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gauge-visual {
    position: relative;
    margin: 20px 0;
}

.gauge-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #ff4444 0deg 120deg,
        #ffaa00 120deg 240deg,
        #44ff44 240deg 360deg
    );
    position: relative;
    margin: 0 auto;
    transition: all 0.5s ease;
    /* Ensure clean color separation */
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gauge-fill {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: var(--primary-dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-center {
    text-align: center;
}

.gauge-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 5px;
}

.gauge-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.sentiment-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9rem;
}

.negative-label { color: #ff4444; }
.neutral-label { color: #ffaa00; }
.positive-label { color: #44ff44; }

/* Metrics Grid */
.metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(139, 0, 0, 0.05));
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.metric-card:hover::before {
    left: 100%;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.metric-card.positive { border-left: 4px solid #44ff44; }
.metric-card.neutral { border-left: 4px solid #ffaa00; }
.metric-card.negative { border-left: 4px solid #ff4444; }

.metric-icon {
    font-size: 2rem;
    min-width: 60px;
    text-align: center;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.metric-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
}

.positive-fill {
    background: linear-gradient(90deg, #44ff44, #00cc88);
}

.neutral-fill {
    background: linear-gradient(90deg, #ffaa00, #ff8800);
}

.negative-fill {
    background: linear-gradient(90deg, #ff4444, #cc0000);
}

/* AI Insights Section */
.insights-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.insight-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(139, 0, 0, 0.05));
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ai-badge {
    background: linear-gradient(45deg, #00ff88, #00ccff);
    color: var(--primary-dark-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.themes-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.summary-content {
    display: flex;
    gap: 15px;
}

.summary-icon {
    font-size: 2rem;
    min-width: 50px;
}

.summary-text {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.themes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-tag {
    background: linear-gradient(45deg, #00ff88, #00ccff);
    color: var(--primary-dark-blue);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease;
}

.theme-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-skeleton {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skeleton-line {
    height: 30px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    border-radius: 15px;
    animation: shimmer 1.5s infinite;
}

.skeleton-line:nth-child(1) { width: 120px; }
.skeleton-line:nth-child(2) { width: 80px; }
.skeleton-line:nth-child(3) { width: 100px; }

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* Engagement Stats */
.engagement-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(139, 0, 0, 0.05));
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00ccff, #ff0088);
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(139, 0, 0, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.comments-filter {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(45deg, #00ff88, #00ccff);
    color: var(--primary-dark-blue);
    border-color: transparent;
}

/* Comment filtering animations */
.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Comment sentiment styling */
.comment-card.positive {
    border-left: 4px solid #44ff44;
}

.comment-card.negative {
    border-left: 4px solid #ff4444;
}

.comment-card.neutral {
    border-left: 4px solid #ffaa00;
}

.comment-sentiment {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.sentiment-icon {
    font-size: 1.2rem;
}

.sentiment-label {
    text-transform: capitalize;
    font-weight: 600;
}

.comment-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.comment-date {
    font-size: 0.8rem;
}

/* Mobile Responsive for New Components */
@media (max-width: 768px) {
    .sentiment-dashboard {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .insights-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .engagement-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .comments-filter {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gauge-circle {
        width: 150px;
        height: 150px;
    }
    
    .gauge-value {
        font-size: 2rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Channel cards responsive */
    .channel-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .channel-header {
        min-width: auto;
        flex-direction: row;
        justify-content: center;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Chat Section Styles */
/* Historical Trends Section */
.historical-trends-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
}

.trends-header {
    margin-bottom: 25px;
}

.trends-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--accent-white);
}

.trends-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.trends-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.control-group select {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--accent-white);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-group select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.control-group select:focus {
    outline: none;
    border-color: var(--secondary-dark-red);
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    padding: 10px 20px;
    background: var(--secondary-dark-red);
    border: none;
    border-radius: 8px;
    color: var(--accent-white);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.trends-loading {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
}

.trends-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.chart-container h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--accent-white);
    font-weight: 600;
}

.chart-container canvas {
    max-height: 300px;
}

.no-data-message,
.error-message {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.error-message {
    color: #ff6b6b;
}

/* Mobile Responsive for Historical Trends */
@media (max-width: 768px) {
    .trends-controls {
        flex-direction: column;
    }
    
    .control-group {
        width: 100%;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    .trends-charts {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        padding: 15px;
    }
}

.chat-section {
    margin-top: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

.chat-header {
    margin-bottom: 30px;
    text-align: center;
}

.chat-header h2 {
    font-size: 2.2rem;
    color: var(--accent-white);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.chat-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 5px;
    animation: fadeInUp 0.3s ease;
}

.chat-message.user {
    align-items: flex-end;
}

.chat-message.assistant {
    align-items: flex-start;
}

.message-bubble {
    max-width: 75%;
    padding: 16px 20px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.8;
    white-space: pre-wrap;
}

.message-bubble.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble.assistant {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-left-radius: 4px;
    white-space: pre-wrap;
}

/* Enhanced formatting for assistant messages */
.message-bubble.assistant br {
    line-height: 1.8;
}

.message-bubble.assistant strong {
    color: #fff;
    font-weight: 600;
    font-size: 1.05em;
}

.message-bubble.assistant code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #a0d8ff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-bubble.assistant .chat-bullet {
    color: #a0d8ff;
    font-weight: bold;
    margin-right: 8px;
    display: inline-block;
    width: 20px;
}

.message-bubble.assistant .chat-number {
    color: #a0d8ff;
    font-weight: 600;
    margin-right: 8px;
}

.message-bubble.assistant p {
    margin: 0.8em 0;
}

.message-bubble.assistant p:first-child {
    margin-top: 0;
}

.message-bubble.assistant p:last-child {
    margin-bottom: 0;
}

.message-bubble.assistant .chat-paragraph {
    margin: 0.6em 0;
    line-height: 1.8;
}

.message-bubble.assistant .chat-paragraph:first-child {
    margin-top: 0;
}

.message-bubble.assistant .chat-paragraph:last-child {
    margin-bottom: 0;
}

.message-bubble.assistant .chat-list {
    margin: 0.8em 0;
    padding-left: 8px;
    line-height: 2;
}

.message-bubble.assistant .chat-list .chat-bullet,
.message-bubble.assistant .chat-list .chat-number {
    display: inline-block;
    margin-right: 10px;
}

.message-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 8px;
    margin-top: 4px;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--accent-white);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-send-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.chat-send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chat-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.chat-loading-dots {
    display: flex;
    gap: 4px;
}

.chat-loading-dots span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.chat-loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.chat-loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Mobile Responsive for Chat */
@media (max-width: 768px) {
    .chat-container {
        height: 400px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .chat-input-container {
        flex-direction: column;
    }
    
    .chat-send-btn {
        width: 100%;
    }
}


