﻿/* ===== StreamMN (full) ===== */
body {
  box-sizing: border-box
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --bg-primary: #0b0b0d;
  --bg-card: #121217;
  --border-color: #2a2a33;
  --text-primary: #f2f2f2;
  --text-muted: #b8b8b8;
  --accent-primary: #61CE70;
  --radius-lg: 18px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
}

*:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 2px
}

button:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 2px
}

html,
body {
  height: 100%;
  width: 100%
}

body {
  font-family: 'Montserrat', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Global Scrollbar Design */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  border: 1px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* Ensure standard scrollbars everywhere */
* {
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.2);
  scrollbar-width: thin;
}

/* ensure all controls inherit Montserrat */
button,
input,
select,
textarea {
  font-family: inherit
}

.main-wrapper {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden
}

/* Mobile Header */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 11, 13, .98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem
}

.burger-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

.burger-btn:hover {
  background: rgba(255, 255, 255, .1);
  transform: scale(1.05)
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.logo img {
  height: 34px;
  width: auto;
  display: block
}

.favorite-icon {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-icon {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.35rem;
  cursor: pointer;
  padding: var(--spacing-xs);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

.search-icon:hover {
  background: rgba(255, 255, 255, .1);
  transform: scale(1.05);
  color: var(--accent-primary);
}

.favorite-icon:hover {
  background: rgba(255, 255, 255, .1);
  transform: scale(1.1);
  color: var(--accent-primary);
}

/* Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform .3s;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.drawer.active {
  transform: translateX(0)
}

.drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

.drawer-close:hover {
  background: rgba(255, 100, 100, .2);
  color: #ff6b6b;
  transform: rotate(90deg)
}

.drawer-credits {
  display: flex;
  gap: 1rem;
  font-size: .95rem;
  color: var(--text-muted);
  flex-wrap: wrap
}

.credit-item {
  display: flex;
  align-items: center;
  gap: .5rem
}

.credit-value {
  color: var(--accent-primary);
  font-weight: 700
}

.drawer-nav {
  flex: 1;
  padding: 1rem 0
}

.category-section {
  border-bottom: 1px solid var(--border-color)
}

.category-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  min-height: 56px;
}

.category-header:active {
  background: rgba(97, 206, 112, .05)
}

.category-arrow {
  transition: transform .3s;
  font-size: .9rem
}

.category-section.expanded .category-arrow {
  transform: rotate(180deg)
}

.subcategories {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s;
  background: rgba(0, 0, 0, .2);
}

.category-section.expanded .subcategories {
  max-height: 500px
}

.subcategory-item {
  padding: 1rem 2rem;
  color: var(--text-muted);
  font-size: .95rem;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.subcategory-item:active {
  background: rgba(97, 206, 112, .05);
  color: var(--text-primary)
}

.subcategory-item:hover {
  color: var(--text-primary)
}

/* Hero Slider */
.hero-section {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden
}

.slider-container {
  position: relative;
  width: 100%;
  height: 600px
}

.slider-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  height: 100%
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column
}

.slide-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  z-index: 0
}

.slide-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 13, 1) 0%, rgba(11, 11, 13, .7) 40%, rgba(11, 11, 13, .3) 70%, rgba(11, 11, 13, .8) 100%);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1rem 5rem;
  gap: 1.25rem;
}

.hero-poster {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #2a2a33 0%, #1a1a22 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  border: 2px solid rgba(255, 255, 255, .1);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.hero-info {
  background: rgba(20, 20, 25, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
  letter-spacing: -1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .85rem;
}

.meta-badge {
  background: rgba(97, 206, 112, .15);
  color: var(--accent-primary);
  padding: 6px 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .8rem;
  border: 1px solid rgba(97, 206, 112, .3);
  letter-spacing: .3px;
}

.hero-description {
  color: #fff;
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: .95;
}

.hero-watch-btn {
  width: 100%;
  padding: var(--spacing-md);
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 4px 16px rgba(97, 206, 112, .3);
  letter-spacing: .5px;
}

.hero-watch-btn:hover {
  background: #52b85f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(97, 206, 112, .5)
}

.hero-watch-btn:active {
  transform: scale(.98) translateY(0);
  box-shadow: 0 2px 8px rgba(97, 206, 112, .3)
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: .75rem;
  align-items: center;
}

.slider-nav {
  background: rgba(18, 18, 23, .8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.slider-nav:hover {
  background: rgba(97, 206, 112, .2);
  border-color: var(--accent-primary);
  transform: scale(1.1)
}

.slider-nav:active {
  transform: scale(.95);
  background: rgba(97, 206, 112, .3)
}

.slider-dots {
  display: flex;
  gap: .5rem;
  padding: 0 .5rem
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, .6);
  transform: scale(1.2)
}

.slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent-primary);
  box-shadow: 0 0 12px rgba(97, 206, 112, .6);
}

.slider-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, .1);
  z-index: 3
}

.slider-progress-bar {
  height: 100%;
  background: var(--accent-primary);
  width: 0%;
  transition: width .1s linear
}

