*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg: #060614;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-deep: rgba(255, 255, 255, 0.065);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --text: #f0f0f8;
  --text-dim: rgba(240, 240, 248, 0.7);
  --text-muted: rgba(240, 240, 248, 0.35);
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.35);
  --accent2: #ec4899;
  --accent2-glow: rgba(236, 72, 153, 0.3);
  --accent3: #06d6a0;
  --accent3-glow: rgba(6, 214, 160, 0.3);
  --accent4: #3b82f6;
  --gradient-main: linear-gradient(
    135deg,
    #8b5cf6 0%,
    #a855f7 40%,
    #ec4899 100%
  );
  --gradient-warm: linear-gradient(135deg, #f97316, #ec4899);
  --gradient-cool: linear-gradient(135deg, #06d6a0, #3b82f6);
  --radius: 20px;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
#app {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 120px;
  min-height: 100vh;
}
@media (min-width: 768px) {
  #app {
    max-width: 720px;
  }
}
@media (min-width: 1024px) {
  #app {
    max-width: 1100px;
    padding: 0 32px 120px;
  }
}
@media (min-width: 1400px) {
  #app {
    max-width: 1300px;
    padding: 0 40px 120px;
  }
}
@media (min-width: 1700px) {
  #app {
    max-width: 1440px;
    padding: 0 48px 120px;
  }
}
@media (min-width: 768px) {
  .header {
    padding: 16px 24px;
  }
  .trending-card {
    width: 155px;
  }
  .trending-scroll {
    gap: 16px;
  }
  .section-title-text {
    font-size: 1.2rem;
  }
  .daily-pick-card {
    padding: 22px;
  }
}
@media (min-width: 1024px) {
  .header {
    padding: 18px 28px;
    border-radius: 20px;
  }
  .trending-card {
    width: 170px;
  }
  .trending-scroll {
    gap: 18px;
  }
}
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  animation: blobFloat 35s infinite ease-in-out;
}
.blob-1 {
  width: 350px;
  height: 350px;
  background: var(--accent);
  top: -150px;
  left: -100px;
}
.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--accent2);
  top: 35%;
  right: -120px;
  animation-delay: -8s;
  animation-duration: 40s;
}
.blob-3 {
  width: 250px;
  height: 250px;
  background: var(--accent3);
  bottom: -100px;
  left: 20%;
  animation-delay: -16s;
  animation-duration: 38s;
}
.blob-4 {
  display: none;
}
@keyframes blobFloat {
  0%,
  to {
    transform: translate(0) scale(1) rotate(0);
  }
  25% {
    transform: translate(40px, -50px) scale(1.15) rotate(5deg);
  }
  50% {
    transform: translate(-30px, 30px) scale(0.9) rotate(-5deg);
  }
  75% {
    transform: translate(20px, 40px) scale(1.1) rotate(3deg);
  }
}
.glass-deep {
  background: var(--glass-deep);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px #0000004d;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.glass-deep:hover {
  border-color: var(--glass-border-hover);
}
.glass-pill {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.glass-pill:hover {
  background: #ffffff14;
  border-color: var(--glass-border-hover);
}
.header {
  position: sticky;
  top: 8px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  margin: 8px 0 18px;
  gap: 12px;
  border-radius: var(--radius-lg);
}
.header-left {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.logo-icon {
  font-size: 1.35rem;
}
.logo-text {
  color: var(--text);
}
.logo-accent {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tab-switch {
  display: flex;
  gap: 4px;
  background: #ffffff0a;
  border-radius: 12px;
  padding: 3px;
}
.tab-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.tab-icon {
  font-size: 0.9rem;
}
.tab-btn.active {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.tab-btn:hover:not(.active) {
  color: var(--text);
  background: #ffffff0f;
}
.header-right {
  flex-shrink: 0;
}
.user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}
.user-btn:hover {
  color: var(--text);
}
.user-name {
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-section {
  position: relative;
  z-index: 1;
  padding: 20px;
  margin-bottom: 16px;
  overflow: hidden;
}
.ai-section:before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: var(--gradient-main);
  opacity: 0.12;
  z-index: -1;
}
.ai-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ai-badge {
  background: var(--gradient-main);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}
@keyframes badgePulse {
  0%,
  to {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 16px 4px var(--accent-glow);
  }
}
.ai-header h2 {
  font-size: 1rem;
  font-weight: 700;
}
.ai-input-wrap {
  position: relative;
  margin-bottom: 12px;
}
.ai-input {
  width: 100%;
  background: #ffffff0a;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  padding: 14px 50px 14px 16px;
  resize: none;
  outline: none;
  transition: all 0.3s var(--ease);
  line-height: 1.5;
}
.ai-input::placeholder {
  color: var(--text-muted);
}
.ai-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: #ffffff0f;
}
.ai-search-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: var(--gradient-main);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  box-shadow: 0 2px 12px var(--accent-glow);
}
.ai-search-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.ai-search-btn:active {
  transform: scale(0.95);
}
.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-chip {
  border: none;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 100px;
  cursor: pointer;
  background: #ffffff0a;
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.ai-chip:hover {
  background: #8b5cf61f;
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-1px);
}
.section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.title-glow {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tab-content-wrapper {
  position: relative;
}
.tab-pane {
  animation: tabFadeIn 0.35s var(--ease);
}
@keyframes tabFadeIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tab-pane-exit {
  animation: tabFadeOut 0.2s var(--ease) forwards;
}
@keyframes tabFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.mood-section {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.mood-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mood-btn {
  border: none;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  background: #ffffff0f;
  border: 1px solid var(--glass-border);
  color: var(--text);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.mood-btn:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.3s;
}
.mood-btn:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--glass-border-hover);
  box-shadow: 0 4px 16px #0003;
}
.mood-btn.active {
  background: var(--gradient-main) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 24px var(--accent-glow), 0 0 0 2px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  transform: translateY(-2px) scale(1.05) !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.filters-section {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  overflow: hidden;
}
.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
}
.filters-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.filters-icon {
  font-size: 1.1rem;
}
.filters-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reset-filters-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.3s var(--ease);
  display: flex;
}
.reset-filters-btn:hover {
  color: var(--accent);
  background: #8b5cf61a;
}
.chevron {
  transition: transform 0.3s var(--ease);
  color: var(--text-dim);
}
.filters-section.open .chevron {
  transform: rotate(180deg);
}
.filters-body {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition:
    max-height 0.4s var(--ease),
    visibility 0s linear 0.4s;
}
.filters-section.open .filters-body {
  max-height: 500px;
  visibility: visible;
  transition:
    max-height 0.4s var(--ease),
    visibility 0s linear 0s;
}
.filters-group {
  padding: 0 18px 18px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.filter-row:last-child {
  margin-bottom: 0;
}
.filter-row label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  min-width: 95px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-emoji {
  font-size: 1rem;
}
.glass-select {
  flex: 1;
  appearance: none;
  background: #ffffff0a;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  padding: 10px 34px 10px 14px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.glass-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.glass-select option {
  background: #1a1a2e;
  color: var(--text);
}
.glass-select.small {
  max-width: 100px;
}
.year-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.range-dash {
  color: var(--text-muted);
}
.range-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.glass-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: #ffffff14;
  outline: none;
}
.glass-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-main);
  cursor: pointer;
  box-shadow: 0 2px 10px var(--accent-glow);
  transition: transform 0.2s var(--spring);
}
.glass-range::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}
.range-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-light);
  min-width: 30px;
  text-align: center;
}
.hidden {
  display: none !important;
}
.pick-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.pick-btn {
  position: relative;
  width: 100%;
  padding: 20px 32px;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  overflow: hidden;
  font-family: var(--font);
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.pick-btn:active,
.pick-btn:focus {
  outline: none;
}
.pick-btn-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease);
}
.pick-btn-bg:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% {
    transform: translate(-50%);
  }
  to {
    transform: translate(50%);
  }
}
.pick-btn:hover .pick-btn-bg {
  transform: scale(1.02);
  box-shadow: 0 8px 40px var(--accent-glow);
}
.pick-btn:active .pick-btn-bg {
  transform: scale(0.98);
}
.pick-btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}
.pick-btn-icon {
  font-size: 1.5rem;
  display: inline-block;
  animation: diceShake 3s infinite;
}
@keyframes diceShake {
  0%,
  85%,
  to {
    transform: rotate(0) scale(1);
  }
  87% {
    transform: rotate(20deg) scale(1.1);
  }
  89% {
    transform: rotate(-20deg) scale(1.1);
  }
  91% {
    transform: rotate(15deg) scale(1.05);
  }
  93% {
    transform: rotate(-15deg) scale(1.05);
  }
  95% {
    transform: rotate(5deg);
  }
  97% {
    transform: rotate(-5deg);
  }
}
.lucky-btn {
  padding: 12px 28px;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  letter-spacing: 0.01em;
}
.lucky-btn:hover {
  border-color: var(--accent3);
  color: var(--accent3);
  background: #06d6a00f;
  border-style: solid;
}
.lucky-sparkle {
  transition: transform 0.3s var(--spring);
}
.lucky-btn:hover .lucky-sparkle {
  transform: rotate(20deg) scale(1.2);
}
.result-section {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  animation: slideUp 0.5s var(--ease);
}
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.result-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--glass-border);
  touch-action: pan-y;
}
.result-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(0.3);
  transform: scale(1.2);
  z-index: 0;
}
.result-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #060614a6;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: cardReveal 0.6s var(--ease);
}
@keyframes cardReveal {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.result-poster-wrap {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  height: 210px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px #0006;
}
.result-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.result-card:hover .result-poster {
  transform: scale(1.05);
}
.result-rating-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0009;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(251, 191, 36, 0.2);
}
.result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.result-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.result-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.meta-tag {
  background: #ffffff0f;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.result-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-dim);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  flex: 1;
}
.result-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: #ffffff0a;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.action-btn:hover {
  background: #ffffff14;
  color: var(--text);
  transform: translateY(-1px);
  border-color: var(--glass-border-hover);
}
.action-btn svg {
  flex-shrink: 0;
}
.save-btn.saved {
  background: #ec48991f;
  border-color: #ec48994d;
  color: var(--accent2);
}
.save-btn.saved svg {
  fill: var(--accent2);
}
.trailer-btn:hover {
  border-color: #8b5cf666;
  color: var(--accent-light);
}
.link-btn:hover {
  border-color: #3b82f666;
  color: #60a5fa;
}
.saved-item-link {
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: opacity 0.2s;
  margin-right: 4px;
  text-decoration: none;
}
.saved-item-link:hover {
  opacity: 1;
}
.more-btn {
  position: relative;
  width: 100%;
  padding: 16px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--glass-deep);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.more-btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.08),
    transparent
  );
  animation: shimmer 3s infinite;
}
.more-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px #0000004d;
}
.saved-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
}
.saved-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.saved-count {
  background: var(--gradient-main);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  min-width: 24px;
  text-align: center;
}
.saved-body {
  border-top: 1px solid var(--glass-border);
}
.saved-tabs {
  display: flex;
  padding: 10px 18px 0;
  gap: 8px;
}
.saved-tab {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.saved-tab.active {
  background: #ffffff0f;
  color: var(--text);
}
.saved-list {
  padding: 12px 18px 18px;
  max-height: 350px;
  overflow-y: auto;
}
.saved-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease);
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.saved-item:hover {
  background: #ffffff0a;
  border-color: var(--glass-border);
}
.saved-item-poster {
  width: 45px;
  height: 65px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px #0000004d;
}
.saved-item-info {
  flex: 1;
  min-width: 0;
}
.saved-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.saved-item-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.saved-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 6px;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
  border-radius: 6px;
}
.saved-item-remove:hover {
  color: var(--accent2);
  background: #ec48991a;
}
.saved-item.dragging {
  opacity: 0.45;
  transform: scale(0.97);
  box-shadow: 0 0 0 2px var(--accent);
}
.saved-item.drag-over {
  border-color: var(--accent-light);
  background: #8b5cf61a;
}
.saved-item {
  cursor: grab;
}
.saved-item:active {
  cursor: grabbing;
}
.saved-item .drag-handle {
  color: var(--text-muted);
  font-size: 1rem;
  cursor: grab;
  flex-shrink: 0;
  padding: 0 4px;
  user-select: none;
  transition: color 0.2s;
}
.saved-item .drag-handle:hover {
  color: var(--text-dim);
}
.guest-picks-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 100px;
  background: #ffffff0a;
  border: 1px solid var(--glass-border);
  margin-left: 8px;
  transition: all 0.3s var(--ease);
}
.guest-picks-badge.warning {
  color: #f97316;
  border-color: #f973164d;
  background: #f9731614;
}
.guest-picks-badge.exhausted {
  color: var(--accent2);
  border-color: #ec48994d;
  background: #ec489914;
  animation: shake 0.5s var(--ease);
}
@keyframes shake {
  0%,
  to {
    transform: translate(0);
  }
  20% {
    transform: translate(-4px);
  }
  40% {
    transform: translate(4px);
  }
  60% {
    transform: translate(-3px);
  }
  80% {
    transform: translate(3px);
  }
}
.save-btn.saved svg {
  fill: var(--accent2);
  stroke: var(--accent2);
  animation: heartPulse 0.4s var(--spring);
}
@keyframes heartPulse {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.3);
  }
  60% {
    transform: scale(0.9);
  }
  to {
    transform: scale(1);
  }
}
.result-card {
  cursor: default;
}
.double-click-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 3rem;
  pointer-events: none;
  z-index: 10;
  animation: heartFloat 0.8s var(--spring) forwards;
}
@keyframes heartFloat {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -70%) scale(1.2);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -90%) scale(0.8);
    opacity: 0;
  }
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-main);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}
.swipe-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.1s;
  opacity: 0;
}
.swipe-hint-right {
  right: 10px;
  background: #06d6a033;
  border: 2px solid rgba(6, 214, 160, 0.5);
  color: #06d6a0;
}
.swipe-hint-left {
  left: 10px;
  background: #8b5cf633;
  border: 2px solid rgba(139, 92, 246, 0.5);
  color: var(--accent-light);
}
.pull-refresh-indicator {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translate(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  z-index: 10000;
  transition: none;
}
.pull-refresh-indicator.pull-ready {
  color: var(--accent-light);
  border-color: var(--accent);
}
.pull-refresh-indicator.pull-refreshing {
  color: var(--accent-light);
}
.pull-refresh-icon {
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.pull-refresh-indicator.pull-ready .pull-refresh-icon {
  transform: rotate(180deg);
}
@keyframes spin {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
.context-menu {
  position: fixed;
  z-index: 10001;
  background: #12121cf2;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  padding: 6px;
  min-width: 180px;
  box-shadow: 0 8px 32px #00000080;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.context-menu-visible {
  opacity: 1;
  transform: scale(1);
}
.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
}
.context-menu-item:hover,
.context-menu-item:active {
  background: #8b5cf61f;
}
.context-menu-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.hide-seen-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.82rem;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.hide-seen-toggle input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.empty-msg {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 24px 0;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #000000bf;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: 20px;
  margin: auto 0;
  animation: cardReveal 0.3s var(--ease);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: transform 0.2s;
}
.modal-close:hover {
  transform: rotate(90deg);
}
.trailer-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  margin-top: 8px;
}
.trailer-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.watched-btn {
  background: #ffffff0f;
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
}
.watched-btn:hover {
  background: #8b5cf61f;
  border-color: #8b5cf64d;
  color: var(--text);
}
.watched-btn.active {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-color: #8b5cf64d;
  color: #fff;
}
.saved-category-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.saved-cat-tab {
  flex: 1;
  padding: 8px 12px;
  background: #ffffff0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff9;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.saved-cat-tab.active {
  background: #6366f133;
  border-color: #6366f166;
  color: #fff;
}
.saved-cat-tab:hover:not(.active) {
  background: #ffffff14;
}
.watched-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.stat-badge {
  padding: 4px 10px;
  background: #ffffff0f;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #ffffffb3;
}
.stat-badge b {
  color: #a78bfa;
}
.saved-item-move {
  cursor: pointer;
  font-size: 1rem;
  background: #8b5cf633;
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-right: 4px;
  flex-shrink: 0;
}
.saved-item-move:hover {
  background: #8b5cf666;
  transform: scale(1.1);
}
.saved-item-rate {
  cursor: pointer;
  font-size: 1.1rem;
  background: #fbbf2426;
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-right: 4px;
  flex-shrink: 0;
}
.saved-item-rate:hover {
  background: #fbbf244d;
  transform: scale(1.1);
}
.user-rating-badge {
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 600;
}
.saved-item-date {
  font-size: 0.7rem;
  color: #ffffff59;
}
.rating-modal-content {
  max-width: 400px;
  text-align: center;
  padding: 24px;
}
.rating-modal-title {
  color: #fff;
  margin: 0 0 16px;
  font-size: 1.1rem;
}
.rating-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}
.rating-star {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff3;
  cursor: pointer;
  transition:
    color 0.15s,
    transform 0.15s;
  padding: 2px;
}
.rating-star:hover {
  transform: scale(1.2);
}
.rating-star.active {
  color: #fbbf24;
}
.rating-save-btn {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
}
#movie-night-section {
  display: none !important;
}
.movie-night-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #f97316, #ef4444, #ec4899);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.movie-night-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 20px #ef444466;
}
.movie-night-icon {
  font-size: 1.3rem;
}
.movie-night-content {
  max-width: 600px;
  padding: 24px;
  max-height: 85vh;
  overflow-y: auto;
}
.mn-title {
  color: #fff;
  text-align: center;
  margin: 0 0 8px;
  font-size: 1.3rem;
}
.mn-desc {
  color: #fff9;
  text-align: center;
  margin: 0 0 16px;
  font-size: 0.9rem;
}
.mn-participants {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.mn-input {
  flex: 1;
  padding: 10px 14px;
  background: #ffffff14;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}
.mn-input:focus {
  border-color: #6366f180;
}
.mn-add-btn {
  padding: 10px 16px;
  background: #6366f14d;
  border: 1px solid rgba(99, 102, 241, 0.5);
  border-radius: 10px;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.mn-add-btn:hover {
  background: #6366f180;
}
.mn-names {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.mn-name-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #6366f133;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  color: #c4b5fd;
  font-size: 0.85rem;
}
.mn-name-tag button {
  background: none;
  border: none;
  color: #fff6;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}
.mn-hint {
  color: #ffffff59;
  font-size: 0.8rem;
  text-align: center;
  margin: 8px 0;
}
.mn-start-btn,
.mn-next-btn,
.mn-result-btn,
.mn-countdown-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: opacity 0.2s;
}
.mn-start-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.mn-again-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: #ffffff14;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffffb3;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 8px;
}
.mn-picks {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.mn-pick-card {
  position: relative;
  width: 90px;
  text-align: center;
}
.mn-pick-poster {
  width: 80px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}
.mn-pick-title {
  font-size: 0.7rem;
  color: #ffffffb3;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mn-pick-remove {
  position: absolute;
  top: -4px;
  right: 2px;
  background: #ef4444cc;
  border: none;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mn-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.mn-search-input {
  flex: 1;
}
.mn-search-btn {
  padding: 10px 14px;
  background: #6366f14d;
  border: 1px solid rgba(99, 102, 241, 0.5);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
}
.mn-search-results {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 8px;
}
.mn-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.mn-result:hover {
  background: #ffffff14;
}
.mn-result-poster {
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
.mn-result-info {
  flex: 1;
}
.mn-result-title {
  color: #fff;
  font-size: 0.9rem;
}
.mn-result-year {
  color: #fff6;
  font-size: 0.8rem;
}
.mn-loading,
.mn-no-results {
  color: #ffffff80;
  text-align: center;
  padding: 16px;
  font-size: 0.9rem;
}
.mn-vote-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.mn-vote-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #ffffff0d;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.mn-vote-card:hover {
  border-color: #6366f166;
  background: #6366f11a;
}
.mn-vote-card.voted {
  border-color: #6366f199;
  background: #6366f126;
}
.mn-vote-poster {
  width: 50px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
}
.mn-vote-info {
  flex: 1;
}
.mn-vote-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}
.mn-vote-by {
  color: #fff6;
  font-size: 0.8rem;
}
.mn-vote-count {
  color: #a78bfa;
  font-size: 0.85rem;
  font-weight: 600;
}
.mn-voter-select {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.mn-voter-select label {
  color: #fff9;
  font-size: 0.85rem;
}
.mn-voter-select select {
  flex: 1;
  padding: 8px 12px;
  background: #ffffff14;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
}
.mn-winner-card {
  text-align: center;
  margin: 16px 0;
}
.mn-winner-poster {
  width: 160px;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 12px;
  display: block;
  box-shadow: 0 4px 20px #6366f14d;
}
.mn-winner-title {
  color: #fff;
  margin: 0;
  font-size: 1.2rem;
}
.mn-winner-year {
  color: #ffffff80;
  margin: 4px 0 0;
}
.mn-countdown-display {
  text-align: center;
  margin: 24px 0;
}
.mn-countdown-time {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #f97316, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mn-winner-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 16px 0;
}
.mn-mini-poster {
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
.mn-mini-title {
  color: #fffc;
  font-size: 0.9rem;
}
.mn-countdown-btns {
  margin-top: 12px;
}
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #060614b3;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.spinner-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent);
  border-right-color: var(--accent2);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.loading-text {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
}
.toast {
  position: fixed;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translate(-50%);
  background: #141428e6;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  z-index: 2000;
  animation: toastIn 0.3s var(--spring);
  box-shadow: 0 8px 32px #0006;
}
@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translate(-50%) translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%) translateY(0) scale(1);
  }
}
.demo-banner {
  position: relative;
  z-index: 1;
  background: #8b5cf614;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.5;
}
.demo-banner code {
  background: #ffffff0f;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #ffffff1a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #fff3;
}
@media (max-width: 480px) {
  .header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
  .header-left {
    order: 1;
  }
  .tab-switch {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .header-right {
    order: 2;
    margin-left: auto;
  }
  .result-poster-wrap {
    width: 110px;
    height: 165px;
  }
  .result-title {
    font-size: 1rem;
  }
  .result-actions {
    gap: 4px;
  }
  .action-btn span {
    display: none;
  }
  .action-btn {
    padding: 8px 10px;
  }
}
.lang-switch {
  display: flex;
  gap: 2px;
  background: #ffffff0a;
  border-radius: 8px;
  padding: 2px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.5px;
}
.lang-btn.active {
  background: var(--gradient-main);
  color: #fff;
}
.lang-btn:hover:not(.active) {
  color: var(--text);
  background: #ffffff0f;
}
.auth-modal-content {
  padding: 32px 24px 24px;
  max-width: 380px;
}
.auth-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}
.glass-input {
  width: 100%;
  background: #ffffff0a;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 12px 16px;
  outline: none;
  transition: all 0.3s var(--ease);
}
.glass-input::placeholder {
  color: var(--text-muted);
}
.glass-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: #ffffff0f;
}
.auth-error {
  background: #ef44441a;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  text-align: center;
}
.auth-privacy {
  display: flex;
  align-items: flex-start;
  margin-top: 4px;
}
.auth-privacy.hidden {
  display: none;
}
.auth-privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.auth-privacy-check {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.auth-privacy-text {
  flex: 1;
}
.auth-privacy-text a {
  color: var(--accent-light);
  text-decoration: underline;
}
.auth-privacy-text a:hover {
  color: #fff;
}
.auth-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--gradient-main);
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.auth-submit:active {
  transform: translateY(0);
}
.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.auth-switch-btn {
  background: none;
  border: none;
  color: var(--accent-light);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
  text-decoration: underline;
  transition: color 0.2s;
}
.auth-switch-btn:hover {
  color: var(--accent);
}
.profile-modal-content {
  width: min(92vw, 440px);
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}
.profile-modal-content::-webkit-scrollbar {
  width: 5px;
}
.profile-modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.profile-modal-content::-webkit-scrollbar-thumb {
  background: #8b5cf64d;
  border-radius: 99px;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: var(--gradient-main);
  box-shadow: 0 10px 30px var(--accent-glow);
}
.profile-title {
  font-size: 1.35rem;
  font-weight: 900;
}
.profile-email {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 4px;
  word-break: break-all;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.profile-stat {
  padding: 16px;
  border-radius: 18px;
  background: #ffffff0e;
  border: 1px solid var(--glass-border);
  text-align: center;
}
.profile-stat-icon {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}
.profile-stat b {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
}
.profile-stat small {
  color: var(--text-dim);
  font-size: 0.78rem;
}
.profile-saved-line {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff0a;
  color: var(--text-dim);
  text-align: center;
}
.profile-saved-line b {
  color: var(--text);
}
.profile-saved-line span {
  margin: 0 8px;
  color: var(--text-muted);
}
.profile-logout-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px #ef444440;
}
.profile-level {
  margin: 4px 0 18px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b5cf61f, #ec489914);
  border: 1px solid var(--glass-border);
}
.profile-level-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.profile-level-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gradient-main);
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 8px 22px var(--accent-glow);
  flex-shrink: 0;
}
.profile-level-info {
  flex: 1;
  min-width: 0;
}
.profile-level-name {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
}
.profile-level-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}
.profile-level-tonext {
  margin-left: 6px;
  color: var(--text-muted);
}
.profile-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #ffffff14;
  overflow: hidden;
}
.profile-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-main);
  border-radius: 999px;
  transition: width 0.6s var(--ease);
  box-shadow: 0 0 12px var(--accent-glow);
}
.profile-tabs {
  display: flex;
  gap: 8px;
  background: #ffffff0a;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.profile-tab-btn {
  flex: 1;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-dim);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-size: 0.9rem;
}
.profile-tab-btn.active {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 6px 16px var(--accent-glow);
}
.profile-panel.hidden {
  display: none;
}
.profile-history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  align-items: center;
}
.profile-hf-btn {
  padding: 6px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: #ffffff0a;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.profile-hf-btn.active {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
}
.profile-history-clear {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.profile-history-clear:hover {
  color: #ef4444;
  border-color: #ef4444;
}
.profile-history-list {
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}
.profile-history-item {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff0a;
  border: 1px solid var(--glass-border);
}
.phi-poster {
  width: 44px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background: #0000004d;
  flex-shrink: 0;
}
.phi-info {
  min-width: 0;
}
.phi-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phi-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.phi-when {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.phi-link {
  color: var(--accent);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background 0.2s;
}
.phi-link:hover {
  background: #8b5cf626;
}
.profile-history-more {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed var(--glass-border);
  border-radius: 12px;
  background: transparent;
  color: var(--text-dim);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.profile-history-more:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.profile-history-empty {
  padding: 30px 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
@media (max-width: 480px) {
  .profile-history-list {
    max-height: 50vh;
  }
  .profile-history-item {
    grid-template-columns: 40px 1fr auto;
  }
  .phi-link {
    display: none;
  }
  .profile-tabs {
    font-size: 0.85rem;
  }
  .profile-level-badge {
    width: 40px;
    height: 40px;
  }
}
.saved-section,
.result-section,
#trailer-modal,
#auth-modal {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}
@media (max-width: 768px) {
  .blob-1 {
    width: 260px;
    height: 260px;
    filter: blur(60px);
    opacity: 0.32;
  }
  .blob-2 {
    width: 240px;
    height: 240px;
    filter: blur(60px);
    opacity: 0.32;
  }
  .blob-3 {
    width: 220px;
    height: 220px;
    filter: blur(55px);
    opacity: 0.28;
  }
  .blob-4 {
    display: none;
  }
  .glass-deep {
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
  }
  .glass-pill {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .result-card-bg {
    display: none;
  }
  .pick-btn:before,
  .ai-search-btn:before {
    animation: none;
  }
  #particles-canvas {
    display: none !important;
  }
  .mood-grid {
    gap: 6px;
  }
  .mood-btn {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
  .ai-section,
  .filters-section,
  .saved-section {
    padding: 16px;
  }
  .pick-btn {
    font-size: 1rem;
    padding: 14px 18px;
  }
}
@media (max-width: 480px) {
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .profile-stat {
    padding: 12px;
  }
  .profile-stat b {
    font-size: 1.2rem;
  }
  .filters-body {
    padding: 12px;
  }
  .filter-row {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .blob,
  #particles-canvas {
    display: none;
  }
}
.blob,
.pick-btn,
.lucky-btn,
.result-card {
  will-change: transform;
}
img.result-poster,
.saved-item img {
  will-change: auto;
}
.daily-pick-section {
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(250, 204, 21, 0.2);
  background: #facc150a;
  position: relative;
  overflow: hidden;
}
.daily-pick-header {
  margin-bottom: 14px;
}
.daily-pick-badge {
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #facc1526, #fb923c26);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(250, 204, 21, 0.2);
}
.daily-pick-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  cursor: pointer;
}
.daily-pick-poster {
  width: 90px;
  min-width: 90px;
  border-radius: 12px;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: #ffffff0a;
}
.daily-pick-info {
  flex: 1;
  min-width: 0;
}
.daily-pick-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.daily-pick-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.daily-pick-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fab-container {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  right: calc(28px + env(safe-area-inset-right, 0px));
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
}
.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 4px 20px #f9731680;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.fab-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px #f97316b3;
}
.fab-btn.active {
  transform: rotate(45deg) scale(1.1);
}
.fab-fire {
  font-size: 26px;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.6));
}
.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  animation: fabSlideIn 0.25s ease-out;
}
.fab-menu.hidden {
  display: none;
}
@keyframes fabSlideIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.fab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  background: #0f0f23eb;
  backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.15s;
  white-space: nowrap;
  box-shadow: 0 4px 16px #0006;
}
.fab-item:hover {
  background: #8b5cf626;
  transform: translate(-4px);
}
.fab-item-icon {
  font-size: 1.1rem;
}
.profile-streak {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #fb923c1f;
  border: 1px solid rgba(251, 146, 60, 0.2);
  margin-left: auto;
  flex-shrink: 0;
}
.streak-fire {
  font-size: 1.1rem;
}
.streak-count {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fb923c;
}
.streak-label {
  font-size: 0.75rem;
  color: #fb923c;
  opacity: 0.8;
}
.streak-warm .streak-fire {
  filter: drop-shadow(0 0 6px #ff6347);
}
.streak-warm .streak-count,
.streak-warm .streak-label {
  color: tomato;
}
.streak-hot .streak-fire {
  filter: drop-shadow(0 0 8px #ffd700);
}
.streak-hot .streak-count,
.streak-hot .streak-label {
  color: gold;
}
.streak-fire-100 .streak-fire {
  filter: drop-shadow(0 0 10px #ffa500);
  font-size: 1.3rem;
}
.streak-fire-100 .streak-count,
.streak-fire-100 .streak-label {
  color: orange;
}
.streak-epic .streak-fire {
  filter: drop-shadow(0 0 12px #ff4500);
  font-size: 1.4rem;
}
.streak-epic .streak-count,
.streak-epic .streak-label {
  color: #ff4500;
}
.streak-legendary .streak-fire {
  filter: drop-shadow(0 0 14px #ff0000);
  font-size: 1.5rem;
  animation: streak-pulse 1.2s ease-in-out infinite;
}
.streak-legendary .streak-count,
.streak-legendary .streak-label {
  color: red;
}
@keyframes streak-pulse {
  0%,
  to {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
.profile-username-section {
  margin-bottom: 16px;
  padding: 12px 0;
}
.profile-username-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.profile-username-at {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-light);
  padding: 0 4px;
}
.profile-username-input {
  flex: 1;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 12px;
  min-width: 0;
}
.profile-username-save {
  padding: 8px 16px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.profile-username-save:hover {
  background: var(--accent-light);
}
.profile-username-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
  padding-left: 28px;
}
.profile-public-link {
  display: inline-block;
  margin-top: 8px;
  padding-left: 28px;
  font-size: 0.8rem;
  color: var(--accent-light);
  text-decoration: none;
}
.profile-public-link:hover {
  text-decoration: underline;
}
.announcement-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #8b5cf61f;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius);
  margin-bottom: 16px;
  animation: cardReveal 0.4s var(--ease);
}
.announcement-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.announcement-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}
.announcement-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.announcement-close:hover {
  color: var(--text);
}
.trending-section {
  margin-bottom: 20px;
}
.section-header {
  margin-bottom: 12px;
}
.section-title-text {
  font-size: 1.1rem;
  font-weight: 800;
}
.trending-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.trending-scroll::-webkit-scrollbar {
  display: none;
}
.trending-card {
  flex-shrink: 0;
  width: 130px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.trending-card:hover {
  transform: translateY(-4px);
}
.trending-poster {
  width: 130px;
  height: 195px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--glass-border);
}
.trending-name {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trending-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.achievement-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: all 0.2s var(--ease);
}
.achievement-item.earned {
  background: #8b5cf61a;
  border-color: #8b5cf640;
}
.achievement-item.locked {
  opacity: 0.4;
  filter: grayscale(0.8);
}
.achievement-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.achievement-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.achievement-desc {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}
.share-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  border-radius: 2px;
  animation: confettiFall 2.5s ease-in forwards;
}
@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}
.ad-banner {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: min(320px, calc(100vw - 48px));
  background: #0f0f23f2;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px;
  z-index: 9998;
  box-shadow: 0 12px 40px #00000080;
  animation: adSlideIn 0.4s var(--spring);
}
@keyframes adSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.ad-banner-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.ad-banner-close:hover {
  color: var(--text);
}
.ad-banner-content {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}
@media (max-width: 540px) {
  .fab-container {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
  }
  .fab-btn {
    width: 44px;
    height: 44px;
    opacity: 0.85;
  }
  .fab-fire {
    font-size: 22px;
  }
  .fab-item {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .daily-pick-poster {
    width: 70px;
    min-width: 70px;
  }
  .daily-pick-title {
    font-size: 0.95rem;
  }
  .ad-banner {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }
}
.site-top-banner {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #8b5cf6f5, #ec4899f5);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  box-shadow: 0 4px 20px #00000047;
}
.site-top-banner a {
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff2e;
  border: 1px solid rgba(255, 255, 255, 0.28);
  white-space: nowrap;
}
.ad-banner-content strong {
  display: block;
  margin-bottom: 4px;
}
.ad-banner-content p {
  margin: 0 0 10px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.4;
}
.ad-action,
.site-popup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--gradient-main, linear-gradient(135deg, #8b5cf6, #ec4899));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.site-popup-ad {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #000000ad;
  backdrop-filter: blur(12px);
}
.site-popup-card {
  width: min(92vw, 440px);
  position: relative;
  padding: 28px;
  border-radius: 26px;
  background: #0d0d20f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px #0000008c;
  text-align: center;
  color: var(--text, #fff);
}
.site-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #ffffffa6;
  font-size: 1.7rem;
  cursor: pointer;
}
.site-popup-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.site-popup-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}
.site-popup-card p {
  color: var(--text-dim, rgba(255, 255, 255, 0.66));
  line-height: 1.55;
  margin-bottom: 18px;
}
.site-popup-card small {
  display: block;
  margin-top: 12px;
  color: #ffffff6b;
}
.profile-edit-grid {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.profile-edit-grid textarea {
  min-height: 72px;
  resize: vertical;
}
.profile-share-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.profile-share-btn {
  border: 1px solid var(--glass-border);
  background: #ffffff0f;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 640px) {
  .site-top-banner {
    font-size: 0.82rem;
    align-items: flex-start;
  }
  .site-top-banner a {
    padding: 5px 9px;
  }
  .site-popup-card {
    padding: 24px 18px;
  }
}
.promo-banner {
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: cardReveal 0.5s var(--ease);
}
.promo-banner-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  z-index: 0;
}
.promo-banner[data-gradient="purple"] .promo-banner-glow {
  background: linear-gradient(135deg, #8b5cf640, #ec48992e);
  box-shadow:
    0 0 40px #8b5cf626,
    inset 0 0 60px #ec489914;
}
.promo-banner[data-gradient="blue"] .promo-banner-glow {
  background: linear-gradient(135deg, #3b82f640, #06d6a02e);
  box-shadow:
    0 0 40px #3b82f626,
    inset 0 0 60px #06d6a014;
}
.promo-banner[data-gradient="fire"] .promo-banner-glow {
  background: linear-gradient(135deg, #f9731640, #ef44442e);
  box-shadow:
    0 0 40px #f9731626,
    inset 0 0 60px #ef444414;
}
.promo-banner[data-gradient="green"] .promo-banner-glow {
  background: linear-gradient(135deg, #06d6a040, #10b9812e);
  box-shadow:
    0 0 40px #06d6a026,
    inset 0 0 60px #10b98114;
}
.promo-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.promo-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: promoPulse 2.5s ease-in-out infinite;
}
@keyframes promoPulse {
  0%,
  to {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
.promo-banner-body {
  flex: 1;
  min-width: 0;
}
.promo-banner-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}
.promo-banner-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--gradient-main);
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.promo-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.feedback-mini-btn {
  opacity: 0.5;
  padding: 6px !important;
  min-width: auto !important;
}
.feedback-mini-btn:hover {
  opacity: 1;
}
.feedback-dialog {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00000080;
  backdrop-filter: blur(6px);
}
.feedback-dialog.hidden {
  display: none;
}
.feedback-dialog-card {
  width: min(90vw, 380px);
  padding: 20px;
  border-radius: var(--radius-md);
  position: relative;
}
.feedback-dialog-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
}
.feedback-dialog-input {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px;
  font-family: var(--font);
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 10px;
}
.feedback-dialog-send {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--gradient-main);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}
.feedback-dialog-select {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 10px;
  font-family: var(--font);
  font-size: 0.85rem;
  margin-bottom: 10px;
  appearance: auto;
}
.bottom-fab-cluster {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: calc(18px + env(safe-area-inset-left, 0px));
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.bottom-fab-cluster > * {
  pointer-events: auto;
}
.feedback-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f0f23d9;
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transition:
    opacity 0.2s,
    transform 0.2s,
    color 0.2s,
    border-color 0.2s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px #0000004d;
}
.feedback-fab:hover {
  opacity: 1;
  transform: scale(1.1);
  color: var(--accent-light);
  border-color: var(--accent);
}
.feedback-fab.hidden {
  display: none;
}
.scroll-top-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: #0f0f23d9;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 20px #0000004d;
  animation: fadeInUp 0.3s var(--ease);
}
.scroll-top-btn:hover {
  color: var(--accent-light);
  border-color: var(--accent);
  background: #8b5cf626;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px #8b5cf633;
}
.staff-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: #8b5cf626;
  color: #c4b5fd;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 20px #8b5cf640;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  font-size: 18px;
}
.staff-fab:hover {
  color: #fff;
  border-color: var(--accent);
  background: #8b5cf64d;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px #8b5cf666;
}
.staff-fab.hidden {
  display: none;
}
@media (max-width: 480px) {
  .bottom-fab-cluster {
    left: calc(12px + env(safe-area-inset-left, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .feedback-fab,
  .scroll-top-btn,
  .staff-fab {
    width: 40px;
    height: 40px;
  }
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.result-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow:
    var(--glass-shadow),
    0 0 30px #8b5cf614;
}
.game-profile-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}
.game-profile-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.game-profile-rating-value {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.game-profile-rating-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.game-profile-record {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
}
.game-header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: 12px;
  transition: all 0.3s var(--ease);
}
.game-header-btn:hover {
  border-color: var(--accent);
  background: #8b5cf626;
  transform: scale(1.05);
}
.game-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #000000b3;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.game-modal-card {
  position: relative;
  width: min(94vw, 440px);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background: #0d0d20f5;
  box-shadow: 0 30px 90px #00000080;
  animation: cardReveal 0.35s var(--ease);
}
.game-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #ffffff80;
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s;
}
.game-modal-close:hover {
  color: #fff;
}
.game-screen {
  text-align: center;
}
.game-header-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 8px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.game-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 18px;
}
.game-my-stats {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}
.game-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  min-width: 100px;
}
.game-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.game-stat-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-light);
}
.game-stat-small {
  font-size: 0.85rem;
}
.game-play-btn {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  background: var(--gradient-main);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: inherit;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.game-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.game-cancel-btn {
  margin-top: 14px;
  padding: 10px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.game-cancel-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}
.game-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #8b5cf61a;
  border: 1px solid rgba(139, 92, 246, 0.25);
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent-light);
  transition: all 0.3s;
}
.game-timer-warning {
  background: #ef444426;
  border-color: #ef444466;
  color: #f87171;
  animation: timerPulse 0.5s ease infinite alternate;
}
@keyframes timerPulse {
  0% {
    transform: scale(1);
  }
  to {
    transform: scale(1.03);
  }
}
.game-timer-icon {
  font-size: 1.1rem;
}
.game-timer-value {
  font-size: 1.5rem;
  font-weight: 900;
}
.game-leaderboard {
  margin-top: 22px;
  text-align: left;
}
.game-lb-title {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.game-lb-body {
  max-height: 220px;
  overflow-y: auto;
}
.game-lb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.2s;
}
.game-lb-row:nth-child(-n + 3) {
  border-color: var(--glass-border);
  background: var(--glass);
}
.game-lb-pos {
  font-weight: 800;
  min-width: 28px;
}
.game-lb-avatar {
  font-size: 1.2rem;
}
.game-lb-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.82rem;
}
.game-lb-rating {
  font-weight: 900;
  color: var(--accent-light);
  font-size: 0.85rem;
}
.game-lb-stats {
  color: var(--text-muted);
  font-size: 0.72rem;
  min-width: 55px;
  text-align: right;
}
.game-empty {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
}
.game-search-anim {
  padding: 40px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.game-search-spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
.game-search-spinner.small {
  width: 22px;
  height: 22px;
  border-width: 2px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.game-search-text {
  font-size: 1.1rem;
  font-weight: 800;
}
.game-search-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.game-play-header {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 14px;
}
.game-movie-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.game-movie-poster {
  width: 140px;
  height: 210px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px #0006;
}
.game-movie-title {
  font-size: 1.05rem;
  font-weight: 800;
}
.game-inputs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.game-input-group {
  flex: 1;
  text-align: left;
}
.game-input-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.game-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}
.game-input::-webkit-outer-spin-button,
.game-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.game-input:focus {
  outline: none;
  border-color: var(--accent);
}
.game-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}
.game-result-movie {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.game-result-poster {
  width: 100px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--glass-border);
}
.game-result-title {
  font-size: 1rem;
  font-weight: 800;
}
.game-result-real {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.game-result-compare {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.game-result-col {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  text-align: center;
  font-size: 0.85rem;
}
.game-result-col-title {
  font-weight: 800;
  margin-bottom: 6px;
  font-size: 0.8rem;
}
.game-result-vs {
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.game-verdict {
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
  text-align: center;
}
.game-win {
  background: #06d6a01f;
  border: 1px solid rgba(6, 214, 160, 0.3);
  color: #06d6a0;
}
.game-lose {
  background: #ef44441f;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.game-draw {
  background: #fbbf241f;
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}
.game-result-actions {
  display: flex;
  gap: 10px;
}
.game-result-actions .game-play-btn {
  flex: 1;
}
.game-result-actions .game-cancel-btn {
  flex: 0;
  white-space: nowrap;
  margin-top: 0;
}
.game-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.game-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.25s var(--ease);
}
.game-secondary-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: #8b5cf614;
}
.game-rematch-btn {
  background: transparent !important;
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  flex: 1;
}
.game-rematch-btn:hover {
  background: #8b5cf61f !important;
}
.game-result-rating-change {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 600;
}
.game-lb-streak {
  font-size: 0.75rem;
  color: #fbbf24;
  margin-left: 4px;
}
.game-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  margin-bottom: 16px;
}
.game-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.game-history-item.game-win {
  border-left: 3px solid #06d6a0;
}
.game-history-item.game-lose {
  border-left: 3px solid #ef4444;
}
.game-history-item.game-draw {
  border-left: 3px solid #fbbf24;
}
.game-history-movie {
  font-weight: 700;
  font-size: 0.9rem;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-history-details {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.game-history-rating {
  font-weight: 800;
}
.game-history-item.game-win .game-history-rating {
  color: #06d6a0;
}
.game-history-item.game-lose .game-history-rating {
  color: #ef4444;
}
.game-history-item.game-draw .game-history-rating {
  color: #fbbf24;
}
.game-my-streak {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fbbf24;
  margin-top: 4px;
}
.game-my-total {
  font-size: 0.78rem;
  color: var(--text-muted);
}
@media (max-width: 480px) {
  .game-modal-card {
    padding: 22px 14px;
  }
  .game-inputs {
    flex-direction: column;
    gap: 10px;
  }
  .game-my-stats {
    flex-direction: column;
    gap: 8px;
  }
  .game-history-details {
    gap: 6px;
    font-size: 0.72rem;
  }
}
.donate-modal-content {
  max-width: 440px;
  text-align: center;
}
.donate-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.donate-icon {
  font-size: 2rem;
  animation: heartPulse 1.5s infinite;
}
.donate-title {
  font-size: 1.3rem;
  font-weight: 800;
}
.donate-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 20px;
}
.donate-progress-section {
  margin-bottom: 22px;
  padding: 14px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}
.donate-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.donate-progress-amount {
  color: var(--accent-light);
}
.donate-progress-bar {
  height: 8px;
  background: #ffffff0f;
  border-radius: 100px;
  overflow: hidden;
}
.donate-progress-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 100px;
  transition: width 1s var(--ease);
}
.donate-help-section {
  text-align: left;
  margin-bottom: 20px;
}
.donate-help-section h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.donate-help-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.donate-help-list li {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.donate-help-list li:last-child {
  border-bottom: none;
}
.donate-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.donate-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px #0003;
}
.donate-btn-mono:hover {
  border-color: #4dc2f7;
  background: #4dc2f714;
}
.donate-btn-coffee:hover {
  border-color: #fd0;
  background: #ffdd0014;
}
.donate-btn-patreon:hover {
  border-color: #ff424d;
  background: #ff424d14;
}
.donate-btn-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.donate-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.donate-btn-name {
  font-weight: 700;
  font-size: 0.92rem;
}
.donate-btn-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.donate-thanks {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}
.footer-donate-btn {
  cursor: pointer;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-family: var(--font);
}
.footer-donate-btn:hover {
  color: var(--accent2);
  border-color: var(--accent2);
  background: #ec48991a;
}
.footer-donate-btn svg {
  fill: currentColor;
}
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 24px 0 calc(80px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--glass-border);
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}
.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: all 0.3s var(--ease);
}
.footer-link:hover {
  color: var(--accent-light);
  border-color: var(--accent);
  background: #8b5cf61a;
}
.footer-link svg {
  opacity: 0.7;
  transition: opacity 0.3s;
}
.footer-link:hover svg {
  opacity: 1;
}
@media (max-width: 480px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 12px;
    gap: 8px;
  }
  .header-left {
    order: 1;
  }
  .header-right {
    order: 2;
  }
  .tab-switch {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .tab-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.72rem;
    padding: 7px 6px;
  }
  .lang-switch {
    gap: 2px;
  }
  .lang-btn {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  .user-btn {
    padding: 5px 8px;
    font-size: 0.72rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
.trending-scroll,
.trending-card {
  touch-action: pan-y pan-x !important;
  overscroll-behavior-x: contain;
}
.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 6px;
  vertical-align: middle;
}
.tier-free {
  background: #ffffff1a;
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.tier-premium {
  background: linear-gradient(135deg, #f5a623, #f7c948);
  color: #1a1a2e;
  border: 1px solid #f5a623;
}
.tier-pro {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: 1px solid #a855f7;
}
.tier-badge:hover {
  transform: scale(1.1);
  filter: brightness(1.15);
}
.freemium-limits-bar {
  background: #f5a6231a;
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 12px;
  padding: 8px 16px;
  margin-bottom: 16px;
  text-align: center;
}
.freemium-limits-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.freemium-limit-item {
  font-size: 0.85rem;
  color: #ddd;
}
.freemium-upgrade-btn {
  background: linear-gradient(135deg, #f5a623, #f7c948);
  color: #1a1a2e;
  border: none;
  padding: 4px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.freemium-upgrade-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.upgrade-modal-card {
  max-width: 800px;
  width: 95%;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  .upgrade-modal-card {
    max-width: 100%;
    width: 100%;
    padding: 20px 16px;
    max-height: 85vh;
    border-radius: 16px;
  }
  .plans-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .plan-card {
    padding: 16px 14px !important;
  }
  .upgrade-title {
    font-size: 1.3rem !important;
  }
}
.upgrade-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f5a623, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.plan-card {
  background: #ffffff0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}
.plan-card:hover {
  border-color: #ffffff40;
  transform: translateY(-2px);
}
.plan-popular {
  border-color: #f5a623;
}
.plan-current {
  border-color: #a855f7;
  background: #a855f70f;
}
.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translate(-50%);
  background: linear-gradient(135deg, #f5a623, #f7c948);
  color: #1a1a2e;
  padding: 2px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
}
.plan-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.plan-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.plan-price {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: #f5a623;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
}
.plan-feature-yes {
  padding: 4px 0;
  color: #6ee7b7;
  font-size: 0.85rem;
}
.plan-feature-no {
  padding: 4px 0;
  color: #666;
  font-size: 0.85rem;
  text-decoration: line-through;
}
.plan-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  transition: all 0.2s;
}
.plan-btn:hover:not(:disabled) {
  filter: brightness(1.15);
  transform: scale(1.02);
}
.plan-btn-current {
  background: #ffffff1a;
  color: #888;
  cursor: default;
}
.plan-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.sub-plans-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, #8b5cf61f, #ec489914);
  padding: 16px 20px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.3s;
}
.sub-plans-banner:hover {
  border-color: #8b5cf680;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px #8b5cf626;
}
.sub-plans-banner-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.08),
    transparent
  );
  animation: bannerShimmer 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bannerShimmer {
  0%,
  to {
    transform: translate(-100%);
  }
  50% {
    transform: translate(250%);
  }
}
.sub-plans-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.sub-plans-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sub-plans-banner-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
}
.sub-plans-banner-title {
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sub-plans-banner-desc {
  font-size: 0.78rem;
  color: #ffffff8c;
  margin-top: 2px;
}
.sub-plans-banner-btn {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  pointer-events: none;
}
.sub-plans-banner:hover .sub-plans-banner-btn {
  filter: brightness(1.15);
  transform: scale(1.03);
}
@media (max-width: 600px) {
  .sub-plans-banner-content {
    flex-direction: column;
    text-align: center;
  }
  .sub-plans-banner-left {
    flex-direction: column;
    gap: 6px;
  }
}
.profile-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.profile-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: default;
}
.profile-verified-badge svg {
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}
.profile-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  border: 1px solid #f59e0b;
  box-shadow: 0 0 12px #f59e0b4d;
}
.profile-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #8b5cf626;
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.trial-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10b98126, #3b82f626);
  border: 1px solid rgba(16, 185, 129, 0.25);
  cursor: pointer;
  transition: all 0.2s;
}
.trial-banner:hover {
  background: linear-gradient(135deg, #10b98140, #3b82f640);
  transform: translateY(-1px);
}
.trial-banner-icon {
  font-size: 2rem;
}
.trial-banner-text {
  flex: 1;
}
.trial-banner-text strong {
  display: block;
  color: #10b981;
  font-size: 0.95rem;
}
.trial-banner-text small {
  color: #ffffff80;
  font-size: 0.78rem;
}
.trial-banner-btn {
  background: linear-gradient(135deg, #10b981, #3b82f6);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}
.trial-banner.trial-used {
  background: #ffffff0a;
  border-color: #ffffff14;
  cursor: default;
  opacity: 0.7;
}
.trial-banner.trial-used:hover {
  background: #ffffff0a;
  transform: none;
}
.trial-banner.trial-used .trial-banner-text strong {
  color: #94a3b8;
}
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.role-media {
  background: linear-gradient(135deg, #06b6d42e, #3b82f61f);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 12px #06b6d42e;
}
.role-moderator {
  background: #3b82f626;
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.role-content-manager {
  background: #10b98126;
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.role-editor {
  background: #fbbf2426;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
}
.role-support {
  background: #a855f726;
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.2);
}
.role-admin {
  background: #ef444426;
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.role-superadmin {
  background: linear-gradient(135deg, #8b5cf626, #ec489926);
  color: #ec4899;
  border: 1px solid rgba(236, 72, 153, 0.2);
}
.plan-pricing-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
  width: 100%;
}
.plan-day-btn {
  background: #ffffff0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffffb3;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.plan-day-btn:hover {
  background: #8b5cf61a;
  border-color: #8b5cf64d;
}
.plan-day-btn.plan-day-active {
  background: linear-gradient(135deg, #8b5cf633, #ec489933);
  border-color: #8b5cf6;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 8px #8b5cf633;
}
.game-lobby-section {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.game-lobby-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: #8b5cf614;
  color: #a78bfa;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.game-lobby-btn:hover {
  background: #8b5cf626;
  transform: translateY(-1px);
}
.game-lobby-code-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-radius: 16px;
  background: #8b5cf614;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.game-lobby-code {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: #a78bfa;
  font-family:
    JetBrains Mono,
    Fira Code,
    monospace;
}
.game-lobby-copy-btn {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.game-join-lobby-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.game-join-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #ffffff0a;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  outline: none;
}
.game-join-input:focus {
  border-color: #8b5cf6;
}
.game-join-btn {
  background: linear-gradient(135deg, #10b981, #3b82f6);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.game-my-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}
.game-rank-progress {
  width: 120px;
  height: 6px;
  background: #ffffff14;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}
.game-rank-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px;
  background: #0a0a14f2;
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  0% {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.cookie-text {
  color: #ffffffb8;
  font-size: 0.85rem;
  line-height: 1.5;
}
.cookie-link {
  color: #a78bfa;
  text-decoration: underline;
  font-weight: 600;
}
.cookie-accept-btn {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s;
}
.cookie-accept-btn:hover {
  transform: scale(1.05);
}
.profile-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.profile-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #ffffff0a;
  color: #fffc;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.profile-tool-btn:hover {
  background: #8b5cf61a;
  border-color: #8b5cf640;
  transform: translateY(-2px);
}
.profile-tool-icon {
  font-size: 1.5rem;
}
.profile-sub-info {
  padding: 14px;
  border-radius: 14px;
  background: #8b5cf60f;
  border: 1px solid rgba(139, 92, 246, 0.12);
  color: #ffffffb3;
  font-size: 0.85rem;
  line-height: 1.6;
}
.profile-staff-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: #8b5cf614;
  color: #a78bfa;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}
.profile-staff-link:hover {
  background: #8b5cf626;
  transform: translateY(-1px);
}
.share-menu {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.share-menu-overlay {
  position: absolute;
  inset: 0;
  background: #0009;
}
.share-menu-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 24px 20px 32px;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: slideUp 0.3s ease;
}
.share-menu-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-align: center;
}
.share-menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #ffffff0a;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.share-menu-btn:hover {
  background: #8b5cf61f;
  border-color: #8b5cf640;
}
.share-menu-btn span:first-child {
  font-size: 1.3rem;
  width: 28px;
  text-align: center;
}
.profile-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 6px;
}
.hero-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 16px 28px;
  margin-bottom: 20px;
}
.hero-tagline {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero-tagline:before,
.hero-tagline:after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}
.hero-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.hero-title .hero-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 360px;
  margin: 0 auto 24px;
  line-height: 1.5;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 100px;
  background: var(--gradient-main);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 24px var(--accent-glow);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.hero-cta:active {
  transform: translateY(0);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}
.hero-stat {
  text-align: center;
}
.hero-stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (min-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
}
.live-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-radius: var(--radius-md);
  background: #ffffff08;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #06d6a0;
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0%,
  to {
    opacity: 1;
    box-shadow: 0 0 #06d6a066;
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 4px #06d6a000;
  }
}
.live-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}
.live-recent,
.live-popular {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ai-mood-picker {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ai-mood-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-mood-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ai-mood-option {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: #ffffff0a;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.ai-mood-option:hover {
  background: #8b5cf61a;
  border-color: var(--accent);
  color: var(--accent-light);
}
.ai-mood-option.active {
  background: #8b5cf626;
  border-color: var(--accent);
  color: var(--accent-light);
}
.auth-benefits {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.auth-benefits-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 12px;
  text-align: center;
}
.auth-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.auth-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #ffffff08;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.auth-benefit-icon {
  font-size: 1rem;
  flex-shrink: 0;
}
.brand-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px;
  margin-top: 16px;
  margin-bottom: -80px;
}
.brand-mascot {
  font-size: 2.5rem;
  margin-bottom: 8px;
  display: block;
  animation: mascotBounce 3s infinite ease-in-out;
}
@keyframes mascotBounce {
  0%,
  to {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.brand-quote {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 4px;
}
.brand-signature {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.pick-btn {
  box-shadow: 0 4px 24px var(--accent-glow);
}
.pick-btn:hover {
  box-shadow: 0 8px 40px var(--accent-glow);
}
.trending-section {
  margin-bottom: 12px;
}
.section-header {
  margin-bottom: 10px;
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-stats {
    gap: 16px;
  }
  .hero-cta {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  .live-bar {
    gap: 10px;
    font-size: 0.72rem;
  }
  .auth-benefits-grid {
    grid-template-columns: 1fr;
  }
}
@keyframes skeletonPulse {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
  to {
    opacity: 0.4;
  }
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--glass) 25%,
    var(--glass-deep) 50%,
    var(--glass) 75%
  );
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: 12px;
}
.skeleton-poster {
  width: 200px;
  height: 300px;
  border-radius: 16px;
}
.skeleton-title {
  width: 60%;
  height: 28px;
  margin-bottom: 12px;
}
.skeleton-text {
  width: 90%;
  height: 16px;
  margin-bottom: 8px;
}
.skeleton-text-short {
  width: 40%;
  height: 16px;
}
.skeleton-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.skeleton-card .skeleton-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}
.error-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}
.error-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.6;
}
.error-state-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.error-state-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.error-state-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.error-state-btn:hover {
  background: var(--glass-deep);
  border-color: var(--accent);
}
.kbd-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%);
  background: var(--glass-deep);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px 20px;
  color: var(--text-dim);
  font-size: 0.8rem;
  display: flex;
  gap: 16px;
  z-index: 100;
  backdrop-filter: blur(20px);
  transition: opacity 0.3s;
  pointer-events: none;
}
.kbd-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: #ffffff1a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--text);
  margin-right: 4px;
}
.daily-pick-card {
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.daily-pick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #8b5cf633;
}

