/* ===================================================
   DRAKORID - Modern Korean Drama & Movie Streaming App Stylesheet
   Strict Behance Reference & Production Design
   Brand Theme: DrakorID Royal Ocean Blue & Vivid Cyan
   =================================================== */

:root {
  --bg-main: #060B13;
  --bg-surface: #0A1120;
  --bg-card: #0F1A30;
  --bg-card-hover: #162444;
  
  /* iDrama Brand Palette (from official logo) */
  --accent-blue: #0077D4;
  --accent-azure: #0099FF;
  --accent-cyan: #3BCBFF;
  --accent-green: #38BDF8;
  --accent-gradient: linear-gradient(135deg, #0052CC 0%, #0099FF 55%, #3BCBFF 100%);
  --accent-cyan-green: linear-gradient(135deg, #3BCBFF 0%, #38BDF8 100%);
  --glow-cyan: rgba(59, 203, 255, 0.45);
  --hover-tint: rgba(59, 203, 255, 0.14);

  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.76);
  --text-muted: rgba(255, 255, 255, 0.45);

  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: #3BCBFF;
  --glass-bg: rgba(10, 15, 24, 0.82);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 4px 20px rgba(59, 203, 255, 0.45);

  --max-width: 480px; /* Mobile App simulation container */
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #04060A;
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* App Container (Mobile App Frame) */
.app-container {
  width: 100%;
  max-width: var(--max-width);
  background-color: var(--bg-main);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
  padding-bottom: 96px; /* Space for floating bottom nav pill */
  transition: max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Wide Screen Layout Toggle */
body.widescreen-mode .app-container {
  max-width: 1200px;
}
body.widescreen-mode .drama-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
body.widescreen-mode .app-header {
  max-width: 1200px;
}

/* Dual Icon Switcher for Mobile / Desktop View Mode (100% CSS Driven) */
#viewModeBtn .mode-icon-mobile {
  display: none !important;
}
#viewModeBtn .mode-icon-monitor {
  display: block !important;
}
body.widescreen-mode #viewModeBtn .mode-icon-mobile {
  display: block !important;
}
body.widescreen-mode #viewModeBtn .mode-icon-monitor {
  display: none !important;
}

/* ===================================================
   Fixed Header (Always visible on scroll)
   =================================================== */
.app-header.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-light);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo-img {
  height: 32px;
  width: auto;
  max-width: 38px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 180, 255, 0.4));
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  background: linear-gradient(135deg, #FFFFFF 25%, #3BCBFF 70%, #3BCBFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: var(--hover-tint);
  border-color: var(--border-hover);
  color: var(--accent-cyan);
}

