/* ==========================================================================
   Cinema Movie Database - Refined Lampa Smart TV Theme & Styles
   ========================================================================== */

:root {
  --lampa-bg: #374e44;
  --lampa-surface: #2d4037;
  --lampa-surface-hover: #3b5247;
  --lampa-border: rgba(255, 255, 255, 0.08);
  --lampa-focus-border: #ffffff;
  --lampa-focus-glow: rgba(255, 255, 255, 0.25);
  --lampa-text: #ffffff;
  --lampa-text-muted: #cbd5e1;
  --lampa-red: #e50914;
  --lampa-yellow: #ffd700;
  --lampa-sidebar-width: 240px;
  --lampa-sidebar-collapsed: 68px;
}

/* Custom TV Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #25332c;
}
::-webkit-scrollbar-thumb {
  background: #3b5247;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4a6659;
}

/* Base Body - Organic olive-green background matching 'Референс.png' */
body {
  background: linear-gradient(180deg, #374e44 0%, #445c4b 40%, #546342 100%);
  background-attachment: fixed;
  color: var(--lampa-text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background vignette */
.lampa-backdrop-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 420px;
  background: radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.05) 0%, rgba(55, 78, 68, 0) 75%);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   1. Top Navigation Bar (Header)
   ========================================================================== */
.lampa-header {
  position: sticky;
  top: 0;
  z-index: 45;
  height: 68px;
  background: rgba(45, 64, 55, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.lampa-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lampa-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.lampa-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.lampa-icon-btn.active {
  background: #ffffff;
  color: #161718;
}

.lampa-icon-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--lampa-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Notification Bell Red Indicator Dot from 'Референс.png' */
.lampa-badge-notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  background: #e53e3e;
  border-radius: 50%;
  border: 1.5px solid #2d4037;
  pointer-events: none;
}

.lampa-page-title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lampa-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lampa-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Live Digital Clock */
.lampa-clock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 820px) {
  .lampa-clock {
    display: none !important;
  }
  .lampa-header {
    height: 60px;
    padding: 0 14px;
  }
  .lampa-header-left {
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  .lampa-page-title {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }
  .lampa-header-actions {
    gap: 6px;
  }
  .lampa-icon-btn {
    width: 38px;
    height: 38px;
  }
}

.lampa-clock-time {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1;
}

.lampa-clock-date-group {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: right;
}

.lampa-clock-date {
  font-size: 0.74rem;
  color: #f1f5f9;
  font-weight: 500;
  white-space: nowrap;
}

.lampa-clock-day {
  font-size: 0.72rem;
  color: #cbd5e1;
  white-space: nowrap;
}

/* ==========================================================================
   2. Left Sidebar (Section Switcher)
   ========================================================================== */
.lampa-sidebar {
  position: fixed;
  top: 66px;
  left: 0;
  bottom: 0;
  width: var(--lampa-sidebar-collapsed);
  background: #161718;
  border-right: 1px solid var(--lampa-border);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 16px 8px;
  gap: 8px;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.lampa-sidebar.expanded {
  width: var(--lampa-sidebar-width);
  box-shadow: 12px 0 32px rgba(0, 0, 0, 0.7);
}

.lampa-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.lampa-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Active Section Pill */
.lampa-nav-item.active {
  background: #ffffff;
  color: #141516;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.lampa-nav-item.active svg {
  color: #141516;
}

.lampa-nav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lampa-nav-label {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  font-size: 0.88rem;
}

.lampa-sidebar.expanded .lampa-nav-label {
  opacity: 1;
  transform: translateX(0);
}

/* Sidebar Backdrop for Mobile */
.lampa-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 39;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.lampa-sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Main Content Area */
.lampa-main-content {
  margin-left: var(--lampa-sidebar-collapsed);
  padding: 24px 32px 64px 32px;
  transition: margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: calc(100vh - 66px);
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .lampa-sidebar {
    top: 0;
    height: 100vh;
    width: 270px;
    transform: translateX(-100%);
    z-index: 42;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
  }
  .lampa-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.85);
  }
  .lampa-sidebar.mobile-open .lampa-nav-label {
    opacity: 1;
    transform: translateX(0);
  }
  .lampa-main-content {
    margin-left: 0;
    padding: 14px 14px 60px 14px;
  }
}

/* ==========================================================================
   3. Search Container With Embedded Filters
   ========================================================================== */
.lampa-search-panel {
  background: #1c1d1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.lampa-search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #252729;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 16px;
}

.lampa-search-input-row:focus-within {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff;
}

.lampa-search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
}

