/*
Theme Name: Anime News Portal
Theme URI: https://example.com/anime-news-portal
Author: OpenAI Codex
Author URI: https://openai.com
Description: A WordPress theme for anime sites powered by MacCMS data.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: anime-news-portal
*/

:root {
  --anp-accent: #f9577c;
  --anp-accent-soft: #ffedf1;
  --anp-accent-border: #ffbdcc;
  --anp-text: #1e1e1e;
  --anp-muted: #777777;
  --anp-soft: #8a8a8a;
  --anp-line: #dedede;
  --anp-panel: #f1f1f1;
  --anp-panel-2: #f7f7f7;
  --anp-shadow: 0 12px 36px rgba(30, 30, 30, 0.06);
  --anp-content-width: 1380px;
  --anp-article-width: 744px;
  --anp-radius: 18px;
  --anp-radius-sm: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--anp-text);
  background: #ffffff;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.anp-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.anp-container {
  width: min(calc(100% - 48px), var(--anp-content-width));
  margin: 0 auto;
}

.anp-main {
  flex: 1;
  padding: 18px 0 80px;
}

.anp-section-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
}

.anp-section-title--inline {
  display: inline-flex;
  align-items: center;
}

.anp-subtitle {
  margin: 0 0 22px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
}

.anp-archive-description,
.anp-list-item__excerpt,
.anp-article-summary,
.anp-vod-side-summary,
.anp-vod-banner__subtitle {
  color: var(--anp-muted);
}

.anp-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--anp-line);
  backdrop-filter: blur(10px);
}

.anp-site-header__inner {
  min-height: 57px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.anp-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 65px;
}

.anp-brand__logo,
.anp-brand__logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.anp-brand img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.anp-primary-nav {
  justify-self: center;
}

.anp-primary-nav ul {
  position: relative;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 2px;
  border-radius: 26px;
  background: var(--anp-panel);
  overflow: hidden;
}

.anp-primary-nav li {
  margin: 0;
  position: relative;
  z-index: 1;
}

.anp-primary-nav a {
  min-width: 96px;
  min-height: 33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 26px;
  color: var(--anp-muted);
  background: transparent;
  font-size: 15px;
  transition: color 0.2s ease;
}

.anp-primary-nav__indicator {
  position: absolute;
  top: 2px;
  left: 0;
  bottom: 2px;
  width: 0;
  border-radius: 26px;
  background: var(--anp-accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition:
    transform 0.28s ease,
    width 0.28s ease,
    opacity 0.2s ease;
  pointer-events: none;
}

.anp-primary-nav .current-menu-item > a,
.anp-primary-nav .current-menu-ancestor > a,
.anp-primary-nav .current_page_item > a,
.anp-primary-nav .is-active > a,
.anp-primary-nav .is-current > a {
  color: #ffffff;
}

.anp-header-search {
  width: min(276px, 100%);
}

.anp-search-form {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 16px;
  border: 1.5px solid var(--anp-accent-border);
  border-radius: 26px;
  background: #ffffff;
}

.anp-search-form label {
  flex: 1;
}

.anp-search-form input[type="search"] {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--anp-text);
  outline: none;
}

.anp-search-form input[type="search"]::placeholder {
  color: #b7b7b7;
}

.anp-search-form button {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--anp-soft);
  cursor: pointer;
}

.anp-seasonal-section {
  margin-bottom: 36px;
}

.anp-seasonal-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.anp-seasonal-heading__note {
  margin: 0;
  color: var(--anp-muted);
  font-size: 15px;
}

.anp-seasonal-heading__note::before {
  content: "";
  width: 2px;
  height: 21px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 3px;
  background: var(--anp-accent);
}

.anp-seasonal-rankings {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 18px;
}

.anp-rank-card,
.anp-library-card,
.anp-related-card,
.anp-card {
  display: block;
}

.anp-rank-card__thumb,
.anp-library-card__thumb,
.anp-card__thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--anp-radius-sm);
  background: linear-gradient(135deg, #fce4ea, #ececec);
}

.anp-rank-card__thumb {
  aspect-ratio: 141 / 200;
}

