:root {
    --bg-color: #0b0c10;
    --card-bg: #1f2833;
    --accent: #f50f39;
    --text-main: #c5c6c7;
    --white: #ffffff;
    --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; scroll-behavior: smooth; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5px; }

header { background-color: #000; padding: 20px 0; border-bottom: 2px solid var(--accent); }
.logo { font-size: 28px; font-weight: bold; color: var(--white); }
.logo span { color: var(--accent); }

.nav-menu { margin-top: 15px; display: flex; gap: 25px; justify-content: flex-start; flex-wrap: wrap; }
.nav-menu a { color: var(--text-main); font-size: 16px; font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: var(--accent); text-decoration: none; }

main { padding: 40px 0; }
h1 { color: var(--white); font-size: 32px; margin-bottom: 15px; }
h2, h3 {
  color: var(--white);
  margin: 10px;
  font-size: 17px;
}

.movie-info { display: flex; gap: 30px; margin-bottom: 40px; background: var(--card-bg); padding: 20px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,0.5); align-items: flex-start; }

.poster { flex: 0 0 250px; border-radius: var(--radius); overflow: hidden; background: #000; display: block; }
.poster img { display: block; width: 100%; height: auto; object-fit: cover; }

.details { flex: 1; display: flex; flex-direction: column; }
.details p { margin-bottom: 10px; font-size: 16px; }
.details strong { color: var(--white); }
.badge { background: var(--accent); color: var(--white); padding: 5px 10px; border-radius: 5px; font-size: 14px; font-weight: bold; margin-right: 10px; }
.badge-green { background: #2ecc71; }

.watch-btn {
    display: block;
    width: 100%;
    background-color: var(--accent);
    color: var(--white);
    padding: 18px 0;
    border-radius: var(--radius);
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(245, 15, 57, 0.3);
    text-decoration: none;
}
.watch-btn:hover {
    background-color: #d10d32;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 15, 57, 0.5);
    text-decoration: none;
}
.watch-btn:active { transform: translateY(1px); }

@media (max-width: 768px) {
    .watch-btn { position: sticky; bottom: 10px; z-index: 100; margin-top: 10px; }
    .movie-info { flex-direction: column; align-items: center; }
    .poster { flex: 0 0 auto; width: 100%; max-width: 300px; }
    h1 { font-size: 24px; }
    .nav-menu { justify-content: center; gap: 20px; }
}

.player-section { margin: 40px 0; background: #000; border-radius: var(--radius); padding: 0px; box-shadow: 0 5px 25px rgba(245, 15, 57, 0.2); }
.video-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #111; border-radius: 8px; overflow: hidden; }

.seo-text-block { background: var(--card-bg); padding: 30px; border-radius: var(--radius); margin-bottom: 40px; }
.seo-text-block p { margin-bottom: 15px; text-align: justify; }
.keywords-cloud { background: #151a22; padding: 15px; border-radius: 8px; font-size: 13px; color: #888; margin-top: 20px; border: 1px dashed #333; }

.reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-item { background: var(--card-bg); padding: 20px; border-radius: var(--radius); border-left: 4px solid var(--accent); }
.review-header { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--white); font-weight: bold; }
.rating { color: #f1c40f; }

footer { text-align: center; padding: 30px; border-top: 1px solid #333; margin-top: 40px; font-size: 14px; color: #666; }
.rating-share-block {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px 30px;
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.online-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(46, 204, 113, 0.15);
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.online-dot {
    width: 10px;
    height: 10px;
    background-color: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 5px #2ecc71;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.online-text {
    color: #2ecc71;
    font-weight: bold;
    font-size: 14px;
}

#online-count {
    font-size: 18px;
    font-weight: bold;
}

.rating-block {
    text-align: center;
    min-width: 200px;
}

.rating-block__title {
    color: var(--white);
    font-size: 14px;
    margin-bottom: 0px;
    opacity: 0.8;
}

.stars-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.star {
    font-size: 32px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease;
}

.star.active {
    color: #f1c40f;
    text-shadow: 0 0 5px rgba(241, 196, 15, 0.5);
}

.rating-block__info {
    margin-top: 0px;
    font-size: 13px;
    color: #888;
}

.rating-value {
    color: #f1c40f;
    font-weight: bold;
    font-size: 16px;
}

.rating-votes {
    margin-left: 5px;
}

.share-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-block__title {
    font-size: 14px;
    color: var(--text-main);
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-block__title {
    font-size: 14px;
    color: var(--text-main);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s;
    text-decoration: none;
}

.share-btn i {
    color: white;
}

.share-btn:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.share-vk { background: #0077ff; }
.share-tg { background: #0088cc; }
.share-wa { background: #25d366; }
.share-ok { background: #ee8208; }

.share-vk:hover { background: #0066cc; }
.share-tg:hover { background: #006699; }
.share-wa:hover { background: #1da15a; }
.share-ok:hover { background: #cc6a00; }

/* ========== ТЕКСТ ДОСТУПНОСТИ ========== */
.availability-text {
    background: rgba(46, 204, 113, 0.05);
    padding: 20px 25px;
    border-radius: var(--radius);
    margin: 20px 0;
    border-left: 3px solid #2ecc71;
    font-size: 15px;
    line-height: 1.6;
}

.availability-text p {
    margin: 0;
    color: var(--text-main);
}

/* ========== ФОРМА ОТЗЫВА ========== */
.review-form-block {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px 30px;
    margin: 30px 0;
    border-left: 4px solid var(--accent);
}

.review-form-block h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: var(--white);
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #0d1117;
    border: 1px solid #333;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.submit-review-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    max-width: 200px;
}

.submit-review-btn:hover {
    background: #d10d32;
    transform: translateY(-2px);
}

.review-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.review-message.success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.review-message.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.rating-message {
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .rating-share-block {
        flex-direction: column;
        text-align: center;
    }
    .star {
        font-size: 28px;
    }
    .submit-review-btn {
        max-width: 100%;
    }
}