/* ─── Detail Page Modal ─── */
.detail-modal-content {
  max-width: 720px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  border-radius: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}
.detail-modal-content::-webkit-scrollbar {
  width: 6px;
}
.detail-modal-content::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 3px;
}
.detail-modal-content .modal-close {
  position: sticky;
  top: 12px;
  right: 12px;
  z-index: 10;
  float: right;
  margin: 12px 12px 0 0;
}
.detail-page {
  padding: 0 0 24px 0;
}
.detail-backdrop {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 24px 24px 0 0;
  display: block;
}
.detail-backdrop-placeholder {
  width: 100%;
  height: 120px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2),
    rgba(236, 72, 153, 0.1)
  );
  border-radius: 24px 24px 0 0;
}
.detail-main {
  display: flex;
  gap: 20px;
  padding: 0 24px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}
.detail-poster {
  width: 140px;
  min-width: 140px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  aspect-ratio: 2/3;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}
.detail-header {
  flex: 1;
  padding-top: 64px;
}
.detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.3;
}
.detail-tagline {
  color: #94a3b8;
  font-size: 0.88rem;
  font-style: italic;
  margin-bottom: 8px;
}
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
}
.detail-badge-rating {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
}
.detail-badge-year {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}
.detail-badge-runtime {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}
.detail-badge-budget {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}
.detail-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  padding: 0 24px;
}
.detail-genre-tag {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.15);
}
.detail-overview {
  padding: 0 24px;
  margin-bottom: 20px;
}
.detail-overview p {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.7;
}
.detail-section {
  padding: 0 24px;
  margin-bottom: 20px;
}
.detail-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-directors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 24px;
}
.detail-director-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(236, 72, 153, 0.1);
  color: #f472b6;
  font-size: 0.82rem;
  font-weight: 600;
}
.detail-cast-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.2) transparent;
  -webkit-overflow-scrolling: touch;
}
.detail-cast-scroll::-webkit-scrollbar {
  height: 4px;
}
.detail-cast-scroll::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.2);
  border-radius: 2px;
}
.detail-cast-card {
  flex: 0 0 100px;
  text-align: center;
}
.detail-cast-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(139, 92, 246, 0.2);
}
.detail-cast-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail-cast-character {
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail-trailer-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.detail-trailer-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.detail-similar-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.2) transparent;
  -webkit-overflow-scrolling: touch;
}
.detail-similar-scroll::-webkit-scrollbar {
  height: 4px;
}
.detail-similar-scroll::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.2);
  border-radius: 2px;
}
.detail-similar-card {
  flex: 0 0 120px;
  cursor: pointer;
  transition: transform 0.2s;
}
.detail-similar-card:hover {
  transform: translateY(-4px);
}
.detail-similar-poster {
  width: 120px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}
