/* src/movies.css */
.movies-page {
  padding: clamp(1rem, 3vw, 3rem);
  min-height: 100vh;
  background: #1c1c2e;
  color: #e0e0e0;
}
.movies-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.movies-header h1 {
  flex: 1;
  color: #fff;
  font-size: 1.5rem;
}
.movies-last-refresh {
  color: #888;
  font-size: 0.8rem;
  white-space: nowrap;
}
.movies-refresh-btn {
  background: #5a4fcf;
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.movies-refresh-btn:hover {
  background: #6b61e0;
}
.movies-refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.movies-nav {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}
.movies-nav-link {
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 5px 5px 0 0;
  transition: color 0.2s, background 0.2s;
}
.movies-nav-link:hover {
  color: #ccc;
  background: rgba(255, 255, 255, 0.05);
}
.movies-nav-link.active {
  color: #fff;
  background: rgba(90, 79, 207, 0.25);
  border-bottom: 2px solid #5a4fcf;
}
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.movies-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #2a2a40;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.movies-card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.movies-card-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}
.movies-card-no-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #999;
  background: #2a2a40;
}
.movies-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.5rem 0.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.movies-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.movies-card-year {
  font-size: 0.7rem;
  color: #aaa;
}
.movies-card-genres {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.movies-genre-tag {
  font-size: 0.6rem;
  background: rgba(90, 79, 207, 0.8);
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}
.movies-badge {
  font-size: 0.6rem;
  background: rgba(207, 160, 79, 0.85);
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}
.movies-badge-theater {
  background: rgba(79, 160, 207, 0.85);
}
.movies-star {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #777;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
  opacity: 0;
  pointer-events: none;
}
.movies-card:hover .movies-star,
.movies-star.active {
  opacity: 1;
  pointer-events: auto;
}
.movies-star:hover {
  color: #bbb;
  background: rgba(0, 0, 0, 0.7);
}
.movies-star.active {
  color: #ffd700;
}
.movies-star.active:hover {
  color: #ffe44d;
}
.movies-loading,
.movies-empty,
.movies-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
}
.movies-error {
  color: #e57373;
}
.movies-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.movies-modal {
  background: #23233a;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  color: #e0e0e0;
}
.movies-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1;
}
.movies-modal-close:hover {
  color: #fff;
}
.movies-modal-content {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
}
.movies-modal-poster {
  width: 200px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}
