:root {
  font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: dark;
  color: #f5f5f5;
  background-color: #1a0505;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #FFD700;
  text-decoration: inherit;
}

a:hover {
  color: #d4a574;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f1a 100%);
  font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
  color: #f5f5f5;
}

.film-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.13;
  background-image: url('https://www.transparenttextures.com/patterns/asfalt-light.png');
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  font-family: inherit;
}

/* App.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 30px 20px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

.search-results-header h2 {
  color: #FFD700;
  font-size: 1.3rem;
  font-weight: 500;
}

.results-count {
  color: #999;
  font-size: 0.9rem;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

@media (min-width: 1400px) {
  .movie-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1000px) and (max-width: 1399px) {
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 600px) and (max-width: 999px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .movie-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: #d4a574;
}

.projector {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.film-reel {
  width: 50px;
  height: 50px;
  border: 4px solid #8B0000;
  border-radius: 50%;
  border-top-color: #FFD700;
  animation: spin 1s linear infinite;
}

.film-reel:nth-child(2) {
  animation-delay: 0.3s;
}

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

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.empty-state h3 {
  color: #FFD700;
  margin-bottom: 10px;
}

.empty-state p {
  color: #999;
}

.error-message {
  background: rgba(139, 0, 0, 0.5);
  border: 1px solid #8B0000;
  color: #ffcccc;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.load-more-container {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.load-more-btn {
  background: linear-gradient(135deg, #8B0000, #b30000);
  border: 2px solid #FFD700;
  color: #FFD700;
  padding: 15px 40px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.load-more-btn:hover:not(:disabled) {
  background: #FFD700;
  color: #1a0505;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
  transform: scale(1.05);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a0505;
}

::-webkit-scrollbar-thumb {
  background: #8B0000;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b30000;
}

/* Header.css */
.header {
  position: relative;
  background: linear-gradient(180deg, #2d0a0a 0%, #1a0505 100%);
  padding: 30px 20px;
  text-align: center;
  border-bottom: 4px solid #FFD700;
  overflow: hidden;
}

.curtain-left,
.curtain-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(90deg, #8B0000, #5c0000);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

.curtain-left {
  left: 0;
  border-right: 2px solid #FFD700;
  background: linear-gradient(90deg, #5c0000, #8B0000);
}

.curtain-right {
  right: 0;
  border-left: 2px solid #FFD700;
  background: linear-gradient(270deg, #5c0000, #8B0000);
}

.header-content {
  position: relative;
  z-index: 1;
}

.marquee-lights {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px 0;
}

.light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFD700;
  box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700, 0 0 30px #FFD700;
  animation: glow 1.5s ease-in-out infinite alternate;
}

.light:nth-child(2) { animation-delay: 0.2s; }
.light:nth-child(3) { animation-delay: 0.4s; }
.light:nth-child(4) { animation-delay: 0.6s; }
.light:nth-child(5) { animation-delay: 0.8s; }

@keyframes glow {
  from {
    opacity: 0.6;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1.1);
  }
}

.title {
  font-family: 'Georgia', serif;
  font-size: 3rem;
  color: #FFD700;
  text-shadow: 
    2px 2px 4px rgba(0,0,0,0.8),
    0 0 20px rgba(255, 215, 0, 0.3);
  margin: 15px 0;
  letter-spacing: 3px;
}

.subtitle {
  font-family: 'Georgia', serif;
  font-style: italic;
  color: #d4a574;
  font-size: 1.1rem;
  margin: 0;
}

@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }
  
  .curtain-left,
  .curtain-right {
    width: 40px;
  }
}

/* SearchBar.css */
.search-bar-container {
  background: linear-gradient(180deg, rgba(26, 5, 5, 0.8), rgba(13, 2, 2, 0.9));
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  backdrop-filter: blur(4px);
}

.search-form {
  display: flex;
  gap: 14px;
  max-width: 750px;
  margin: 0 auto;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 215, 0, 0.05);
  border: 1.5px solid rgba(255, 215, 0, 0.25);
  border-radius: 30px;
  padding: 0 18px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-input-wrapper:focus-within {
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.2), inset 0 0 10px rgba(255, 215, 0, 0.05);
  background: rgba(255, 215, 0, 0.08);
}