/* Content Sections */
.content-section {
  margin-bottom: 2.5rem
}

.section-header {
  padding: 0 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.2
}

.view-all {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

.view-all:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, .05);
  transform: translateX(4px)
}

.cards-scroll {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 var(--spacing-md) var(--spacing-lg);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-padding: var(--spacing-md);
  touch-action: pan-y;
}

.cards-scroll::-webkit-scrollbar {
  display: none
}

/* Drag-to-scroll */
.cards-scroll {
  cursor: grab;
}

.cards-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

@media (hover:hover) {
  .cards-scroll {
    scroll-snap-type: none
  }
}

/* Movie item (poster + name) */
.movie-item {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-snap-align: start;
}

.movie-name {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: -.2px;
  line-height: 1.25;
  color: var(--text-primary);
  opacity: .92;
  padding: 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}

.movie-name.more-name {
  text-align: center;
  opacity: .8;
  font-weight: 800;
}

.movie-card {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  scroll-snap-align: start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  cursor: pointer;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.movie-card:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .6);
  z-index: 10
}

.movie-card:active {
  transform: scale(1.02) translateY(-4px)
}

.movie-poster {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a33 0%, #1a1a22 100%)
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none
}

/* Drag-to-scroll polish */
.cards-scroll {
  cursor: grab
}

.cards-scroll.is-dragging {
  cursor: grabbing
}

.movie-card,
.movie-item {
  user-select: none
}

.card-badge {
  position: absolute;
  top: var(--spacing-xs);
  left: var(--spacing-xs);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.card-flags {
  position: absolute;
  top: .5rem;
  right: .5rem;
  display: flex;
  flex-direction: column;
  gap: .35rem
}

.flag {
  background: rgba(18, 18, 23, .95);
  color: var(--text-primary);
  padding: .3rem .5rem;
  border-radius: 6px;
  font-size: .65rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.card-vote {
  position: absolute;
  bottom: .5rem;
  left: .5rem;
  background: rgba(18, 18, 23, .95);
  backdrop-filter: blur(10px);
  padding: .4rem .6rem;
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent-primary);
  border: 1px solid var(--border-color);
}

.card-favorite {
  position: absolute;
  bottom: var(--spacing-xs);
  right: var(--spacing-xs);
  background: rgba(18, 18, 23, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(97, 206, 112, 0.5);
  color: var(--accent-primary);
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  aspect-ratio: 1/1 !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  min-width: 32px;
  min-height: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

.card-favorite:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, .15)
}

.card-favorite:active {
  transform: scale(.95)
}

.card-favorite.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
  opacity: 1;
  animation: heartBeat .5s ease-in-out
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1)
  }

  25% {
    transform: scale(1.3)
  }

  50% {
    transform: scale(1.1)
  }
}

.adult-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 13, .85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.5rem;
  transform: scale(.95);
  transition: transform .3s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
}

.modal-overlay.active .modal-content {
  transform: scale(1)
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center
}

.form-group {
  margin-bottom: 1.25rem
}

.form-label {
  display: block;
  margin-bottom: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted)
}

.form-input,
.form-select {
  width: 100%;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  min-height: 52px;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-primary)
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem
}

.btn {
  flex: 1;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  min-height: 52px;
  transition: all .2s;
  font-family: inherit;
}

.btn:active {
  transform: scale(.98)
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-primary)
}

.btn-primary:active {
  background: #52b85f
}

.btn-secondary {
  background: rgba(255, 255, 255, .1);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:active {
  background: rgba(255, 255, 255, .15)
}

/* Full Screen */
.fullscreen-page {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}

.fullscreen-page.active {
  opacity: 1;
  visibility: visible
}

.fullscreen-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
}

.fullscreen-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem
}

.fullscreen-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: 1rem
}

.fullscreen-btn {
  width: 100%;
  padding: 1.25rem;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 56px;
  transition: all .2s;
  font-family: inherit;
}

.fullscreen-btn:active {
  transform: scale(.98);
  background: #52b85f
}

/* Credit */
.credit-content-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-primary)
}

.credit-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6
}

.credit-insufficient {
  background: rgba(255, 100, 100, .1);
  border: 1px solid rgba(255, 100, 100, .3);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #ff9999;
  font-size: .9rem;
  line-height: 1.6;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 1rem;
  right: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .7);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  z-index: 5000;
  transform: translateY(150%);
  transition: transform .3s;
  max-width: 500px;
  margin: 0 auto;
}

.toast.active {
  transform: translateY(0)
}

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0
}

.toast-message {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--text-muted)
}

@media (min-width:480px) {
  .slide-content {
    flex-direction: row;
    align-items: flex-end;
    padding: 2rem 2rem 5rem
  }

  .hero-poster {
    max-width: 200px
  }

  .hero-info {
    flex: 1
  }
}

/* ===== extra for “hide fav on adult blur” ===== */
.movie-card.is-adult-blur .card-favorite {
  display: none !important
}

.movie-card.is-adult-blur .card-favorite {
  display: none !important
}

