/* ============================================================
   PAGES — About, Footer, specific page styles
   ============================================================ */

/* ── About ── */
.about-container {
  margin: 0 0 16px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
}

.about-container h1,
.about-container h2,
.about-container h3 {
  color: var(--text-primary);
}

.about-container p {
  color: var(--text-secondary);
  line-height: 1.7;
}

#description { margin-bottom: 12px; }

/* ── Contact button ── */
.contact-action {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
}

.btn-contact {
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 12px rgba(229,9,20,.25);
  font-family: inherit;
}

.btn-contact:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

body.dark-mode .btn-contact {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  box-shadow: none;
}

body.dark-mode .btn-contact:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ── Contact modal ── */
.contact-modal input,
.contact-modal textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card-inner);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 12px;
}
.contact-modal input:focus,
.contact-modal textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

#contactForm button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 24px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
}
#contactForm button:hover { background: var(--accent-hover); }

/* ── News grid ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 0 16px;
}

@media (min-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.news-article img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.news-article-body {
  padding: 16px;
}

.news-article-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.news-article-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-article-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent) !important;
}

/* ── Top / Ratings page ── */
.top-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ── Visitor counter ── */
.visitor-counter img { display: none; }

/* ============================================================
   ACTORS PAGE
   ============================================================ */



/* ── Container з відступом ── */
.actors-page-container {
  padding-top: 24px;
  padding-bottom: 40px;
}

/* ── Results bar ── */
.actors-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  min-height: 24px;
}

.actors-results-count {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Actors grid — ширше ніж на головній ── */
#actorsGrid.user-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  border: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
}