.detail-similar-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 6px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail-similar-rating {
  font-size: 0.68rem;
  color: #facc15;
  margin-top: 2px;
}
.detail-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.detail-review-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.1);
}
.detail-review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.detail-review-avatar {
  font-size: 1.4rem;
}
.detail-review-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: #e2e8f0;
}
.detail-review-date {
  font-size: 0.72rem;
  color: #64748b;
  margin-left: auto;
}
.detail-review-rating {
  color: #facc15;
  font-size: 0.78rem;
  font-weight: 600;
}
.detail-review-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail-review-text.expanded {
  -webkit-line-clamp: unset;
  display: block;
}
.detail-review-expand {
  background: none;
  border: none;
  color: #a78bfa;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 4px;
  font-family: inherit;
}
.detail-community-section {
  padding: 0 24px;
  margin-bottom: 20px;
}
.detail-community-rating {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
}
.detail-community-score {
  font-size: 2rem;
  font-weight: 800;
  color: #a78bfa;
}
.detail-community-info {
  flex: 1;
}
.detail-community-label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 4px;
}
.detail-community-count {
  font-size: 0.78rem;
  color: #64748b;
}
.detail-community-stars {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.detail-community-star {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.2);
  background: transparent;
  color: #94a3b8;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-community-star:hover,
.detail-community-star.active {
  background: rgba(139, 92, 246, 0.2);
  color: #facc15;
  border-color: #a78bfa;
}
.detail-review-form {
  margin-top: 16px;
}
.detail-review-textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.15);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 60px;
  outline: none;
  transition: border-color 0.2s;
}
.detail-review-textarea:focus {
  border-color: #8b5cf6;
}
.detail-review-submit {
  margin-top: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.detail-review-submit:hover {
  transform: translateY(-1px);
}
.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 24px;
  margin-bottom: 16px;
}
.detail-meta-item {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.detail-meta-label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.detail-meta-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}
.detail-actions {
  display: flex;
  gap: 8px;
  padding: 0 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.detail-action-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.detail-action-primary {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  border: none;
}
.detail-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}
.detail-action-secondary {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.detail-action-secondary:hover {
  background: rgba(139, 92, 246, 0.2);
}
.skeleton-poster-detail {
  width: 140px;
  height: 210px;
  border-radius: 16px;
}
.detail-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 24px;
  margin-bottom: 12px;
}
.detail-info-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  color: #94a3b8;
}

