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

/* 深色模式变量 (默认) */
:root, [data-theme="dark"] {
  --bg-primary: #0f0f1e;
  --bg-secondary: #1a1a2e;
  --bg-secondary-blur: rgba(26, 26, 46, 0.8);
  --bg-card: #16213e;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --border-color: #2a2a3e;
  --input-bg: #1a1a2e;
  
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-800: #6b21a8;
  --purple-900: #581c87;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* 浅色模式变量 */
[data-theme="light"] {
  --bg-primary: #f3f4f6;
  --bg-secondary: #ffffff;
  --bg-secondary-blur: rgba(255, 255, 255, 0.8);
  --bg-card: #faf9fc;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --border-color: #d1d5db;
  --input-bg: #f9fafb;
}

/* 跟随系统 */
@media (prefers-color-scheme: light) {
  [data-theme="auto"] {
    --bg-primary: #f3f4f6;
    --bg-secondary: #ffffff;
    --bg-secondary-blur: rgba(255, 255, 255, 0.8);
    --bg-card: #faf9fc;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --border-color: #d1d5db;
    --input-bg: #f9fafb;
  }
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg-primary: #0f0f1e;
    --bg-secondary: #1a1a2e;
    --bg-secondary-blur: rgba(26, 26, 46, 0.8);
    --bg-card: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: #2a2a3e;
    --input-bg: #1a1a2e;
  }
}

:root {
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-800: #6b21a8;
  --purple-900: #581c87;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-top: 60px;
  transition: background 0.3s, color 0.3s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary-blur);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 9999;
  height: 60px;
  transition: background 0.3s, border-color 0.3s;
  will-change: transform;
  transform: translateZ(0);
  overflow: visible;
}

.nav-container {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}

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

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(1.2);
  transition: filter 0.2s;
}

.nav-left:hover .logo-img {
  filter: brightness(1.4);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.025em;
  transition: color 0.2s;
}

.nav-left:hover .brand-name {
  color: var(--purple-400);
}

[data-theme="light"] .brand-name {
  color: #374151;
}

[data-theme="light"] .nav-left:hover .brand-name {
  color: var(--purple-600);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: visible;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s;
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
}

.nav-link:hover {
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple-400);
}

[data-theme="light"] .nav-link {
  color: #6b7280;
}

[data-theme="light"] .nav-link:hover {
  color: var(--purple-600);
}

/* 下拉菜单样式 */
.nav-link-dropdown {
  cursor: pointer;
}

.dropdown-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.nav-link-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 10000;
  overflow: hidden;
}

.nav-link-dropdown.active .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  cursor: default;
}

.status-ping {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-500);
  transition: background 0.3s;
}

.status-dot.online {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 0.5rem;
  height: 38px;
}

.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple-400);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  right: 0;
  background: var(--bg-secondary-blur);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-left: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 0 0 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 9998;
  min-width: 200px;
  overflow: hidden;
}

.mobile-menu.show {
  display: block;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

.mobile-menu-item:hover {
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple-400);
}

.mobile-menu-item svg {
  flex-shrink: 0;
}

/* 移动端下拉菜单 */
.mobile-menu-dropdown {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-menu-header:hover {
  background: rgba(168, 85, 247, 0.05);
}

.dropdown-arrow-mobile {
  margin-left: auto;
  transition: transform 0.2s;
}

.mobile-menu-dropdown.active .dropdown-arrow-mobile {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(168, 85, 247, 0.05);
}

.mobile-menu-dropdown.active .mobile-submenu {
  max-height: 200px;
}

.mobile-submenu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem 0.75rem 3rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  cursor: default;
}

.mobile-submenu-item .status-ping {
  margin-left: auto;
}

.theme-btn {
  padding: 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.theme-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  color: var(--purple-400);
}

.theme-btn.active {
  background: var(--purple-600);
  color: white;
}