.anp-rank-card__thumb img,
.anp-library-card__thumb img,
.anp-card__thumb img,
.anp-related-card__thumb img,
.anp-list-item__thumb img,
.anp-article-cover img,
.anp-vod-side-poster img,
.anp-shot-grid__item img,
.anp-schedule-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anp-rank-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  border-radius: 0 8px 8px 0;
  background: #9d9d9d;
}

.anp-rank-card__badge--1 {
  background: #f6a11a;
}

.anp-rank-card__badge--2 {
  background: #a7a7a7;
}

.anp-rank-card__badge--3 {
  background: #e78348;
}

.anp-rank-card__title,
.anp-library-card__title,
.anp-card__title,
.anp-related-card__title,
.anp-schedule-card__title {
  margin: 10px 0 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
}

.anp-weekday-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 18px;
}

.anp-weekday-pill {
  min-width: 104px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 10px;
  border: 1.5px solid var(--weekday-color, var(--anp-accent-border));
  border-radius: 26px;
  background: #ffffff;
  color: var(--weekday-color, var(--anp-soft));
}

.anp-weekday-pill.is-active {
  background: var(--weekday-color, var(--anp-accent));
  color: #ffffff;
}

.anp-weekday-pill__icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  background-color: currentColor;
  -webkit-mask-image: var(--weekday-icon);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 30px 30px;
  mask-image: var(--weekday-icon);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 30px 30px;
}

.anp-weekday-pill__text {
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.anp-schedule-board {
  display: grid;
  gap: 30px;
}

.anp-schedule-day__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--weekday-color, var(--anp-accent));
}

.anp-schedule-day__header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.anp-schedule-day__bar {
  width: 5px;
  height: 19px;
  border-radius: 13px;
  background: var(--weekday-color, var(--anp-accent));
}

.anp-schedule-day__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px;
}

.anp-schedule-day,
.anp-schedule-card {
  min-width: 0;
}

.anp-schedule-day {
  scroll-margin-top: 88px;
}

.anp-schedule-card__thumb,
.anp-library-card__thumb {
  aspect-ratio: 195 / 276;
}

.anp-archive-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.anp-sidebar {
  position: sticky;
  top: 88px;
}

.anp-panel {
  padding: 18px;
  border: 1px solid rgba(222, 222, 222, 0.75);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--anp-shadow);
}

.anp-panel + .anp-panel {
  margin-top: 18px;
}

.anp-panel__title {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.3;
}

.anp-category-list,
.anp-inline-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.anp-category-list--stacked {
  flex-direction: column;
}

.anp-category-list a,
.anp-inline-tags a,
.anp-chip,
.anp-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--anp-panel-2);
  color: var(--anp-muted);
  font-size: 14px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.anp-category-list .current-cat > a,
.anp-inline-tags a.is-active,
.anp-chip.is-active {
  color: var(--anp-accent);
  border-color: var(--anp-accent-border);
  background: var(--anp-accent-soft);
}

.anp-scope-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.anp-filter-form {
  display: grid;
  gap: 18px;
}

.anp-filter-group {
  display: grid;
  gap: 10px;
}

.anp-filter-group__title {
  font-size: 15px;
  font-weight: 600;
}

.anp-filter-tag {
  cursor: pointer;
}

.anp-filter-tag input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.anp-filter-tag span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(222, 222, 222, 0.9);
  border-radius: 999px;
  background: #ffffff;
  color: var(--anp-muted);
  font-size: 14px;
  transition: all 0.2s ease;
}

.anp-filter-tag input:checked + span {
  color: var(--anp-accent);
  border-color: var(--anp-accent-border);
  background: var(--anp-accent-soft);
}

.anp-filter-input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(222, 222, 222, 0.9);
  border-radius: 12px;
  outline: none;
}

.anp-filter-input:focus {
  border-color: var(--anp-accent-border);
  box-shadow: 0 0 0 4px rgba(249, 87, 124, 0.08);
}

.anp-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anp-button {
  border-color: transparent;
  cursor: pointer;
}

