@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #fafaf8; --bg2: #f0eeeb; --card: #fff;
  --text: #0f0e0d; --text2: #6b6560; --muted: #a09890;
  --border: #e5e1dc; --accent: #f97316; --shadow: 0 4px 24px rgba(0,0,0,.08);
  --font-d: 'Bebas Neue', cursive; --font-b: 'DM Sans', sans-serif;
}
.dark {
  --bg: #0d0d0b; --bg2: #161614; --card: #1e1e1b;
  --text: #f5f4f1; --text2: #a09890; --muted: #6b6560;
  --border: #2a2a26; --shadow: 0 4px 24px rgba(0,0,0,.4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-b); background: var(--bg); color: var(--text); transition: background .3s,color .3s; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); transition: all .3s; }
.navbar.scrolled { background: var(--card); box-shadow: var(--shadow); }
.navbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.logo-text { font-family: var(--font-d); font-size: 1.3rem; letter-spacing: .05em; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a, .btn-ghost { background: transparent; border: 1px solid var(--border); border-radius: 10px; padding: 8px 16px; font-size: .875rem; font-weight: 500; color: var(--text2); cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-b); }
.nav-links a:hover, .btn-ghost:hover { background: var(--bg2); color: var(--text); border-color: var(--muted); }
.btn-primary { background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 10px 20px; font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-b); }
.btn-primary:hover { background: #ea580c; transform: translateY(-1px); }
.theme-btn { padding: 9px; border-radius: 10px; }
@media(max-width:768px) { .nav-links { display: none; } }

/* Hero */
.hero { background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%); padding: clamp(60px,10vw,120px) 24px clamp(48px,8vw,96px); text-align: center; position: relative; overflow: hidden; }
.hero-orb1 { position: absolute; top: -80px; right: -80px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(249,115,22,.12) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-orb2 { position: absolute; bottom: -80px; left: -80px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(249,115,22,.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.25); border-radius: 100px; padding: 6px 16px; margin-bottom: 28px; font-size: .8rem; font-weight: 600; color: var(--accent); letter-spacing: .05em; }
.hero-title { font-family: var(--font-d); font-size: clamp(2.5rem,8vw,5rem); line-height: 1; margin-bottom: 20px; }
.hero-title span { color: var(--accent); }
.hero-sub { color: var(--text2); font-size: clamp(1rem,2.5vw,1.2rem); line-height: 1.7; margin: 0 auto 40px; max-width: 520px; }
.hero-examples { color: var(--muted); font-size: .8rem; margin-top: 16px; }
.hero-examples a { color: var(--accent); }

/* Search */
.search-wrap { max-width: 580px; margin: 0 auto; position: relative; }
.search-input { width: 100%; background: var(--card); border: 1.5px solid var(--border); border-radius: 16px; padding: 16px 52px 16px 52px; font-size: 1.1rem; color: var(--text); font-family: var(--font-b); outline: none; transition: border .2s,box-shadow .2s; }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-results { position: absolute; top: 100%; left: 0; right: 0; margin-top: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; z-index: 50; box-shadow: var(--shadow); display: none; }
.search-results.open { display: block; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.search-result-item:hover { background: var(--bg2); }
.search-result-item img { width: 36px; height: 54px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.search-result-title { font-weight: 600; font-size: .9rem; }
.search-result-meta { color: var(--muted); font-size: .75rem; }
.search-all { display: block; padding: 12px 16px; text-align: center; color: var(--accent); font-size: .875rem; font-weight: 600; }

/* Platform pills */
.platform-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 40px 24px 0; max-width: 1200px; margin: 0 auto; }
.platform-pill { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--border); border-radius: 100px; padding: 8px 18px; font-size: .875rem; font-weight: 600; color: var(--text); transition: all .2s; cursor: pointer; }
.platform-pill:hover { transform: translateY(-2px); }

/* Section */
.section { max-width: 1200px; margin: 60px auto 0; padding: 0 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-title-wrap { display: flex; align-items: center; gap: 12px; }
.section-icon { width: 40px; height: 40px; background: rgba(249,115,22,.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.section-title { font-family: var(--font-d); font-size: 1.8rem; letter-spacing: .03em; }
.see-all { display: flex; align-items: center; gap: 4px; color: var(--accent); font-size: .875rem; font-weight: 600; }

/* Cards */
.cards-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform .2s,box-shadow .2s; cursor: pointer; flex-shrink: 0; width: 180px; }
.cards-grid .card { width: auto; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(0,0,0,.12); }
.card-poster { position: relative; aspect-ratio: 2/3; background: var(--bg2); overflow: hidden; }
.card-poster img { width: 100%; height: 100%; object-fit: cover; }
.card-poster-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.card-rating { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.75); backdrop-filter: blur(8px); border-radius: 8px; padding: 3px 7px; font-size: .75rem; font-weight: 700; color: #FCD34D; display: flex; align-items: center; gap: 4px; }
.card-type { position: absolute; top: 8px; left: 8px; border-radius: 6px; padding: 2px 7px; font-size: .65rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .05em; }
.card-type.dizi { background: rgba(59,130,246,.85); }
.card-type.film { background: rgba(239,68,68,.85); }
.card-platforms { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent,rgba(0,0,0,.85)); padding: 20px 8px 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.platform-tag { border-radius: 5px; padding: 2px 6px; font-size: .6rem; font-weight: 700; color: #fff; text-transform: uppercase; }
.card-info { padding: 10px 12px 12px; }
.card-title { font-size: .875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.card-year { font-size: .75rem; color: var(--muted); }

/* Ad slot */
.ad-slot { max-width: 1200px; margin: 40px auto 0; padding: 0 24px; }
.ad-placeholder { background: var(--bg2); border: 1px dashed var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .75rem; }

/* Content detail */
.detail-backdrop { position: relative; height: 400px; overflow: hidden; background: var(--bg2); }
.detail-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.detail-backdrop-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.2), var(--bg)); }
.detail-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; }
.detail-grid { display: grid; grid-template-columns: 200px 1fr; gap: 40px; margin-top: -120px; position: relative; z-index: 1; align-items: start; }
@media(max-width:600px) { .detail-grid { grid-template-columns: 1fr; margin-top: 0; } }
.detail-poster { width: 200px; height: 300px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4); border: 3px solid var(--card); background: var(--bg2); }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding-top: 80px; }
.detail-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.badge { border-radius: 8px; padding: 4px 12px; font-size: .75rem; font-weight: 700; }
.badge-accent { background: var(--accent); color: #fff; }
.badge-year { background: var(--bg2); border: 1px solid var(--border); color: var(--text2); }
.badge-rating { background: rgba(252,211,77,.2); border: 1px solid rgba(252,211,77,.5); color: #D97706; }
.detail-title { font-family: var(--font-d); font-size: clamp(2rem,5vw,3.5rem); line-height: 1; margin-bottom: 16px; letter-spacing: .02em; }
.detail-genres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.genre-tag { background: var(--bg2); border: 1px solid var(--border); border-radius: 100px; padding: 4px 12px; font-size: .75rem; color: var(--text2); }
.detail-overview { color: var(--text2); line-height: 1.8; font-size: .95rem; margin-bottom: 24px; max-width: 600px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Platform cards */
.platforms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
.platform-card { border-radius: 16px; padding: 24px; transition: transform .2s,opacity .2s; cursor: pointer; }
.platform-card:hover { transform: translateY(-4px); opacity: .9; }
.platform-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.platform-card-name { font-size: 1.1rem; font-weight: 800; color: #fff; letter-spacing: .02em; }
.platform-card-type { background: rgba(255,255,255,.2); border-radius: 8px; padding: 4px 10px; font-size: .75rem; font-weight: 700; color: #fff; }
.platform-card-cta { font-size: .8rem; color: rgba(255,255,255,.8); }
.no-platform { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 32px; text-align: center; color: var(--muted); }

/* FAQ */
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.faq-item summary { padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 20px 16px; color: var(--text2); line-height: 1.7; font-size: .9rem; }

/* Reviews */
.reviews-wrap { margin-top: 48px; }
.review-form { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.stars { display: flex; gap: 6px; margin-bottom: 16px; }
.star { cursor: pointer; font-size: 1.4rem; transition: transform .1s; }
.star:hover { transform: scale(1.2); }
.review-textarea { width: 100%; background: var(--bg2); border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: 1rem; color: var(--text); font-family: var(--font-b); resize: vertical; min-height: 80px; outline: none; }
.review-textarea:focus { border-color: var(--accent); }
.review-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.reviewer-name { font-weight: 600; font-size: .875rem; }
.review-rating { background: rgba(249,115,22,.12); color: var(--accent); border-radius: 8px; padding: 3px 10px; font-weight: 700; font-size: .8rem; }
.review-text { color: var(--text2); font-size: .875rem; line-height: 1.6; }

/* Auth */
.auth-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.auth-title { font-family: var(--font-d); font-size: 2rem; text-align: center; margin-bottom: 8px; }
.auth-sub { color: var(--text2); font-size: .9rem; text-align: center; margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-label { font-size: .8rem; font-weight: 600; color: var(--text2); display: block; margin-bottom: 8px; }
.form-input { width: 100%; background: var(--bg2); border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: 1rem; color: var(--text); font-family: var(--font-b); outline: none; transition: border .2s; }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-text { color: var(--muted); font-size: .75rem; }
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: .875rem; }
.alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #EF4444; }
.alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #10B981; }

/* Admin */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--card); border-right: 1px solid var(--border); padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.admin-main { flex: 1; padding: 32px; background: var(--bg); overflow-y: auto; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: .875rem; font-weight: 500; color: var(--text2); transition: all .15s; }
.admin-nav-item:hover { background: var(--bg2); color: var(--text); }
.admin-nav-item.active { background: rgba(249,115,22,.12); color: var(--accent); font-weight: 600; }
.admin-title { font-family: var(--font-d); font-size: 2rem; margin-bottom: 32px; letter-spacing: .03em; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; margin-bottom: 40px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.stat-value { font-family: var(--font-d); font-size: 2.2rem; }
.stat-label { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th { text-align: left; padding: 12px 16px; color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; background: var(--bg2); border-bottom: 1px solid var(--border); }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg2); }

/* Platform page hero */
.platform-hero { border-radius: 24px; padding: 48px; margin-bottom: 48px; position: relative; overflow: hidden; }
.platform-hero-orb { position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; background: rgba(255,255,255,.1); border-radius: 50%; }
.platform-hero-title { font-family: var(--font-d); font-size: clamp(2rem,6vw,4rem); color: #fff; letter-spacing: .03em; margin-bottom: 12px; }
.platform-hero-desc { color: rgba(255,255,255,.85); font-size: 1rem; max-width: 500px; }
.platform-hero-count { margin-top: 20px; display: inline-block; background: rgba(255,255,255,.2); border-radius: 100px; padding: 6px 16px; font-size: .875rem; color: #fff; font-weight: 600; }

/* Compare */
.compare-table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--border); background: var(--card); }

/* SEO block */
.seo-block { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 40px 48px; }
.seo-block h2 { font-family: var(--font-d); font-size: 1.6rem; margin-bottom: 20px; letter-spacing: .03em; }
.seo-block p { color: var(--text2); line-height: 1.9; margin-bottom: 16px; }

/* Footer */
footer { border-top: 1px solid var(--border); margin-top: 80px; padding: 60px 24px 40px; background: var(--bg2); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 48px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-desc { color: var(--text2); font-size: .875rem; line-height: 1.7; }
.footer-heading { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text2); font-size: .875rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { color: var(--muted); font-size: .8rem; }

/* Stagger */
.stagger > * { opacity: 0; animation: slideUp .4s ease forwards; }
.stagger > *:nth-child(1){animation-delay:.05s} .stagger > *:nth-child(2){animation-delay:.1s}
.stagger > *:nth-child(3){animation-delay:.15s} .stagger > *:nth-child(4){animation-delay:.2s}
.stagger > *:nth-child(5){animation-delay:.25s} .stagger > *:nth-child(n+6){animation-delay:.3s}
@keyframes slideUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
