* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: #ecf0f1;
  font-family: Tahoma, sans-serif;
  background-image: url(/imgs/Rubber-duck-clipart-stormdesignz.png);
  background-repeat: repeat;
  background-size: 50px;
  animation: animatedBackground 200s linear infinite;
}

@keyframes animatedBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -100% 100%;
  }
}

.left-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 220px;
  background: linear-gradient(to bottom, #1b2632 0, #304358 100%);
  box-shadow: 0 0 5px #000;
  padding: 14px 10px;
}

.left-menu .logo {
  height: 92px;
  background-image: url(/imgs/logo.png);
  background-size: auto 85px;
  background-repeat: no-repeat;
  background-position: center;
}

.left-menu .menu-title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 12px;
  opacity: 0.9;
}

.left-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.left-menu li {
  padding: 10px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.12);
  margin-bottom: 8px;
}

.main-content {
  margin-left: 220px;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.62);
  padding: 58px 18px 24px;
}

.topbar {
  position: fixed;
  left: 220px;
  right: 0;
  top: 0;
  height: 44px;
  background: #1b2632;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 0 6px #000;
  z-index: 2;
}

.title {
  font-size: 18px;
  font-weight: 700;
}

.updated-at {
  color: #bdc3c7;
  font-size: 12px;
}

.search-block {
  position: relative;
  width: min(760px, 100%);
  margin: 0 0 14px;
}

.search-block .search-icon {
  position: absolute;
  left: 10px;
  top: 8px;
}

.search-block input {
  width: 100%;
  height: 36px;
  border: none;
  border-radius: 5px;
  box-shadow: 0 3px 10px #000;
  padding: 4px 12px 4px 34px;
  font-size: 16px;
  background-color: rgba(236, 240, 241, 0.93);
}

.search-block input:focus {
  outline: none;
}

.movies-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.movie-card {
  border-radius: 5px;
  display: flex;
  min-height: 160px;
  background: linear-gradient(to right, #2c3e50 0, #1a252f 100%);
  box-shadow: 0 0 5px #000;
  overflow: hidden;
}

.poster-wrap {
  width: 110px;
  min-width: 110px;
  background: #111;
}

.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.movie-data {
  width: 100%;
  padding: 10px;
}

.movie-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.movie-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.score-pill {
  background: #27ae60;
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.meta-row {
  margin-top: 6px;
  color: #9ec2df;
  font-size: 13px;
}

.overview {
  margin: 8px 0;
  color: #d7e1ea;
  font-size: 13px;
}

.actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #2980b9;
  border-radius: 4px;
  font-size: 12px;
  padding: 6px 8px;
}

.action-btn:hover {
  background: #3498db;
}

.empty-state {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  padding: 12px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .left-menu {
    position: static;
    width: 100%;
    height: auto;
  }

  .main-content {
    margin-left: 0;
    padding-top: 100px;
  }

  .topbar {
    left: 0;
    top: 74px;
  }

  .movie-card {
    flex-direction: column;
  }

  .poster-wrap {
    width: 100%;
    min-width: 100%;
    height: 220px;
  }
}
