/* Netflix-inspired Movie Streaming Site */
:root {
  --bg-primary: #141414;
  --bg-secondary: #181818;
  --bg-card: #1f1f1f;
  --accent-red: #e50914;
  --accent-red-hover: #f40612;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #808080;
  --nav-height: 68px;
  --card-width: 220px;
  --card-height: 330px;
  --row-gap: 6px;
}

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

body {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: var(--bg-primary);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--accent-red);
  text-decoration: none;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-links a.active {
  color: white;
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.search-input-wrap {
  position: relative;
}

.search-input {
  width: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: white;
  font-size: 0.95rem;
  transition: width 0.3s ease, padding 0.3s ease;
  outline: none;
}

.search-container.search-prominent .search-input {
  width: 280px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
}

.search-container.search-prominent.active .search-input {
  width: 400px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
}

.search-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-menu {
  position: relative;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  background: var(--accent-red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: rgba(28,28,28,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 1000;
}

.profile-menu.open .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.profile-dropdown a:hover {
  background: rgba(255,255,255,0.08);
}

.profile-dropdown a:first-child {
  border-radius: 4px 4px 0 0;
}

.profile-dropdown a:last-child {
  border-radius: 0 0 4px 4px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 56.25vw;
  max-height: 85vh;
  min-height: 400px;
  margin-top: calc(-1 * var(--nav-height));
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1616530940355-351fabd6666d?w=1920') center/cover no-repeat;
  filter: brightness(0.5);
  background-color: #1a1a1a;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg-primary) 0%,
    transparent 50%,
    transparent 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 25%;
  left: 4%;
  max-width: 36rem;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-play {
  background: white;
  color: black;
}

.btn-play:hover {
  background: rgba(255,255,255,0.85);
}

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

.btn-info:hover {
  background: rgba(109, 109, 110, 0.5);
}

/* Search Results */
.search-results-section {
  padding: 2rem 4% 4rem;
  margin-top: -6rem;
  position: relative;
  z-index: 3;
}

.search-results-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.search-result-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
}

.search-result-card:hover {
  transform: scale(1.03);
}

.search-result-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.search-result-card-info {
  padding: 1rem;
}

.search-result-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-card-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.search-result-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-card .btn-play {
  width: 100%;
  margin-top: 0.75rem;
  justify-content: center;
}

/* Content Rows */
.content-section {
  padding: 0 4% 4rem;
  margin-top: -8rem;
  position: relative;
  z-index: 3;
}

.content-row {
  margin-bottom: 2.5rem;
}

.row-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

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

.row-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: calc(var(--card-height) + 20px);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.row-container:hover .row-nav {
  opacity: 1;
}

.row-nav:hover {
  background: rgba(0,0,0,0.8);
}

.row-nav-left {
  left: 0;
}

.row-nav-right {
  right: 0;
}

.movie-row {
  display: flex;
  gap: var(--row-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

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

.row-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  min-height: 330px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* More button at end of row */
.row-more-btn {
  flex: 0 0 var(--card-width);
  height: var(--card-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 4px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.row-more-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
}

.row-more-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.row-more-btn.loading .row-more-text::after {
  content: '...';
}

/* Movie Card */
.movie-card {
  flex: 0 0 var(--card-width);
  height: var(--card-height);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}

.movie-card:hover {
  transform: scale(1.08);
  z-index: 5;
}

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

.movie-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

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

/* Search feedback: animate cards when user is typing */
.content-section.searching .movie-card {
  animation: search-pulse 1.2s ease-in-out infinite;
}

.content-section.searching .movie-row .movie-card:nth-child(4n+1) { animation-delay: 0s; }
.content-section.searching .movie-row .movie-card:nth-child(4n+2) { animation-delay: 0.15s; }
.content-section.searching .movie-row .movie-card:nth-child(4n+3) { animation-delay: 0.3s; }
.content-section.searching .movie-row .movie-card:nth-child(4n+4) { animation-delay: 0.45s; }

@keyframes search-pulse {
  0%, 100% { transform: translateX(0); }
  33% { transform: translateX(6px); }
  66% { transform: translateX(-4px); }
}

.hero.searching .hero-backdrop {
  animation: search-hero-shift 1.5s ease-in-out infinite;
}

@keyframes search-hero-shift {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}

.modal-content {
  position: relative;
  background: var(--bg-secondary);
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: var(--bg-primary);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255,255,255,0.2);
}

.modal-poster {
  width: 40%;
  min-width: 260px;
  background-size: cover;
  background-position: center;
}

.modal-info {
  padding: 2rem;
  flex: 1;
  overflow-y: auto;
}

.modal-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.modal-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
}

.modal-play,
.modal-watch {
  background: var(--accent-red);
  color: white;
}

.modal-play:hover,
.modal-watch:hover {
  background: var(--accent-red-hover);
}

/* Stream Picker */
.stream-picker-content {
  max-width: 500px;
  max-height: 80vh;
}

.stream-picker-title {
  padding: 1.5rem 1.5rem 0;
  font-size: 1.25rem;
}

.stream-list {
  padding: 1rem 1.5rem 1.5rem;
  overflow-y: auto;
  max-height: 60vh;
}

.stream-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.stream-item:hover {
  background: rgba(255,255,255,0.1);
}

.stream-item-info {
  flex: 1;
  min-width: 0;
}

.stream-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stream-item-details {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-quality-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.stream-loading,
.stream-error {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
}

.stream-error {
  color: var(--accent-red);
}

.stream-loading.hidden,
.stream-error.hidden {
  display: none;
}

/* Episode Picker */
.episode-picker-content {
  max-width: 720px;
  width: 90%;
  max-height: 85vh;
  flex-direction: column;
  overflow: hidden;
}

.episode-picker-title {
  padding: 1.5rem 1.5rem 0;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.episode-list {
  padding: 1rem 1.5rem 1.5rem;
  overflow-y: auto;
  max-height: 65vh;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.episode-thumb {
  position: relative;
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
  min-width: 0;
}

.episode-thumb:hover {
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.02);
}

.episode-thumb:focus {
  outline: none;
  border-color: var(--accent-red);
}

.episode-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  min-height: 0;
}

.episode-thumb .episode-num {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.85);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.episode-thumb .episode-name {
  display: block;
  padding: 0.5rem 0.6rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.season-selector {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.5rem 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.season-selector .episode-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}

.season-selector .episode-btn:hover {
  background: rgba(255,255,255,0.1);
}

.season-selector .episode-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

/* Admin Modal */
.admin-content,
.settings-content {
  background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 24px 48px rgba(0,0,0,0.6);
}

.admin-content {
  max-width: 380px;
}

.admin-title {
  padding: 1.5rem 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
}

.admin-password-form {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-password-form input {
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: white;
  font-size: 1rem;
}

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

.admin-password-form input:focus {
  outline: none;
  border-color: var(--accent-red);
}

.admin-password-error {
  color: var(--accent-red);
  font-size: 0.9rem;
  margin: 0;
}

.admin-actions {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-actions .btn {
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
}

.admin-actions .btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

.admin-actions .btn:first-child {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
}

.admin-actions .btn:first-child:hover {
  background: var(--accent-red-hover);
}

.account-placeholder {
  padding: 1.25rem 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Settings Modal */
.settings-content {
  max-width: 460px;
}

.settings-title {
  padding: 1.5rem 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
}

.settings-section {
  padding: 1.25rem 1.5rem 1rem;
}

.settings-section label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.settings-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.settings-hint a {
  color: var(--accent-red);
}

.settings-hint a:hover {
  text-decoration: underline;
}

.settings-hint code {
  background: rgba(255,255,255,0.1);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
}

.settings-section input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  color: white;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.settings-section input:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 2px rgba(229,9,20,0.2);
}

.save-settings-btn {
  margin-top: 0.25rem;
}

.settings-status {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.settings-status.success {
  color: #4ade80;
}

.settings-status.error {
  color: var(--accent-red);
}

/* Video Modal */
.video-modal .modal-content {
  max-width: 1200px;
  background: black;
}

.video-content {
  flex-direction: column;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: none;
}

.custom-volume-control {
  position: absolute;
  bottom: 50px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.7);
  border-radius: 8px;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.video-wrapper:hover .custom-volume-control,
.custom-volume-control.visible,
.custom-volume-control:hover {
  opacity: 1;
  visibility: visible;
}

.volume-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  display: flex;
}

.volume-slider {
  width: 80px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.cc-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  display: flex;
}

.subtitle-panel {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  padding: 12px;
  background: rgba(0,0,0,0.9);
  border-radius: 8px;
  min-width: 260px;
  gap: 8px;
  flex-direction: column;
}

.subtitle-panel.open {
  display: flex;
}

.subtitle-panel small,
.subtitle-panel .subtitle-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.subtitle-panel .subtitle-hint {
  margin-bottom: 4px;
}

.subtitle-panel input {
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: white;
  font-size: 0.9rem;
}

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

.load-subtitle-btn {
  font-size: 0.9rem;
  padding: 6px 12px;
}

.video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  padding: 2rem;
  text-align: center;
}

.timeout-message {
  max-width: 400px;
}

.timeout-message p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.timeout-message .copy-magnet-btn {
  margin-top: 0.5rem;
}

/* Fancy loading screen */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
}

.loading-content {
  text-align: center;
  padding: 3rem;
}

.loading-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  letter-spacing: 0.15em;
  color: var(--accent-red);
  margin-bottom: 2rem;
  animation: loading-pulse 1.5s ease-in-out infinite;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 1.5rem;
}

.loading-progress {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--accent-red), #ff6b6b);
  border-radius: 2px;
  animation: loading-progress 1.2s ease-in-out infinite;
}

.loading-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

@keyframes loading-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes loading-progress {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(200%); }
  100% { transform: translateX(-100%); }
}

.loading-screen.loading-done {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.error-message {
  text-align: center;
  padding: 2rem;
  color: var(--accent-red);
}

/* Footer */
.footer {
  padding: 2rem 4%;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .row-nav {
    display: none;
  }
  
  .content-section {
    margin-top: -4rem;
  }
  
  .modal-content {
    flex-direction: column;
  }
  
  .modal-poster {
    width: 100%;
    min-width: 100%;
    height: 200px;
  }
}