.movie-card.hidden-by-adult,
.movie-item.hidden-by-adult {
  display: none !important
}

/* ===== List page grid ===== */
.page-shell {
  padding: 1rem 0 2rem
}

.page-titlebar {
  padding: 0 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap
}

.page-h1 {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -.5px
}

.filterbar {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap
}

.filterbar .form-select {
  min-height: 44px;
  padding: .65rem .8rem;
  font-size: .95rem
}

.grid .movie-item {
  width: 100%
}

.grid .movie-card {
  width: 100%
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  padding: 0 1rem 2rem;
}

.grid .movie-card {
  width: 100%
}

/* ===== Content page (YouTube-style) ===== */
.watch-wrap {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  /* Prevent overflow on mobile */
  width: 100%;
}

@media (min-width:901px) {
  .watch-wrap {
    grid-template-columns: 1fr 360px;
    align-items: start
  }
}

@media (max-width: 520px) {
  .watch-wrap {
    padding: 0.5rem;
    /* Less padding on small screens */
    gap: 1.5rem;
  }

  .player-card {
    border-radius: 0;
    /* Full bleed or smaller radius */
    border-left: none;
    border-right: none;
    margin: 0 -0.5rem;
    /* Pull to edges if wanted, or just keep contained */
    width: calc(100% + 1rem);
  }

  .player-aspect {
    border-radius: 0;
  }
}

.player-card {
  background: rgba(18, 18, 23, .7);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.player-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.player-aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0
}

.watch-meta {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.meta-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 160px 1fr;
}

@media (max-width:520px) {
  .meta-row {
    grid-template-columns: 1fr
  }
}

.poster-stack {
  display: flex;
  flex-direction: column;
  gap: .75rem
}

.poster-main {
  width: 160px;
  max-width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(135deg, #2a2a33 0%, #1a1a22 100%);
}

.poster-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.poster-gallery {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .25rem
}

.poster-gallery::-webkit-scrollbar {
  display: none
}

.poster-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .08);
  background: #111
}

.poster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.meta-texts {
  display: flex;
  flex-direction: column;
  gap: .5rem
}

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  /* Ensure wrapping on smaller screens */
}

.content-title {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.6px
}

.content-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap
}

/* Fix: Reset "card-favorite" absolute positioning when used in content actions */
.content-actions .card-favorite {
  position: static;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  border-radius: 12px;
  backdrop-filter: none;
  transform: none;
}

.small-btn {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .10);
  color: var(--text-primary);
  padding: .55rem .8rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  gap: .5rem;
  align-items: center;
}

.small-btn:hover {
  background: rgba(255, 255, 255, .12)
}

.small-btn.primary {
  background: rgba(97, 206, 112, .18);
  border-color: rgba(97, 206, 112, .35);
  color: #fff
}

.cat-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem
}

.cat-chip {
  background: rgba(97, 206, 112, .12);
  border: 1px solid rgba(97, 206, 112, .25);
  color: #fff;
  padding: .35rem .6rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.desc {
  color: var(--text-muted);
  line-height: 1.75
}

.episode-panel {
  background: rgba(18, 18, 23, .7);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.episode-head {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-weight: 900
}

.episode-list {
  display: flex;
  flex-direction: column;
  max-height: 720px;
  overflow: auto
}

.episode-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: .75rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  cursor: pointer;
}

.episode-item:hover {
  background: rgba(255, 255, 255, .04)
}

.ep-thumb {
  width: 96px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, .08);
  position: relative;
}

.ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.ep-dur {
  position: absolute;
  right: .35rem;
  bottom: .35rem;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  border-radius: 8px;
  padding: .2rem .4rem;
  font-size: .72rem;
  font-weight: 800;
}

.ep-name {
  font-weight: 900;
  line-height: 1.2
}

.ep-desc {
  color: var(--text-muted);
  font-size: .88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

@media (max-width:900px) {

  /* Mobile Layout Reorder: Video -> Episodes -> Info */
  .watch-wrap {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    grid-template-columns: none !important;
  }

  .watch-wrap>div:first-child {
    display: contents;
    /* Ungroup the wrapper to allow reordering children */
  }

  .player-card {
    order: 1;
    width: 100% !important;
    /* Ensure full width after unwrap */
    border-radius: 0;
    margin: 0 0 1rem 0;
  }

  .episode-panel {
    order: 2;
    margin-bottom: 1.5rem;
  }

  .watch-meta {
    order: 3;
  }

  /* Episode List Scrolling (approx 3 items) */
  .episode-list {
    max-height: 240px;
    overflow-y: auto;
    /* Custom scrollbar for mobile list too */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.2);
  }

  .meta-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
  }

  .meta-texts {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .poster-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .poster-main {
    margin: 0 auto;
    width: 200px;
  }

  .title-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .content-actions {
    justify-content: center;
    width: 100%;
  }

  .desc {
    text-align: left;
  }

  /* Episode Panel matches mobile width */
  .episode-head {
    font-size: 1rem;
    padding: 0.75rem;
  }

  .episode-item {
    padding: 0.75rem;
    gap: 0.75rem;
    grid-template-columns: 80px 1fr;
    /* Smaller thumb on mobile */
  }

  .ep-thumb {
    width: 80px;
  }
}