.search-input-wrapper.focused {
  border-color: #FFD700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.25);
}

.search-icon {
  font-size: 1.1rem;
  color: #FFD700;
  margin-right: 12px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f5f5f5;
  font-size: 1rem;
  padding: 13px 0;
  outline: none;
  font-weight: 500;
}

.search-input::placeholder {
  color: #a1a1aa;
}

.clear-search-btn {
  background: rgba(255, 215, 0, 0.1);
  border: none;
  color: #a1a1aa;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.clear-search-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  color: #FFD700;
}

.search-btn {
  background: linear-gradient(135deg, #8B0000 0%, #b30000 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.6);
  color: #FFD700;
  padding: 13px 32px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.search-btn:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFE066 100%);
  color: #1a0505;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
}

.search-hint {
  text-align: center;
  color: #a1a1aa;
  font-size: 0.8rem;
  margin: 12px 0 0;
}

@media (max-width: 600px) {
  .search-form {
    flex-direction: column;
  }
  
  .search-btn {
    width: 100%;
  }
}

/* FilterBar.css */
.filter-bar {
  background: linear-gradient(180deg, rgba(45, 10, 10, 0.8), rgba(26, 5, 5, 0.9));
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.filter-bar.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-label {
  color: #FFD700;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: block;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: rgba(255, 215, 0, 0.08);
  border: 1.5px solid rgba(255, 215, 0, 0.25);
  color: #f5f5f5;
  padding: 8px 18px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chip:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.6);
  color: #FFE066;
  transform: translateY(-2px);
}

.chip.active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.15));
  border-color: rgba(255, 215, 0, 0.8);
  color: #FFD700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  font-weight: 600;
}

.chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.genre-dropdown-container {
  position: relative;
}

.genre-button {
  background: rgba(255, 215, 0, 0.08);
  border: 1.5px solid rgba(255, 215, 0, 0.25);
  color: #f5f5f5;
  padding: 10px 20px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 160px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.genre-button:hover:not(:disabled) {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.6);
  color: #FFE066;
}

.genre-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dropdown-arrow {
  font-size: 0.7rem;
  margin-left: 10px;
}

.genre-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a0505;
  border: 1px solid #8B0000;
  border-radius: 8px;
  margin-top: 5px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.genre-option {
  display: block;
  width: 100%;
  padding: 10px 15px;
  background: transparent;
  border: none;
  color: #f5f5f5;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.genre-option:hover {
  background: rgba(139, 0, 0, 0.5);
}

.genre-option.selected {
  background: rgba(255, 215, 0, 0.2);
  color: #FFD700;
}

.platform-buttons {
  display: flex;
  gap: 12px;
}

.platform-btn {
  background: rgba(30, 30, 30, 0.5);
  border: 1.5px solid var(--platform-color, rgba(255, 215, 0, 0.4));
  color: #f5f5f5;
  padding: 10px 20px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.platform-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(var(--platform-color), 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.platform-btn:hover:not(:disabled) {
  border-color: var(--platform-color);
  color: var(--platform-color);
  transform: translateY(-2px);
}

.platform-btn.active {
  background: linear-gradient(135deg, rgba(var(--platform-color), 0.4), rgba(var(--platform-color), 0.2));
  border-color: var(--platform-color);
  color: #fff;
  box-shadow: 0 0 25px rgba(var(--platform-color), 0.5);
  font-weight: 600;
}

.platform-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.clear-btn {
  background: rgba(212, 165, 116, 0.08);
  border: 1.5px solid rgba(212, 165, 116, 0.4);
  color: #d4a574;
  padding: 10px 20px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-left: auto;
}

.clear-btn:hover:not(:disabled) {
  background: rgba(212, 165, 116, 0.2);
  border-color: #FFD700;
  color: #FFD700;
  transform: translateY(-2px);
}

.clear-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.searching-notice {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #FFD700;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  font-style: italic;
}

.surprise-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.6);
  color: #FFD700;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-right: 15px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  position: relative;
  overflow: hidden;
}

