/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #e50914;
  --secondary-color: #ff6b6b;
  --dark-bg: #0a0a0a;
  --darker-bg: #000000;
  --card-bg: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #666666;
  --border-color: #333333;
  --gradient-primary: linear-gradient(135deg, #e50914 0%, #ff6b6b 100%);
  --gradient-dark: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
  --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 16px rgba(0,0,0,0.2);
  --shadow-heavy: 0 8px 32px rgba(0,0,0,0.3);
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1rem;
}

.logo {
  height: 80px;
  width: auto;
  transition: var(--transition);
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.05);
}

.brand-name {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(229, 9, 20, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
}

/* User Greeting */
.user-greeting {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-right: 1rem;
}

.user-greeting i {
  color: var(--primary-color);
}

.user-name {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-search {
  position: relative;
}

.search-container {
  position: relative;
  width: 300px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.15);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1001;
  display: none;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-heavy);
}

.search-dropdown.active {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-item img {
  width: 50px;
  height: 75px;
  object-fit: cover;
  border-radius: 4px;
}

.search-item-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.search-item-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1002;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--card-bg);
  border-left: 1px solid var(--border-color);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 0;
}

.mobile-menu.active {
  right: 0;
}

/* Mobile Search */
.mobile-search {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search .search-container {
  width: 100%;
}

.mobile-search .search-input {
  width: 100%;
  border-radius: var(--border-radius);
  padding: 0.6rem 1rem 0.6rem 2.2rem;
  font-size: 0.85rem;
}

.mobile-search .search-icon {
  left: 0.8rem;
  font-size: 0.9rem;
}

/* Mobile Navigation Links */
.mobile-nav-links {
  padding: 0.25rem 0;
}

.mobile-nav-links .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0;
}

.mobile-nav-links .nav-link:hover {
  background: rgba(229, 9, 20, 0.1);
}

.mobile-nav-links .nav-link.active {
  background: rgba(229, 9, 20, 0.2);
  color: var(--primary-color);
}

.mobile-nav-links .nav-link i:first-child {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.mobile-nav-links .nav-link i:last-child {
  font-size: 0.7rem;
  opacity: 0.6;
}

.mobile-nav-links .nav-link span {
  flex: 1;
  margin-left: 0.75rem;
  text-align: left;
}

/* Mobile User Section */
.mobile-user-section {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  font-size: 0.85rem;
}

.mobile-user-info i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Welcome Modal */
.welcome-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.welcome-content {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-heavy);
}

.welcome-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.welcome-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.name-input-group {
  margin-bottom: 2rem;
}

