/* =============================================================
   HiAnime homepage clone — stylesheet
   A clean re-implementation of the dark "anime portal" layout:
   fixed header, spotlight carousel, trending strip, 4-col featured
   sections, main grids + Top-10 sidebar, genres, footer.
   ============================================================= */

:root {
  --bg:            #1e1d2f;   /* page background            */
  --surface:       #252438;   /* header, cards, sidebars    */
  --surface-2:     #2c2b40;   /* inputs, thumbs, tabs       */
  --accent:        #ffbade;   /* signature pink             */
  --accent-hover:  #ffe3f2;
  --text:          #ffffff;
  --text-muted:    #6c757d;
  --text-dim:      rgba(255,255,255,.45);
  --sub:           #b0e3af;   /* sub badge (green)          */
  --dub:           #b9e7ff;   /* dub badge (blue)           */
  --star:          #ffaa2c;
  --border:        rgba(255,255,255,.08);
  --radius:        12px;
  --header-h:      70px;
  --maxw:          1800px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(255,186,222,.3); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.25); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 20px; }
@media (max-width: 1599px) { .container { max-width: 100%; } }
@media (max-width: 1200px) { .container { padding: 0 16px; } }

/* ---- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px; border: none; font-weight: 500;
  font-size: 13px; transition: all .2s ease; cursor: pointer;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: var(--accent-hover); color: #111; transform: translateY(-2px); }
.btn-secondary { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.btn-secondary:hover { background: rgba(255,255,255,.16); color: #fff; }

/* =============================================================
   HEADER
   ============================================================= */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 102;
  height: var(--header-h); background: var(--surface);
  transition: background .2s ease, backdrop-filter .2s ease;
}
#header.is-scrolled {
  background: rgba(32,31,49,.75);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
#header .header-inner { display: flex; align-items: center; height: 100%; gap: 12px; }

.menu-toggle {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 6px; color: #fff; transition: background .2s ease;
}
.menu-toggle:hover { background: rgba(255,255,255,.08); }
.menu-toggle.active { background: rgba(255,255,255,.1); }
.menu-toggle.active svg { color: var(--accent); }
.menu-toggle svg { width: 24px; height: 24px; }

#logo { display: flex; align-items: center; gap: 2px; height: 36px; margin-right: 14px; flex-shrink: 0; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
#logo .logo-hi { color: var(--accent); }
#logo .logo-rest { color: #fff; }
#logo .logo-dot { color: var(--accent); }

