-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathplayer.css
194 lines (169 loc) · 5.87 KB
/
player.css
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
/* General Styles */
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: var(--background-color, #000); /* Default black background */
color: var(--text-color, #fff); /* Default white text */
display: flex;
flex-direction: column;
align-items: center;
height: 100vh; /* Full viewport height */
overflow-x: hidden; /* Prevent horizontal scroll */
background-image: var(--background-image); /* Use CSS variable */
background-size: cover; /* Cover the entire screen */
background-position: center; /* Center the background image */
background-repeat: no-repeat;
}
/* Theme Classes */
.theme-dark, .theme-light, .theme-blue {
--background-image: none; /* Default for all themes */
}
/* Navbar Styles */
.navbar {
position: fixed; /* Fix the navbar at the top */
top: 0;
left: 0;
width: 100%;
display: flex;
justify-content: space-between; /* Space between items */
align-items: center;
padding: 10px 20px; /* Adjusted padding */
background-color: var(--navbar-background); /* Themed background color */
color: var(--text-color); /* Themed text color */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
z-index: 1000; /* Ensure navbar is on top */
box-sizing: border-box; /* Include padding in element's total width and height */
}
/* Branding */
.navbar .brand {
flex: 1; /* Allows the brand to take up available space */
}
.navbar h1 {
font-size: 24px;
margin: 0;
color: var(--navbar-brand-color); /* Themed brand name color */
}
/* Search Bar */
.navbar .search-container {
flex: 0 0 auto; /* Prevent flex item from shrinking */
}
.navbar input[type="text"] {
padding: 8px; /* Adjusted padding */
font-size: 16px;
width: 300px; /* Fixed width */
border-radius: 5px;
border: none;
background-color: var(--input-background); /* Themed background for the input */
color: var(--text-color); /* Themed text color */
}
/* Suggestion Box */
.suggestion-box {
position: absolute;
top: 100%; /* Position below the search input */
right: 0; /* Align with the right edge of the search input */
width: 100%;
max-width: 300px;
background-color: var(--suggestion-background); /* Themed background color */
color: var(--text-color); /* Themed text color */
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
z-index: 1000;
margin-top: 5px;
display: none; /* Hidden by default */
}
.navbar input[type="text"]:focus + .suggestion-box,
.navbar input[type="text"]:active + .suggestion-box {
display: block; /* Show suggestion box when input is focused or active */
}
.suggestion-item {
padding: 10px;
cursor: pointer;
border-bottom: 1px solid var(--border-color); /* Themed border */
}
.suggestion-item:last-child {
border-bottom: none;
}
.suggestion-item:hover {
background-color: var(--suggestion-hover-background); /* Themed hover background */
color: var(--text-color); /* Themed text color */
}
/* Movie Details Container */
.movie-details {
background-color: var(--navbar-background); /* Themed background color */
color: var(--text-color); /* Themed text color */
border-radius: 10px;
padding: 40px; /* Increased padding */
max-width: 1200px; /* Increased maximum width */
width: 90vw; /* Use viewport width to make it wider */
box-sizing: border-box;
margin-top: 100px; /* Increased space from the top (below the navbar) */
text-align: center;
}
/* Trailer Container */
.trailer-container {
width: 100%; /* Ensure full width of the container */
max-width: 1200px; /* Match maximum width with movie details */
margin-top: 20px; /* Space from the top (or below other content) */
box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
.trailer-container iframe {
width: 100%; /* Full width of the container */
height: 500px; /* Increased height for better aspect ratio */
border: none;
border-radius: 10px; /* Rounded corners for iframe */
}
/* Movie Info Section */
.movie-info p {
font-size: 16px;
margin: 10px 0;
}
/* Buttons */
.button, .back-button {
display: inline-block;
margin: 10px 5px;
padding: 10px 15px;
background-color: var(--button-background); /* Themed button background */
color: var(--text-color); /* Themed text color */
text-decoration: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}
.button:hover {
background-color: var(--button-hover-background); /* Themed hover background */
}
.back-button {
background-color: var(--back-button-background); /* Themed back button background */
}
.back-button:hover {
background-color: var(--back-button-hover-background); /* Themed hover background */
}
/* Responsive Design */
@media (max-width: 768px) {
.navbar {
flex-direction: column;
align-items: flex-start;
}
.navbar .search-container {
margin-left: 0; /* Remove margin on smaller screens */
width: 100%; /* Full width for search container */
margin-top: 10px; /* Add space on top */
}
.navbar input[type="text"] {
width: 100%; /* Full width for search input */
}
.movie-details {
margin-top: 80px; /* Adjusted for smaller screens */
padding: 20px; /* Adjust padding for smaller screens */
width: 95vw; /* Increase width on smaller screens */
}
}
@media (max-width: 480px) {
.movie-details {
padding: 15px; /* Further adjusted padding for very small screens */
width: 100vw; /* Ensure full width on very small screens */
}
.trailer-container iframe {
height: 315px; /* Adjust height for very small screens */
}
}