:root {
  --primary: #e50914;
  --primary-hover: #f40612;
  --primary-dark: #b8070f;
  --secondary: #221f1f;
  --accent: #46d369;
  --gold: #ffd700;
  --text: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #8c8c8c;
  --background: #0a0a0a;
  --surface: #141414;
  --surface-hover: #1f1f1f;
  --surface-light: #2a2a2a;
  --border: #333333;
  --border-light: #404040;
  --success: #46d369;
  --error: #e50914;
  --warning: #ffa500;
  --gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #ff6b6b 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.7);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  min-height: 100vh;
  font-weight: 400;
  overflow-x: hidden;
}

.app-container {
  min-height: 100vh;
  background: var(--background);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: var(--shadow);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.logo svg {
  width: 20px;
  height: 20px;
  color: white;
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.75rem 0;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.header-search {
  width: 300px;
  padding: 0.75rem 3rem 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: var(--text);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.header-search:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.header-search::placeholder {
  color: var(--text-muted);
}

.search-btn {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.search-btn:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.btn-reset {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.btn-reset:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.user-avatar:hover {
  border-color: var(--primary);
  transform: scale(1.1);
}

/* Content Sections */
.content-section {
  display: none;
  padding-top: 80px;
}

.content-section.active {
  display: block;
}

.main-content {
  min-height: 100vh;
}

/* Hero Banner */
.hero-banner {
  position: relative;
 
  height: 70vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1400px;
 
  padding: 0 2rem;
  color: white;
}

.hero-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filters Section */
.filters-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.filters-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.filters-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  padding: 0.75rem;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.filters-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-select {
  width: 100%;
  padding: 1rem;
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

/* Movies Section */
.movies-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 2rem;
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.movie-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid var(--border);
  position: relative;
  group: hover;
}

.movie-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.movie-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

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

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

.movie-quality {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}

.movie-rating {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: var(--gold);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(10px);
}

.movie-info {
  padding: 1.5rem;
}

.movie-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.movie-year {
  background: var(--background);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
}

.movie-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.movie-genre {
  background: rgba(229, 9, 20, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid rgba(229, 9, 20, 0.2);
}

/* Manual Stream Section */
.manual-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
  overflow: hidden;
}

.manual-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/placeholder.svg?height=400&width=1200") center / cover;
  opacity: 0.1;
}

.manual-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
}

.manual-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin-top: 1rem;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.manual-title {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.manual-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.manual-form-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.manual-form-container {
  background: var(--surface);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.stream-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Player Section */
.player-hero {
  position: relative;
  height: 40vh;
  margin-top: 1rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
}

.player-hero-content {
  margin-top: 1rem;
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.player-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text);
}

.status-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  backdrop-filter: blur(20px);
  font-size: 0.7rem;
  max-width: 800px;
  margin: 0 auto;
}

.status-indicator {
  position: relative;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* Progress Section */
.progress-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.progress-container {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.progress-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.progress-percentage {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.progress-bar-container {
  height: 8px;
  background: var(--background);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 0.5s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

/* Media Section */
.media-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.media-container {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.media-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
}

.media-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.file-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.file-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.file-info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.file-info-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.video-container {
  position: relative;
  background: #000;
}

.video-player {
  width: 100%;
  height: auto;
  max-height: 70vh;
  display: block;
}

/* Subtitle Section */
.subtitle-section {
  padding: 2rem;
  border-top: 1px solid var(--border);
}

.subtitle-header {
  margin-bottom: 1.5rem;
}

.subtitle-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.subtitle-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.subtitle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.subtitle-btn:hover,
.subtitle-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.subtitle-upload {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.upload-area {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.file-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--background);
  border: 2px dashed var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  justify-content: center;
}

.file-input-label:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  color: var(--text);
}

.upload-btn {
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Form Styles */
.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.form-label svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.input-container {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1.5rem 4rem 1.5rem 1.5rem;
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: "JetBrains Mono", monospace;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1);
  background: var(--surface);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.input-actions {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.5rem;
}

.input-btn {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0.75rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-btn:hover {
  color: var(--primary);
  background: var(--surface-light);
  border-color: var(--primary);
  transform: scale(1.05);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.stream-btn {
  width: 50%;
  font-size: .3rem;
  padding: 1rem 1.5rem;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.page-info {
  color: var(--text);
  font-size: 0.5rem;
  font-weight: 600;
  padding: 1rem 2rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.modal-close {
  background: rgba(0, 0, 0, 0.8);
  border: none;
  color: white;
  cursor: pointer;
  padding: 1rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.modal-body {
  padding: 0;
}

.movie-details {
  display: flex;
  min-height: 500px;
}

.movie-poster-section {
  flex-shrink: 0;
  width: 300px;
  position: relative;
}

.modal-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 0 0 20px;
}

.movie-info-section {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-movie-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.movie-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.movie-year-badge,
.movie-rating-badge,
.movie-runtime-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--background);
  color: var(--text-secondary);
}

.movie-rating-badge {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.movie-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.movie-genre {
  background: rgba(229, 9, 20, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(229, 9, 20, 0.2);
}

.movie-summary {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.torrents-section {
  margin-top: auto;
}

.torrents-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.movie-torrents {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.torrent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.torrent-option:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.torrent-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.torrent-quality {
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.torrent-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.torrent-size {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.torrent-seeds {
  color: var(--success);
  font-weight: 500;
}

.torrent-peers {
  color: var(--warning);
  font-weight: 500;
}

.stream-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.stream-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Notification Styles */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  max-width: 400px;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification.success {
  border-color: var(--success);
  background: rgba(70, 211, 105, 0.1);
}

.notification.error {
  border-color: var(--error);
  background: rgba(229, 9, 20, 0.1);
}

.notification-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.notification.success .notification-icon {
  color: var(--success);
}

.notification.error .notification-icon {
  color: var(--error);
}

.notification-text {
  font-weight: 500;
  color: var(--text);
}

/* Loader */
.loader {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--text);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }

  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .header-nav {
    order: -1;
    width: 100%;
  }

  .nav-links {
    justify-content: center;
    gap: 1.5rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .search-container {
    flex: 1;
    max-width: 300px;
  }

  .header-search {
    width: 100%;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero-stats {
   
    gap: 1.5rem;
    align-items: center;
  }

  .filters-row {
    flex-direction: column;
  }

  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
  }

  .movie-details {
    flex-direction: column;
  }

  .movie-poster-section {
    width: 100%;
    height: 400px;
  }

  .modal-poster {
    border-radius: 20px 20px 0 0;
  }

  .movie-info-section {
    padding: 1.5rem;
  }

  .modal-movie-title {
    font-size: 1.5rem;
  }

  .manual-form-container {
    padding: 2rem;
  }

  .upload-area {
    flex-direction: column;
    align-items: stretch;
  }

  .file-input-wrapper {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .hero-banner{
    margin-top: 5rem;
  }
  .manual-hero{
    margin-top: 5rem;
  }
  .player-hero{
    margin-top: 5rem;
  }
  .hero-title {
    font-size: 2rem;
  }


  .hero-description {
    font-size: 1rem;
  }

  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .movie-title {
    font-size: 0.9rem;
  }

  .notification {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .manual-form-container {
    padding: 1.5rem;
  }

  .form-input {
    padding: 1.25rem 3.5rem 1.25rem 1.25rem;
    font-size: 0.9rem;
  }

  .btn {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

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