.nav-icon {
  font-size: 1.125rem;
  display: flex;
  align-items: center;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.page-container {
  min-height: 100vh;
}

.search-container {
  background: var(--bg-primary);
  padding: 5rem 2rem 1rem;
  transition: background 0.3s;
}

.container {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 1.5rem;
  align-items: start;
}

.main-card {
  height: auto;
}

.sidebar {
  position: sticky;
  top: 76px;
}

@media (max-width: 1024px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

.wide-container {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.card {
  background: var(--bg-card);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: visible;
  transition: background 0.3s, box-shadow 0.3s;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle, rgba(168, 85, 247, 0.08) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  background-position: center center;
  pointer-events: none;
  z-index: 0;
  border-radius: 1rem;
  overflow: hidden;
}

[data-theme="light"] .card::before {
  background-image: 
    radial-gradient(circle, rgba(168, 85, 247, 0.12) 1.5px, transparent 1.5px);
}

.card-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: 
    radial-gradient(circle, rgba(168, 85, 247, 0.5) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
  opacity: 0;
  mask-image: radial-gradient(circle 150px at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent);
  -webkit-mask-image: radial-gradient(circle 150px at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent);
  border-radius: 1rem;
  overflow: hidden;
}

.card:hover .card-spotlight {
  opacity: 1;
}

[data-theme="light"] .card-spotlight {
  background-image: 
    radial-gradient(circle, rgba(168, 85, 247, 0.6) 1px, transparent 1px);
}

[data-theme="light"] .card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.header {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.1) 0%, transparent 100%);
  border-radius: 1rem 1rem 0 0;
  position: relative;
  z-index: 2;
}

.icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.subtitle {
  color: #9ca3af;
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 32rem;
  margin: 0 auto;
}

.header {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.1) 0%, transparent 100%);
  border-radius: 1rem 1rem 0 0;
  position: relative;
  z-index: 2;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.subtitle {
  color: #9ca3af;
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 32rem;
  margin: 0 auto;
}

.search-section {
  padding: 1.5rem;
  position: relative;
  z-index: 5;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.08) 0%, transparent 100%);
  border-radius: 1rem 1rem 0 0;
}

.card-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.intro-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.intro-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
}

.intro-header .icon {
  flex-shrink: 0;
  font-size: 2rem;
  margin-bottom: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.intro-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
  letter-spacing: -0.025em;
  line-height: 1;
}

.intro-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.guide-steps-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.625rem;
  background: rgba(168, 85, 247, 0.05);
  border-radius: 0.5rem;
  border: 1px solid rgba(168, 85, 247, 0.1);
  transition: all 0.2s;
}

.step-item:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
}

.step-icon {
  position: relative;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(168, 85, 247, 0.3);
}

.step-icon svg {
  color: white;
  z-index: 1;
}

.step-number {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  background: var(--purple-400);
  color: white;
  border-radius: 50%;
  font-size: 0.5625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  z-index: 2;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

.step-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

[data-theme="light"] .step-item {
  background: rgba(168, 85, 247, 0.03);
}

[data-theme="light"] .step-item:hover {
  background: rgba(168, 85, 247, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-card {
  text-align: center;
  padding: 1rem;
  background: rgba(168, 85, 247, 0.05);
  border-radius: 0.75rem;
  border: 1px solid rgba(168, 85, 247, 0.1);
  transition: all 0.2s;
}

.stat-card:hover {
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
}

.chart-section {
  background: rgba(168, 85, 247, 0.03);
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid rgba(168, 85, 247, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.chart-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chart-title-wrapper svg {
  flex-shrink: 0;
  color: var(--purple-400);
}

.chart-title-wrapper h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.chart-period {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.25rem 0.625rem;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 9999px;
}

.chart-container {
  position: relative;
  flex: 1;
  min-height: 0;
}

.search-box {
  position: relative;
  margin-bottom: 0;
  z-index: 1000;
}

.search-tips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(168, 85, 247, 0.05);
  border-radius: 0.5rem;
  border: 1px solid rgba(168, 85, 247, 0.1);
}

.tip-badge-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.tip-badge-movie {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.tip-badge-tv {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tip-badge-anime {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.tip-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  pointer-events: none;
  z-index: 1;
}

#searchInput {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  font-size: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: 0.75rem;
  outline: none;
  transition: all 0.2s;
  background: rgba(26, 26, 46, 0.5);
  color: var(--text-primary);
}

[data-theme="light"] #searchInput {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.15);
}

#searchInput:hover {
  border-color: var(--purple-400);
}

#searchInput:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
  background: rgba(26, 26, 46, 0.6);
}

[data-theme="light"] #searchInput:focus {
  background: rgba(255, 255, 255, 0.8);
}

#searchInput::placeholder {
  color: var(--text-secondary);
}

