:root {
    --bg-page: #F7F8FA;
    --bg-card: #FFFFFF;
    --brand-green: #16A34A;
    --brand-light: #DCFCE7;
    --text-main: #101828;
    --text-sec: #475467;
    --text-ter: #667085;
    --border: #E5E7EB;
    --border-light: #EEF0F3;
    --radius-8: 8px;
    --radius-12: 12px;
    --radius-14: 14px;
    --radius-16: 16px;
    --radius-20: 20px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(16, 24, 40, 0.05), 0 2px 4px -2px rgba(16, 24, 40, 0.05);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { text-decoration: none; color: inherit; }
  button, input { font-family: inherit; border: none; outline: none; background: none; }
  ul { list-style: none; }
  img { max-width: 100%; display: block; }

  /* Sidebar */
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 264px;
    background: #FFFFFF;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    z-index: 100;
  }
  .brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-light);
  }
  .brand-area img { height: 32px; width: auto; border-radius: 6px; }
  .brand-name { font-size: 16px; font-weight: 700; color: var(--text-main); }
  
  .search-box {
    margin: 16px 20px;
    position: relative;
  }
  .search-box input {
    width: 100%;
    height: 36px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-8);
    padding: 0 12px 0 36px;
    font-size: 13px;
    color: var(--text-main);
    transition: all 0.2s;
  }
  .search-box input:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px var(--brand-light);
    background: #FFF;
  }
  .search-icon {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    border: 1.5px solid var(--text-ter);
    border-radius: 50%;
  }
  .search-icon::after {
    content: ''; position: absolute;
    bottom: -3px; right: -3px;
    width: 6px; height: 1.5px;
    background: var(--text-ter);
    transform: rotate(45deg);
  }

  .nav-group { padding: 0 12px; margin-bottom: 24px; }
  .nav-title {
    font-size: 12px; color: var(--text-ter);
    padding: 0 8px; margin-bottom: 8px;
    font-weight: 500;
  }
  .nav-item {
    display: flex; align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-8);
    font-size: 14px; color: var(--text-sec);
    margin-bottom: 4px;
    transition: all 0.2s;
    position: relative;
  }
  .nav-item:hover { background: var(--bg-page); color: var(--text-main); }
  .nav-item.active {
    background: var(--brand-light);
    color: var(--brand-green);
    font-weight: 500;
  }
  .nav-item.active::before {
    content: ''; position: absolute;
    left: 0; top: 10px; bottom: 10px;
    width: 2px; background: var(--brand-green);
    border-radius: 0 2px 2px 0;
  }

  .sidebar-bottom {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid var(--border-light);
  }
  .download-card {
    background: linear-gradient(135deg, #F0FDF4, #FFF);
    border: 1px solid var(--brand-light);
    border-radius: var(--radius-12);
    padding: 16px;
    text-align: center;
  }
  .download-card p { font-size: 12px; color: var(--text-sec); margin-bottom: 12px; }
  .btn-download {
    display: block; width: 100%;
    background: var(--brand-green); color: #FFF;
    font-size: 13px; font-weight: 500;
    padding: 8px 0; border-radius: var(--radius-8);
    cursor: pointer; transition: opacity 0.2s;
  }
  .btn-download:hover { opacity: 0.9; }

  /* Main Content */
  .main-content { margin-left: 264px; min-height: 100vh; display: flex; flex-direction: column; }
  
  /* Top Toolbar */
  .top-toolbar {
    position: sticky; top: 0; z-index: 90;
    height: 64px; display: flex; align-items: center; gap: 16px;
    padding: 0 40px;
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
  }
  .toolbar-title { font-size: 20px; font-weight: 600; color: var(--text-main); }
  .toolbar-desc { font-size: 12px; color: var(--text-ter); }
  .toolbar-search {
    flex: 1; max-width: 400px; margin: 0 auto; position: relative;
  }
  .toolbar-search input {
    width: 100%; height: 36px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 12px 0 36px;
    font-size: 13px; color: var(--text-main);
    transition: all 0.2s;
  }
  .toolbar-search input:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px var(--brand-light);
    background: #FFF;
  }
  .toolbar-search .search-icon { left: 12px; }
  .toolbar-actions { display: flex; gap: 12px; align-items: center; }
  .btn-tool {
    height: 36px; padding: 0 16px;
    border-radius: 10px; font-size: 13px; font-weight: 500;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
  }
  .btn-tool.primary { background: var(--brand-green); color: #FFF; }
  .btn-tool.primary:hover { opacity: 0.9; }
  .btn-tool.icon {
    width: 36px; padding: 0;
    border: 1px solid var(--border);
    background: #FFF; color: var(--text-sec);
  }
  .btn-tool.icon:hover { background: var(--bg-page); }

  /* Content Container */
  .content-wrap {
    width: 100%; max-width: 1240px; margin: 0 auto;
    padding: 28px 40px 48px;
    flex: 1;
  }

  /* Hero Section */
  .hero {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px;
    min-height: 280px; padding: 32px;
    border-radius: var(--radius-20);
    background: linear-gradient(135deg, #F0FDF4, #FFF 58%, #FFF7ED);
    border: 1px solid var(--border-light);
    margin-bottom: 32px;
    overflow: hidden;
  }
  .hero-content { display: flex; flex-direction: column; justify-content: center; z-index: 2; }
  .hero-pill {
    display: inline-block; align-self: flex-start;
    background: #FFF; color: var(--brand-green);
    font-size: 12px; font-weight: 600;
    padding: 4px 10px; border-radius: 999px;
    border: 1px solid var(--brand-light);
    margin-bottom: 16px;
  }
  .hero-title { font-size: 28px; font-weight: 700; color: var(--text-main); line-height: 1.3; margin-bottom: 12px; }
  .hero-desc { font-size: 14px; color: var(--text-sec); line-height: 1.6; margin-bottom: 24px; max-width: 90%; }
  .hero-btns { display: flex; gap: 12px; }
  .btn-hero {
    height: 40px; padding: 0 24px;
    border-radius: var(--radius-8); font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
  }
  .btn-hero.primary { background: var(--brand-green); color: #FFF; }
  .btn-hero.primary:hover { opacity: 0.9; }
  .btn-hero.secondary {
    background: #FFF; border: 1px solid var(--border);
    color: var(--text-main);
  }
  .btn-hero.secondary:hover { background: var(--bg-page); }
  
  .hero-posters { position: relative; display: flex; justify-content: flex-end; align-items: center; }
  .poster-img {
    position: absolute; width: 160px; aspect-ratio: 3/4;
    border-radius: var(--radius-16);
    box-shadow: 0 12px 24px -6px rgba(16, 24, 40, 0.15);
    object-fit: cover; transition: transform 0.3s ease;
  }
  .poster-img:nth-child(1) { transform: rotate(-6deg) translateX(-30px); z-index: 1; }
  .poster-img:nth-child(2) { transform: rotate(0) translateX(0); z-index: 2; width: 170px; }
  .poster-img:nth-child(3) { transform: rotate(6deg) translateX(30px); z-index: 3; }
  .hero:hover .poster-img:nth-child(1) { transform: rotate(-8deg) translate(-40px, -5px); }
  .hero:hover .poster-img:nth-child(3) { transform: rotate(8deg) translate(40px, -5px); }

  /* Section Common */
  .section-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
  }
  .section-title { font-size: 18px; font-weight: 600; color: var(--text-main); }
  .section-link { font-size: 13px; font-weight: 500; color: var(--brand-green); }
  .section-link:hover { text-decoration: underline; }

  /* Continue Watching */
  .continue-scroll {
    display: flex; gap: 16px; overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin-bottom: 32px;
    scrollbar-width: none;
  }
  .continue-scroll::-webkit-scrollbar { display: none; }
  .continue-card {
    flex: 0 0 260px; scroll-snap-align: start;
    background: #FFF; border-radius: var(--radius-14);
    padding: 8px; border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column;
  }
  .continue-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .thumb-wrap {
    position: relative; width: 100%; aspect-ratio: 16/9;
    border-radius: 10px; overflow: hidden; margin-bottom: 10px;
  }
  .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
  .progress-bar {
    position: absolute; bottom: 0; left: 0;
    height: 3px; background: var(--brand-green);
    border-radius: 0 2px 2px 0;
  }
  .continue-title { font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .continue-meta { font-size: 12px; color: var(--text-ter); }

  /* Hot Grid */
  .hot-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px; margin-bottom: 32px;
  }
  .drama-card {
    background: #FFF; border-radius: var(--radius-14);
    border: 1px solid var(--border); padding: 10px;
    transition: all 0.2s; position: relative;
    cursor: pointer;
  }
  .drama-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-light);
    box-shadow: var(--shadow-sm);
  }
  .drama-cover {
    position: relative; width: 100%; aspect-ratio: 3/4;
    border-radius: 10px; overflow: hidden; margin-bottom: 10px;
  }
  .drama-cover img { width: 100%; height: 100%; object-fit: cover; }
  .badge {
    position: absolute; top: 8px; left: 8px;
    font-size: 11px; font-weight: 500;
    padding: 2px 6px; border-radius: 4px;
    backdrop-filter: blur(4px);
  }
  .badge.vertical { background: rgba(255,255,255,0.8); color: var(--text-main); }
  .badge.ai { background: rgba(220, 252, 231, 0.9); color: var(--brand-green); }
  .drama-title {
    font-size: 14px; font-weight: 600; color: var(--text-main);
    line-height: 1.4; height: 2.8em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 4px;
  }
  .drama-meta { font-size: 12px; color: var(--text-ter); }

  /* Filter Bar */
  .filter-bar {
    display: flex; gap: 8px; overflow-x: auto;
    flex-wrap: nowrap; margin-bottom: 32px;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .chip {
    height: 32px; padding: 0 14px;
    border-radius: 999px; border: 1px solid var(--border);
    background: #FFF; font-size: 13px; color: var(--text-sec);
    display: inline-flex; align-items: center; justify-content: center;
    white-space: nowrap; cursor: pointer;
    transition: all 0.2s;
  }
  .chip:hover { background: var(--bg-page); }
  .chip.active {
    background: var(--brand-light); color: var(--brand-green);
    border-color: var(--brand-green); font-weight: 500;
  }

  /* AI Modify Section */
  .ai-section {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px; margin-bottom: 32px;
  }
  .ai-card {
    border-radius: var(--radius-16); padding: 24px;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    transition: transform 0.2s;
  }
  .ai-card:hover { transform: translateY(-2px); }
  .ai-card.green { background: linear-gradient(135deg, #F0FDF4, #DCFCE7); }
  .ai-card.orange { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); }
  .ai-pill {
    align-self: flex-start;
    font-size: 11px; font-weight: 600;
    padding: 4px 8px; border-radius: 6px;
    background: #FFF; margin-bottom: 12px;
  }
  .ai-card.green .ai-pill { color: var(--brand-green); }
  .ai-card.orange .ai-pill { color: #EA580C; }
  .ai-title { font-size: 20px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
  .ai-desc { font-size: 13px; color: var(--text-sec); line-height: 1.6; margin-bottom: 20px; flex: 1; }
  .ai-footer { display: flex; justify-content: space-between; align-items: center; }
  .ai-tags { display: flex; gap: 8px; }
  .ai-tag {
    font-size: 11px; color: var(--text-sec);
    background: rgba(255,255,255,0.6);
    padding: 2px 8px; border-radius: 4px;
  }
  .ai-link { font-size: 13px; font-weight: 500; color: var(--brand-green); }
  .ai-link:hover { text-decoration: underline; }

  /* Daily List */
  .daily-list { background: #FFF; border: 1px solid var(--border); border-radius: var(--radius-14); padding: 8px 0; margin-bottom: 32px; }
  .list-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px; border-radius: var(--radius-12);
    transition: background 0.2s; border-bottom: 1px solid var(--border-light);
  }
  .list-row:last-child { border-bottom: none; }
  .list-row:hover { background: #F9FAFB; }
  .row-thumb {
    width: 56px; height: 76px; flex-shrink: 0;
    border-radius: var(--radius-8); overflow: hidden;
  }
  .row-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .row-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
  .row-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
  .row-tags { display: flex; gap: 8px; }
  .row-tag { font-size: 11px; color: var(--brand-green); background: var(--brand-light); padding: 2px 6px; border-radius: 4px; }
  .row-meta { font-size: 12px; color: var(--text-ter); text-align: right; display: flex; align-items: center; gap: 16px; }
  .play-btn {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--border); background: #FFF;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-green); font-size: 12px; transition: all 0.2s;
  }
  .list-row:hover .play-btn { background: var(--brand-green); color: #FFF; border-color: var(--brand-green); }

  /* FAQ */
  .faq-section { margin-bottom: 32px; }
  .faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .faq-card {
    background: #FFF; border-radius: var(--radius-14);
    border: 1px solid var(--border); padding: 20px;
  }
  .faq-q { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
  .faq-a { font-size: 13px; color: var(--text-ter); line-height: 1.7; }

  /* Footer */
  .site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0; font-size: 12px; color: var(--text-ter);
    text-align: center;
  }
  .footer-inner {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
  }
  .footer-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
  .site-footer a { color: var(--text-ter); }
  .site-footer a:hover { color: var(--brand-green); }
  .footer-time { font-size: 12px; color: var(--text-ter); }

  /* Responsive */
  @media (max-width: 1024px) {
    .sidebar { width: 72px; }
    .brand-area { padding: 16px 0; justify-content: center; }
    .brand-name, .search-box, .nav-title, .nav-item span, .download-card { display: none; }
    .nav-group { padding: 0 8px; }
    .nav-item { justify-content: center; padding: 12px; }
    .nav-item.active::before { top: 12px; bottom: 12px; }
    .main-content { margin-left: 72px; }
    .top-toolbar { padding: 0 24px; }
    .content-wrap { padding: 24px 24px 48px; }
  }

  @media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .top-toolbar { padding: 0 16px; gap: 12px; }
    .toolbar-desc, .toolbar-search { display: none; }
    .content-wrap { padding: 16px 16px 32px; }
    .hero { grid-template-columns: 1fr; padding: 24px; min-height: auto; }
    .hero-posters { display: none; }
    .hot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .continue-card { flex: 0 0 220px; }
    .ai-section, .faq-grid { grid-template-columns: 1fr; }
    .list-row { padding: 12px 8px; gap: 10px; }
    .row-thumb { width: 48px; height: 64px; }
    .row-meta { flex-direction: column; gap: 4px; align-items: flex-end; }
  }