@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Sen:wght@400;700;800&display=swap");
:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --card: #16161e;
  --border: rgba(255, 255, 255, 0.06);
  --accent: #e63946;
  --accent2: #ff6b35;
  --text: #f0f0f5;
  --muted: #6b6b80;
  --nav-h: 68px;
  --radius: 10px;
  --font-display: "Bebas Neue", cursive;
  --font-body: "Sen", sans-serif;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --max-w: 1400px;
  --max-w-mid: 900px;
  --max-w-sm: 700px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font-family: inherit;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.98) 0%,
    rgba(10, 10, 15, 0.7) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-2xl);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  flex-shrink: 0;
}
.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  user-select: none;
  text-shadow: 0 0 30px rgba(230, 57, 70, 0.5);
  flex-shrink: 0;
  margin-left: 5px;
}
.navbar .fa-play {
  color: var(--accent);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  text-shadow: 0 0 30px rgba(230, 57, 70, 0.5);
  margin-left: 5px;
}
.menu-list {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.menu-list li a {
  display: block;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.menu-list li a:hover,
.menu-list li a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}
.menu-list li a.active {
  color: var(--accent);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.discord-btn,
.byod-btn,
.api-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--accent);
  font-size: 20px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.discord-btn:hover,
.byod-btn:hover,
.api-btn:hover {
  background: rgba(255, 255, 255, 0.07);
}
.nav-wl-link {
  position: relative;
}
#wl-badge {
  display: none;
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}
.container {
  padding-top: var(--nav-h);
}
.featured-content {
  position: relative;
  height: 88vh;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5% 80px;
  background: var(--surface);
  overflow: hidden;
}
.featured-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 15, 0.92) 0%,
    rgba(10, 10, 15, 0.5) 55%,
    rgba(10, 10, 15, 0.1) 100%
  );
}
.featured-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
}
.featured-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  letter-spacing: 3px;
  line-height: 1;
  text-transform: uppercase;
  max-width: 650px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  animation: fadeUp 0.8s ease both;
}
.featured-desc {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(240, 240, 245, 0.78);
  max-width: 500px;
  margin-top: var(--sp-md);
  display: -webkit-box;
  overflow: hidden;
  animation: fadeUp 0.8s 0.1s ease both;
}
.featured-button {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  width: fit-content;
  padding: 14px 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
  animation: fadeUp 0.8s 0.2s ease both;
}
.featured-button:hover {
  background: #ff2d3b;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.55);
}
.movie-list-container {
  padding: var(--sp-sm) 4% 0;
}
.movie-list-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.movie-list-title::before {
  content: "";
  display: block;
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}
.movie-list-wrapper {
  position: relative;
}
.movie-list {
  display: flex;
  gap: var(--sp-sm);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.movie-list::-webkit-scrollbar {
  display: none;
}
.movie-card {
  flex-shrink: 0;
  width: 160px;
  cursor: pointer;
  transition: transform 0.25s ease;
  position: relative;
}
.movie-card:hover {
  transform: translateY(-4px);
}
.movie-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: var(--card);
}
.movie-card-info {
  padding: 8px 4px 0;
}
.movie-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.movie-card-meta {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
  display: flex;
  gap: 8px;
}
.movie-card-rating {
  color: #ffd700;
  font-weight: 700;
}
.movie-card-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(to top, rgba(230, 57, 70, 0.25), transparent);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.movie-card:hover .movie-card-overlay {
  opacity: 1;
}
.movie-card .wl-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}
.movie-card:hover .wl-remove-btn {
  opacity: 1;
}
.movie-card .wl-remove-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.cw-badge {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  padding: 4px 0;
  pointer-events: none;
  width: 75px;
  border-radius: 5px;
}
.cw-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}
.cw-card:hover .cw-remove-btn {
  opacity: 1;
}
.cw-remove-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.arrow {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-80%);
  background: rgba(0, 0, 0, 0);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  z-index: 5;
  transition: background 0.2s, transform 0.2s;
}
.arrow:hover {
  transform: translateY(-80%) scale(1.1);
}
.page-header {
  padding: calc(var(--nav-h) + 48px) 5% 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(230, 57, 70, 0.05), transparent);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: 4px;
  text-transform: uppercase;
}
.page-header p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
  max-width: 520px;
  line-height: 1.6;
}
.page-content {
  padding: 40px 4%;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}