.suggestions {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  max-height: 28rem;
  overflow-y: auto;
  display: none;
  z-index: 1001;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: background 0.3s, border-color 0.3s;
}

.suggestions::-webkit-scrollbar {
  width: 0.5rem;
}

.suggestions::-webkit-scrollbar-track {
  background: var(--input-bg);
  border-radius: 0.25rem;
}

.suggestions::-webkit-scrollbar-thumb {
  background: #3a3a4e;
  border-radius: 0.25rem;
  transition: background 0.2s;
}

.suggestions::-webkit-scrollbar-thumb:hover {
  background: #4a4a5e;
}

[data-theme="light"] .suggestions::-webkit-scrollbar-thumb {
  background: #d1d5db;
}

[data-theme="light"] .suggestions::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.suggestions.show {
  display: block;
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suggestion-item {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.15s;
  border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: rgba(168, 85, 247, 0.05);
}

.suggestion-item.owned {
  background: rgba(16, 185, 129, 0.03);
}

.suggestion-item.owned:hover {
  background: rgba(16, 185, 129, 0.05);
}

.suggestion-item.requested {
  background: rgba(251, 191, 36, 0.03);
}

.suggestion-item.requested:hover {
  background: rgba(251, 191, 36, 0.05);
}

.suggestion-btn {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  max-width: 2rem;
  max-height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--purple-500);
  background: rgba(139, 92, 246, 0.2);
  color: var(--purple-400);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.suggestion-btn:hover {
  background: var(--purple-600);
  border-color: var(--purple-600);
}

.suggestion-btn:active {
  background: var(--purple-700);
}

.suggestion-btn.loading {
  width: 2rem !important;
  height: 2rem !important;
  min-width: 2rem !important;
  min-height: 2rem !important;
  max-width: 2rem !important;
  max-height: 2rem !important;
  padding: 0 !important;
  background: rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.4);
  border-width: 1px;
  cursor: wait;
  pointer-events: none;
}

.suggestion-btn.owned {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.3);
  border-width: 1px;
  cursor: not-allowed;
  opacity: 0.8;
}

.suggestion-btn.owned:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.3);
}

.suggestion-btn.requested {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.3);
  border-width: 1px;
  cursor: not-allowed;
  opacity: 0.8;
}

.suggestion-btn.requested:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.3);
}

.suggestion-btn.error {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
  border-width: 1px;
  cursor: not-allowed;
  opacity: 0.9;
}

.suggestion-btn.error:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
}

.suggestion-btn.error svg {
  color: #ef4444;
}

.suggestion-btn svg {
  display: block;
}

