/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e50914;
    --primary-dark: #b8070f;
    --secondary-color: #2e51a2;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Типография */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Хедер */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav {
    flex: 1;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Выпадающее меню */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 8px 20px;
    transition: var(--transition);
}

.dropdown-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Поиск */
.search-box {
    position: relative;
    flex: 0 1 400px;
}

.search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.search-button:hover {
    color: var(--primary-color);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-item img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.search-result-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.search-result-info .year,
.search-result-info .rating {
    color: var(--text-light);
    font-size: 12px;
}

/* Пользовательское меню */
.user-menu {
    position: relative;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-small {
    padding: 6px 15px;
    font-size: 13px;
}

.user-dropdown {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: none;
    border: none;
    color: inherit;
}

.user-button:hover {
    background: var(--bg-light);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
}

.user-dropdown:hover .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-link {
    display: block;
    padding: 8px 20px;
    transition: var(--transition);
    color: var(--text-primary);
}

.user-menu-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.user-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

.admin-link {
    color: var(--primary-color);
    font-weight: 600;
}

.logout-link {
    color: #dc3545;
}

/* Баннеры рекламы */
.ad-banner {
    padding: 20px 0;
    text-align: center;
}

.ad-banner > div {
    margin: 0 auto;
}

.top-banner,
.bottom-banner {
    background: #000;
    border-bottom: 1px solid #000;
}

.middle-banner,
.content-ad,
.sidebar-ad {
    margin: 20px 0;
}

/* Главная страница - Герой */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--bg-white);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
	margin-left: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
	margin-left: 50px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
	margin-left: 50px;
}

.hero-search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    box-shadow: var(--shadow);
}

.hero-search-button {
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

.hero-search-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.hero-features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
	margin-left: 50px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-weight: 500;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Секции */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-link {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-link:hover {
    gap: 10px;
}

/* Слайдер фильмов */
.movies-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 10px 5px;
    margin: 0 -5px;
}

.movies-slider::-webkit-scrollbar {
    height: 8px;
}

.movies-slider::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.movies-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.movie-slide {
    flex: 0 0 200px;
}

/* Сетка фильмов */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Карточка фильма */
.movie-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.movie-link {
    display: block;
    color: inherit;
}

.movie-poster {
    position: relative;
    padding-bottom: 150%;
    overflow: hidden;
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 10px;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.movie-rating {
    background: rgba(0, 0, 0, 0.7);
    color: var(--bg-white);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 14px;
}

.rating-value {
    color: #ffd700;
}

.movie-favorite {
    color: var(--bg-white);
    background: rgba(0, 0, 0, 0.7);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
}

.movie-favorite:hover,
.movie-favorite.active {
    background: var(--primary-color);
    color: var(--bg-white);
}

.movie-favorite svg {
    width: 18px;
    height: 18px;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 14px;
}

/* Сетка жанров */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.genre-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--text-primary);
}

.genre-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

.genre-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.genre-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.genre-count {
    color: var(--text-light);
    font-size: 14px;
}

/* Футер */
.footer {
    background: #2b2b2b;
    color: var(--bg-white);
    padding: 50px 0 20px;
    margin-top: 0px;
	flex-shrink: 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--bg-white);
}

.footer-text {
    color: #aaa;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    padding: 8px 15px;
    background: #3a3a3a;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    color: var(--bg-white);
    font-size: 14px;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #3a3a3a;
    color: #aaa;
    font-size: 14px;
}

