@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
  --net-red: #E50914;
  --net-red-hover: #f40612;
  --bg-color: #141414;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --nav-bg: rgba(20, 20, 20, 0.95);
  --glass-bg: rgba(0, 0, 0, 0.65);
  --border-color: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--nav-bg);
  padding: 1rem 4%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Search Bar */
.search-container {
  position: relative;
  flex: 0 1 400px;
  margin: 0 2rem;
}

#search-input {
  width: 100%;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: white;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
}

#search-input:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.9);
  border-color: var(--net-red);
  box-shadow: 0 0 5px rgba(229, 9, 20, 0.5);
}

.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  max-height: 400px;
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow-y: auto;
  z-index: 2000;
  display: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

.search-results.active {
  display: block;
}

.search-item {
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
}

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

.search-item:last-child {
  border-bottom: none;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--net-red);
  text-decoration: none;
  letter-spacing: -1px;
}

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

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-secondary);
}

.nav-links a.active {
  color: var(--net-red);
}

/* Hero Section */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 0 4%;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 20%;
  z-index: -1;
}

.hero-backdrop::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(20,20,20,0.95) 0%, rgba(20,20,20,0.6) 40%, rgba(20,20,20,0) 100%),
              linear-gradient(to top, rgba(20,20,20,1) 0%, rgba(20,20,20,0) 25%);
}

.hero-content {
  max-width: 600px;
  animation: fadeIn 1s ease-out;
}

.hero-type {
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-meta {
  display: flex;
  gap: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ccc;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: var(--text-primary);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--net-red);
  color: white;
}

.btn-primary:hover {
  background-color: var(--net-red-hover);
  transform: scale(1.05);
}

.btn-secondary {
  background-color: rgba(109, 109, 110, 0.7);
  color: white;
}

.btn-secondary:hover {
  background-color: rgba(109, 109, 110, 0.9);
  transform: scale(1.05);
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Sections */
.section {
  padding: 2rem 4%;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.section:hover .section-title {
  color: var(--text-primary);
}

/* Carousels */
.carousel-container {
  position: relative;
}

.carousel {
  display: flex;
  gap: 1.5rem; /* Increased gap for better look */
  padding: 1rem 0 3rem 0;
  width: max-content;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Infinite Scroll Animation */
.carousel.scrolling {
  animation: scroll 40s linear infinite;
}

.carousel.scrolling:hover {
  animation-play-state: paused;
}

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

.carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.card {
  flex: 0 0 200px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.card:hover {
  transform: scale(1.15);
  z-index: 10;
  box-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Info Pages (Jellyfin / Plex) */
.info-page {
  padding-top: 100px;
  min-height: 100vh;
}

.info-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeIn 1s ease-out;
}

.info-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.info-header p {
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.6;
}

.pricing-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  width: 300px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--net-red);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}

.pricing-card.popular {
  border-color: var(--net-red);
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
}

.badge {
  background: var(--net-red);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}

.pricing-cycle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pricing-savings {
  color: #46d369;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.features-list {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.features-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.features-list li::before {
  content: '✓';
  color: var(--net-red);
  font-weight: bold;
}

.card-btn {
  width: 100%;
  display: block;
  text-align: center;
  margin-top: auto;
}

/* Info Sections */
.info-section {
  max-width: 1000px;
  margin: 0 auto 4rem;
  background: var(--glass-bg);
  border-radius: 12px;
  padding: 3rem;
  border: 1px solid var(--border-color);
}

.info-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--net-red);
}

.info-section h3 {
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
}

.info-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.info-section a {
  color: white;
  text-decoration: underline;
  text-decoration-color: var(--net-red);
  text-decoration-thickness: 2px;
  transition: var(--transition);
}

.info-section a:hover {
  color: var(--net-red);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.link-card {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 8px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.link-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-5px);
}

.link-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

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

/* Loader */
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.loader {
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--net-red);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .nav-links { gap: 1rem; }
  .card { flex: 0 0 140px; }
  .card img { height: 210px; }
  .info-header h1 { font-size: 2rem; }
}