/* Big image / trailer modal */
.modal-content.wide {
  max-width: 940px
}

.modal-content.wide .player-aspect {
  border-radius: 16px;
  overflow: hidden
}

.bigimg {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 16px
}


/* + More card */
.more-card {
  display: block;
}

.more-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(18, 18, 23, .78);
  backdrop-filter: blur(10px);
  border: 1px dashed rgba(255, 255, 255, .18);
}

.more-overlay i {
  font-size: 2.1rem;
  color: var(--accent-primary);
}

.more-overlay span {
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--text-primary);
  font-size: .95rem;
}


/* Search modal */
.modal-content.search-modal {
  max-width: 560px;
}

.search-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.search-title {
  font-weight: 900;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.search-actions {
  display: flex;
  gap: 10px;
}

.search-actions .btn {
  min-height: 46px;
  padding: .85rem 1rem;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  max-height: 50vh;
  overflow: auto;
  padding-right: 6px;
}

.search-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, .18);
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

.search-item:hover {
  transform: translateY(-1px);
  border-color: rgba(97, 206, 112, .35);
  background: rgba(97, 206, 112, .06);
}

.search-thumb {
  width: 54px;
  height: 80px;
  flex: 0 0 54px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a33 0%, #1a1a22 100%);
}

.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.search-name {
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: .85rem;
}

.search-pill {
  background: rgba(97, 206, 112, .12);
  border: 1px solid rgba(97, 206, 112, .28);
  color: var(--accent-primary);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .75rem;
}

.search-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 18px 8px;
}

.search-viewall {
  display: none;
  margin-top: 10px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 700;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

.search-viewall:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, .05);
}


.empty-note {
  padding: 16px 12px;
  color: var(--text-muted);
  text-align: center;
}

.search-hint {
  color: var(--text-muted);
  padding: 10px 4px;
  font-size: .95rem;
}

.search-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .03);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.search-item:hover {
  transform: translateY(-1px);
  border-color: rgba(97, 206, 112, .35);
  background: rgba(97, 206, 112, .07);
}

.search-thumb {
  width: 46px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .06);
}