/* Search */
#search { flex: 1; max-width: 400px; }
.search-content { position: relative; height: 38px; }
.search-input {
  width: 100%; height: 38px; padding: 0 100px 0 40px;
  background: var(--surface-2); color: #fff; font-size: 13px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 20px; outline: none; transition: all .2s ease;
}
.search-input::placeholder { color: rgba(255,255,255,.4); }
.search-input:focus { border-color: rgba(255,186,222,.5); box-shadow: 0 0 0 3px rgba(255,186,222,.1); }
.search-icon {
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: flex;
  align-items: center; justify-content: center; background: none; border: none; color: rgba(255,255,255,.5);
}
.search-icon svg { width: 16px; height: 16px; }
.filter-icon {
  position: absolute; right: 5px; top: 5px; height: 28px; display: inline-flex; align-items: center; gap: 5px;
  padding: 0 12px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  border: none; border-radius: 14px; font-size: 11px; font-weight: 500; transition: all .2s ease;
}
.filter-icon svg { width: 12px; height: 12px; }
.filter-icon:hover { background: rgba(255,255,255,.16); color: #fff; }

/* Header right */
.header-group { display: flex; align-items: center; gap: 12px; margin-left: 20px; }
.join-text { display: flex; flex-direction: column; font-size: 11px; line-height: 1.2; color: rgba(255,255,255,.6); font-weight: 500; }
.join-text b { color: #fff; }
.social-icons { display: flex; gap: 6px; }
.social-btn { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: all .2s ease; }
.social-btn svg { width: 17px; height: 17px; }
.social-btn.discord { background: #5865f2; }
.social-btn.telegram { background: #229ed9; }
.social-btn.reddit { background: #ff4500; }
.social-btn.twitter { background: #1da1f2; }
.social-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

.header-right { display: flex; align-items: center; margin-left: auto; gap: 10px; }
.btn-signin {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px;
  background: var(--accent); color: #111; font-size: 13px; font-weight: 600;
  border-radius: 6px; transition: all .2s ease;
}
.btn-signin svg { width: 15px; height: 15px; }
.btn-signin:hover { background: var(--accent-hover); color: #111; transform: translateY(-1px); }

.icon-btn { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 6px; color: rgba(255,255,255,.8); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(255,255,255,.08); }

/* Slide-out nav */
#pick_menu {
  position: fixed; top: var(--header-h); left: -300px; width: 280px; height: calc(100vh - var(--header-h));
  background: var(--surface); z-index: 101; overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.05); transition: left .3s ease;
}
#pick_menu.active { left: 0; }
.pmu-list { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.pmu-item a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; transition: all .2s ease; }
.pmu-item a:hover { background: rgba(255,186,222,.08); color: var(--accent); }
.pmu-item.active a { background: rgba(255,186,222,.1); color: var(--accent); }
.pmu-icon { width: 20px; height: 20px; flex-shrink: 0; color: rgba(255,255,255,.7); }
.pmu-item a:hover .pmu-icon, .pmu-item.active .pmu-icon { color: var(--accent); }
.pmu-text-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); border-radius: 3px; }
.pmu-genre { padding: 16px 20px; }
.pmu-genre-title { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: rgba(255,255,255,.9); }
.pmu-genre-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pmu-genre-grid a { padding: 6px 12px; background: rgba(255,255,255,.05); border-radius: 4px; color: rgba(255,255,255,.7); font-size: 12px; transition: all .2s ease; }
.pmu-genre-grid a:hover { background: rgba(255,186,222,.16); color: var(--accent); }

#overlay { position: fixed; inset: var(--header-h) 0 0 0; background: rgba(0,0,0,.5); z-index: 100; opacity: 0; visibility: hidden; transition: all .3s ease; }
#overlay.active { opacity: 1; visibility: visible; }

/* =============================================================
   SPOTLIGHT CAROUSEL
   ============================================================= */
.home-spotlight { max-width: var(--maxw); margin: 0 auto; padding: 1rem 20px 0; }
@media (max-width: 1200px) { .home-spotlight { padding: .5rem 16px 0; } }
.deslide { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg); }
.deslide-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.deslide-item { position: relative; flex: 0 0 100%; height: 480px; }
@media (max-width: 1200px) { .deslide-item { height: 420px; } }
@media (max-width: 991px)  { .deslide-item { height: 380px; } }
@media (max-width: 767px)  { .deslide-item { height: 340px; } }
@media (max-width: 575px)  { .deslide-item { height: 300px; } }

.deslide-cover { position: absolute; inset: 0; z-index: 1; }
.deslide-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.deslide-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(30,29,47,.85) 25%, rgba(30,29,47,.5) 50%, transparent 100%);
}
@media (max-width: 767px) {
  .deslide-cover::after { background: linear-gradient(to top, var(--bg), rgba(30,29,47,.8) 40%, rgba(30,29,47,.4)); }
}
.deslide-content {
  position: relative; z-index: 2; height: 100%; max-width: 600px;
  display: flex; flex-direction: column; justify-content: center; padding: 50px 60px;
}
@media (max-width: 1200px) { .deslide-content { padding: 40px 50px; max-width: 520px; } }
@media (max-width: 991px)  { .deslide-content { padding: 30px 40px; max-width: 480px; } }
@media (max-width: 767px)  { .deslide-content { padding: 24px 20px 80px; max-width: 100%; justify-content: flex-end; } }

.desi-sub { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; opacity: .9; }
.desi-title { font-size: 32px; font-weight: 700; margin: 0 0 16px; line-height: 1.2; }
@media (max-width: 1200px) { .desi-title { font-size: 28px; } }
@media (max-width: 767px)  { .desi-title { font-size: 22px; margin-bottom: 12px; } }
@media (max-width: 575px)  { .desi-title { font-size: 18px; } }