.lampa-search-input::placeholder {
  color: #727477;
}

.lampa-embedded-filters {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: flex-end;
}

.lampa-filter-label {
  font-size: 0.72rem;
  color: var(--lampa-text-muted);
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.lampa-filter-input {
  background: #252729;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.lampa-filter-input:focus {
  border-color: #ffffff;
}

/* ==========================================================================
   4. Horizontal Content Rails & Expanded View
   ========================================================================== */
.lampa-section {
  margin-bottom: 38px;
  transition: all 0.25s ease;
}

.lampa-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 4px;
}

.lampa-section-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.lampa-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lampa-section-badge {
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  color: var(--lampa-text-muted);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .lampa-section-title {
    font-size: 1.15rem;
  }
  .lampa-section-badge {
    display: none;
  }
}

.lampa-btn-more {
  background: #2a2b2c;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.lampa-btn-more:hover {
  background: #ffffff;
  color: #141516;
  border-color: #ffffff;
}

.lampa-btn-back-sections {
  background: #ffffff;
  color: #141516;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 20px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.lampa-btn-back-sections:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.lampa-rail-wrapper {
  position: relative;
}

.lampa-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 18px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.lampa-rail::-webkit-scrollbar {
  display: none;
}

/* Left & Right Rail Navigation Buttons */
.lampa-rail-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 21, 22, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.lampa-rail-wrapper:hover .lampa-rail-arrow {
  opacity: 1;
}

.lampa-rail-arrow:hover {
  background: #ffffff;
  color: #141516;
  transform: translateY(-50%) scale(1.08);
}

.lampa-rail-arrow.left {
  left: -14px;
}

.lampa-rail-arrow.right {
  right: -14px;
}

@media (hover: none), (pointer: coarse) {
  .lampa-rail-arrow {
    display: none !important;
  }
}

/* ==========================================================================
   4. Reference 6-Column Grid & Content Layout
   ========================================================================== */
.lampa-expanded-grid,
.lampa-main-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 22px;
  row-gap: 32px;
  padding: 24px 36px 48px 36px;
}

@media (max-width: 1600px) {
  .lampa-expanded-grid,
  .lampa-main-grid {
    grid-template-columns: repeat(5, 1fr);
    column-gap: 18px;
    row-gap: 28px;
    padding: 20px 24px;
  }
}

@media (max-width: 1200px) {
  .lampa-expanded-grid,
  .lampa-main-grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 16px;
    row-gap: 24px;
    padding: 16px 20px;
  }
}

@media (max-width: 860px) {
  .lampa-expanded-grid,
  .lampa-main-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 12px;
    row-gap: 20px;
    padding: 14px 16px;
  }
}

@media (max-width: 580px) {
  .lampa-expanded-grid,
  .lampa-main-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
    row-gap: 16px;
    padding: 12px 10px;
  }
}

.lampa-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 18px 4px;
  scrollbar-width: none;
}
.lampa-rail::-webkit-scrollbar {
  display: none;
}
.lampa-rail .lampa-card {
  width: 190px;
  flex-shrink: 0;
}

/* ==========================================================================
   5. Reference Movie Card (matches 'Референс.png')
   ========================================================================== */
.lampa-card {
  width: 100%;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lampa-card-poster-wrap {
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #1e2420;
  border: 2px solid transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.lampa-card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform 0.25s ease;
}

.lampa-card-poster-shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 24, 20, 0.6) 0%, transparent 40%);
  pointer-events: none;
}

/* Focus & Hover State */
@media (hover: hover) {
  .lampa-card:hover .lampa-card-poster-wrap,
  .lampa-card:focus .lampa-card-poster-wrap,
  .lampa-card.focused .lampa-card-poster-wrap {
    border-color: #ffffff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 255, 255, 0.2);
  }
  .lampa-card:hover .lampa-card-poster {
    transform: scale(1.04);
  }
}

.lampa-card:active {
  transform: scale(0.98);
}

/* Yellow 4K badge at bottom-left from 'Референс.png' */
.lampa-card-badge-4k {
  position: absolute;
  bottom: 22px;
  left: -2px;
  background: #ffd700;
  color: #000000;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 2.5px 6.5px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 3;
  line-height: 1;
}

