/* SayHi expansion pages — anime and IP community */
:root {
  --xp-blue: #1643ad;
  --xp-blue-deep: #102d78;
  --xp-indigo: #5b4bc3;
  --xp-cyan: #8ce8ff;
  --xp-paper: #f5f8ff;
  --xp-ink: #112551;
  --xp-muted: #66769a;
  --xp-line: rgba(35, 70, 150, .16);
}

.explore-page {
  min-width: 1040px;
  color: var(--xp-ink);
  background: var(--xp-paper);
}

.explore-page .nav,
.explore-page .nav.scrolled {
  height: 72px;
  background: rgba(245, 248, 255, .9);
  border-bottom-color: var(--xp-line);
}

.explore-page .nav-inner { max-width: 1500px; gap: 28px; }
.explore-page .nav-links { gap: 24px; margin-left: 10px; }
.explore-page .nav-actions { gap: 12px; }

.explore-main {
  min-height: 100vh;
  padding-top: 72px;
  overflow: hidden;
}

.explore-shell { width: min(calc(100% - 96px), 1400px); margin-inline: auto; }

.explore-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    radial-gradient(circle at 77% 28%, rgba(144, 225, 255, .22), transparent 25%),
    linear-gradient(132deg, #102f80, #2450b2 54%, #6251c3);
  isolation: isolate;
}

.explore-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 18, 57, .55), transparent 58%);
  content: "";
}

.explore-hero-inner {
  display: flex;
  align-items: end;
  padding-block: 82px 68px;
}

.explore-hero h1 {
  max-width: 12ch;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(45px, 4vw, 62px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.045em;
}

.explore-hero-copy > p:not(.explore-kicker) {
  max-width: 590px;
  margin-top: 23px;
  color: rgba(238, 245, 255, .76);
  font-size: 16px;
  line-height: 1.75;
}

.anime-page .explore-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 19, 57, .94) 0%, rgba(10, 32, 80, .77) 42%, rgba(11, 33, 78, .22) 73%, rgba(23, 38, 91, .52) 100%),
    url("../img/welcome/world-ja.jpg");
  background-position: center;
  background-size: cover;
}

.community-page .explore-hero {
  min-height: 420px;
  background-image:
    linear-gradient(94deg, rgba(18, 47, 128, .97), rgba(41, 72, 172, .84) 57%, rgba(90, 71, 187, .7)),
    url("../img/editorial-team-panorama.webp");
  background-position: center 42%;
  background-size: cover;
}

.community-page .explore-hero-inner { padding-block: 72px 58px; }

.explore-workspace { padding: 70px 0 110px; }

.explore-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--xp-line);
}

.explore-section-head h2 { color: var(--xp-ink); font-family: var(--font-serif); font-size: 34px; font-weight: 500; }
.explore-section-head p { margin-top: 9px; color: var(--xp-muted); font-size: 12px; }

.explore-search {
  width: min(440px, 38vw);
  height: 48px;
  display: flex;
  border: 1px solid rgba(32, 67, 146, .25);
  background: rgba(255,255,255,.6);
}

.explore-search input { flex: 1; min-width: 0; padding: 0 17px; border: 0; outline: 0; color: var(--xp-ink); background: transparent; font: inherit; font-size: 14px; }
.explore-search button { width: 80px; border-left: 1px solid var(--xp-line); color: var(--xp-blue); font-size: 12px; font-weight: 700; }

.explore-filter-row { display: flex; align-items: center; gap: 5px; padding: 18px 0 34px; }
.explore-filter {
  padding: 9px 15px;
  border: 1px solid transparent;
  color: var(--xp-muted);
  font-size: 12px;
  font-weight: 650;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.explore-filter:hover { color: var(--xp-blue); }
.explore-filter.is-active { border-color: rgba(32,72,170,.23); color: var(--xp-blue); background: #fff; }

.anime-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; }
.anime-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--xp-line); }

.anime-item {
  position: relative;
  min-height: 292px;
  display: grid;
  grid-template-columns: 43% 57%;
  gap: 0;
  border-bottom: 1px solid var(--xp-line);
  transition: background .3s ease;
}
.anime-item:nth-child(odd) { border-right: 1px solid var(--xp-line); }
.anime-item:hover { background: rgba(255,255,255,.74); }
.anime-item[hidden] { display: none; }
.anime-item-media { position: relative; min-height: 292px; overflow: hidden; background: #dbe5ff; }
.anime-item-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.03); transition: transform .7s cubic-bezier(.22,1,.36,1), filter .45s ease; }
.anime-item:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.04); }
.anime-item-copy { padding: 30px 27px; display: flex; flex-direction: column; align-items: flex-start; }
.anime-item-copy small { color: var(--xp-blue); font-size: 10px; font-weight: 720; letter-spacing: .13em; text-transform: uppercase; }
.anime-item-copy h3 { margin: 16px 0 11px; color: var(--xp-ink); font-family: var(--font-serif); font-size: 27px; font-weight: 500; line-height: 1.08; }
.anime-item-copy p { color: var(--xp-muted); font-size: 13px; line-height: 1.65; }
.anime-item-copy button { margin-top: auto; padding: 7px 0 3px; border-bottom: 1px solid rgba(26, 67, 171, .4); color: var(--xp-blue); font-size: 12px; font-weight: 700; }