.footer-stats {
    display: flex;
    gap: 20px;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification-close {
    background: none;
    color: inherit;
    font-size: 18px;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Хлебные крошки */
.breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Детальная страница фильма */
.movie-detail-page {
    min-height: 100vh;
}

.movie-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
    padding: 60px 0;
}

.movie-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.movie-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.movie-poster-large {
    flex-shrink: 0;
    width: 300px;
    position: relative;
}

.movie-poster-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.movie-poster-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

.action-button {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
}

.action-button:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.action-button svg {
    width: 20px;
    height: 20px;
}

.movie-info-main {
    flex: 1;
}

.movie-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.movie-title2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.movie-original-title {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 20px;
    font-style: italic;
}

.movie-meta-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.age-rating {
    background: var(--primary-color);
    font-weight: 600;
}

.movie-ratings {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.rating-source {
    font-size: 14px;
    color: #ccc;
}

.rating-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.rating-high { color: #4CAF50; }
.rating-medium { color: #FFC107; }
.rating-low { color: #F44336; }

.movie-genres {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.genre-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.genre-tag:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.movie-countries {
    margin-bottom: 20px;
    color: #ccc;
}

.movie-countries strong {
    color: var(--bg-white);
}

.country-tag {
    margin-left: 8px;
    font-size: 14px;
}

.movie-slogan {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.movie-actions {
    margin-top: 30px;
}

.watch-actions {
    margin-bottom: 20px;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    margin-right: 15px;
    margin-bottom: 10px;
}

.watch-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

.watch-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.watch-secondary {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.watch-secondary:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

.quality-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.external-links {
    margin-top: 20px;
}

.links-title {
    color: #ccc;
    margin-bottom: 10px;
    font-size: 14px;
}

.external-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.no-links-message {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    color: #ccc;
}

.no-links-message2 {
    background: rgba(171, 26, 177, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    color: #ccc;
}

.no-links-message3 {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    color: #ccc;
}

.no-links-message4 {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    color: #ccc;
}

/* Контент фильма */
.movie-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0;
}

.movie-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.movie-description {
    line-height: 1.8;
    font-size: 16px;
    color: var(--text-primary);
}

/* Актеры и создатели */
.persons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.person-card {
    text-align: center;
    transition: var(--transition);
}

.person-card:hover {
    transform: translateY(-5px);
}

.person-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    background: var(--bg-light);
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
}

.person-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.person-role {
    color: var(--text-light);
    font-size: 13px;
}

.show-all-persons {
    text-align: center;
    margin-top: 20px;
}

.show-all-link {
    color: var(--primary-color);
    font-weight: 500;
}

/* Отзывы */
.reviews-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.average-rating {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.average-rating .rating-value {
    font-size: 2rem;
    color: var(--primary-color);
}

.rating-max {
    color: var(--text-light);
    font-size: 1rem;
}

.reviews-count {
    color: var(--text-light);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.review-date {
    color: var(--text-light);
    font-size: 12px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    color: #FFC107;
    font-size: 14px;
}

.review-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.review-text {
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.review-actions {
    display: flex;
    gap: 15px;
}

.review-action {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 15px;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 13px;
    transition: var(--transition);
    border: none;
}

.review-action:hover,
.review-action.active {
    background: var(--primary-color);
    color: var(--bg-white);
}

.review-action svg {
    width: 14px;
    height: 14px;
}

.no-reviews {
    text-align: center;
    padding: 40px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    color: var(--text-light);
}

/* Сайдбар */
.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.similar-movies {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.similar-movie {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.similar-movie:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.similar-movie img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
}

.similar-movie-info {
    flex: 1;
}

.similar-movie-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.similar-movie-year,
.similar-movie-rating {
    font-size: 12px;
    color: var(--text-light);
}

.similar-movie-rating {
    color: var(--primary-color);
    font-weight: 600;
}

.facts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fact-item {
    background: var(--bg-white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 3px solid var(--primary-color);
}

.fact-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.rating-selector {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.rating-selector input {
    display: none;
}

.rating-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.rating-selector input:checked + .rating-star {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.rating-star:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .movie-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .movie-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .movie-poster-large {
        margin: 0 auto;
    }
    
    .movie-ratings {
        justify-content: center;
    }
    
    .movie-genres {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav {
        order: 3;
        flex: 1 0 100%;
    }
    
    .nav-list {
        justify-content: center;
        gap: 20px;
    }
    
    .search-box {
        flex: 1 0 100%;
        order: 2;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .movie-slide {
        flex: 0 0 150px;
    }
    
    .genres-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .movie-title {
        font-size: 2rem;
    }
    
    .reviews-stats {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-search-form {
        flex-direction: column;
    }
    
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .movie-meta-info {
        justify-content: center;
    }
    
    .watch-btn {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
    
    .persons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        margin: 10px;
    }
}

/* Auth styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem 0;
}

.auth-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.5rem;
}

.auth-form-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
}

.form-help {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

.btn-full {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.auth-link {
    color: #007bff;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Alert styles */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin: 0;
    padding-left: 1rem;
}

.alert li {
    margin-bottom: 0.25rem;
}

/* Admin styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.admin-header h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-info h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: #666;
    margin: 0;
}

.admin-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.admin-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-section h2 {
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.movies-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.movie-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
}

.movie-poster-small {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.movie-details {
    flex: 1;
}

.movie-details h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.movie-details p {
    margin: 0;
    color: #666;
    font-size: 0.875rem;
}

.movie-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.api-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-info p {
    margin: 0;
}

/* Admin table styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.table-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.text-center {
    text-align: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-link {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination-link.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.movie-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

/* Sync movie styles */
.sync-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.api-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }

/* Search results */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-result-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.movie-preview {
    flex-shrink: 0;
}

.movie-poster-preview {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.movie-poster-placeholder {
    width: 100px;
    height: 150px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #666;
    font-size: 0.875rem;
}

.movie-details {
    flex: 1;
}

.movie-details h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.original-title {
    color: #666;
    font-style: italic;
    margin: 0 0 1rem 0;
}

.movie-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.movie-genres {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.genre-tag {
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #495057;
}

.movie-description {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.movie-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.sync-form-inline {
    margin: 0;
}

.existing-badge {
    background: #d4edda;
    color: #155724;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Form improvements */
.form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.form-row .form-group {
    margin-bottom: 0;
}
.admin-container {
    min-height: calc(100vh - 200px);
    position: relative;
}

.search-results {
    margin-bottom: 50px;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
}

.movie-preview {
    flex-shrink: 0;
    width: 100px;
}

.movie-details {
    flex: 1;
}

.movie-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Fix for admin search page */
.admin-container {
    min-height: calc(100vh - 300px);
    padding-bottom: 50px;
    position: relative;
}

.search-results {
    margin-bottom: 80px;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
    transition: var(--transition);
}

.search-result-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.movie-preview {
    flex-shrink: 0;
    width: 100px;
}

.movie-details {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
}

.movie-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

/* Ensure main content pushes footer down */
.main {
	background-color: #000;
    flex: 1;
}

/* Fix for body to use flex layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Admin section spacing */
.admin-section {
    margin-bottom: 30px;
}

/* Pagination spacing */
.pagination {
    margin: 40px 0 20px 0;
}

/* Fix for admin search page layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main {
    flex: 1 0 auto;
    width: 100%;
}

.container {
    flex: 1;
}

.admin-container {
    min-height: calc(100vh - 400px);
    padding-bottom: 100px;
}

.search-results {
    margin-bottom: 80px;
}

/* Remove margin from footer that causes overlap */
.footer {
    margin-top: 0 !important;
    flex-shrink: 0;
}

/* Ensure search result items have proper spacing */
.search-result-item {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Make sure the main content area pushes footer down */
.main .container {
    display: flex;
    flex-direction: column;
}

/* Fix for admin search page footer overlap */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main .container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-container {
    flex: 1;
    padding-bottom: 100px;
    position: relative;
}

.search-results {
    margin-bottom: 80px;
}

.footer {
    position: relative;
    z-index: 10;
}

/* Ensure content doesn't get cut off */
.search-result-item:last-child {
    margin-bottom: 50px;
}

/* Исправления для адаптивности */
.movie-genre span, .country-tag {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 0.8em;
}

/* Исправления для слайдера */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

/* Исправления для таблиц в админке */
.admin-table img.table-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    max-width: 400px;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.adslinkdesc {
    font-size:9px !important;
}

/* Стили для слайдера с стрелками */
.movies-slider-container {
    position: relative;
    margin: 0 -10px;
}

.movies-slider {
    display: flex;
    gap: 15px;
    padding: 10px;
    overflow-x: hidden; /* Скрываем полосу прокрутки */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.movies-slider::-webkit-scrollbar {
    display: none; /* Скрываем полосу прокрутки в WebKit браузерах */
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.slider-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-button-left {
    left: 10px;
}

.slider-button-right {
    right: 10px;
}

.movies-slider-container:hover .slider-button {
    opacity: 1;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .slider-button {
        width: 35px;
        height: 35px;
        font-size: 16px;
        opacity: 0.8; /* Всегда видимы на мобильных */
    }
    
    .slider-button-left {
        left: 5px;
    }
    
    .slider-button-right {
        right: 5px;
    }
}

/* Стили для активного состояния слайдов */
.movie-slide {
    flex: 0 0 auto;
    width: 200px;
    transition: transform 0.3s ease;
}

.movie-slide:hover {
    transform: translateY(-5px);
}

/* Стили для рекламных блоков с красными кнопками */
.ad-links-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
}

.ad-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaea2e 100%);
    border: 1px solid #ffcdd2;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.ad-link-item2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
    border: 1px solid #ffcdd2;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.ad-link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.15);
    border-color: #f44336;
}

.ad-link-content {
    flex: 1;
}

.ad-link-content h4 {
    margin: 0 0 8px 0;
    color: #d32f2f;
    font-size: 1.3em;
    font-weight: 600;
}

.ad-link-content p {
    margin: 5px 0;
    color: #555;
    line-height: 1.4;
}

.ad-promo {
    color: #e53935 !important;
    font-weight: 500;
    font-size: 0.95em;
}

.ad-promo strong {
    background: #ffebee;
    padding: 2px 6px;
    border-radius: 4px;
    color: #c62828;
}

/* Красные кнопки */
.btn-red {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
    min-width: 120px;
}

.btn-red:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.btn-red:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(244, 67, 54, 0.3);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1em;
    min-width: 140px;
}

.ad-disclaimer {
    text-align: center;
    margin-top: 15px;
}

.adslinkdesc {
    color: #999;
    font-size: 0.85em;
    margin: 0;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .ad-link-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .ad-link-content {
        text-align: center;
    }
    
    .btn-red {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .ad-links-container {
        gap: 15px;
    }
    
    .ad-link-item {
        padding: 15px;
    }
    
    .ad-link-content h4 {
        font-size: 1.1em;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 1em;
    }
}