/* anime_v1 — Sakura & Lavender. Visual layer; keep DLE and player CSS intact. */
body {
  --bg: #211d2d; --bg-brighter: #3a304b;
  --tt: #eee5f3; --tt-brighter: #fff4fc; --tt-fader: #cbbbd6; --tt-fader-gray: #bdabc9;
  --bdc: #4b3a5c; --bdc-lighter: #6a507b;
  --accent: #f2a6cd; --accent-text: #321f35;
  --btn-bg: #63446e; --btn-bg-hover: #795683; --btn-tt: #fff5fb;
  --ui-bg: #2c2439; --ui-bg-darker: #352a43; --ui-bg-darkest: #483552;
  --ui-bg-accent: #765384; --ui-text-color-on-accent: #fff; --ui-bdc: #554063;
  --bg-3: #2c2439; --tt-2: #cbbbd6; --text-color-on-accent: #fff;
  --gradient-top: linear-gradient(to top, #211d2d, transparent);
  --anime-surface: #2c2439; --anime-soft: #352a43; --anime-muted: #bdabc9;
  --anime-pink: #493044; --anime-lilac: #372d50; --anime-line: #554063;
  --anime-shadow: 0 6px 20px rgba(12, 5, 24, .12);
  --anime-button: linear-gradient(110deg, #94557f, #70528f);
  color-scheme: dark;
  font-weight: 400;
  background: var(--bg);
}

body.lt-is-active {
  --bg: #fff7fb; --bg-brighter: #f0e7f7;
  --tt: #44344f; --tt-brighter: #3e2d4d; --tt-fader: #6e5b79; --tt-fader-gray: #75627e;
  --bdc: #eddfec; --bdc-lighter: #d8c4df;
  --accent: #ad396e; --accent-text: #fff;
  --btn-bg: #ad396e; --btn-bg-hover: #92305d; --btn-tt: #fff;
  --ui-bg: #fff; --ui-bg-darker: #fbf5fc; --ui-bg-darkest: #eddfef;
  --ui-bg-accent: #805496; --ui-text-color-on-accent: #fff; --ui-bdc: #e5d6e9;
  --bg-3: #fff; --tt-2: #6e5b79;
  --gradient-top: linear-gradient(to top, #fff7fb, transparent);
  --anime-surface: #fff; --anime-soft: #faf4fc; --anime-muted: #75627e;
  --anime-pink: #fce7f1; --anime-lilac: #efe7fa; --anime-line: #eddfec;
  --anime-shadow: 0 6px 20px rgba(104, 59, 115, .055);
  --anime-button: linear-gradient(110deg, #ad396e, #7952a0);
  color-scheme: light;
}

::selection { background: #edd3ef; color: #4a2b5a; }
body :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
body a, body button, body input, body textarea, body select { -webkit-tap-highlight-color: rgba(194, 107, 155, .14); }
.wrapper { background: radial-gradient(ellipse at 5% 0, var(--anime-pink), transparent 38%), radial-gradient(ellipse at 96% 12%, var(--anime-lilac), transparent 32%); }
body .wrapper::before, body.lt-is-active .wrapper.add-bg::after { display: none !important; }
body .blurred-bg, body.lt-is-active .infull .blurred-bg { display: none !important; }
.content { padding-top: 42px; padding-bottom: 56px; }
.sect:not(:last-child) { margin-bottom: 48px; }

/* A quiet, opaque header: no backdrop filters or animation loops. */
body .header, body.lt-is-active .header,
body .header__menu, body.lt-is-active .header__menu,
body .footer, body.lt-is-active .footer {
  background-color: var(--anime-surface) !important;
  color: var(--tt); --tt-fader: var(--anime-muted);
}
.header { border-bottom: 1px solid var(--anime-line); }
.header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #edb2cf, #c7b3e7, #b7dace); pointer-events: none; }
.header__inner { padding-top: 22px; padding-bottom: 22px; border-bottom: 0; gap: 24px; }
body .header.is-active { box-shadow: var(--anime-shadow); }
body .logo, body.lt-is-active .logo { display: inline-flex; align-items: center; gap: 0; font-size: 24px; letter-spacing: -.8px; text-transform: none; color: var(--tt-brighter); }
.logo::before { content: ''; flex: 0 0 34px; width: 34px; height: 34px; margin-right: 10px; background: url('../images/anime-sakura.svg') center / contain no-repeat; }
.logo span { color: var(--accent); }
.header__search-box { max-width: 520px; }
body .header .header__search-box input, body .header .header__search-box input:focus {
  height: 42px; line-height: 42px; border-radius: 24px;
  background: var(--anime-soft); color: var(--tt); box-shadow: inset 0 0 0 1px var(--anime-line);
  padding-left: 20px;
}
body .header__search-box input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.header__search-box button { height: 42px; color: var(--accent); }
.header__search-box input:not(:focus)::placeholder { color: var(--anime-muted); }
.header__btn-menu { width: 30px; min-height: 42px; color: var(--accent); }
.header__login-btn--not-logged { height: 42px; border-radius: 24px; padding: 0 22px; }
.theme-toggle { border: 1px solid var(--anime-line); background: var(--anime-soft); border-radius: 24px; height: 38px; }
.theme-toggle li { border-radius: 50%; color: var(--anime-muted); }
.theme-toggle:hover li { color: var(--accent); }
.header__menu { border-bottom: 1px solid var(--anime-line); box-shadow: var(--anime-shadow); }
.nav-title { color: var(--accent); font-weight: 900; }
body.lt-is-active .nav-menu a, body.lt-is-active .footer__menu a { --tt: inherit; color: var(--tt); }
body.lt-is-active .nav-menu li span { color: var(--anime-muted); }
.nav-menu a:hover, body.lt-is-active .nav-menu a:hover { color: var(--accent); }
.nav-menu li { line-height: 1.55; }

/* Hero and headings: sakura stationery, not an extra content block. */
.sect--slider { border: 1px solid var(--anime-line); border-radius: 26px; background: linear-gradient(120deg, var(--anime-pink), var(--anime-lilac)); }
.item-slide { padding: 26px; gap: 26px; min-height: 260px; }
.item-slide__img { border-radius: 18px; width: 360px; height: 230px; }
body .item-slide__title { font-size: 28px; letter-spacing: -.6px; line-height: 1.22; white-space: normal; overflow-wrap: anywhere; }
body.lt-is-active .item-slide { --tt: #44344f; --tt-fader: #6e5b79; color: var(--tt); }
body.lt-is-active .item-slide__text { color: var(--anime-muted); }
.item-slide__desc { position: relative; padding-top: 20px; }
.item-slide__desc::before { content: ''; position: absolute; top: -14px; left: 0; width: 23px; height: 23px; background: url('../images/anime-sakura.svg') center / contain no-repeat; }
.item-slide__meta { font-size: 14px; margin-top: 12px; }
.item-slide__text { line-height: 1.6; margin-top: 12px; text-align: left; }
.sect__title { font-weight: 900; font-size: 23px; letter-spacing: -.35px; }
.sect__header { margin-bottom: 24px; }
.sect__title::before { content: ''; display: inline-block; width: 7px; height: 22px; margin-right: 11px; vertical-align: -3px; border-radius: 6px; background: linear-gradient(#e19bbc, #bba5de); }
.sect__header--bordered { border-bottom: 1px solid var(--anime-line); }
.sect__menu { font-size: 17px; gap: 12px; margin-bottom: 12px; }
.sect__menu a, .sect__menu span { padding: 9px 18px; border-radius: 22px; }
.sect__menu span { box-shadow: none; background: var(--anime-button); color: #fff; }
.sect__menu a:hover { background: var(--anime-lilac); }

/* Cards retain their original image aspect ratios and DOM. */
.item-poster { min-width: 0; background: var(--anime-surface); border: 1px solid var(--anime-line); border-radius: 18px; box-shadow: var(--anime-shadow); padding-bottom: 16px; text-align: left; }
body .item-poster__img, body.lt-is-active .item-poster__img { margin-bottom: 13px; border-radius: 17px 17px 8px 8px; box-shadow: none; }
.item-poster__title { margin: 0 13px; font-size: 16px; line-height: 1.4; font-weight: 900; }
.item-poster__meta { margin: 6px 13px 0; color: var(--anime-muted); font-size: 13px; }
.item__rating { left: 10px; top: 10px; width: auto; min-width: 36px; padding: 4px 9px; border-radius: 10px; background: var(--anime-surface); color: var(--accent); font-weight: 900; box-shadow: 0 2px 8px rgba(31, 18, 40, .08); }
.item__play-btn { background-color: rgba(73, 36, 79, .3); }
.item__play-btn span { color: #fff; border-color: #fff; background: rgba(125, 64, 113, .45); }
body .item-poster__desc-btn, body.lt-is-active .item-poster__desc-btn { color: #fff; border-color: #fff; background: rgba(73, 36, 79, .45); }
body .owl-nav button, body.lt-is-active .owl-nav button { border: 1px solid var(--anime-line); background: var(--anime-surface); color: var(--accent); box-shadow: var(--anime-shadow); width: 44px; height: 44px; font-size: 20px; }
body .owl-nav button:hover { background: var(--anime-pink); border-color: var(--accent); }
.sect--carousel .owl-item:not(.active) { filter: none; opacity: .4; }
.sect--carousel { overflow: clip; padding-bottom: 8px; }

/* Forms, login and DLE service screens. Never style inside the video player. */
.form__btn, .header__login-btn--not-logged, .pmovie__fav,
.login__row button, .page__comments-header > button { background: var(--anime-button); color: #fff; border-radius: 22px; }
body .pmovie__fav a, body.lt-is-active .pmovie__fav a { color: #fff; }
body input[type='text'], body input[type='password'], body textarea, body select {
  border-radius: 12px; box-shadow: inset 0 0 0 1px var(--ui-bdc); color: var(--tt);
}
body input[type='text']:focus, body input[type='password']:focus, body textarea:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.login, .ui-dialog, #searchsuggestions { border: 1px solid var(--anime-line); border-radius: 20px; box-shadow: 0 18px 50px rgba(53, 25, 68, .18); }
.login__header, .login__social { background: var(--anime-soft); }
.login__title { font-weight: 900; }
.login__menu a { border-radius: 12px; box-shadow: none; }
.overlay, .ui-widget-overlay { background: #352440; opacity: .45; }
.mobile-menu { background: var(--anime-surface); color: var(--tt); }
.mobile-menu-close { background: var(--accent); color: var(--accent-text); }
.message-info { filter: none; opacity: 1; background: var(--anime-soft); color: var(--tt); border-color: var(--ui-bdc); border-radius: 14px; box-shadow: none; }
.message-info a { color: var(--accent); }
.message-info::before { color: var(--accent); }
.form__caption--above { background: var(--anime-lilac); color: var(--tt); border-radius: 12px; }
.usp { border-radius: 20px; overflow: hidden; }
.usp__columns { background: var(--anime-button); }
.usp__columns::before { background: transparent; }
.usp__columns .usp__group > b { color: var(--tt); }
.quote, .title_quote, .title_spoiler, .text_spoiler, .scriptcode { border-color: var(--anime-line); background: var(--anime-soft); color: var(--tt-fader); border-radius: 12px; }
.full-text a { color: var(--accent); }
.full-text table tr:nth-child(odd) { background: var(--anime-soft); }
.full-text table tr:first-child { background: var(--anime-lilac); }
.full-text table tr td { border-color: var(--anime-line); }
.cloud-tags span a { border-radius: 20px; }

/* Full story: content stays in its original order. */
.pmovie__img { border-radius: 20px; box-shadow: var(--anime-shadow); }
body.lt-is-active .pmovie .pmovie__header,
body.lt-is-active .pmovie .pmovie__list { --tt: #44344f; --tt-fader: #6e5b79; color: var(--tt); }
.pmovie__header-main h1 { font-size: 30px; letter-spacing: -.7px; line-height: 1.25; overflow-wrap: anywhere; }
body.lt-is-active .pmovie .pmovie__header-main h1 { white-space: normal; }
body.lt-is-active .pmovie .pmovie__header, body.lt-is-active .pmovie .pmovie__list { min-height: 0; }
.pmovie__main { border: 1px solid var(--anime-line); background: var(--anime-surface); border-radius: 20px; padding: 24px; }
body.lt-is-active .pmovie .pmovie__text, .pmovie__text { margin-top: 22px; }
.pmovie__list li { line-height: 1.6; }
.pmovie__list li > span:first-child { color: var(--anime-muted); }
.pmovie__devices { color: var(--anime-muted); }
body.lt-is-active .pmovie__rating-likes { color: #fff; }
.pmovie__player-controls { padding-bottom: 12px; }
.tabs-block__select { gap: 8px; }
.tabs-block__select span { border-radius: 22px; margin-right: 0; background: var(--anime-soft); color: var(--tt-fader); border: 1px solid var(--anime-line); }
body .tabs-block__select span.is-active, body.lt-is-active .tabs-block__select span.is-active { background: var(--anime-button); color: #fff; border-color: transparent; }
body .tabs-block__select span:hover, body.lt-is-active .tabs-block__select span:hover { background: var(--anime-lilac); color: var(--tt); }
.tabs-block__content.video-responsive { border-radius: 16px; overflow: hidden; }
.pmovie__complaint a { color: var(--accent); border-color: var(--accent); font-size: 13px; }
.accordion-menu { max-width: 320px; border: 1px solid var(--anime-line); border-radius: 16px; background: var(--anime-surface); overflow: hidden; }
.dropdownlink { color: var(--accent); padding: 14px 22px; text-align: center; border-color: var(--anime-line); font-weight: 900; }
.accordion-menu li.open .dropdownlink { color: var(--accent); background: var(--anime-pink); }
.submenuItems { background: var(--anime-soft); }
.submenuItems li { border-color: var(--anime-line); }
.submenuItems a { color: var(--tt); }
.submenuItems a:hover { background: var(--anime-lilac); color: var(--accent); }
.comment-item { border: 1px solid var(--anime-line); border-radius: 16px; background: var(--anime-surface); padding: 20px; }
@media (min-width: 1220px) { .comment-item { padding-left: 76px; } .comment-item__img { left: 20px; top: 20px; } }
.comment-item__date { color: var(--anime-muted); }
.add-comments-form .form__input, .add-comments-form__input, .add-comments-form .form__textarea-inside textarea { border-radius: 12px; }
.site-desc { padding: 26px; border: 1px solid var(--anime-line); border-radius: 22px; background: var(--anime-surface); font-size: 15px; }
.site-desc h1, .site-desc h2 { font-weight: 900; }
body .footer, body.lt-is-active .footer { border-top: 1px solid var(--anime-line); padding-top: 25px; padding-bottom: 25px; }
.footer__logo { font-size: 21px; }
body #scrolltop { background: var(--anime-surface); color: var(--accent); border: 1px solid var(--anime-line); box-shadow: var(--anime-shadow); }
.pagination__pages a, .pagination__pages-btn a, .pagination__pages-btn > span { border: 1px solid var(--anime-line); background: var(--anime-surface); }
.pagination__pages a:hover { background: var(--anime-pink); }
.pagination__pages span:not(.nav_ext) { background: var(--anime-button); color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .item-poster:hover { transform: translateY(-4px); border-color: var(--bdc-lighter); }
}
@media (max-width: 1220px) {
  .item-slide__img { width: 255px; }
  .header__inner { gap: 18px; }
}
@media (max-width: 760px) {
  .header__inner { padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .logo { font-size: 23px; }
  .header__login-btn--not-logged { padding: 0 16px; }
  .header__search { min-width: calc(100% - 100px); max-width: calc(100% - 100px); }
  .theme-toggle { margin-left: 0; }
  .content { padding-top: 26px; }
  .sect:not(:last-child) { margin-bottom: 36px; }
  .sect--slider, .sect--carousel .sect__content { margin-left: 52px; margin-right: 52px; }
  .owl-prev { left: -52px; }
  .owl-next { right: -52px; }
  .item-slide { padding: 22px; min-height: 190px; }
  body .item-slide__title { font-size: 23px; }
  .item-slide__text { -webkit-line-clamp: 3; }
  .sect__title { font-size: 21px; }
  .sect__menu { gap: 5px; font-size: 15px; }
  .sect__menu a, .sect__menu span { padding: 9px 12px; }
  .item-poster__title { font-size: 15px; margin-left: 10px; margin-right: 10px; }
  .item-poster__meta { margin-left: 10px; margin-right: 10px; font-size: 12px; }
  .pmovie__header-main h1 { font-size: 25px; }
  .pmovie__main { padding: 20px; }
  .pmovie__player { margin-left: 0; margin-right: 0; }
  .tabs-block__select span { padding-left: 12px; padding-right: 12px; }
  .site-desc { padding: 20px; }
  .header__menu { height: calc(100dvh - 125px); }
}
@media (max-width: 470px) {
  .sect--slider { margin-left: 0; border-radius: 20px; }
  .sect__header { margin-bottom: 20px; }
  .grid-items, #dle-content { gap: 22px 12px; }
  .item-poster { border-radius: 15px; padding-bottom: 13px; }
  body .item-poster__img, body.lt-is-active .item-poster__img { border-radius: 14px 14px 6px 6px; }
  .pmovie__grid { gap: 24px; }
  .page__comments-header > button { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .anim, .item-poster, .owl-carousel .animated, .owl-stage, .mobile-menu { transition: none !important; animation: none !important; }
}
