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

:root {
  --bg: #050505;
  --bg2: #0a0a0a;
  --bg3: #111111;
  --bg4: #1a1a1a;
  --accent: #00ff41;
  --accent2: #39ff14;
  --accent-dim: rgba(0, 255, 65, 0.15);
  --text: #e0ffe0;
  --text2: #558855;
  --text3: #334433;
  --radius: 12px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(rgba(0,255,65,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,65,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  background: rgba(5,5,5,0.95);
  border-bottom: 1px solid rgba(0,255,65,0.1);
  box-shadow: 0 0 30px rgba(0,255,65,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.logo {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.5px;
  text-shadow: 0 0 20px rgba(0,255,65,0.3);
}

.logo:hover {
  text-shadow: 0 0 30px rgba(0,255,65,0.5);
}

.nav {
  display: flex;
  gap: 2px;
}

.nav-link {
  color: var(--text2);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(0,255,65,0.05);
}

.search-box {
  display: flex;
  flex: 1;
  max-width: 360px;
  margin-left: auto;
}

.search-box input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(0,255,65,0.15);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(0,255,65,0.03);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--accent);
  background: rgba(0,255,65,0.06);
  box-shadow: 0 0 15px rgba(0,255,65,0.05);
}

.search-box input::placeholder {
  color: var(--text3);
}

.search-box button {
  padding: 10px 20px;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent);
  color: #050505;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.search-box button:hover {
  background: #00cc33;
  box-shadow: 0 0 20px rgba(0,255,65,0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 20px 50px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,65,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent), #00ff88, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero p {
  font-size: 18px;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto;
}

/* Section */
.section {
  padding: 20px 0 50px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 700;
  position: relative;
  padding-left: 14px;
}

.section-header h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--accent);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(0,255,65,0.3);
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 18px;
  border: 1px solid rgba(0,255,65,0.1);
  border-radius: 20px;
  background: transparent;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(0,255,65,0.05);
  box-shadow: 0 0 15px rgba(0,255,65,0.05);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #050505;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0,255,65,0.15);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--bg3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  border: 1px solid rgba(0,255,65,0.03);
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,255,65,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0,255,65,0.05);
}

.video-card .thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg4);
}

.video-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.video-card:hover .thumb img {
  transform: scale(1.08);
}

.video-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .thumb::after {
  opacity: 1;
}

.video-card .thumb .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0,255,65,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
  z-index: 2;
}

.video-card:hover .play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-card .play-overlay::after {
  content: "▶";
  color: #050505;
  font-size: 18px;
  margin-left: 2px;
}

.video-card .duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.85);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
  border: 1px solid rgba(0,255,65,0.1);
}

.video-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #050505;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.video-card .info {
  padding: 14px;
}

.video-card .title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.video-card:hover .title {
  color: var(--accent);
}

.video-card .meta {
  font-size: 12px;
  color: var(--text2);
  display: flex;
  gap: 14px;
  align-items: center;
}

.video-card .meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text2);
  font-size: 16px;
  grid-column: 1 / -1;
}

/* Latest Releases row */
.latest-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,255,65,0.3) transparent;
}

.latest-row::-webkit-scrollbar {
  height: 6px;
}

.latest-row::-webkit-scrollbar-thumb {
  background: rgba(0,255,65,0.3);
  border-radius: 3px;
}

.latest-card {
  flex: 0 0 200px;
  background: var(--bg3);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0,255,65,0.03);
  transition: all 0.3s;
}

.latest-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,255,65,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 16px rgba(0,255,65,0.05);
}

.latest-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg4);
}

.latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.latest-card:hover .latest-thumb img {
  transform: scale(1.06);
}

.latest-thumb .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,255,65,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
  z-index: 2;
}

.latest-card:hover .play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.latest-thumb .play-overlay::after {
  content: "▶";
  color: #050505;
  font-size: 15px;
  margin-left: 2px;
}

.latest-thumb .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #050505;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.latest-info {
  padding: 12px;
}

.latest-title {
  font-size: 13px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.latest-card:hover .latest-title {
  color: var(--accent);
}

.latest-meta {
  font-size: 11px;
  color: var(--text2);
}

@media (max-width: 480px) {
  .latest-card {
    flex: 0 0 160px;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0 30px;
  border-top: 1px solid rgba(0,255,65,0.05);
  color: var(--text3);
  font-size: 13px;
}

.footer .disclaimer {
  margin-top: 8px;
  font-size: 11px;
  color: #333;
}

/* Utility */
.hidden { display: none !important; }

/* Pornwha section */
.pw-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pw-genre-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text2);
}

