body {
  background-color: #121212;
  color: #fff;
  font-family: 'Tahoma', sans-serif;
  direction: rtl;
  margin: 0px;
}

* {
  font-family: 'Tahoma', sans-serif;
}

.top-banner {
  text-align: right;
  font-family: 'Vazir', sans-serif;
  font-size: 22px;
  padding: 10px 20px;
  color: #00bcd4;
  width: 95%;
  height: 50px;
}

.call-link {
  text-decoration: none;
  color: #00bcd4;
  transition: color 0.3s ease;
  float: right;
  margin: 0px;
}

.nav {
  display: inline-flex;
}

.search {
  display: inline-flex;
  float: left;
}

.top-banner li {
  margin: 10px;
  overflow: hidden;
}

.top-banner a {
  text-decoration: none;
  color: #00bcd4;
}

.call-link:hover {
  color: #87ceeb;
}

.container {
  max-width: 800px;
  margin: auto;
}

.site-title {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  background: linear-gradient(to right, #00bcd4, #87ceeb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-top: 100px;
  letter-spacing: 5px;
}

.film-carousel {
  margin: 40px 0;
}

.carousel-wrapper {
  perspective: 1000px;
  overflow: hidden;
  height: 300px;
  position: relative;
}

.carousel {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  animation: rotate360 30s linear infinite;
}

.carousel img {
  position: absolute;
  width: 120px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.carousel img:hover {
  transform: scale(1.2);
}

@keyframes rotate360 {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

input[type="text"] {
  width: 50%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  float: left;
  margin: 10px;
}

#searchBtn {
  background-color: #87ceeb;
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  float: left;
  height: 40px;
  margin-top: 10px;
}

.results,
.comments,
.rating,
.contact,
.owner-info {
  margin-top: 30px;
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
}

.stars-container {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 5px;
}

.stars-container input {
  display: none;
}

.stars-container label {
  font-size: 30px;
  color: #444;
  cursor: pointer;
  transition: color 0.2s;
}

.stars-container label:hover,
.stars-container label:hover~label {
  color: gold;
}

.stars-container input:checked~label {
  color: gold;
}

.comments {
  margin-top: 30px;
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.2);
}

.comment-list {
  margin-top: 15px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.comment-item {
  background-color: #2a2a2a;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-right: 3px solid #00bcd4;
}

.comment-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.comment-actions span {
  cursor: pointer;
  color: #ccc;
}

#commentText {
  width: 100%;
  border-radius: 5px;
  padding: 12px;
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  resize: vertical;
  min-height: 100px;
  margin-bottom: 10px;
}

#submitComment {
  background-color: #00bcd4;
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
}

.about-box {
  background-color: #1e1e1e;
  padding: 10px 20px;
  border-radius: 10px;
  align-items: center;
  box-shadow: 0 0 10px #00bcd4;
  height: 50px;
  width: 95%;
}

.experience-tag {
  background-color: #00bcd4;
  color: #000;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}

.film-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.film-modal-content {
  background: #1e1e1e;
  border-radius: 15px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
}

.film-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.film-modal-title {
  font-size: 24px;
  font-weight: bold;
  color: #00bcd4;
}

.film-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.film-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .film-modal-body {
    flex-direction: row;
  }
}

.film-modal-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.film-modal-image img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 10px;
  object-fit: cover;
}

.film-modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.film-detail-item {
  display: flex;
  margin-bottom: 10px;
}

.film-detail-label {
  color: #00bcd4;
  font-weight: bold;
  min-width: 80px;
}

.film-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.film-genre {
  background: rgba(0, 188, 212, 0.2);
  color: #00bcd4;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  border: 1px solid #00bcd4;
}

.placeholder-image {
  width: 200px;
  height: 300px;
  background: linear-gradient(45deg, #00bcd4, #87ceeb);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: bold;
  font-size: 18px;
}

.boxplace {
  width: 100%;
  height: 100%;
}

.left {
  float: right;
  width: 30%;
  height: 100%;
}

.card .left img {
  width: 337px;
  float: right;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}

.card .right {
  width: 70%;
  height: 100%;
  justify-content: center;
  align-items: center;
  direction: rtl;
}


.r h1{
  font-size: 3vw;
}
.r p{
  font-size: 1vw;
  width: 40vw;
}
.card {
  perspective: 3000px;
  cursor: pointer;
  margin: 10px;
  height: 190px;
  width: 95%;
  margin-top: 150px;
  margin: 60px;
  transition: 400ms linear;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.card-front {
  background: rgb(63, 63, 63);
  border: 1px solid #e5e7eb;
}

.card-back {
  background: #000000;
  color: white;
  transform: rotateY(180deg);
    border: 1px solid #e5e7eb;
}

.card-back a {
  text-decoration: none;
  color: #ffffff;
}

@media (max-width:850px){
.card .left img {
  width: 237px;
  float: right;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}
.card{
  height: 134px;
}
}
@media (max-width:650px){
.card .left img {
  width: 137px;
  float: right;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}
.card{
  height: 77px;
  margin-right: 5%;
}
}