.sc-detail { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.scd-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: rgba(255,255,255,.6); }
.scd-item svg { width: 12px; height: 12px; }
.quality { background: var(--accent); color: #111; font-weight: 700; padding: 3px 8px; border-radius: 4px; font-size: 10px; }
.tick { display: inline-flex; align-items: center; gap: 5px; }
.tick-item { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #111; height: 20px; font-family: Arial, sans-serif; }
.tick-sub { background: var(--sub); }
.tick-dub { background: var(--dub); }
.tick-eps { background: rgba(255,255,255,.2); color: #fff; }
@media (max-width: 767px) { .scd-item.m-hide { display: none; } }

.desi-desc { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.65); margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 767px) { .desi-desc { -webkit-line-clamp: 2; margin-bottom: 16px; } }
@media (max-width: 575px) { .desi-desc { display: none; } }
.desi-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.deslide-pagination { position: absolute; bottom: 30px; left: 60px; z-index: 10; display: flex; gap: 6px; }
@media (max-width: 767px) { .deslide-pagination { left: 20px; bottom: 24px; } }
.deslide-bullet { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); border: none; padding: 0; transition: all .25s ease; }
.deslide-bullet.active { width: 24px; border-radius: 4px; background: var(--accent); }
.deslide-nav { position: absolute; bottom: 30px; right: 20px; z-index: 10; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 767px) { .deslide-nav { right: 12px; bottom: 24px; } }
.deslide-arrow { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.5); border: none; border-radius: 8px; color: #fff; transition: all .2s ease; }
.deslide-arrow:hover { background: rgba(0,0,0,.7); }
.deslide-arrow svg { width: 16px; height: 16px; }

/* =============================================================
   PAGE INTRO / H1
   ============================================================= */
.home-intro { max-width: var(--maxw); margin: 0 auto; padding: 1.25rem 20px .25rem; }
.home-intro h1 { margin: 0 0 .35rem; font-size: 1.4rem; font-weight: 700; line-height: 1.3;
  background: linear-gradient(90deg, #fff 35%, var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.home-intro p { margin: 0; font-size: 13px; color: rgba(255,255,255,.55); max-width: 760px; }
@media (max-width: 1200px) { .home-intro { padding: 1rem 16px .25rem; } }
@media (max-width: 768px)  { .home-intro h1 { font-size: 1.15rem; } }

/* =============================================================
   SECTION HEADERS + GRIDS
   ============================================================= */
.home-container { max-width: var(--maxw); margin: 2rem auto 0; }
@media (max-width: 1599px) { .home-container { max-width: 100%; } }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.section-header h2 { font-size: 1.5rem; font-weight: 600; color: var(--accent); margin: 0; }
.view-all { display: flex; align-items: center; gap: 4px; color: rgba(255,255,255,.5); font-size: 13px; font-weight: 500; transition: color .2s ease; }
.view-all svg { width: 14px; height: 14px; transition: transform .2s ease; }
.view-all:hover { color: var(--accent); }
.view-all:hover svg { transform: translateX(3px); }
.content-section { margin-bottom: 2.5rem; }

.anime-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
@media (max-width: 1400px) { .anime-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1200px) { .anime-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (max-width: 768px)  { .anime-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 480px)  { .anime-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Anime card */
.anime-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.anime-card-link:hover { color: inherit; }
.featured-item { color: inherit; text-decoration: none; }
.top10-name a { color: inherit; text-decoration: none; }
.anime-card { position: relative; display: flex; flex-direction: column; transition: transform .25s ease; }
.anime-card:hover { transform: translateY(-4px); }
.anime-card:hover .anime-card-image img { transform: scale(1.05); }
.anime-card:hover .anime-card-overlay { opacity: 1; }
.anime-card:hover .anime-card-title { color: var(--accent); }
.anime-card-image { position: relative; width: 100%; padding-bottom: 140%; overflow: hidden; background: var(--surface-2); border-radius: 6px; }
.anime-card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.anime-card-overlay { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(to top, rgba(0,0,0,.85), transparent 50%); opacity: 0; transition: opacity .25s ease; display: flex; align-items: flex-end; padding: .75rem; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; background: rgba(255,186,222,.95); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.4); transition: all .25s ease; }
.play-icon:hover { background: var(--accent); transform: translate(-50%,-50%) scale(1.1); }
.play-icon svg { width: 18px; height: 18px; fill: #111; margin-left: 2px; }
.card-badges { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 4px; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; height: 18px; line-height: 1; font-family: Arial, sans-serif; }
.badge-sub { background: var(--sub); color: #111; }
.badge-dub { background: var(--dub); color: #111; }
.badge-eps { background: rgba(255,255,255,.2); color: #fff; }
.badge-type { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); color: #fff; }
.anime-card-body { padding: .65rem .2rem; display: flex; flex-direction: column; flex: 1; }
.anime-card-title { font-size: 13px; font-weight: 500; color: #fff; margin: 0 0 .3rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s ease; }
.anime-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; font-size: 11px; color: var(--text-muted); margin-top: auto; }
.anime-card-meta .meta-dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; opacity: .5; }
.anime-card-rating { display: flex; align-items: center; gap: .2rem; color: var(--star); font-weight: 500; }
.anime-card-rating svg { width: 11px; height: 11px; fill: currentColor; }

/* =============================================================
   TRENDING STRIP
   ============================================================= */
.home-trending { padding: 1.5rem 0 0; }
.trending-scroller { display: flex; gap: 14px; overflow-x: auto; padding: 8px 0 16px; scroll-snap-type: x mandatory; }
.trending-scroller::-webkit-scrollbar { height: 6px; }
.trending-slide { flex: 0 0 auto; width: 170px; scroll-snap-align: start; }
@media (max-width: 768px) { .trending-slide { width: 140px; } }
.trending-card { position: relative; width: 100%; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; background: var(--surface); display: block; transition: transform .2s ease; }
.trending-card:hover { transform: translateY(-3px); }
.trending-card img { width: 100%; height: 100%; object-fit: cover; }
.trending-vertical { position: absolute; left: 0; top: 0; bottom: 0; width: 38px; background: rgba(30,29,47,.85); display: flex; align-items: center; justify-content: center; padding: .5rem 0; }
.trending-vertical span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 500; color: #fff; line-height: 1.2; padding-top: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 78%; }
.trending-rank { position: absolute; left: 8px; bottom: 8px; font-size: 1rem; font-weight: 700; color: var(--accent); text-shadow: 0 4px 12px rgba(0,0,0,.5); z-index: 2; }

/* =============================================================
   FEATURED 4-COLUMN SECTIONS
   ============================================================= */
.home-featured { padding: 2rem 0 2.5rem; background: rgba(0,0,0,.2); margin-top: 1.5rem; }
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1200px) { .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 768px)  { .featured-grid { grid-template-columns: 1fr; gap: 16px; } }
.featured-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.featured-title-h { font-size: 1rem; font-weight: 600; color: var(--accent); margin: 0; }
.featured-list { display: flex; flex-direction: column; gap: 12px; }
.featured-item { display: flex; gap: 12px; transition: color .2s ease; }
.featured-item:hover .featured-name { color: var(--accent); }
.featured-poster { width: 50px; height: 70px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.featured-poster img { width: 100%; height: 100%; object-fit: cover; }
.featured-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.featured-name { font-size: 13px; font-weight: 500; color: #fff; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s ease; }
.featured-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 11px; }
.meta-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; }
.meta-badge.meta-eps { background: var(--sub); color: #111; }
.meta-badge.meta-rating { background: rgba(255,186,222,.2); color: var(--accent); }
.meta-badge svg { width: 10px; height: 10px; }
.featured-meta .meta-dot { color: rgba(255,255,255,.25); }
.featured-meta .meta-type { color: rgba(255,255,255,.55); font-size: 10px; font-weight: 500; }

/* =============================================================
   HOME LAYOUT (main + Top10 sidebar)
   ============================================================= */
.home-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 30px; align-items: start; }
@media (max-width: 992px) { .home-layout { grid-template-columns: minmax(0,1fr); } }
.home-main { min-width: 0; }

.top10-sidebar { background: var(--surface); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h) + 10px); }
@media (max-width: 992px) { .top10-sidebar { position: relative; top: 0; margin-top: 1rem; } }
.top10-title { font-size: 1.5rem; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.top10-tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 8px; padding: 4px; margin-bottom: 8px; }
.top10-tab { flex: 1; padding: 8px 12px; background: transparent; border: none; color: rgba(255,255,255,.6); font-size: 12px; font-weight: 500; border-radius: 6px; transition: all .2s ease; }
.top10-tab:hover { color: #fff; }
.top10-tab.active { background: var(--accent); color: #111; }
.top10-list { display: none; }
.top10-list.active { display: block; }
.top10-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.top10-item:last-child { border-bottom: none; }
.top10-item:hover .top10-name { color: var(--accent); }
.top10-rank { flex-shrink: 0; width: 32px; display: flex; flex-direction: column; align-items: center; font-weight: 700; font-size: 1.1rem; color: rgba(255,255,255,.4); }
.top10-rank::after { content: ""; width: 16px; height: 3px; margin-top: 4px; border-radius: 2px; background: transparent; }
.top10-rank.top-3 { color: var(--accent); font-size: 1.25rem; }
.top10-rank.top-3::after { background: var(--accent); }
.top10-thumb { flex-shrink: 0; width: 45px; height: 60px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.top10-thumb img { width: 100%; height: 100%; object-fit: cover; }
.top10-info { flex: 1; min-width: 0; }
.top10-name { font-size: 13px; font-weight: 500; color: #fff; margin: 0 0 4px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s ease; }
.top10-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,.45); }
.top10-badges { display: flex; gap: 4px; }

/* Genres block */
.sidebar-section { background: var(--surface); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.sidebar-section .sidebar-h { font-size: 1rem; font-weight: 600; color: #fff; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.genre-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-tag { padding: 6px 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 6px; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 500; transition: all .2s ease; }
.genre-tag:hover { background: rgba(255,186,222,.16); border-color: rgba(255,186,222,.3); color: var(--accent); }

/* =============================================================
   SEO CONTENT BLOCK
   ============================================================= */
.home-seo { margin-top: 2.5rem; padding: 2rem 0 .5rem; border-top: 1px solid rgba(255,255,255,.05); }
.home-seo-inner { max-width: 1000px; color: #adb5bd; }
.home-seo h2 { font-size: 1.6rem; font-weight: 700; margin: 0 0 1rem; line-height: 1.3;
  background: linear-gradient(90deg, var(--accent), #d7b8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.home-seo h3 { font-size: 1.15rem; font-weight: 600; color: #fff; margin: 1.6rem 0 .6rem; }
.home-seo p { font-size: 13px; line-height: 1.75; margin: 0 0 1rem; color: #adb5bd; }
.home-seo strong { color: #fff; font-weight: 600; }
.home-seo em { color: var(--accent); font-style: normal; }
.home-seo .seo-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin: .5rem 0 1.25rem; padding: 0; }
.home-seo .seo-features li { position: relative; padding-left: 20px; font-size: 13px; line-height: 1.6; color: #adb5bd; }
.home-seo .seo-features li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.home-seo .seo-note { font-size: 12px; color: rgba(255,255,255,.4); background: rgba(255,255,255,.03); border-left: 3px solid rgba(255,186,222,.4); padding: 12px 16px; border-radius: 0 8px 8px 0; margin-top: 1.5rem; }
@media (max-width: 768px) { .home-seo .seo-features { grid-template-columns: 1fr; } .home-seo h1 { font-size: 1.3rem; } }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--surface); padding: 2.5rem 0 1.5rem; color: rgba(255,255,255,.7); margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.05); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-logo { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.footer-logo .logo-hi { color: var(--accent); }
.footer-join { display: flex; align-items: center; gap: 12px; padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.06); }
.footer-join-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); font-weight: 500; }
.footer-join-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-join-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: all .2s ease; }
.footer-join-icon svg { width: 16px; height: 16px; }
.footer-join-icon:hover { color: var(--accent); border-color: rgba(255,186,222,.4); background: rgba(255,186,222,.1); }
.footer-section-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 1.5rem 0 12px; }
.footer-section-title .label { font-size: 13px; font-weight: 600; color: #fff; }
.footer-section-title .hint { font-size: 12px; color: rgba(255,255,255,.45); }
.footer-genres { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-genres a { padding: 6px 14px; border-radius: 6px; background: var(--surface-2); border: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.65); font-size: 12px; font-weight: 500; transition: all .2s ease; }
.footer-genres a:hover { border-color: rgba(255,186,222,.5); color: var(--accent); background: rgba(255,186,222,.08); }
.footer-az { padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.az-list { display: flex; flex-wrap: wrap; gap: 6px; }
.az-list a { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 28px; padding: 0 10px; border-radius: 6px; background: var(--surface-2); border: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.65); font-size: 12px; font-weight: 500; transition: all .2s ease; }
.az-list a:hover { border-color: rgba(255,186,222,.5); color: var(--accent); background: rgba(255,186,222,.08); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-links a { color: rgba(255,255,255,.65); font-size: 13px; font-weight: 500; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding-top: 1.25rem; display: flex; flex-direction: column; gap: 10px; }
.footer-disclaimer,
.footer-tagline { font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.4); max-width: 900px; }
a.footer-logo { text-decoration: none; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.5); }

/* Back to top */
.back-top { position: fixed; right: 24px; bottom: 24px; width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.7); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .25s ease; z-index: 100; }
.back-top svg { width: 18px; height: 18px; }
.back-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--accent); border-color: var(--accent); color: #111; }
@media (max-width: 768px) { .back-top { right: 16px; bottom: 16px; width: 36px; height: 36px; } }

/* =============================================================
   RESPONSIVE HEADER
   ============================================================= */
@media (max-width: 1200px) { .header-group { display: none; } }
@media (max-width: 768px) {
  #search { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; max-width: 100%; padding: 12px 15px; background: var(--surface); border-bottom: 1px solid rgba(255,255,255,.05); }
  #search.is-open { display: block; }
  .search-content { height: 42px; }
  .search-input { height: 42px; border-radius: 21px; }
  #logo { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
  .header-right .btn-signin { display: none; }
  .icon-btn { display: flex; }
}