.surprise-btn::before {
  content: '✨';
  position: absolute;
  left: -30px;
  transition: left 0.3s ease;
}

.surprise-btn:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFE066 100%);
  color: #1a0505;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  transform: translateY(-3px);
}

.surprise-btn:hover::before {
  left: 8px;
}

.details-modal-content {
  background: #23232b;
  border-radius: 1.5rem;
  box-shadow: 0 2px 24px 0 #0008;
  max-width: 900px;
  width: 95%;
  max-height: 95vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.details-modal-content .flex {
  display: flex;
}

.details-modal-content .flex-col {
  flex-direction: column;
}

.details-modal-content .md\:flex-row {
  flex-direction: row;
}

.details-modal-content .md\:w-2\/5 {
  width: 40%;
}

.details-modal-content .flex-1 {
  flex: 1;
}

.details-modal-content .p-8 {
  padding: 2rem;
}

.details-modal-content .md\:pt-8 {
  padding-top: 2rem;
}

.details-modal-content .overflow-y-auto {
  overflow-y: auto;
}

.details-modal-content .max-h-\[92vh\] {
  max-height: 92vh;
}

.details-modal-content .justify-between {
  justify-content: space-between;
}

.details-modal-content .items-start {
  align-items: flex-start;
}

.details-modal-content .gap-x-3 {
  gap: 0.75rem;
}

.details-modal-content .text-4xl {
  font-size: 2.25rem;
}

.details-modal-content .font-bold {
  font-weight: 700;
}

.details-modal-content .tracking-tighter {
  letter-spacing: -0.025em;
}

.details-modal-content .text-3xl {
  font-size: 1.875rem;
}

.details-modal-content .text-zinc-500 {
  color: #71717a;
}

.details-modal-content .font-light {
  font-weight: 300;
}

.details-modal-content .gap-x-4 {
  gap: 1rem;
}

.details-modal-content .mt-1 {
  margin-top: 0.25rem;
}

.details-modal-content .text-2xl {
  font-size: 1.5rem;
}

.details-modal-content .text-yellow-400 {
  color: #fbbf24;
}

.details-modal-content .ml-1 {
  margin-left: 0.25rem;
}

.details-modal-content .px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.details-modal-content .py-px {
  padding-top: 1px;
  padding-bottom: 1px;
}

.details-modal-content .bg-zinc-800 {
  background-color: #27272a;
}

.details-modal-content .rounded {
  border-radius: 0.25rem;
}

.details-modal-content .font-mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Monaco, Inconsolata, "Roboto Mono", monospace;
}

.details-modal-content .text-zinc-400 {
  color: #a1a1aa;
}

.details-modal-content .hover\:text-white:hover {
  color: #ffffff;
}

.details-modal-content .transition-colors {
  transition: color 0.15s ease-in-out;
}

.details-modal-content .p-1 {
  padding: 0.25rem;
}

.details-modal-content .-mr-2 {
  margin-right: -0.5rem;
}

.details-modal-content .mt-6 {
  margin-top: 1.5rem;
}

.details-modal-content .flex-wrap {
  flex-wrap: wrap;
}

.details-modal-content .gap-2 {
  gap: 0.5rem;
}

.details-modal-content .mb-4 {
  margin-bottom: 1rem;
}

.details-modal-content .text-zinc-300 {
  color: #d4d4d8;
}

.details-modal-content .leading-relaxed {
  line-height: 1.625;
}

.details-modal-content .text-\[15px\] {
  font-size: 15px;
}

.details-modal-content .mt-7 {
  margin-top: 1.75rem;
}

.details-modal-content .grid {
  display: grid;
}

.details-modal-content .grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.details-modal-content .gap-y-5 {
  row-gap: 1.25rem;
}

.details-modal-content .text-sm {
  font-size: 0.875rem;
}

.details-modal-content .block {
  display: block;
}

.details-modal-content .text-xs {
  font-size: 0.75rem;
}

.details-modal-content .uppercase {
  text-transform: uppercase;
}

.details-modal-content .tracking-widest {
  letter-spacing: 0.1em;
}

.details-modal-content .font-medium {
  font-weight: 500;
}