.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.search-name {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.search-sub {
  font-size: .85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-viewall {
  display: none;
  margin-top: 12px;
  color: var(--accent-primary);
  font-weight: 800;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.search-viewall:hover {
  text-decoration: underline;
}

/* Poster Gallery Slide */
.poster-stack .poster-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  cursor: grab;
  scroll-snap-type: x proximity;
  margin-top: 12px;
}

.poster-stack .poster-gallery.is-dragging {
  cursor: grabbing;
}

.poster-stack .poster-gallery::-webkit-scrollbar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.poster-stack .poster-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.poster-stack .poster-gallery .poster-thumb {
  flex: 0 0 90px;
  cursor: pointer;
  transition: transform 0.2s;
}

.poster-stack .poster-gallery .poster-thumb:hover {
  transform: scale(1.05);
}

.poster-stack .poster-gallery .poster-thumb img {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none;
  /* No drag */
}

/* Actors Row */
.actors-scroll {
  display: flex;
  gap: 0;
  /* Use wrapper padding for spacing */
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  width: 100%;
  max-width: 720px;
  cursor: grab;
  touch-action: pan-x;
}

.actors-scroll.is-dragging {
  cursor: grabbing;
}

.actors-scroll::-webkit-scrollbar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.actors-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* Wrapper controls Layout (Size) */
.actor-wrapper {
  flex: 0 0 auto;
  /* Fit to text content */
  width: auto;
  max-width: none;
  padding: 0 6px;
  /* Spacing between items */
  scroll-snap-align: start;
  display: flex;
  align-items: center;
}

/* Chip controls Appearance (Visual) */
.actor-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  /* Fill the wrapper space */

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px 8px 8px;
  /* Major size increase */
  border-radius: 99px;

  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s;
  user-select: none;
  /* Prevent text selection during drag */
}

.actor-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(97, 206, 112, 0.3);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.actor-chip img {
  width: 42px;
  /* Bigger Photo */
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
  flex-shrink: 0;
  box-shadow: none;
  pointer-events: none;
  /* Critical: Disable image drag */
  -webkit-user-drag: none;
}

.actor-chip:hover img {
  filter: brightness(1.1);
  box-shadow: none;
}

.actor-chip span {
  font-size: 0.95rem;
  /* Bigger Font */
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Fix drag for all galleries */
.poster-gallery img,
.cards-scroll img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

@media (max-width: 900px) {
  .actor-wrapper {
    flex: 0 0 auto;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .actor-wrapper {
    flex: 0 0 auto;
    max-width: none;
    /* fit text on mobile too */
  }

  .actor-chip {
    padding: 6px 12px 6px 6px;
    gap: 10px;
  }

  .actor-chip img {
    width: 36px;
    height: 36px;
  }

  .actor-chip span {
    font-size: 0.9rem;
  }
}

/* =========================================
   NEW CONTENT VIEW LAYOUT (Redesign)
   ========================================= */

.cv-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-areas:
    "video episodes"
    "info  episodes";
  gap: 2rem;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem;
  align-items: start;
}

.cv-video {
  grid-area: video;
}

.cv-info {
  grid-area: info;
}

.cv-episodes {
  grid-area: episodes;
}

/* 1. Video Section */
.cv-player-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  /* Rounded on desktop */
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cv-player-aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cv-no-video {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  background: radial-gradient(circle at center, #1a1a20, #000);
}

/* 2. Info Section (Poster + Details) */
.cv-info {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  background: rgba(18, 18, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* Poster Column */
.cv-poster-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cv-poster-main {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a33, #1a1a22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-poster-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Recycled poster thumb styles, just ensuring flex */
.cv-poster-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cv-poster-gallery .poster-thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Details Column */
.cv-details-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cv-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.5px;
}

.cv-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cv-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.cv-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.cv-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cv-actions .card-favorite {
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 0 !important;
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.2s;
}

.cv-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cv-btn.primary {
  /* Default: transparent/dark, only border green */
  border-color: rgba(97, 206, 112, 0.5);
  color: var(--accent-primary);
}

.cv-btn.primary:hover {
  background: rgba(97, 206, 112, 0.15);
}

.cv-btn.primary.active {
  background: var(--accent-primary);
  color: #000;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(97, 206, 112, 0.4);
}

/* Square/Circle Icon Button */
.cv-actions .card-favorite {
  padding: 0;
  width: 46px;
  height: 46px;
  justify-content: center;
  flex: 0 0 46px !important;
  /* Force square, override mobile flex */
  border-radius: 50%;
  font-size: 1.2rem;
}

.cv-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 800px;
}

/* Actors (New Style) */
.cv-actors {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px 0;
  margin-top: 0.5rem;
}

.cv-actor-chip {
  flex: 0 0 auto;
  display: inline-flex;
  /* Change to inline-flex just to be sure */
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px 6px 6px;
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s;
  width: auto;
  /* FIX: fit to text */
  max-width: 100%;
}

.cv-actor-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  color: #fff;
}

.cv-actor-chip img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
}

.cv-actor-chip span {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

/* 3. Episodes Section */
.cv-episodes {
  background: rgba(18, 18, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: fit-content;
  max-height: 800px;
  /* Desktop max height */
  display: flex;
  flex-direction: column;
}

.cv-ep-header {
  padding: 1rem;
  font-weight: 800;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.cv-ep-list {
  overflow-y: auto;
  flex: 1;
}

.cv-ep-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.1s;
}

.cv-ep-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.cv-ep-item.active {
  background: rgba(97, 206, 112, 0.1);
  border-left: 3px solid var(--accent-primary);
}

.cv-ep-thumb {
  width: 100px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #000;
}

.cv-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-ep-dur {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 700;
}

.cv-ep-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.cv-ep-name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}

.cv-ep-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cv-ep-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}


/* =========================================
   MOBILE RESPONSIVENESS (Redesign)
   ========================================= */

@media (max-width: 900px) {
  .cv-layout {
    display: flex;
    flex-direction: column;
    padding: 0;
    /* Full width mobile */
    gap: 0;
    margin: 0;
  }

  /* Order Re-arrangement */
  .cv-video {
    order: 1;
    width: 100%;
    margin-bottom: 0;
  }

  .cv-episodes {
    order: 2;
    margin: 0;
    /* Stick below video? or gap? */
    border-radius: 0;
    border-left: none;
    border-right: none;
    background: transparent;
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cv-info {
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Reduced gap */
    padding: 1rem;
    /* Reduced padding */
    padding-bottom: 3rem;
    border: none;
    background: transparent;
    text-align: center;
    align-items: center;
    width: 100%;
    /* Ensure width */
    overflow: hidden;
    /* Prevent spill */
  }

  /* Video Full Width on Mobile */
  .cv-player-aspect {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cv-poster-col {
    align-items: center;
    width: 100%;
  }

  .cv-poster-main {
    width: 140px;
    /* Smaller mobile poster */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .cv-details-col {
    align-items: center;
    width: 100%;
    gap: 1rem;
  }

  .cv-title {
    font-size: 1.35rem;
    /* Reduced size */
    line-height: 1.2;
    padding: 0 10px;
  }

  .cv-meta-row {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  .cv-tags {
    justify-content: center;
  }

  .cv-desc {
    text-align: center;
    /* Center basic text too, unless long */
    font-size: 0.9rem;
    padding: 0 8px;
    opacity: 0.9;
  }

  .cv-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 10px;
  }

  .cv-btn {
    flex: 1;
    justify-content: center;
    /* Removed large min-width */
    min-width: 100px;
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  /* Episodes Mobile */
  .cv-episodes {
    max-height: none;
    /* Let height be controlled by list */
  }

  .cv-ep-list {
    max-height: 260px;
    /* ~3-4 items visible */
    overflow-y: auto;
  }

  .cv-ep-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
  }
}

/ *   N e w   C S S   * /     /* Filter Tabs (Horizontal) */
.filter-tabs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0 1rem 12px 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-tab {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    color: var(--accent-primary);
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    /* Align with border-bottom of container */
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px 2px 0 0;
}

/* Sub-tabs (Pills) */
.filter-subtabs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0 1rem 1rem 1rem;
    margin-bottom: 1rem;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.filter-pill.active {
    background: var(--accent-primary);
    color: #0b0b0d;
    /* Dark text on green */
    border-color: var(--accent-primary);
    font-weight: 700;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    scrollbar-width: none;
}

 / *   F i l t e r   T a b s   ( H o r i z o n t a l )   * / 
 . p a g e - t i t l e b a r . c o l u m n - m o d e   { 
     f l e x - d i r e c t i o n :   c o l u m n ; 
     a l i g n - i t e m s :   s t r e t c h ; 
     g a p :   1 r e m ; 
 } 
 
 . t i t l e - r o w   { 
     d i s p l a y :   f l e x ; 
     j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
     a l i g n - i t e m s :   c e n t e r ; 
 } 
 
 . f i l t e r - t a b s - r o w   { 
     d i s p l a y :   f l e x ; 
     a l i g n - i t e m s :   c e n t e r ; 
     g a p :   1 r e m ; 
     w i d t h :   1 0 0 % ; 
 } 
 
 . f i l t e r - t a b s   { 
     f l e x :   1 ; 
     d i s p l a y :   f l e x ; 
     g a p :   1 2 p x ; 
     o v e r f l o w - x :   a u t o ; 
     w h i t e - s p a c e :   n o w r a p ; 
     p a d d i n g - b o t t o m :   4 p x ; 
 } 
 
 . f i l t e r - t a b s : : - w e b k i t - s c r o l l b a r   { 
     h e i g h t :   4 p x ;   / *   T h i n   s c r o l l b a r   f o r   t h i s   * / 
 } 
 
 . f i l t e r - g r o u p   { 
     p o s i t i o n :   r e l a t i v e ; 
     d i s p l a y :   i n l i n e - b l o c k ; 
 } 
 
 . f i l t e r - t a b - b t n   { 
     b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 ) ; 
     b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
     c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
     p a d d i n g :   8 p x   1 6 p x ; 
     b o r d e r - r a d i u s :   5 0 p x ; 
     f o n t - s i z e :   0 . 9 r e m ; 
     f o n t - w e i g h t :   6 0 0 ; 
     c u r s o r :   p o i n t e r ; 
     d i s p l a y :   f l e x ; 
     a l i g n - i t e m s :   c e n t e r ; 
     g a p :   8 p x ; 
     t r a n s i t i o n :   a l l   0 . 2 s ; 
 } 
 
 . f i l t e r - t a b - b t n   i   { 
     f o n t - s i z e :   0 . 7 5 r e m ; 
     t r a n s i t i o n :   t r a n s f o r m   0 . 2 s ; 
 } 
 
 . f i l t e r - t a b - b t n : h o v e r   { 
     b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
     c o l o r :   # f f f ; 
 } 
 
 . f i l t e r - t a b - b t n . a c t i v e   { 
     b a c k g r o u n d :   r g b a ( 9 7 ,   2 0 6 ,   1 1 2 ,   0 . 1 5 ) ; 
     b o r d e r - c o l o r :   r g b a ( 9 7 ,   2 0 6 ,   1 1 2 ,   0 . 4 ) ; 
     c o l o r :   v a r ( - - a c c e n t - p r i m a r y ) ; 
 } 
 
 . f i l t e r - g r o u p . o p e n   . f i l t e r - t a b - b t n   i   { 
     t r a n s f o r m :   r o t a t e ( 1 8 0 d e g ) ; 
 } 
 
 . f i l t e r - d r o p d o w n - m e n u   { 
     p o s i t i o n :   a b s o l u t e ; 
     t o p :   1 0 0 % ; 
     l e f t :   0 ; 
     m a r g i n - t o p :   8 p x ; 
     b a c k g r o u n d :   # 1 c 1 c 2 4 ;   / *   D a r k e r   d r o p d o w n   b g   * / 
     b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 5 ) ; 
     b o r d e r - r a d i u s :   1 2 p x ; 
     p a d d i n g :   8 p x ; 
     m i n - w i d t h :   2 0 0 p x ; 
     z - i n d e x :   1 0 0 ; 
     b o x - s h a d o w :   0   1 0 p x   4 0 p x   r g b a ( 0 , 0 , 0 , 0 . 5 ) ; 
     d i s p l a y :   n o n e ; 
     f l e x - d i r e c t i o n :   c o l u m n ; 
     g a p :   2 p x ; 
 } 
 
 . f i l t e r - g r o u p . o p e n   . f i l t e r - d r o p d o w n - m e n u   { 
     d i s p l a y :   f l e x ; 
     a n i m a t i o n :   f a d e I n   0 . 2 s   e a s e ; 
 } 
 
 @ k e y f r a m e s   f a d e I n   { 
     f r o m   {   o p a c i t y :   0 ;   t r a n s f o r m :   t r a n s l a t e Y ( - 5 p x ) ;   } 
     t o   {   o p a c i t y :   1 ;   t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ;   } 
 } 
 
 . f i l t e r - d r o p d o w n - m e n u   a   { 
     d i s p l a y :   b l o c k ; 
     p a d d i n g :   8 p x   1 2 p x ; 
     c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
     t e x t - d e c o r a t i o n :   n o n e ; 
     f o n t - s i z e :   0 . 9 r e m ; 
     b o r d e r - r a d i u s :   8 p x ; 
     t r a n s i t i o n :   b a c k g r o u n d   0 . 1 s ; 
 } 
 
 . f i l t e r - d r o p d o w n - m e n u   a : h o v e r   { 
     b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 ) ; 
     c o l o r :   # f f f ; 
 } 
 
 . f i l t e r - d r o p d o w n - m e n u   a . a c t i v e   { 
     b a c k g r o u n d :   r g b a ( 9 7 ,   2 0 6 ,   1 1 2 ,   0 . 1 ) ; 
     c o l o r :   v a r ( - - a c c e n t - p r i m a r y ) ; 
     f o n t - w e i g h t :   7 0 0 ; 
 } 
 
 . f i l t e r - i c o n - b t n   { 
     w i d t h :   4 0 p x ; 
     h e i g h t :   4 0 p x ; 
     f l e x - s h r i n k :   0 ; 
     b o r d e r - r a d i u s :   1 0 p x ; 
     b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 ) ; 
     b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
     c o l o r :   v a r ( - - t e x t - p r i m a r y ) ; 
     d i s p l a y :   f l e x ; 
     a l i g n - i t e m s :   c e n t e r ; 
     j u s t i f y - c o n t e n t :   c e n t e r ; 
     c u r s o r :   p o i n t e r ; 
     t r a n s i t i o n :   a l l   0 . 2 s ; 
 } 
 
 . f i l t e r - i c o n - b t n : h o v e r   { 
     b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
 }  
 
 / *   F i l t e r   T a b s   ( H o r i z o n t a l )   -   R e v i s e d   F i x   * / 
 . f i l t e r - t a b s   { 
         f l e x - w r a p :   w r a p   ! i m p o r t a n t ; 
         o v e r f l o w - x :   v i s i b l e   ! i m p o r t a n t ; 
         g a p :   1 2 p x   ! i m p o r t a n t ; 
         m a r g i n - b o t t o m :   8 p x   ! i m p o r t a n t ; 
         w i d t h :   1 0 0 % ; 
 } 
 
 . f i l t e r - t a b - b t n   { 
         b a c k g r o u n d :   t r a n s p a r e n t   ! i m p o r t a n t ; 
         b o r d e r :   n o n e   ! i m p o r t a n t ; 
 } 
 
 . f i l t e r - t a b - b t n : h o v e r   { 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 8 )   ! i m p o r t a n t ; 
 } 
 
 . f i l t e r - t i t l e - r o w   { 
         m a r g i n - b o t t o m :   1 2 p x ; 
 } 
 
 / *   E n s u r e   d r o p d o w n s   v i s i b l e   * / 
 . f i l t e r - g r o u p   { 
         p o s i t i o n :   r e l a t i v e ; 
 } 
 
 . f i l t e r - d r o p d o w n - m e n u   { 
         z - i n d e x :   9 9 9 9   ! i m p o r t a n t ; 
         b a c k g r o u n d :   # 1 5 1 5 1 a   ! i m p o r t a n t ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 5 )   ! i m p o r t a n t ; 
         b o x - s h a d o w :   0   1 0 p x   4 0 p x   r g b a ( 0 , 0 , 0 , 0 . 8 )   ! i m p o r t a n t ; 
 }  
 
 / *   S o r t   M e n u   S p e c i f i c s   * / 
 . f i l t e r - d r o p d o w n - m e n u . s o r t - m e n u   { 
         r i g h t :   0 ; 
         l e f t :   a u t o ; 
         m i n - w i d t h :   1 8 0 p x ; 
 } 
 
 . m e n u - l a b e l   { 
         p a d d i n g :   8 p x   1 2 p x ; 
         f o n t - s i z e :   0 . 7 5 r e m ; 
         f o n t - w e i g h t :   8 0 0 ; 
         t e x t - t r a n s f o r m :   u p p e r c a s e ; 
         c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
         l e t t e r - s p a c i n g :   0 . 5 p x ; 
         o p a c i t y :   0 . 6 ; 
 } 
 
 . f i l t e r - g r o u p . r i g h t - a l i g n   { 
         m a r g i n - l e f t :   a u t o ; 
 } 
 
 / *   E n s u r e   f i l t e r   i c o n   a c t i v e   s t a t e   * / 
 . f i l t e r - i c o n - b t n . a c t i v e   { 
         b a c k g r o u n d :   r g b a ( 9 7 ,   2 0 6 ,   1 1 2 ,   0 . 1 5 ) ; 
         b o r d e r - c o l o r :   r g b a ( 9 7 ,   2 0 6 ,   1 1 2 ,   0 . 4 ) ; 
         c o l o r :   v a r ( - - a c c e n t - p r i m a r y ) ; 
 }  
 