.content-grid .movie-card {
  width: 100%;
}
.content-grid .movie-card img {
  height: 250px;
}
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px 4% 0;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.search-hero {
  padding: calc(var(--nav-h) + 60px) 5% 40px;
  text-align: center;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(230, 57, 70, 0.1),
    transparent 70%
  );
}
.search-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 5px;
  text-transform: uppercase;
}
.search-hero p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.9rem;
}
.search-box-wrap {
  position: relative;
  max-width: 640px;
  margin: 32px auto 0;
}
.search-input {
  width: 100%;
  padding: 18px 60px 18px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: max(1rem, 16px);
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}
.search-input::placeholder {
  color: var(--muted);
}
.search-icon {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1rem;
  pointer-events: none;
}
.search-results-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 32px 5% 16px;
}
.search-results-title span {
  color: var(--accent);
}
.trend-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding: 32px 5%;
  max-width: 860px;
  margin: 0 auto;
}
.trend-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.trend-item:hover {
  border-color: rgba(230, 57, 70, 0.4);
  background: #1a1a24;
  transform: translateX(4px);
}
.trend-rank {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--border);
  width: 44px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
  letter-spacing: 2px;
}
.trend-item:nth-child(-n + 3) .trend-rank {
  color: var(--accent);
}
.trend-poster {
  width: 52px;
  height: 78px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--surface);
}
.trend-info {
  flex: 1;
  min-width: 0;
}
.trend-title {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trend-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}
.trend-rating {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--card) 25%,
    #1e1e28 50%,
    var(--card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--sp-md);
}
.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 92%;
  max-width: var(--max-w-mid);
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  animation: scaleIn 0.25s ease;
  overscroll-behavior: contain;
}
.modal-backdrop {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  display: block;
}
.modal-body {
  padding: 24px 30px 32px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.modal-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.modal-rating {
  color: #ffd700;
  font-weight: 700;
}
.modal-badge {
  background: rgba(230, 57, 70, 0.2);
  color: var(--accent);
  border: 1px solid rgba(230, 57, 70, 0.35);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.modal-overview {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(240, 240, 245, 0.75);
  margin-top: 14px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(10, 10, 15, 0.75);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
  z-index: 10;
}
.modal-close:hover {
  background: var(--accent);
}
.modal-actions {
  display: flex;
  gap: var(--sp-sm);
  margin-top: 20px;
  flex-wrap: wrap;
}
.ep-row {
  display: flex;
  gap: var(--sp-sm);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  border: 0.5px solid var(--border);
  background: var(--card);
  transition: background 0.15s, border-color 0.15s;
}
.ep-row:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}
.ep-thumb {
  flex-shrink: 0;
  width: 110px;
  height: 62px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
.ep-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.ep-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  background: rgba(230, 57, 70, 0.2);
  color: var(--accent);
  border-radius: 4px;
  padding: 1px 5px;
  margin-right: 5px;
}
.ep-date {
  font-size: 11px;
  color: var(--muted);
}
.ep-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
}
.picker-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}
.picker-input {
  width: 64px;
  padding: 8px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
}
.picker-input:focus {
  border-color: var(--accent);
}
.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px 14px 0 0;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}
.player-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-back-btn {
  padding: 7px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.player-back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.player-ep-btn {
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.player-ep-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.player-ep-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.player-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}
.player-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.btn-primary {
  padding: 12px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  touch-action: manipulation;
}
.btn-primary:hover {
  background: #ff2d3b;
  transform: translateY(-2px);
}
.btn-secondary {
  padding: 12px 32px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
  touch-action: manipulation;
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(230, 57, 70, 0.08);
}
.wl-stats {
  display: flex;
  gap: 24px;
  padding: 20px 4% 0;
  flex-wrap: wrap;
}
.wl-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wl-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 2px;
}
.wl-stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.wl-empty {
  text-align: center;
  padding: 100px 20px;
  color: var(--muted);
  grid-column: 1 / -1;
}
.wl-empty i {
  font-size: 4rem;
  color: var(--border);
  display: block;
  margin-bottom: 20px;
}
.wl-empty h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}
.wl-empty p {
  font-size: 0.9rem;
  max-width: 360px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty-state i {
  font-size: 3rem;
  color: var(--border);
  margin-bottom: 16px;
}
.empty-state p {
  font-size: 0.9rem;
}
.time-left-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 4;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}
.api-content {
  max-width: var(--max-w-sm);
  margin: 0 auto;
  padding: 40px 4%;
}
.api-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.api-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.api-inputs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.api-input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: max(0.95rem, 16px);
  outline: none;
  transition: border-color 0.2s;
}
.api-input::-webkit-outer-spin-button,
.api-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.api-input:focus {
  border-color: var(--accent);
}
.api-input::placeholder {
  color: var(--muted);
}
.api-input.small {
  flex: unset;
  width: 110px;
  text-align: center;
  min-width: unset;
}
.api-url-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 13px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}
.api-url-text {
  flex: 1;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}
.api-url-text.has-url {
  color: var(--text);
}
.api-copy-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.api-copy-btn:hover {
  color: var(--accent);
}
.api-player-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.api-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.api-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.api-placeholder svg {
  opacity: 0.2;
}
.byod-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 4%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color 0.2s;
}

.step-card:hover {
  border-color: rgba(230, 57, 70, 0.3);
}

.step-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid rgba(230, 57, 70, 0.35);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.step-card p {
  font-size: 0.9rem;
  color: rgba(240, 240, 245, 0.72);
  line-height: 1.7;
}

