:root {
  --bg-color: #0F111A;
  --bg-secondary: #171923;
  --bg-tertiary: #1E212D;
  --bg-glass: rgba(30, 33, 45, 0.6);
  --border-glass: rgba(255, 255, 255, 0.05);
  
  --primary: #A855F7; /* Neon Purple */
  --primary-hover: #9333EA;
  --secondary: #EC4899; /* Neon Pink */
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-neon: 0 0 15px rgba(168, 85, 247, 0.4);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

ul {
  list-style: none;
}

/* Glassmorphism Classes */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav a {
  font-weight: 500;
  font-size: 16px;
  color: var(--text-muted);
  position: relative;
}

.nav a:hover, .nav a.active {
  color: var(--text-main);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
}

.nav a:hover::after, .nav a.active::after {
  width: 100%;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border-radius: 30px;
  padding: 5px 15px;
  border: 1px solid var(--border-glass);
}

.search-bar input {
  background: none;
  border: none;
  color: var(--text-main);
  padding: 8px;
  outline: none;
  width: 200px;
}

.search-bar button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.search-bar button:hover {
  color: var(--primary);
}

/* User Actions */
.user-actions {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.btn-primary:hover {
  box-shadow: var(--shadow-neon);
  transform: translateY(-2px);
  color: white; /* keep it white on hover. Do not apply a:hover color */
}

/* Hero Section */
.hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 30px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 17, 26, 0.9) 0%, rgba(15, 17, 26, 0.4) 50%, rgba(15, 17, 26, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  padding: 40px;
}

.hero-tag {
  background: rgba(236, 72, 153, 0.2);
  color: var(--secondary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
  align-self: flex-start;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: 14px;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: block;
  width: 6px;
  height: 28px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

.view-more {
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-more:hover {
  color: var(--primary);
}

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

.vod-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  transition: var(--transition);
  border: 1px solid var(--border-glass);
}

.vod-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(168, 85, 247, 0.3);
}

.vod-pic {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
}

.vod-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vod-item:hover .vod-pic img {
  transform: scale(1.05);
}

.vod-remarks {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-neon);
}

.vod-score {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 15px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: #FBBF24;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vod-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 50px;
  height: 50px;
  background: var(--bg-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: white;
  font-size: 20px;
}

.vod-item:hover .vod-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.vod-info {
  padding: 15px;
}

.vod-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vod-actor {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Detail Page */
.detail-wrap {
  margin-top: 40px;
  display: flex;
  gap: 40px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-glass);
}

.detail-pic {
  flex-shrink: 0;
  width: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.detail-pic img {
  width: 100%;
  border-radius: var(--radius-md);
}

.detail-info {
  flex-grow: 1;
}

.detail-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.detail-meta span {
  background: var(--bg-tertiary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.detail-desc {
  margin-bottom: 30px;
  color: var(--text-muted);
  line-height: 1.8;
}

.detail-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--bg-glass);
  color: var(--primary);
  transform: translateY(-2px);
}

.play-list-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.play-item {
  background: var(--bg-tertiary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.play-item:hover, .play-item.active {
  background: rgba(168, 85, 247, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}

/* Player Page */
.player-container {
  margin-top: 20px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  aspect-ratio: 16/9;
}

.player-main {
  width: 100%;
  height: 100%;
}

.player-info {
  margin-top: 20px;
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Filter/Type Page */
.filter-box {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: var(--radius-lg);
  margin-top: 30px;
  margin-bottom: 40px;
  border: 1px solid var(--border-glass);
}

.filter-line {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
}

.filter-line:last-child {
  margin-bottom: 0;
}

.filter-label {
  color: var(--text-muted);
  width: 60px;
  flex-shrink: 0;
  padding-top: 5px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-item {
  padding: 5px 15px;
  border-radius: 20px;
  color: var(--text-muted);
  transition: var(--transition);
}

.filter-item:hover, .filter-item.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-neon);
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 40px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  text-align: center;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

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

/* Pagination */
.mac_pages {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.mac_pages .page_link, .mac_pages .page_current {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.mac_pages .page_link:hover, .mac_pages .page_current {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-neon);
}

/* Jump/Msg pages */
.msg-wrapper {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msg-box {
  background: var(--bg-secondary);
  padding: 50px;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 500px;
  width: 100%;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.msg-icon {
  font-size: 64px;
  margin-bottom: 20px;
  color: var(--primary);
}

.msg-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav, .search-bar {
    display: none;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .detail-wrap {
    flex-direction: column;
  }
  
  .detail-pic {
    width: 150px;
    margin: 0 auto;
  }
  
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
  }
}
