:root {
  --watermelon-red: #E84A5F;
  --watermelon-dark: #C03243;
  --rind-green: #2F9E44;
  --rind-light: #B2F2BB;
  --seed-black: #1A1A1A;
  --bg-color: #FFF9F9;
  --card-bg: #ffffff;
  --text-main: #333333;
  --text-light: #666666;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-soft: 0 8px 24px rgba(232, 74, 95, 0.08);
  --transition: all 0.3s ease;
}

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

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

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

ul {
  list-style: none;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 74, 95, 0.1);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 4%;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--seed-black);
}

.logo-group img {
  height: 32px;
  width: auto;
  border-radius: 6px;
}

.header-nav {
  display: none;
}

.btn-download {
  background-color: var(--watermelon-red);
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(232, 74, 95, 0.3);
}

.btn-download:hover {
  background-color: var(--watermelon-dark);
  transform: translateY(-2px);
}

.btn-download svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 60px 4% 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF0F0 0%, #FFF9F9 100%);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-content {
  z-index: 2;
  max-width: 500px;
}

.hero-content h1 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--seed-black);
}

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

.hero-desc {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
}

/* Cover Wall (Hero) */
.cover-wall {
  display: flex;
  gap: 16px;
  height: 400px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.cover-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 140px;
  animation: scrollUp 20s linear infinite;
}

.cover-col.reverse {
  animation: scrollDown 20s linear infinite;
}

.cover-wall:hover .cover-col {
  animation-play-state: paused;
}

.cover-wall img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* Common Section Styles */
section {
  padding: 80px 4%;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--seed-black);
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cat-card {
  background: #fff;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(232, 74, 95, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.cat-card:hover {
  border-color: var(--watermelon-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.cat-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--seed-black);
}

.cat-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* Rankings */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rank-item {
  display: flex;
  gap: 16px;
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  align-items: center;
}

.rank-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--watermelon-red);
  width: 30px;
  text-align: center;
  font-style: italic;
}

.rank-img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.rank-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.rank-tags span {
  display: inline-block;
  font-size: 12px;
  background: #FFF0F0;
  color: var(--watermelon-red);
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 6px;
}

/* Interactive: Slice / Peel */
.interactive-section {
  background: var(--seed-black);
  color: #fff;
  overflow: hidden;
}

.interactive-section .section-title {
  color: #fff;
}

.interactive-section .section-subtitle {
  color: #aaa;
}

.slice-fan {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  position: relative;
  perspective: 1000px;
}

.slice-item {
  position: absolute;
  width: 120px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transform-origin: bottom center;
}

.slice-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slice-item.active {
  transform: scale(1.2) translateY(-20px) rotate(0deg) !important;
  z-index: 10;
  box-shadow: 0 15px 30px rgba(232, 74, 95, 0.4);
}

/* Fridge / Offline */
.fridge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: #E3F0F6;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 4px solid #C2DDE6;
}

.fridge-item {
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.fridge-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.fridge-item:hover img {
  transform: scale(1.05);
}

.fridge-item::after {
  content: "❄️";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 20px;
  opacity: 0.8;
}

/* Vine / Recommendations */
.vine-section {
  background: #F0FBF4;
}

.vine-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;
}
.vine-wrap::-webkit-scrollbar { display: none; }

.vine-item {
  flex: 0 0 140px;
  position: relative;
}

.vine-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--rind-green);
  padding: 4px;
}

.vine-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20px;
  width: 20px;
  height: 2px;
  background: var(--rind-green);
}

.vine-item:first-child::before {
  display: none;
}

/* Schedule / New Releases */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #fff;
  border-left: 4px solid var(--watermelon-red);
}

.schedule-date {
  font-weight: bold;
  color: var(--watermelon-red);
  width: 80px;
  flex-shrink: 0;
}

.schedule-text strong {
  display: block;
  margin-bottom: 4px;
}

/* Download CTA */
.download-cta {
  text-align: center;
  padding: 80px 4%;
  background: linear-gradient(180deg, #FFF9F9 0%, #FFF0F0 100%);
}

.download-cta h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--seed-black);
}

.download-cta p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.download-cta .btn-download {
  display: inline-flex;
  font-size: 20px;
  padding: 16px 48px;
}

/* Footer */
footer {
  background: #fff;
  padding: 40px 4%;
  border-top: 1px solid rgba(232, 74, 95, 0.1);
  font-size: 13px;
  color: #888;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

footer a {
  color: #888;
  transition: color 0.2s;
}

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

/* Mobile Bottom Bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 10px 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  z-index: 99;
  display: flex;
  justify-content: center;
}

.mobile-bar .btn-download {
  width: 100%;
  justify-content: center;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-content h1 { font-size: 48px; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .header-nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; color: var(--text-light); }
  .header-nav a:hover { color: var(--watermelon-red); }
  .mobile-bar { display: none; }
  .cover-wall { height: 500px; }
  .cover-col { width: 180px; }
  .fridge-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 1024px) {
  .hero { padding: 100px 4% 120px; }
  .hero-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-content { flex: 1; margin-right: 40px; }
  .cover-wall { flex: 1; justify-content: flex-end; max-width: 600px; }
}