/* Filter Tabs (Horizontal) - REPAIRED */
.page-titlebar.column-mode {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-tabs-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.filter-tabs {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.filter-group {
  position: relative;
  display: inline-block;
}

.filter-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.filter-tab-btn i {
  font-size: 0.75rem;
  transition: transform 0.2s;
  opacity: 0.7;
}

.filter-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.filter-tab-btn.active {
  color: var(--accent-primary);
  background: rgba(97, 206, 112, 0.1);
}

.filter-group.open .filter-tab-btn i {
  transform: rotate(180deg);
}

/* Dropdown styling */
.filter-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #15151a; 
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  min-width: 220px;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
  gap: 2px;
}

.filter-group.open .filter-dropdown-menu {
  display: flex;
  animation: fadeIn 0.2s ease;
}

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

.filter-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background 0.1s;
  font-weight: 500;
}

.filter-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.filter-dropdown-menu a.active {
  background: rgba(97, 206, 112, 0.15);
  color: var(--accent-primary);
  font-weight: 700;
}

.filter-icon-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}

.filter-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.filter-icon-btn.active {
    background: rgba(97, 206, 112, 0.15);
    border-color: rgba(97, 206, 112, 0.4);
    color: var(--accent-primary);
}

.filter-dropdown-menu.sort-menu {
    right: 0;
    left: auto;
    min-width: 180px;
}