.pw-genre-row select {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.pornwha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.pw-card {
  background: var(--bg3);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0, 255, 65, 0.03);
  transition: all 0.3s;
}

.pw-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 65, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 65, 0.05);
}

.pw-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg4);
}

.pw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.pw-card:hover .pw-thumb img {
  transform: scale(1.07);
}

.pw-thumb .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #050505;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pw-thumb .rating {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
  border: 1px solid rgba(0, 255, 65, 0.1);
}

.pw-info {
  padding: 12px;
}

.pw-title {
  font-size: 13px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.pw-card:hover .pw-title {
  color: var(--accent);
}

.pw-meta {
  font-size: 11px;
  color: var(--text2);
}

/* Info view */
.info-layout {
  padding: 24px 20px;
}

.info-header {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.info-cover {
  width: 220px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 255, 65, 0.12);
  flex-shrink: 0;
  background: var(--bg3);
}

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

.info-text h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.info-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 12px;
}

.info-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.info-text p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

.info-chapters-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  padding-left: 14px;
  position: relative;
}

.info-chapters-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.info-chapters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.chapter-item {
  background: var(--bg3);
  border: 1px solid rgba(0, 255, 65, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
}

.chapter-item:hover {
  border-color: var(--accent);
  background: rgba(0, 255, 65, 0.05);
}

.chapter-item .ch-time {
  color: var(--text3);
  font-size: 11px;
  white-space: nowrap;
}

/* Reader view */
.reader-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.reader-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-nav {
  display: flex;
  gap: 8px;
}

.reader-nav .watch-back:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.reader-pages {
  padding: 20px;
  max-width: 900px;
}

.reader-page {
  margin: 0 auto 10px;
  width: 100%;
}

.reader-page img {
  width: 100%;
  display: block;
  border-radius: 6px;
  background: var(--bg3);
}

.reader-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text2);
}

@media (max-width: 768px) {
  .info-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .info-cover {
    width: 180px;
    height: 245px;
  }

  .pornwha-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
}

/* Watch page */
.watch-bar {
  background: var(--bg2);
  border-bottom: 1px solid rgba(0,255,65,0.08);
  padding: 12px 20px;
}

.watch-back {
  background: none;
  border: 1px solid rgba(0,255,65,0.15);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.watch-back:hover {
  background: rgba(0,255,65,0.1);
  box-shadow: 0 0 15px rgba(0,255,65,0.1);
}

.watch-layout {
  display: flex;
  gap: 24px;
  padding: 24px 20px;
  align-items: flex-start;
}

.watch-main {
  flex: 1;
  min-width: 0;
}

.watch-player-wrapper {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0,255,65,0.1);
}

.watch-player-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
}

.watch-info {
  margin-top: 20px;
}

.watch-info h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.watch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text2);
}

.watch-meta .label {
  color: var(--text3);
}

.watch-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.genre-tag {
  background: rgba(0,255,65,0.08);
  border: 1px solid rgba(0,255,65,0.15);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

.watch-info p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

/* Episode sidebar */
.watch-sidebar {
  width: 320px;
  flex-shrink: 0;
  background: var(--bg2);
  border: 1px solid rgba(0,255,65,0.08);
  border-radius: var(--radius);
  padding: 16px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  position: sticky;
  top: 80px;
}

.watch-sidebar h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,255,65,0.08);
  color: var(--accent);
}

.episode-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  margin-bottom: 6px;
}

.episode-item:hover {
  background: rgba(0,255,65,0.05);
  border-color: rgba(0,255,65,0.1);
}

.episode-item.active {
  background: rgba(0,255,65,0.1);
  border-color: var(--accent);
}

.episode-item img {
  width: 80px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--bg3);
}

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

.ep-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.ep-meta {
  font-size: 11px;
  color: var(--text2);
}

.loading-episodes {
  text-align: center;
  padding: 30px 10px;
  color: var(--text2);
  font-size: 13px;
}

@media (max-width: 900px) {
  .watch-layout {
    flex-direction: column;
  }

  .watch-sidebar {
    width: 100%;
    max-height: none;
    position: static;
  }

  .watch-info h1 {
    font-size: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
}
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5,5,5,0.98);
    padding: 16px;
    border-bottom: 1px solid rgba(0,255,65,0.1);
  }

  .search-box {
    max-width: 180px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 50px 20px 30px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .search-box {
    max-width: 120px;
  }

  .search-box input {
    padding: 8px 12px;
    font-size: 13px;
  }

  .search-box button {
    padding: 8px 14px;
    font-size: 13px;
  }
}
