/* Theme Core Variables (CineAHO Portal Shared) */
:root {
  --bg-color: #060913;
  --bg-grid: rgba(255, 255, 255, 0.015);
  
  --panel-bg: rgba(14, 20, 38, 0.55);
  --panel-border: rgba(255, 255, 255, 0.05);
  --panel-hover-border: rgba(99, 102, 241, 0.25);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #475569;
  
  /* Gradation Accents */
  --grad-purple: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  --grad-blue: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --grad-green: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --grad-red: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  
  --font-main: 'Noto Sans KR', 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
  
  /* Colors for Mockup Link Banners */
  --bg-banner-red: rgba(239, 68, 68, 0.15);
  --border-banner-red: rgba(239, 68, 68, 0.25);
  --color-banner-red: #ef4444;

  --bg-banner-green: rgba(16, 185, 129, 0.15);
  --border-banner-green: rgba(16, 185, 129, 0.25);
  --color-banner-green: #10b981;

  --bg-banner-orange: rgba(249, 115, 22, 0.15);
  --border-banner-orange: rgba(249, 115, 22, 0.25);
  --color-banner-orange: #f97316;

  --bg-banner-blue: rgba(59, 130, 246, 0.15);
  --border-banner-blue: rgba(59, 130, 246, 0.25);
  --color-banner-blue: #3b82f6;

  --bg-banner-cyan: rgba(6, 182, 212, 0.15);
  --border-banner-cyan: rgba(6, 182, 212, 0.25);
  --color-banner-cyan: #06b6d4;

  --bg-banner-purple: rgba(168, 85, 247, 0.15);
  --border-banner-purple: rgba(168, 85, 247, 0.25);
  --color-banner-purple: #a855f7;

  --bg-banner-gold: rgba(251, 191, 36, 0.15);
  --border-banner-gold: rgba(251, 191, 36, 0.25);
  --color-banner-gold: #fbbf24;

  --bg-banner-darkgray: rgba(71, 85, 105, 0.15);
  --border-banner-darkgray: rgba(71, 85, 105, 0.25);
  --color-banner-darkgray: #64748b;
}

/* Light Theme overrides if needed, but the screenshot is explicitly dark */
[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-grid: rgba(15, 23, 42, 0.02);
  --panel-bg: rgba(255, 255, 255, 0.85);
  --panel-border: rgba(15, 23, 42, 0.06);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-card: 0 12px 40px 0 rgba(15, 23, 42, 0.08);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.3s ease;
}

/* Grid Pattern Background */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

/* Glow Elements */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -3;
  pointer-events: none;
  opacity: 0.2;
}

.bg-glow-purple {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7e22ce 0%, transparent 70%);
  top: -100px;
  left: 5%;
}

.bg-glow-blue {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
  top: 40%;
  right: 5%;
}

/* Glassmorphism panel styling */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

/* Header style sharing */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 1rem 1.5rem 0 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.logo-circle {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
}

.logo-text span {
  color: var(--text-muted);
  font-weight: 400;
}

.header-nav {
  flex-grow: 1;
  margin: 0 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  white-space: nowrap;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-list a.active,
.nav-list a:hover {
  color: var(--text-main);
}

.btn-back-dashboard {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  padding: 0.5rem 1rem;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-back-dashboard:hover {
  background: rgba(255,255,255,0.12);
  border-color: #3b82f6;
}

/* Hub Container layout */
.hub-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* 1. Top Sub Banner link items */
.banner-grid-wrapper {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
  align-items: stretch;
}

.banner-sidebar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem;
  border-radius: 16px;
  background-color: rgba(14, 20, 38, 0.45);
}

.banner-sidebar i {
  font-size: 1.6rem;
  color: #a855f7;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
}

.sidebar-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sidebar-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.banner-links-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.banner-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  overflow: hidden;
}

