:root {
  --mint: #10b981;
  --forest: #059669;
  --light-mint: #d1fae5;
  --bg-white: #ffffff;
  --bg-gray: #f8fafc;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --shadow-soft: 0 4px 20px rgba(16, 185, 129, 0.1);
  --shadow-hover: 0 10px 30px rgba(16, 185, 129, 0.2);
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 30px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--forest);
}

.logo-area img {
  height: 32px;
  width: auto;
}

.nav-pill {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--radius-pill);
  padding: 4px 8px;
}

.nav-pill a {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.nav-pill a:hover {
  background: var(--light-mint);
  color: var(--forest);
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  padding: 8px 16px 8px 36px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  background: #f8fafc;
  outline: none;
  transition: all 0.3s ease;
  width: 200px;
}

.search-box input:focus {
  border-color: var(--mint);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
}

.btn-download {
  background: var(--mint);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-download:hover {
  background: var(--forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* Main Content */
main {
  padding-top: 70px;
}

section {
  padding: 80px 4%;
  scroll-margin-top: 80px;
}

section:nth-child(even) {
  background-color: var(--bg-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 4% 60px;
  background: radial-gradient(circle at 10% 20%, rgba(209, 250, 229, 0.4) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(209, 250, 229, 0.3) 0%, transparent 40%),
              #ffffff;
  min-height: 80vh;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-main);
  font-weight: 800;
}

.hero-content h1 span {
  color: var(--forest);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: var(--mint);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: var(--forest);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid var(--mint);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--light-mint);
  transform: translateY(-3px);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

/* Ranking */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.ranking-item {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.ranking-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.rank-num {
  font-size: 2.5rem;
  font-weight: 900;
  width: 60px;
  text-align: center;
  margin-right: 20px;
  font-style: italic;
}

.rank-1 { color: #fbbf24; text-shadow: 2px 2px 0px #b45309; }
.rank-2 { color: #9ca3af; text-shadow: 2px 2px 0px #4b5563; }
.rank-3 { color: #d97706; text-shadow: 2px 2px 0px #78350f; }

.rank-img {
  width: 60px;
  height: 80px;
  border-radius: 8px;
  margin-right: 20px;
  background: linear-gradient(45deg, var(--mint), var(--forest));
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
}

.rank-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.rank-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.rank-plays {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--forest);
  margin-left: 20px;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.card-img-wrapper.horizontal {
  aspect-ratio: 6 / 4;
}

.card-img-wrapper.vertical {
  aspect-ratio: 3 / 4;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

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

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--mint);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* QA Section */
.qa-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.qa-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-md);
  border-left: 6px solid var(--mint);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.qa-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-hover);
}

.qa-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 8px;
}

.qa-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Download Banner */
.download-banner {
  background: linear-gradient(135deg, var(--mint), var(--forest));
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  color: #fff;
  box-shadow: var(--shadow-hover);
}

.download-text h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.download-text p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.download-btns {
  display: flex;
  gap: 16px;
}

.download-btns a {
  background: #fff;
  color: var(--forest);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.download-btns a:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
  background: var(--bg-gray);
  padding: 40px 4%;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
}

.footer p {
  margin-bottom: 8px;
}

.footer a {
  color: #94a3b8;
  transition: color 0.3s;
}

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

/* Floating Widget */
.floating-widget {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.float-panel {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.floating-widget:hover .float-panel {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.float-panel a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--light-mint);
  color: var(--forest);
  transition: all 0.3s ease;
}

.float-panel a:hover {
  background: var(--mint);
  color: #fff;
}

.float-ball {
  width: 64px;
  height: 64px;
  background: var(--mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  animation: breathe 3s infinite ease-in-out;
}

.float-ball:hover {
  transform: scale(1.1);
  background: var(--forest);
}

@keyframes breathe {
  0%, 100% { transform: translateY(0); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4); }
  50% { transform: translateY(-8px); box-shadow: 0 15px 25px rgba(16, 185, 129, 0.5); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }
  .hero-content {
    margin-bottom: 40px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-image {
    justify-content: center;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-pill {
    display: none;
  }
  .download-banner {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .ranking-item {
    flex-wrap: wrap;
  }
  .rank-plays {
    width: 100%;
    text-align: right;
    margin-top: 10px;
  }
  .search-box {
    display: none;
  }
  .download-btns {
    flex-direction: column;
    width: 100%;
  }
  .download-btns a {
    justify-content: center;
  }
  .floating-widget {
    bottom: 20px;
    right: 20px;
  }
}