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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #000;
  min-height: 100vh;
  color: #e0e0e0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  text-decoration: none;
  color: #aaa;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #667eea;
}

.back-btn {
  text-decoration: none;
  color: #667eea;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.3s ease;
}

.back-btn:hover {
  transform: translateX(-3px);
}

.main {
  padding: 40px 0;
}

.hero {
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
}

.section-title {
  font-size: 36px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
  font-size: 18px;
  opacity: 0.9;
}

.drama-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.drama-card {
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.drama-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.drama-cover {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.drama-info {
  padding: 20px;
}

.drama-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}

.drama-description {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drama-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.drama-category {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.drama-stats {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #888;
}

.detail-container {
  background: #1a1a1a;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-section {
  background: #000;
  position: relative;
}

.video-player {
  width: 100%;
  max-height: 600px;
  display: block;
}

.detail-content {
  padding: 30px;
}

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

.detail-cover {
  width: 200px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.detail-info {
  flex: 1;
}

.detail-title {
  font-size: 32px;
  margin-bottom: 15px;
  color: #fff;
}

.detail-category {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 15px;
}

.detail-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  font-size: 16px;
  color: #aaa;
}

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

.detail-description {
  font-size: 16px;
  line-height: 1.8;
  color: #bbb;
}

.episodes-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #333;
}

.episodes-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #fff;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
}

.episode-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.episode-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.footer {
  background: rgba(20, 20, 20, 0.95);
  text-align: center;
  padding: 20px;
  margin-top: 60px;
  color: #888;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .section-title {
    font-size: 28px;
  }

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

  .drama-cover {
    height: 220px;
  }

  .detail-header {
    flex-direction: column;
  }

  .detail-cover {
    width: 100%;
    height: auto;
  }

  .detail-title {
    font-size: 24px;
  }

  .episodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
  }
}