.banner-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.banner-card i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.banner-card div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.banner-card strong {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.banner-card span {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .banner-card span {
  color: rgba(15, 23, 42, 0.6);
}

/* Banner Card Theme Color Map */
.link-red {
  background-color: var(--bg-banner-red);
  border-color: var(--border-banner-red);
}
.link-red i { color: var(--color-banner-red); }

.link-green {
  background-color: var(--bg-banner-green);
  border-color: var(--border-banner-green);
}
.link-green i { color: var(--color-banner-green); }

.link-orange {
  background-color: var(--bg-banner-orange);
  border-color: var(--border-banner-orange);
}
.link-orange i { color: var(--color-banner-orange); }

.link-blue {
  background-color: var(--bg-banner-blue);
  border-color: var(--border-banner-blue);
}
.link-blue i { color: var(--color-banner-blue); }

.link-cyan {
  background-color: var(--bg-banner-cyan);
  border-color: var(--border-banner-cyan);
}
.link-cyan i { color: var(--color-banner-cyan); }

.link-purple {
  background-color: var(--bg-banner-purple);
  border-color: var(--border-banner-purple);
}
.link-purple i { color: var(--color-banner-purple); }

.link-gold {
  background-color: var(--bg-banner-gold);
  border-color: var(--border-banner-gold);
}
.link-gold i { color: var(--color-banner-gold); }

.link-darkgray {
  background-color: var(--bg-banner-darkgray);
  border-color: var(--border-banner-darkgray);
}
.link-darkgray i { color: var(--color-banner-darkgray); }


/* 2. Sub Header Action Bar */
.sub-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  border-radius: 16px;
  margin-bottom: 3.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sub-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sub-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(99, 102, 241, 0.12);
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.sub-header-left h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sub-header-left span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sub-header-right {
  display: flex;
  gap: 0.75rem;
}

.sub-header-right .btn {
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
}

.btn-prompt {
  background-color: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.25);
  color: #ec4899;
}

.btn-prompt:hover {
  background-color: rgba(236, 72, 153, 0.25);
}

.btn-quick-analysis {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #000;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
}

.btn-quick-analysis:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.35);
}


/* 3. Center Big Headlines */
.center-headline-section {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 4.5rem auto;
}

.main-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  font-family: var(--font-main);
}

.main-title span {
  color: #6366f1;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.sub-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding: 0 3rem;
}


/* 4. Calculator Card Layout Grid (4 columns) */
.tools-calculator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.calc-card {
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  height: 480px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.04);
}

.calc-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.15);
}

.card-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 1.75rem;
}

/* Neon glow classes for icons */
.purple-glow { background: var(--grad-purple); box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3); }
.blue-glow { background: var(--grad-blue); box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3); }
.cyan-glow { background: var(--grad-cyan); box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3); }
.red-glow { background: var(--grad-red); box-shadow: 0 5px 15px rgba(244, 63, 94, 0.3); }

.calc-meta {
  flex-grow: 1;
}

.calc-meta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.5px;
}

.calc-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.calc-meta p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.btn-calc {
  width: 100%;
  border-radius: 12px;
  padding: 0.85rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  margin-top: 1.5rem;
}

.btn-purple-grad { background: var(--grad-purple); box-shadow: 0 5px 15px rgba(168,85,247,0.15); }
.btn-blue-grad { background: var(--grad-blue); box-shadow: 0 5px 15px rgba(59,130,246,0.15); }
.btn-cyan-grad { background: var(--grad-cyan); box-shadow: 0 5px 15px rgba(6,182,212,0.15); }
.btn-red-grad { background: var(--grad-red); box-shadow: 0 5px 15px rgba(244,63,94,0.15); }

.btn-calc:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}


/* 5. Additional Lower Grid */
.lower-grid {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.mini-calc-card {
  padding: 1.75rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(255,255,255,0.03);
}

.mini-card-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mini-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
}

.icon-orange { background: var(--grad-gold); }
.icon-pink { background: var(--grad-red); }

.mini-card-left h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.25px;
}

.mini-card-left span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mini-calc-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* 6. Right Floating Panel */
.floating-panel {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 99;
}

