@import url("../../styles/global.css");

body {
  min-height: 100vh;
  margin: 0;
  position: relative;
  background-color: var(--TEXT-color_8);
  font-family: var(--Font_Roboto);
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}

.left {
  display: flex;
  position: fixed;
  z-index: 999;
  left: 0;
  flex-direction: column;
  align-items: center;
  width: 56px;
  background: var(--SideBar-color);
  padding-top: 40px;
  backdrop-filter: blur(24px);
  box-shadow: 0px 40px 40px 8px #00000029;
}

.logo-div {
  margin-bottom: 64px;
}

.sidebar {
  width: 32px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon {
  margin-bottom: 80px;
  display: block;
  text-align: center;
}

.icon img {
  transition:
    filter 0.3s,
    transform 0.3s;
}

.icon img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.icon:hover {
  cursor: pointer;
}

.icon.active img {
  filter: brightness(0) saturate(100%) invert(70%) sepia(70%) saturate(1000%)
    hue-rotate(140deg);
}

/* =========================
   CONTENT
========================= */

.search-content {
  padding: 45px 55px 60px;
}

.search-result {
  width: 100%;
}

.result-title h2 {
  margin: 0;
  color: white;
  font-size: 24px;
  font-weight: 600;
}

.result-header {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 35px;
}

/* LEFT SIDE */

.result-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-title h2 {
  margin: 0;

  font-size: 24px;
  font-weight: 600;
}

.arrow {
  font-size: 30px;
  line-height: 1;
  color: #aaa;
}

.search-panel {
  width: 280px;
  height: 42px;

  display: flex;
  align-items: center;

  background-color: #292929;
  border: 1px solid #3d3d3d;
  border-radius: 8px;

  overflow: hidden;
}

.search-input {
  width: 100%;
  height: 100%;

  padding: 0 14px;

  border: none;
  outline: none;

  background: transparent;
  color: white;

  font-size: 14px;
}

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

.search-button {
  width: 45px;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  background: transparent;

  color: #aaa;
  cursor: pointer;

  font-size: 15px;
}

.search-button:hover {
  color: white;
}

.movies-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px 22px;
}

.movie-card {
  min-width: 0;
  background-color: transparent;
  overflow: hidden;

  flex: 0 0 200px;
}

.movie-card > img {
  display: block;

  width: 100%;
  height: 270px;

  object-fit: cover;
  object-position: center;

  border-radius: 8px;
}

.movie-info {
  padding-top: 12px;
}

.movie-type {
  display: block;

  margin-bottom: 6px;

  color: #999;

  font-size: 13px;
}

.movie-info h3 {
  margin: 0 0 8px;

  font-size: 16px;
  font-weight: 500;

  line-height: 1.3;

  color: white;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-rating {
  display: flex;
  align-items: center;
  gap: 6px;

  color: #ddd;

  font-size: 13px;
}

.movie-rating i {
  color: #f4c542;
  font-size: 12px;
}

@media (min-width: 1440px) {
  .movie-card > img {
    height: 300px;
  }
}

@media (max-width: 1100px) {
  .movie-card > img {
    height: 250px;
  }
}

@media (max-width: 800px) {
  .search-content {
    padding: 35px 25px;
  }

  .search-panel {
    width: 240px;
  }
}

@media (max-width: 600px) {
  .result-title h2 {
    font-size: 20px;
  }

  .search-panel {
    width: 200px;
    height: 38px;
  }
  .search-input {
    width: 140px;
  }

  .movie-card > img {
    height: 320px;
  }
}

.error-message {
  color: red;
}
