:root {
  --primary: #ff6b35;
  --secondary: #ffb347;
  --dark: #1a1a2e;
  --darker: #16213e;
  --light: #f7f7f7;
  --text-main: #333333;
  --text-light: #666666;
  --white: #ffffff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px; /* space for floating btn */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
header {
  background: var(--white);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container img {
  height: 32px;
  border-radius: 6px;
}

.logo-container span {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--dark);
}

.nav-links {
  display: none;
}

.download-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
  color: var(--white);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  line-height: 1.3;
  background: linear-gradient(to right, #fff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 25px;
}

.hero-carousel {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hero-carousel::-webkit-scrollbar {
  display: none;
}

.hero-carousel img {
  height: 180px;
  border-radius: 12px;
  scroll-snap-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  object-fit: cover;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.platform-btn {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.platform-btn:hover {
  background: rgba(255,255,255,0.2);
}

.platform-btn.main {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

/* Section Common */
section {
  padding: 40px 20px;
}

.section-title {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: block;
  width: 5px;
  height: 20px;
  background: var(--primary);
  border-radius: 3px;
}

/* Real-life Section */
.real-life {
  background: #f0f4f8;
}

.scroll-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 15px;
  scroll-snap-type: x mandatory;
}

.scroll-container::-webkit-scrollbar {
  height: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.drama-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.drama-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.drama-card-info {
  padding: 10px;
}

.drama-card-info h3 {
  font-size: 0.9rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drama-card-info p {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

.tag {
  display: inline-block;
  font-size: 0.65rem;
  background: #ffe8e0;
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 5px;
}

/* Original Section */
.original {
  background: var(--white);
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-item {
  background: var(--light);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.grid-item img {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

.grid-item-content h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 5px;
}

.grid-item-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grid-item-meta {
  font-size: 0.75rem;
  color: #999;
  display: flex;
  gap: 10px;
}

/* Calendar / Schedule Section */
.schedule-section {
  background: #fff5f0;
}

.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding-left: 15px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-time {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 5px;
}

.timeline-content {
  background: var(--white);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-content img {
  width: 40px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

/* Workshop Section */
.workshop {
  background: var(--darker);
  color: var(--white);
}

.workshop .section-title {
  color: var(--white);
}

.workshop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.workshop-card {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.workshop-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--secondary);
}

.workshop-card p {
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.5;
}

/* Genres Section */
.genres {
  background: var(--white);
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-tag {
  background: var(--light);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-main);
  border: 1px solid #eee;
}

.genre-tag.highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border: none;
  font-weight: bold;
}

/* Reviews Section */
.reviews {
  background: #f9f9f9;
}

.review-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  background: var(--white);
  padding: 15px;
  border-radius: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.review-content {
  flex: 1;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.review-name {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--dark);
}

.review-time {
  font-size: 0.75rem;
  color: #999;
}

.review-text {
  font-size: 0.85rem;
  color: var(--text-main);
}

/* Privacy & FAQ */
.privacy-faq {
  background: var(--light);
}

.faq-item {
  background: var(--white);
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 15px;
  font-weight: bold;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 15px 15px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Download Section */
.download-section {
  background: linear-gradient(180deg, var(--white) 0%, #fff5f0 100%);
  text-align: center;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  text-align: left;
}

.step-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.step-number {
  background: var(--primary);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-main);
}

/* Footer */
footer {
  background: var(--dark);
  color: #888;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.75rem;
  line-height: 1.8;
}

footer a {
  color: #aaa;
  margin: 0 5px;
}

footer a:hover {
  color: var(--white);
}

.update-time {
  margin-top: 10px;
  font-size: 0.7rem;
  color: #666;
}

/* Floating Button */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 999;
  white-space: nowrap;
}

.floating-download img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

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

.modal-content {
  background: var(--white);
  border-radius: 12px;
  padding: 25px 20px;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.modal-content p {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 15px;
}

.copy-box {
  background: var(--light);
  border: 1px dashed var(--primary);
  padding: 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--primary);
  margin-bottom: 15px;
  cursor: pointer;
}

.modal-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  width: 100%;
  cursor: pointer;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-carousel img {
    height: 240px;
  }
  .grid-layout {
    grid-template-columns: 1fr 1fr;
  }
  .workshop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .nav-links {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-main);
  }
  .nav-links a {
    padding: 5px;
  }
  .nav-links a:hover {
    color: var(--primary);
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  .hero-carousel img {
    height: 300px;
  }
  .drama-card {
    flex: 0 0 180px;
  }
  .drama-card img {
    height: 250px;
  }
  .workshop-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .steps-container {
    flex-direction: row;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto 30px;
  }
  .step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }
}