:root {
    --bg-main: #0f0c1b;
    --bg-sec: #19162b;
    --bg-card: #221d3a;
    --text-main: #f2f0f7;
    --text-muted: #a8a0c0;
    --accent: #ff3b7c;
    --accent-grad: linear-gradient(90deg, #ff3b7c, #a855f7, #3b82f6);
    --border: #332b54;
    --radius: 16px;
    --radius-sm: 8px;
  }
  * { 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-main);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 80px; /* space for floating window */
  }
  a { text-decoration: none; color: inherit; }
  img { max-width: 100%; display: block; object-fit: cover; }
  ul { list-style: none; }

  /* Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(15, 12, 27, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
  }
  .brand img {
    height: 32px;
    width: auto;
    border-radius: 6px;
  }
  .nav-links {
    display: none;
    gap: 20px;
    font-size: 0.95rem;
  }
  .nav-links a {
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
  }
  .nav-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
  }
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* Hero Section */
  .hero {
    padding: 30px 20px;
    background: radial-gradient(circle at 50% 0%, #2a1545 0%, #0f0c1b 70%);
    text-align: center;
  }
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 15px;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-images {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .hero-images::-webkit-scrollbar { display: none; }
  .hero-images img {
    width: 120px;
    height: 180px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s;
  }
  .hero-images img:hover { transform: scale(1.05); }
  
  .download-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    transition: opacity 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
  }
  .btn:hover { opacity: 0.85; transform: scale(1.02); }
  .btn-main { background: var(--accent-grad); }
  .btn-sub { background: var(--bg-card); border: 1px solid var(--border); }

  /* Marquee */
  .marquee-wrap {
    background: #000;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .marquee-text {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: bold;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: marquee 20s linear infinite;
  }
  @keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* Common Section */
  .section { padding: 40px 20px; }
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .section-title::before, .section-title::after {
    content: '';
    height: 2px;
    width: 30px;
    background: var(--accent);
  }

  /* Hot / New Grid */
  .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
  }
  .drama-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
  }
  .drama-card img {
    width: 100%;
    aspect-ratio: 3/4;
  }
  .drama-info { padding: 10px; }
  .drama-info h3 { font-size: 1rem; margin-bottom: 4px; }
  .drama-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
  .tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(255, 59, 124, 0.15);
    color: var(--accent);
    border-radius: 4px;
  }
  .drama-meta { font-size: 0.75rem; color: var(--text-muted); }
  .drama-desc { font-size: 0.8rem; margin-top: 6px; color: #ccc; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* Split Section */
  .split-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
  }
  .split-img img {
    width: 100%;
    border-radius: var(--radius);
    max-height: 400px;
    object-fit: cover;
  }
  .split-content ul { display: flex; flex-direction: column; gap: 12px; }
  .list-item {
    background: var(--bg-card);
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    font-size: 0.9rem;
  }

  /* Timeline */
  .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
    border-left: 2px solid var(--border);
  }
  .timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 15px;
  }
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
  }
  .timeline-time {
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 4px;
  }

  /* Comments */
  .comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
  }
  .comment-item {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
  }
  .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .comment-content h4 { font-size: 0.9rem; margin-bottom: 4px; color: var(--accent); }
  .comment-content p { font-size: 0.85rem; color: #ddd; }

  /* FAQ */
  .faq-list { max-width: 800px; margin: 0 auto; }
  .faq-item {
    background: var(--bg-card);
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  .faq-q {
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    background: rgba(255,255,255,0.02);
  }
  .faq-a {
    padding: 0 15px 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  /* Footer */
  .site-footer {
    background: #090710;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  .footer-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }
  .footer-links a { color: var(--text-muted); }
  .footer-links a:hover { color: var(--accent); }

  /* Floating Window */
  .floating-download {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(25, 22, 43, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent);
    padding: 10px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
  }
  .floating-download img { width: 36px; height: 36px; border-radius: 8px; }
  .floating-info { flex: 1; }
  .floating-info h4 { font-size: 0.85rem; }
  .floating-info p { font-size: 0.7rem; color: var(--text-muted); }
  .floating-btn {
    background: var(--accent-grad);
    color: #fff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
  }

  /* Responsive */
  @media (min-width: 768px) {
    .nav-links { display: flex; }
    .mobile-menu-btn { display: none; }
    .grid-container { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { font-size: 2.2rem; }
    .split-section { flex-direction: row; align-items: center; }
    .split-section > div { flex: 1; }
  }
  @media (min-width: 1024px) {
    .grid-container { grid-template-columns: repeat(5, 1fr); }
  }

  /* Mobile Menu */
  .mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-sec);
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-nav.active { display: flex; }
  .mobile-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
  }

  /* WeChat / Baidu Copy Modal */
  .copy-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
  }
  .copy-modal.active { display: flex; }
  .copy-modal-content {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    width: 80%;
    max-width: 300px;
    text-align: center;
    border: 1px solid var(--accent);
  }
  .copy-modal-content p { margin-bottom: 15px; font-size: 0.9rem; }
  .copy-modal-content input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 4px;
    text-align: center;
  }