@media (max-width: 540px) {
  .detail-modal-content {
    width: 100vw;
    max-width: 100vw;
    border-radius: 20px 20px 0 0;
    max-height: 95vh;
  }
  .detail-main {
    flex-direction: column;
    align-items: center;
    margin-top: -40px;
    padding: 0 16px;
  }
  .detail-poster {
    width: 160px;
  }
  .detail-header {
    padding-top: 16px;
    text-align: center;
  }
  .detail-badges {
    justify-content: center;
  }
  .detail-title {
    font-size: 1.3rem;
  }
  .detail-genres,
  .detail-overview,
  .detail-section,
  .detail-directors,
  .detail-meta-grid,
  .detail-actions,
  .detail-community-section,
  .detail-info-row {
    padding: 0 16px;
  }
}

/* ─── Mood AI Input ─── */
.mood-ai-input-wrap {
  margin-top: 16px;
  padding: 0 4px;
}
.mood-ai-label {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mood-ai-row {
  display: flex;
  gap: 8px;
}
.mood-ai-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.15);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}
.mood-ai-input:focus {
  border-color: #8b5cf6;
}
.mood-ai-input::placeholder {
  color: #64748b;
}
.mood-ai-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.mood-ai-btn:hover {
  transform: translateY(-1px);
}
.mood-ai-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.12);
  display: none;
}
.mood-ai-result.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}
.mood-ai-result-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 4px;
}
.mood-ai-result-desc {
  font-size: 0.82rem;
  color: #94a3b8;
}
.mood-ai-result-apply {
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.2);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.mood-ai-result-apply:hover {
  background: rgba(139, 92, 246, 0.25);
}

/* ─── Detail page link on result card ─── */
.result-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.15);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.result-detail-link:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-1px);
}

/* Make saved item posters/titles clickable */
.saved-item-poster,
.saved-item-title {
  cursor: pointer;
  transition: opacity 0.2s;
}
.saved-item-poster:hover {
  opacity: 0.8;
}
.saved-item-title:hover {
  color: #a78bfa;
}

/* ─── TV Show Status & Seasons Progress ─── */
.detail-tv-status-section {
  margin: 16px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.detail-tv-status-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.detail-tv-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.detail-status-ongoing {
  background: linear-gradient(
    135deg,
    rgba(6, 214, 160, 0.2),
    rgba(59, 130, 246, 0.2)
  );
  color: #06d6a0;
  border: 1px solid rgba(6, 214, 160, 0.3);
}
.detail-status-ended {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.detail-tv-stat {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}
.detail-seasons-progress {
  margin-top: 8px;
}
.detail-seasons-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.detail-seasons-bar-wrap {
  display: flex;
  width: 100%;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  gap: 2px;
}
.detail-season-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  transition: opacity 0.2s;
}
.detail-season-seg:hover {
  opacity: 0.85;
}
.detail-season-seg-aired {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: #fff;
}
.detail-season-seg-upcoming {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}
.detail-season-seg-label {
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}
.detail-seasons-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.detail-season-legend-item {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}
.detail-season-legend-item strong {
  color: var(--text);
}
.duo-section {
  margin: 16px 0 8px;
  padding: 16px;
  display: flex;
  justify-content: center;
  background: rgba(249, 115, 22, 0.03);
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: var(--radius-lg, 18px);
}
.duo-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-family: var(--font);
  color: var(--text);
  transition: all 0.3s var(--ease);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}
.duo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.18);
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
}
.duo-btn:active {
  transform: translateY(0);
}
.duo-btn-icon {
  font-size: 1.15rem;
}
.duo-btn-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}
.duo-btn-badge {
  background: var(--gradient-main);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.duo-modal-content {
  max-width: 460px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 22px;
}
.duo-header {
  text-align: center;
  margin-bottom: 24px;
}
.duo-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.duo-header p {
  color: var(--text-dim);
  font-size: 0.88rem;
}
.duo-lobby {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.duo-user-info {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  text-align: center;
}
.duo-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 13px 16px;
  outline: none;
  transition: all 0.3s var(--ease);
}
.duo-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.duo-input::placeholder {
  color: var(--text-muted);
}
.duo-actions {
  display: flex;
  gap: 10px;
}
.duo-actions .duo-action-btn {
  flex: 1;
}
.duo-action-btn {
  padding: 13px 18px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.duo-action-btn.primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.duo-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.duo-action-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.duo-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--glass-border-hover);
}
.duo-or {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 0;
}
.duo-join-row {
  display: flex;
  gap: 10px;
}
.duo-join-row .duo-input {
  flex: 1;
}
.duo-join-row .duo-action-btn {
  flex-shrink: 0;
  width: auto;
  padding: 13px 20px;
}
.duo-code-display {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px dashed var(--glass-border);
}
.duo-code-display p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.duo-code-value {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.35em;
  font-family: "Courier New", monospace;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  transition: transform 0.2s;
}
.duo-code-value:hover {
  transform: scale(1.05);
}
.duo-code-value:active {
  transform: scale(0.97);
}
.duo-status {
  text-align: center;
  margin-top: 16px;
}
.duo-status-text {
  color: var(--text-dim);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.duo-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: duoSpin 0.8s linear infinite;
  display: inline-block;
}
@keyframes duoSpin {
  to {
    transform: rotate(360deg);
  }
}
.duo-prefs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.duo-prefs-title {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}
.duo-genre-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.duo-genre-chip {
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.duo-genre-chip:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent);
  color: var(--accent-light);
}
.duo-genre-chip.selected {
  background: var(--gradient-main);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 12px var(--accent-glow);
}
.duo-result {
  text-align: center;
}
.duo-result-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.duo-movie-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--glass-border);
  margin-bottom: 16px;
}
.duo-movie-poster {
  width: 140px;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 14px;
  display: block;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
.duo-movie-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.duo-movie-year {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.duo-movie-overview {
  color: var(--text-dim);
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 14px;
  text-align: left;
}
.duo-match-bar {
  margin: 14px 0;
}
.duo-match-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.duo-match-label span:last-child {
  color: var(--accent-light);
}
.duo-match-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
}
.duo-match-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--gradient-main);
  transition: width 1s var(--spring);
}
.duo-reasoning {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
  text-align: left;
}
.duo-reasoning p {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
}
.duo-reasoning strong {
  color: var(--accent-light);
  font-weight: 700;
}
.duo-result-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}
.duo-partner-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: rgba(6, 214, 160, 0.08);
  border: 1px solid rgba(6, 214, 160, 0.18);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  color: var(--accent3);
  font-weight: 600;
  font-size: 0.9rem;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}
.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  margin-bottom: 12px;
}
.auth-google-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.auth-google-btn:active {
  transform: translateY(0);
}

/* ===== ENHANCED DESIGN v2 ===== */

/* --- Google Button Container --- */
#google-btn-container {
  width: 100%;
  min-height: 44px;
  border-radius: 14px !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.3s var(--ease);
  margin-bottom: 8px;
}
#google-btn-container:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
#google-btn-container iframe {
  border-radius: 12px !important;
}

