.slide {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.search-container {
  position: relative;
  width: 100%;
}

#search-box {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  outline: none;
  background: linear-gradient(to bottom, #3d484b, #2a3234);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
}

.search-icon:hover {
  color: #f99d1c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #search-box {
    padding: 10px 40px 10px 15px;
    font-size: 14px;
  }

  .search-icon {
    right: 10px;
    width: 26px;
    height: 26px;
  }
  .search-icon > i {
    font-size: 25px;
  }
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #222;
  border: 1px solid #333;
  border-radius: 4px;
  margin-top: 5px;
  z-index: 578;
}

.search-results .tabs {
  display: flex;
  border-bottom: 1px solid #444;
  background: #111;
  border-radius: 4px 4px 0 0;
}

.search-results .tab-button {
  padding: 12px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  border-bottom: 2px solid transparent;
  width: -webkit-fill-available;
}

.search-results .tab-button.active {
  color: #f99d1c;
  border-bottom: 2px solid #f99d1c;
}

.search-results .tab-content {
  padding: 15px;
}

.search-results .tab-pane {
  display: none;
}

.search-results .tab-pane.active {
  display: block;
}

/* Grid Layout for Movies and TV Shows */
.search-results .tab-pane ul:not(.people-grid) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 15px;
  list-style: none;
  margin: 0;
  max-height: 485px;
  overflow-y: auto;
}

.search-item {
  margin: 0;
  width: 100%;
}

.search-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  width: 100%;
}

.search-card {
  position: relative;
  height: 280px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.search-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.search-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 15px 15px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}

/* Hide unnecessary elements */
.search-cast,
.search-director,
.episode-info,
.latest-episode {
  display: none;
}

.search-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.episode-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 2;
}

/* People Grid - Unchanged */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
  padding: 1rem;
  list-style: none;
  margin: 0;
}

.person-card {
  text-align: center;
  background: transparent;
  transition: transform 0.2s ease;
}

.search-avatar {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 120/170;
  background: #222;
  margin-bottom: 0.5rem;
}

.search-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.person-card:hover .search-avatar img {
  transform: scale(1.05);
}

.search-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ddd;
  margin-top: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.5rem;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
  #search-box {
    padding: 10px 15px;
    font-size: 14px;
  }

  .search-results .tab-button {
    padding: 10px 15px;
    font-size: 13px;
  }

  .search-results .tab-pane ul:not(.people-grid) {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .search-title {
    font-size: 0.85rem;
  }

  .episode-badge {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

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

  .search-name {
    font-size: 0.8rem;
  }
}

/* Responsive Design */
@media (max-width: 480px) {
  .search-results .tab-pane ul:not(.people-grid) {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
}

@media (max-width: 320px) {
  .search-results .tab-pane ul:not(.people-grid) {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .search-card {
    height: 320px;
  }
}

/* Empty State Styles */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background: #111;
  border-radius: 8px;
  margin: 15px;
}

.empty-state-icon {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
}

.empty-state-title {
  color: #666;
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.empty-state-text {
  color: #555;
  font-size: 0.9rem;
  margin: 0 0 20px 0;
}

.request-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: #f99d1c;
  color: #000;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.request-button:hover {
  background: #ffa41b;
  color: #222;
  transform: translateY(-1px);
}

.request-button i {
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .empty-state {
    padding: 30px 15px;
    margin: 10px;
  }

  .empty-state-icon {
    font-size: 2rem;
  }

  .empty-state-title {
    font-size: 1.1rem;
  }

  .empty-state-text {
    font-size: 0.85rem;
  }

  .request-button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* Table Styles */
.table-responsive {
  overflow-x: auto;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 1px;
  margin: 20px 0;
}

.dark-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
}

.dark-table thead tr {
  background: #111;
  border-bottom: 2px solid #333;
}

.dark-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.dark-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #333;
  vertical-align: middle;
}

.dark-table tbody tr:hover {
  background: #222;
}

/* Type Badges */
.type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.type-badge.movie {
  background: rgba(249, 157, 28, 0.1);
  color: #f99d1c;
}

.type-badge.series {
  background: rgba(86, 204, 242, 0.1);
  color: #56ccf2;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.published {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
}

.status-badge.pending {
  background: rgba(242, 153, 74, 0.1);
  color: #f2994a;
}

.status-badge.not-available {
  background: rgba(235, 87, 87, 0.1);
  color: #eb5757;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .table-responsive {
    margin: 10px 0;
    border-radius: 6px;
  }

  .dark-table {
    font-size: 13px;
  }

  .dark-table th,
  .dark-table td {
    padding: 12px 10px;
  }

  .dark-table th {
    font-size: 11px;
  }

  .type-badge,
  .status-badge {
    padding: 3px 6px;
    font-size: 11px;
  }
}

/* For very small screens */
@media screen and (max-width: 480px) {
  .dark-table th,
  .dark-table td {
    padding: 10px 8px;
  }

  .type-badge,
  .status-badge {
    padding: 2px 4px;
    font-size: 10px;
  }
}

