/* =========================================================
   光影站群系统 · 前台样式
   深色影院风格，纯手写，无第三方依赖
   ========================================================= */

:root {
    --bg: #0b1120;
    --bg-soft: #111a2e;
    --panel: #151f36;
    --panel-2: #1b2740;
    --line: rgba(255, 255, 255, .08);
    --text: #e8eef9;
    --muted: #8f9db6;
    --accent: #ff4d6d;
    --accent-2: #7c5cff;
    --gold: #ffc857;
    --radius: 14px;
    --shadow: 0 18px 40px rgba(0, 0, 0, .35);
    --max: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 17, 32, .78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    display: flex; align-items: center; gap: 18px; height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
    display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-weight: 800; font-size: 16px; color: #fff;
}
.brand-text { font-weight: 700; font-size: 19px; letter-spacing: .5px; }
.brand.small .brand-text { font-size: 16px; }

.mainnav { display: flex; align-items: center; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
    padding: 8px 11px; border-radius: 9px; font-size: 14px; color: var(--muted);
    white-space: nowrap; transition: color .2s, background .2s;
}
.mainnav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.mainnav a.is-active { color: #fff; background: linear-gradient(135deg, rgba(255, 77, 109, .22), rgba(124, 92, 255, .22)); }

.topsearch { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.topsearch input {
    width: 190px; height: 38px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--bg-soft); color: var(--text); outline: none;
    transition: border-color .2s, width .2s;
}
.topsearch input:focus { border-color: var(--accent); width: 220px; }
.topsearch button {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--bg-soft); color: var(--muted); cursor: pointer;
    display: grid; place-items: center;
}
.topsearch button:hover { color: var(--accent); border-color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: var(--text); border-radius: 2px; }