.anp-button:hover {
  box-shadow: 0 10px 24px rgba(249, 87, 124, 0.14);
}

.anp-button--ghost,
.anp-button--outline {
  background: #ffffff;
  border-color: var(--anp-accent-border);
  color: var(--anp-accent);
}

.anp-post-list {
  display: grid;
  gap: 18px;
}

.anp-list-item {
  border: 1px solid rgba(222, 222, 222, 0.75);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.anp-list-item:hover,
.anp-related-card:hover,
.anp-library-card:hover,
.anp-rank-card:hover {
  transform: translateY(-2px);
}

.anp-list-item__link {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.anp-list-item__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #fce4ea, #ececec);
}

.anp-post-meta,
.anp-related-card__meta,
.anp-library-card__meta,
.anp-vod-banner__eyebrow,
.anp-vod-banner__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--anp-soft);
  font-size: 14px;
}

.anp-post-meta__category {
  color: var(--anp-accent);
}

.anp-list-item__title {
  margin: 12px 0 10px;
  font-size: 22px;
  line-height: 1.45;
}

.anp-archive-header {
  margin-bottom: 28px;
}

.anp-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 20px;
}

.anp-library-card__meta {
  justify-content: center;
  margin-top: 8px;
  font-size: 13px;
}

.anp-search-block + .anp-search-block {
  margin-top: 42px;
}

.anp-pagination {
  margin-top: 34px;
}

.anp-pagination ul,
.anp-pagination .page-numbers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.anp-pagination a,
.anp-pagination span {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--anp-accent-border);
  border-radius: 10px;
}

.anp-pagination .current {
  color: #ffffff;
  border-color: var(--anp-accent);
  background: var(--anp-accent);
}

.anp-recommend-hero {
  margin-bottom: 38px;
}

.anp-recommend-panel {
  width: min(100%, 930px);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 345px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
}

.anp-recommend-hero__lead {
  display: block;
  min-height: 194px;
}

.anp-recommend-hero__lead-media {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.anp-recommend-hero__lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anp-recommend-hero__lead-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 60%,
    rgba(0, 0, 0, 0.55)
  );
}

.anp-recommend-hero__caption {
  position: absolute;
  left: 48px;
  right: 24px;
  bottom: 14px;
  z-index: 1;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
}

.anp-recommend-hero__rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 10px 68px 10px 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72),
    rgba(255, 255, 255, 0.92)
  );
}

.anp-recommend-hero__rail .anp-card__thumb {
  aspect-ratio: 121 / 172;
}

.anp-recommend-hero__count {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--anp-soft);
  font-size: 15px;
}

.anp-recommend-grid-section {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.anp-load-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.anp-load-more .anp-button {
  min-width: 292px;
  border-radius: 5px;
}

.anp-single {
  max-width: var(--anp-article-width);
  margin: 0 auto;
}

.anp-single__title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.45;
  font-weight: 600;
}

.anp-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-bottom: 26px;
  color: var(--anp-muted);
  font-size: 15px;
}

.anp-single__meta-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.anp-single__meta-line::before {
  content: "";
  width: 2px;
  height: 14px;
  border-radius: 3px;
  background: var(--anp-accent-border);
}

.anp-article {
  padding-top: 10px;
}

.anp-article-cover {
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #fce4ea, #ececec);
}

.anp-article-cover--article {
  max-width: 100%;
}

.anp-article-body {
  font-size: 17px;
  line-height: 1.95;
}

.anp-article-body > * {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.anp-article-body img,
.anp-article-body iframe,
.anp-article-body video {
  display: block;
  max-width: 100%;
  margin: 1.4em auto;
  border-radius: 0;
}

.anp-article-body ul,
.anp-article-body ol {
  padding-left: 1.4em;
}

.anp-article-body blockquote {
  margin: 1.8em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--anp-accent);
  background: var(--anp-accent-soft);
}

.anp-related {
  margin-top: 46px;
}

.anp-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.anp-related-card {
  padding: 14px;
  border: 1px solid rgba(222, 222, 222, 0.75);
  border-radius: 18px;
  background: #ffffff;
}