.anime-aside { position: sticky; top: 102px; align-self: start; padding: 28px; color: #edf4ff; background: var(--xp-blue-deep); }
.anime-aside small { color: var(--xp-cyan); font-size: 10px; font-weight: 720; letter-spacing: .15em; text-transform: uppercase; }
.anime-aside h3 { margin: 18px 0 12px; color: #fff; font-family: var(--font-serif); font-size: 31px; font-weight: 500; line-height: 1.08; }
.anime-aside p { color: rgba(236,244,255,.67); font-size: 13px; line-height: 1.7; }
.anime-aside dl { margin: 34px 0 0; }
.anime-aside dl div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.14); }
.anime-aside dt { color: rgba(236,244,255,.5); font-size: 11px; }
.anime-aside dd { margin: 0; color: #fff; font-size: 11px; }
.anime-empty { padding: 75px 24px; border-block: 1px solid var(--xp-line); color: var(--xp-muted); text-align: center; }

.community-workspace { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 68px; }
.community-compose { position: sticky; top: 104px; align-self: start; }
.community-compose h2 { color: var(--xp-ink); font-family: var(--font-serif); font-size: 32px; font-weight: 500; }
.community-compose > p { margin: 12px 0 28px; color: var(--xp-muted); font-size: 13px; line-height: 1.7; }
.community-compose form { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--xp-line); }
.community-compose label span { display: block; margin-bottom: 7px; color: var(--xp-muted); font-size: 11px; font-weight: 650; }
.community-compose input,
.community-compose textarea,
.community-compose select { width: 100%; border: 1px solid rgba(31, 69, 154, .22); border-radius: 0; outline: none; color: var(--xp-ink); background: rgba(255,255,255,.7); font: inherit; font-size: 13px; }
.community-compose input,
.community-compose select { height: 43px; padding: 0 13px; }
.community-compose textarea { min-height: 112px; padding: 12px 13px; resize: vertical; }
.community-compose :is(input,textarea,select):focus { border-color: var(--xp-blue); box-shadow: 0 0 0 2px rgba(38,77,181,.1); }
.community-compose .btn { width: 100%; border-radius: 0; }
.community-form-status { min-height: 19px; color: var(--xp-blue); font-size: 11px; }

.community-stream { border-top: 1px solid var(--xp-line); }
.community-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 17px 0; border-bottom: 1px solid var(--xp-line); }
.community-toolbar strong { font-family: var(--font-serif); font-size: 23px; font-weight: 500; }
.community-toolbar .explore-filter-row { padding: 0; }

.community-post { display: grid; grid-template-columns: 14px minmax(0,1fr) 120px; gap: 28px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--xp-line); }
.community-post[hidden] { display: none; }
.community-post-mark { width: 6px; height: 6px; margin-top: 7px; background: var(--xp-cyan); box-shadow: 0 0 0 4px rgba(69,173,221,.1); }
.community-post small { color: var(--xp-blue); font-size: 10px; font-weight: 720; letter-spacing: .11em; text-transform: uppercase; }
.community-post h3 { margin: 10px 0 9px; color: var(--xp-ink); font-family: var(--font-serif); font-size: 25px; font-weight: 500; }
.community-post p { max-width: 720px; color: var(--xp-muted); font-size: 14px; line-height: 1.7; }
.community-post-meta { text-align: right; color: var(--xp-muted); font-size: 11px; line-height: 1.7; }
.community-post-meta b { display: block; color: var(--xp-ink); font-weight: 650; }

.explore-footer { padding: 38px 0; border-top: 1px solid var(--xp-line); color: var(--xp-muted); background: #e8efff; }
.explore-footer .explore-shell { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.explore-footer p { font-size: 12px; }
.explore-footer nav { display: flex; gap: 24px; font-size: 12px; }
.explore-footer a:hover { color: var(--xp-blue); }

@media (max-width: 1180px) {
  .explore-page .nav-links { gap: 15px; }
  .explore-page .nav-inner { padding-inline: 24px; gap: 18px; }
  .explore-page .nav-actions .btn-ghost { display: none; }
  .anime-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 34px; }
  .anime-item { grid-template-columns: 40% 60%; }
}

@media (prefers-reduced-motion: reduce) {
  .anime-item img { transition: none; }
}