.suggestion-poster {
  width: 3.5rem;
  height: 5.25rem;
  object-fit: cover;
  border-radius: 0.5rem;
  background: var(--gray-200);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.suggestion-info {
  flex: 1;
  min-width: 0;
}

.suggestion-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.year {
  color: #9ca3af;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--purple-200);
  border-top-color: var(--purple-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: 0 0 1rem 1rem;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(168, 85, 247, 0.05);
  border-radius: 0 0 1rem 1rem;
  z-index: -1;
}

.stats::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(168, 85, 247, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  pointer-events: none;
  z-index: -1;
  border-radius: 0 0 1rem 1rem;
}

[data-theme="light"] .stats::before {
  background: rgba(168, 85, 247, 0.03);
}

[data-theme="light"] .stats::after {
  background-image: 
    linear-gradient(to right, rgba(168, 85, 247, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 85, 247, 0.08) 1px, transparent 1px);
}

[data-theme="light"] .stats {
  border-top-color: #e5e7eb;
}

/* 侧边栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.info-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.recent-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
  min-height: 400px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.recent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle, rgba(168, 85, 247, 0.08) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  background-position: center center;
  pointer-events: none;
  z-index: 0;
  border-radius: 1rem;
}

[data-theme="light"] .recent-card::before {
  background-image: 
    radial-gradient(circle, rgba(168, 85, 247, 0.12) 1.5px, transparent 1.5px);
}

.recent-card-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: 
    radial-gradient(circle, rgba(168, 85, 247, 0.5) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
  opacity: 0;
  mask-image: radial-gradient(circle 150px at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent);
  -webkit-mask-image: radial-gradient(circle 150px at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent);
  border-radius: 1rem;
}

.recent-card:hover .recent-card-spotlight {
  opacity: 1;
}

[data-theme="light"] .recent-card-spotlight {
  background-image: 
    radial-gradient(circle, rgba(168, 85, 247, 0.6) 1px, transparent 1px);
}

[data-theme="light"] .info-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.recent-header {
  padding: 1.5rem 1.5rem 2rem;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.05) 70%, transparent 100%);
  border-radius: 1rem 1rem 0 0;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.recent-header .info-header {
  margin-bottom: 0;
  padding: 0;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--purple-400);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.info-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recent-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 300px);
  padding-right: 0.25rem;
}

.recent-content::-webkit-scrollbar {
  width: 0.375rem;
}

.recent-content::-webkit-scrollbar-track {
  background: transparent;
}

.recent-content::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 0.25rem;
}

.recent-content::-webkit-scrollbar-thumb:hover {
  background: var(--purple-400);
}

.carousel-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  min-height: 0;
  max-height: 100%;
  z-index: 2;
  padding: 0 1.5rem 2.5rem;
  margin-top: -1rem;
  width: 100%;
  max-width: 100%;
}

.carousel-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

.carousel-track {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  width: 100%;
  max-width: 100%;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(26, 26, 46, 0.5);
  border-radius: 0.5rem;
  transition: all 0.2s;
  border: 1px solid rgba(168, 85, 247, 0.1);
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.recent-item:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: var(--purple-500);
}

[data-theme="light"] .recent-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.15);
}

[data-theme="light"] .recent-item:hover {
  background: rgba(168, 85, 247, 0.2);
}

.recent-poster {
  width: 2.5rem;
  height: 3.75rem;
  object-fit: cover;
  border-radius: 0.375rem;
  background: var(--border-color);
  flex-shrink: 0;
}

.recent-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  max-width: 100%;
}

.recent-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.25rem;
  max-width: 100%;
  width: 100%;
}

.recent-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.recent-type {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  background: rgba(168, 85, 247, 0.2);
  color: var(--purple-400);
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.info-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.info-text {
  flex: 1;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.tip-item kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.25rem 0.5rem;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tip-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.tip-badge svg {
  flex-shrink: 0;
}

.empty-recent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  gap: 0.5rem;
  text-align: center;
}

.recent-poster {
  width: 2.5rem;
  height: 3.75rem;
  object-fit: cover;
  border-radius: 0.375rem;
  background: var(--border-color);
  flex-shrink: 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
  letter-spacing: -0.025em;
}

.stat-label {
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #9ca3af;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* 热门内容区域 */
.trending-container {
  background: var(--bg-primary);
  padding: 2.5rem 0;
  transition: background 0.3s;
}

.trending-section {
  margin-bottom: 2.5rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
}

.section-title svg {
  flex-shrink: 0;
}

.section-subtitle {
  color: #9ca3af;
  font-size: 0.875rem;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.loading-grid {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 3rem;
}

.movie-card {
  background: var(--bg-card);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s;
  border: 2px solid transparent;
}

[data-theme="light"] .movie-card {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--purple-500);
}

[data-theme="light"] .movie-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.1);
}

.movie-poster-wrapper {
  position: relative;
  padding-top: 150%;
  background: #2a2a3e;
  overflow: hidden;
}

.movie-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-rating {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fbbf24;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.movie-info {
  padding: 0.875rem;
}

.movie-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.movie-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  min-height: 2.625em;
}

.movie-year {
  font-size: 0.875rem;
  color: #9ca3af;
  flex: 1;
}

