:root {
  color-scheme: dark;
  --bg: #272a31;
  --panel: #20232b;
  --panel-2: #30343d;
  --line: rgba(255, 255, 255, .13);
  --text: #f6f7fb;
  --muted: #b9beca;
  --pink: #ff4d8d;
  --purple: #9b5cff;
  --blue: #55b8ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.topbar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(25, 27, 33, .94); backdrop-filter: blur(14px); }
.topnav { width: min(1380px, calc(100% - 28px)); min-height: 54px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.topnav a { color: #c7cad2; font-size: .88rem; white-space: nowrap; }
.topnav a:hover { color: #fff; }
.search-link { margin-left: auto; font-size: 1.35rem !important; }

.site-shell { width: min(1380px, calc(100% - 28px)); margin: 0 auto; }
.banner { position: relative; min-height: 295px; margin-top: 0; overflow: hidden; border-radius: 0 0 14px 14px; background: #111; }
.banner-home { display:block; width:100%; height:100%; color:inherit; text-decoration:none; }
.banner img { display: block; width: 100%; height: 295px; object-fit: cover; object-position: center; }
.banner::after { display: none; }
.banner-copy { display: none; }
.banner-copy span { color: #ff8bb4; font-size: .8rem; font-weight: 850; letter-spacing: .16em; }
.banner-copy h1 { margin: 6px 0; font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: .96; letter-spacing: -.05em; }
.banner-copy p { margin: 0; color: #d7d9e2; }

.section-heading { min-height: 62px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #2b2e35; }
.section-heading h2, .section-heading span { font-size: .9rem; }
.section-heading span { color: var(--muted); }

.layout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px 300px; gap: 20px; padding-top: 28px; }
.posts-column { min-width: 0; padding-right: 20px; border-right: 1px solid var(--line); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 14px 0 26px; }
.page-count, .page-link { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: #f5f6f8; color: #252831; }
.page-count { padding: 0 12px; background: #979aa2; color: #fff; }
.page-link { min-width: 34px; padding: 0 8px; }
.page-link:hover { background: #ffd7e5; }
.page-link.active { color: #fff; background: linear-gradient(135deg, var(--pink), var(--purple)); }
.page-link.wide { padding-inline: 12px; }
.ellipsis { color: var(--muted); }

.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.empty-state { grid-column:1/-1; padding:50px 20px; text-align:center; color:var(--muted); }
.post-card { min-width: 0; padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.cover-placeholder { position: relative; display:block; overflow: hidden; border-radius: 11px; background: #11131a; box-shadow: inset 0 0 70px rgba(0, 0, 0, .3); }
.cover-placeholder img, .mini-placeholder img { display:block; width:100%; height:auto; }
.focus-center { object-position: center; }
.focus-right { object-position: 76% center; }
.favorite-badge { position:absolute; left:11px; bottom:11px; z-index:2; width:38px; height:38px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.3); border-radius:11px; color:#fff; background:rgba(26,29,36,.9); box-shadow:0 7px 18px rgba(0,0,0,.32); transform:rotate(-7deg); transition:color .24s ease,background-color .24s ease,transform .24s ease,box-shadow .24s ease; }
.cover-placeholder:hover .favorite-badge,.cover-placeholder:focus-visible .favorite-badge { color:#252831; background:#fff; box-shadow:0 10px 22px rgba(0,0,0,.4); transform:rotate(0) scale(1.06); }
.post-meta { display: flex; gap: 8px; margin-top: 14px; color: #e7e9f0; font-size: .72rem; font-weight: 750; }
.post-meta span { color: var(--blue); }
.post-card h3 { margin: 9px 0 0; font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.35; }
.post-card h3 a,.popular-card h3 a { text-decoration:underline; text-decoration-color:transparent; text-decoration-thickness:1px; text-underline-offset:3px; transition:color .28s ease,text-decoration-color .28s ease; }
.post-card:hover h3 a,.post-card:focus-within h3 a,.popular-card:hover h3 a,.popular-card:focus-within h3 a { color:#4aa9dc; text-decoration-color:currentColor; }

.tone-1 { background: linear-gradient(135deg, #4f154a, #b53268); }
.tone-2 { background: linear-gradient(135deg, #173a59, #3575bd); }
.tone-3 { background: linear-gradient(135deg, #453173, #a45be0); }
.tone-4 { background: linear-gradient(135deg, #174a45, #33a47e); }
.tone-5 { background: linear-gradient(135deg, #673721, #d36a3b); }
.tone-6 { background: linear-gradient(135deg, #382d48, #785d9f); }

.popular-column h2, .filter-block h2 { font-size: .9rem; }
.support-box { padding: 14px; margin-bottom: 28px; border-radius: 12px; color: #ffd78a; background: #343039; }
.support-box span { display: block; margin-bottom: 12px; font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.support-box button { width: 100%; padding: 12px; border: 0; border-radius: 9px; cursor: pointer; color: #fff; background: linear-gradient(135deg, #ff9f1c, #ff6a3d); }
.popular-list { display: grid; gap: 22px; }
.popular-card h3 { margin: 7px 0 3px; font-size: .87rem; line-height: 1.35; }
.popular-card small { color: var(--muted); }
.popular-empty { color:var(--muted); font-size:.82rem; line-height:1.5; }
.mini-placeholder { overflow:hidden; border-radius:8px; background:#11131a; }

.filters-column { min-width: 0; }
.search-form label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 750; }
.search-form div { display: flex; }
.search-form input { width: 100%; min-width: 0; padding: 10px; border: 1px solid #4d515d; border-radius: 7px 0 0 7px; color: #222; background: #fff; }
.search-form button { border: 0; padding: 0 13px; border-radius: 0 7px 7px 0; color: #fff; background: var(--purple); }
.filter-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-block label { display: block; margin: 8px 0; color: #eceef3; font-size: .86rem; }
.category-options { display:flex; flex-wrap:wrap; gap:8px 14px; }
.category-options label { display:inline-flex; align-items:center; gap:5px; margin:0; white-space:nowrap; }
.tag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.tag-grid a { margin:3px 0; padding:7px 8px; border:1px solid var(--line); border-radius:6px; color:#eceef3; background:rgba(20,22,28,.22); font-size:.76rem; text-decoration:none; }
.tag-grid a:hover,.tag-grid a.active { border-color:rgba(255,255,255,.3); color:#fff; background:linear-gradient(135deg,rgba(255,77,141,.45),rgba(155,92,255,.45)); }
.submit-filter { margin-top: 10px; padding: 9px 12px; border: 0; border-radius: 7px; color: #fff; background: #4594c6; }
.dmca-sidebar { padding:24px 0; border-bottom:1px solid var(--line); }
.dmca-sidebar .dmca-badge { display:inline-block; margin-bottom:18px; }
.dmca-sidebar .dmca-badge img { display:block; width:200px; max-width:100%; height:auto; }
.dmca-sidebar p { margin:7px 0; color:#ffb000; font-size:.84rem; font-weight:800; line-height:1.5; }
.dmca-sidebar p span { color:#f5f6f8; }
.dmca-sidebar p a { color:#fff; text-decoration:underline; text-underline-offset:2px; transition:color .2s ease; }
.dmca-sidebar p a:hover,.dmca-sidebar p a:focus-visible { color:#75c9ff; }

.footer { min-height: 92px; margin-top: 50px; padding: 18px max(20px, calc((100% - 1330px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #aeb3c0; background: #30333a; }
.footer a { width: 44px; height: 34px; display: grid; place-items: center; border-radius: 6px; color: #555b67; background: #fff; }

@media (max-width: 1120px) {
  .topnav { overflow-x: auto; }
  .layout-grid { grid-template-columns: minmax(0, 1fr) 245px; }
  .popular-column { display: none; }
}

@media (max-width: 780px) {
  .site-shell, .topnav { width: 100%; }
  .topnav { padding-inline: 14px; }
  .banner, .banner img { min-height: 220px; height: 220px; border-radius: 0; }
  .layout-grid { grid-template-columns: 1fr; padding: 20px 14px 0; }
  .posts-column { padding-right: 0; border-right: 0; }
  .filters-column { padding-top: 10px; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .topnav { gap: 18px; }
  .post-grid { grid-template-columns: 1fr; }
  .section-heading { padding-inline: 16px; }
  .banner-copy { left: 20px; right: 20px; }
  .banner-copy h1 { font-size: 2.35rem; }
  .page-count { width: 100%; }
  .footer { flex-direction: column; text-align: center; }
}

/* EmiruPlay banner: keep the complete artwork visible at every viewport size. */
.banner { background:#0c0d13; }
.banner img { object-fit:cover; transform:none; }

@media (max-width:780px) {
  .banner { height:auto !important; min-height:0 !important; aspect-ratio:1380 / 295; border-radius:0; }
  .banner-home { height:100%; }
  .banner img { width:100%; height:100% !important; min-height:0 !important; object-fit:contain; transform:none; }
}