/* Language Pill Button with Globe Icon */
.lang-btn {
  border-radius: var(--radius-full);
  width: auto;
  padding: 0 12px;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.globe-icon {
  stroke: var(--text-secondary);
}

.lang-btn:hover .globe-icon {
  stroke: var(--accent-cyan);
}

.lang-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(14, 20, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 150px;
  box-shadow: var(--shadow-card);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.dropdown-item:hover, .dropdown-item.active {
  background: rgba(0, 198, 255, 0.15);
  color: var(--accent-cyan);
}

.dropdown-code {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ===================================================
   Main Content Area
   =================================================== */
.main-content {
  flex: 1;
  padding-top: 66px; /* Offset for fixed header */
}

.tab-view {
  display: none;
}

.tab-view.active {
  display: block;
}

/* ===================================================
   Category Filter Pills (Above Hero Slider - Image 5)
   =================================================== */
.categories-bar-wrap {
  padding: 14px 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.categories-bar-wrap::-webkit-scrollbar {
  display: none;
}

.categories-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
}

.category-pill,
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.category-pill:hover,
.cat-pill:hover {
  background: var(--hover-tint);
  border-color: var(--border-hover);
  color: #fff;
}

.category-pill.active,
.cat-pill.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 198, 255, 0.35);
}

.category-icon-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* ===================================================
   3D Coverflow Hero Slider (Image 5 Reference)
   =================================================== */
.hero-coverflow-wrap {
  position: relative;
  width: 100%;
  padding: 10px 0 16px;
  overflow: hidden;
}

.coverflow-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 20, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.coverflow-nav-btn:hover {
  background: var(--hover-tint);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 16px rgba(0, 198, 255, 0.4);
}

.coverflow-nav-btn.prev-btn {
  left: 12px;
}

.coverflow-nav-btn.next-btn {
  right: 12px;
}

.hero-coverflow-container {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coverflow-skeleton {
  width: 74%;
  max-width: 290px;
  height: 360px;
  border-radius: 28px;
  background: linear-gradient(90deg, #121824 25%, #1B2436 50%, #121824 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.coverflow-card {
  position: absolute;
  width: 75%;
  max-width: 290px;
  height: 360px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  cursor: pointer;
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.45s ease, filter 0.45s ease;
  user-select: none;
}

/* 3D Carousel Positioning */
.coverflow-card.card-center {
  transform: translateX(0) scale(1);
  z-index: 10;
  opacity: 1;
  filter: none;
}

.coverflow-card.card-left {
  transform: translateX(-70%) scale(0.86);
  z-index: 5;
  opacity: 0.45;
  filter: brightness(0.65) blur(0.5px);
}

.coverflow-card.card-right {
  transform: translateX(70%) scale(0.86);
  z-index: 5;
  opacity: 0.45;
  filter: brightness(0.65) blur(0.5px);
}

.coverflow-card.card-hidden {
  transform: translateX(0) scale(0.7);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.coverflow-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coverflow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 11, 17, 0.96) 0%, rgba(8, 11, 17, 0.45) 45%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
}

.coverflow-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.coverflow-title {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coverflow-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Carousel Dots Indicator */
.hero-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-dot.active {
  width: 22px;
  height: 6px;
  background: var(--accent-cyan-green);
  border-radius: 4px;
}

/* ===================================================
   Sections & Titles
   =================================================== */
.content-section {
  padding: 20px 16px 10px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon-svg {
  display: flex;
  align-items: center;
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.section-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.section-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 198, 255, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ===================================================
   Top 10 Trending Slider (Auto-scroll)
   =================================================== */
.trending-scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.trending-scroll-container::-webkit-scrollbar {
  display: none;
}

.trending-card {
  position: relative;
  min-width: 140px;
  max-width: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
}

.trending-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 16px rgba(0, 198, 255, 0.2);
}

.card-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4.2;
  overflow: hidden;
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.rank-badge.top1 {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  border-color: #FFE066;
}
.rank-badge.top2 {
  background: linear-gradient(135deg, #3BCBFF 0%, #0070F3 100%);
  color: #fff;
  border-color: #3BCBFF;
}
.rank-badge.top3 {
  background: linear-gradient(135deg, #3BCBFF 0%, #009944 100%);
  color: #fff;
}

.card-play-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.card-poster-wrap:hover .card-play-hover {
  opacity: 1;
}

.play-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.play-bubble svg {
  width: 17px;
  height: 17px;
  fill: #fff;
  margin-left: 2px;
}

.card-ep-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-info {
  padding: 8px 8px 10px;
}

.card-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-muted);
}

.card-tag {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ===================================================
   Grid (For You, Search, Library) - 2 Columns
   =================================================== */
.drama-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 12px;
  padding: 0;
}

/* 2-column cards: tall, elegant vertical aspect ratio */
.drama-grid .trending-card {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  border-radius: 16px;
}

.drama-grid .card-poster-wrap {
  aspect-ratio: 3/4.4;
  border-radius: 14px;
}

.drama-grid .card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.drama-grid .card-meta {
  font-size: 11px;
}

/* Infinite Scroll Loader Spinner */
.infinite-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.spinner-ring {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 198, 255, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===================================================
   Rankings Tab View
   =================================================== */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}

.rank-item {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.rank-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.rank-number {
  font-size: 20px;
  font-weight: 800;
  min-width: 30px;
  text-align: center;
  color: var(--text-muted);
}

.rank-number.top1 { color: #FFD700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.rank-number.top2 { color: var(--accent-cyan); text-shadow: 0 0 10px rgba(0, 198, 255, 0.5); }
.rank-number.top3 { color: var(--accent-green); }

.rank-poster {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.rank-details {
  flex: 1;
  overflow: hidden;
}

.rank-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.rank-tags {
  font-size: 11px;
  color: var(--accent-cyan);
  margin-bottom: 2px;
}

.rank-eps {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===================================================
   Search Tab View
   =================================================== */
.search-input-wrap {
  margin: 16px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  stroke: var(--text-muted);
}

.search-input-wrap input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 12px 42px 12px 44px;
  border-radius: var(--radius-full);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input-wrap input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 198, 255, 0.3);
}

.clear-btn {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.popular-searches {
  padding: 0 16px 14px;
}

.popular-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.tag-chip:hover {
  background: var(--hover-tint);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 12px;
  padding: 16px 16px 80px;
}

@media (min-width: 768px) {
  .search-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px 14px;
  }
}

/* Fallback Card Support */
.drama-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
}

.card-thumb-wrap {
  width: 100%;
  aspect-ratio: 3/4.4;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===================================================
   Profile / License Card
   =================================================== */
.profile-card-wrap {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.profile-header-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.profile-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 198, 255, 0.1);
  border: 2px dashed var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-circle svg {
  stroke: var(--accent-cyan);
}

.profile-info h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.vip-badge {
  background: var(--accent-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.license-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.license-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.license-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lic-label {
  font-size: 13px;
  color: var(--text-muted);
}

.lic-val {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.status-active {
  color: var(--accent-green);
}

/* Page Titles */
.page-title-bar {
  padding: 16px 16px 8px;
}

.page-title-bar h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.page-title-bar p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
}

/* ===================================================
   Floating Curved Pill Bottom Navbar
   Semi-transparent, Frosted Glass & Icons with Labels
   =================================================== */
.bottom-nav-pill {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: calc(100% - 32px);
  max-width: 400px;
  height: 66px;
  background: rgba(12, 18, 28, 0.65); /* Semi-transparent frosted glass */
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  z-index: 900;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: max-width 0.3s;
  isolation: isolate;
}

body.widescreen-mode .bottom-nav-pill {
  max-width: 480px;
}

.pill-nav-item {
  background: transparent;
  border: none;
  color: #FFFFFF;
  opacity: 0.65;
  flex: 1;
  max-width: 86px;
  height: 100%;
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  padding: 4px 0;
}

.pill-nav-item:hover {
  color: var(--accent-cyan);
  opacity: 1;
}

.pill-nav-item.active {
  color: var(--accent-cyan);
  opacity: 1;
  transform: translateY(-1px);
}

/* Crisp, HD Vector Icons */
.pill-svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
  display: block;
  shape-rendering: geometricPrecision;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-nav-item.active .pill-svg {
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(0, 198, 255, 0.5));
}

/* Text Label below Icon */
.pill-nav-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.2px;
  color: currentColor;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pill-nav-item.active .pill-nav-label {
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 198, 255, 0.45);
}

/* ===================================================
   Short-Form Drama Video Player Modal
   =================================================== */
.player-modal {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
}

.player-modal.open,
.player-modal.active {
  display: flex !important;
  animation: fadeIn 0.25s ease-out;
}

.player-container {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: 480px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.drama-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.32s ease;
}

.drama-video.slide-up-out {
  transform: translateY(-100%);
  opacity: 0;
}

.drama-video.slide-down-out {
  transform: translateY(100%);
  opacity: 0;
}

.drama-video.slide-up-in {
  animation: slideUpIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.drama-video.slide-down-in {
  animation: slideDownIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes slideUpIn {
  from {
    transform: translateY(100%);
    opacity: 0.4;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDownIn {
  from {
    transform: translateY(-100%);
    opacity: 0.4;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* TikTok-style Episode Indicator */
.swipe-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(14, 20, 32, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 198, 255, 0.4);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(0, 198, 255, 0.3);
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.swipe-hint.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Subtitle Overlay */
.sub-overlay {
  position: absolute;
  bottom: 84px;
  left: 20px;
  right: 20px;
  text-align: center;
  pointer-events: none;
  z-index: 20;
}

.sub-text-line {
  display: inline-block;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Video Tap Overlay */
.video-tap-area {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.play-state-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s;
  pointer-events: none;
}

.play-state-icon svg {
  width: 36px;
  height: 36px;
  fill: #fff;
  margin-left: 4px;
}

.play-state-icon.show {
  opacity: 1;
  transform: scale(1);
}

/* Prominent Top Player Bar (Notch & Safe Area Safe) */
.player-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: max(20px, env(safe-area-inset-top, 24px)) 16px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  background: linear-gradient(180deg, rgba(4, 7, 12, 0.92) 0%, rgba(4, 7, 12, 0.5) 65%, transparent 100%);
  z-index: 100;
  pointer-events: none;
}

.player-back-btn {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: rgba(14, 20, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.player-back-btn:hover {
  background: var(--hover-tint);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: scale(1.05);
}

.player-meta {
  flex: 1;
  overflow: hidden;
  text-align: left;
}

.player-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.player-ep-badge {
  font-size: 11px;
  color: var(--accent-cyan);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Minimalist Right Side Action Bar */
.player-right-actions {
  position: absolute;
  right: 12px;
  bottom: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  z-index: 100 !important;
  pointer-events: auto !important;
}

.action-circle-btn {
  background: transparent;
  border: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 2px;
}

.action-circle-btn:active {
  transform: scale(0.92);
}

.action-icon-circle {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-sizing: border-box;
  background: rgba(14, 20, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.action-icon-circle svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: #fff;
  flex-shrink: 0;
  margin: auto;
  pointer-events: none;
}

.action-circle-btn:hover .action-icon-circle,
.action-circle-btn:active .action-icon-circle {
  border-color: var(--accent-cyan);
  background: var(--hover-tint);
}

.action-circle-btn:hover .action-icon-circle svg,
.action-circle-btn:active .action-icon-circle svg {
  stroke: var(--accent-cyan);
}

.action-circle-btn.active .action-icon-circle {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 198, 255, 0.5);
}

.action-circle-btn.active .action-icon-circle svg {
  stroke: var(--accent-cyan);
}

.side-ep-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  background: var(--accent-cyan-green);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  border: 1.5px solid #000;
  box-shadow: 0 2px 6px rgba(0, 198, 255, 0.5);
}

.action-label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.2px;
}

/* Bottom Controls & Timeline */
.player-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 16px max(18px, env(safe-area-inset-bottom, 18px)) 16px;
  background: linear-gradient(0deg, rgba(4, 7, 12, 0.95) 0%, rgba(4, 7, 12, 0.4) 70%, transparent 100%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.time-and-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.time-display {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

/* Scrub Bar */
.scrub-container {
  position: relative;
  width: 100%;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.scrub-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  pointer-events: none;
}

.scrub-buffer {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  width: 0%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  pointer-events: none;
}

.scrub-progress {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #00C8FF, #3BCBFF);
  border-radius: 2px;
  pointer-events: none;
}

.scrub-handle {
  position: absolute;
  left: 0%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #3BCBFF;
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.85);
  pointer-events: none;
  z-index: 5;
  transition: transform 0.1s ease;
}

.scrub-container:active .scrub-handle {
  transform: translate(-50%, -50%) scale(1.25);
}

/* Episodes Drawer & Subtitle Drawer */
.episodes-drawer,
.sub-drawer {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(14, 20, 32, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-hover, #3BCBFF);
  border-radius: var(--radius-xl, 20px) var(--radius-xl, 20px) 0 0;
  padding: 20px 16px max(24px, env(safe-area-inset-bottom, 24px));
  z-index: 200 !important;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  transition: bottom 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85);
  touch-action: pan-y;
  overscroll-behavior: contain;
  visibility: hidden !important;
  pointer-events: none !important;
}

.episodes-drawer.open,
.episodes-drawer.active,
.sub-drawer.open,
.sub-drawer.active {
  bottom: 0 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.drawer-title h4 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.drawer-title span {
  font-size: 11px;
  color: var(--text-muted);
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.episode-number-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  overflow-y: auto;
  max-height: 50vh;
  padding-right: 4px;
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ep-btn,
.ep-num-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
  color: var(--text-secondary, #cbd5e1);
  height: 44px;
  border-radius: var(--radius-sm, 8px);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ep-btn:hover,
.ep-num-btn:hover {
  background: var(--hover-tint, rgba(59, 203, 255, 0.14));
  border-color: #3BCBFF;
  color: #fff;
  transform: scale(1.05);
}

.ep-btn.active,
.ep-num-btn.active {
  background: var(--accent-gradient, linear-gradient(135deg, #0284c7, #3BCBFF));
  border-color: #3BCBFF;
  color: #fff;
  box-shadow: 0 0 16px rgba(59, 203, 255, 0.5);
}

.sub-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 48vh;
  padding: 4px 2px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sub-item,
.sub-item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
  color: var(--text-secondary, #cbd5e1);
  padding: 13px 16px;
  border-radius: var(--radius-md, 10px);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sub-item:hover,
.sub-item-btn:hover {
  background: rgba(59, 203, 255, 0.12);
  border-color: #3BCBFF;
  color: #fff;
  transform: translateX(4px);
}

.sub-item.active,
.sub-item-btn.active {
  background: rgba(59, 203, 255, 0.18);
  border-color: #3BCBFF;
  color: #fff;
  box-shadow: 0 0 16px rgba(59, 203, 255, 0.35);
}

.sub-badge {
  background: #3BCBFF;
  color: #0b111e;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* TikTok / Shorts Vertical Episode Scroll HUD */
.player-scroll-hud {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(14, 20, 32, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #3BCBFF;
  box-shadow: 0 0 32px rgba(59, 203, 255, 0.5);
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  z-index: 130;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.player-scroll-hud.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(14, 20, 32, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 198, 255, 0.3);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 198, 255, 0.2);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Skeletons & Animations */
.card-skeleton {
  min-width: 140px;
  height: 200px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #121824 25%, #1B2436 50%, #121824 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Desktop Responsive Tweaks */
@media (min-width: 768px) {
  .desktop-only {
    display: flex !important;
  }
  .app-container {
    margin: 20px 0;
    border-radius: 28px;
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
}


/* ===================================================
   DrakorID Custom License Menu & Modal Styling
   =================================================== */

.brand-accent {
  color: var(--accent-cyan);
  background: linear-gradient(135deg, #0099FF, #3BCBFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header Quick License Badge */
.header-lic-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.header-lic-badge:hover {
  background: rgba(0, 198, 255, 0.1);
  border-color: rgba(0, 198, 255, 0.3);
}
.header-lic-badge .lic-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 8px #EF4444;
}
.header-lic-badge.verified .lic-dot {
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}
.header-lic-badge.verified {
  border-color: rgba(16, 185, 129, 0.3);
  color: #10B981;
}

/* Bottom Nav License Dot Indicator */
.nav-lic-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-lic-dot {
  position: absolute;
  top: -1px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  border: 1.5px solid var(--bg-surface);
}
.nav-lic-dot.verified {
  background: #10B981;
}

/* License Status Banner Card */
.license-status-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  transition: all 0.3s;
}
.license-status-card.status-unlicensed {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.license-status-card.status-licensed {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(0, 198, 255, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.lic-status-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}
.status-unlicensed .lic-status-icon-wrap {
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.4);
}
.status-licensed .lic-status-icon-wrap {
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.1);
}

.lic-status-info {
  flex: 1;
}
.lic-status-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.lic-status-pill {
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lic-status-pill.pill-warning {
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.lic-status-pill.pill-success {
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.lic-env-pill {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.lic-status-info h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.lic-status-info p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* License Token Input Card */
.license-input-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 22px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.lic-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.card-icon-tag {
  color: var(--accent-cyan);
}
.lic-card-title-row h4 {
  font-size: 16px;
  font-weight: 700;
}
.input-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}
.admin-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(0, 198, 255, 0.4);
}
.admin-link:hover {
  border-bottom-style: solid;
}

.token-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.token-input-group input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s;
  letter-spacing: 1px;
  text-align: center;
  box-sizing: border-box;
}

.token-input-group input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 18px rgba(0, 198, 255, 0.3);
}

.btn-activate-license {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--accent-gradient);
  border: none;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 153, 255, 0.35);
  transition: all 0.2s;
  box-sizing: border-box;
}

.btn-activate-license:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 198, 255, 0.45);
}

.btn-activate-license:active {
  transform: translateY(0);
}

.license-msg-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.4;
}
.license-msg-box.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6EE7B7;
}
.license-msg-box.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

/* Active License Details Card */
.license-info-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 198, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.lic-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.lic-detail-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.btn-revoke-license {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #F87171;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-revoke-license:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.license-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.license-row:last-child {
  border-bottom: none;
}
.lic-label {
  font-size: 13px;
  color: var(--text-muted);
}
.lic-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.lic-val.status-active {
  color: #34D399;
  font-weight: 700;
}
.lic-val.mono-font {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

/* Info Guide Card */
.info-guide-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.guide-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.guide-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.guide-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.guide-text code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-cyan);
}

/* ===================================================
   MANDATORY LICENSE GATE MODAL
   =================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.25s ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card {
  position: relative;
  background: #0B1222;
  border: 1px solid rgba(0, 198, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 198, 255, 0.15);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.modal-lock-icon {
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
}
.lock-glow-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 198, 255, 0.1);
  border: 1.5px solid rgba(0, 198, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(0, 198, 255, 0.25);
  animation: pulseLock 2s infinite ease-in-out;
}
@keyframes pulseLock {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 198, 255, 0.2); }
  50% { box-shadow: 0 0 35px rgba(0, 198, 255, 0.45); }
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 22px;
}
.modal-desc strong {
  color: var(--accent-cyan);
}

.modal-form-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.modal-form-box input {
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(0, 198, 255, 0.25);
  color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  outline: none;
  text-align: center;
  letter-spacing: 0.5px;
}
.modal-form-box input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 198, 255, 0.3);
}

.btn-primary-glow {
  background: var(--accent-gradient);
  border: none;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 153, 255, 0.4);
  transition: all 0.2s;
}
.btn-primary-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(0, 198, 255, 0.5);
}

.gate-error-msg {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
  font-size: 13px;
  margin-bottom: 14px;
}

.modal-footer-nav {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.vip-badge.unverified {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.status-unlicensed {
  color: #EF4444 !important;
}

/* Player Notice Overlay */
.player-notice-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.notice-box {
  background: #0E1420;
  border: 1px solid rgba(0, 198, 255, 0.3);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}
.notice-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.notice-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.btn-notice-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 4px 18px rgba(0, 198, 255, 0.4);
  transition: all 0.2s;
}
.btn-notice-action:hover {
  transform: translateY(-1px);
}


/* ==========================================
   ACTIVE LICENSE STATUS CARD
   ========================================== */
.active-license-card {
  background: linear-gradient(145deg, rgba(16, 24, 48, 0.95), rgba(9, 14, 28, 0.98));
  border: 1px solid rgba(0, 198, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 198, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.active-license-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #3BCBFF, #6366F1);
}

.active-lic-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.active-lic-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.active-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 20px;
}

.pulsing-green-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseDotAnim 1.8s infinite ease-in-out;
}

@keyframes pulseDotAnim {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px #10B981; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #34D399; }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px #10B981; }
}

.vip-chip-small {
  background: linear-gradient(135deg, #0099FF, #3BCBFF);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 198, 255, 0.3);
}

.btn-switch-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-switch-token:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
}

.active-token-banner {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.token-banner-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banner-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.token-banner-code-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.active-token-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #3BCBFF;
  letter-spacing: 1.2px;
}

.copy-token-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 198, 255, 0.12);
  border: 1px solid rgba(0, 198, 255, 0.3);
  color: #3BCBFF;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-token-mini-btn:hover {
  background: rgba(0, 198, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.3);
}

.token-name-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.name-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.token-name-tag strong {
  font-size: 14px;
  color: #FFFFFF;
  font-weight: 700;
}

.active-details-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.table-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 600px) {
  .table-stat-row {
    grid-template-columns: 1fr;
  }
  .token-name-tag {
    align-items: flex-start;
  }
}

.stat-cell {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s;
}

.stat-cell:hover {
  background: rgba(255, 255, 255, 0.05);
}

.stat-cell-lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.stat-cell-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.stat-cell-val.val-cyan {
  color: #3BCBFF;
}

.stat-cell-val.val-danger {
  color: #F87171;
}

.stat-cell-val.val-success {
  color: #34D399;
}

.stat-cell-val.val-accent {
  color: #A78BFA;
}

.active-footer-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.4;
}

/* Language Dropdown & Header Visibility Enhancements */
.app-header.fixed-header {
  overflow: visible !important;
}
.header-right {
  overflow: visible !important;
  position: relative;
}
.lang-dropdown {
  position: relative;
  z-index: 10000;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(14, 20, 32, 0.98) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-hover) !important;
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.9);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 999999 !important;
}
.dropdown-menu.show {
  display: flex !important;
}
.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.dropdown-item:hover, .dropdown-item.active {
  background: var(--hover-tint) !important;
  color: #FFFFFF !important;
}
.dropdown-item.active {
  border-left: 3px solid var(--accent-cyan);
}


/* Uniform #3BCBFF Hover Styling Across All Components */
.drama-card:hover .card-poster-wrap {
  outline: 2px solid #3BCBFF !important;
  box-shadow: 0 4px 20px rgba(59, 203, 255, 0.45) !important;
}
.drama-card:hover .card-play-hover {
  background: rgba(59, 203, 255, 0.25) !important;
}
.trending-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 16px rgba(59, 203, 255, 0.45) !important;
}
.cat-pill:hover, .tag-chip:hover, .icon-btn:hover, .rank-item:hover, .ep-btn:hover, .coverflow-nav-btn:hover {
  border-color: #3BCBFF !important;
  background: rgba(59, 203, 255, 0.14) !important;
  color: #3BCBFF !important;
}

/* Left Side Quick Episode Switcher */
.player-left-nav {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 150 !important;
  pointer-events: auto !important;
}

.nav-arrow-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 20, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  pointer-events: auto !important;
}

.nav-arrow-pill:hover,
.nav-arrow-pill:active {
  border-color: #3BCBFF !important;
  color: #3BCBFF !important;
  background: rgba(59, 203, 255, 0.2) !important;
  transform: scale(1.12);
  box-shadow: 0 0 18px rgba(59, 203, 255, 0.5) !important;
}

/* PERMANENTLY HIDE PLAYER UP/DOWN ARROWS */
.player-left-nav,
#quickPrevBtn,
#quickNextBtn,
.nav-arrow-pill {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* HIDE OLD EPISODE POPUP HUD & PLAYER ARROWS */
.player-scroll-hud,
#playerScrollHud,
.player-left-nav,
#quickPrevBtn,
#quickNextBtn,
.nav-arrow-pill {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Apple iOS Native Activity Spinner */
.ios-player-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 125;
  pointer-events: none;
  color: #c7c7cc;
}

.ios-player-loader.active {
  display: flex !important;
}

.ios-spinner-svg {
  width: 100%;
  height: 100%;
  animation: iosSpin 1s steps(12, end) infinite;
}

@keyframes iosSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* ===================================================
   Browse Category View Styling (Matches User Screenshot)
   =================================================== */
#viewCategory {
  display: none;
  padding: 16px 16px 100px;
}

#viewCategory.active {
  display: block !important;
}

/* Browse Header with Chevron */
.browse-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 14px;
}

.browse-title {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.3px;
}

.browse-chevron-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
}

.browse-chevron-btn:hover {
  background: rgba(229, 9, 20, 0.15);
  color: #FFFFFF;
  border-color: #E50914;
}

.browse-chevron-btn.collapsed svg {
  transform: rotate(180deg);
}

/* 3-Column Browse Grid Panel */
.browse-grid-panel {
  max-height: 800px;
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 20px;
}

.browse-grid-panel.collapsed {
  max-height: 0 !important;
  margin-bottom: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.browse-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 8px;
}

.browse-cat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.browse-cat-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Active Category Pill: Exactly like in the image (pinkish red text #FF2C55 / #E50914) */
.browse-cat-btn.active {
  background: rgba(229, 9, 20, 0.12);
  border-color: rgba(229, 9, 20, 0.45);
  color: #FF2C55;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.25);
}

/* Category Active Meta Bar */
.category-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.category-meta-left h3 {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 2px 0;
}

.category-active-desc {
  font-size: 12px;
  color: #64748B;
}

.category-count-badge {
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 2x15 Feed Grid (2 columns on mobile, responsive on desktop) */
.category-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px 12px;
  padding: 0;
  margin-bottom: 24px;
}

body.widescreen-mode .category-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
}

/* Category Pagination Controls (2x15 = 30 items per page) */
.category-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 32px;
  flex-wrap: wrap;
}

.pag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pag-btn:hover:not(:disabled) {
  background: rgba(229, 9, 20, 0.15);
  border-color: #E50914;
  color: #FFFFFF;
}

.pag-btn.active {
  background: #E50914 !important;
  border-color: #E50914 !important;
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.4);
}

.pag-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pag-info {
  font-size: 12px;
  color: #64748B;
  margin: 0 6px;
  font-weight: 500;
}
