.placeholder-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  text-transform: uppercase;
}

:root {
  --bg-main: #000000;
  --bg-card: #121212;
  --primary: #ff0050;
  --text-main: #ffffff;
  --text-muted: #b0b0b0;
  --radius: 12px;
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  padding-bottom: 80px;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.2);
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  transition:
    background 0.3s,
    backdrop-filter 0.3s;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: -1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.logo span {
  color: var(--primary);
}

.search-container {
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 44px 12px 16px;
  border-radius: 18px;
  color: white;
  font-size: 0.9rem;
  outline: none;
  backdrop-filter: blur(5px);
  z-index: 1;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.search-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
}
.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  cursor: pointer;
  z-index: 2;
}

.back-home-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-right: 6px;
  transition: all 0.2s;
}
.back-home-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.back-home-btn.visible {
  display: flex;
}

main {
  padding-top: 80px;
  min-height: 100vh;
}

.status-bar {
  padding: 0 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.status-pill {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.status-pill.success {
  color: #5ed681;
}
.status-pill.loading {
  color: #ffb347;
}
.status-pill.neutral {
  color: rgba(255, 255, 255, 0.6);
}
.status-pill.error {
  color: #ff6b6b;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  padding: 0 15px;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 0 30px;
  }
}

@media (max-width: 700px) {
  header {
    padding: 0 12px;
    gap: 10px;
  }
  .logo {
    font-size: 1.2rem;
  }
  .search-container {
    margin: 0 10px;
    max-width: none;
  }
  .back-home-btn {
    padding: 7px 12px;
    font-size: 0.85rem;
  }
}

.card {
  position: relative;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 5/7;
  cursor: pointer;
  transition: transform 0.2s;
}

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

.card-image {
  width: 100%;
  height: 100%;
  background: #222;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.source-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.6rem;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  backdrop-filter: blur(2px);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px black;
}

.skeleton-card {
  background: #222;
}
.skeleton-image {
  width: 100%;
  height: 100%;
  background: #2a2a2a;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

#reels-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: black;
  display: none;
}

#reels-overlay.active {
  display: block;
}

.reels-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.reels-container::-webkit-scrollbar {
  display: none;
}

.reel-item {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}


.video-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.player-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.pause-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  z-index: 15;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}

.pause-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1.05);
}

.player-controls.hidden {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.ctrl-btn i {
  font-size: 1.1rem;
}

.volume-slider {
  width: 90px;
  accent-color: var(--primary);
}

.speed-btn {
  width: auto;
  padding: 0 10px;
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .player-controls {
    right: 10px;
    top: 10px;
    gap: 8px;
    padding: 8px 10px;
  }
  .volume-slider {
    width: 70px;
  }
}

.video-container iframe,
.video-container video {
  width: 100%;
  height: 100%;
  border: none;
  max-width: 100vh;
  aspect-ratio: 9/16;
  object-fit: contain;
}

@media (min-width: 768px) {
  .video-container iframe,
  .video-container video {
    width: auto;
    aspect-ratio: 9/16;
  }
}

.reel-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.reel-info.hidden {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.reel-info {
  pointer-events: auto;
  max-width: 75%;
  color: white;
}

.reel-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.reel-meta {
  font-size: 0.9rem;
  color: #eee;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.9;
}

.reel-actions {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding-bottom: 50px;
}

.action-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}
.action-btn:active {
  transform: scale(0.95);
}

.action-label {
  font-size: 0.7rem;
  margin-top: 4px;
  font-weight: 600;
  text-shadow: 0 1px 2px black;
}

.episodes-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #161616;
  border-radius: 24px 24px 0 0;
  height: 70vh;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
}

.episodes-drawer.open {
  transform: translateY(0);
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title {
  font-weight: 700;
  color: white;
}

.drawer-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

.episodes-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 12px;
}

.ep-btn {
  background: #2a2a2a;
  border: 1px solid #333;
  color: #ccc;
  padding: 12px 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.ep-btn:hover {
  background: #333;
  color: white;
}
.ep-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 0, 80, 0.4);
}

.close-player {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.close-player:hover {
  background: rgba(0, 0, 0, 0.6);
}
.close-player.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.9)
  );
  z-index: 2;
  color: #ffb347;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.video-loader {
  pointer-events: none;
}
.video-loader::after {
  content: "...";
  display: inline-block;
  margin-left: 6px;
  animation: dots 1.2s steps(4, end) infinite;
}
@keyframes dots {
  0% {
    content: ".";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
  100% {
    content: "";
  }
}

.section {
  padding: 1rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.site-footer {
  padding: 40px 20px 60px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.footer-mark {
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 12px;
}

.section-title::before {
  content: "";
  display: block;
  width: 6px;
  height: 24px;
  background: var(--primary);
  border-radius: 4px;
}

#hero {
  height: 75vh;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: flex-end;
  margin-bottom: 3rem;
  background-color: #111;
}

#hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.5s ease-in-out;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

#hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    var(--bg-main) 0%,
    rgba(0, 0, 0, 0.8) 20%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 0, 80, 0.2);
  color: var(--primary);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 15px rgba(255, 0, 80, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  max-width: 900px;
}

.hero-desc {
  font-size: 1.1rem;
  color: #e0e0e0;
  max-width: 650px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-btn {
  padding: 16px 40px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px rgba(255, 0, 80, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-btn:hover {
  background: #ff3370;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 0, 80, 0.6);
}

.hero-btn i {
  font-size: 1.4rem;
}