/* --- Auth Modal Enhanced --- */
.auth-modal-content {
  padding: 36px 28px 28px !important;
  max-width: 400px !important;
  border: 1px solid rgba(139, 92, 246, 0.15) !important;
  background: rgba(10, 10, 30, 0.92) !important;
  backdrop-filter: blur(24px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.4) !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(139, 92, 246, 0.08) !important;
}
.auth-title {
  font-size: 1.5rem !important;
  margin-bottom: 28px !important;
  letter-spacing: -0.02em;
}
.auth-submit {
  padding: 16px !important;
  border-radius: 14px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 24px var(--accent-glow) !important;
  text-transform: none;
}
.auth-submit:hover {
  box-shadow: 0 8px 32px var(--accent-glow) !important;
  transform: translateY(-2px) !important;
}
.auth-field label {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}
.auth-form .glass-input {
  padding: 14px 16px !important;
  border-radius: 12px !important;
  font-size: 0.92rem !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s var(--ease) !important;
}
.auth-form .glass-input:focus {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: var(--accent) !important;
  box-shadow:
    0 0 0 3px rgba(139, 92, 246, 0.2),
    0 4px 16px rgba(139, 92, 246, 0.1) !important;
}
.auth-benefits {
  margin-top: 24px !important;
  padding-top: 20px !important;
}
.auth-benefit {
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  transition: all 0.25s var(--ease);
}
.auth-benefit:hover {
  background: rgba(139, 92, 246, 0.08) !important;
  border-color: rgba(139, 92, 246, 0.15) !important;
  transform: translateY(-1px);
}
.auth-divider {
  margin: 20px 0 !important;
}

/* Custom Google button enhanced + animated */
@keyframes googleBtnShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
@keyframes googleBtnGlow {
  0%,
  100% {
    box-shadow:
      0 0 8px rgba(66, 133, 244, 0.15),
      0 0 0 0 rgba(66, 133, 244, 0);
  }
  50% {
    box-shadow:
      0 0 18px rgba(66, 133, 244, 0.25),
      0 0 40px rgba(139, 92, 246, 0.08);
  }
}
@keyframes googleIconSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.auth-google-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 14px 20px !important;
  border: 1px solid rgba(66, 133, 244, 0.25) !important;
  border-radius: 14px !important;
  background: linear-gradient(
    135deg,
    rgba(66, 133, 244, 0.1),
    rgba(234, 67, 53, 0.06),
    rgba(251, 188, 5, 0.06),
    rgba(52, 168, 83, 0.1)
  ) !important;
  color: var(--text) !important;
  font-family: var(--font) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.4s var(--ease) !important;
  margin-bottom: 8px !important;
  position: relative;
  overflow: hidden;
  animation: googleBtnGlow 3s ease-in-out infinite !important;
}
.auth-google-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: googleBtnShimmer 3s ease-in-out infinite;
}
.auth-google-btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(66, 133, 244, 0.3),
    rgba(234, 67, 53, 0.2),
    rgba(251, 188, 5, 0.2),
    rgba(52, 168, 83, 0.3)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.auth-google-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(66, 133, 244, 0.18),
    rgba(234, 67, 53, 0.1),
    rgba(251, 188, 5, 0.1),
    rgba(52, 168, 83, 0.18)
  ) !important;
  border-color: rgba(66, 133, 244, 0.4) !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow:
    0 8px 32px rgba(66, 133, 244, 0.2),
    0 0 0 1px rgba(66, 133, 244, 0.2),
    0 0 60px rgba(66, 133, 244, 0.06) !important;
  animation: none !important;
}
.auth-google-btn:hover::after {
  opacity: 1;
}
.auth-google-btn:hover svg {
  animation: googleIconSpin 0.6s var(--ease);
}
.auth-google-btn:active {
  transform: translateY(0) scale(0.98) !important;
  transition: transform 0.1s !important;
}
.auth-google-btn svg {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.auth-google-btn span {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* --- Profile Modal Enhanced --- */
.profile-modal-content {
  width: min(94vw, 460px) !important;
  padding: 0 !important;
  overflow: visible !important;
  overflow-y: auto !important;
  max-height: 90vh !important;
  border: 1px solid rgba(139, 92, 246, 0.12) !important;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(139, 92, 246, 0.06) !important;
}
.profile-head {
  position: relative;
  padding: 32px 24px 20px !important;
  margin-bottom: 0 !important;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(236, 72, 153, 0.1) 50%,
    rgba(6, 214, 160, 0.08) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.profile-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background:
    radial-gradient(
      ellipse at 30% 0%,
      rgba(139, 92, 246, 0.2) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 70% 100%,
      rgba(236, 72, 153, 0.15) 0%,
      transparent 60%
    );
  pointer-events: none;
}
.profile-avatar {
  width: 68px !important;
  height: 68px !important;
  border-radius: 20px !important;
  font-size: 32px !important;
  box-shadow:
    0 12px 36px rgba(139, 92, 246, 0.35),
    0 0 0 3px rgba(255, 255, 255, 0.1) !important;
  position: relative;
  z-index: 1;
}
.profile-title {
  font-size: 1.4rem !important;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.profile-email {
  position: relative;
  z-index: 1;
}
.tier-badge {
  position: relative;
  z-index: 1;
}
.profile-level {
  margin: 0 !important;
  padding: 16px 24px !important;
  border-radius: 0 !important;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.08),
    rgba(236, 72, 153, 0.05)
  ) !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.profile-level-badge {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
  font-size: 1.3rem !important;
  box-shadow:
    0 8px 24px var(--accent-glow),
    0 0 0 2px rgba(255, 255, 255, 0.1) !important;
}
.profile-progress-track {
  height: 10px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
.profile-progress-fill {
  height: 100% !important;
  border-radius: 999px !important;
  box-shadow:
    0 0 16px var(--accent-glow),
    0 0 4px var(--accent) !important;
}

/* Profile body area */
.profile-username-section,
.profile-edit-grid,
.profile-tabs,
.profile-panel,
.profile-section {
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.profile-tabs {
  margin: 16px 24px !important;
  padding: 5px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
.profile-tab-btn {
  padding: 12px 14px !important;
  border-radius: 12px !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
}
.profile-tab-btn.active {
  box-shadow: 0 6px 20px var(--accent-glow) !important;
}

/* Enhanced stat cards */
.profile-stat {
  padding: 18px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  transition: all 0.3s var(--ease) !important;
  position: relative;
  overflow: hidden;
}
.profile-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(236, 72, 153, 0.08)
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.profile-stat:hover {
  border-color: rgba(139, 92, 246, 0.2) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.profile-stat:hover::before {
  opacity: 1;
}
.profile-stat-icon {
  font-size: 28px !important;
  margin-bottom: 10px !important;
  position: relative;
  z-index: 1;
}
.profile-stat b {
  font-size: 1.6rem !important;
  position: relative;
  z-index: 1;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.profile-stat small {
  position: relative;
  z-index: 1;
  font-size: 0.8rem !important;
}

/* Saved line */
.profile-saved-line {
  margin: 16px 24px !important;
  padding: 16px !important;
  border-radius: 14px !important;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.06),
    rgba(236, 72, 153, 0.04)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Tools grid */
.profile-tool-btn {
  padding: 16px 8px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  transition: all 0.3s var(--ease) !important;
}
.profile-tool-btn:hover {
  background: rgba(139, 92, 246, 0.12) !important;
  border-color: rgba(139, 92, 246, 0.25) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15) !important;
}
.profile-tool-icon {
  font-size: 1.6rem !important;
}

/* Logout button */
.profile-logout-btn {
  margin: 20px 24px !important;
  width: calc(100% - 48px) !important;
  padding: 16px !important;
  border-radius: 14px !important;
  font-size: 0.95rem !important;
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.85),
    rgba(236, 72, 153, 0.85)
  ) !important;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2) !important;
  transition: all 0.3s var(--ease) !important;
}
.profile-logout-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.3) !important;
}

/* Achievement cards */
.achievement-item {
  padding: 14px 8px !important;
  border-radius: 14px !important;
  transition: all 0.3s var(--ease) !important;
}
.achievement-item.earned {
  background: rgba(139, 92, 246, 0.1) !important;
  border-color: rgba(139, 92, 246, 0.2) !important;
}
.achievement-item.earned:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.15);
}

/* --- Overall Design Enhancements --- */

/* Enhanced hero section */
.hero-section h1 {
  letter-spacing: -0.03em;
  line-height: 1.15 !important;
}

/* Better glass effects globally */
.glass-deep {
  background: rgba(12, 12, 30, 0.75) !important;
  backdrop-filter: blur(20px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset !important;
}
.glass-deep:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Enhanced AI section */
.ai-section {
  border-radius: 22px !important;
  padding: 22px !important;
}
.ai-section::before {
  border-radius: 22px !important;
  opacity: 0.1 !important;
}
.ai-input {
  border-radius: 16px !important;
  padding: 16px 52px 16px 18px !important;
  font-size: 0.9rem !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
.ai-input:focus {
  background: rgba(255, 255, 255, 0.09) !important;
  box-shadow:
    0 0 0 3px rgba(139, 92, 246, 0.2),
    0 4px 20px rgba(139, 92, 246, 0.1) !important;
}
.ai-search-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px var(--accent-glow) !important;
}
.ai-chip {
  padding: 8px 14px !important;
  border-radius: 100px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.25s var(--ease) !important;
}
.ai-chip:hover {
  background: rgba(139, 92, 246, 0.15) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15) !important;
}

/* Enhanced mood buttons */
.mood-btn {
  padding: 11px 18px !important;
  border-radius: 100px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.mood-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}
.mood-btn.active {
  box-shadow: 0 6px 24px var(--accent-glow) !important;
}

/* Enhanced result card */
.result-card {
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  overflow: hidden !important;
  transition: all 0.3s var(--ease);
}
.result-card:hover {
  border-color: rgba(139, 92, 246, 0.15) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3) !important;
}
.result-card-inner {
  padding: 22px !important;
  background: rgba(6, 6, 20, 0.75) !important;
}

/* Enhanced buttons globally */
.btn-primary {
  border-radius: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease) !important;
}
.btn-primary:hover {
  transform: translateY(-2px) !important;
}

/* FAB enhancements */
.fab-container .fab-main {
  box-shadow:
    0 8px 32px var(--accent-glow),
    0 0 0 2px rgba(255, 255, 255, 0.08) !important;
}
.fab-item {
  border-radius: 14px !important;
  transition: all 0.25s var(--ease) !important;
}
.fab-item:hover {
  transform: translateX(-4px) !important;
}

/* Enhanced section titles */
.section-title {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

/* Trending cards polish */
.trending-card {
  border-radius: 16px !important;
  overflow: hidden !important;
  transition: all 0.3s var(--ease) !important;
}
.trending-card:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4) !important;
}

/* Glass input polish */
.glass-input {
  border-radius: 12px !important;
  transition: all 0.3s var(--ease) !important;
}

/* Glass select polish */
.glass-select {
  border-radius: 12px !important;
}

/* Modal overlay enhance */
.modal-overlay {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* Smooth page transitions */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-section,
.ai-section,
.mood-section,
.filter-section,
.result-section {
  animation: fadeSlideUp 0.5s var(--ease) both;
}
.mood-section {
  animation-delay: 0.05s;
}
.filter-section {
  animation-delay: 0.1s;
}
.ai-section {
  animation-delay: 0.15s;
}

/* History items polish */
.profile-history-item {
  border-radius: 14px !important;
  padding: 10px !important;
  transition: all 0.25s var(--ease) !important;
}
.profile-history-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(139, 92, 246, 0.15) !important;
  transform: translateX(2px);
}

/* Share menu polish */
.share-menu-content {
  border-radius: 20px !important;
  padding: 20px !important;
}
.share-menu-btn {
  border-radius: 14px !important;
  transition: all 0.25s var(--ease) !important;
}
.share-menu-btn:hover {
  transform: translateX(4px) !important;
}

/* Streak badge polish */
.profile-streak {
  border-radius: 24px !important;
  padding: 8px 16px !important;
  backdrop-filter: blur(8px);
}

/* Scrollbar styling for all scrollable areas */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.25);
  border-radius: 99px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.4);
}

/* Selection color */
::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}

/* Profile section titles */
.profile-section-title {
  font-size: 1rem !important;
  font-weight: 800 !important;
  margin-bottom: 12px !important;
  letter-spacing: -0.01em;
}

/* Profile username styling */
.profile-username-save {
  border-radius: 12px !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  transition: all 0.25s var(--ease) !important;
}
.profile-username-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* Profile share button */
.profile-share-btn {
  border-radius: 12px !important;
  padding: 10px 16px !important;
  transition: all 0.25s var(--ease) !important;
}
.profile-share-btn:hover {
  background: rgba(139, 92, 246, 0.12) !important;
  border-color: rgba(139, 92, 246, 0.25) !important;
  transform: translateY(-1px);
}

/* Subscription info */
.profile-sub-info {
  border-radius: 16px !important;
  padding: 16px !important;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.08),
    rgba(236, 72, 153, 0.05)
  ) !important;
  border: 1px solid rgba(139, 92, 246, 0.1) !important;
}

/* Daily pick card */
.daily-pick-card {
  border-radius: 20px !important;
  transition: all 0.3s var(--ease) !important;
}
.daily-pick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

/* Duo modal */
.duo-modal-content {
  border-radius: 24px !important;
  overflow: hidden !important;
}

/* Rating modal */
.rating-modal-content {
  border-radius: 22px !important;
}

/* Tooltip-like hover effect for interactive elements */
button,
a,
.mood-btn,
.ai-chip,
.trending-card {
  -webkit-tap-highlight-color: transparent;
}

/* Profile modal close button positioning fix */
.profile-modal-content .modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 10 !important;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.25s var(--ease);
}
.profile-modal-content .modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  transform: rotate(90deg) scale(1.1);
}

/* Google login: show only one designed button, keep official Google iframe invisible for real sign-in click */
.google-login-wrap {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  margin-bottom: 8px !important;
}
.google-login-wrap .auth-google-btn {
  margin-bottom: 0 !important;
  pointer-events: none !important;
}
#google-btn-container {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 52px !important;
  opacity: 0.01 !important;
  z-index: 5 !important;
  overflow: hidden !important;
  cursor: pointer !important;
}
#google-btn-container > div,
#google-btn-container iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 52px !important;
}

/* Mobile header menu fix */
@media (max-width: 768px) {
  .top-menu,
  .categories-menu,
  .nav-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .top-menu::-webkit-scrollbar,
  .categories-menu::-webkit-scrollbar,
  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .top-menu a,
  .categories-menu a,
  .nav-tabs a {
    flex-shrink: 0;
  }
}

/* Old conflicting mobile trending rules removed — consolidated in TRENDING FIX section below */
/* ===== TRENDING FIX: PC + TABLET + MOBILE ===== */

/* Базово для всіх екранів */
.trending-section {
  width: 100% !important;
  overflow: visible !important;
}

.trending-scroll {
  display: flex !important;
  gap: 18px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  padding: 4px 0 14px !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.trending-scroll::-webkit-scrollbar {
  height: 6px;
}

.trending-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 20px;
}

.trending-card {
  flex: 0 0 180px !important;
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  overflow: visible !important;
}

.trending-card img,
.trending-card .trending-poster {
  width: 100% !important;
  height: 270px !important;
  object-fit: cover !important;
  border-radius: 18px !important;
  display: block !important;
}

.trending-card .trending-name,
.trending-card-title,
.trending-title {
  display: block !important;
  width: 100% !important;
  margin-top: 10px !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.trending-card .trending-meta,
.trending-card-meta {
  display: block !important;
  width: 100% !important;
  margin-top: 4px !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  color: var(--text-dim) !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

/* ПК */
@media (min-width: 1024px) {
  .trending-scroll {
    gap: 20px !important;
  }

  .trending-card {
    flex-basis: 190px !important;
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
  }

  .trending-card img,
  .trending-card .trending-poster {
    height: 285px !important;
  }

  .trending-card .trending-name,
  .trending-card-title,
  .trending-title {
    font-size: 16px !important;
  }

  .trending-card .trending-meta,
  .trending-card-meta {
    font-size: 14px !important;
  }
}

/* Широкий ПК */
@media (min-width: 1400px) {
  .trending-card {
    flex-basis: 205px !important;
    width: 205px !important;
    min-width: 205px !important;
    max-width: 205px !important;
  }

  .trending-card img,
  .trending-card .trending-poster {
    height: 308px !important;
  }
}

/* Планшет */
@media (min-width: 769px) and (max-width: 1023px) {
  .trending-card {
    flex-basis: 170px !important;
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
  }

  .trending-card img,
  .trending-card .trending-poster {
    height: 255px !important;
  }
}

/* Мобільний */
@media (max-width: 768px) {
  .trending-scroll {
    gap: 14px !important;
    padding-left: 0 !important;
    padding-right: 12px !important;
  }

  .trending-card {
    flex-basis: 150px !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
  }

  .trending-card img,
  .trending-card .trending-poster {
    height: 225px !important;
  }

  .trending-card .trending-name,
  .trending-card-title,
  .trending-title {
    font-size: 13px !important;
  }

  .trending-card .trending-meta,
  .trending-card-meta {
    font-size: 12px !important;
  }
}

/* ===== DESIGN IMPROVEMENTS v3 ===== */

/* Hero section enhancements */
.hero-section {
  padding-top: 20px !important;
  padding-bottom: 28px !important;
}
.hero-title {
  letter-spacing: -0.03em !important;
}
.hero-gradient {
  background: var(--gradient-main) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Hero CTA button pulse */
@keyframes ctaPulse {
  0%,
  100% {
    box-shadow: 0 4px 20px var(--accent-glow);
  }
  50% {
    box-shadow:
      0 6px 32px var(--accent-glow),
      0 0 60px rgba(139, 92, 246, 0.12);
  }
}
.hero-cta {
  animation: ctaPulse 2.5s ease-in-out infinite !important;
}
.hero-cta:hover {
  animation: none !important;
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 8px 40px var(--accent-glow) !important;
}

/* Trending card hover glow */
.trending-card {
  transition: all 0.3s var(--ease) !important;
  border-radius: 18px !important;
}
.trending-card:hover {
  transform: translateY(-6px) scale(1.03) !important;
  filter: brightness(1.05);
}
.trending-card:hover .trending-poster {
  box-shadow:
    0 12px 40px rgba(139, 92, 246, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

/* Improved mood buttons */
.mood-btn {
  transition: all 0.3s var(--spring) !important;
}

/* Better pick button */
.pick-btn {
  transition: all 0.35s var(--spring) !important;
}
.pick-btn:hover {
  transform: translateY(-3px) scale(1.03) !important;
}

/* Lucky button shimmer */
@keyframes luckyShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
.lucky-btn {
  position: relative !important;
  overflow: hidden !important;
}
.lucky-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 40%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: luckyShimmer 4s ease-in-out infinite;
}

/* Saved section improvements */
.saved-section {
  transition: all 0.3s var(--ease) !important;
  background: rgba(139, 92, 246, 0.03) !important;
  border: 1px solid rgba(139, 92, 246, 0.12) !important;
  border-radius: var(--radius-lg, 18px) !important;
  margin-bottom: 16px !important;
}
.saved-section:hover {
  border-color: rgba(139, 92, 246, 0.25) !important;
  background: rgba(139, 92, 246, 0.06) !important;
}

/* Live bar pulse */
.live-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #06d6a0 !important;
  display: inline-block !important;
  animation: livePulse 2s ease-in-out infinite !important;
}
@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.4);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(6, 214, 160, 0);
  }
}