/* ---------- 通用 ---------- */
.page-main { padding: 28px 0 60px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 22px rgba(255, 77, 109, .28); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: var(--line); color: var(--text); }
.btn-small { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-disabled { background: rgba(255, 255, 255, .06); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn-disabled:hover { transform: none; }

.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; letter-spacing: .5px; }
.more { font-size: 13px; color: var(--muted); border-bottom: 1px solid transparent; }
.more:hover { color: var(--accent); border-color: var(--accent); }
.muted { color: var(--muted); }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:last-child { color: var(--text); }

/* ---------- 首页 hero ---------- */
.hero {
    position: relative; display: grid; grid-template-columns: 1.15fr .85fr;
    gap: 32px; align-items: center;
    padding: 44px 40px; border-radius: 22px; overflow: hidden;
    background:
        radial-gradient(900px 400px at 85% 10%, rgba(124, 92, 255, .22), transparent 60%),
        radial-gradient(600px 300px at 10% 90%, rgba(255, 77, 109, .18), transparent 65%),
        var(--panel);
    border: 1px solid var(--line);
}
.hero-title { font-size: 40px; line-height: 1.2; letter-spacing: 1px; margin-bottom: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hero-meta span {
    font-size: 12px; color: var(--muted); padding: 4px 10px;
    background: rgba(255, 255, 255, .06); border-radius: 999px;
}
.hero-meta .hero-score { color: var(--gold); background: rgba(255, 200, 87, .12); }
.hero-intro { color: var(--muted); max-width: 560px; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; display: block; width: 250px; margin-left: auto; }
.hero-glow {
    position: absolute; inset: -30px; z-index: -1;
    background: radial-gradient(circle, rgba(255, 77, 109, .4), transparent 70%);
    filter: blur(20px);
}

/* ---------- 海报 ---------- */
.poster {
    position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden;
    background: linear-gradient(145deg, #22304d, #141d31);
}
.poster-fallback {
    position: absolute; inset: 0; display: grid; place-items: center;
    background:
        radial-gradient(circle at 20% 15%, rgba(124, 92, 255, .5), transparent 55%),
        radial-gradient(circle at 85% 85%, rgba(255, 77, 109, .45), transparent 55%),
        linear-gradient(150deg, #1c2740, #0f1728);
}
.poster-fallback span { font-size: 26px; font-weight: 800; color: rgba(255, 255, 255, .8); letter-spacing: 2px; }
.poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge-score {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 700;
    color: var(--gold); background: rgba(10, 14, 24, .78);
}
.badge-hot {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    padding: 2px 8px; border-radius: 8px; font-size: 12px;
    color: #fff; background: linear-gradient(135deg, var(--accent), #ff8a5c);
}

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 18px; }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.drama-card {
    display: block; background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.drama-card:hover { transform: translateY(-5px); border-color: rgba(255, 77, 109, .35); box-shadow: var(--shadow); }
.drama-card .poster { border-radius: 0; }
.card-body { padding: 10px 12px 12px; }
.card-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.card-cat { color: var(--accent); }

/* ---------- 首屏双栏 ---------- */
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.hot-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 86px; }
.hot-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.hot-list li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed var(--line); }
.hot-list li:last-child { border-bottom: 0; }
.hot-no { width: 22px; text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); }
.hot-no.no-1 { color: #ff5b6e; }
.hot-no.no-2 { color: #ff9d5c; }
.hot-no.no-3 { color: var(--gold); }
.hot-list a { flex: 1; min-width: 0; }
.hot-title { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-list a:hover .hot-title { color: var(--accent); }
.hot-meta { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-hits { font-size: 11px; color: var(--muted); flex: 0 0 auto; }

/* ---------- 专题 ---------- */
.topic-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.topic-card {
    position: relative; display: block; padding: 26px 24px; border-radius: 18px; overflow: hidden;
    background: linear-gradient(150deg, #1b2740, #121a2d); border: 1px solid var(--line);
    transition: transform .25s, border-color .25s;
}
.topic-card:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, .5); }
.topic-glow { position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; background: radial-gradient(circle, rgba(124, 92, 255, .35), transparent 70%); }
.topic-count { position: relative; display: inline-block; font-size: 12px; color: var(--accent); background: rgba(255, 77, 109, .12); padding: 3px 9px; border-radius: 999px; margin-bottom: 12px; }
.topic-card h3, .topic-card h2 { position: relative; font-size: 19px; margin-bottom: 8px; }
.topic-card p { position: relative; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.topic-link { position: relative; font-size: 13px; color: var(--accent); }

/* ---------- 标签 / FAQ ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px; border-radius: 999px; font-size: 13px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text);
    transition: background .2s, border-color .2s;
}
.tag-pill:hover { background: rgba(255, 77, 109, .14); border-color: rgba(255, 77, 109, .4); }
.tag-pill em { font-style: normal; font-size: 11px; color: var(--muted); }
.faq-preview .faq-item { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.faq-preview h3 { font-size: 15px; margin-bottom: 4px; }
.faq-preview p { font-size: 13px; color: var(--muted); }
.ai-teaser { background: linear-gradient(150deg, rgba(124, 92, 255, .16), rgba(255, 77, 109, .12)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.ai-teaser h2 { font-size: 22px; margin-bottom: 10px; }
.ai-teaser p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ---------- 列表页 ---------- */
.archive-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.archive-head h1 { font-size: 30px; letter-spacing: .5px; }
.archive-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.sort-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-tab { padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); }
.sort-tab:hover { color: var(--text); }
.sort-tab.is-active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-bar label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.filter-bar select { height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); outline: none; }
.filter-bar input[type="search"] { height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); }
.reset { font-size: 13px; color: var(--muted); }
.reset:hover { color: var(--accent); }
.empty-state { padding: 60px 0; text-align: center; color: var(--muted); }
.empty-tip { margin-top: 8px; font-size: 13px; }
.empty-tip a { color: var(--accent); }

/* ---------- 排行榜 ---------- */
.rank-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.rank-item {
    display: flex; align-items: center; gap: 16px; padding: 14px 18px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s, transform .2s;
}
.rank-item:hover { border-color: rgba(255, 77, 109, .35); transform: translateX(3px); }
.rank-no { width: 34px; text-align: center; font-size: 20px; font-weight: 800; color: var(--muted); }
.rank-no.is-top { color: var(--accent); }
.rank-poster { width: 64px; flex: 0 0 auto; }
.rank-poster .poster { aspect-ratio: 3 / 4; border-radius: 8px; }
.rank-poster .badge-score, .rank-poster .badge-hot { display: none; }
.rank-info { flex: 1; min-width: 0; }
.rank-title { font-size: 16px; font-weight: 600; }
.rank-title:hover { color: var(--accent); }
.rank-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rank-stats { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.rank-score { color: var(--gold); }

/* ---------- 详情 ---------- */
.detail-hero { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: start; margin-bottom: 34px; }
.detail-poster .poster { border-radius: 16px; box-shadow: var(--shadow); }
.detail-info h1 { font-size: 34px; line-height: 1.25; margin-bottom: 8px; }
.detail-alias { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.score-pill { padding: 3px 12px; border-radius: 999px; font-weight: 700; color: var(--gold); background: rgba(255, 200, 87, .13); }
.pill { padding: 3px 11px; border-radius: 999px; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .06); }
.pill-hot { color: #ff8a5c; background: rgba(255, 138, 92, .13); }
.pill-rec { color: #9d8bff; background: rgba(124, 92, 255, .15); }
.detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; margin-bottom: 16px; }
.detail-meta div { display: flex; gap: 10px; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.detail-meta dt { color: var(--muted); flex: 0 0 52px; }
.detail-meta dd { color: var(--text); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-intro .rich-text { font-size: 15px; color: #cbd6ea; line-height: 1.9; }
.detail-note { margin-top: 18px; font-size: 12px; color: var(--muted); padding: 12px 16px; background: rgba(255, 255, 255, .04); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
.detail-note a { color: var(--accent); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.pn-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.pn-item span { font-size: 12px; color: var(--muted); }
.pn-item:hover { border-color: rgba(255, 77, 109, .35); }
.pn-item.is-empty { color: var(--muted); font-size: 13px; }

/* ---------- AI ---------- */
.ai-hero { padding: 44px 40px; border-radius: 22px; background: radial-gradient(700px 320px at 80% 0%, rgba(124, 92, 255, .28), transparent 65%), var(--panel); border: 1px solid var(--line); }
.ai-hero h1 { font-size: 36px; margin-bottom: 10px; }
.ai-hero > p { color: var(--muted); max-width: 640px; margin-bottom: 22px; }
.ai-form { max-width: 760px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.ai-form textarea { width: 100%; background: transparent; border: 0; color: var(--text); outline: none; resize: vertical; min-height: 74px; line-height: 1.7; }
.ai-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.ai-tip { font-size: 12px; color: var(--muted); }
.ai-examples { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.ai-result { margin-top: 34px; }
.ai-reply { padding: 16px 20px; margin-bottom: 20px; border-radius: 12px; background: rgba(124, 92, 255, .12); border: 1px solid rgba(124, 92, 255, .3); font-size: 14px; }
.ai-reply .kw { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-block { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-block summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 15px; font-weight: 600; }
.faq-icon { color: var(--accent); font-size: 18px; transition: transform .2s; }
.faq-block[open] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.compliance { padding: 24px; background: rgba(255, 255, 255, .04); border-radius: var(--radius); }
.compliance h2 { font-size: 18px; margin-bottom: 10px; }
.compliance p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }

/* ---------- 搜索 / 404 ---------- */
.search-head h1 { font-size: 26px; margin-bottom: 16px; }
.search-form { display: flex; gap: 10px; max-width: 640px; }
.search-form input { flex: 1; height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); outline: none; }
.search-form input:focus { border-color: var(--accent); }
.search-count { margin-top: 10px; font-size: 13px; color: var(--muted); }
.notfound { text-align: center; padding: 70px 0 30px; }
.nf-code { font-size: 90px; font-weight: 900; letter-spacing: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: 26px; margin: 10px 0 8px; }
.notfound p { color: var(--muted); margin-bottom: 22px; }
.notfound .hero-actions { justify-content: center; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 32px; }
.pager-btn { min-width: 38px; height: 38px; padding: 0 12px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pager-btn:hover { color: var(--text); border-color: rgba(255, 77, 109, .4); }
.pager-btn.is-active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.pager-dot { color: var(--muted); padding: 0 4px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: #080d19; padding: 40px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; align-items: start; }
.footer-desc { color: var(--muted); font-size: 13px; margin-top: 12px; max-width: 360px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 13px; color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.footer-label { display: block; width: 100%; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.disclaimer { color: #6f7c93; font-size: 12px; max-width: 820px; }
.copyright { color: #6f7c93; font-size: 12px; }
.back-top {
    position: fixed; right: 22px; bottom: 26px; z-index: 40;
    width: 42px; height: 42px; display: grid; place-items: center;
    border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line);
    color: var(--text); opacity: 0; pointer-events: none; transition: opacity .25s;
}
.back-top.is-show { opacity: 1; pointer-events: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .two-col { grid-template-columns: 1fr; }
    .hot-panel { position: static; }
    .detail-hero { grid-template-columns: 200px 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .topsearch { display: none; }
    .nav-toggle { display: block; }
    .mainnav {
        display: none; position: absolute; left: 0; right: 0; top: 66px;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 18px;
        background: rgba(11, 17, 32, .96); border-bottom: 1px solid var(--line);
    }
    .mainnav.is-open { display: flex; }
    .mainnav a { padding: 10px 12px; }
    .hero { grid-template-columns: 1fr; padding: 30px 24px; }
    .hero-title { font-size: 30px; }
    .hero-visual { width: 190px; margin: 0 auto; }
    .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-row, .topic-grid { grid-template-columns: 1fr; }
    .detail-hero { grid-template-columns: 1fr; }
    .detail-poster { max-width: 220px; }
    .prev-next { grid-template-columns: 1fr; }
    .ai-hero { padding: 30px 22px; }
    .ai-hero h1 { font-size: 26px; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .container { padding: 0 16px; }
    .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hero-title { font-size: 24px; }
    .detail-info h1 { font-size: 24px; }
    .rank-poster { width: 48px; }
    .rank-item { gap: 10px; padding: 12px; }
    .rank-item .btn { display: none; }
    .search-form { flex-direction: column; }
    .search-form .btn { width: 100%; }
}