.details-modal-content .mt-8 {
  margin-top: 2rem;
}

.details-modal-content .gap-3 {
  gap: 0.75rem;
}

.details-modal-content .bg-red-600 {
  background-color: #dc2626;
}

.details-modal-content .hover\:bg-red-700:hover {
  background-color: #b91c1c;
}

.details-modal-content .text-white {
  color: #ffffff;
}

.details-modal-content .font-semibold {
  font-weight: 600;
}

.details-modal-content .px-7 {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.details-modal-content .py-3\.5 {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.details-modal-content .rounded-3xl {
  border-radius: 1.5rem;
}

.details-modal-content .border {
  border: 1px solid;
}

.details-modal-content .border-zinc-700 {
  border-color: #3f3f46;
}

.details-modal-content .hover\:bg-zinc-800:hover {
  background-color: #27272a;
}

.details-modal-content .px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.details-modal-content .mt-5 {
  margin-top: 1.25rem;
}

.details-modal-content .text-\[10px\] {
  font-size: 10px;
}

.details-modal-content .text-center {
  text-align: center;
}

/* Enhanced Details Modal Styling */
.details-modal-content {
  background: linear-gradient(135deg, #1a0505 0%, #2d0a0a 50%, #1a0505 100%);
  border-radius: 24px;
  max-width: 1000px;
  width: 95vw;
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 
    0 0 60px rgba(255, 215, 0, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: row;
  animation: modalPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  0% {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.details-modal-content > .flex {
  width: 100%;
  display: flex;
  flex-direction: row;
}

.details-modal-content .md\:w-2\/5 {
  flex: 0 0 40%;
  position: relative;
  overflow: hidden;
}

.details-modal-content .md\:w-2\/5 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px 0 0 24px;
}

.details-modal-content .flex-1 {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.3);
}

/* Close button styling */
.details-modal-content #close-details-modal {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.details-modal-content #close-details-modal:hover {
  background: rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.6);
  transform: rotate(90deg);
  color: #FFD700;
}

/* Title and header area */
.details-modal-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #f5f5f5;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.details-modal-content #details-year {
  color: rgba(255, 215, 0, 0.6);
  font-size: 1.3rem;
  font-weight: 300;
  margin-left: 12px;
}

/* Rating and duration */
.details-modal-content #details-rating {
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFD700;
}

.details-modal-content #details-duration {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #FFD700;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

/* Genre tags */
#details-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

#details-genres span {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #FFD700;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

#details-genres span:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.6);
}

/* Synopsis */
#details-synopsis {
  color: #d4d4d8;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 20px 0;
}

/* Details grid */
.details-modal-content .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.details-modal-content .grid > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.details-modal-content .grid span:first-child {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a1a1aa;
  font-weight: 600;
}

.details-modal-content .grid span:last-child {
  color: #f5f5f5;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Action buttons */
#watch-trailer-btn,
#add-to-watchlist-btn {
  padding: 14px 28px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#watch-trailer-btn {
  background: linear-gradient(135deg, #b30000 0%, #8B0000 100%);
  color: #FFD700;
  border: 1px solid #FFD700;
  flex: 0 1 auto;
  min-width: 200px;
}

#watch-trailer-btn:hover {
  background: #FFD700;
  color: #1a0505;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

#add-to-watchlist-btn {
  background: rgba(255, 215, 0, 0.05);
  color: #FFD700;
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  flex: 0 1 auto;
}

#add-to-watchlist-btn:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.8);
  color: #FFE066;
}

/* Scrollbar styling for info section */
.details-modal-content .flex-1::-webkit-scrollbar {
  width: 8px;
}