.anp-related-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #fce4ea, #ececec);
}

.anp-vod-banner {
  position: relative;
  min-height: 107px;
  margin: 16px auto 20px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #d4d4d4;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.anp-vod-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.anp-vod-banner__overlay {
  position: relative;
  z-index: 1;
  min-height: 107px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 18px 24px;
  text-align: center;
}

.anp-vod-banner__eyebrow {
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
}

.anp-vod-banner__title {
  margin: 0;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 600;
}

.anp-vod-banner__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.anp-vod-focus {
  width: min(100%, 1041px);
  margin: 18px auto 0;
}

.anp-vod-focus__banner {
  position: relative;
  min-height: 107px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #d5d5d5;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.anp-vod-focus__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.anp-vod-focus__title {
  position: relative;
  z-index: 1;
  min-height: 107px;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 0 24px;
  color: #ffffff;
  text-align: center;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 600;
}

.anp-vod-focus__grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(6, 141px);
  justify-content: center;
  column-gap: 25px;
  row-gap: 20px;
}

.anp-vod-focus-card {
  width: 141px;
}

.anp-vod-focus-card__thumb {
  aspect-ratio: 141 / 200;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #fce4ea, #ececec);
}

.anp-vod-focus-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anp-vod-focus-card__title {
  margin: 10px 0 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}

.anp-anime-detail {
  display: grid;
  gap: 32px;
}

.anp-anime-detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.86), rgba(17, 17, 17, 0.54)),
    var(--anp-detail-hero-image) center / cover no-repeat;
  box-shadow: 0 28px 60px rgba(30, 30, 30, 0.16);
}

.anp-anime-detail-hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -30% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 87, 124, 0.36), rgba(249, 87, 124, 0));
  pointer-events: none;
}

.anp-anime-detail-hero__shell {
  position: relative;
  z-index: 1;
  min-height: 400px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 26px;
  align-items: end;
  padding: 26px;
}

.anp-anime-detail-hero__poster {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.anp-anime-detail-hero__poster img {
  width: 100%;
  aspect-ratio: 250 / 350;
  object-fit: cover;
}

.anp-anime-detail-hero__content {
  display: grid;
  gap: 12px;
  color: #ffffff;
}

.anp-anime-detail-hero__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.anp-anime-detail-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anp-anime-detail-hero__chips span,
.anp-episode-card__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.anp-anime-detail-hero__provider {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  text-align: right;
}

.anp-anime-detail-hero__title {
  margin: 0;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
}

.anp-anime-detail-hero__subtitle {
  margin: -6px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.anp-anime-detail-hero__scores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anp-anime-detail-score {
  min-width: 136px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.anp-anime-detail-score__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.anp-anime-detail-score__head img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
}

.anp-anime-detail-score__label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1;
}

.anp-anime-detail-score strong {
  font-size: 24px;
  line-height: 1;
}

.anp-anime-detail-hero__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: 8px;
  align-items: start;
  justify-content: start;
}

.anp-anime-detail-hero__meta li {
  min-width: 0;
  padding: 8px 12px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.anp-anime-detail-hero__meta span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1;
}

.anp-anime-detail-hero__meta strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.anp-anime-detail-hero__summary {
  max-width: 920px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.85;
}

.anp-anime-detail-section {
  display: grid;
  gap: 18px;
}

.anp-anime-detail-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.anp-anime-detail-section__hint {
  margin: 6px 0 0;
  color: var(--anp-muted);
  font-size: 14px;
}

.anp-character-controls {
  display: flex;
  gap: 10px;
}

.anp-character-controls__button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(222, 222, 222, 0.9);
  border-radius: 999px;
  background: #ffffff;
  color: var(--anp-text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.anp-character-controls__button:hover {
  color: var(--anp-accent);
  border-color: var(--anp-accent-border);
  transform: translateY(-1px);
}

.anp-character-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 210px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.anp-character-card {
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(222, 222, 222, 0.82);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(30, 30, 30, 0.06);
}

.anp-character-card__visual {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(249, 87, 124, 0.18), rgba(249, 87, 124, 0)),
    linear-gradient(180deg, #fff4f7, #f4f4f4);
}

.anp-character-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anp-character-card__visual span {
  color: var(--anp-accent);
  font-size: 40px;
  font-weight: 700;
}

.anp-character-card__body {
  padding: 16px;
}

.anp-character-card__body h3,
.anp-episode-card__body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
}

