:root {
  --bg-dark: #0a1c16;
  --bg-darker: #06120e;
  --bg-card: #112a22;
  --text-cream: #f4f1e1;
  --text-muted: #a3b8af;
  --apple-red: #e63946;
  --apple-red-hover: #cc2f3c;
  --apple-green: #7cd992;
  --border-color: #1e4035;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-cream);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 28, 22, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-cream);
}
.brand img {
  height: 32px;
  width: auto;
  border-radius: 4px;
}
.nav-links {
  display: none;
}
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
  }
  .nav-links a:hover {
    color: var(--apple-green);
  }
}
.btn-download {
  display: inline-block;
  background-color: var(--apple-red);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.btn-download:hover {
  background-color: var(--apple-red-hover);
}

/* Hero */
.hero {
  position: relative;
  padding: 60px 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.1);
}
@media (max-width: 768px) {
  .hero-bg {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--bg-dark) 40%, transparent 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
  }
}
.hero-text {
  flex: 1;
}
.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}
.btn-primary {
  background-color: var(--apple-red);
  color: #fff;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
}
.btn-secondary {
  background-color: transparent;
  color: var(--text-cream);
  padding: 12px 30px;
  border-radius: 25px;
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 1rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (min-width: 560px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--apple-green);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-featured {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  position: relative;
}
.hero-featured .cover-large {
  grid-row: span 2;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-featured .cover-small {
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-top {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--apple-red);
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
}

/* Sections Common */
section {
  padding: 80px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 2rem;
  color: var(--text-cream);
}
.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Rankings */
.rank-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 860px) {
  .rank-layout {
    grid-template-columns: 1fr 2fr;
  }
}
.rank-featured {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.rank-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rank-featured-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: var(--bg-card);
  padding: 10px;
  border-radius: 8px;
}
.rank-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--apple-red);
  width: 30px;
  text-align: center;
}
.rank-thumb {
  width: 60px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
}
.rank-info {
  flex: 1;
}
.rank-info h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}
.rank-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.rank-bar {
  width: 100%;
  height: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
  margin-top: 8px;
}
.rank-bar-inner {
  height: 100%;
  background-color: var(--apple-red);
  border-radius: 2px;
}

/* Categories */
.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 30px;
}
.category-tabs span {
  padding: 8px 16px;
  border-radius: 20px;
  background-color: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.category-tabs span.active {
  background-color: var(--apple-green);
  color: var(--bg-dark);
  font-weight: 600;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
@media (min-width: 560px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 860px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.drama-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-card);
  aspect-ratio: 3/4;
}
.drama-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drama-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.drama-info h3 {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drama-info p {
  font-size: 0.75rem;
  color: var(--apple-green);
}

/* New Releases */
.release-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
}
.release-card {
  flex: 0 0 160px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-card);
}
.release-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.release-info {
  padding: 10px;
}
.release-info h3 {
  font-size: 0.9rem;
  margin-bottom: 5px;
}
.release-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.tag-new {
  display: inline-block;
  background-color: var(--apple-red);
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 5px;
}

/* Curated Lists */
.curated-lay {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 768px) {
  .curated-lay {
    grid-template-columns: 1fr 1fr;
  }
}
.curated-item {
  display: flex;
  gap: 20px;
  background-color: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
}
.curated-covers {
  display: flex;
  position: relative;
  width: 120px;
  height: 160px;
}
.curated-covers img {
  position: absolute;
  width: 100px;
  height: 140px;
  border-radius: 6px;
  border: 2px solid var(--bg-card);
  object-fit: cover;
  transition: transform 0.3s;
}
.curated-covers img:nth-child(1) { left: 0; top: 0; z-index: 3; }
.curated-covers img:nth-child(2) { left: 10px; top: 10px; z-index: 2; }
.curated-covers img:nth-child(3) { left: 20px; top: 20px; z-index: 1; }
.curated-item:hover .curated-covers img:nth-child(1) { transform: translateX(-5px) rotate(-3deg); }
.curated-item:hover .curated-covers img:nth-child(3) { transform: translateX(5px) rotate(3deg); }
.curated-text {
  flex: 1;
}
.curated-text h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.curated-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Calendar */
.calendar-wrap {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
}
.calendar-days {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.calendar-days span {
  padding: 8px 16px;
  border-radius: 8px;
  background-color: var(--bg-dark);
  cursor: pointer;
}
.calendar-days span.active {
  background-color: var(--apple-green);
  color: var(--bg-dark);
}
.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.calendar-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}
.calendar-time {
  font-weight: 700;
  color: var(--apple-green);
  width: 50px;
}
.calendar-item img {
  width: 40px;
  height: 53px;
  border-radius: 4px;
}
.calendar-info h3 {
  font-size: 0.95rem;
}
.calendar-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Ecosystem */
.eco-stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}
.eco-stat {
  text-align: center;
}
.eco-stat h3 {
  font-size: 1.8rem;
  color: var(--apple-green);
}
.eco-stat p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.review-card {
  display: flex;
  gap: 15px;
  background-color: var(--bg-card);
  padding: 15px;
  border-radius: 8px;
}
.review-card img {
  width: 60px;
  height: 80px;
  border-radius: 6px;
}
.review-content p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.review-user {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Download */
.download-section {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.download-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 768px) {
  .download-layout {
    flex-direction: row;
    align-items: center;
  }
}
.download-text {
  flex: 1;
}
.download-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.download-text p {
  color: var(--text-muted);
  margin-bottom: 30px;
}
.dl-btns {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.dl-btns a {
  flex: 1;
  text-align: center;
  background-color: var(--apple-red);
  color: #fff;
  padding: 15px;
  border-radius: 8px;
  font-weight: 600;
}
.download-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.download-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}
.phone-frame {
  width: 240px;
  height: 480px;
  border: 8px solid #333;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background-color: #000;
}
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
details {
  background-color: var(--bg-card);
  padding: 15px;
  border-radius: 8px;
}
summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
details p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Brand Story */
.story-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (min-width: 768px) {
  .story-content {
    flex-direction: row;
    align-items: center;
  }
}
.story-text {
  flex: 1;
}
.story-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.story-text p {
  color: var(--text-muted);
  margin-bottom: 15px;
}
.story-img {
  flex: 1;
}
.story-img img {
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
footer p {
  margin-bottom: 10px;
}
footer a {
  color: var(--text-muted);
}
footer details {
  background: transparent;
  padding: 0;
  margin-top: 20px;
  display: inline-block;
  text-align: left;
}
footer summary {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.about-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.about-links a {
  color: var(--apple-green);
}
.about-links a:hover {
  text-decoration: underline;
}