.percentage-circle {
  position: relative;
  width: 50px;
  height: 50px;
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.circle-progress {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.1s;
}

.percentage-text {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.float-btn:hover {
  color: var(--text-main);
  border-color: #6366f1;
  background-color: rgba(99, 102, 241, 0.08);
}

.btn-menu {
  background-color: #6366f1 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-menu:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}


/* 7. Footer Style */
.main-footer {
  padding: 3rem;
  text-align: center;
  border-top: 1px solid var(--panel-border);
  color: var(--text-dark);
  font-size: 0.8rem;
}


/* 8. Interactive Calculator Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(6, 9, 19, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 90%;
  max-width: 550px;
  padding: 2.25rem;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.modal-header i { font-size: 1.45rem; }
.text-purple { color: #a855f7; }

.modal-body {
  color: var(--text-main);
}

/* Custom Calculator Component layout */
.calc-field {
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.calc-field label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calc-field input,
.calc-field select {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background-color: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
  font-size: 0.9rem;
}

.calc-field input:focus,
.calc-field select:focus {
  border-color: #6366f1;
}

.calc-result-box {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border-radius: 12px;
  background-color: rgba(99, 102, 241, 0.05);
  border: 1px dashed rgba(99, 102, 241, 0.2);
  text-align: center;
}

.calc-result-box span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calc-result-box h4 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #6366f1;
  margin-top: 0.25rem;
}


/* Responsive Web Layout */
@media (max-width: 1400px) {
  .banner-grid-wrapper {
    grid-template-columns: 1fr;
  }
  .banner-links-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .tools-calculator-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-card {
    height: auto;
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    margin: 1rem;
    padding: 1.25rem;
    border-radius: 20px;
  }
  .header-nav {
    width: 100%;
    margin: 0.5rem 0;
  }
  .banner-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tools-calculator-grid {
    grid-template-columns: 1fr;
  }
  .main-title {
    font-size: 2.4rem;
  }
  .section-desc {
    padding: 0;
  }
  .floating-panel {
    display: none; /* Hide on small mobile screen */
  }
}

/* ==========================================
   YouTube Real-Time Ranking Page Custom Styles
   ========================================== */

.ranking-page-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Rank Hero Banner */
.rank-hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  border-radius: 20px;
}
.hero-rank-title {
  font-family: var(--font-main);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.5px;
}
.hero-rank-title span {
  color: #6366f1;
}
.btn-search-channel {
  background: var(--grad-red);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 5px 15px rgba(244, 63, 94, 0.25);
  transition: var(--transition-smooth);
}
.btn-search-channel:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Rankings Grid Layout */
.rankings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.rank-card {
  padding: 1.75rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.rank-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}
.rank-card-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.25px;
}

.tab-triggers {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3px;
  border-radius: 20px;
}
.tab-triggers .tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.tab-triggers .tab-btn.active {
  background: #6366f1;
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Table Lists */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}
.rank-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: var(--transition-smooth);
}
.rank-list li:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
.rank-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: #6366f1;
  width: 20px;
}
.channel-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  margin-right: 10px;
}
.channel-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}
.channel-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-val {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.val-plus { color: #f43f5e; }
.val-people { color: #06b6d4; }

/* Trend Icons */
.trend-up { color: #f43f5e; font-size: 0.9rem; }
.trend-down { color: #3b82f6; font-size: 0.9rem; }
.trend-flat { color: var(--text-muted); font-size: 0.8rem; }
.trend-new {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.dots-btn-wrapper {
  text-align: center;
  margin-top: 0.5rem;
}
.btn-more-dots {
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-more-dots:hover {
  color: var(--text-muted);
}

/* Styled Avatars Gradients */
.av-1 { background: linear-gradient(135deg, #f43f5e, #be123c); }
.av-2 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.av-3 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.av-4 { background: linear-gradient(135deg, #10b981, #047857); }
.av-5 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.av-6 { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.av-7 { background: linear-gradient(135deg, #ec4899, #be185d); }
.av-8 { background: linear-gradient(135deg, #6366f1, #4338ca); }
.av-9 { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.av-10 { background: linear-gradient(135deg, #e11d48, #9f1239); }
.av-11 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.av-12 { background: linear-gradient(135deg, #84cc16, #4d7c0f); }
.av-13 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.av-14 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.av-15 { background: linear-gradient(135deg, #10b981, #047857); }
.av-16 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.av-17 { background: linear-gradient(135deg, #f43f5e, #be123c); }
.av-18 { background: linear-gradient(135deg, #f59e0b, #b45309); }

/* Media content cards (video / ads) */
.media-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.media-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: var(--transition-smooth);
}
.media-item:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}
.media-thumb-wrapper {
  width: 100px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.media-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
.media-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.media-meta h4 {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}
.media-views {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: #f43f5e;
}
.media-channel {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Styled video thumbs */
.thumb-v1 { background: linear-gradient(135deg, #1e1b4b, #311042); }
.thumb-v2 { background: linear-gradient(135deg, #14532d, #064e3b); }
.thumb-v3 { background: linear-gradient(135deg, #701a75, #4a044e); }
.thumb-a1 { background: linear-gradient(135deg, #581c87, #3b0764); }
.thumb-a2 { background: linear-gradient(135deg, #0c4a6e, #0a3349); }

/* ==========================================
   Bottom Horizontal Popular Lives Track
   ========================================== */

.popular-lives-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2.25rem;
  align-items: center;
  border-radius: 24px;
}

.lives-info-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.lives-info-box h3 {
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.25px;
}
.live-broadcast-count-badge {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  align-self: flex-start;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-all-lives {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}
.btn-all-lives:hover {
  color: #6366f1;
}

.lives-cards-track-wrapper {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 0.5rem;
  margin-bottom: -0.5rem;
}
.lives-cards-track-wrapper::-webkit-scrollbar {
  display: none; /* Chrome */
}

.lives-cards-track {
  display: flex;
  gap: 1rem;
}

.live-card {
  width: 200px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.live-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.live-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  position: relative;
}
.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ef4444;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239,68,68,0.4);
}
.live-viewer-count {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  color: #ff4a68;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.live-card-info {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.live-card-info h4 {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-main);
}
.live-channel {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.live-channel-logo {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.live-channel span {
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Thumbs & Logos */
.thumb-live-1 { background: linear-gradient(135deg, #1e3a8a, #0d306b); }
.thumb-live-2 { background: linear-gradient(135deg, #311042, #4facfe); }
.thumb-live-3 { background: linear-gradient(135deg, #374151, #1f2937); }
.thumb-live-4 { background: linear-gradient(135deg, #be123c, #881337); }
.thumb-live-5 { background: linear-gradient(135deg, #0f172a, #1e293b); }
.thumb-live-6 { background: linear-gradient(135deg, #581c87, #4a044e); }

.logo-mbc { background: #e11d48; }
.logo-plave { background: #06b6d4; }
.logo-hdh { background: #6b7280; }
.logo-jss { background: #f59e0b; }
.logo-jc { background: #84cc16; }
.logo-jy { background: #6366f1; }

@media (max-width: 1100px) {
  .popular-lives-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================
   YouTube News & Docu Insight Page Styles
   ========================================== */

/* Page container adaptation */
.news-page-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Primary Tabs (News, Analysis, Stats) navbar at the top */
.news-top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 16px;
  background: rgba(14, 20, 38, 0.4);
  border: 1px solid var(--panel-border);
}
.nav-tabs-left, .nav-tabs-right {
  display: flex;
  gap: 0.5rem;
}
.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}
.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}
.nav-tab-btn.active {
  color: #fff;
  background: var(--grad-blue);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Nav Tab Icon buttons matching screenshot */
.nav-tab-icon-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}
.nav-tab-icon-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.1);
}
.nav-tab-icon-btn.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

/* Curator Hero Banner */
.news-hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 20, 38, 0.8) 0%, rgba(6, 9, 19, 0.9) 100%);
}
.hero-text-box h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}
.hero-text-box h1 span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}
.hero-text-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
#curated-count-glow {
  color: #f43f5e;
  text-shadow: 0 0 8px rgba(244, 63, 94, 0.4);
  font-weight: 800;
}

/* Filter Toolbar */
.filter-toolbar {
  padding: 1.25rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(14, 20, 38, 0.3);
}

/* Quick Filter Wrapper */
.quick-filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.filter-tag-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-tag-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}
.filter-tag-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #818cf8;
}
.filter-tag-btn.reset-btn {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
}
.filter-tag-btn.reset-btn:hover {
  background: rgba(244, 63, 94, 0.15);
}

/* Search, Dropdowns, and Layout wrapper */
.search-filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding-left: 0.75rem;
  flex: 1;
  min-width: 260px;
  transition: var(--transition-smooth);
}
.search-box:focus-within {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.85rem;
  padding: 0.55rem 0;
  width: 100%;
}
.search-box button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}
.search-box button:hover {
  color: var(--text-main);
}

/* Dropdown Select Boxes */
.news-select-widget {
  background: rgba(14, 20, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  padding: 0.55rem 1.25rem 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  min-width: 130px;
}
.news-select-widget:focus {
  border-color: rgba(99, 102, 241, 0.4);
}

/* Layout Toggles */
.layout-toggle-wrapper {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: 8px;
  margin-left: auto;
}
.layout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-smooth);
}
.layout-btn.active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Summary stats text */
.news-count-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.25rem 0.5rem;
}
.news-count-summary strong {
  color: var(--text-main);
}

/* Tab Panels Content Show/Hide */
.tab-content-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}
.tab-content-panel.active {
  display: block;
}

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

/* Cards Layout Configurations */
.news-cards-container {
  display: grid;
  gap: 1.5rem;
}

/* 1. THUMBNAIL LAYOUT (Default: Large Featured card) */
.news-cards-container.layout-thumbnail {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.news-cards-container.layout-thumbnail .news-item-card {
  display: flex;
  flex-direction: column;
  background: rgba(14, 20, 38, 0.4);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}
.news-cards-container.layout-thumbnail .news-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--panel-hover-border);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.15);
}
.news-cards-container.layout-thumbnail .news-item-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #090d1a;
}
.news-cards-container.layout-thumbnail .news-item-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}
.news-cards-container.layout-thumbnail .news-item-card:hover .news-item-thumb {
  transform: scale(1.05);
}

/* Info container under thumb */
.news-cards-container.layout-thumbnail .news-item-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

/* 2. GRID LAYOUT (Smaller compact cards) */
.news-cards-container.layout-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.news-cards-container.layout-grid .news-item-card {
  display: flex;
  flex-direction: column;
  background: rgba(14, 20, 38, 0.35);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.news-cards-container.layout-grid .news-item-card:hover {
  border-color: var(--panel-hover-border);
  transform: scale(1.02);
}
.news-cards-container.layout-grid .news-item-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.news-cards-container.layout-grid .news-item-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.news-cards-container.layout-grid .news-item-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.news-cards-container.layout-grid .news-item-desc {
  display: none; /* Hide descriptions in grid view */
}

/* 3. LIST LAYOUT (Horizontal row layout) */
.news-cards-container.layout-list {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.news-cards-container.layout-list .news-item-card {
  display: flex;
  flex-direction: row;
  background: rgba(14, 20, 38, 0.3);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 120px;
}
.news-cards-container.layout-list .news-item-card:hover {
  border-color: var(--panel-hover-border);
  background: rgba(14, 20, 38, 0.45);
}
.news-cards-container.layout-list .news-item-thumb-wrapper {
  position: relative;
  width: 200px;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
}
.news-cards-container.layout-list .news-item-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.news-cards-container.layout-list .news-item-content {
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 1.5rem;
}
.news-cards-container.layout-list .news-content-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 0; /* truncate helper */
}
.news-cards-container.layout-list .news-content-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
  width: 220px;
  border-left: 1px solid rgba(255,255,255,0.05);
  padding-left: 1.5rem;
}
/* Style overrides for list view internals */
.news-cards-container.layout-list .news-item-channel-line {
  margin: 0;
}
.news-cards-container.layout-list .news-item-trend-line {
  margin: 0;
}
.news-cards-container.layout-list .news-item-tags {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Internal Styling Details */
.news-badge-top-left {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}
.news-badge-top-left.live {
  background: var(--grad-red);
  box-shadow: 0 2px 10px rgba(244,63,94,0.4);
}
.news-badge-top-left.breaking {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}
.news-badge-top-left.docu {
  background: var(--grad-cyan);
}

.news-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.news-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}
.news-cards-container.layout-list .news-item-title {
  height: auto;
  -webkit-line-clamp: 1;
}

.news-item-channel-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.news-channel-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.1);
}
.news-channel-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
}
.news-region-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
}
.news-region-badge.kr {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}
.news-region-badge.global {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
}

.news-item-stats-line {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.news-item-trend-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.trend-indicator {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.duration-indicator {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-item-tags {
  font-size: 0.7rem;
  color: #6366f1;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.news-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.6rem;
  margin-top: 0.2rem;
}

/* Thumbnail layout helper sizes in list view */
.news-cards-container.layout-list .news-item-desc {
  border-top: none;
  padding-top: 0;
  margin: 0;
}

/* ==========================================
   Analysis View Dashboards
   ========================================== */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.analysis-card {
  padding: 1.5rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.card-title-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}
.card-title-header h3 {
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-curated {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 8px;
  border-radius: 12px;
}

/* Keyword Cloud Cloud */
.keywords-cloud-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-content: center;
  justify-content: center;
  padding: 1rem 0;
}
.keyword-tag {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 6px 12px;
  font-weight: 600;
  text-decoration: none;
}
.keyword-tag:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-2px);
}
.keyword-tag.size-lg { font-size: 1.1rem; color: #f43f5e; border-color: rgba(244, 63, 94, 0.15); padding: 8px 16px; }
.keyword-tag.size-md { font-size: 0.95rem; color: #fbbf24; border-color: rgba(251, 191, 36, 0.15); }
.keyword-tag.size-sm { font-size: 0.78rem; color: #38bdf8; }

/* Broadcaster Share Chart (Pure CSS Bar layout) */
.share-chart-track {
  display: flex;
  height: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}
.share-bar {
  height: 100%;
  transition: width 0.8s ease;
}
.share-chart-legends {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.legend-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Bar Chart columns styling */
.bar-chart-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 180px;
  padding: 1.5rem 0 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.bar-chart-bar {
  width: 45px;
  background: linear-gradient(to top, #3b82f6, #60a5fa);
  border-radius: 6px 6px 0 0;
  position: relative;
  height: var(--height);
  animation: growUp 0.8s ease-out;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}
.bar-chart-bar::after {
  content: attr(data-label);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.bar-val {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
}
@keyframes growUp {
  from { height: 0; }
  to { height: var(--height); }
}

/* Progress listing */
.live-progress-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.live-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.live-progress-row .row-label {
  font-size: 0.78rem;
  width: 80px;
  color: var(--text-muted);
  font-weight: 600;
}
.progress-bar-wrapper {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}
.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--grad-red);
  box-shadow: 0 0 8px rgba(244,63,94,0.4);
}
.live-progress-row .row-pct {
  font-size: 0.75rem;
  font-weight: 700;
  width: 30px;
  text-align: right;
}

/* ==========================================
   Statistics View Dashboards
   ========================================== */
.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.kpi-card {
  padding: 1.25rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(14, 20, 38, 0.4);
  border: 1px solid var(--panel-border);
}
.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.kpi-icon.icon-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.kpi-icon.icon-orange { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.kpi-icon.icon-red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.kpi-icon.icon-purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.kpi-data {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.kpi-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}
.kpi-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.25px;
}

/* Statistics Table comparison details */
.stats-table-wrapper {
  padding: 1.5rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.table-header-box h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.table-header-box span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.comparison-table-scroll {
  overflow-x: auto;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.comparison-table th {
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 600;
}
.comparison-table td {
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-main);
}
.comparison-table tbody tr:hover td {
  background: rgba(255,255,255,0.015);
}

.table-live-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.06);
}
.table-live-status-badge.on {
  background: rgba(244,63,94,0.1);
  color: #f43f5e;
  border-color: rgba(244,63,94,0.3);
}

/* Broadcaster brand colors mapping for chart bar */
.color-sbs { background: #3b82f6; }
.color-jtbc { background: #10b981; }
.color-mbc { background: #ec4899; }
.color-ytn { background: #ef4444; }
.color-kbs { background: #fbbf24; }
.color-others { background: #64748b; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  .stats-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .stats-kpi-grid {
    grid-template-columns: 1fr;
  }
  .search-filter-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .layout-toggle-wrapper {
    margin-left: 0;
    justify-content: center;
  }
  .news-top-navbar {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  .nav-tabs-left, .nav-tabs-right {
    justify-content: center;
  }
}

/* Pulse Dot & Toast Notification Styles for Real-time Investigation */
.pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-animation 1.8s infinite;
  vertical-align: middle;
}
@keyframes pulse-animation {
  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 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.news-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}
.news-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast-icon {
  color: #f43f5e;
  font-size: 1.15rem;
  animation: flash-animation 1s infinite alternate;
}
.toast-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toast-body strong {
  font-size: 0.82rem;
  color: #818cf8;
}
.toast-body span {
  font-size: 0.78rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}
@keyframes flash-animation {
  from { opacity: 0.5; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1.05); }
}

/* Creator Hub Grid Layout */
.creator-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.creator-hub-card {
  padding: 1.75rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  height: 380px; /* fixed height for alignment */
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  transition: var(--transition-smooth);
  overflow: hidden;
  position: relative;
}

.creator-hub-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.creator-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.creator-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}

.creator-card-title-line {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.creator-card-title-line h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-card-title-line span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

.creator-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* Button general for creator cards */
.btn-creator {
  width: 100%;
  border-radius: 12px;
  padding: 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  color: #ffffff;
  transition: var(--transition-smooth);
}

.btn-creator:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* Color Themes */
/* Card theme variants hover borders */
.card-red:hover { border-color: rgba(244, 63, 94, 0.3); }
.card-blue:hover { border-color: rgba(59, 130, 246, 0.3); }
.card-purple:hover { border-color: rgba(168, 85, 247, 0.3); }
.card-green:hover { border-color: rgba(16, 185, 129, 0.3); }
.card-orange:hover { border-color: rgba(249, 115, 22, 0.3); }
.card-cyan:hover { border-color: rgba(6, 182, 212, 0.3); }

/* Buttons background gradients */
.btn-red { background: var(--grad-red); box-shadow: 0 4px 12px rgba(244, 63, 94, 0.2); }
.btn-blue { background: var(--grad-blue); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2); }
.btn-purple { background: var(--grad-purple); box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2); }
.btn-green { background: var(--grad-green); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2); }
.btn-orange { background: var(--grad-gold); box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2); }
.btn-cyan { background: var(--grad-cyan); box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2); }

/* Notice Buttons styling */
.notice-button-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.btn-notice {
  padding: 1.25rem;
  border-radius: 18px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: #ffffff;
  backdrop-filter: blur(20px);
}

.btn-notice i {
  font-size: 1.25rem;
}

.btn-notice-whois {
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.2);
  color: #ec4899;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.05);
}

.btn-notice-whois:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: #ec4899;
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.2);
  transform: translateY(-3px);
}

.btn-notice-update {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.05);
}

.btn-notice-update:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
  transform: translateY(-3px);
}

/* Responsiveness for new layout */
@media (max-width: 1200px) {
  .creator-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .creator-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .notice-button-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .creator-hub-grid {
    grid-template-columns: 1fr;
  }
  .creator-hub-card {
    height: auto;
    min-height: 350px;
  }
}

/* Interactive News Detail Modal Mock Video Player Styles */
.news-detail-modal-container {
  display: flex;
  flex-direction: column;
  color: #f1f5f9;
}
.mock-player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.mock-player-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
}
.mock-player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.mock-player-video:hover .mock-player-overlay {
  background: rgba(0, 0, 0, 0.25);
}
.mock-play-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mock-play-btn i {
  margin-left: 6px; /* align center visually for play icon */
}
.mock-player-video:hover .mock-play-btn {
  transform: scale(1.12);
  box-shadow: 0 12px 35px rgba(236, 72, 153, 0.6);
}
.mock-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.mock-player-video:hover .mock-controls-bar {
  opacity: 1;
}
.playback-timeline {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s;
}
.playback-timeline:hover {
  height: 6px;
}
.playback-progress {
  height: 100%;
  background: #f43f5e;
  border-radius: 2px;
  position: absolute;
  top: 0;
  left: 0;
}
.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #e2e8f0;
}
.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.controls-left i, .controls-right i {
  cursor: pointer;
  transition: color 0.2s;
}
.controls-left i:hover, .controls-right i:hover {
  color: #fff;
}
.playback-time {
  font-size: 0.78rem;
  color: #cbd5e1;
}
.modal-tag-link {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #818cf8;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-decoration: none;
  margin-right: 5px;
  margin-top: 4px;
  transition: all 0.2s;
}
.modal-tag-link:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
  color: #fff;
}

/* Real-time Update Button & Schedule Info Styles */
.hero-action-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.btn-update-action {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-update-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-update-action:active {
  transform: translateY(0);
}
.spinning-icon {
  animation: spin-kf 1s linear infinite;
}
@keyframes spin-kf {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.update-schedule-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.last-update-time {
  color: #10b981;
  font-weight: 600;
}
@media (max-width: 768px) {
  .news-hero-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .hero-action-box {
    align-items: flex-start;
    width: 100%;
  }
  .update-schedule-info {
    align-items: flex-start;
  }
}


