@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400;1,600&display=swap');

:root {
  --bg: #F7F6F3; --bg2: #EFEEE9; --white: #FFFFFF;
  --ink: #1A1916; --ink2: #3D3B35; --ink3: #7A786F; --ink4: #AEACA4;
  --teal: #0D6E5C; --teal-light: #15967D; --teal-pale: #E6F4F1; --teal-pale2: #CCE9E3;
  --red: #D94F3D; --gold: #C5860A; --gold-pale: #FFF3DC;
  --border: #E4E2DB; --border2: #D0CEC6;
  --shadow-sm: 0 1px 3px rgba(26,25,22,0.06), 0 1px 2px rgba(26,25,22,0.04);
  --shadow-md: 0 4px 16px rgba(26,25,22,0.08), 0 2px 6px rgba(26,25,22,0.05);
  --shadow-lg: 0 12px 40px rgba(26,25,22,0.12), 0 4px 12px rgba(26,25,22,0.06);
  --radius: 14px; --radius-sm: 8px; --radius-lg: 20px;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:'Sora',sans-serif; background:var(--bg); color:var(--ink); min-height:100vh; overflow-x:hidden; }
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:var(--border2); border-radius:10px; }

/* NAV */
nav { position:sticky; top:0; z-index:100; background:rgba(247,246,243,0.92); backdrop-filter:blur(20px); border-bottom:1px solid var(--border); height:60px; padding:0 5%; display:flex; align-items:center; justify-content:space-between; }
.logo { font-family:'Sora',sans-serif; font-size:1.15rem; font-weight:800; letter-spacing:-0.5px; color:var(--ink); display:flex; align-items:center; gap:6px; text-decoration:none; }
.logo-dot { width:8px; height:8px; background:var(--teal); border-radius:50%; display:inline-block; }
.logo span { color:var(--teal); }
.nav-links { display:flex; gap:0; }
.nav-links a { color:var(--ink3); text-decoration:none; font-size:0.82rem; font-weight:500; padding:6px 14px; border-radius:100px; transition:all 0.18s; }
.nav-links a:hover, .nav-links a.active { color:var(--ink); background:var(--bg2); }
.nav-links a.active { color:var(--teal); font-weight:700; }
.nav-right { display:flex; align-items:center; gap:10px; }
.search-wrap { display:flex; align-items:center; gap:8px; background:var(--white); border:1px solid var(--border); border-radius:100px; padding:7px 16px; box-shadow:var(--shadow-sm); transition:border-color 0.2s, box-shadow 0.2s; position:relative; }
.search-wrap:focus-within { border-color:var(--teal); box-shadow:0 0 0 3px var(--teal-pale2); }
.search-wrap svg { color:var(--ink4); flex-shrink:0; }
.search-wrap input { background:none; border:none; outline:none; font-family:'Sora',sans-serif; font-size:0.82rem; color:var(--ink); width:190px; }
.search-wrap input::placeholder { color:var(--ink4); }
.nav-badge { background:var(--teal); color:white; font-size:0.72rem; font-weight:700; padding:4px 12px; border-radius:100px; letter-spacing:0.3px; }

/* SEARCH DROPDOWN */
.search-dropdown { position:absolute; top:calc(100% + 8px); left:0; right:0; background:var(--white); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-lg); display:none; overflow:hidden; z-index:200; min-width:320px; }
.sd-item { display:flex; align-items:center; gap:12px; padding:10px 14px; cursor:pointer; transition:background 0.12s; border-bottom:1px solid var(--border); }
.sd-item:last-child { border-bottom:none; }
.sd-item:hover { background:var(--bg); }
.sd-poster { width:36px; height:54px; border-radius:5px; object-fit:cover; background:var(--bg2); flex-shrink:0; }
.sd-title { font-size:0.85rem; font-weight:700; color:var(--ink); }
.sd-meta { font-size:0.72rem; color:var(--ink4); margin-top:1px; }
.sd-rating { font-size:0.75rem; font-weight:700; color:var(--gold); margin-left:auto; }

/* PAGE HEADER */
.page-header { background:var(--white); border-bottom:1px solid var(--border); padding:40px 5% 32px; }
.page-header .breadcrumb { font-size:0.72rem; color:var(--ink4); margin-bottom:12px; display:flex; align-items:center; gap:6px; }
.page-header .breadcrumb a { color:var(--teal); text-decoration:none; }
.page-header .breadcrumb a:hover { text-decoration:underline; }
.page-header h1 { font-family:'Lora',serif; font-size:clamp(1.8rem,3vw,2.6rem); font-weight:600; color:var(--ink); line-height:1.2; margin-bottom:8px; }
.page-header p { color:var(--ink3); font-size:0.9rem; line-height:1.7; max-width:560px; }

