body {
font-family: Arial, sans-serif;
background: #121212;
color: #eee;
margin: 0;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
box-sizing: border-box;
}

/ 1 блок - заголовок H1 по центру /
h1 {
text-align: center;
font-size: 3rem;
margin-bottom: 20px;
color: #f5c518;
text-shadow: 0 0 8px #f5c518;
padding: 0 10px;
word-break: break-word;
}

/ 2 блок - постер по центру, высота 300px /
.poster {
display: block;
height: 300px;
width: auto;
max-width: 100%;
border-radius: 10px;
box-shadow: 0 0 20px rgba(245, 197, 24, 0.7);
margin-bottom: 30px;
object-fit: contain;
}

/ 3 блок - описание с заголовком H2 /
body h2 {
max-width: 700px;
font-size: 1.6rem;
line-height: 1.2;
margin: 20px auto 30px auto;
color: #ddd;
text-shadow: 0 0 2px #f5c518;
padding: 0 10px;
word-break: break-word;
}

body p {
max-width: 700px;
font-size: 1.1rem;
line-height: 1.6;
text-align: justify;
margin: 0 auto 30px auto;
color: #ddd;
box-sizing: border-box;
}

body ul {
max-width: 700px;
font-size: 1.1rem;
line-height: 1.3;
text-align: justify;
margin: 0 auto 30px auto;
color: #ddd;
padding: 0 15px;
box-sizing: border-box;
}

/ 4 блок - кнопка и рейтинг /
.watch-container {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 50px;
gap: 15px;
width: 100%;
max-width: 700px;
box-sizing: border-box;
padding: 0 10px;
}

.watch-button {
background: #f5c518;
color: #121212;
font-weight: bold;
font-size: 1.8rem;
padding: 12px 40px;
border: none;
border-radius: 30px;
cursor: pointer;
box-shadow: 0 5px 15px rgba(245, 197, 24, 0.6);
transition: background 0.3s ease, transform 0.2s ease;
user-select: none;
width: fit-content;
max-width: 100%;
white-space: nowrap;
}

.watch-button:hover,
.watch-button:focus {
background: #d4a70a;
transform: scale(1.05);
box-shadow: 0 8px 20px rgba(212, 167, 10, 0.8);
outline: none;
}

/ Рейтинг звезд - крупнее и по центру /
.rating {
display: flex;
justify-content: center;
gap: 8px;
font-size: 3rem;
color: #f5c518;
user-select: none;
}

.star {
font-size: 34px;
cursor: default;
transition: color 0.3s ease;
}

.star.empty {
color: #555;
}

/ 5 блок - комментарии /
.comments-section {
width: 100%;
max-width: 700px;
box-sizing: border-box;
padding: 0 10px 40px 10px;
}

.comments-section h3 {
font-size: 1.5rem;
margin: 100px 0 20px 20px;
}

.comment {
background: #2a2a2a;
border-radius: 8px;
padding: 15px 20px;
margin-bottom: 15px;
color: #ccc;
box-shadow: inset 0 0 5px rgba(245, 197, 24, 0.3);
word-break: break-word;
}

.comment .author {
font-weight: bold;
color: #f5c518;
margin-bottom: 5px;
}

.comment .text {
font-size: 1rem;
line-height: 1.4;
max-width: 700px;
}

/ Форма комментариев - поля друг под другом /
form {
display: flex;
flex-direction: column;
gap: 15px;
margin-top: 20px;
}

form label {
font-weight: bold;
color: #f5c518;
margin-bottom: 5px;
user-select: none;
}

form input[type="text"],
form textarea {
border-radius: 6px;
border: 1px solid #444;
background: #121212;
color: #eee;
padding: 10px;
font-size: 1rem;
resize: vertical;
transition: border-color 0.3s ease;
width: 100%;
box-sizing: border-box;
}

form input[type="text"]:focus,
form textarea:focus {
border-color: #f5c518;
outline: none;
box-shadow: 0 0 8px #f5c518;
}

form textarea {
min-height: 80px;
}

form button[type="submit"] {
align-self: center;
background: #f5c518;
color: #121212;
font-weight: bold;
font-size: 1.2rem;
padding: 10px 30px;
border: none;
border-radius: 30px;
cursor: pointer;
user-select: none;
white-space: nowrap;
max-width: 100%;
width: fit-content;
}

form button[type="submit"]:hover{
background: #d4a70a;
outline: none;
}

/ 6 блок - футер /
footer {
text-align: center;
color: #777;
font-size: 0.9rem;
padding: 15px 0;
border-top: 1px solid #333;
width: 100%;
box-sizing: border-box;
margin-top: auto;
}

/ Адаптивность для мобильных устройств /
@media (max-width: 768px) {
h1 {
font-size: 2.2rem;
}

h2 {
font-size: 1.6rem;
}

.description {
font-size: 1rem;
max-width: 100%;
padding: 0 10px;
}

.watch-button {
font-size: 1.1rem;
padding: 10px 25px;
}

.rating {
font-size: 2.5rem;
gap: 6px;
}

.comments-section {
max-width: 100%;
padding: 0 10px 30px 10px;
}

form button[type="submit"] {
font-size: 1rem;
padding: 8px 25px;
}
}

@media (max-width: 400px) {
h1 {
font-size: 1.8rem;
}

h2 {
font-size: 1.3rem;
}

.description {
font-size: 0.95rem;
padding: 0 8px;
}

.watch-button {
font-size: 1rem;
padding: 8px 20px;
}

.rating {
font-size: 2rem;
gap: 4px;
}

form button[type="submit"] {
font-size: 0.95rem;
padding: 7px 20px;
}
}