.movies-modal-info {
  flex: 1;
  min-width: 0;
}
.movies-modal-info h2 {
  color: #fff;
  margin-bottom: 0.25rem;
}
.movies-modal-year {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.movies-modal-genres {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.movies-modal-overview {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ccc;
  margin-bottom: 1rem;
}
.movies-modal-plot {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #b0b0b0;
  margin-bottom: 1rem;
  font-style: italic;
}
.movies-modal-plot-label {
  font-style: normal;
  font-weight: 600;
  color: #999;
  margin-right: 0.25rem;
}
.movies-modal-meta {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.75rem;
}
.movies-modal-streaming {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.movies-modal-streaming-label {
  font-size: 0.85rem;
  color: #999;
  font-weight: 600;
  margin-right: 0.3rem;
}
.movies-streaming-link {
  display: inline-block;
  background: #5a4fcf;
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 5px;
  font-size: 0.8rem;
  margin: 0.2rem 0.3rem 0.2rem 0;
  transition: background 0.2s;
}
.movies-streaming-link:hover {
  background: #6b61e0;
}
.movies-modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.movies-label-btn {
  background: transparent;
  border: 1px solid #555;
  color: #999;
  padding: 0.35rem 0.75rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.movies-label-btn:hover {
  border-color: #888;
  color: #ddd;
}
.movies-label-btn.active {
  background: rgba(90, 79, 207, 0.3);
  border-color: #5a4fcf;
  color: #fff;
}
.movies-modal-debug {
  padding: 0 1.5rem 1.5rem;
}
.movies-modal-debug-toggles {
  display: flex;
  gap: 1rem;
}
.movies-modal-debug-toggle {
  color: #666;
  font-size: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}
.movies-modal-debug-toggle:hover {
  color: #999;
}
.movies-modal-debug-toggle.active {
  color: #8b8bce;
  text-decoration: underline;
}
.movies-modal-debug-json {
  background: #1a1a2a;
  color: #b0b0b0;
  font-family: monospace;
  font-size: 0.75rem;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 0.75rem;
  max-height: 300px;
  overflow-x: auto;
  overflow-y: auto;
  white-space: pre;
}
.movies-filter-btn {
  background: transparent;
  border: 1.5px solid #666;
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 36px;
  height: 36px;
  transition: border-color 0.2s, background 0.2s;
}
.movies-filter-btn:hover {
  border-color: #999;
}
.movies-filter-btn.active {
  background: #5a4fcf;
  border-color: #5a4fcf;
}
.movies-filter-btn span {
  display: block;
  height: 2px;
  background: #ccc;
  border-radius: 1px;
}
.movies-filter-btn.active span {
  background: #fff;
}
.movies-filter-btn span:nth-child(1) {
  width: 100%;
}
.movies-filter-btn span:nth-child(2) {
  width: 66%;
}
.movies-filter-btn span:nth-child(3) {
  width: 33%;
}
.movies-filter-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: #23233a;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
}
.movies-filter-sidebar.open {
  transform: translateX(0);
}
.movies-filter-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #333;
}
.movies-filter-sidebar-header h2 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
}
.movies-filter-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.movies-filter-close:hover {
  color: #fff;
}
#filter-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}
.movies-filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  display: none;
}
.movies-filter-backdrop.open {
  display: block;
}
.filter-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #777;
  letter-spacing: 0.05em;
  margin: 1rem 0 0.5rem;
}
.filter-section-title:first-child {
  margin-top: 0;
}
.filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
}
.filter-item-label {
  flex: 1;
  color: #ccc;
  font-size: 0.85rem;
}
.filter-btn-inc,
.filter-btn-exc {
  background: transparent;
  border: 1px solid #555;
  color: #999;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  padding: 0;
}
.filter-btn-inc:hover,
.filter-btn-exc:hover {
  border-color: #888;
  color: #ddd;
}
.filter-btn-inc.active {
  background: #5a4fcf;
  border-color: #5a4fcf;
  color: #fff;
}
.filter-btn-exc.active {
  background: #e57373;
  border-color: #e57373;
  color: #fff;
}
.filter-pop-btn {
  background: transparent;
  border: 1px solid #555;
  color: #999;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  padding: 0;
}
.filter-pop-btn:hover {
  border-color: #888;
  color: #ddd;
}
.filter-pop-value {
  font-size: 0.85rem;
  color: #ccc;
  min-width: 1.5em;
  text-align: center;
}
.filter-date-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid #444;
  color: #ccc;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
  text-align: left;
  margin-bottom: 0.4rem;
  transition: background 0.15s, border-color 0.15s;
}
.filter-date-btn:hover {
  border-color: #777;
}
.filter-date-btn.active {
  background: rgba(90, 79, 207, 0.25);
  border-color: #5a4fcf;
  color: #fff;
}
.movies-modal-cast {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.movies-cast-member {
  font-size: 0.8rem;
  background: rgba(90, 79, 207, 0.2);
  color: #ccc;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  white-space: nowrap;
  position: relative;
  cursor: default;
}
.movies-cast-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}
.movies-cast-tooltip img {
  width: 120px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 2px solid #444;
}
.movies-cast-member:hover > .movies-cast-tooltip {
  display: block;
}
.movies-cast-pop {
  font-size: 0.65rem;
  color: #888;
  margin-left: 0.2rem;
}
.movies-card.drag-ready {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(90, 79, 207, 0.5);
}
.movies-card.dragging {
  opacity: 0.4;
}
.movies-card.drag-over {
  outline: 2px dashed #5a4fcf;
  outline-offset: -2px;
}
@media (min-width: 1200px) {
  .movies-modal {
    max-width: 900px;
  }
}
@media (max-width: 900px) {
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .movies-modal {
    max-width: 90vw;
  }
}
@media (max-width: 600px) {
  .movies-header {
    gap: 0.5rem;
  }
  .movies-header h1 {
    font-size: 1.2rem;
    order: -1;
    flex-basis: 100%;
  }
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .movies-modal-backdrop {
    padding: 0;
  }
  .movies-modal {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }
  .movies-modal-content {
    flex-direction: column;
    align-items: center;
  }
  .movies-modal-poster {
    width: 160px;
  }
  .movies-filter-sidebar {
    width: 85vw;
  }
  .movies-star {
    opacity: 1;
    pointer-events: auto;
  }
}
/*# sourceMappingURL=movies.css.map */
