/* Filmyzillab.com Main Stylesheet */
:root {
  --bg-dark: #0b0d10;
  --bg-card: #141824;
  --bg-card-hover: #1c2233;
  --bg-header: #0f121a;
  --accent-red: #e50914;
  --accent-red-hover: #f6121d;
  --accent-gold: #ff9900;
  --accent-blue: #00b4d8;
  --text-main: #ffffff;
  --text-muted: #9aa0a6;
  --text-dim: #6c757d;
  --border-color: #232a3b;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Nav */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span.highlight {
  color: var(--accent-red);
}

.logo span.domain {
  background: var(--accent-gold);
  color: #000;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-red);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero & Search Banner */
.hero-banner {
  background: linear-gradient(180deg, rgba(15, 18, 26, 0.9) 0%, rgba(11, 13, 16, 1) 100%), radial-gradient(circle at top right, rgba(229, 9, 20, 0.15), transparent 50%);
  padding: 40px 0 30px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-title span {
  color: var(--accent-red);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.search-box-wrapper {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
}

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-red);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Category Quick Filter Chips */
.category-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover, .chip.active {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

/* Section Titles */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--accent-red);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Movie Grid Layout */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.movie-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-red);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.poster-wrapper {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #10141e;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .poster-img {
  transform: scale(1.06);
}

.badge-quality {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-lang {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.rating-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffc107;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.movie-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.movie-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
}

.movie-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

/* Movie Detail Page Layout */
.movie-detail-container {
  padding: 30px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--accent-red);
}

.movie-header-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 30px;
}

.detail-poster-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.meta-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
}

.meta-badge {
  background: #1c2233;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.meta-badge.highlight {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

.meta-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}

.meta-table tr td {
  padding: 8px 12px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.meta-table tr td:first-child {
  color: var(--text-muted);
  font-weight: 600;
  width: 130px;
}

/* Download Links Table & Mirrors */
.download-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 30px;
}

.download-box h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-option-card {
  background: #0f121a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.download-info-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.download-res {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.download-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-download {
  background: var(--accent-red);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-download:hover {
  background: var(--accent-red-hover);
}

.btn-trailer {
  background: #232a3b;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-trailer:hover {
  background: #2c354a;
}

/* SEO Content Article Section */
.seo-article {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 30px;
  line-height: 1.8;
  color: #d1d5db;
}

.seo-article h2, .seo-article h3 {
  color: #fff;
  margin: 20px 0 10px;
  font-size: 1.3rem;
}

.seo-article p {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.seo-article ul {
  margin-left: 20px;
  margin-bottom: 14px;
}

/* FAQ Accordion */
.faq-container {
  margin-top: 20px;
}

.faq-item {
  background: #0f121a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #141824;
}

.faq-answer {
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  display: none;
  border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Legal Pages Styling */
.legal-page-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  margin: 30px 0 50px;
}

.legal-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--accent-red);
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 24px 0 10px;
  color: #fff;
}

.legal-content p {
  margin-bottom: 14px;
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content ul {
  margin-left: 24px;
  margin-bottom: 16px;
  color: #d1d5db;
}

/* Footer */
.site-footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 12px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
  border-left: 3px solid var(--accent-red);
  padding-left: 8px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--accent-red);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Modal Popup */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #0f121a;
  border-bottom: 1px solid var(--border-color);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 0;
  aspect-ratio: 16 / 9;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .movie-header-block {
    grid-template-columns: 1fr;
  }
  
  .detail-poster-wrapper {
    max-width: 240px;
    margin: 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-header);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-menu.show {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
  
  .hero-title {
    font-size: 1.6rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .download-option-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn-download {
    width: 100%;
    justify-content: center;
  }
}
