* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
}

.app {
  max-width: 100%;
  min-height: 100vh;
  padding-bottom: 70px;
}

/* Header */
.header {
  padding: 15px;
  background: #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #2a2a2a;
  border-radius: 25px;
  padding: 10px 20px;
  gap: 10px;
}

.search-icon {
  font-size: 18px;
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  outline: none;
}
/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 10px;
  padding: 15px;
  overflow-x: auto;
  background: #0a0a0a;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  background: #2a2a2a;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.tab.active {
  background: #ff4757;
}

/* Drama Grid */
.drama-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 15px;
}

.drama-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}

.drama-card:hover {
  transform: scale(1.05);
}

.drama-poster {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 10px;  overflow: hidden;
  position: relative;
}

.drama-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dubbed-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff4757;
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
}

.view-count {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
}

.drama-title {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drama-subtitle {
  font-size: 10px;
  color: #888;
  margin-top: 3px;
}
/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid #2a2a2a;
  z-index: 100;
}

.nav-item {
  background: none;
  border: none;
  color: #888;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 5px 15px;
}

.nav-item.active {
  color: #ff4757;
}

.nav-icon {
  font-size: 20px;
}

.nav-label {
  font-size: 10px;
}

/* Menu Overlay */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  justify-content: center;
  align-items: center;}

.menu-overlay.active {
  display: flex;
}

.menu-content {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
}

.menu-content h2 {
  margin-bottom: 20px;
  color: #ff4757;
}

.menu-item {
  display: block;
  width: 100%;
  background: #2a2a2a;
  color: #fff;
  border: none;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
}

/* Settings Panel */
.settings-panel {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1a1a1a;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  z-index: 300;
}

.settings-panel.active {
  display: block;}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #2a2a2a;
}

.setting-item label {
  font-size: 14px;
}

.setting-item input,
.setting-item select {
  background: #2a2a2a;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
}

.close-settings {
  width: 100%;
  background: #ff4757;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 400;
}

.video-modal.active {
  display: flex;  align-items: center;
  justify-content: center;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 401;
}

.video-modal iframe {
  width: 100%;
  height: 100%;
}

/* Responsive */
@media (min-width: 768px) {
  .drama-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