.anp-character-card__actor,
.anp-character-card__remark {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.65;
}

.anp-character-card__actor {
  color: var(--anp-text);
}

.anp-character-card__remark {
  color: var(--anp-muted);
}

.anp-episode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.anp-episode-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(222, 222, 222, 0.85);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(30, 30, 30, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.anp-episode-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 87, 124, 0.22);
  box-shadow: 0 20px 40px rgba(30, 30, 30, 0.12);
}

.anp-episode-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(249, 87, 124, 0.18), rgba(249, 87, 124, 0)),
    linear-gradient(135deg, #fff0f4, #ececec);
}

.anp-episode-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.anp-episode-card:hover .anp-episode-card__media img {
  transform: scale(1.04);
}

.anp-episode-card__body {
  display: grid;
  gap: 6px;
  padding: 12px 14px 16px;
}

.anp-episode-card__body p {
  margin: 0;
  color: var(--anp-muted);
  font-size: 13px;
  line-height: 1.72;
  max-height: 5.16em;
  overflow: hidden;
  transition: max-height 0.28s ease, color 0.28s ease;
}

.anp-episode-card__body h3 {
  margin: 0;
  font-size: 15px;
}

.anp-episode-card__label {
  min-height: 22px;
  padding: 0;
  border-radius: 0;
  justify-content: flex-start;
  background: transparent;
  color: var(--anp-accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.anp-episode-card:hover .anp-episode-card__body p {
  max-height: 16em;
  color: #505050;
}

.anp-vod-strip {
  margin-bottom: 30px;
}

.anp-vod-strip__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.anp-rank-card--plain .anp-rank-card__title {
  margin-top: 12px;
}

.anp-vod-section {
  margin-top: 14px;
}

.anp-vod-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 320px;
  gap: 28px;
  align-items: start;
}

.anp-vod-grid__main,
.anp-vod-grid__side {
  display: grid;
  gap: 18px;
}

.anp-vod-side-poster {
  aspect-ratio: 195 / 276;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #fce4ea, #ececec);
  margin-bottom: 14px;
}

.anp-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.anp-info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(222, 222, 222, 0.75);
}

.anp-info-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.anp-info-list span {
  color: var(--anp-muted);
}

.anp-info-list strong {
  text-align: right;
  font-weight: 600;
}

.anp-cast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.anp-cast-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--anp-panel-2);
}

.anp-cast-card__avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--anp-accent);
  background: var(--anp-accent-soft);
  font-weight: 600;
}

.anp-cast-card__name {
  font-size: 14px;
}

.anp-playlist-group + .anp-playlist-group {
  margin-top: 18px;
}

.anp-playlist-group__title {
  margin: 0 0 12px;
  font-size: 16px;
}

.anp-playlist-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anp-playlist-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(222, 222, 222, 0.9);
  border-radius: 999px;
  background: #ffffff;
  color: var(--anp-muted);
}

.anp-playlist-pill:hover {
  color: var(--anp-accent);
  border-color: var(--anp-accent-border);
  background: var(--anp-accent-soft);
}

.anp-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.anp-shot-grid__item {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #fce4ea, #ececec);
}

.anp-empty {
  padding: 36px 24px;
  border: 1px dashed var(--anp-line);
  border-radius: 18px;
  text-align: center;
  color: var(--anp-muted);
}

.anp-empty--compact {
  padding: 20px 16px;
}

.anp-site-footer {
  margin-top: auto;
  border-top: 1px solid var(--anp-line);
  background: var(--anp-panel);
}

.anp-site-footer__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--anp-muted);
  font-size: 12px;
  text-align: center;
}

