File size: 1,967 Bytes
c9869b0
 
 
 
 
 
e17b178
 
 
 
c9869b0
 
 
 
 
 
 
 
 
 
5989701
 
 
 
c9869b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59990de
 
c9869b0
 
 
 
 
 
 
 
 
 
 
59990de
c9869b0
 
 
 
 
 
 
 
59990de
c9869b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59990de
 
 
 
c9869b0
 
 
 
 
 
 
 
59990de
c9869b0
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
.movie-card:hover .movie-card-poster{
  transform: scale(1.1);
}

.movie-card {
  position: relative;
  width: 130px;
  height: 250px;
  min-width: 130px;
  min-height: 250px;
  margin: 10px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  border: 1px solid var(--primary-special-color);
  border-left: none;
  border-right: none;
  background-image: linear-gradient(120deg, var(--card-color), var(--bg-secondary));
}

.movie-card-image-container {
  position: relative;
  width: 100%;
  height: inherit;
}

.movie-card-poster {
  object-fit: cover;
  object-position: top;
  border-radius: 8px 8px 0 0;
  animation: fade-in 2s forwards;
  opacity: 0;
  transition: transform .1s ease;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.movie-card-info {
  position: relative;
  width: 100%;
  height: 30%;
  padding: 5px;
  color: #fff;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none !important;
}

.movie-card-title {
  margin: 0;
  font-size: .8rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card-year {
  margin: 5px 0 0;
  font-size: .8rem;
  font-weight: 200;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.error {
  color: #e74c3c;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (orientation: portrait) {
  .movie-card {
    width: 100px;
    min-width: 100px;
    height: 200px;
    min-height: 200px;
    margin: 5px;
  }
  .movie-card-info {
    height: 30%;
    padding: 5px;
  }
  .movie-card-title {
    margin: 0;
    font-size: .8rem;
  }

  .movie-card-year {
    margin: 5px 0 0;
    font-size: 0.8rem;
  }
}