﻿:root {
  --bg-main: #0b0c0f;
  --bg-card: #15171e;
  --bg-glass: rgba(22, 24, 33, 0.7);
  --accent-red: #e50914;
  --accent-red-glow: rgba(229, 9, 20, 0.4);
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --text-sub: #d1d5db;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(11, 12, 15, 0.9) 0%, rgba(11, 12, 15, 0) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 12, 15, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--accent-red);
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo span {
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px 8px 38px;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 13px;
  outline: none;
  width: 220px;
  transition: var(--transition);
}

.search-box input:focus {
  width: 280px;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-red);
  box-shadow: 0 0 15px var(--accent-red-glow);
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

.hero-wrapper {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 100px 4% 60px;
  overflow: hidden;
  background: #0b0c0f;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.hero-backdrop-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 85% 35%, rgba(229, 9, 20, 0.25) 0%, transparent 60%),
    linear-gradient(90deg, #0b0c0f 0%, #0b0c0f 35%, rgba(11, 12, 15, 0.85) 60%, rgba(11, 12, 15, 0.3) 100%),
    linear-gradient(0deg, #0b0c0f 0%, transparent 40%),
    linear-gradient(180deg, rgba(11, 12, 15, 0.7) 0%, transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--accent-red);
  text-transform: uppercase;
}

.badge-tag::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red);
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
}

.meta-dot {
  color: var(--accent-red);
  font-size: 18px;
  line-height: 0;
}

.rating-badge {
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.4);
}

.hd-badge {
  padding: 2px 6px;
  background: var(--accent-red);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #d1d5db;
  max-width: 540px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.btn-watch {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 13px 30px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-watch:hover {
  background: #e5e5e5;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.btn-info {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

.btn-info:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.catalog-section {
  position: relative;
  z-index: 10;
  padding: 0 4% 80px;
  margin-top: -30px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.row-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.row-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.row-slider-wrapper {
  position: relative;
  width: 100%;
}

.row-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 14px 4px;
  scrollbar-width: none;
}

.row-slider::-webkit-scrollbar {
  display: none;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 12, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}

.row-slider-wrapper:hover .slide-btn {
  opacity: 1;
  pointer-events: auto;
}

.slide-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px var(--accent-red-glow);
}

.slide-btn.left {
  left: -20px;
}

.slide-btn.right {
  right: -20px;
}

.movie-card {
  flex: 0 0 200px;
  height: 300px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(229, 9, 20, 0.3);
  z-index: 15;
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.movie-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 12, 15, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  opacity: 0;
  transition: var(--transition);
}

.movie-card:hover .movie-card-overlay {
  opacity: 1;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 44px;
  height: 44px;
  background: var(--accent-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 20px var(--accent-red-glow);
  opacity: 0;
  transition: var(--transition);
}

.movie-card:hover .card-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.player-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.player-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 1100px;
  background: #0b0c0f;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .search-box input {
    width: 140px;
  }
  .search-box input:focus {
    width: 180px;
  }
  .hero-wrapper {
    min-height: 70vh;
    padding-top: 80px;
  }
  .hero-backdrop-img {
    width: 100%;
    opacity: 0.6;
  }
  .hero-title {
    font-size: 32px;
  }
  .movie-card {
    flex: 0 0 140px;
    height: 210px;
  }
  .slide-btn {
    display: none;
  }
}