.anp-dot {
  width: 13px;
  height: 13px;
  display: inline-block;
  border-radius: 50%;
  background: linear-gradient(135deg, #d5d5d5, #9f9f9f);
}

.wp-block-image,
.wp-block-embed,
.alignwide,
.alignfull {
  clear: both;
}

@media (max-width: 1280px) {
  .anp-seasonal-rankings,
  .anp-vod-strip__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .anp-vod-focus__grid {
    grid-template-columns: repeat(3, 141px);
  }

  .anp-schedule-day__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .anp-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .anp-vod-grid {
    grid-template-columns: 1fr 300px;
  }

  .anp-episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .anp-site-header__inner {
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 8px 0 12px;
  }

  .anp-primary-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-self: start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .anp-archive-layout,
  .anp-vod-grid,
  .anp-recommend-panel {
    grid-template-columns: 1fr;
  }

  .anp-sidebar {
    position: static;
  }

  .anp-recommend-panel {
    padding: 14px;
  }

  .anp-recommend-hero__rail {
    padding-right: 14px;
  }

  .anp-recommend-hero__count {
    position: static;
    transform: none;
    grid-column: 1 / -1;
    justify-self: end;
  }

  .anp-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anp-anime-detail-hero__shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 24px;
  }

  .anp-anime-detail-hero__title {
    font-size: 34px;
  }

  .anp-anime-detail-hero__meta {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }
}

@media (max-width: 780px) {
  .anp-container {
    width: min(calc(100% - 24px), var(--anp-content-width));
  }

  .anp-main {
    padding-top: 14px;
    padding-bottom: 54px;
  }

  .anp-header-search {
    width: 100%;
    grid-column: 1 / -1;
  }

  .anp-primary-nav a {
    min-width: auto;
    padding: 0 14px;
    white-space: nowrap;
  }

  .anp-seasonal-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .anp-seasonal-rankings,
  .anp-library-grid,
  .anp-vod-strip__grid,
  .anp-vod-focus__grid,
  .anp-schedule-day__grid,
  .anp-related__grid,
  .anp-recommend-hero__rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anp-vod-focus__grid {
    justify-content: stretch;
  }

  .anp-vod-focus-card {
    width: 100%;
  }

  .anp-vod-focus__title {
    font-size: 24px;
  }

  .anp-list-item__link {
    grid-template-columns: 1fr;
  }

  .anp-list-item__title {
    font-size: 20px;
  }

  .anp-single__title,
  .anp-vod-banner__title {
    font-size: 24px;
  }

  .anp-article-body {
    font-size: 16px;
    line-height: 1.85;
  }

  .anp-shot-grid,
  .anp-cast-grid {
    grid-template-columns: 1fr;
  }

  .anp-anime-detail {
    gap: 24px;
  }

  .anp-anime-detail-hero {
    border-radius: 20px;
  }

  .anp-anime-detail-hero__shell {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .anp-anime-detail-hero__poster {
    width: min(100%, 260px);
  }

  .anp-anime-detail-hero__topline,
  .anp-anime-detail-section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .anp-anime-detail-hero__provider {
    text-align: left;
  }

  .anp-anime-detail-hero__title {
    font-size: 28px;
  }

  .anp-episode-grid {
    grid-template-columns: 1fr;
  }

  .anp-anime-detail-hero__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anp-character-rail {
    grid-auto-columns: minmax(152px, 180px);
  }
}

@media (max-width: 520px) {
  .anp-seasonal-rankings,
  .anp-library-grid,
  .anp-vod-strip__grid,
  .anp-vod-focus__grid,
  .anp-schedule-day__grid,
  .anp-related__grid,
  .anp-recommend-hero__rail {
    grid-template-columns: 1fr;
  }

  .anp-weekday-pills,
  .anp-filter-actions {
    gap: 10px;
  }

  .anp-vod-banner__overlay {
    min-height: 140px;
  }

  .anp-recommend-hero__caption {
    left: 18px;
    right: 18px;
    font-size: 18px;
  }

  .anp-character-controls {
    width: 100%;
  }

  .anp-character-controls__button {
    flex: 1 1 0;
    padding: 0 12px;
  }
}