/* Slate Pill Rating Badge at bottom-right from 'Референс.png' */
.lampa-card-rating-pill {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(22, 38, 54, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 800;
  padding: 4px 13px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 3;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Favorite Star Indicator */
.lampa-badge-favorite-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(22, 38, 54, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.82rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.lampa-card-info {
  margin-top: 10px;
  padding: 0 2px;
}

.lampa-card-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lampa-card-year {
  font-size: 0.92rem;
  color: #cbd5e1;
  font-weight: 400;
  margin-top: 4px;
}

/* ==========================================================================
   6. Lampa Movie Detail Modal
   ========================================================================== */
.lampa-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 9, 10, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lampa-modal-box {
  background: #191a1c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  max-width: 860px;
  width: 100%;
  max-height: 86vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: row;
}

.lampa-modal-drag-handle {
  display: none;
}

.lampa-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 30;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(22, 23, 25, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.18s ease;
}

.lampa-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lampa-modal-poster-wrap {
  width: 320px;
  flex-shrink: 0;
  position: relative;
  background: #121314;
}

.lampa-modal-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lampa-modal-poster-gradient {
  display: none;
}

.lampa-modal-content {
  padding: 28px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.lampa-modal-body {
  display: flex;
  flex-direction: column;
}

.lampa-modal-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.lampa-meta-tag.year {
  background: #2b2d30;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.lampa-meta-tag.quality {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.lampa-meta-tag.id {
  font-size: 0.74rem;
  color: #8c8e90;
  font-family: monospace;
}

.lampa-meta-tag.age {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.lampa-meta-tag.duration,
.lampa-meta-tag.country {
  background: #2b2d30;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}

.lampa-genre-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 0.78rem;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.lampa-modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 4px 0;
}

.lampa-modal-original-title {
  font-size: 0.88rem;
  color: #94a3b8;
  font-style: italic;
  margin: 0 0 14px 0;
}

.lampa-modal-ratings-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.lampa-modal-rating-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
}

.lampa-modal-rating-badge.kp {
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.lampa-modal-rating-badge.kp .lampa-rating-source {
  color: #fb923c;
  font-size: 0.78rem;
  font-weight: 700;
}

.lampa-modal-rating-badge.imdb {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.lampa-modal-rating-badge.imdb .lampa-rating-source {
  color: #facc15;
  font-size: 0.78rem;
  font-weight: 700;
}

.lampa-rating-num {
  color: #ffffff;
  font-size: 0.92rem;
}

/* Action Buttons */
.lampa-modal-actions-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lampa-btn-watch {
  background: linear-gradient(135deg, #e50914 0%, #ff3b30 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.4);
}

.lampa-btn-watch:hover {
  background: linear-gradient(135deg, #f40612 0%, #ff5247 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px rgba(229, 9, 20, 0.6);
}

.lampa-modal-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lampa-btn-action {
  background: #ffffff;
  color: #141516;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.lampa-btn-action:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.lampa-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.lampa-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
}

.lampa-btn-secondary.in-favorites {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

/* Modal Overviews / Tabs */
.lampa-modal-overviews {
  display: flex;
  flex-direction: column;
}

.lampa-overview-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.lampa-overview-tab {
  background: #252729;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lampa-overview-tab.active {
  background: #ffffff;
  color: #141516;
  border-color: #ffffff;
}

.lampa-overview-block {
  margin-bottom: 12px;
}

.lampa-overview-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: #f97316;
  letter-spacing: 0.04em;
  margin: 0 0 6px 0;
}

.lampa-overview-text {
  font-size: 0.88rem;
  color: #d1d5db;
  line-height: 1.6;
  margin: 0;
}

/* --- Mobile Specific Modal Redesign (Bottom Sheet) --- */
@media (max-width: 767px) {
  .lampa-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .lampa-modal-box {
    flex-direction: column;
    max-height: 92vh;
    width: 100%;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .lampa-modal-drag-handle {
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 35;
  }
  .lampa-modal-close-btn {
    top: 12px;
    right: 12px;
  }
  .lampa-modal-poster-wrap {
    width: 100%;
    height: 220px;
    flex-shrink: 0;
    background: #141516;
  }
  .lampa-modal-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
  }
  .lampa-modal-poster-gradient {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #191a1c 0%, rgba(25, 26, 28, 0.55) 45%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
  }
  .lampa-modal-content {
    padding: 12px 18px 36px 18px;
    overflow-y: visible;
  }
  .lampa-modal-title {
    font-size: 1.35rem;
  }
  .lampa-btn-watch {
    width: 100%;
    height: 46px;
    justify-content: center;
    font-size: 0.95rem;
    border-radius: 10px;
  }
  .lampa-modal-secondary-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
  }
  .lampa-modal-secondary-actions .lampa-btn-action,
  .lampa-modal-secondary-actions .lampa-btn-secondary {
    justify-content: center;
    padding: 9px 4px;
    font-size: 0.78rem;
    border-radius: 8px;
    height: 40px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
}

.lampa-torrent-modal-box {
  background: #18191a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  max-width: 1060px;
  width: 100%;
  height: 88vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}

/* Torrent Modal Header */
.lampa-torrent-header {
  padding: 18px 24px;
  background: #141516;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

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

.lampa-torrent-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lampa-torrent-header-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lampa-torrent-header-year {
  background: #2a2c2e;
  color: #a0a2a4;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Search bar & Controls row */
.lampa-torrent-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lampa-torrent-search-wrap {
  flex: 1;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
}

.lampa-torrent-search-input {
  width: 100%;
  background: #222426;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 8px 40px 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.18s ease;
}

.lampa-torrent-search-input:focus {
  border-color: #e50914;
}

.lampa-torrent-search-btn {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  color: #8c8e90;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lampa-torrent-search-btn:hover {
  color: #ffffff;
}

.lampa-filter-pill-group {
  display: flex;
  gap: 4px;
  background: #222426;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lampa-filter-pill {
  background: transparent;
  border: none;
  color: #8c8e90;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lampa-filter-pill.active {
  background: #e50914;
  color: #ffffff;
}

.lampa-filter-pill:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.lampa-torrent-select {
  background: #222426;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.lampa-torrent-settings-btn {
  background: #222426;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #8c8e90;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.lampa-torrent-settings-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Torrent List Body */
.lampa-torrent-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Single Torrent Item Card */
.lampa-torrent-card {
  background: #1f2022;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

@media (min-width: 840px) {
  .lampa-torrent-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.lampa-torrent-card:hover {
  background: #26282b;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lampa-torrent-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lampa-torrent-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.4;
  word-break: break-word;
}

.lampa-tracker-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lampa-tracker-badge.rutracker {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.lampa-tracker-badge.rutor {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.lampa-tracker-badge.nnmclub {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.lampa-tracker-badge.kinozal {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.lampa-tracker-badge.unknown {
  background: rgba(140, 142, 144, 0.2);
  color: #d1d5db;
  border: 1px solid rgba(140, 142, 144, 0.4);
}

.lampa-torrent-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.lampa-meta-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: #2b2d30;
  color: #cbd5e1;
}

.lampa-meta-tag.quality-4k {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  font-weight: 700;
}

.lampa-meta-tag.quality-1080p {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.lampa-meta-tag.quality-720p {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

.lampa-meta-tag.hdr {
  background: rgba(234, 179, 8, 0.2);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.lampa-meta-tag.voice {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

/* Card Right Side: Stats and Actions */
.lampa-torrent-card-side {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lampa-torrent-stats {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lampa-torrent-size {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  min-width: 75px;
  text-align: right;
}

.lampa-torrent-peers {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 55px;
}

.lampa-torrent-seeders {
  font-size: 0.8rem;
  font-weight: 700;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 3px;
}

.lampa-torrent-leechers {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Action Buttons for Card */
.lampa-torrent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lampa-torrent-btn-copy {
  background: #2b2d30;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.lampa-torrent-btn-copy:hover {
  background: #36393d;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.lampa-torrent-btn-play {
  background: #e50914;
  border: none;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.lampa-torrent-btn-play:hover {
  background: #f40612;
  transform: translateY(-1px);
}

.lampa-torrent-btn-icon {
  background: #2b2d30;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #8c8e90;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lampa-torrent-btn-icon:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Parser Settings Modal */
.lampa-settings-modal-box {
  background: #1e2022;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.lampa-settings-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lampa-settings-field {
  margin-bottom: 14px;
}

.lampa-settings-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 5px;
}

.lampa-settings-input {
  width: 100%;
  background: #2a2c2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
}

.lampa-settings-input:focus {
  border-color: #e50914;
}

.lampa-settings-hint {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 4px;
}

/* ==========================================================================
   8. Mobile Optimizations for Torrent Modal & Settings
   ========================================================================== */
@media (max-width: 767px) {
  .lampa-torrent-modal-box {
    height: 94vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
  }
  .lampa-torrent-header {
    padding: 12px 16px;
    gap: 10px;
  }
  .lampa-torrent-header-title {
    font-size: 1.05rem;
  }
  .lampa-torrent-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .lampa-torrent-search-wrap {
    min-width: 0;
    width: 100%;
  }
  .lampa-filter-pill-group {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 3px;
  }
  .lampa-torrent-select {
    width: 100%;
    box-sizing: border-box;
  }
  .lampa-torrent-body {
    padding: 10px 14px 28px 14px;
  }
  .lampa-torrent-card {
    padding: 12px 14px;
    gap: 10px;
  }
  .lampa-torrent-title {
    font-size: 0.93rem;
    line-height: 1.38;
  }
  .lampa-torrent-badges-row {
    gap: 5px;
  }
  .lampa-torrent-card-side {
    width: 100%;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .lampa-settings-modal-box {
    width: 95%;
    padding: 18px;
    border-radius: 14px;
  }
}

/* ==========================================================================
   9. Global Kinopoisk & IMDb Separation and Collection Hubs
   ========================================================================== */

/* Top Brand Switcher Tabs */
.lampa-global-tabs-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lampa-global-tabs-wrap::-webkit-scrollbar {
  display: none;
}
.lampa-global-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 31, 32, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 5px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lampa-global-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #9ca3af;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.lampa-global-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.lampa-global-tab.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}
.lampa-global-tab.kp.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.28), rgba(255, 102, 0, 0.08));
  border-color: #ff6600;
  box-shadow: 0 0 16px rgba(255, 102, 0, 0.35);
}
.lampa-global-tab.imdb.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.28), rgba(245, 197, 24, 0.08));
  border-color: #f5c518;
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.35);
}
.lampa-brand-pill-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.lampa-brand-pill-badge.kp {
  background: #ff6600;
  color: #ffffff;
}
.lampa-brand-pill-badge.imdb {
  background: #f5c518;
  color: #000000;
}
.lampa-tab-count-badge {
  font-size: 0.72rem;
  font-weight: 500;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 9999px;
}

/* Interactive Brand Hub Cards (Overview) */
.lampa-brand-hubs-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}
.lampa-brand-hub-card {
  position: relative;
  background: rgba(24, 25, 28, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 22px 24px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.lampa-brand-hub-card:hover {
  transform: translateY(-3px);
}
.lampa-brand-hub-card.kp {
  border: 1px solid rgba(255, 102, 0, 0.28);
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.12) 0%, rgba(22, 23, 24, 0.95) 75%);
}
.lampa-brand-hub-card.kp:hover {
  border-color: rgba(255, 102, 0, 0.6);
  box-shadow: 0 10px 30px rgba(255, 102, 0, 0.22);
}
.lampa-brand-hub-card.imdb {
  border: 1px solid rgba(245, 197, 24, 0.28);
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.12) 0%, rgba(22, 23, 24, 0.95) 75%);
}
.lampa-brand-hub-card.imdb:hover {
  border-color: rgba(245, 197, 24, 0.6);
  box-shadow: 0 10px 30px rgba(245, 197, 24, 0.22);
}
.lampa-hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.lampa-hub-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lampa-brand-logo-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lampa-brand-logo-badge.kp {
  background: #ff6600;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.4);
}
.lampa-brand-logo-badge.imdb {
  background: #f5c518;
  color: #111111;
  box-shadow: 0 2px 8px rgba(245, 197, 24, 0.4);
}
.lampa-hub-stat-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 9999px;
}
.lampa-hub-arrow-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ca3af;
  transition: color 0.18s ease;
}
.lampa-brand-hub-card:hover .lampa-hub-arrow-link {
  color: #ffffff;
}
.lampa-hub-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.35;
}
.lampa-hub-desc {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #9ca3af;
  margin: 0 0 16px 0;
}
.lampa-hub-chips-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}
.lampa-hub-preview-chip {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}
.lampa-hub-card-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.lampa-hub-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.lampa-hub-action-btn.kp {
  background: rgba(255, 102, 0, 0.16);
  color: #ff8533;
  border: 1px solid rgba(255, 102, 0, 0.35);
}
.lampa-brand-hub-card.kp:hover .lampa-hub-action-btn.kp {
  background: #ff6600;
  color: #ffffff;
}
.lampa-hub-action-btn.imdb {
  background: rgba(245, 197, 24, 0.16);
  color: #ffd644;
  border: 1px solid rgba(245, 197, 24, 0.35);
}
.lampa-brand-hub-card.imdb:hover .lampa-hub-action-btn.imdb {
  background: #f5c518;
  color: #000000;
}

/* Branded Zone Headers & Sections */
.lampa-brand-section {
  position: relative;
  margin-bottom: 36px;
}
.lampa-brand-section.kp-section {
  border-left: 3px solid #ff6600;
  padding-left: 14px;
}
.lampa-brand-section.imdb-section {
  border-left: 3px solid #f5c518;
  padding-left: 14px;
}
.lampa-brand-zone-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lampa-brand-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lampa-brand-tag.kp {
  background: #ff6600;
  color: #ffffff;
}
.lampa-brand-tag.imdb {
  background: #f5c518;
  color: #000000;
}
.lampa-section-badge.kp {
  background: rgba(255, 102, 0, 0.15);
  color: #ff944d;
  border: 1px solid rgba(255, 102, 0, 0.28);
}
.lampa-section-badge.imdb {
  background: rgba(245, 197, 24, 0.15);
  color: #ffd644;
  border: 1px solid rgba(245, 197, 24, 0.28);
}
.lampa-section-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lampa-btn-brand-explore {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.lampa-btn-brand-explore:hover {
  color: #ffffff;
}
.lampa-btn-brand-explore.kp:hover {
  border-color: #ff6600;
  background: rgba(255, 102, 0, 0.18);
  color: #ffffff;
}
.lampa-btn-brand-explore.imdb:hover {
  border-color: #f5c518;
  background: rgba(245, 197, 24, 0.18);
  color: #ffffff;
}

/* Quick Collection Chips Bar inside Rails */
.lampa-quick-collections-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}
.lampa-quick-collections-bar::-webkit-scrollbar {
  display: none;
}
.lampa-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.lampa-quick-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.lampa-quick-chip.active {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
  font-weight: 700;
}
.lampa-quick-chip.kp.active {
  background: #ff6600;
  color: #ffffff;
  border-color: #ff6600;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.4);
}
.lampa-quick-chip.imdb.active {
  background: #f5c518;
  color: #111111;
  border-color: #f5c518;
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.4);
}
.lampa-quick-chip-count {
  font-size: 0.68rem;
  opacity: 0.8;
  padding: 1px 5px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 9999px;
}

/* Dedicated Universe View */
.lampa-brand-universe-hero {
  background: linear-gradient(135deg, rgba(30, 31, 35, 0.85) 0%, rgba(20, 21, 23, 0.95) 100%);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lampa-brand-universe-hero.kp {
  border-color: rgba(255, 102, 0, 0.35);
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.15) 0%, rgba(20, 21, 23, 0.95) 80%);
}
.lampa-brand-universe-hero.imdb {
  border-color: rgba(245, 197, 24, 0.35);
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.15) 0%, rgba(20, 21, 23, 0.95) 80%);
}
.lampa-brand-universe-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.lampa-brand-universe-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lampa-brand-universe-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}
.lampa-brand-universe-subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 0;
}
.lampa-collection-chips-wrap {
  margin-bottom: 22px;
}
.lampa-collection-chips-scroll {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.lampa-collection-chips-scroll::-webkit-scrollbar {
  display: none;
}
.lampa-universe-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.lampa-universe-active-col-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lampa-universe-current-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}
.lampa-universe-view-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
  border-radius: 8px;
  gap: 3px;
}
.lampa-toggle-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.lampa-toggle-btn.active {
  background: #ffffff;
  color: #111111;
  font-weight: 700;
}

@media (max-width: 820px) {
  .lampa-brand-hubs-container {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .lampa-brand-hub-card {
    padding: 18px 20px;
  }
  .lampa-brand-universe-hero {
    padding: 18px 20px;
  }
  .lampa-brand-universe-title {
    font-size: 1.25rem;
  }
}