.subscribe-icon-btn {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  max-width: 2rem;
  max-height: 2rem;
  padding: 0;
  margin: 0;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.subscribe-icon-btn:hover {
  background: var(--purple-600);
  border-color: var(--purple-600);
  transform: scale(1.1);
}

.subscribe-icon-btn:active {
  transform: scale(0.95);
}

.plus-icon {
  position: relative;
  width: 12px;
  height: 12px;
}

.plus-icon::before,
.plus-icon::after {
  content: '';
  position: absolute;
  background: #c084fc;
  transition: background 0.2s;
}

.plus-icon::before {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.plus-icon::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.subscribe-icon-btn:hover .plus-icon::before,
.subscribe-icon-btn:hover .plus-icon::after,
.suggestion-btn:hover .plus-icon::before,
.suggestion-btn:hover .plus-icon::after {
  background: white;
}

.subscribe-icon-btn.owned {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.3);
  cursor: not-allowed;
  opacity: 0.8;
}

.subscribe-icon-btn.owned:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.3);
  transform: none;
}

.subscribe-icon-btn.requested {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.3);
  cursor: not-allowed;
  opacity: 0.8;
}

.subscribe-icon-btn.requested:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.3);
  transform: none;
}

.subscribe-icon-btn.error {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
  cursor: not-allowed;
  opacity: 0.9;
}

.subscribe-icon-btn.error:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
  transform: none;
}

.subscribe-icon-btn.error svg {
  color: #ef4444;
  stroke: #ef4444;
}

.subscribe-icon-btn.loading {
  background: rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.4);
  cursor: wait;
  pointer-events: none;
  transform: none !important;
  padding: 0 !important;
}

.subscribe-icon-btn.loading:hover {
  transform: none !important;
}

.spinner-small {
  display: block;
  width: 12px !important;
  height: 12px !important;
  min-width: 12px;
  min-height: 12px;
  max-width: 12px;
  max-height: 12px;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-top-color: var(--purple-500);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 60px;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .brand-name {
    font-size: 1.125rem;
  }

  .nav-link {
    display: none;
  }

  .theme-switcher {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-right {
    gap: 0.5rem;
  }

  .search-container {
    padding: 2rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .wide-container {
    padding: 0 1rem;
  }
  
  .search-grid {
    gap: 1.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .header {
    padding: 1.5rem 1rem 1rem;
  }

  .search-section {
    padding: 1rem;
    position: relative;
  }
  
  #searchInput {
    font-size: 16px; /* 防止 iOS 自动缩放 */
  }
  
  .card-body {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  
  .intro-header {
    flex-direction: column;
    text-align: center;
  }
  
  .intro-header h2 {
    font-size: 1.25rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .stat-card {
    padding: 0.75rem 0.5rem;
  }
  
  .chart-container {
    height: 150px;
  }
  
  .card {
    border-radius: 0.75rem;
  }
  
  .info-card {
    padding: 0;
  }
  
  .recent-header {
    padding: 1rem 1rem 1.5rem;
  }
  
  .carousel-container {
    padding: 1rem 1rem 2rem;
    margin-top: -0.5rem;
  }
  
  .carousel-track {
    gap: 1rem;
  }

  .stats {
    gap: 0.75rem;
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.8125rem;
  }

  .suggestion-poster {
    width: 3rem;
    height: 4.5rem;
  }
  
  .sidebar {
    position: static;
  }
  
  .recent-card {
    max-height: 500px;
    width: 100%;
    max-width: 100%;
  }
  
  .recent-item {
    max-width: 100%;
  }
  
  .recent-title {
    max-width: 100%;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .trending-container {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }

  .movie-info {
    padding: 0.75rem;
  }

  .movie-title {
    font-size: 0.875rem;
  }
}

.subscribe-icon-btn svg {
  display: block;
}


/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  transition: background 0.3s, border-color 0.3s;
}

.footer-container {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(1.2);
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--purple-400);
}

.footer-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.footer-stat:last-child {
  border-bottom: none;
}

.footer-stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-stat-value {
  color: var(--purple-400);
  font-weight: 700;
  font-size: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-social svg {
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.1);
  }
  20%, 40% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 2rem 0 1rem;
    margin-top: 2rem;
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