/* Cookie consent improvements */
.cookie-consent {
  border-top: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* Footer enhancements */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
}
.footer-brand {
  opacity: 0.6;
  transition: opacity 0.3s;
}
.footer-brand:hover {
  opacity: 1;
}

/* Better focus states for accessibility */
.tab-btn:focus-visible,
.mood-btn:focus-visible,
.pick-btn:focus-visible,
.ai-chip:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}

/* Smooth page load animation */
@keyframes pageLoad {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.main-content > section,
.main-content > .pick-section,
.main-content > .live-bar {
  animation: pageLoad 0.5s var(--ease) both;
}
.main-content > :nth-child(2) {
  animation-delay: 0.05s;
}
.main-content > :nth-child(3) {
  animation-delay: 0.1s;
}
.main-content > :nth-child(4) {
  animation-delay: 0.15s;
}
.main-content > :nth-child(5) {
  animation-delay: 0.2s;
}
.main-content > :nth-child(6) {
  animation-delay: 0.25s;
}
.main-content > :nth-child(7) {
  animation-delay: 0.3s;
}

/* Mobile header improvements */
@media (max-width: 480px) {
  .header {
    padding: 10px 12px !important;
    gap: 6px !important;
  }
  .tab-btn {
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
  }
  .logo {
    font-size: 1rem !important;
  }
  .user-btn {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
  }
  .user-name {
    max-width: 50px !important;
  }
  .lang-switch {
    gap: 1px !important;
    padding: 1px !important;
  }
  .lang-btn {
    font-size: 0.6rem !important;
    padding: 3px 5px !important;
  }
}

/* Result card poster shadow */
.result-poster {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.3s var(--ease) !important;
}
.result-poster:hover {
  transform: scale(1.02) !important;
}

/* Action buttons hover state */
.action-btn {
  transition: all 0.25s var(--ease) !important;
}
.action-btn:hover {
  transform: translateY(-2px) !important;
  background: rgba(139, 92, 246, 0.12) !important;
  color: var(--accent-light) !important;
}

/* Brand footer */
.brand-footer {
  text-align: center !important;
  padding: 32px 16px !important;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.brand-footer:hover {
  opacity: 1;
}
.brand-mascot {
  font-size: 2rem !important;
  display: block !important;
  margin-bottom: 8px !important;
}

/* Donate button glow */
.footer-donate-btn {
  transition: all 0.3s var(--ease) !important;
}
.footer-donate-btn:hover {
  color: #ec4899 !important;
  text-shadow: 0 0 12px rgba(236, 72, 153, 0.3) !important;
}

/* ===== DESIGN IMPROVEMENTS v4 — additional enhancements ===== */

/* --- Animated gradient border on hero CTA --- */
.hero-cta {
  position: relative !important;
  z-index: 1;
  isolation: isolate;
}
.hero-cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    #8b5cf6,
    #ec4899,
    #06d6a0,
    #3b82f6,
    #8b5cf6
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  filter: blur(6px);
}
.hero-cta:hover::before {
  opacity: 0.6;
}

/* --- Tab switch: animated underline indicator --- */
.tab-switch {
  position: relative !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 100px !important;
  padding: 4px !important;
}
.tab-btn {
  position: relative !important;
  z-index: 1;
  border-radius: 100px !important;
  transition: all 0.3s var(--ease) !important;
}
.tab-btn.active {
  background: var(--gradient-main) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px var(--accent-glow) !important;
}

/* --- AI section: floating badge animation --- */
@keyframes aiBadgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
.ai-badge {
  animation: aiBadgeFloat 3s ease-in-out infinite !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 6px 14px !important;
  border-radius: 100px !important;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2),
    rgba(236, 72, 153, 0.15)
  ) !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: var(--accent-light) !important;
}

/* --- Live bar: typing animation for popular item --- */
@keyframes liveBarSlide {
  0% {
    opacity: 0;
    transform: translateX(8px);
  }
  10% {
    opacity: 1;
    transform: translateX(0);
  }
  90% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-8px);
  }
}
.live-bar {
  border-radius: 16px !important;
  padding: 10px 20px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* --- Mood button: active state ring --- */
.mood-btn.active {
  position: relative !important;
  background: var(--gradient-main) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 24px var(--accent-glow), 0 0 0 2px rgba(139, 92, 246, 0.5) !important;
  transform: translateY(-2px) scale(1.05) !important;
  font-weight: 800 !important;
}
.mood-btn.active::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 100px;
  background: var(--gradient-main);
  z-index: -1;
  opacity: 0.5;
  filter: blur(6px);
}

/* --- Filters section: smooth expand with border glow --- */
.filters-section {
  border-radius: 20px !important;
  transition: all 0.35s var(--ease) !important;
}
.filters-section:hover {
  border-color: rgba(139, 92, 246, 0.12) !important;
}
.filters-header {
  cursor: pointer !important;
  padding: 16px 20px !important;
  border-radius: 20px !important;
  transition: background 0.2s !important;
}
.filters-header:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}
.filters-header .chevron {
  transition: transform 0.3s var(--ease) !important;
}

/* --- Pick button: keep the original simple --gradient-main look (purple→
   pink), no rainbow override, no animation on the bg.  Matches the
   previously-shipped design that the user confirmed looked correct. --- */

/* --- Lucky button: sparkle animation --- */
@keyframes luckySparkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  25% {
    opacity: 0.6;
    transform: scale(1.3) rotate(15deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  75% {
    opacity: 0.6;
    transform: scale(1.3) rotate(-15deg);
  }
}
.lucky-sparkle {
  animation: luckySparkle 2s ease-in-out infinite !important;
  display: inline-block !important;
}

/* --- Result card: entrance animation --- */
@keyframes resultCardIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.result-section:not(.hidden) .result-card {
  animation: resultCardIn 0.5s var(--spring) both !important;
}

/* --- Result card poster: parallax tilt on hover --- */
.result-poster-wrap {
  perspective: 600px !important;
  transition: transform 0.3s var(--ease) !important;
}
.result-poster-wrap:hover .result-poster {
  transform: rotateY(-3deg) rotateX(2deg) scale(1.02) !important;
  box-shadow: 12px 12px 40px rgba(0, 0, 0, 0.5) !important;
}

/* --- Save button: heart beat animation when saved --- */
@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.25);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.15);
  }
  60% {
    transform: scale(1);
  }
}
.save-btn.saved {
  animation: heartBeat 0.8s var(--ease) !important;
}

/* --- Section headers: gradient underline --- */
.section-title .title-glow {
  position: relative !important;
  display: inline-block !important;
}
.section-title .title-glow::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-main);
  opacity: 0.5;
}

/* --- Saved section: counter badge glow --- */
.saved-count-badge {
  background: var(--gradient-main) !important;
  box-shadow: 0 2px 10px var(--accent-glow) !important;
  font-weight: 800 !important;
}

/* --- Toast notifications: slide + fade --- */
@keyframes toastSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.toast {
  animation: toastSlideIn 0.3s var(--spring) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* --- Cookie consent: improved layout --- */
.cookie-consent {
  border-radius: 20px 20px 0 0 !important;
  padding: 16px 24px !important;
  background: rgba(12, 12, 30, 0.95) !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4) !important;
}

/* --- Scroll progress bar at top of page --- */
.scroll-progress {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  height: 3px !important;
  background: var(--gradient-main) !important;
  z-index: 9999 !important;
  transition: width 0.1s linear !important;
  box-shadow: 0 0 8px var(--accent-glow) !important;
}

/* --- Skeleton loading placeholders --- */
@keyframes skeletonPulse {
  0%,
  100% {
    opacity: 0.06;
  }
  50% {
    opacity: 0.12;
  }
}
.skeleton {
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  animation: skeletonPulse 1.5s ease-in-out infinite !important;
}

/* --- Enhanced text selection on dark bg --- */
::selection {
  background: rgba(139, 92, 246, 0.4) !important;
  color: #fff !important;
}
::-moz-selection {
  background: rgba(139, 92, 246, 0.4) !important;
  color: #fff !important;
}

/* --- Improved tooltip style --- */
[title] {
  position: relative;
}

/* --- Subscription banner: gradient shimmer --- */
@keyframes subBannerShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
.sub-plans-banner {
  position: relative !important;
  overflow: hidden !important;
}
.sub-plans-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  background-size: 200% 100%;
  animation: subBannerShimmer 4s ease-in-out infinite;
  pointer-events: none;
}

/* --- Auth benefits grid: staggered entrance --- */
@keyframes benefitPop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.auth-benefit {
  animation: benefitPop 0.4s var(--spring) both !important;
}
.auth-benefit:nth-child(1) {
  animation-delay: 0.05s !important;
}
.auth-benefit:nth-child(2) {
  animation-delay: 0.1s !important;
}
.auth-benefit:nth-child(3) {
  animation-delay: 0.15s !important;
}
.auth-benefit:nth-child(4) {
  animation-delay: 0.2s !important;
}

/* --- Profile avatar: hover rotate and glow --- */
.profile-avatar {
  transition: all 0.4s var(--ease) !important;
}
.profile-avatar:hover {
  transform: rotate(10deg) scale(1.1) !important;
  box-shadow:
    0 16px 48px rgba(139, 92, 246, 0.45),
    0 0 0 4px rgba(255, 255, 255, 0.15) !important;
}

/* --- Achievement item: earned sparkle --- */
.achievement-item.earned {
  position: relative !important;
  overflow: hidden !important;
}
.achievement-item.earned::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(139, 92, 246, 0.1),
    transparent,
    rgba(236, 72, 153, 0.08),
    transparent
  );
  animation: achieveRotate 8s linear infinite;
  pointer-events: none;
}
@keyframes achieveRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --- Header: glass blur on scroll --- */
.header {
  transition: all 0.3s var(--ease) !important;
}
.header.scrolled {
  background: rgba(6, 6, 20, 0.9) !important;
  backdrop-filter: blur(24px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}

/* --- Mobile improvements v2 --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
  }
  .hero-subtitle {
    font-size: 0.85rem !important;
    padding: 0 8px !important;
  }
  .hero-cta {
    padding: 14px 28px !important;
    font-size: 0.9rem !important;
  }
  .hero-stats {
    gap: 16px !important;
  }
  .hero-stat-value {
    font-size: 1.3rem !important;
  }
  .ai-section {
    padding: 16px !important;
    border-radius: 18px !important;
  }
  .ai-input {
    font-size: 0.85rem !important;
  }
  .mood-grid {
    gap: 8px !important;
  }
  .mood-btn {
    padding: 9px 14px !important;
    font-size: 0.78rem !important;
  }
  .pick-btn {
    border-radius: 18px !important;
  }
  .result-card-inner {
    padding: 16px !important;
  }
  .filters-section {
    border-radius: 16px !important;
  }
  .auth-modal-content {
    max-width: 92vw !important;
    padding: 28px 20px 22px !important;
  }
}

/* --- Tablet fine-tuning --- */
@media (min-width: 769px) and (max-width: 1023px) {
  .hero-title {
    font-size: 2rem !important;
  }
  .hero-stats {
    gap: 24px !important;
  }
  .ai-section {
    padding: 20px !important;
  }
}

/* --- Wide desktop: more breathing room --- */
@media (min-width: 1400px) {
  .main-content {
    max-width: 820px !important;
  }
  .hero-title {
    font-size: 2.8rem !important;
  }
  .hero-subtitle {
    font-size: 1.05rem !important;
  }
  .ai-section {
    padding: 28px !important;
  }
  .mood-btn {
    padding: 12px 22px !important;
    font-size: 0.88rem !important;
  }
}

/* --- Reduced motion: respect user preferences --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Print styles --- */
@media print {
  .header,
  .fab-container,
  .cookie-consent,
  .live-bar,
  canvas {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .result-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}

/* ============================
   v5: Desktop PC Design Improvements
   ============================ */

/* --- Desktop: wider layout & better spacing --- */
@media (min-width: 1024px) {
  #app {
    max-width: 1100px !important;
    padding: 0 32px 120px !important;
  }

  .header {
    padding: 16px 32px !important;
    margin: 12px 0 24px !important;
    border-radius: 20px !important;
  }

  .logo {
    font-size: 1.3rem !important;
  }

  .tab-btn {
    font-size: 0.88rem !important;
    padding: 10px 20px !important;
  }

  .hero-section {
    padding: 48px 0 40px !important;
  }

  .hero-title {
    font-size: 2.4rem !important;
    letter-spacing: -0.02em !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    max-width: 480px !important;
    margin: 0 auto !important;
  }

  .hero-cta {
    font-size: 1.05rem !important;
    padding: 16px 40px !important;
  }

  .hero-stats {
    gap: 40px !important;
    margin-top: 28px !important;
  }

  .hero-stat-value {
    font-size: 1.6rem !important;
  }

  .ai-section {
    padding: 28px !important;
    border-radius: 24px !important;
  }

  .ai-header h2 {
    font-size: 1.15rem !important;
  }

  .ai-input {
    font-size: 0.95rem !important;
    padding: 16px 54px 16px 20px !important;
  }

  .ai-chip {
    font-size: 0.82rem !important;
    padding: 8px 16px !important;
  }

  .mood-section {
    margin-bottom: 20px !important;
  }

  .mood-btn {
    font-size: 0.88rem !important;
    padding: 11px 20px !important;
  }

  .mood-grid {
    gap: 10px !important;
  }

  .section-title {
    font-size: 1.15rem !important;
    margin-bottom: 16px !important;
  }

  .filters-section {
    border-radius: 20px !important;
  }

  .filters-header {
    padding: 16px 24px !important;
  }

  .filters-title {
    font-size: 1.05rem !important;
  }

  .daily-pick-card {
    padding: 24px !important;
    border-radius: 20px !important;
  }

  .live-bar {
    padding: 10px 24px !important;
    border-radius: 16px !important;
    font-size: 0.85rem !important;
  }

  .result-card {
    padding: 28px !important;
    border-radius: 24px !important;
  }

  .result-poster-wrap {
    width: 180px !important;
    height: 270px !important;
  }

  .result-title {
    font-size: 1.3rem !important;
  }

  .result-desc {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  .action-btn {
    font-size: 0.85rem !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
  }

  .pick-btn {
    font-size: 1.1rem !important;
    padding: 18px 0 !important;
    border-radius: 18px !important;
  }

  .lucky-btn {
    font-size: 0.9rem !important;
    padding: 12px 28px !important;
  }

  .saved-section {
    border-radius: 20px !important;
  }

  .brand-footer {
    padding: 40px 20px !important;
    font-size: 0.9rem !important;
  }

  .footer-links {
    gap: 16px !important;
  }

  .lang-btn {
    font-size: 0.78rem !important;
    padding: 5px 10px !important;
  }

  .user-btn {
    font-size: 0.85rem !important;
    padding: 8px 14px !important;
  }

  .user-name {
    max-width: 100px !important;
  }
}

/* --- Wide desktop: extra enhancements --- */
@media (min-width: 1400px) {
  #app {
    max-width: 1300px !important;
    padding: 0 40px 120px !important;
  }

  .header {
    padding: 18px 40px !important;
  }

  .hero-title {
    font-size: 2.8rem !important;
  }

  .hero-subtitle {
    font-size: 1.08rem !important;
    max-width: 520px !important;
  }

  .hero-stats {
    gap: 56px !important;
  }

  .hero-stat-value {
    font-size: 1.8rem !important;
  }

  .ai-section {
    padding: 32px !important;
  }

  .ai-input {
    font-size: 1rem !important;
  }

  .result-poster-wrap {
    width: 200px !important;
    height: 300px !important;
  }

  .result-title {
    font-size: 1.45rem !important;
  }

  .trending-card {
    width: 210px !important;
    flex-basis: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
  }

  .trending-card img,
  .trending-card .trending-poster {
    height: 315px !important;
  }

  .user-name {
    max-width: 120px !important;
  }
}

/* --- Ultra-wide desktop --- */
@media (min-width: 1700px) {
  #app {
    max-width: 1440px !important;
    padding: 0 48px 120px !important;
  }

  .header {
    padding: 20px 48px !important;
  }

  .hero-title {
    font-size: 3.2rem !important;
  }

  .hero-subtitle {
    font-size: 1.15rem !important;
    max-width: 600px !important;
  }

  .hero-cta {
    font-size: 1.15rem !important;
    padding: 18px 48px !important;
  }

  .ai-section {
    padding: 36px !important;
  }

  .mood-btn {
    font-size: 0.95rem !important;
    padding: 13px 24px !important;
  }

  .result-card {
    padding: 32px !important;
  }

  .result-poster-wrap {
    width: 220px !important;
    height: 330px !important;
  }

  .trending-card {
    width: 230px !important;
    flex-basis: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
  }

  .trending-card img,
  .trending-card .trending-poster {
    height: 345px !important;
  }
}

