/* Основные стили для шаблона сериалов */
:root {
  --primary-color: #27ae60;
  --primary-dark: #219653;
  --primary-light: #6fcf97;
  --text-color: #333333;
  --text-light: #828282;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a1a;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Шапка сайта */
.header {
  background-color: var(--bg-color);
  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;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.logo span {
  color: var(--text-color);
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 25px;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
}

.search-form {
  display: flex;
}

.search-input {
  padding: 8px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px 0 0 4px;
  outline: none;
  width: 250px;
}

.search-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--primary-dark);
}

.user-actions {
  display: flex;
  align-items: center;
}

.user-actions a {
  margin-left: 15px;
  color: var(--text-color);
}

.user-actions a:hover {
  color: var(--primary-color);
}

/* Основной контент */
.main-content {
  display: flex;
  margin: 30px 0;
}

.content {
  flex: 1;
  margin-right: 30px;
}

.sidebar {
  width: 300px;
}

/* Карточки сериалов */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.series-card {
  background: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.series-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.series-poster {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.series-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.series-card:hover .series-poster img {
  transform: scale(1.05);
}

.series-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-color);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.series-info {
  padding: 15px;
}

.series-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
  line-height: 1.3;
}

.series-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-light);
}

/* Боковая панель */
.sidebar-widget {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}

.widget-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  color: var(--text-color);
}

/* Подвал */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 40px 0 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
  padding-right: 20px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--primary-light);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #bdbdbd;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #333;
  color: #828282;
  font-size: 14px;
}

/* Адаптивность */
@media (max-width: 992px) {
  .main-content {
    flex-direction: column;
  }
  
  .content {
    margin-right: 0;
    margin-bottom: 30px;
  }
  
  .sidebar {
    width: 100%;
  }
  
  .series-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    margin-bottom: 15px;
  }
  
  .main-nav li {
    margin: 0 10px 5px 0;
  }
  
  .search-form {
    width: 100%;
  }
  
  .search-input {
    flex: 1;
  }
  
  .series-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}