.step-card a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.step-card a:hover {
  opacity: 0.75;
}

code {
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.25);
  color: #ff4d57;
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 5px;
}

.step-card strong {
  color: #ff4d57;
  font-weight: 800;
}

.byod-note {
  text-align: center;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
@media (max-width: 1024px) {
  .navbar-container {
    gap: var(--sp-lg);
  }
  .movie-card {
    width: 145px;
  }
  .movie-card img {
    height: 220px;
  }
  .modal-backdrop {
    height: 240px;
  }
}
@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
  }
  .navbar-container {
    padding: 0 var(--sp-md);
    gap: var(--sp-md);
    align-items: center;
    justify-content: center;
  }
  .logo {
    font-size: 1.4rem;
    letter-spacing: 3px;
    margin-left: 0;
  }
  .navbar .fa-play {
    margin-left: -28px;
  }
  .menu-list {
    gap: 0;
  }
  .menu-list li a {
    padding: 6px 8px;
    font-size: 0.65rem;
    letter-spacing: 1px;
  }
  .menu-list .nav-hide-sm {
    display: none;
  }
  .discord-btn,
  .byod-btn,
  .api-btn {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }
  .featured-content {
    height: 72vh;
    padding: 0 5% 48px;
  }
  .featured-content::before {
    background: linear-gradient(
      to right,
      rgba(10, 10, 15, 0.95) 0%,
      rgba(10, 10, 15, 0.6) 70%,
      rgba(10, 10, 15, 0.2) 100%
    );
  }
  .featured-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .featured-desc {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
  }
  .featured-button {
    padding: 11px 28px;
    font-size: 1rem;
    margin-top: 20px;
  }
  .movie-card {
    width: 130px;
  }
  .movie-card img {
    height: 195px;
  }
  .movie-card .wl-remove-btn,
  .cw-remove-btn {
    opacity: 1;
  }
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
  }
  .content-grid .movie-card img {
    height: 210px;
  }
  .page-header {
    padding: calc(var(--nav-h) + 32px) 5% 24px;
  }
  .page-header h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .modal {
    width: 97%;
    max-height: 95vh;
  }
  .modal-backdrop {
    height: 180px;
  }
  .modal-body {
    padding: 18px 18px 24px;
  }
  .modal-title {
    font-size: 1.5rem;
  }
  .modal-actions {
    flex-direction: column;
  }
  .modal-actions .btn-primary,
  .modal-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }
  .player-header {
    padding: 10px 14px;
  }
  .player-title {
    font-size: 0.95rem;
  }
  .trend-item {
    gap: var(--sp-sm);
    padding: 10px 14px;
  }
  .trend-rank {
    font-size: 1.8rem;
    width: 36px;
  }
  .trend-poster {
    width: 42px;
    height: 63px;
  }
  .search-hero {
    padding: calc(var(--nav-h) + 36px) 5% 28px;
  }
  .search-input {
    padding: 14px 50px 14px 18px;
  }
  .api-inputs {
    flex-direction: column;
  }
  .api-input.small {
    width: 100%;
  }
  .filter-bar {
    padding: 16px 4% 0;
    gap: 8px;
  }
  .filter-btn {
    padding: 6px 14px;
    font-size: 0.7rem;
  }
  .btn-primary,
  .btn-secondary {
    padding: 11px 24px;
  }
  .arrow {
    display: none;
  }
  .wl-stats {
    gap: 16px;
  }
  .wl-stat-num {
    font-size: 1.6rem;
  }
}
@media (max-width: 480px) {
  .menu-list li a {
    padding: 5px 6px;
    font-size: 0.6rem;
  }
  .featured-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
  .movie-card {
    width: 115px;
  }
  .movie-card img {
    height: 172px;
  }
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
  }
  .content-grid .movie-card img {
    height: 180px;
  }
  .trend-rank {
    display: none;
  }
  .wl-empty {
    padding: 60px 20px;
  }
  .wl-empty i {
    font-size: 3rem;
  }
  .wl-empty h2 {
    font-size: 1.4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  margin-left: 8px;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-hamburger:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}
.mobile-drawer {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
  padding: 24px 20px 40px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  animation: drawerIn 0.22s ease both;
}
.mobile-drawer.open {
  display: flex;
}
@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mobile-drawer a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.mobile-drawer a:hover,
.mobile-drawer a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.mobile-drawer a.active {
  color: var(--accent);
}
.mobile-drawer a i {
  width: 20px;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
  text-align: center;
}
.mobile-drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}
.mobile-drawer-bottom {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}
.mobile-drawer-bottom a {
  flex: 1;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.mobile-drawer-bottom a i {
  color: var(--accent);
}
@media (max-width: 768px) {
  .menu-list {
    display: none !important;
  }
  .nav-right {
    display: none !important;
  }
  .nav-hamburger {
    display: flex;
  }
}
