/* ==========================================================================
   PRIME NEWZ INDIA (PNEWZ.IN) - PREMIUM DESIGN SYSTEM STYLESHEET
   ========================================================================== */

/* 1. Global Reset & Theme Variables */
:root {
    /* Font Families */
    --font-heading: 'Rajdhani', 'Poppins', sans-serif;
    --font-body: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    --font-ui: 'Poppins', 'Noto Sans Devanagari', sans-serif;

    /* Common Constants */
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.2);
    --max-width: 1280px;

    /* Theme-specific variables will be defined below in [data-theme] */
}

/* Dark Theme Colors (Default) */
[data-theme="dark"] {
    --bg-base: #0b0f19;
    --bg-surface: #131b2e;
    --bg-surface-elevated: #1e293b;
    --bg-glass: rgba(19, 27, 46, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(239, 68, 68, 0.35);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    
    --primary: #ef4444;
    --primary-hover: #f87171;
    --primary-glow: rgba(239, 68, 68, 0.25);
    
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.2);
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;

    --scrollbar-track: #0f172a;
    --scrollbar-thumb: #334155;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Light Theme Colors */
[data-theme="light"] {
    --bg-base: #f4f6f9;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(220, 38, 38, 0.15);
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;
    
    --primary: #dc2626;
    --primary-hover: #b91c1c;
    --primary-glow: rgba(220, 38, 38, 0.15);
    
    --accent: #d97706;
    --accent-glow: rgba(217, 119, 6, 0.15);
    
    --success: #059669;
    --success-bg: rgba(5, 150, 105, 0.1);
    --warning: #d97706;
    --danger: #dc2626;
    --danger-bg: rgba(220, 38, 38, 0.1);
    --info: #2563eb;

    --scrollbar-track: #e2e8f0;
    --scrollbar-thumb: #cbd5e1;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
}

/* 2. Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    font-family: var(--font-ui);
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.glow-effect {
    position: relative;
    box-shadow: 0 0 15px var(--border-glow);
    border: 1px solid var(--primary);
}

.glow-effect:hover {
    box-shadow: 0 0 25px var(--primary);
}

/* ==========================================================================
   3. Main Components
   ========================================================================== */

/* Top Utility Bar */
.top-bar {
    background-color: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-ui);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.live-bulletin {
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Header & Glassmorphic Navigation */
.main-header {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    transition: var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 52px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}

.brand-title h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.brand-title h1 span {
    color: var(--primary);
}

.brand-title .tagline {
    font-size: 0.72rem;
    font-family: var(--font-ui);
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* Modern Search Box */
.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 2px 6px 2px 18px;
    width: 100%;
    max-width: 380px;
    transition: var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    padding: 8px 0;
}

.search-box button {
    background-color: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.search-box button:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.action-btn:hover {
    background-color: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

.user-btn {
    width: auto;
    padding: 0 16px;
    border-radius: 50px;
    display: flex;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
}

.user-badge {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-tv-btn {
    background-color: var(--primary);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.live-tv-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    animation: flash 1.2s infinite alternate;
}

@keyframes flash {
    0% { opacity: 0.3; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Breaking News Ticker Section */
.breaking-ticker-section {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    overflow: hidden;
}

.ticker-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ticker-badge {
    background-color: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 4px 15px;
    border-radius: 4px;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 0 10px var(--primary-glow);
}

.ticker-badge::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--primary);
}

.ticker-content {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.ticker-inner {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 35s linear infinite;
    gap: 50px;
}

.ticker-inner:hover {
    animation-play-state: paused;
}

.ticker-item {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.ticker-item::before {
    content: '🔴';
    font-size: 0.65rem;
}

.ticker-item:hover {
    color: var(--primary);
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Category Navigation Bar */
.category-nav {
    background-color: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cat-tab {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 6px 18px;
    color: var(--text-secondary);
    border-radius: 30px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.cat-tab:hover {
    color: var(--primary);
    background-color: var(--bg-surface-elevated);
}

.cat-tab.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==========================================================================
   4. Views & Routing System
   ========================================================================== */
.app-view {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.app-view.active-view {
    display: block;
}

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

.main-content {
    padding: 30px 20px 60px 20px;
    min-height: calc(100vh - 450px);
}

/* Section Title Bar */
.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 25px;
}

.section-title-bar h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.view-toggles {
    display: flex;
    gap: 5px;
}

.view-style-btn {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.view-style-btn:hover, .view-style-btn.active {
    background-color: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   5. News Layout Grids & Cards
   ========================================================================== */

/* Hero grid layout (3 items grid) */
.hero-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

/* Featured Hero Banner */
.hero-featured-card {
    grid-row: span 2;
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16/10;
}

.hero-featured-card img {
    width: 100%;
    height: 100%;
    object-position: center;
    transition: var(--transition-slow);
}

.hero-featured-card:hover img {
    transform: scale(1.03);
}

.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 10%, rgba(11, 15, 25, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.cat-badge {
    background-color: var(--primary);
    color: white;
    padding: 3px 12px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-time {
    color: var(--text-secondary);
}

.hero-featured-card h2 {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    line-height: 1.4;
    margin-bottom: 10px;
}

.hero-featured-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Secondary Hero Side Card */
.hero-side-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 16/9.5;
}

.hero-side-card img {
    width: 100%;
    height: 100%;
    transition: var(--transition-slow);
}

.hero-side-card:hover img {
    transform: scale(1.03);
}

.hero-side-card .hero-gradient-overlay {
    height: 80%;
    padding: 20px;
}

.hero-side-card h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    line-height: 1.4;
}

/* Content Split Column */
.news-body-layout {
    display: grid;
    grid-template-columns: 2.7fr 1.3fr;
    gap: 30px;
}

.news-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.news-grid-cards.list-view-active {
    grid-template-columns: 1fr;
}

/* News Card */
.news-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-glow);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-card-img-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-card-img-wrapper img {
    width: 100%;
    height: 100%;
    transition: var(--transition-slow);
}

.news-card:hover .news-card-img-wrapper img {
    transform: scale(1.03);
}

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-card-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.news-card-title:hover {
    color: var(--primary);
}

.news-card-summary {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Expandable content area */
.news-card-expanded-content {
    display: none;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.expanded-full-p {
    margin-bottom: 12px;
}

/* Footer of news card (Actions) */
.news-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.read-more-btn {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more-btn:hover {
    color: var(--primary-hover);
}

.news-interaction-strip {
    display: flex;
    gap: 12px;
}

.interact-btn {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.interact-btn:hover, .interact-btn.active {
    color: var(--primary);
}

.tts-btn:hover {
    color: var(--accent);
}

.tts-btn.speaking {
    color: var(--accent);
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-4px); }
}

/* List view styling updates */
.list-view-active .news-card {
    flex-direction: row;
    aspect-ratio: auto;
}

.list-view-active .news-card-img-wrapper {
    width: 32%;
    aspect-ratio: auto;
    flex-shrink: 0;
}

.list-view-active .news-card-summary {
    -webkit-line-clamp: 2;
}

/* TTS Waveform Display inside news card */
.card-tts-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 18px;
    margin-top: 5px;
}

.wave-bar {
    width: 3px;
    height: 100%;
    background-color: var(--accent);
    border-radius: 3px;
    animation: sound-wave 1s ease-in-out infinite alternate;
    transform-origin: bottom;
}

.wave-bar.bar-1 { animation-delay: 0.1s; height: 30%; }
.wave-bar.bar-2 { animation-delay: 0.3s; height: 80%; }
.wave-bar.bar-3 { animation-delay: 0.5s; height: 50%; }
.wave-bar.bar-4 { animation-delay: 0.2s; height: 95%; }

@keyframes sound-wave {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

/* Comments Panel styling inside news card */
.news-card-comments-wrapper {
    display: none;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.comments-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    padding-right: 5px;
}

.comment-item {
    font-size: 0.85rem;
    background-color: var(--bg-surface-elevated);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
}

.comment-time {
    font-weight: 400;
    color: var(--text-muted);
}

.comment-form {
    display: flex;
    gap: 8px;
}

.comment-form input {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 30px;
    width: 100%;
    outline: none;
}

.comment-form input:focus {
    border-color: var(--primary);
}

.comment-form button {
    background-color: var(--primary);
    color: white;
    padding: 6px 15px;
    font-weight: 500;
    font-size: 0.82rem;
    border-radius: 30px;
}

.comment-form button:hover {
    background-color: var(--primary-hover);
}

/* Empty Search Alerts */
.no-news-found {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
}

.no-news-found svg {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.no-news-found h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

/* ==========================================================================
   6. Sidebar Modules
   ========================================================================== */
.news-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 90px;
    align-self: start;
}

.sidebar-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.sidebar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.sidebar-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.view-all-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.view-all-link:hover {
    text-decoration: underline;
}

.icon-accent {
    color: var(--primary);
    margin-right: 5px;
}

/* Mini Live TV Widget */
.live-tv-mini-card {
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-color: var(--border-glow);
}

.live-indicator {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--primary);
    animation: flash 1s infinite alternate;
}

.sidebar-mini-player {
    aspect-ratio: 16/9;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background-color: black;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.sidebar-mini-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Trending numbered items */
.trending-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-item:first-child {
    padding-top: 0;
}

.trend-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--border-glow);
    line-height: 1;
    width: 30px;
    text-align: center;
}

.trending-item:hover .trend-number {
    color: var(--primary);
}

.trend-details h4 {
    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 5px;
    cursor: pointer;
}

.trend-details h4:hover {
    color: var(--primary);
}

.trend-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Dynamic Poll Widget */
.poll-question {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-option-btn {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
}

.poll-option-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary-glow);
}

.poll-option-text {
    font-size: 0.88rem;
    font-weight: 500;
    z-index: 2;
}

.poll-option-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background-color: var(--primary-glow);
    transition: width 0.8s cubic-bezier(0.1, 0.8, 0.25, 1);
    z-index: 1;
}

.poll-option-percent {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
    z-index: 2;
    display: none;
}

/* Reporter spotlight items */
.reporter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.reporter-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.reporter-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.reporter-info p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ==========================================================================
   7. Full-Screen Article Reader View
   ========================================================================== */
.article-reader-container {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.reader-header-nav {
    margin-bottom: 25px;
}

.back-btn {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.back-btn:hover {
    color: var(--primary);
    transform: translateX(-4px);
}

.reader-title-area h2 {
    font-family: var(--font-body);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.reader-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.reader-reporter-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reader-reporter-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reader-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reader-action-btn {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.reader-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.reader-action-btn.tts-active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

.reader-featured-img {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    max-height: 480px;
    width: 100%;
}

.reader-featured-img img {
    width: 100%;
    height: 100%;
}

.reader-main-body {
    font-size: 1.12rem;
    line-height: 1.9;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.reader-main-body p {
    margin-bottom: 25px;
    text-indent: 10px;
}

/* TTS Waveform box inside full reader */
.reader-tts-waveform-card {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reader-tts-waveform-card .wave-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
}

/* ==========================================================================
   8. Live TV Section (Full Layout)
   ========================================================================== */
.live-tv-container {
    display: grid;
    grid-template-columns: 2.7fr 1.3fr;
    gap: 30px;
    margin-top: 10px;
}

.live-player-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.player-wrapper {
    background-color: black;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    background-color: #000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.player-info-strip {
    background-color: #121824;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.player-title-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge {
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    font-family: var(--font-ui);
    text-transform: uppercase;
}

.red-badge {
    background-color: var(--primary);
    color: white;
    animation: flash 1s infinite alternate;
}

.player-title-info h2 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.player-stats {
    color: #94a3b8;
    font-family: var(--font-ui);
    font-size: 0.88rem;
}

.viewer-count {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 30px;
}

.viewer-count svg {
    color: var(--primary);
}

/* Channel multi selector */
.channel-selector-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    overflow-x: auto;
}

.channel-tab-btn {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.channel-tab-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary-glow);
}

.channel-tab-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* EPG scheduler card */
.epg-schedule-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.epg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.epg-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timezone-note {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.epg-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.epg-program-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.epg-program-item:hover {
    background-color: var(--bg-surface-elevated);
}

.epg-program-item.active-program {
    background-color: var(--primary-glow);
    border-color: var(--primary);
}

.epg-program-time {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    width: 90px;
}

.epg-program-details {
    flex-grow: 1;
}

.epg-program-title {
    font-weight: 600;
    font-size: 0.94rem;
}

.epg-program-anchor {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.live-badge-mini {
    background-color: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Chat Sidebar Column */
.live-chat-col {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    height: 600px;
    overflow: hidden;
}

.chat-header {
    padding: 15px 20px;
    border-bottom: 1.5px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.chat-status {
    font-size: 0.75rem;
    color: var(--success);
    background-color: var(--success-bg);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

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

.chat-msg {
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-username {
    font-weight: 700;
    color: var(--primary);
    margin-right: 5px;
    display: inline-block;
}

.chat-username.admin-user {
    color: var(--accent);
}

.chat-text {
    color: var(--text-primary);
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chat-input-area input {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    padding: 10px 16px;
    border-radius: 30px;
    width: 100%;
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--primary);
}

.chat-input-area button {
    background-color: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.chat-input-area button:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* ==========================================================================
   9. Login Interface (Reporter / Admin)
   ========================================================================== */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    min-height: calc(100vh - 400px);
}

.login-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

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

.login-logo {
    height: 60px;
    margin: 0 auto 15px auto;
}

.login-card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
}

.login-card-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-with-icon {
    display: flex;
    align-items: center;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding-left: 12px;
}

.input-with-icon svg {
    color: var(--text-muted);
}

.input-with-icon input {
    background: none;
    border: none;
    padding: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    width: 100%;
    outline: none;
}

.error-msg {
    color: var(--danger);
    font-size: 0.8rem;
    text-align: left;
    background-color: var(--danger-bg);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--danger);
}

.login-submit-btn {
    background-color: var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    transition: var(--transition-fast);
    margin-top: 10px;
}

.login-submit-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.login-help {
    margin-top: 25px;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
}

.login-help ul {
    list-style: none;
    margin-top: 5px;
}

/* ==========================================================================
   10. Admin Console Panels
   ========================================================================== */
.admin-dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    min-height: 600px;
}

/* Admin Sidebar */
.admin-sidebar {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.admin-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid var(--border-color);
    margin-bottom: 20px;
}

.admin-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-user-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.role-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
}

.admin-tag { background-color: var(--primary-glow); color: var(--primary); }
.editor-tag { background-color: var(--accent-glow); color: var(--accent); }
.reporter-tag { background-color: var(--success-bg); color: var(--success); }

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-menu-item {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    text-align: left;
}

.admin-menu-item svg {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.admin-menu-item:hover, .admin-menu-item.active {
    background-color: var(--primary-glow);
    color: var(--primary);
}

.admin-menu-item:hover svg, .admin-menu-item.active svg {
    color: var(--primary);
}

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

.danger-item:hover svg {
    color: var(--danger);
}

.logout-menu-item {
    margin-top: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* Admin main workspace and content tabs */
.admin-workspace {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.admin-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-tab-content.active-tab {
    display: block;
}

.admin-tab-header {
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.admin-tab-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
}

.admin-tab-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Stats analytics widgets */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    text-align: left;
    transition: var(--transition-fast);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stats-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
}

.bg-red { background-color: var(--primary); }
.bg-blue { background-color: var(--info); }
.bg-green { background-color: var(--success); }
.bg-orange { background-color: var(--accent); }

.stats-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.stats-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Settings quick-links */
.system-shortcut-box {
    border-radius: var(--border-radius-md);
    padding: 20px;
}

.system-shortcut-box h3 {
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.checkbox-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.custom-switch-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    cursor: pointer;
}

/* Button UI */
.btn {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.primary-btn {
    background-color: var(--primary);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.secondary-btn {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.secondary-btn:hover {
    background-color: var(--scrollbar-thumb);
}

/* Form structure */
.publish-form-body {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
}

.form-col-7, .form-col-5 {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group select, .form-group input[type="text"], .form-group input[type="number"], .form-group input[type="password"] {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    padding: 10px 14px;
    border-radius: 8px;
    width: 100%;
    outline: none;
    transition: var(--transition-fast);
}

.form-group textarea {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    outline: none;
    transition: var(--transition-fast);
    resize: vertical;
}

.form-group select:focus, .form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

.required {
    color: var(--primary);
}

.border-card {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
}

/* Quick images list inside publish */
.quick-image-library {
    margin-top: 10px;
}

.quick-image-library p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.quick-img-thumb {
    aspect-ratio: 16/10;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
}

.quick-img-thumb img {
    width: 100%;
    height: 100%;
}

.quick-img-thumb:hover {
    border-color: var(--primary);
}

.quick-img-thumb.selected {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.image-upload-wrapper {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-help {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Tables in Admin */
.table-utility-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}

.table-filters {
    display: flex;
    gap: 10px;
}

.table-filters select {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 6px;
    outline: none;
}

.table-responsive-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.admin-table th, .admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table th {
    background-color: var(--bg-surface-elevated);
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.admin-img-thumb {
    width: 50px;
    aspect-ratio: 16/10;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.table-title-cell {
    font-weight: 600;
    color: var(--text-primary);
}

.action-badge {
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
}

.action-badge.bg-success { background-color: var(--success-bg); color: var(--success); }
.action-badge.bg-pending { background-color: var(--warning-bg); color: var(--warning); }

.row-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.row-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.row-action-btn:hover {
    background-color: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

.row-action-btn.edit-btn:hover {
    border-color: var(--info);
    color: var(--info);
}

.row-action-btn.delete-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background-color: var(--danger-bg);
}

/* Category grid configurations split */
.admin-categories-split {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 25px;
}

.category-list-col {
    display: flex;
    flex-direction: column;
}

.category-form-col {
    padding: 25px;
    border-radius: var(--border-radius-md);
    height: fit-content;
}

/* ==========================================================================
   11. Footer Module
   ========================================================================== */
.main-footer {
    background-color: #080c14;
    color: #94a3b8;
    border-top: 3px solid var(--primary);
    padding: 60px 0 20px 0;
    font-size: 0.88rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-col p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
}

.footer-logo h2 span {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: var(--transition-fast);
}

.social-link:hover {
    color: white;
    transform: scale(1.05);
}

.social-link.fb:hover { background-color: #3b5998; }
.social-link.tw:hover { background-color: #1da1f2; }
.social-link.yt:hover { background-color: #ff0000; }
.social-link.wa:hover { background-color: #25d366; }

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    color: #94a3b8;
}

.footer-links-list a:hover {
    color: white;
    padding-left: 4px;
}

.contact-info {
    line-height: 1.8;
}

.app-badges {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
}

.store-headline {
    font-size: 0.78rem;
    color: white;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

.store-badge-mock {
    background-color: #1e293b;
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    font-size: 0.78rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
}

/* ==========================================================================
   12. Floating control panel (TTS wave & Player PIP)
   ========================================================================== */
.floating-controls-panel {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--accent);
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.floating-tts-widget {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tts-float-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-right: 5px;
}

.float-stop-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.float-stop-btn:hover {
    background-color: var(--primary);
    color: white;
}

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

/* ==========================================================================
   13. Responsive Adaptations (Media Queries)
   ========================================================================== */

/* Tablet Optimization */
@media (max-width: 1024px) {
    .hero-news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-body-layout {
        grid-template-columns: 1fr;
    }
    
    .live-tv-container {
        grid-template-columns: 1fr;
    }
    
    .live-chat-col {
        height: 400px;
    }
    
    .admin-dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile-First Adaptability */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .search-box {
        order: 3;
        max-width: 100%;
        margin-top: 5px;
    }
    
    .news-grid-cards {
        grid-template-columns: 1fr;
    }
    
    .list-view-active .news-card {
        flex-direction: column;
    }
    
    .list-view-active .news-card-img-wrapper {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-categories-split {
        grid-template-columns: 1fr;
    }
    
    .top-bar-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .brand-title h1 {
        font-size: 1.4rem;
    }
    
    .brand-logo {
        height: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
}

/* ==========================================================================
   14. Dynamic Editorial / Policy Page Reader Layout
   ========================================================================== */
.policy-page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 10px;
}

.policy-sidebar {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--card-shadow);
}

.policy-sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    letter-spacing: 0.5px;
}

.policy-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.policy-menu-link {
    display: block;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.policy-menu-link:hover {
    color: var(--primary);
    background-color: var(--bg-surface-elevated);
}

.policy-menu-link.active {
    color: var(--text-primary);
    background-color: var(--primary-glow);
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.policy-main-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.policy-main-content h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.policy-main-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.policy-main-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.policy-main-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 18px;
    text-align: justify;
}

.policy-main-content ul, .policy-main-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.policy-main-content li {
    margin-bottom: 8px;
    font-size: 1.02rem;
    line-height: 1.7;
}

.policy-main-content strong {
    color: var(--text-primary);
}

/* ==========================================================================
   15. 5 Multi-Style News Card Formats
   ========================================================================== */

/* Style 1: Standard Card (Default .news-card - handled by standard classes) */

/* Style 2: Spotlight Premium Gold Glow Card */
.news-card-spotlight {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(245, 158, 11, 0.04) 100%);
    box-shadow: 0 10px 30px var(--accent-glow);
    position: relative;
}

.news-card-spotlight:hover {
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.2);
    border-color: var(--accent);
}

.spotlight-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: linear-gradient(90deg, var(--accent) 0%, #d97706 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

/* Style 3: Opinion/Editorial Image-Free Typography Card */
.news-card-opinion {
    border-top: 4px solid var(--primary);
    border-radius: var(--border-radius-md);
    background-color: var(--bg-surface);
    padding: 24px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.news-card-opinion::after {
    content: '“';
    position: absolute;
    right: 15px;
    bottom: -45px;
    font-size: 15rem;
    font-family: 'Times New Roman', serif;
    color: rgba(239, 68, 68, 0.05);
    line-height: 1;
    pointer-events: none;
}

.news-card-opinion .opinion-quote-content {
    font-style: italic;
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin: 15px 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-family: var(--font-body);
}

.opinion-author-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    z-index: 2;
}

.opinion-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    box-shadow: 0 2px 6px var(--primary-glow);
}

.opinion-author-info {
    display: flex;
    flex-direction: column;
}

.opinion-author-info .author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.opinion-author-info .author-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Style 4: Modern Tech Badge Glass Overlay Card */
.news-card-tech {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.news-card-tech .news-card-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.news-card-tech .news-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.96) 20%, rgba(11, 15, 25, 0.6) 70%, transparent 100%);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 80%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .news-card-tech .news-card-body {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 20%, rgba(255, 255, 255, 0.7) 70%, transparent 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card-tech .news-card-title {
    color: #ffffff;
    font-size: 1.3rem;
}

[data-theme="light"] .news-card-tech .news-card-title {
    color: var(--text-primary);
}

.news-card-tech .news-card-summary {
    color: #e2e8f0;
    margin-bottom: 10px;
}

[data-theme="light"] .news-card-tech .news-card-summary {
    color: var(--text-secondary);
}

.tech-futuristic-badge {
    background-color: #3b82f6;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.72rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    margin-bottom: 8px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* Style 5: Compact Density Card */
.news-card-compact {
    display: flex;
    flex-direction: row !important;
    gap: 15px;
    padding: 12px;
    align-items: center;
    border-radius: var(--border-radius-md);
}

.news-card-compact .news-card-img-wrapper {
    width: 130px;
    height: 90px;
    aspect-ratio: auto;
    flex-shrink: 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.news-card-compact .news-card-body {
    padding: 0 !important;
    flex-grow: 1;
    min-width: 0;
}

.news-card-compact .news-card-title {
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-compact .news-card-summary {
    display: none !important;
}

.news-card-compact .news-card-meta {
    margin-bottom: 4px;
    font-size: 0.75rem;
}

.news-card-compact .news-card-expanded-content {
    display: none !important;
}

.news-card-compact .news-actions-bar {
    display: none !important;
}

/* Responsive adjustments for policy pages */
@media (max-width: 900px) {
    .policy-page-layout {
        grid-template-columns: 1fr;
    }
    .policy-sidebar {
        position: static;
        width: auto;
    }
}

/* ==========================================================================
   16. Sleek Glassmorphic Share Dropdown Menu
   ========================================================================== */
.share-container {
    position: relative;
    display: inline-block;
}

.share-dropdown-menu {
    position: absolute;
    bottom: 45px;
    right: -10px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

[data-theme="light"] .share-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
}

.share-dropdown-menu.active {
    display: flex;
    animation: fadeInUp 0.2s ease-out;
}

.share-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: var(--transition-fast);
}

.share-dropdown-menu a:hover {
    color: var(--primary);
    background-color: var(--bg-surface-elevated);
}

.share-dropdown-menu svg {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.share-dropdown-menu a:hover svg {
    color: var(--primary);
}

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