.name-input {
  width: 100%;
  padding: 1rem;
  background: var(--dark-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 1rem;
  text-align: center;
  transition: var(--transition);
}

.name-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.welcome-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.welcome-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.welcome-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Visitor Counter Widget */
.visitor-counter {
  position: fixed;
  top: 120px;
  right: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  min-width: 200px;
  z-index: 999;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.visitor-counter:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.counter-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.counter-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.stat-label {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-value {
  color: var(--text-primary);
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.live-indicator {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.counter-toggle {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}

.counter-toggle:hover {
  color: var(--text-primary);
}

.visitor-counter.minimized {
  padding: 0.5rem;
  min-width: auto;
}

.visitor-counter.minimized .counter-stats,
.visitor-counter.minimized .counter-header {
  display: none;
}

.visitor-counter.minimized::after {
  content: '👥';
  font-size: 1.2rem;
  display: block;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 70vh;
  margin-top: 100px;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.5s ease-in-out;
}

.slide-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.slide-info {
  max-width: 600px;
}

.slide-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #ffd700;
}

.year,
.genre {
  color: var(--text-secondary);
}

.slide-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.slide-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Hero Slider Navigation (Optional - for future use) */
.hero-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.hero-nav-dot.active {
  background: var(--primary-color);
}

.hero-nav-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Hero Slider Controls (Optional - for future use) */
.hero-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 3;
  opacity: 0;
}

.hero-slider:hover .hero-controls {
  opacity: 1;
}

.hero-controls:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.hero-controls.prev {
  left: 2rem;
}

.hero-controls.next {
  right: 2rem;
}

/* Main Content */
.main-content {
  padding: 2rem 0;
  max-width: 1400px;
  margin: 0 auto;
}

.content-section {
  display: none;
  padding: 0 2rem;
}

.content-section.active {
  display: block;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.section-row {
  margin-bottom: 3rem;
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.row-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.view-all-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.view-all-btn:hover {
  color: var(--primary-color);
}

.content-slider {
  position: relative;
}

.content-list {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.content-list::-webkit-scrollbar {
  display: none;
}

.content-item {
  flex: 0 0 200px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.content-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.content-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.content-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gradient-dark);
  padding: 1rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.content-item:hover .content-item-overlay {
  transform: translateY(0);
}

.content-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.content-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* My List Button */
.my-list-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.8);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  z-index: 5;
  opacity: 0;
}

.content-item:hover .my-list-btn {
  opacity: 1;
}

.my-list-btn:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.my-list-btn.added {
  background: var(--primary-color);
  opacity: 1;
}

.my-list-btn.added i {
  color: white;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 10;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
  left: -25px;
}

.slider-btn.next {
  right: -25px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

/* Enhanced Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  max-width: 1200px;
  max-height: 95vh;
  width: 95%;
  overflow-y: auto;
  z-index: 2001;
  scroll-behavior: smooth;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 2002;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.modal-body {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

.modal-poster {
  flex: 0 0 300px;
}

.modal-poster img {
  width: 100%;
  border-radius: var(--border-radius);
}

.modal-info {
  flex: 1;
}

.modal-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.rating-stars {
  color: #ffd700;
}

.modal-year,
.modal-duration {
  color: var(--text-secondary);
}

.modal-info p {
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-my-list-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.modal-my-list-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-my-list-btn.added {
  background: var(--primary-color);
}

/* Enhanced Player Controls */
.player-controls {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-top: 1px solid var(--border-color);
  padding: 2rem;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.control-group select {
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  transition: var(--transition);
}

.control-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

.status-indicator.slow {
  background: #fbbf24;
}

.status-indicator.poor {
  background: #ef4444;
}

.player-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius);
  margin-top: 1rem;
}

.current-episode {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.episode-navigation {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-btn:hover:not(:disabled) {
  background: #c5070e;
  transform: translateY(-1px);
}

.nav-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

/* Player Wrapper */
.modal-player {
  padding: 0 2rem 2rem;
}

.player-wrapper {
  position: relative;
  background: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.modal-player iframe {
  width: 100%;
  height: 500px;
  border: none;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 10;
}

.loading-overlay.hidden {
  display: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
  background: var(--darker-bg);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  height: 50px;
  width: auto;
}

.footer-brand-name {
  display: none;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-color);
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-container {
    padding: 1rem;
  }
  
  .logo {
    height: 60px;
  }
  
  .hero-slider {
    margin-top: 80px;
  }
  
  .search-container {
    width: 250px;
  }
  
  .slide-title {
    font-size: 2.5rem;
  }
  
  .modal-body {
    flex-direction: column;
  }
  
  .modal-poster {
    flex: none;
    max-width: 300px;
    margin: 0 auto;
  }

  .controls-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }

  .visitor-counter {
    right: 10px;
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.6rem 1rem;
  }
  
  .logo {
    height: 45px;
  }
  
  .nav-menu {
    display: none;
  }
  
  .nav-search {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .user-greeting {
    display: none;
  }
  
  .hero-slider {
    margin-top: 65px;
  }
  
  .slide-title {
    font-size: 2rem;
  }
  
  .slide-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .content-item {
    flex: 0 0 150px;
  }
  
  .content-item img {
    height: 225px;
  }
  
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .controls-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .player-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .episode-navigation {
    justify-content: center;
  }

  .visitor-counter {
    position: relative;
    top: auto;
    right: auto;
    margin: 1rem auto;
    width: fit-content;
  }

  .welcome-content {
    padding: 2rem;
  }

  .welcome-content h2 {
    font-size: 1.5rem;
  }

  /* Mobile Menu Adjustments */
  .mobile-menu {
    width: 260px;
  }
  
  .mobile-nav-links .nav-link {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
  
  .mobile-nav-links .nav-link i:first-child {
    font-size: 0.9rem;
    width: 18px;
  }
  
  .mobile-nav-links .nav-link span {
    margin-left: 0.6rem;
  }
  
  .mobile-search {
    padding: 0.6rem 1rem;
  }
  
  .mobile-search .search-input {
    padding: 0.55rem 1rem 0.55rem 2rem;
    font-size: 0.8rem;
  }
  
  .mobile-user-section {
    padding: 0.6rem 1rem;
  }
  
  .mobile-user-info {
    padding: 0.55rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0.5rem 0.75rem;
  }
  
  .logo {
    height: 40px;
  }
  
  .hero-slider {
    margin-top: 60px;
  }
  
  .slide-content {
    padding: 0 1rem;
  }
  
  .slide-title {
    font-size: 1.5rem;
  }
  
  .main-content {
    padding: 1rem 0;
  }
  
  .content-section {
    padding: 0 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .player-controls {
    padding: 1rem;
  }
  
  .modal-player {
    padding: 0 1rem 1rem;
  }
  
  .modal-player iframe {
    height: 300px;
  }

  .visitor-counter {
    min-width: 160px;
    font-size: 0.8rem;
  }

  .welcome-content {
    padding: 1.5rem;
  }

  .welcome-content h2 {
    font-size: 1.3rem;
  }

  /* Ultra-compact mobile menu for small screens */
  .mobile-menu {
    width: 240px;
  }
  
  .mobile-nav-links .nav-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .mobile-nav-links .nav-link i:first-child {
    font-size: 0.85rem;
    width: 16px;
  }
  
  .mobile-nav-links .nav-link span {
    margin-left: 0.5rem;
  }
  
  .mobile-search {
    padding: 0.5rem 0.8rem;
  }
  
  .mobile-search .search-input {
    padding: 0.5rem 0.8rem 0.5rem 1.8rem;
    font-size: 0.75rem;
  }
  
  .mobile-search .search-icon {
    left: 0.6rem;
    font-size: 0.8rem;
  }
  
  .mobile-user-section {
    padding: 0.5rem 0.8rem;
  }
  
  .mobile-user-info {
    padding: 0.5rem;
    font-size: 0.75rem;
  }
  
  .mobile-user-info i {
    font-size: 1rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Hero Slider Fade Animation */
.slide {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}
