:root {
      --bg: #120a10;
      --bg-card: #1e1018;
      --bg-card-hover: #2a1622;
      --peach: #ff8fa3;
      --peach-light: #ffb3c1;
      --peach-dark: #d95b72;
      --text-main: #f5e6ea;
      --text-sub: #b89aa4;
      --line: rgba(255, 143, 163, 0.15);
      --radius: 14px;
    }

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

    body {
      background-color: var(--bg);
      color: var(--text-main);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      line-height: 1.6;
      padding-bottom: 70px; /* space for fixed bottom button */
      overflow-x: hidden;
    }

    a { text-decoration: none; color: inherit; }
    ul { list-style: none; }
    img { display: block; max-width: 100%; }

    /* --- Header & Nav --- */
    header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(18, 10, 16, 0.9);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--line);
    }
    .header-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 20px;
      font-weight: 700;
      color: var(--peach);
      letter-spacing: 1px;
    }
    .brand img {
      height: 32px;
      width: auto;
    }
    .nav-links {
      display: none;
    }
    @media (min-width: 768px) {
      .nav-links {
        display: flex;
        gap: 24px;
      }
      .nav-links a {
        font-size: 14px;
        color: var(--text-sub);
        transition: color 0.3s;
      }
      .nav-links a:hover {
        color: var(--peach);
      }
    }

    /* --- Hero Section --- */
    .hero {
      position: relative;
      padding: 40px 20px;
      max-width: 1200px;
      margin: 0 auto;
      text-align: center;
    }
    .hero h1 {
      font-size: 32px;
      color: var(--peach);
      margin-bottom: 12px;
      font-weight: 800;
      text-shadow: 0 4px 12px rgba(255, 143, 163, 0.2);
    }
    .hero p {
      font-size: 15px;
      color: var(--text-sub);
      max-width: 600px;
      margin: 0 auto 30px;
    }
    
    /* Carousel */
    .carousel-wrapper {
      width: 100%;
      overflow-x: auto;
      padding-bottom: 20px;
      scrollbar-width: none;
      -ms-overflow-style: none;
      scroll-snap-type: x mandatory;
    }
    .carousel-wrapper::-webkit-scrollbar { display: none; }
    .carousel-track {
      display: flex;
      gap: 16px;
      padding: 0 4px;
      width: max-content;
    }
    .carousel-item {
      width: 140px;
      flex-shrink: 0;
      scroll-snap-align: start;
      border-radius: var(--radius);
      overflow: hidden;
      position: relative;
      box-shadow: 0 4px 12px rgba(0,0,0,0.5);
      transition: transform 0.3s;
    }
    .carousel-item:hover {
      transform: translateY(-5px);
    }
    .carousel-item img {
      width: 100%;
      aspect-ratio: 3/4;
      object-fit: cover;
    }
    @media (min-width: 768px) {
      .carousel-item { width: 200px; }
    }

    /* --- Sections Common --- */
    section {
      padding: 50px 20px;
      max-width: 1200px;
      margin: 0 auto;
    }
    .section-title {
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 24px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .section-title::before {
      content: '';
      display: block;
      width: 4px;
      height: 20px;
      background: var(--peach);
      border-radius: 2px;
    }

    /* --- Library Section --- */
    .library-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
    @media (min-width: 768px) {
      .library-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    }
    @media (min-width: 1024px) {
      .library-grid { grid-template-columns: repeat(4, 1fr); }
    }
    .drama-card {
      background: var(--bg-card);
      border-radius: var(--radius);
      overflow: hidden;
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .drama-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 20px rgba(255, 143, 163, 0.1);
    }
    .drama-card img {
      width: 100%;
      aspect-ratio: 3/4;
      object-fit: cover;
    }
    .drama-info {
      padding: 12px;
    }
    .drama-title {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 6px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .drama-tag {
      display: inline-block;
      font-size: 11px;
      padding: 2px 8px;
      border-radius: 20px;
      background: rgba(255, 143, 163, 0.15);
      color: var(--peach);
    }

    /* --- Topic Section --- */
    .topic-layout {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    @media (min-width: 768px) {
      .topic-layout { flex-direction: row; align-items: stretch; }
    }
    .topic-main {
      flex: 1;
      background: var(--bg-card);
      border-radius: var(--radius);
      overflow: hidden;
      position: relative;
    }
    .topic-main img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      min-height: 250px;
    }
    .topic-list {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .topic-item {
      display: flex;
      background: var(--bg-card);
      border-radius: var(--radius);
      overflow: hidden;
      gap: 12px;
      padding: 10px;
      align-items: center;
    }
    .topic-item img {
      width: 60px;
      height: 80px;
      object-fit: cover;
      border-radius: 8px;
      flex-shrink: 0;
    }
    .topic-item-text h3 {
      font-size: 15px;
      margin-bottom: 4px;
    }
    .topic-item-text p {
      font-size: 12px;
      color: var(--text-sub);
      line-height: 1.4;
    }

    /* --- Ranking Section --- */
    .rank-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .rank-item {
      display: flex;
      align-items: center;
      background: var(--bg-card);
      border-radius: var(--radius);
      padding: 12px 16px;
      gap: 16px;
    }
    .rank-num {
      font-size: 20px;
      font-weight: 800;
      color: var(--peach);
      width: 30px;
      text-align: center;
      flex-shrink: 0;
    }
    .rank-item img {
      width: 50px;
      height: 66px;
      object-fit: cover;
      border-radius: 6px;
      flex-shrink: 0;
    }
    .rank-info {
      flex: 1;
    }
    .rank-info h3 {
      font-size: 16px;
      margin-bottom: 4px;
    }
    .rank-info p {
      font-size: 12px;
      color: var(--text-sub);
    }
    .rank-tag {
      font-size: 12px;
      color: var(--peach-light);
      border: 1px solid var(--peach-dark);
      padding: 2px 8px;
      border-radius: 20px;
      flex-shrink: 0;
    }

    /* --- Guide Section --- */
    .guide-wrapper {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    @media (min-width: 768px) {
      .guide-wrapper { flex-direction: row; }
      .guide-card { flex: 1; }
    }
    .guide-card {
      background: var(--bg-card);
      border-radius: var(--radius);
      padding: 24px;
      border-left: 4px solid var(--peach);
    }
    .guide-card h3 {
      font-size: 18px;
      margin-bottom: 12px;
      color: var(--peach-light);
    }
    .guide-card p {
      font-size: 14px;
      color: var(--text-sub);
      margin-bottom: 10px;
    }
    .guide-card ul {
      list-style: disc;
      padding-left: 20px;
      font-size: 14px;
      color: var(--text-sub);
    }

    /* --- Review Section --- */
    .review-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
    }
    @media (min-width: 768px) {
      .review-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (min-width: 1024px) {
      .review-grid { grid-template-columns: repeat(3, 1fr); }
    }
    .review-card {
      background: var(--bg-card);
      border-radius: var(--radius);
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .review-user {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--peach-dark);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 14px;
    }
    .review-user span {
      font-size: 14px;
      font-weight: 600;
    }
    .review-text {
      font-size: 14px;
      color: var(--text-sub);
      line-height: 1.5;
    }

    /* --- FAQ Section --- */
    .faq-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-width: 800px;
      margin: 0 auto;
    }
    .faq-item {
      background: var(--bg-card);
      border-radius: var(--radius);
      padding: 16px 20px;
    }
    .faq-q {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 8px;
      color: var(--peach-light);
    }
    .faq-a {
      font-size: 14px;
      color: var(--text-sub);
    }

    /* --- Download Section --- */
    .download-section {
      text-align: center;
      background: linear-gradient(180deg, var(--bg) 0%, #1c0f17 100%);
      border-radius: var(--radius);
      padding: 40px 20px;
      margin: 0 20px 40px;
      max-width: 1160px;
      margin-left: auto;
      margin-right: auto;
    }
    .download-section h2 {
      font-size: 24px;
      margin-bottom: 12px;
    }
    .download-section p {
      font-size: 14px;
      color: var(--text-sub);
      margin-bottom: 24px;
    }
    .btn-download {
      display: inline-block;
      background: var(--peach);
      color: #120a10;
      font-weight: 700;
      font-size: 16px;
      padding: 12px 40px;
      border-radius: 30px;
      transition: background 0.3s, transform 0.2s;
    }
    .btn-download:hover {
      background: var(--peach-light);
      transform: scale(1.02);
    }
    .multi-end {
      display: flex;
      justify-content: center;
      gap: 16px;
      margin-top: 20px;
      flex-wrap: wrap;
    }
    .end-item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: var(--text-sub);
      background: var(--bg-card);
      padding: 6px 14px;
      border-radius: 20px;
    }
    .end-icon {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--peach);
    }

    /* --- Footer --- */
    footer {
      border-top: 1px solid var(--line);
      padding: 30px 20px;
      text-align: center;
      font-size: 12px;
      color: var(--text-sub);
    }
    footer p {
      margin-bottom: 8px;
    }
    footer a {
      color: var(--text-sub);
      transition: color 0.3s;
    }
    footer a:hover {
      color: var(--peach);
    }

    /* --- Fixed Bottom Bar --- */
    .fixed-bottom-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(18, 10, 16, 0.95);
      backdrop-filter: blur(10px);
      border-top: 1px solid var(--line);
      padding: 10px 20px;
      display: flex;
      justify-content: center;
      z-index: 200;
      box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
    }
    .fixed-bottom-bar .btn-download {
      width: 100%;
      max-width: 400px;
      text-align: center;
      padding: 10px 0;
      font-size: 15px;
    }