: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 15px; }

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: 20px 0; }
h1 { color: var(--white); font-size: 24px; margin-bottom: 20px; word-break: break-word; }
h2, h3 { color: var(--white); margin: 20px 0 15px; font-size: 20px; }

/* Плеер секция */
.player-section { margin: 20px 0; background: #000; border-radius: var(--radius); padding: 15px; }
.player-section h2 { margin-bottom: 15px; font-size: 18px; }

/* Главная сетка */
.subtitle { text-align: center; margin-bottom: 30px; color: #888; }
.films-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}
.film-card { position: relative; }
.film-link { text-decoration: none; display: block; }
.film-poster-placeholder {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.film-title-overlay {
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    padding: 30px 10px 15px;
    text-align: center;
}
.film-title-overlay span { 
    color: white; 
    font-weight: bold; 
    font-size: 16px; 
    display: block; 
    text-shadow: 1px 1px 2px black;
    word-break: break-word;
}
.film-year {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
}

/* Блок о фильме */
.movie-info { background: var(--card-bg); padding: 20px; border-radius: var(--radius); margin-bottom: 20px; }
.details-full p { margin-bottom: 10px; line-height: 1.5; }
.details-full p:last-child { margin-bottom: 0; }

/* Рейтинг и шаринг */
.rating-share-block {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.online-counter { display: flex; align-items: center; gap: 10px; }
.online-dot { width: 10px; height: 10px; background-color: #2ecc71; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
.stars-rating { display: flex; gap: 5px; }
.star { font-size: 28px; cursor: pointer; color: #555; transition: all 0.2s; }
.star.active { color: #f1c40f; }
.rating-block__title, .share-block__title { font-size: 14px; margin-bottom: 8px; color: #aaa; }
.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; }
.share-btn i { color: white; }
.share-vk { background: #0077ff; }
.share-tg { background: #0088cc; }
.share-wa { background: #25d366; }
.share-ok { background: #ee8208; }
.share-btn:hover { transform: translateY(-3px); text-decoration: none; }

/* SEO блоки */
.seo-text-block, .seo-text { background: var(--card-bg); padding: 20px; border-radius: var(--radius); margin: 20px 0; }
.content-with-paragraphs p { margin-bottom: 15px; line-height: 1.7; }
.content-with-paragraphs p:last-child { margin-bottom: 0; }
.availability-text { background: rgba(46, 204, 113, 0.05); padding: 15px; border-radius: var(--radius); margin: 20px 0; border-left: 3px solid #2ecc71; }

/* Другие страницы */
.other-pages-links { background: var(--card-bg); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.pages-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pages-list a { background: rgba(245, 15, 57, 0.1); padding: 8px 15px; border-radius: 20px; font-size: 13px; transition: all 0.3s; }
.pages-list a:hover { background: var(--accent); color: white; text-decoration: none; }

/* Отзывы */
.reviews-list { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.review-item { background: var(--card-bg); padding: 20px; border-radius: var(--radius); border-left: 4px solid var(--accent); }
.review-header { margin-bottom: 10px; color: var(--white); font-weight: bold; }
.review-item p { margin-bottom: 10px; line-height: 1.5; }
.review-item small { color: #888; font-size: 12px; }

/* Форма отзыва */
.review-form-block {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    margin-top: 30px;
    border: 1px solid rgba(245, 15, 57, 0.3);
}
.review-form-block h3 { margin: 0 0 20px; text-align: center; }
.review-form { display: flex; flex-direction: column; gap: 15px; max-width: 600px; margin: 0 auto; }
.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: 15px;
    transition: all 0.3s;
}
.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;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}
.submit-review-btn:hover { background: #d10d32; transform: translateY(-2px); }
.review-message { margin-top: 15px; padding: 10px; 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; }

footer { text-align: center; padding: 30px; border-top: 1px solid #333; margin-top: 40px; font-size: 14px; color: #666; }

/* Адаптив */
@media (max-width: 1024px) {
    .films-grid { grid-template-columns: repeat(3, 1fr); }
    h1 { font-size: 22px; }
}
@media (max-width: 768px) {
    .films-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .rating-share-block { flex-direction: column; text-align: center; }
    .film-title-overlay span { font-size: 14px; }
}
@media (max-width: 480px) {
    .films-grid { gap: 10px; }
    .film-title-overlay span { font-size: 12px; }
    .container { padding: 0 12px; }
    .submit-review-btn { max-width: 100%; }
}
/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0 40px;
}
.page-link {
    display: inline-block;
    padding: 8px 14px;
    background: var(--card-bg);
    color: var(--text-main);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}
.page-link:hover {
    background: var(--accent);
    color: white;
    text-decoration: none;
}
.page-link.active {
    background: var(--accent);
    color: white;
    cursor: default;
}
.page-dots {
    padding: 8px 5px;
    color: #888;
}

@media (max-width: 768px) {
    .pagination {
        gap: 5px;
    }
    .page-link {
        padding: 6px 10px;
        font-size: 12px;
    }
}