/* Movie-specific styles */

/* Genre Dropdown */
.genre-dropdown-container {
  padding: 20px 4%;
  position: relative;
  z-index: 100;
}

.genre-dropdown {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 200px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  transition: all 0.2s ease;
}

.genre-dropdown:hover {
  border-color: #e94560;
  background-color: rgba(30, 30, 30, 0.95);
}

.genre-dropdown option {
  background: #1a1a1a;
  color: #fff;
  padding: 10px;
}

/* Carousel Section */
.carousel-section {
  margin-bottom: 30px;
  position: relative;
}

.carousel-section-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 0 4%;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-section-title svg {
  width: 20px;
  height: 20px;
  fill: #e94560;
  flex-shrink: 0;
}

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 4%;
}

/* Carousel Track */
.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
  flex: 1;
  width: 100%;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Carousel Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.2s ease;
}

.carousel-wrapper:hover .carousel-btn {
  opacity: 1;
  visibility: visible;
}

.carousel-btn:hover {
  background: #e94560;
  border-color: #e94560;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.carousel-btn:disabled {
  opacity: 0.2 !important;
  cursor: not-allowed;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Movie Cards in Carousel */
.carousel-card {
  flex: 0 0 auto;
  width: 180px;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.carousel-card:hover {
  transform: scale(1.08);
  z-index: 5;
}

.carousel-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}

.carousel-card-info {
  padding: 10px;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0.8), rgba(20, 20, 20, 1));
}

.carousel-card-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.carousel-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #aaa;
}

.carousel-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #ffd700;
  font-weight: 600;
}

.carousel-card-rating svg {
  width: 10px;
  height: 10px;
  fill: #ffd700;
}

.carousel-card-genres {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.carousel-card-genre-tag {
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(233, 69, 96, 0.2);
  color: #e94560;
  border-radius: 4px;
  border: 1px solid rgba(233, 69, 96, 0.3);
}

/* Hidden card for filtering */
.carousel-card.hidden {
  display: none;
}

/* Active genre indicator */
.genre-filter-active {
  border-color: #e94560 !important;
  box-shadow: 0 0 10px rgba(233, 69, 96, 0.3);
}

/* Hide empty sections when filtered */
.carousel-section.empty-filtered {
  display: none;
}

/* Show message when filtering */
.filter-message {
  text-align: center;
  padding: 40px;
  color: #888;
  display: none;
}

.filter-message.visible {
  display: block;
}

/* Filtered label */
.filter-label {
  color: #e94560;
  font-size: 14px;
  padding: 0 4%;
  margin-bottom: 15px;
  display: none;
}

.filter-label.visible {
  display: block;
}

/* Server Dropdown Styles */
.server-dropdown {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  border-radius: 50px;
  cursor: pointer;
  min-width: 220px;
  max-width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.server-dropdown:hover {
  border-color: #e94560;
  background-color: rgba(30, 30, 30, 0.95);
}

.server-dropdown:focus {
  outline: none;
  border-color: #e94560;
  box-shadow: 0 0 15px rgba(233, 69, 96, 0.2);
}

.server-dropdown option {
  background: #1a1a1a;
  color: #fff;
  padding: 10px;
}

/* Server Legend */
.server-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 16px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #888;
}

.legend-badge {
  font-size: 12px;
}

/* Cards Grid for search/genre results */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 16px;
}

.cards-grid .carousel-card {
  width: 100%;
  flex: none;
}

.cards-grid .carousel-card img {
  height: auto;
  aspect-ratio: 2/3;
}

/* Movie logo accent color */
.logo-accent {
  color: #e94560;
  text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.logo-dot {
  background: #e94560;
  box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.hero-badge {
  background: rgba(233, 69, 96, 0.15);
  border-color: rgba(233, 69, 96, 0.3);
  color: #e94560;
}

.btn-play {
  background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
}

.btn-play:hover {
  box-shadow: 0 12px 40px rgba(233, 69, 96, 0.4);
}

.btn-info:hover {
  border-color: #e94560;
}

.row-icon {
  background: rgba(233, 69, 96, 0.15);
}

.row-icon svg {
  fill: #e94560;
}

.card:hover .card-title {
  color: #e94560;
}

.card-play-btn {
  background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
  box-shadow: 0 6px 25px rgba(233, 69, 96, 0.4);
}

.card-play-btn:hover {
  box-shadow: 0 8px 35px rgba(233, 69, 96, 0.5);
}

.genre-pill:hover {
  border-color: rgba(233, 69, 96, 0.5);
  color: #e94560;
}

.genre-pill.active {
  background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
  border-color: #e94560;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

.cw-remove:hover {
  background: #e94560;
  border-color: #e94560;
}

.cw-progress-fill {
  background: linear-gradient(90deg, #e94560 0%, #c73e54 100%);
}

.caption-toggle-btn:hover {
  background: rgba(233, 69, 96, 0.8) !important;
}

.caption-toggle-btn:hover {
  background: rgba(233, 69, 96, 0.9);
}

.player-control-btn:hover {
  border-color: #e94560;
  color: #e94560;
}

.auto-next-toggle.active {
  background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
  border-color: #e94560;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

#modal {
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 80px rgba(233, 69, 96, 0.1);
}

#modal-close:hover {
  background: #e94560;
  border-color: #e94560;
}

.server-tab:hover {
  border-color: rgba(233, 69, 96, 0.5);
  color: #e94560;
}

.server-tab.active {
  background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
  border-color: #e94560;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

.btn-download:hover {
  background: #e94560;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

.modal-genre-tag:hover {
  border-color: rgba(233, 69, 96, 0.5);
  color: #e94560;
}

footer strong {
  color: #e94560;
  text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

footer a {
  color: #e94560;
}

footer a:hover {
  text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.search-wrap:focus-within svg {
  color: #e94560;
}

#search-box:focus {
  border-color: #e94560;
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.15);
}

@keyframes bg-shift-movie {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 10px) scale(1.05); }
  100% { transform: translate(10px, -20px) scale(1); }
}