/* --- Daily pick card: better desktop layout --- */
@media (min-width: 768px) {
  .daily-pick-card .daily-pick-content {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
  }

  .daily-pick-card .daily-pick-poster {
    width: 100px !important;
    height: 150px !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
  }

  .daily-pick-card .daily-pick-info {
    flex: 1 !important;
  }
}

/* --- Smoother glass borders on desktop --- */
@media (min-width: 1024px) {
  .glass-deep {
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  }

  .glass-deep:hover {
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  }
}

/* --- Mobile: ensure lang-switch is always visible --- */
@media (max-width: 768px) {
  .header-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .lang-switch {
    display: flex !important;
  }

  .lang-btn {
    font-size: 0.65rem !important;
    padding: 3px 6px !important;
  }
}

@media (max-width: 380px) {
  .lang-switch {
    display: flex !important;
  }

  .lang-btn {
    font-size: 0.58rem !important;
    padding: 2px 4px !important;
  }

  .user-name {
    max-width: 40px !important;
  }

  .tab-btn {
    padding: 5px 8px !important;
    font-size: 0.68rem !important;
  }
}

/* --- AI loading improvements --- */
.ai-section .loading-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 8px;
}

.ai-section .loading-dots span {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: aiDotPulse 1.4s infinite ease-in-out both;
}

.ai-section .loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.ai-section .loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes aiDotPulse {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- Better scrollbar for trending on desktop --- */
@media (min-width: 1024px) {
  .trending-scroll {
    padding-bottom: 8px !important;
  }

  .trending-scroll::-webkit-scrollbar {
    height: 6px;
  }

  .trending-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
  }

  .trending-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
  }

  .trending-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}

/* --- Fix: desktop hover on trending cards --- */
@media (min-width: 1024px) {
  .trending-card {
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease) !important;
  }

  .trending-card:hover {
    transform: translateY(-6px) scale(1.03) !important;
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2) !important;
  }
}

/* --- Improved pick button desktop glow --- */
@media (min-width: 1024px) {
  .pick-btn {
    box-shadow: 0 4px 24px var(--accent-glow) !important;
    transition: all 0.3s var(--ease) !important;
  }

  .pick-btn:hover {
    box-shadow: 0 8px 40px var(--accent-glow), 0 0 60px rgba(139, 92, 246, 0.15) !important;
    transform: translateY(-2px) !important;
  }
}

/* --- Desktop: better saved section --- */
@media (min-width: 1024px) {
  .saved-section {
    padding: 20px 24px !important;
  }

  .saved-header {
    font-size: 1.05rem !important;
  }
}

/* ============================
   PC Compact Fix — centralized, smaller layout
   ============================ */

/* Reduce max-width so content never sprawls across full screen */
@media (min-width: 1024px) {
  #app {
    max-width: 860px !important;
    padding: 0 28px 100px !important;
  }

  .hero-section {
    padding: 36px 0 28px !important;
  }

  .hero-title {
    font-size: 2rem !important;
  }

  .hero-subtitle {
    font-size: 0.92rem !important;
    max-width: 420px !important;
  }

  .hero-cta {
    font-size: 0.95rem !important;
    padding: 13px 32px !important;
  }

  .hero-stats {
    gap: 28px !important;
    margin-top: 20px !important;
  }

  .hero-stat-value {
    font-size: 1.4rem !important;
  }

  .hero-stat-label {
    font-size: 0.68rem !important;
  }

  .pick-btn {
    font-size: 0.98rem !important;
    padding: 15px 0 !important;
  }
}

@media (min-width: 1400px) {
  #app {
    max-width: 960px !important;
    padding: 0 32px 100px !important;
  }

  .hero-title {
    font-size: 2.2rem !important;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    max-width: 460px !important;
  }

  .hero-cta {
    font-size: 1rem !important;
    padding: 14px 36px !important;
  }

  .hero-stat-value {
    font-size: 1.5rem !important;
  }

  .hero-stats {
    gap: 36px !important;
  }
}

@media (min-width: 1700px) {
  #app {
    max-width: 1040px !important;
    padding: 0 36px 100px !important;
  }

  .hero-title {
    font-size: 2.4rem !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    max-width: 500px !important;
  }

  .hero-cta {
    font-size: 1.05rem !important;
    padding: 15px 40px !important;
  }

  .hero-stat-value {
    font-size: 1.6rem !important;
  }
}

/* Fix: trending cards scale with smaller container */
@media (min-width: 1400px) {
  .trending-card {
    width: 170px !important;
    flex-basis: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
  }

  .trending-card img,
  .trending-card .trending-poster {
    height: 255px !important;
  }
}

@media (min-width: 1700px) {
  .trending-card {
    width: 180px !important;
    flex-basis: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
  }

  .trending-card img,
  .trending-card .trending-poster {
    height: 270px !important;
  }
}

/* Fix: result card poster proportional to smaller layout */
@media (min-width: 1400px) {
  .result-poster-wrap {
    width: 160px !important;
    height: 240px !important;
  }
}

/* Fix: main-content constraint also for wide screens */
@media (min-width: 1024px) {
  .main-content {
    max-width: 100% !important;
  }
}

/* ═══════════════════════════════════════════════════════
   ENHANCEMENTS — Receipt, Onboarding, Transitions, etc.
   ═══════════════════════════════════════════════════════ */

/* ─── Receipt Modal ─── */
.receipt-modal { z-index: 10000; }
.receipt-content {
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.receipt-paper {
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f23 100%);
  padding: 28px 24px;
  font-family: 'Courier New', monospace;
  position: relative;
}
.receipt-paper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 8px,
    rgba(255,255,255,0.06) 8px,
    rgba(255,255,255,0.06) 16px
  );
}
.receipt-header {
  text-align: center;
  margin-bottom: 12px;
}
.receipt-logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.receipt-title {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 4px;
}
.receipt-divider {
  text-align: center;
  color: rgba(255,255,255,0.12);
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin: 12px 0;
  overflow: hidden;
}
.receipt-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.receipt-val {
  font-weight: 700;
  color: var(--text);
  text-align: right;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.receipt-price {
  font-size: 1.1rem;
  color: var(--accent3);
}
.receipt-status {
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
}
.receipt-status-icon {
  font-size: 1.2rem;
  margin-right: 6px;
}
.receipt-confirmed {
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid rgba(6, 214, 160, 0.3);
  color: #06d6a0;
}
.receipt-pending {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}
.receipt-rejected {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
.receipt-list-badge.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.receipt-footer {
  text-align: center;
}
.receipt-link-row {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.receipt-link {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
  font-size: 0.7rem;
}
.receipt-link:hover {
  text-decoration: underline;
}
.receipt-copy-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  margin-bottom: 12px;
}
.receipt-copy-btn:hover {
  background: rgba(139,92,246,0.15);
  border-color: var(--accent);
}
.receipt-barcode {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 1px;
  margin-top: 8px;
  overflow: hidden;
  white-space: nowrap;
}

/* Receipt list */
.receipt-list-content {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px;
}
.receipt-list-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.receipt-list-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}
.receipt-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.receipt-list-item:hover {
  border-color: var(--accent);
  background: rgba(139,92,246,0.06);
}
.receipt-list-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.receipt-list-id {
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  color: var(--text-dim);
}
.receipt-list-plan {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.receipt-list-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.receipt-list-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.receipt-list-badge.confirmed {
  background: rgba(6,214,160,0.12);
  color: #06d6a0;
}
.receipt-list-badge.pending {
  background: rgba(251,191,36,0.12);
  color: #fbbf24;
}

/* ─── Onboarding ─── */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(6,6,20,0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.onboarding-overlay.onboarding-visible {
  opacity: 1;
  pointer-events: all;
}
.onboarding-overlay.onboarding-hidden {
  opacity: 0;
  pointer-events: none;
}
.onboarding-card {
  background: var(--glass-deep);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: onboardingCardIn 0.5s var(--spring);
}
.onboarding-card-exit {
  animation: onboardingCardOut 0.2s var(--ease) forwards;
}
.onboarding-card-enter {
  animation: onboardingCardIn 0.4s var(--spring);
}
@keyframes onboardingCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes onboardingCardOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-15px) scale(0.97); }
}
.onboarding-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.3s var(--ease);
}
.onboarding-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transform: scale(1.2);
}
.onboarding-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  animation: onboardingBounce 0.6s var(--spring);
}
@keyframes onboardingBounce {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.onboarding-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.onboarding-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 24px;
}
.onboarding-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.onboarding-skip {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.onboarding-skip:hover {
  color: var(--text);
  border-color: var(--glass-border-hover);
}
.onboarding-next {
  background: var(--gradient-main);
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s var(--spring);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.onboarding-next:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.onboarding-next:active {
  transform: scale(0.96);
}

/* ─── Page Transitions (scroll-in animations) ─── */
.section-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Enhanced Confetti ─── */
.enhanced-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
  overflow: hidden;
}
.enhanced-confetti .confetti-piece {
  position: absolute;
  top: -20px;
  animation: confettiEnhancedFall linear forwards;
}
.confetti-circle { border-radius: 50%; }
.confetti-square { border-radius: 2px; }
@keyframes confettiEnhancedFall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(var(--confetti-x, 0px)) rotate(var(--confetti-rot, 720deg)) scale(0.3);
    opacity: 0;
  }
}

/* ─── Book Reader Modal ─── */
.book-reader-modal { z-index: 10000; }
.book-reader-content {
  max-width: 540px;
  margin: 0 auto;
  padding: 28px 24px;
  max-height: 85vh;
  overflow-y: auto;
}
.book-reader-header {
  margin-bottom: 20px;
}
.book-reader-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.book-reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.book-reader-meta span {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.book-reader-body {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}
.book-reader-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-dim);
  max-height: 400px;
  overflow-y: auto;
}
.book-reader-fulllink {
  display: block;
  text-align: center;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px;
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease);
}
.book-reader-fulllink:hover {
  background: rgba(139,92,246,0.08);
  border-color: var(--accent);
}

/* Reading time meta tag */
.meta-tag-time {
  background: rgba(6,214,160,0.1) !important;
  border-color: rgba(6,214,160,0.25) !important;
  color: #06d6a0 !important;
}

/* Reader button styling */
.reader-btn {
  color: var(--accent3) !important;
  border-color: rgba(6,214,160,0.3) !important;
}
.reader-btn:hover {
  background: rgba(6,214,160,0.1) !important;
}

/* ─── Combined Mood Selection Indicator ─── */
.mood-btn.active {
  position: relative;
  background: var(--gradient-main) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 24px var(--accent-glow), 0 0 0 2px rgba(139, 92, 246, 0.5) !important;
  transform: translateY(-2px) scale(1.05) !important;
  font-weight: 800 !important;
}
.mood-btn.active::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: var(--accent3);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px var(--accent3-glow);
  z-index: 2;
}

/* ─── Prefers Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .blob { animation: none !important; }
  .section-animate {
    opacity: 1 !important;
    transform: none !important;
  }
  .confetti-container,
  .enhanced-confetti,
  .swipe-particles,
  .onboarding-overlay {
    display: none !important;
  }
}
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
.reduced-motion .blob { animation: none !important; }
.reduced-motion .section-animate {
  opacity: 1 !important;
  transform: none !important;
}
.reduced-motion .confetti-container,
.reduced-motion .enhanced-confetti {
  display: none !important;
}

/* ─── Design Review: Button & UI Consistency Fixes ─── */
.action-btn:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}
.lucky-btn:active {
  transform: scale(0.96);
  border-color: var(--accent3);
  color: var(--accent3);
}
.lucky-btn:focus {
  outline: none;
  border-color: var(--accent3);
  box-shadow: 0 0 0 2px rgba(6, 214, 160, 0.3);
}
.tab-btn:active {
  transform: scale(0.95);
}
.tab-btn:focus {
  outline: none;
}
.mood-btn:active {
  transform: scale(0.95) !important;
}
.mood-btn:focus {
  outline: none;
}
.user-btn:active {
  transform: scale(0.96);
}
.user-btn:focus {
  outline: none;
}
@media (max-width: 768px) {
  .action-btn:active,
  .pick-btn:active,
  .lucky-btn:active,
  .tab-btn:active,
  .mood-btn:active,
  .user-btn:active {
    -webkit-tap-highlight-color: transparent;
  }
  .pick-btn:focus,
  .lucky-btn:focus,
  .action-btn:focus {
    outline: none;
  }
}

/* ─── Enhanced Skeleton Shimmer ─── */
.skeleton-card .skeleton {
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0.04) 30%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.04) 70%
  );
  background-size: 300% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
}
.skeleton-card .skeleton-poster {
  width: 120px;
  min-height: 180px;
  border-radius: var(--radius-md);
}
.skeleton-card .skeleton-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Profile Receipts ─── */
.profile-receipts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}
.profile-receipt-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}
.profile-receipt-item:hover {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.3);
  transform: translateY(-1px);
}
.receipt-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.receipt-item-plan {
  font-weight: 800;
  font-size: 0.95rem;
  color: #a78bfa;
}
.receipt-item-price {
  font-weight: 900;
  font-size: 1.1rem;
  color: #10b981;
}
.receipt-item-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.receipt-item-confirmed {
  color: #10b981;
  font-weight: 600;
}
.receipt-item-pending {
  color: #f59e0b;
  font-weight: 600;
}
.profile-receipts-empty {
  text-align: center;
  color: rgba(255,255,255,0.4);
  padding: 24px 0;
  font-size: 0.9rem;
}

/* ─── PC / Desktop Optimization ─── */
@media (min-width: 1024px) {
  .profile-modal-content {
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
  }
  .profile-tabs {
    display: flex;
    gap: 4px;
  }
  .profile-tab-btn {
    flex: 1;
    text-align: center;
  }
  .profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .profile-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .profile-edit-grid textarea {
    grid-column: 1 / -1;
  }
  .profile-edit-grid .profile-share-actions {
    grid-column: 1 / -1;
  }
  .receipt-modal .receipt-content {
    max-width: 480px;
  }
}

@media (min-width: 1400px) {
  .profile-modal-content {
    max-width: 640px;
  }
  .profile-stats {
    gap: 16px;
  }
  .profile-stat {
    padding: 22px !important;
  }
  .receipt-modal .receipt-content {
    max-width: 520px;
  }
}

@media (min-width: 1700px) {
  .profile-modal-content {
    max-width: 720px;
  }
}

/* =========================================================================
   DESIGN FIXES v5 — header on mobile (PREMIUM/PRO badge), more-btn overflow,
   misc design touch-ups requested by users.
   These rules live at the end of the file so they win the cascade and only
   target known elements; nothing here uses `!important` carelessly.
   ========================================================================= */

/* Header — make sure the row never overflows when the tier badge is added.
   On wide screens the badge sits in `.header-left` next to the logo; on
   mobile we shrink the badge a lot and let the header wrap if it absolutely
   has to so it never breaks layout the way it did before. */
.header {
  flex-wrap: wrap;
  row-gap: 6px;
}
.header-left {
  flex-wrap: wrap;
  min-width: 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
#sub-tier-badge.tier-badge {
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 540px) {
  .header {
    padding: 8px 10px !important;
    gap: 6px !important;
    row-gap: 6px;
  }
  .header-left {
    gap: 6px;
  }
  .logo {
    font-size: 0.95rem !important;
  }
  .logo-icon {
    font-size: 1.1rem;
  }
  /* Compact tier badge so PREMIUM/PRO never pushes the header into 2 rows
     that look broken. On small screens we keep it short & tight. */
  #sub-tier-badge.tier-badge {
    margin-left: 4px;
    padding: 2px 7px;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    border-radius: 14px;
  }
  /* Also shrink the small "🎮" header button so it doesn't crowd the row. */
  .game-header-btn {
    padding: 4px 8px !important;
    font-size: 0.85rem !important;
  }
  /* Tab switch a touch tighter on small screens with the badge present. */
  .tab-btn {
    padding: 6px 9px !important;
    font-size: 0.7rem !important;
  }
  .tab-icon {
    font-size: 0.85rem;
  }
}

/* Extra-narrow phones — collapse PREMIUM to a star icon so the header
   stays on one visual row even on 320–360px screens. */
@media (max-width: 380px) {
  #sub-tier-badge.tier-badge {
    font-size: 0;
    padding: 4px 6px;
  }
  #sub-tier-badge.tier-badge::before {
    content: "★";
    font-size: 0.7rem;
    color: inherit;
  }
  #sub-tier-badge.tier-pro::before {
    content: "🚀";
    font-size: 0.72rem;
  }
  #sub-tier-badge.tier-free::before {
    content: "○";
  }
}

/* "Ще" / more-btn — on mobile the existing 16px padding + active scale made
   the button visually pop out of its grid cell. Tighten paddings and remove
   any active-state transform that could cause overflow. */