/* Optional: Hide less important columns on small screens */
@media screen and (max-width: 400px) {
  .dark-table th:nth-child(4),
  .dark-table td:nth-child(4) {
    display: none;
  }
  #request-form h2 {
    height: auto;
    font-size: 16px;
  }
}

.block-content.genres {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  margin: 0;
}

.block-content.genres ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.block-content.genres li {
  position: relative;
  overflow: hidden;
}

.block-content.genres a {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 6px;
  background: #f0f2f5;
  color: #1a1d1f;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.block-content.genres a:hover {
  background: #f99d1c;
  color: #111;
  transform: translateY(-1px);
}

.block-content.genres a:active {
  transform: translateY(0);
}

@media (max-width: 375px) {
  .block-content.genres ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .block-content.genres a {
    font-size: 12px;
    min-height: 36px;
  }
}

@media (max-width: 280px) {
  .block-content.genres ul {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .block-content.genres a {
    background: transparent;
    color: #e5e7eb;
  }

  .block-content.genres a:hover {
    background: #f99d1c;
    color: #111;
  }
}

/* Specific container styles */
#awards-search {
  --awards-primary: #f99d1c;
  --awards-secondary: #f99d1c;
  --awards-bg: #fff;
  --awards-text: #1a1a1a;
  --awards-border: #e5e5e5;
  --awards-shadow: rgba(201, 176, 55, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

#awards-search .awards-tab-container {
  background: var(--awards-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--awards-shadow);
  overflow: hidden;
}

#awards-search .awards-tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--awards-border);
}

#awards-search .awards-tab-btn {
  flex: 1;
  padding: 15px;
  border: none;
  background: none;
  color: var(--awards-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

#awards-search .awards-tab-btn.active {
  color: var(--awards-primary);
}

#awards-search .awards-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--awards-primary);
}

#awards-search .awards-tab-content {
  padding: 16px;
}

#awards-search .awards-tab-pane {
  display: none;
}

#awards-search .awards-tab-pane.active {
  display: block;
}

#awards-search .awards-form-group {
  margin-bottom: 12px;
}

#awards-search select {
  width: 100%;
  padding: 15px 12px;
  border: 1px solid var(--awards-border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--awards-text);
  background-color: var(--awards-bg);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

#awards-search .awards-radio-group {
  display: flex;
  gap: 16px;
  padding: 8px 0;
}

#awards-search .awards-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

#awards-search .awards-radio-label input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--awards-border);
  border-radius: 50%;
  margin: 0;
  cursor: pointer;
  position: relative;
}

#awards-search .awards-radio-label input[type="radio"]:checked {
  border-color: var(--awards-primary);
}

#awards-search .awards-radio-label input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--awards-primary);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#awards-search .awards-radio-label span {
  font-size: 13px;
  color: var(--awards-text);
}

#awards-search .awards-submit {
  width: 100%;
  padding: 10px;
  background: linear-gradient(
    135deg,
    var(--awards-primary),
    var(--awards-secondary)
  );
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

#awards-search .awards-submit:hover {
  filter: brightness(1.1);
}

#awards-search .awards-loading {
  opacity: 0.8;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  #awards-search {
    --awards-bg: #1a1a1a;
    --awards-text: #e5e5e5;
    --awards-border: #333;
    --awards-shadow: rgba(201, 176, 55, 0.1);
  }

  #awards-search select {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

/* Mobile view */
@media (max-width: 480px) {
  #awards-search.awards-mobile .awards-radio-group {
    gap: 30px;
  }
  #awards-search .awards-radio-label span {
    font-size: 18px;
  }
}



/* Slider Style */



.slider-container {
    max-width: 1140px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.mainslider {
    position: relative;
    height: 325px;
    display: flex;
    justify-content: center;
}

.mainslider.rtl {
    direction: rtl;
}

.slide {
    position: absolute;
    width: 217px;
    height: 325px;
    border-radius: 12px;
    transition: all 0.5s ease;
    cursor: pointer;
    object-fit: cover;
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
    pointer-events: none;
}

.slide.active {
    z-index: 3;
    opacity: 1;
    transform: translateX(0) scale(1.05);
    pointer-events: auto;
}

.slide.prev,
.slide.next {
    z-index: 2;
    opacity: 1;
    transform: translateX(0) scale(0.9);
    pointer-events: auto;
}

.slide.prev-2,
.slide.next-2 {
    z-index: 1;
    opacity: 0.5;
    transform: translateX(0) scale(0.9);
    pointer-events: auto;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(238 164 4 / 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 4;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: #ffc14d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.slider-nav.slider-prev {
    left: 20px;
}

.slider-nav.slider-next {
    right: 20px;
}

.rtl .slider-nav.slider-prev {
    left: auto;
    right: 20px;
}

.rtl .slider-nav.slider-next {
    right: auto;
    left: 20px;
}

.mainslider a {
    text-decoration: none;
    pointer-events: none;
}

.mainslider a:focus {
    outline: none;
}

.mainslider a .slide.active {
    pointer-events: auto;
}