.details-modal-content .flex-1::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.details-modal-content .flex-1::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.4);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.details-modal-content .flex-1::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.6);
}

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-section {
    width: 100%;
  }
  
  .filter-chips {
    justify-content: center;
  }
  
  .platform-buttons {
    justify-content: center;
  }
  
  .clear-btn {
    margin: 10px auto 0;
  }
  
  .surprise-btn {
    margin: 10px auto 0;
    width: 100%;
  }
  
  .searching-notice {
    text-align: center;
  }

  /* Mobile modal adjustments */
  .details-modal-content {
    max-height: 100vh;
    width: 100vw;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    animation: slideUpMobile 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  @keyframes slideUpMobile {
    from {
      transform: translateY(100px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .details-modal-content > .flex {
    flex-direction: column;
  }

  .details-modal-content .md\:w-2\/5 {
    flex: 0 0 auto;
    width: 100%;
    height: 50vh;
    border-radius: 16px 16px 0 0;
  }

  .details-modal-content .flex-1 {
    flex: 1;
    padding: 24px 20px;
    height: auto;
    overflow-y: auto;
    max-height: calc(50vh - 60px);
    background: linear-gradient(135deg, rgba(26, 5, 5, 0.8) 0%, rgba(45, 10, 10, 0.5) 100%);
  }

  .details-modal-content h2 {
    font-size: 1.5rem;
    margin-right: 35px;
  }

  .details-modal-content #details-year {
    font-size: 1rem;
  }

  .details-modal-content #details-rating {
    font-size: 1.5rem;
  }

  .details-modal-content .grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
  }

  #watch-trailer-btn,
  #add-to-watchlist-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .details-modal-content .md\:pt-8 {
    padding-top: 0;
  }
  
  .details-modal-content .md\:flex-row {
    flex-direction: column;
  }
  
  .details-modal-content .md\:w-2\/5 {
    width: 100%;
  }
  
  .details-modal-content .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* MovieCard.css */
.movie-card {
  background: linear-gradient(145deg, #2d0a0a, #1a0505);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.15);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.movie-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
}

.movie-card.expanded {
  grid-row: span 2;
}

.poster-container {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: linear-gradient(135deg, #3d1a1a, #2a0a0a);
}

.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .poster {
  transform: scale(1.08);
}

.poster-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #3d1a1a, #2a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-style: italic;
}

.poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.movie-card:hover .poster-overlay {
  opacity: 1;
}

.trailer-btn {
  background: linear-gradient(135deg, #8B0000, #b30000);
  border: 2px solid #FFD700;
  color: #FFD700;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.trailer-btn:hover {
  background: #FFD700;
  color: #1a0505;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  transform: scale(1.05);
}

.rating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #FFD700;
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFD700;
  font-weight: 700;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.movie-card:hover .rating-badge {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.star {
  color: #FFD700;
  font-size: 1rem;
}

.movie-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
}

.movie-title {
  color: #f5f5f5;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  line-height: 1.3;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: -webkit-box;
}

.movie-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.year {
  color: #FFD700;
  font-weight: 600;
  background: rgba(255, 215, 0, 0.1);
  padding: 2px 8px;
  border-radius: 8px;
}

.runtime {
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 8px;
}

.movie-description {
  color: #ccc;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 12px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: -webkit-box;
}

.movie-description:hover {
  color: #d4d4d8;
}

.movie-description.full {
  color: #f5f5f5;
}

.read-more {
  color: #FFD700;
  font-weight: 600;
  font-size: 0.8rem;
  margin-left: 5px;
}

.read-more:hover {
  text-decoration: underline;
}

.genres {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.genre-tag {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #FFD700;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.genre-tag:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.6);
}

/* TrailerModal.css */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(135deg, #1a0505 0%, #2d0a0a 50%, #1a0505 100%);
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 
    0 0 80px rgba(139, 0, 0, 0.4),
    0 0 120px rgba(255, 215, 0, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.9);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #FFD700;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.close-btn:hover {
  background: rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.8);
  color: #FFE066;
  transform: rotate(90deg) scale(1.1);
}

.trailer-header {
  padding: 20px 30px;
  border-bottom: 1px solid rgba(139, 0, 0, 0.5);
  position: relative;
}

.trailer-header h2 {
  color: #FFD700;
  margin: 0;
  font-size: 1.5rem;
}

.trailer-subtitle {
  color: #d4a574;
  margin: 5px 0 0;
  font-style: italic;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .modal-content {
    border-radius: 8px;
  }
  
  .trailer-header {
    padding: 15px 20px;
  }
  
  .trailer-header h2 {
    font-size: 1.2rem;
    padding-right: 40px;
  }
}