.more-btn {
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--radius);
  contain: layout paint;
}
.more-btn:active {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) inset;
}
.more-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 540px) {
  .more-btn {
    padding: 10px 14px;
    font-size: 0.88rem;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 380px) {
  .more-btn {
    padding: 9px 12px;
    font-size: 0.82rem;
  }
}

/* Receipt modal copy button — bring its small visual style in line with
   the redesigned /pay page so they look like part of the same flow. */
.receipt-link {
  word-break: break-all;
  overflow-wrap: anywhere;
}
.receipt-copy-btn {
  margin-top: 8px;
}

/* Subscription plans modal — gracefully handle long plan names on mobile. */
@media (max-width: 540px) {
  .plan-name {
    font-size: 1.05rem !important;
  }
  .plan-feature-yes,
  .plan-feature-no {
    font-size: 0.82rem;
  }
}

/* Live bar on extra-narrow phones — wrap parts so the row doesn't scroll
   horizontally and break the header underneath. */
@media (max-width: 480px) {
  .live-bar {
    flex-wrap: wrap;
    row-gap: 6px;
    padding: 8px 14px !important;
    font-size: 0.78rem;
  }
  .live-separator {
    display: none;
  }
}

/* =========================================================================
   DESIGN FIXES v6 — receipt modal mobile polish, pick-button safety nets,
   prevent any horizontal overflow on tiny screens.
   ========================================================================= */

/* Ensure no element accidentally pushes the document past viewport width. */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}
#app {
  max-width: 100%;
  overflow-x: clip;
}

/* Pick button: keep the gradient and text inside the rounded shell on every
   viewport. Without min-width:0 + box-sizing the inner content would
   occasionally bleed past the rounded edges on Chrome mobile. */
.pick-btn,
.pick-btn-bg,
.pick-btn-content {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.pick-btn-content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Receipt modal: on mobile the receipt paper used to clip its bottom buttons
   when the soft keyboard was open or the viewport was very short. Make the
   inner content scrollable and cap the height so it always fits the screen. */
.receipt-modal .receipt-content {
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.receipt-modal .receipt-paper {
  word-break: break-word;
}
.receipt-modal .receipt-link-row {
  flex-wrap: wrap;
  gap: 6px;
}
.receipt-modal .receipt-link {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 540px) {
  .receipt-modal .receipt-content {
    max-width: 94vw;
    padding: 18px 14px !important;
    border-radius: 18px !important;
  }
  .receipt-modal .receipt-paper {
    padding: 14px 12px;
  }
  .receipt-modal .receipt-row {
    font-size: 0.82rem;
  }
  .receipt-modal .receipt-status {
    font-size: 0.78rem;
    padding: 10px;
  }
  .receipt-modal .receipt-barcode {
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Receipts list — the badge sometimes pushed long ids onto a 2nd line which
   looked broken. Let it wrap softly. */
.receipt-list-item {
  flex-wrap: wrap;
  gap: 8px;
}
.receipt-list-info {
  min-width: 0;
  flex: 1 1 60%;
}
.receipt-list-id {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  max-width: 100%;
}

/* =========================================================================
   DESIGN FIXES v10 — keep the production "Підібрати" button as it was, fix
   the "Ще" / .more-btn so its translucent body never lets the page bleed
   through on press, make the header live in the normal document flow (it
   scrolls with the page, no longer sticky), hide the header behind modals
   like the profile, and keep the Tinder-style swipe entrance for the
   result card and the staggered tile fade-in.
   ========================================================================= */

/* ------- 1. PICK BUTTON — single, clipped, gradient-on-the-button shell.
   The earlier `<span class="pick-btn-bg">` scaled separately on press so
   a faint pale rectangle leaked through.  We collapse the visual into the
   button itself, keep the shimmer in a clipped ::before, and never scale
   the inner span.  This is the v7 layout the user confirmed looked good. */
button.pick-btn,
.pick-section .pick-btn {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  border: 0 !important;
  outline: none !important;
  padding: 18px 28px !important;
  border-radius: 18px !important;
  background: var(--gradient-main) !important;
  box-shadow:
    0 8px 22px rgba(124, 58, 237, 0.32),
    0 2px 6px rgba(236, 72, 153, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22) !important;
  -webkit-tap-highlight-color: transparent !important;
  cursor: pointer;
  transform-origin: center center;
  transition:
    transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s var(--ease),
    filter 0.2s var(--ease) !important;
  will-change: transform, box-shadow;
}
.pick-btn .pick-btn-bg { display: none !important; }
button.pick-btn::before,
.pick-section .pick-btn::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 48%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.18) 52%,
    transparent 70%
  );
  background-size: 250% 100%;
  animation: pickyBtnSheen 4.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}
button.pick-btn .pick-btn-content,
.pick-section .pick-btn .pick-btn-content {
  position: relative !important;
  z-index: 2 !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
@keyframes pickyBtnSheen {
  0%   { background-position: -120% 0; }
  60%  { background-position: 120% 0; }
  100% { background-position: 120% 0; }
}
button.pick-btn:hover,
.pick-section .pick-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 14px 36px rgba(124, 58, 237, 0.5),
    0 4px 12px rgba(236, 72, 153, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22) !important;
  filter: brightness(1.05) saturate(1.08);
}
button.pick-btn:active,
.pick-section .pick-btn:active {
  transform: translateY(1px) scale(0.985) !important;
  box-shadow:
    0 3px 10px rgba(124, 58, 237, 0.3),
    0 1px 3px rgba(236, 72, 153, 0.18),
    inset 0 2px 4px rgba(0, 0, 0, 0.18) !important;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease !important;
  filter: brightness(0.96);
}
button.pick-btn:focus,
button.pick-btn:focus-visible,
.pick-section .pick-btn:focus,
.pick-section .pick-btn:focus-visible {
  outline: none !important;
  box-shadow:
    0 0 0 3px rgba(168, 85, 247, 0.35),
    0 8px 22px rgba(124, 58, 237, 0.32),
    0 2px 6px rgba(236, 72, 153, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22) !important;
}
@media (max-width: 768px) {
  button.pick-btn,
  .pick-section .pick-btn {
    padding: 16px 20px !important;
    border-radius: 16px !important;
    font-size: 1rem !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  button.pick-btn,
  .pick-section .pick-btn,
  button.pick-btn::before,
  .pick-section .pick-btn::before { animation: none !important; }
}

/* ------- 2. "Ще" / .more-btn — same fix family as the pick button.
   The translucent .more-btn used to show the dark page bg through itself
   when pressed because hover added translateY(-2px) and the bg scaled
   independently of the inner shimmer.  Force a clipped shell, kill all
   active-state transforms that exposed the parent, and keep the shimmer
   inside the rounded edge. */
button.more-btn,
.result-card .more-btn,
.result-section .more-btn {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  border: 1px solid var(--glass-border) !important;
  background: var(--glass-deep) !important;
  -webkit-tap-highlight-color: transparent !important;
  transform-origin: center center;
  contain: layout paint !important;
  transition:
    transform 0.18s var(--spring),
    box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease),
    background 0.22s var(--ease) !important;
}
button.more-btn .more-btn-shimmer {
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  z-index: 0 !important;
  mix-blend-mode: screen;
}
button.more-btn > :not(.more-btn-shimmer) {
  position: relative;
  z-index: 1;
}
button.more-btn:hover,
.result-card .more-btn:hover,
.result-section .more-btn:hover {
  border-color: rgba(168, 85, 247, 0.55) !important;
  background: rgba(139, 92, 246, 0.14) !important;
  transform: translateY(-1px) !important;
  box-shadow:
    0 8px 24px rgba(139, 92, 246, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
button.more-btn:active,
.result-card .more-btn:active,
.result-section .more-btn:active {
  transform: translateY(0) scale(0.985) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  background: rgba(139, 92, 246, 0.18) !important;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.28),
    0 0 0 0 rgba(139, 92, 246, 0) !important;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    background 0.08s ease !important;
}
button.more-btn:focus,
button.more-btn:focus-visible {
  outline: none !important;
  box-shadow:
    0 0 0 2px rgba(168, 85, 247, 0.5),
    0 4px 14px rgba(139, 92, 246, 0.22) !important;
}

/* ------- 3. HEADER — sticky while scrolling, keeps the glass-morphic
   background so it still feels alive against the animated canvas behind
   it.  The user wants the header to follow you while scrolling (so it
   never hides off-screen) without being fully `position: fixed`.
   `position: sticky; top: 8px` does exactly that.  We also relax the
   parent overflow rules below so sticky isn't trapped by an ancestor
   scroll context. */
header.header,
header.header.glass-deep,
.header,
.header.scrolled,
header.header.scrolled {
  position: sticky !important;
  top: 8px !important;
  z-index: 50 !important;
  background:
    linear-gradient(
      135deg,
      rgba(139, 92, 246, 0.08) 0%,
      rgba(236, 72, 153, 0.06) 100%
    ),
    rgba(15, 15, 35, 0.6) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
@media (max-width: 540px) {
  header.header,
  .header { border-radius: 16px !important; }
}

/* `position: sticky` is broken if any ancestor has `overflow: hidden|clip|
   auto|scroll`.  The v6 safety net set `overflow-x: hidden` on the body
   and `overflow-x: clip` on #app — both kill sticky in some browsers.
   Move horizontal-overflow protection onto the descendant tile rows that
   actually need it instead. */
html,
body {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
#app {
  overflow: visible !important;
}

/* Hide the header on the profile modal and any other in-app modal so the
   "mini-profile" view feels like its own page.  :has() lets us react to
   any modal becoming visible without touching JS. */
body:has(#profile-modal:not(.hidden)) header.header,
body:has(.modal:not(.hidden)) header.header,
body.modal-open header.header {
  display: none !important;
}

/* ------- 4. RESULT CARD — Tinder-style swipe entrance animations.
   gestures.js still handles the live drag (rotate, scale, stamps,
   particles, fly-out).  These keyframes only fire when JS adds the
   .swipe-enter / .swipe-enter-from-* class to the card. ------- */
@keyframes pickyCardDealCenter {
  0%   { opacity: 0; transform: translateY(80px) scale(0.86) rotateZ(-2deg); filter: blur(8px); }
  60%  { opacity: 1; transform: translateY(-6px) scale(1.02) rotateZ(0.4deg); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotateZ(0); filter: blur(0); }
}
@keyframes pickyCardDealLeft {
  0%   { opacity: 0; transform: translateX(-110vw) translateY(20px) rotateZ(-22deg) scale(0.85); filter: blur(4px); }
  55%  { opacity: 1; transform: translateX(12px) translateY(-4px) rotateZ(2deg) scale(1.015); filter: blur(0); }
  100% { opacity: 1; transform: translateX(0) translateY(0) rotateZ(0) scale(1); filter: blur(0); }
}
@keyframes pickyCardDealRight {
  0%   { opacity: 0; transform: translateX(110vw) translateY(20px) rotateZ(22deg) scale(0.85); filter: blur(4px); }
  55%  { opacity: 1; transform: translateX(-12px) translateY(-4px) rotateZ(-2deg) scale(1.015); filter: blur(0); }
  100% { opacity: 1; transform: translateX(0) translateY(0) rotateZ(0) scale(1); filter: blur(0); }
}

.result-card.swipe-enter {
  animation: pickyCardDealCenter 0.62s cubic-bezier(0.22, 1.2, 0.36, 1) both !important;
  will-change: transform, opacity, filter;
}
.result-card.swipe-enter-from-left {
  animation: pickyCardDealLeft 0.7s cubic-bezier(0.22, 1.2, 0.36, 1) both !important;
  will-change: transform, opacity, filter;
}
.result-card.swipe-enter-from-right {
  animation: pickyCardDealRight 0.7s cubic-bezier(0.22, 1.2, 0.36, 1) both !important;
  will-change: transform, opacity, filter;
}

/* Quick shine sweep that runs on every newly-dealt card. */
@keyframes pickyCardShine {
  0%   { opacity: 0; transform: translateX(-130%) skewX(-18deg); }
  30%  { opacity: 0.55; }
  100% { opacity: 0; transform: translateX(130%) skewX(-18deg); }
}
.result-card.swipe-enter::after,
.result-card.swipe-enter-from-left::after,
.result-card.swipe-enter-from-right::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.0) 35%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.0) 65%,
    transparent 100%
  );
  animation: pickyCardShine 0.8s ease-out 0.15s both;
  z-index: 8;
  border-radius: inherit;
  mix-blend-mode: screen;
}

.result-card {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.result-card.swiping .result-poster,
.result-card.swiping .result-poster-wrap:hover .result-poster {
  transform: none !important;
}

/* ─── Collections Section ─── */
.collections-section {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  overflow: hidden;
  background: rgba(6, 214, 160, 0.03);
  border: 1px solid rgba(6, 214, 160, 0.12);
  border-radius: var(--radius-lg, 18px);
}
.collections-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
.collections-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}
.collections-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.collections-create-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--gradient-main);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  touch-action: manipulation;
  line-height: 1;
}
.collections-create-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.collections-create-btn:active {
  transform: scale(0.95);
}
.collections-count {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
}
.collections-body {
  padding: 0 14px 14px;
}
.collections-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.collection-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  touch-action: manipulation;
}
.collection-card:hover {
  border-color: var(--glass-border-hover);
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}
.collection-card:active {
  transform: scale(0.98);
}
.collection-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.collection-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
}
.collection-info {
  flex: 1;
  min-width: 0;
}
.collection-name {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collection-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.collection-actions-row {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.col-action-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s var(--ease);
  touch-action: manipulation;
}
.col-action-btn:hover {
  background: rgba(255,255,255,0.1);
}
.col-preview {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  align-items: center;
}
.col-preview-img {
  width: 40px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--glass-border);
}
.col-preview-more {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 4px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
}

/* ─── Collection Picker Modal ─── */
.col-picker-modal-content {
  max-width: 400px;
  width: calc(100vw - 32px);
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
}
.col-picker-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.col-picker-item-info {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.col-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.col-picker-new {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  width: 100%;
  text-align: left;
  touch-action: manipulation;
}
.col-picker-new:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(139,92,246,0.08);
}
.col-picker-new-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}
.col-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  width: 100%;
  text-align: left;
  touch-action: manipulation;
}
.col-picker-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--glass-border-hover);
}
.col-picker-item-active {
  border-color: var(--accent) !important;
  background: rgba(139,92,246,0.1) !important;
}
.col-picker-emoji {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.col-picker-name {
  flex: 1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.col-picker-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 100px;
}
.col-picker-check {
  color: var(--accent-light);
  font-weight: 700;
  font-size: 1rem;
}

/* ─── Collection Edit/Create Modal ─── */
.col-edit-modal-content {
  max-width: 380px;
  width: calc(100vw - 32px);
  padding: 24px;
}
.col-edit-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.col-edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.col-edit-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.col-edit-emoji-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.col-edit-emoji-input {
  width: 60px !important;
  text-align: center;
  font-size: 1.4rem !important;
  padding: 8px !important;
}
.col-edit-emoji-picker-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  touch-action: manipulation;
}
.col-edit-emoji-picker-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--glass-border-hover);
}
.col-edit-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}
.col-edit-cancel {
  padding: 10px 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
}
.col-edit-cancel:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.col-edit-save {
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--gradient-main);
  color: #fff;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px var(--accent-glow);
  touch-action: manipulation;
}
.col-edit-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.col-edit-save:active {
  transform: scale(0.97);
}

/* ─── Collection Detail Modal ─── */
.col-detail-modal-content {
  max-width: 480px;
  width: calc(100vw - 32px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
}
.col-detail-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.col-detail-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.col-detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.col-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}
.col-detail-item:hover {
  background: rgba(255,255,255,0.06);
}
.col-detail-poster {
  width: 40px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.col-detail-info {
  flex: 1;
  min-width: 0;
}
.col-detail-item-title {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.col-detail-item-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.col-detail-item-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.col-detail-link {
  font-size: 1rem;
  text-decoration: none;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
}
.col-detail-link:hover {
  background: rgba(255,255,255,0.1);
}
.col-detail-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255,60,60,0.06);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  touch-action: manipulation;
}
.col-detail-remove:hover {
  background: rgba(255,60,60,0.2);
  color: #ff6b6b;
  transform: scale(1.1);
}
.col-detail-remove:active {
  transform: scale(0.9);
}

/* ─── Emoji Quick Picker ─── */
.emoji-quick-picker {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--glass-deep);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  margin-top: 4px;
  animation: tabFadeIn 0.2s var(--ease);
}
.emoji-pick-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  touch-action: manipulation;
}
.emoji-pick-btn:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.15);
}

/* ─── Collection Add Button in result card ─── */
.collection-add-btn svg {
  transition: all 0.2s;
}
.collection-add-btn:hover svg {
  stroke: var(--accent-light);
}

/* ─── Mobile adjustments for collections ─── */
@media (max-width: 480px) {
  .col-picker-modal-content,
  .col-edit-modal-content,
  .col-detail-modal-content {
    width: calc(100vw - 16px);
    border-radius: 20px 20px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    margin: 0;
    animation: slideUpModal 0.3s var(--ease);
  }
  .col-detail-modal-content {
    max-height: 90vh;
  }
}
@keyframes slideUpModal {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ------- 2. Trending / saved tiles get a subtle staggered fade-in. ------- */
@keyframes pickyTileFadeIn {
  0%   { opacity: 0; transform: translateY(14px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.trending-row .trending-card,
.saved-grid > *,
.results-grid > * {
  animation: pickyTileFadeIn 0.45s var(--ease) both;
}
.trending-row .trending-card:nth-child(1),
.saved-grid > *:nth-child(1),
.results-grid > *:nth-child(1) { animation-delay: 0.02s; }
.trending-row .trending-card:nth-child(2),
.saved-grid > *:nth-child(2),
.results-grid > *:nth-child(2) { animation-delay: 0.06s; }
.trending-row .trending-card:nth-child(3),
.saved-grid > *:nth-child(3),
.results-grid > *:nth-child(3) { animation-delay: 0.10s; }
.trending-row .trending-card:nth-child(4),
.saved-grid > *:nth-child(4),
.results-grid > *:nth-child(4) { animation-delay: 0.14s; }
.trending-row .trending-card:nth-child(n+5),
.saved-grid > *:nth-child(n+5),
.results-grid > *:nth-child(n+5) { animation-delay: 0.18s; }