.menu-label {
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    opacity: 0.6;
}

.filter-group.right-align {
    margin-left: auto;
}


/* Active Filter Chips */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 12px 0;
    align-items: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(97, 206, 112, 0.15);
    border: 1px solid rgba(97, 206, 112, 0.3);
    border-radius: 20px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.filter-chip:hover {
    background: rgba(97, 206, 112, 0.25);
    border-color: rgba(97, 206, 112, 0.5);
    transform: translateY(-1px);
}

.filter-chip i {
    font-size: 0.75rem;
    opacity: 0.8;
}

.clear-filters {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.clear-filters:hover {
    background: rgba(255, 77, 77, 0.15);
    border-color: rgba(255, 77, 77, 0.3);
    color: #ff4d4d;
}

/* Dropdown menu divider */
.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

/* Active item indicator in dropdown */
.filter-dropdown-menu a.active i {
    margin-right: 6px;
    color: var(--accent-primary);
}


 / *   C h e c k b o x   F i l t e r   I t e m s   * / 
 . f i l t e r - c h e c k - i t e m   { 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         g a p :   1 0 p x ; 
         p a d d i n g :   1 0 p x   1 4 p x ; 
         c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
         f o n t - s i z e :   0 . 9 r e m ; 
         c u r s o r :   p o i n t e r ; 
         b o r d e r - r a d i u s :   8 p x ; 
         t r a n s i t i o n :   b a c k g r o u n d   0 . 1 s ; 
         u s e r - s e l e c t :   n o n e ; 
 } 
 
 . f i l t e r - c h e c k - i t e m : h o v e r   { 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 ) ; 
         c o l o r :   # f f f ; 
 } 
 
 . f i l t e r - c h e c k - i t e m   i n p u t [ t y p e = ' c h e c k b o x ' ]   { 
         w i d t h :   1 6 p x ; 
         h e i g h t :   1 6 p x ; 
         a c c e n t - c o l o r :   v a r ( - - a c c e n t - p r i m a r y ) ; 
         c u r s o r :   p o i n t e r ; 
 } 
 
 . a c t i v e - c h i p s - r o w   { 
         d i s p l a y :   f l e x ; 
         f l e x - w r a p :   w r a p ; 
         g a p :   8 p x ; 
         m a r g i n - b o t t o m :   1 r e m ; 
 } 
 
 . f i l t e r - c h i p   { 
         d i s p l a y :   i n l i n e - f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         g a p :   6 p x ; 
         b a c k g r o u n d :   r g b a ( 9 7 ,   2 0 6 ,   1 1 2 ,   0 . 1 5 ) ; 
         c o l o r :   v a r ( - - a c c e n t - p r i m a r y ) ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 9 7 ,   2 0 6 ,   1 1 2 ,   0 . 3 ) ; 
         p a d d i n g :   4 p x   1 0 p x ; 
         b o r d e r - r a d i u s :   5 0 p x ; 
         f o n t - s i z e :   0 . 8 r e m ; 
         f o n t - w e i g h t :   7 0 0 ; 
 } 
 
 . c h i p - r e m o v e   { 
         c u r s o r :   p o i n t e r ; 
         f o n t - s i z e :   1 r e m ; 
         l i n e - h e i g h t :   0 . 8 ; 
         o p a c i t y :   0 . 7 ; 
 } 
 
 . c h i p - r e m o v e : h o v e r   { 
         o p a c i t y :   1 ; 
 }  
 