/* ==========================================================================
   4UMOVIES UNIFIED CINEMATIC GOLD THEME
   High Performance, Ultra-Responsive Dark Design System
   ========================================================================== */

:root {
  --bg-main: #0b0c10;
  --bg-card: #14161f;
  --bg-card-hover: #1c1e2a;
  --bg-card-accent: #191b26;
  --border-color: #262938;
  --border-hover: #d4af37;
  
  /* Luxury Gold Accents */
  --gold-light: #fff3b0;
  --gold-primary: #ffd700;
  --gold-hover: #f5c518;
  --gold-dark: #d4af37;
  --gold-glow: rgba(255, 215, 0, 0.25);
  
  /* Status & Action Colors */
  --btn-green: #00c853;
  --btn-green-hover: #00e676;
  --telegram-blue: #0088cc;
  --telegram-hover: #0099e6;
  
  /* Typography */
  --text-primary: #f0f2f8;
  --text-secondary: #a0a5b8;
  --text-muted: #71768a;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.2);
}

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

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

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 12, 16, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-telegram {
  background: linear-gradient(135deg, #0088cc, #006699);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #0099e6, #0077b3);
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.5);
  transform: translateY(-1px);
}

.btn-howtodl {
  background: var(--bg-card);
  color: var(--gold-primary);
  border: 1px solid var(--border-color);
}

.btn-howtodl:hover {
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-gold);
}

/* Category Navigation Bar */
.category-nav {
  background: rgba(20, 22, 31, 0.95);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  gap: 8px;
}

.cat-link {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.cat-link:hover, .cat-link.active {
  color: #0f1015;
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  font-weight: 700;
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-wrapper {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
  flex: 1;
  width: 100%;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.breadcrumbs a {
  color: var(--gold-primary);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span.current {
  color: var(--text-secondary);
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Movie Post Article */
.movie-article {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.movie-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #d4af37, #f5c518, #ffd700);
}

.movie-header-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 25px;
  text-align: center;
}

/* Hero Poster & Info Grid */
.movie-hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-bottom: 35px;
  align-items: start;
}

.poster-box {
  text-align: center;
  position: relative;
}

.poster-box img {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 30px rgba(0,0,0,0.7), 0 0 20px rgba(255, 215, 0, 0.15);
  display: block;
  margin: 0 auto;
}

.movie-info-card {
  background: var(--bg-card-accent);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
}

.info-card-header {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table td {
  padding: 9px 4px;
  font-size: 14px;
  vertical-align: top;
}

.info-table td.label {
  width: 130px;
  font-weight: 600;
  color: var(--text-secondary);
}

.info-table td.val {
  color: var(--text-primary);
}

.badge-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(255, 215, 0, 0.3);
  margin-right: 5px;
}

.badge-imdb {
  background: #f5c518;
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 12px;
}

/* Storyline Section */
.storyline-box {
  margin: 25px 0;
  padding: 18px 22px;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--gold-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* Screenshots Gallery */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-primary);
  margin: 35px 0 15px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-title::before, .section-title::after {
  content: '';
  height: 1px;
  width: 50px;
  background: linear-gradient(90deg, transparent, var(--gold-primary));
}
.section-title::after {
  background: linear-gradient(90deg, var(--gold-primary), transparent);
}

.screenshots-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin: 20px 0;
}

.screenshots-gallery img {
  width: 100%;
  max-width: 850px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.screenshots-gallery img:hover {
  transform: scale(1.01);
  border-color: rgba(255, 215, 0, 0.4);
}

/* ==========================================================================
   Download Center
   ========================================================================== */
.download-center {
  margin: 40px 0 20px;
  padding: 25px;
  background: linear-gradient(180deg, rgba(20,22,31,0.8), rgba(25,28,40,0.9));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  transition: all 0.25s ease;
}

.dl-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 4px 18px rgba(0,0,0,0.4), 0 0 15px rgba(255, 215, 0, 0.15);
  transform: translateY(-2px);
}

.dl-info h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dl-info span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #00c853, #009624);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 200, 83, 0.35);
  transition: all 0.2s ease;
}

.btn-download:hover {
  background: linear-gradient(135deg, #00e676, #00c853);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5);
  transform: translateY(-2px);
}

/* Telegram CTA Banner */
.telegram-banner {
  margin: 35px 0 10px;
  padding: 20px;
  background: linear-gradient(135deg, #0f2b46, #004d80);
  border: 1px solid rgba(0, 136, 204, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.telegram-banner-text h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 4px;
}

.telegram-banner-text p {
  font-size: 13px;
  color: #b0d4f1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #07080b;
  border-top: 1px solid var(--border-color);
  padding: 40px 20px 25px;
  margin-top: 60px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Mobile Responsive Rules
   ========================================================================== */
@media (max-width: 768px) {
  .movie-hero-grid {
    grid-template-columns: 1fr;
  }
  .poster-box img {
    max-width: 220px;
  }
  .movie-article {
    padding: 20px 15px;
  }
  .movie-header-title {
    font-size: 20px;
  }
  .dl-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .btn-download {
    width: 100%;
  }
  .header-actions .btn-howtodl {
    display: none;
  }
}