/* SECTION */
.section { padding:44px 5%; max-width:1400px; margin:0 auto; }
.section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.section-title { font-family:'Sora',sans-serif; font-size:1.1rem; font-weight:700; color:var(--ink); display:flex; align-items:center; gap:8px; }
.section-title .tag { background:var(--teal-pale); color:var(--teal); font-size:0.65rem; font-weight:700; letter-spacing:1px; text-transform:uppercase; padding:2px 8px; border-radius:100px; }
.see-all { font-size:0.78rem; font-weight:600; color:var(--teal); text-decoration:none; display:flex; align-items:center; gap:4px; padding:6px 14px; border-radius:100px; background:var(--teal-pale); transition:background 0.18s; }
.see-all:hover { background:var(--teal-pale2); }

/* FILTERS */
.filters { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.filter-btn { background:var(--white); border:1px solid var(--border); color:var(--ink3); padding:7px 18px; border-radius:100px; font-size:0.78rem; font-weight:600; cursor:pointer; transition:all 0.18s; font-family:'Sora',sans-serif; box-shadow:var(--shadow-sm); }
.filter-btn.active, .filter-btn:hover { background:var(--teal); border-color:var(--teal); color:white; box-shadow:0 4px 12px rgba(13,110,92,0.25); }

/* DRAMA CARD */
.drama-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(165px,1fr)); gap:18px; }
.drama-card { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; cursor:pointer; transition:transform 0.22s, box-shadow 0.22s, border-color 0.22s; box-shadow:var(--shadow-sm); position:relative; }
.drama-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-lg); border-color:var(--teal-pale2); }
.drama-card img { width:100%; aspect-ratio:2/3; object-fit:cover; display:block; transition:transform 0.3s; }
.drama-card:hover img { transform:scale(1.03); }
.card-img-wrap { overflow:hidden; position:relative; }
.no-img { width:100%; aspect-ratio:2/3; background:linear-gradient(135deg,var(--bg),var(--bg2)); display:flex; align-items:center; justify-content:center; font-size:3rem; color:var(--ink4); }
.card-rating { position:absolute; bottom:8px; right:8px; background:var(--white); border-radius:100px; padding:3px 9px; font-size:0.72rem; font-weight:700; color:var(--gold); display:flex; align-items:center; gap:3px; box-shadow:var(--shadow-sm); }
.card-body { padding:11px 13px 13px; }
.card-title { font-size:0.88rem; font-weight:700; line-height:1.35; color:var(--ink); overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; margin-bottom:6px; }
.card-meta { display:flex; align-items:center; justify-content:space-between; font-size:0.7rem; color:var(--ink4); }
.card-genre-tag { background:var(--bg2); color:var(--ink3); padding:2px 7px; border-radius:100px; font-size:0.65rem; font-weight:600; }

/* SKELETON */
.skeleton { background:linear-gradient(90deg,var(--bg) 25%,var(--bg2) 50%,var(--bg) 75%); background-size:200% 100%; animation:shimmer 1.6s infinite; border-radius:6px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* TOAST */
#toast { position:fixed; bottom:28px; left:50%; transform:translateX(-50%); background:var(--ink); color:white; border-radius:var(--radius-sm); padding:11px 22px; font-size:0.82rem; z-index:600; display:none; box-shadow:var(--shadow-lg); }

/* AD SLOT */
.ad-slot { background:linear-gradient(135deg,var(--teal-pale),#f0faf7); border:1px dashed var(--teal-pale2); border-radius:var(--radius); padding:20px 28px; text-align:center; display:flex; align-items:center; justify-content:center; gap:10px; }
.ad-slot-text { font-size:0.8rem; color:var(--ink3); }
.ad-slot-text strong { color:var(--teal); }

/* LOAD MORE BTN */
.load-more-btn { display:none; background:var(--white); border:1px solid var(--border); color:var(--teal); padding:11px 28px; border-radius:100px; font-family:'Sora',sans-serif; font-size:0.82rem; font-weight:700; cursor:pointer; box-shadow:var(--shadow-sm); transition:all 0.18s; margin:28px auto 0; display:block; }
.load-more-btn:hover { background:var(--teal); color:white; }

/* FOOTER */
footer { background:var(--ink); color:rgba(255,255,255,0.5); padding:48px 5% 28px; margin-top:60px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:36px; }
.footer-logo { font-family:'Sora',sans-serif; font-size:1.1rem; font-weight:800; color:white; display:flex; align-items:center; gap:6px; margin-bottom:10px; }
.footer-logo span { color:var(--teal-light); }
.footer-brand p { font-size:0.8rem; line-height:1.7; max-width:240px; }
.footer-col h4 { font-size:0.68rem; letter-spacing:1.5px; text-transform:uppercase; color:rgba(255,255,255,0.3); margin-bottom:14px; }
.footer-col a { display:block; color:rgba(255,255,255,0.5); text-decoration:none; font-size:0.82rem; margin-bottom:9px; transition:color 0.18s; }
.footer-col a:hover { color:white; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.08); padding-top:20px; display:flex; justify-content:space-between; align-items:center; font-size:0.75rem; }

/* RESPONSIVE */
@media(max-width:900px) { .footer-grid { grid-template-columns:1fr 1fr; } }
@media(max-width:640px) { .nav-links { display:none; } .search-wrap input { width:130px; } }
