:root {
  --bg-color: #1a1c2e;
  --bg-gradient: linear-gradient(135deg, #1e2340, #2a3358, #2563eb);
  --card-bg: rgba(255, 255, 255, 0.07);
  --card-hover-bg: rgba(255, 255, 255, 0.13);
  --accent-color: #00d2ff;
  --accent-secondary: #9d00ff;
  --accent-hover: #00b8e6;
  --text-main: #f0f0f0;
  --text-muted: #a8a8b8;
  --border-radius: 14px;
  --border-radius-sm: 8px;
  --transition-speed: 0.3s;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --box-shadow-hover: 0 15px 40px rgba(0, 210, 255, 0.25);
  --max-width: 1400px;
  --glass-bg: rgba(30, 35, 60, 0.8);
  --glass-border: rgba(255, 255, 255, 0.12);
}

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

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: #444a6a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

html {
  font-family: 'Outfit', system-ui, sans-serif;
  background-image:
    var(--bg-gradient),
    radial-gradient(circle at 20% 20%, rgba(0, 210, 255, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(58, 123, 213, 0.07) 0%, transparent 50%);
  background-attachment: fixed;
  background-color: var(--bg-color);
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-speed);
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  color: #fff !important;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(157, 0, 255, 0.5);
  filter: brightness(1.2);
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 480px) {
  .grid-auto-fit {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }
}

@media (min-width: 768px) {
  .grid-auto-fit {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1400px) {
  .grid-auto-fit {
    grid-template-columns: repeat(6, 1fr);
  }
}

.movie-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.site-footer {
  margin-top: auto;
  padding: 80px 0 40px;
  background: linear-gradient(to top, #111528, transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  text-align: left;
}

.footer-brand .logo-link {
  margin-bottom: 20px;
  display: block;
}

.footer-links h4 {
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.quality-badge {
  display: none;
}

@media (max-width: 768px) {
  html {
    background-attachment: scroll;
  }

  .container {
    padding: 0 16px;
  }

  h1,
  h2 {
    margin-bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 56px 0 32px;
  }

  .footer-content {
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
