/* ============================================================
   AniJar — Bleach: Товариство Душ
   Dark Bleach layout: full-bleed Bleach artwork, black glass panels,
   red brush accents and sharp, angular corners.
   ============================================================ */

html[data-theme="bleach"] {
  --bl-ink: #f2eee7;
  --bl-ink-soft: #c9c4bb;
  --bl-muted: #a8a29a;
  --bl-gold: #c8102e;
  --bl-gold-bright: #ff334b;
  --bl-gold-deep: #7f0a1c;
  --bl-red: #7f0a1c;
  --bl-panel: rgba(6, 6, 8, 0.9);
  --bl-panel-strong: rgba(4, 4, 5, 0.97);
  --bl-panel-soft: rgba(12, 12, 15, 0.82);
  --bl-border: rgba(200, 16, 46, 0.36);
  --bl-border-strong: rgba(255, 51, 75, 0.8);
  --bl-teal: #d7d2c8;
  --bl-shadow: 0 18px 48px rgba(0, 0, 0, 0.65);
  --bl-torn: polygon(
    0% 5px, 2% 1px, 4% 6px, 7% 0px, 9% 4px, 12% 1px, 15% 6px, 18% 0px,
    21% 4px, 24% 7px, 27% 1px, 30% 5px, 33% 0px, 36% 6px, 39% 2px, 42% 7px,
    45% 0px, 48% 4px, 51% 6px, 54% 1px, 57% 5px, 60% 0px, 63% 6px, 66% 2px,
    69% 7px, 72% 0px, 75% 4px, 78% 6px, 81% 1px, 84% 5px, 87% 0px, 90% 6px,
    93% 2px, 96% 5px, 98% 1px, 100% 5px,
    100% calc(100% - 5px), 98% calc(100% - 1px), 96% calc(100% - 6px),
    93% calc(100% - 2px), 90% calc(100% - 7px), 87% calc(100% - 1px),
    84% calc(100% - 5px), 81% calc(100% - 0px), 78% calc(100% - 6px),
    75% calc(100% - 2px), 72% calc(100% - 7px), 69% calc(100% - 1px),
    66% calc(100% - 5px), 63% calc(100% - 0px), 60% calc(100% - 6px),
    57% calc(100% - 2px), 54% calc(100% - 7px), 51% calc(100% - 1px),
    48% calc(100% - 5px), 45% calc(100% - 0px), 42% calc(100% - 6px),
    39% calc(100% - 2px), 36% calc(100% - 7px), 33% calc(100% - 1px),
    30% calc(100% - 5px), 27% calc(100% - 0px), 24% calc(100% - 6px),
    21% calc(100% - 2px), 18% calc(100% - 7px), 15% calc(100% - 1px),
    12% calc(100% - 5px), 9% calc(100% - 0px), 7% calc(100% - 6px),
    4% calc(100% - 2px), 2% calc(100% - 7px), 0% calc(100% - 1px)
  );
}

/* ---------- Page canvas ---------- */
html[data-theme="bleach"] body {
  background-color: #050506;
  background-image:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.48) 10%,
      rgba(0, 0, 0, 0.20) 30%,
      rgba(0, 0, 0, 0.42) 58%,
      rgba(0, 0, 0, 0.82) 82%,
      #050506 100%),
    radial-gradient(ellipse 75% 55% at 50% -5%, rgba(255, 51, 75, 0.14), transparent 62%),
    url("bleach-bg-hd.jpg");
  background-position: center top, center top, center bottom;
  background-size: auto, auto, auto 125%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

html[data-theme="bleach"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.28) 12%,
      transparent 26%,
      transparent 74%,
      rgba(0, 0, 0, 0.28) 88%,
      rgba(0, 0, 0, 0.92) 100%),
    radial-gradient(ellipse at 50% 32%, transparent 36%, rgba(0, 0, 0, 0.62) 100%);
}

html[data-theme="bleach"] body::after {
  content: none;
  display: none;
}

html[data-theme="bleach"] ::selection {
  background: var(--bl-gold);
  color: #0a0a0b;
}

html[data-theme="bleach"] ::-webkit-scrollbar-track {
  background: #050506;
}

html[data-theme="bleach"] ::-webkit-scrollbar-thumb {
  background: #7f0a1c;
  border-radius: 3px;
}

html[data-theme="bleach"] ::-webkit-scrollbar-thumb:hover {
  background: var(--bl-gold-deep);
}

html[data-theme="bleach"] :focus-visible {
  outline: 2px solid var(--bl-gold);
  outline-offset: 2px;
}

/* Hero/side art is replaced by the full-page Bleach artwork */
html[data-theme="bleach"] .grandline-side,
html[data-theme="bleach"] .grandline-hero {
  display: none !important;
}

/* ---------- Floating navbar ---------- */
html[data-theme="bleach"] .navbar {
  position: sticky;
  top: 10px;
  z-index: 1000;
  width: min(1440px, calc(100% - 28px));
  height: 70px;
  margin: 10px auto 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 9, 0.95), rgba(8, 8, 10, 0.94));
  border: 1px solid var(--bl-border);
  border-radius: 4px;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px) saturate(1.15);
}

html[data-theme="bleach"] .nav-container {
  max-width: none;
  padding: 0 18px;
  gap: 16px;
}

html[data-theme="bleach"] .logo {
  gap: 9px;
}

html[data-theme="bleach"] .nav-logo-img {
  display: none;
}

html[data-theme="bleach"] .logo::before {
  content: "";
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: url("bleach-skull.svg") center / contain no-repeat;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.45));
  transform: rotate(-8deg);
  transition: transform 0.25s ease;
}

html[data-theme="bleach"] .logo:hover::before {
  transform: rotate(0deg) scale(1.06);
}

html[data-theme="bleach"] .logo-text {
  color: var(--bl-gold-bright);
  font-family: "Oswald", sans-serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(200, 16, 46, 0.4), 0 2px 0 rgba(0, 0, 0, 0.35);
}

html[data-theme="bleach"] .logo-text .accent {
  color: #ffd7dc;
}

html[data-theme="bleach"] .nav-links {
  gap: 4px;
}

html[data-theme="bleach"] .nav-btn {
  border: 1px solid transparent;
  border-radius: 3px;
  color: #c9c4bb;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 13px;
  gap: 7px;
}

html[data-theme="bleach"] .nav-btn:hover {
  background: rgba(200, 16, 46, 0.10);
  border-color: rgba(200, 16, 46, 0.25);
  color: var(--bl-gold-bright);
}

html[data-theme="bleach"] .nav-btn.active {
  background: linear-gradient(180deg, #f04a5c, #a90f21);
  border-color: #e33b4d;
  color: #0a0a0b;
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Thematic line icons */
html[data-theme="bleach"] .nav-btn .ui-icon {
  display: none;
}

html[data-theme="bleach"] .nav-btn::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

html[data-theme="bleach"] .nav-btn[data-page="catalog"]::before {
  -webkit-mask-image: url("bleach-skull.svg");
  mask-image: url("bleach-skull.svg");
}

html[data-theme="bleach"] .nav-btn[data-page="ongoings"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.8 2c.4 3.4-1.1 5.7-2.7 7.5-.9 1-1.9 2-2.4 3.3-.7 1.7-.5 3.5.5 5-2.6-1.2-4.4-3.8-4.4-6.9 0-2.8 1.5-5.3 3.6-7.1-.1 2 .5 3.4 1.4 4.3-.2-2.9 1.1-5.2 4-6.1z'/%3E%3Cpath fill='black' d='M15.5 8.4c2.5 2.1 4 5 4 8.1 0 3.6-2.6 6.5-6.1 6.5s-6.1-2.9-6.1-6.5c0-2.4 1.2-4.4 2.8-6.1-.1 2.4.7 4.2 2 4.2 1.1 0 1.7-1.1 1.7-2.8 0-1.2-.1-2.3.3-3.4.2-.8.7-1.4 1.4-1.9z' opacity='.9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.8 2c.4 3.4-1.1 5.7-2.7 7.5-.9 1-1.9 2-2.4 3.3-.7 1.7-.5 3.5.5 5-2.6-1.2-4.4-3.8-4.4-6.9 0-2.8 1.5-5.3 3.6-7.1-.1 2 .5 3.4 1.4 4.3-.2-2.9 1.1-5.2 4-6.1z'/%3E%3Cpath fill='black' d='M15.5 8.4c2.5 2.1 4 5 4 8.1 0 3.6-2.6 6.5-6.1 6.5s-6.1-2.9-6.1-6.5c0-2.4 1.2-4.4 2.8-6.1-.1 2.4.7 4.2 2 4.2 1.1 0 1.7-1.1 1.7-2.8 0-1.2-.1-2.3.3-3.4.2-.8.7-1.4 1.4-1.9z' opacity='.9'/%3E%3C/svg%3E");
}

html[data-theme="bleach"] .nav-btn[data-page="top"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 8l4.2 3.4L12 4l4.8 7.4L21 8l-1.7 10.2H4.7L3 8z'/%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round' d='M4.5 21h15'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 8l4.2 3.4L12 4l4.8 7.4L21 8l-1.7 10.2H4.7L3 8z'/%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round' d='M4.5 21h15'/%3E%3C/svg%3E");
}

html[data-theme="bleach"] .nav-btn[data-page="history"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.2'/%3E%3Cpath d='M15.5 8.5l-2.2 4-4 2.2 2.2-4z'/%3E%3Cpath d='M12 2v2M12 20v2M2 12h2M20 12h2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.2'/%3E%3Cpath d='M15.5 8.5l-2.2 4-4 2.2 2.2-4z'/%3E%3Cpath d='M12 2v2M12 20v2M2 12h2M20 12h2'/%3E%3C/svg%3E");
}

html[data-theme="bleach"] .nav-btn[data-page="bookmarks"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 20.6S3.6 15.4 3.6 9.6a4.4 4.4 0 0 1 7.6-3 4.4 4.4 0 0 1 7.6 3c0 5.8-8.4 11-8.4 11z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 20.6S3.6 15.4 3.6 9.6a4.4 4.4 0 0 1 7.6-3 4.4 4.4 0 0 1 7.6 3c0 5.8-8.4 11-8.4 11z'/%3E%3C/svg%3E");
}

html[data-theme="bleach"] .search-box input {
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid var(--bl-border);
  border-radius: 3px;
  color: var(--bl-ink);
  font-size: 13px;
  padding: 9px 38px 9px 16px;
}

html[data-theme="bleach"] .search-box input::placeholder {
  color: #a8a29a;
}

html[data-theme="bleach"] .search-box input:focus {
  border-color: var(--bl-gold);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.14);
}

html[data-theme="bleach"] .search-btn,
html[data-theme="bleach"] .search-clear-btn,
html[data-theme="bleach"] .icon-btn,
html[data-theme="bleach"] .user-menu-btn {
  color: var(--bl-gold);
}

html[data-theme="bleach"] .icon-btn,
html[data-theme="bleach"] .user-menu-btn {
  width: 38px;
  height: 38px;
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid var(--bl-border);
  border-radius: 50%;
}

html[data-theme="bleach"] .icon-btn:hover,
html[data-theme="bleach"] .user-menu-btn:hover {
  background: rgba(200, 16, 46, 0.14);
  border-color: var(--bl-gold);
  color: var(--bl-gold-bright);
}

html[data-theme="bleach"] .user-menu-avatar {
  background: rgba(8, 8, 10, 0.9);
  border-color: var(--bl-gold);
  color: var(--bl-gold);
}

html[data-theme="bleach"] .user-menu-dropdown {
  background: linear-gradient(180deg, rgba(9, 27, 45, 0.98), rgba(8, 8, 10, 0.98));
  border: 1px solid var(--bl-border);
  border-radius: 4px;
  box-shadow: var(--bl-shadow);
  backdrop-filter: blur(16px);
}

html[data-theme="bleach"] .user-menu-item {
  color: var(--bl-ink);
  border-radius: 3px;
}

html[data-theme="bleach"] .user-menu-item:hover {
  background: rgba(200, 16, 46, 0.12);
  color: var(--bl-gold-bright);
}

html[data-theme="bleach"] .user-menu-divider {
  background: rgba(200, 16, 46, 0.16);
}

/* ---------- Main canvas ---------- */
html[data-theme="bleach"] .main-content {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  padding: 150px 24px 70px;
}

html[data-theme="bleach"] .page-view {
  animation: glPageIn 0.35s ease both;
}

@keyframes glPageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Angular section rails ---------- */
html[data-theme="bleach"] .section-header,
html[data-theme="bleach"] .catalog-header,
html[data-theme="bleach"] .page-header-simple {
  position: relative;
  isolation: isolate;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html[data-theme="bleach"] .section-header::before,
html[data-theme="bleach"] .catalog-header::before,
html[data-theme="bleach"] .page-header-simple::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #ded8cd;
  background-image: none;
  background-size: 460px auto;
  background-position: center;
  clip-path: var(--bl-torn);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 0 54px rgba(0, 0, 0, 0.2);
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.34)) drop-shadow(0 0 1px rgba(47, 27, 8, 0.9));
}

html[data-theme="bleach"] .section-header {
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  margin: 0 4px 14px;
}

html[data-theme="bleach"] .section-header h2,
html[data-theme="bleach"] .page-header-simple h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f2eee7;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-theme="bleach"] .section-header h2 > .ui-icon,
html[data-theme="bleach"] .page-header-simple h1 > .ui-icon {
  display: none;
}

html[data-theme="bleach"] .section-header h2::before,
html[data-theme="bleach"] .page-header-simple h1::before {
  content: "";
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  background: url("bleach-skull.svg") center / contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45));
}

html[data-theme="bleach"] .section-header .section-sub {
  color: #b8b2a8;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Continue watching ---------- */
html[data-theme="bleach"] .shelf-section {
  margin-bottom: 28px;
  padding: 14px 16px 16px;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.9) 0%, rgba(8, 8, 10, 0.94) 100%);
  border: 1px solid var(--bl-border);
  border-radius: 5px;
  box-shadow:
    var(--bl-shadow),
    inset 0 1px 0 rgba(255, 51, 75, 0.12);
  backdrop-filter: blur(14px);
}

html[data-theme="bleach"] .shelf-section::before {
  display: none;
  content: none;
}

html[data-theme="bleach"] .continue-cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

html[data-theme="bleach"] .continue-card {
  min-height: 126px;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.94), rgba(4, 18, 32, 0.97));
  border: 1px solid rgba(160, 18, 35, 0.46);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}

html[data-theme="bleach"] .continue-card:hover {
  transform: translateY(-3px);
  border-color: var(--bl-gold);
  box-shadow:
    0 0 0 1px rgba(216, 27, 47, 0.55),
    0 16px 30px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(216, 27, 47, 0.1);
}

html[data-theme="bleach"] .continue-poster {
  width: 92px;
  height: 126px;
  border-radius: 4px 0 0 15px;
}

html[data-theme="bleach"] .continue-info {
  padding: 12px 13px;
  gap: 10px;
}

html[data-theme="bleach"] .continue-title {
  color: var(--bl-ink);
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.28;
}

html[data-theme="bleach"] .continue-ep {
  color: var(--bl-gold);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

html[data-theme="bleach"] .continue-progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.11);
  border-radius: 3px;
}

html[data-theme="bleach"] .continue-progress-fill {
  background: linear-gradient(90deg, #d81b2f, #ff8a95);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(200, 16, 46, 0.45);
}

/* ---------- Catalog rail with filters ---------- */
html[data-theme="bleach"] .catalog-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 13px 22px 15px;
}

html[data-theme="bleach"] .catalog-title-box h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f2eee7;
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-theme="bleach"] .catalog-title-box h1::before {
  content: "";
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  background: url("bleach-skull.svg") center / contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45));
}

html[data-theme="bleach"] .catalog-title-box p {
  margin-top: 3px;
  color: #b8b2a8;
  font-size: 12.5px;
  font-weight: 600;
}

html[data-theme="bleach"] .filters-bar {
  gap: 10px;
}

html[data-theme="bleach"] .filter-group {
  color: #b8b2a8;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
}

html[data-theme="bleach"] .custom-select,
html[data-theme="bleach"] select {
  background-color: #0b0b0d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3c75a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 13px;
  border: 1px solid #5a101a;
  border-radius: 3px;
  color: #d8d2c8;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 33px 8px 13px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

html[data-theme="bleach"] .custom-select:hover,
html[data-theme="bleach"] select:hover {
  border-color: var(--bl-gold);
  background-color: #17171a;
}

html[data-theme="bleach"] .custom-select:focus,
html[data-theme="bleach"] select:focus {
  border-color: var(--bl-gold);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.14);
}

/* ---------- Anime grid and cards ---------- */
html[data-theme="bleach"] .anime-grid {
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 18px;
}

html[data-theme="bleach"] .anime-card {
  padding: 6px;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.93), rgba(8, 8, 10, 0.97));
  border: 1px solid rgba(160, 18, 35, 0.46);
  border-radius: 4px;
  color: var(--bl-ink);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(6px);
}

html[data-theme="bleach"] .anime-card:hover {
  transform: translateY(-5px);
  border-color: var(--bl-gold);
  box-shadow:
    0 0 0 1px rgba(216, 27, 47, 0.55),
    0 20px 38px rgba(0, 0, 0, 0.5),
    0 0 26px rgba(216, 27, 47, 0.12);
}

html[data-theme="bleach"] .card-poster-wrap {
  border: 1px solid rgba(160, 18, 35, 0.32);
  border-radius: 3px;
  background: #070708;
}

html[data-theme="bleach"] .card-poster-wrap::before {
  content: none;
  display: none;
}

html[data-theme="bleach"] .card-poster-wrap::after {
  content: "";
  position: absolute;
  top: auto;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23231505' d='M8 5l11 7-11 7z'/%3E%3C/svg%3E") center / 12px no-repeat,
    linear-gradient(180deg, #e3253c, #a90f21);
  border: 1px solid #ff6676;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(5px) scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

html[data-theme="bleach"] .anime-card:hover .card-poster-wrap::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

html[data-theme="bleach"] .card-poster {
  filter: none;
  border-radius: 3px;
}

html[data-theme="bleach"] .card-details {
  padding: 10px 6px 8px;
  border-top: 1px solid rgba(160, 18, 35, 0.24);
}

html[data-theme="bleach"] .card-details::before {
  display: none;
  content: none;
}

html[data-theme="bleach"] .card-title {
  margin-bottom: 7px;
  color: var(--bl-ink);
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.28;
  text-align: left;
  text-transform: none;
}

html[data-theme="bleach"] .card-meta {
  color: #a8a29a;
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 11px;
}

html[data-theme="bleach"] .badge-score {
  top: 8px;
  right: 8px;
  background: linear-gradient(180deg, #e3253c, #c8102e);
  border: 1px solid #7f0a1c;
  border-radius: 2px;
  color: #0a0a0b;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.42);
  backdrop-filter: none;
}

html[data-theme="bleach"] .badge-kind-floating {
  bottom: 8px;
  left: 8px;
  background: rgba(8, 8, 10, 0.86);
  border: 1px solid rgba(160, 18, 35, 0.48);
  border-radius: 3px;
  color: #d8d2c8;
  font-size: 10px;
  padding: 3px 8px;
  backdrop-filter: blur(6px);
}

html[data-theme="bleach"] .badge-status-ongoing {
  top: 8px;
  left: 8px;
  background: rgba(200, 16, 46, 0.94);
  border-radius: 3px;
  color: #0a0a0b;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
}

/* ---------- Pagination ---------- */
html[data-theme="bleach"] .pagination-bar {
  margin-top: 30px;
  gap: 12px;
}

html[data-theme="bleach"] .page-btn {
  background: rgba(8, 8, 10, 0.9);
  border: 1px solid var(--bl-border);
  border-radius: 3px;
  color: var(--bl-ink);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

html[data-theme="bleach"] .page-btn:hover:not(:disabled) {
  background: rgba(200, 16, 46, 0.14);
  border-color: var(--bl-gold);
  color: var(--bl-gold-bright);
}

html[data-theme="bleach"] .page-indicator {
  background: rgba(8, 8, 10, 0.78);
  border: 1px solid rgba(160, 18, 35, 0.26);
  border-radius: 3px;
  color: #c9c4bb;
  font-size: 12px;
  padding: 8px 16px;
}

/* ---------- Page rails for secondary pages ---------- */
html[data-theme="bleach"] .page-header-simple {
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 15px 22px;
}

html[data-theme="bleach"] .page-header-simple h1 {
  font-size: 22px;
  letter-spacing: 0.05em;
}

html[data-theme="bleach"] .page-header-simple p {
  color: #b8b2a8;
  font-size: 12.5px;
  font-weight: 600;
}

html[data-theme="bleach"] .btn-danger {
  background: linear-gradient(180deg, #9a0c1c, #6e0814);
  border: 1px solid #c8102e;
  border-radius: 3px;
  color: #ffe3e0;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

html[data-theme="bleach"] .btn-danger:hover {
  background: linear-gradient(180deg, #e01b2e, #7f0a1c);
  border-color: #ff7a86;
  color: #fff;
}

/* ---------- History / bookmarks ---------- */
html[data-theme="bleach"] .history-cards-grid {
  gap: 16px;
}

html[data-theme="bleach"] .history-item-card {
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.92), rgba(8, 8, 10, 0.96));
  border: 1px solid var(--bl-border);
  border-radius: 4px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

html[data-theme="bleach"] .history-item-card:hover {
  border-color: var(--bl-gold);
  box-shadow: var(--bl-shadow);
}

html[data-theme="bleach"] .history-item-title {
  color: var(--bl-ink);
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

html[data-theme="bleach"] .btn-resume {
  background: linear-gradient(180deg, #e3253c, #a90f21);
  border-radius: 3px;
  color: #0a0a0b;
  font-weight: 800;
}

html[data-theme="bleach"] .btn-resume:hover {
  background: linear-gradient(180deg, #ff6676, #d81b2f);
}

html[data-theme="bleach"] .bookmarks-tabs {
  background: rgba(8, 8, 10, 0.78);
  border: 1px solid var(--bl-border);
  border-radius: 3px;
  padding: 5px;
  display: inline-flex;
  gap: 4px;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}

html[data-theme="bleach"] .bm-tab {
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: var(--bl-muted);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 15px;
}

html[data-theme="bleach"] .bm-tab:hover {
  color: var(--bl-gold-bright);
}

html[data-theme="bleach"] .bm-tab.active {
  background: linear-gradient(180deg, #e3253c, #a90f21);
  color: #0a0a0b;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.24);
}

html[data-theme="bleach"] .empty-state {
  background: var(--bl-panel);
  border: 1px dashed var(--bl-border);
  border-radius: 5px;
  padding: 36px 24px;
  color: var(--bl-muted);
  backdrop-filter: blur(10px);
}

html[data-theme="bleach"] .empty-state h3 {
  color: var(--bl-ink);
  font-family: "Oswald", sans-serif;
  font-size: 17px;
  letter-spacing: 0.04em;
}

/* ---------- Player page ---------- */
html[data-theme="bleach"] .player-page-top {
  margin-bottom: 18px;
}

html[data-theme="bleach"] .back-btn {
  background: rgba(8, 8, 10, 0.85);
  border: 1px solid var(--bl-border);
  border-radius: 3px;
  color: var(--bl-ink);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  backdrop-filter: blur(8px);
}

html[data-theme="bleach"] .back-btn:hover {
  border-color: var(--bl-gold);
  color: var(--bl-gold-bright);
  background: rgba(200, 16, 46, 0.12);
}

html[data-theme="bleach"] .player-breadcrumbs {
  color: var(--bl-muted);
  font-size: 12px;
  background: rgba(8, 8, 10, 0.62);
  border: 1px solid rgba(160, 18, 35, 0.22);
  border-radius: 3px;
  padding: 7px 14px;
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

html[data-theme="bleach"] .video-wrapper {
  background: var(--bl-panel-strong);
  border: 1px solid var(--bl-border);
  border-radius: 5px;
  box-shadow: var(--bl-shadow);
}

html[data-theme="bleach"] .player-controls-row {
  background: var(--bl-panel);
  border: 1px solid var(--bl-border);
  border-radius: 4px;
  padding: 10px 12px;
  backdrop-filter: blur(10px);
}

html[data-theme="bleach"] .player-source-switch {
  background: rgba(8, 8, 10, 0.8);
  border: 1px solid rgba(160, 18, 35, 0.3);
  border-radius: 3px;
  padding: 3px;
}

html[data-theme="bleach"] .source-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--bl-muted);
  font-size: 11px;
  padding: 5px 11px;
}

html[data-theme="bleach"] .source-btn.active {
  background: linear-gradient(180deg, #e3253c, #a90f21);
  border-color: #e33b4d;
  color: #0a0a0b;
  box-shadow: 0 3px 10px rgba(200, 16, 46, 0.24);
}

html[data-theme="bleach"] .btn-ctrl,
html[data-theme="bleach"] .btn-skip-quick,
html[data-theme="bleach"] .btn-skip-action,
html[data-theme="bleach"] .btn-skip-ghost,
html[data-theme="bleach"] .btn-mini-action,
html[data-theme="bleach"] .btn-shiki-link,
html[data-theme="bleach"] .btn-del-history {
  border-radius: 3px;
}

html[data-theme="bleach"] .btn-ctrl {
  background: rgba(8, 8, 10, 0.78);
  border: 1px solid rgba(160, 18, 35, 0.36);
  color: var(--bl-ink);
  padding: 8px 15px;
}

html[data-theme="bleach"] .btn-ctrl:hover {
  background: rgba(200, 16, 46, 0.16);
  border-color: var(--bl-gold);
  color: var(--bl-gold-bright);
}

html[data-theme="bleach"] .btn-skip-quick {
  background: rgba(8, 8, 10, 0.7);
  border: 1px solid rgba(160, 18, 35, 0.28);
  color: var(--bl-muted);
}

html[data-theme="bleach"] .btn-skip-quick:hover {
  border-color: var(--bl-gold);
  color: var(--bl-gold-bright);
}

html[data-theme="bleach"] .toggle-control input:checked + .toggle-slider {
  background: linear-gradient(90deg, #d9a63b, #d81b2f);
}

html[data-theme="bleach"] .toggle-slider {
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="bleach"] .shiki-sync-bar {
  background: rgba(8, 8, 10, 0.84);
  border: 1px solid rgba(160, 18, 35, 0.26);
  border-radius: 4px;
  color: var(--bl-muted);
}

html[data-theme="bleach"] .btn-mini-action {
  background: rgba(200, 16, 46, 0.14);
  border: 1px solid rgba(200, 16, 46, 0.42);
  color: var(--bl-gold-bright);
}

html[data-theme="bleach"] .btn-mini-action:hover {
  background: var(--bl-gold);
  color: #0a0a0b;
}

html[data-theme="bleach"] .dub-selector-card,
html[data-theme="bleach"] .episodes-card,
html[data-theme="bleach"] .related-card,
html[data-theme="bleach"] .characters-card,
html[data-theme="bleach"] .settings-section,
html[data-theme="bleach"] .shiki-user-card,
html[data-theme="bleach"] .profile-list,
html[data-theme="bleach"] .profile-stats,
html[data-theme="bleach"] .theme-card,
html[data-theme="bleach"] .modal-card {
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.92), rgba(8, 8, 10, 0.96));
  border: 1px solid var(--bl-border);
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

html[data-theme="bleach"] .dub-selector-card,
html[data-theme="bleach"] .episodes-card,
html[data-theme="bleach"] .related-card,
html[data-theme="bleach"] .characters-card {
  padding: 18px;
  margin-bottom: 18px;
}

html[data-theme="bleach"] .anime-info-card {
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.92), rgba(8, 8, 10, 0.96));
  border: 1px solid var(--bl-border);
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

html[data-theme="bleach"] .card-section-title h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bl-gold-bright);
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html[data-theme="bleach"] .card-section-title h3::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: url("bleach-skull.svg") center / contain no-repeat;
}

html[data-theme="bleach"] .card-section-title h3 > .ui-icon {
  display: none;
}

html[data-theme="bleach"] .badge-count,
html[data-theme="bleach"] .badge-sub {
  background: rgba(200, 16, 46, 0.10);
  border: 1px solid rgba(200, 16, 46, 0.22);
  border-radius: 3px;
  color: #b0aaa0;
  font-size: 11px;
  padding: 3px 9px;
}

html[data-theme="bleach"] .dub-pill {
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid rgba(160, 18, 35, 0.28);
  border-radius: 3px;
  color: var(--bl-muted);
  font-size: 12px;
  padding: 7px 13px;
}

html[data-theme="bleach"] .dub-pill:hover {
  background: rgba(200, 16, 46, 0.12);
  border-color: rgba(200, 16, 46, 0.5);
  color: var(--bl-gold-bright);
}

html[data-theme="bleach"] .dub-pill.active {
  background: linear-gradient(180deg, #e3253c, #a90f21);
  border-color: #e33b4d;
  color: #0a0a0b;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.24);
}

html[data-theme="bleach"] .season-tab-btn {
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid rgba(160, 18, 35, 0.28);
  border-radius: 3px;
  color: var(--bl-muted);
  font-size: 12px;
  padding: 7px 14px;
}

html[data-theme="bleach"] .season-tab-btn:hover {
  border-color: var(--bl-gold);
  color: var(--bl-gold-bright);
}

html[data-theme="bleach"] .season-tab-btn.active {
  background: linear-gradient(180deg, #e3253c, #a90f21);
  border-color: #e33b4d;
  color: #0a0a0b;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.24);
}

html[data-theme="bleach"] .episodes-info,
html[data-theme="bleach"] .episodes-info span {
  color: var(--bl-muted);
}

html[data-theme="bleach"] .ep-btn {
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid rgba(160, 18, 35, 0.28);
  border-radius: 3px;
  color: var(--bl-ink-soft);
}

html[data-theme="bleach"] .ep-btn:hover {
  border-color: var(--bl-gold);
  color: var(--bl-gold-bright);
}

html[data-theme="bleach"] .ep-btn.active {
  background: linear-gradient(180deg, #e3253c, #a90f21);
  border-color: #e33b4d;
  color: #0a0a0b;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.24);
}

html[data-theme="bleach"] .filler-legend {
  background: rgba(8, 8, 10, 0.65);
  border: 1px solid rgba(160, 18, 35, 0.22);
  border-radius: 3px;
}

html[data-theme="bleach"] .filler-chip {
  border-radius: 3px;
}

html[data-theme="bleach"] .anime-info-card h2 {
  color: var(--bl-ink);
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

html[data-theme="bleach"] .title-original,
html[data-theme="bleach"] .info-label {
  color: #a8a29a;
}

html[data-theme="bleach"] .info-val {
  color: var(--bl-ink);
}

html[data-theme="bleach"] .poster-box {
  border: 1px solid rgba(160, 18, 35, 0.32);
  border-radius: 4px;
}

html[data-theme="bleach"] .score-overlay {
  background: rgba(200, 16, 46, 0.94);
  border: 1px solid #7f0a1c;
  border-radius: 3px;
  color: #0a0a0b;
  font-weight: 800;
  backdrop-filter: none;
}

html[data-theme="bleach"] .meta-badge {
  background: rgba(200, 16, 46, 0.1);
  border: 1px solid rgba(200, 16, 46, 0.22);
  border-radius: 3px;
  color: #c9c4bb;
}

html[data-theme="bleach"] .info-table {
  border-color: rgba(160, 18, 35, 0.18);
}

html[data-theme="bleach"] .synopsis-box p,
html[data-theme="bleach"] .synopsis-box h4 {
  color: #a8a29a;
}

html[data-theme="bleach"] .btn-shiki-link {
  background: rgba(200, 16, 46, 0.12);
  border: 1px solid rgba(200, 16, 46, 0.36);
  color: var(--bl-gold-bright);
  padding: 10px 16px;
}

html[data-theme="bleach"] .btn-shiki-link:hover {
  background: var(--bl-gold);
  color: #0a0a0b;
}

html[data-theme="bleach"] .related-card-item,
html[data-theme="bleach"] .character-card {
  background: rgba(8, 8, 10, 0.6);
  border: 1px solid rgba(160, 18, 35, 0.22);
  border-radius: 4px;
  overflow: hidden;
}

/* ---------- Profile ---------- */
html[data-theme="bleach"] .profile-hero {
  background: var(--bl-panel);
  border: 1px solid var(--bl-border);
  border-radius: 5px;
  box-shadow: var(--bl-shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

html[data-theme="bleach"] .profile-banner {
  border-radius: 5px 5px 0 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(200, 16, 46, 0.26), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 51, 75, 0.2), transparent 45%),
    linear-gradient(135deg, rgba(10, 10, 12, 0.96), rgba(8, 8, 10, 0.96));
}

html[data-theme="bleach"] .profile-avatar {
  background: #0a0a0c;
  border: 2px solid var(--bl-gold);
  color: var(--bl-gold);
  box-shadow: 0 0 0 5px rgba(3, 13, 23, 0.72), 0 0 28px rgba(200, 16, 46, 0.22);
}

html[data-theme="bleach"] .profile-identity h1 {
  color: var(--bl-ink);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.03em;
}

html[data-theme="bleach"] .profile-identity span {
  color: var(--bl-muted);
}

html[data-theme="bleach"] .profile-lists-header h2 {
  color: var(--bl-gold-bright);
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html[data-theme="bleach"] .profile-list-head:hover,
html[data-theme="bleach"] .profile-row:hover {
  background: rgba(200, 16, 46, 0.06);
}

html[data-theme="bleach"] .profile-list-count {
  background: rgba(200, 16, 46, 0.1);
  border-color: rgba(200, 16, 46, 0.3);
  border-radius: 3px;
  color: var(--bl-gold);
}

html[data-theme="bleach"] .profile-stats {
  color: var(--bl-muted);
}

html[data-theme="bleach"] .profile-stats strong,
html[data-theme="bleach"] .profile-stats b {
  color: var(--bl-gold-bright);
}

html[data-theme="bleach"] .profile-edit-banner {
  border-radius: 4px;
  overflow: hidden;
}

html[data-theme="bleach"] .profile-upload-banner,
html[data-theme="bleach"] .profile-edit-avatar-row .profile-avatar {
  border-radius: 3px;
}

/* ---------- Themes page ---------- */
html[data-theme="bleach"] .themes-grid {
  gap: 18px;
}

html[data-theme="bleach"] .theme-card {
  padding: 10px;
  border-radius: 4px;
}

html[data-theme="bleach"] .theme-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 27, 47, 0.65);
}

html[data-theme="bleach"] .theme-card.active {
  border-color: var(--bl-gold);
  box-shadow: 0 0 0 1px var(--bl-gold), 0 16px 36px rgba(0, 0, 0, 0.4);
}

html[data-theme="bleach"] .theme-preview {
  border-radius: 3px;
  background: #0a0a0c;
  border-color: rgba(160, 18, 35, 0.28);
}

html[data-theme="bleach"] .theme-preview[data-theme="bleach"] {
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.38), rgba(8, 8, 10, 0.86)),
    url("bleach-bg-hd.jpg") center 28% / cover no-repeat !important;
  border-color: rgba(216, 27, 47, 0.72) !important;
}

html[data-theme="bleach"] .theme-card-meta strong {
  color: var(--bl-ink);
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-weight: 600;
}

html[data-theme="bleach"] .theme-card-meta span {
  color: var(--bl-muted);
}

html[data-theme="bleach"] .theme-check {
  background: var(--bl-gold) !important;
  color: #0a0a0b !important;
  border-radius: 50%;
}

/* ---------- Buttons, forms, modals, toasts ---------- */
html[data-theme="bleach"] .btn-primary,
html[data-theme="bleach"] .login-guest-btn {
  background: linear-gradient(180deg, #e3253c, #a90f21);
  border: 1px solid #e33b4d;
  border-radius: 3px;
  color: #0a0a0b;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-theme="bleach"] .btn-primary:hover {
  background: linear-gradient(180deg, #ff6676, #d81b2f);
  color: #0a0a0b;
}

html[data-theme="bleach"] .btn-skip-action {
  background: linear-gradient(180deg, #e3253c, #a90f21);
  color: #0a0a0b;
  font-weight: 800;
}

html[data-theme="bleach"] .btn-skip-ghost {
  background: rgba(8, 8, 10, 0.65);
  border: 1px solid rgba(160, 18, 35, 0.32);
  color: var(--bl-ink-soft);
}

html[data-theme="bleach"] input,
html[data-theme="bleach"] textarea,
html[data-theme="bleach"] select {
  background-color: rgba(8, 8, 10, 0.8);
  border: 1px solid rgba(160, 18, 35, 0.3);
  border-radius: 3px;
  color: var(--bl-ink);
}

html[data-theme="bleach"] input::placeholder,
html[data-theme="bleach"] textarea::placeholder {
  color: #a8a29a;
}

html[data-theme="bleach"] input:focus,
html[data-theme="bleach"] textarea:focus,
html[data-theme="bleach"] select:focus {
  border-color: var(--bl-gold);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

html[data-theme="bleach"] .modal-card {
  border-radius: 5px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

html[data-theme="bleach"] .modal-header {
  border-bottom-color: rgba(160, 18, 35, 0.18);
}

html[data-theme="bleach"] .modal-header h3 {
  color: var(--bl-gold-bright);
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: none;
}

html[data-theme="bleach"] .modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--bl-muted);
}

html[data-theme="bleach"] .modal-close:hover {
  background: rgba(200, 16, 46, 0.12);
  color: var(--bl-gold);
}

html[data-theme="bleach"] .settings-section {
  background: rgba(8, 8, 10, 0.55);
  border: 1px solid rgba(160, 18, 35, 0.2);
  border-radius: 4px;
  box-shadow: none;
}

html[data-theme="bleach"] .settings-section h3 {
  color: var(--bl-ink);
}

html[data-theme="bleach"] .settings-hint,
html[data-theme="bleach"] .settings-section p,
html[data-theme="bleach"] .setting-checkbox-row span {
  color: var(--bl-muted);
}

html[data-theme="bleach"] .setting-checkbox-row input {
  accent-color: var(--bl-gold);
}

html[data-theme="bleach"] .login-fields input {
  background: rgba(8, 8, 10, 0.8);
  border-radius: 4px;
}

html[data-theme="bleach"] .toast {
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.97), rgba(8, 8, 10, 0.97));
  border: 1px solid var(--bl-border);
  border-radius: 4px;
  color: var(--bl-ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

html[data-theme="bleach"] .toast.toast-success .toast-icon-wrap {
  color: var(--bl-gold);
}

html[data-theme="bleach"] .image-search-drop,
html[data-theme="bleach"] .image-result-card {
  background: rgba(8, 8, 10, 0.65);
  border-color: rgba(160, 18, 35, 0.3);
  border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
  html[data-theme="bleach"] .nav-btn {
    font-size: 10.5px;
    padding: 7px 9px;
    gap: 0;
    white-space: nowrap;
  }
  html[data-theme="bleach"] .nav-btn::before {
    display: none;
  }
  html[data-theme="bleach"] .search-box {
    width: 210px;
  }
  html[data-theme="bleach"] #image-search-open-btn {
    display: none;
  }
  html[data-theme="bleach"] .navbar {
    height: 66px;
  }
}

@media (max-width: 900px) {
  html[data-theme="bleach"] .logo-text {
    display: none;
  }
  html[data-theme="bleach"] .nav-btn {
    font-size: 10px;
    padding: 6px 7px;
  }
  html[data-theme="bleach"] .search-box {
    width: 160px;
  }
  html[data-theme="bleach"] .nav-container {
    gap: 10px;
  }
}

@media (max-width: 1250px) {
  html[data-theme="bleach"] .continue-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html[data-theme="bleach"] .catalog-title-box h1 {
    font-size: 22px;
  }
  html[data-theme="bleach"] .filter-group {
    font-size: 11.5px;
  }
}

@media (max-width: 1024px) {
  html[data-theme="bleach"] .main-content {
    padding-top: 120px;
  }
  html[data-theme="bleach"] .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 16px;
  }
  html[data-theme="bleach"] .logo-text {
    font-size: 19px;
  }
  html[data-theme="bleach"] .navbar {
    height: 66px;
  }
}

@media (max-width: 900px) {
  html[data-theme="bleach"] .filters-bar {
    width: 100%;
  }
  html[data-theme="bleach"] .filter-group {
    flex: 1 1 30%;
    min-width: 150px;
  }
  html[data-theme="bleach"] .custom-select {
    width: 100%;
  }
}

@media (max-width: 768px) {
  html[data-theme="bleach"] .main-content {
    padding: 96px 14px 50px;
  }
  html[data-theme="bleach"] .navbar {
    width: calc(100% - 16px);
    height: 62px;
    margin-top: 8px;
    top: 8px;
    border-radius: 4px;
  }
  html[data-theme="bleach"] .nav-container {
    padding: 0 12px;
    gap: 10px;
  }
  html[data-theme="bleach"] .logo::before {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  html[data-theme="bleach"] .logo-text {
    display: inline;
    font-size: 17px;
    letter-spacing: 0.06em;
  }
  html[data-theme="bleach"] .search-box {
    width: 100%;
    max-width: 230px;
  }
  html[data-theme="bleach"] .icon-btn,
  html[data-theme="bleach"] .user-menu-btn {
    width: 34px;
    height: 34px;
  }
  html[data-theme="bleach"] .continue-cards-grid {
    grid-template-columns: 1fr;
  }
  html[data-theme="bleach"] .continue-card {
    min-height: 108px;
  }
  html[data-theme="bleach"] .continue-poster {
    width: 80px;
    height: 108px;
  }
  html[data-theme="bleach"] .continue-info {
    padding: 10px 12px;
  }
  html[data-theme="bleach"] .continue-title {
    font-size: 13.5px;
  }
  html[data-theme="bleach"] .shelf-section {
    border-radius: 4px;
    padding: 12px 12px 14px;
  }
  html[data-theme="bleach"] .section-header {
    padding: 8px 13px;
    margin: 0 0 12px;
  }
  html[data-theme="bleach"] .section-header h2,
  html[data-theme="bleach"] .page-header-simple h1 {
    font-size: 15px;
    letter-spacing: 0.04em;
  }
  html[data-theme="bleach"] .section-header h2::before,
  html[data-theme="bleach"] .page-header-simple h1::before {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }
  html[data-theme="bleach"] .section-header .section-sub {
    display: none;
  }
  html[data-theme="bleach"] .catalog-header {
    padding: 12px 15px 14px;
    gap: 10px;
  }
  html[data-theme="bleach"] .catalog-title-box h1 {
    font-size: 18px;
  }
  html[data-theme="bleach"] .catalog-title-box h1::before {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
  html[data-theme="bleach"] .catalog-title-box p {
    font-size: 11.5px;
  }
  html[data-theme="bleach"] .filter-group {
    min-width: 0;
    flex: 0 0 auto;
    gap: 0;
  }
  html[data-theme="bleach"] .filter-group label {
    display: none;
  }
  html[data-theme="bleach"] .filters-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  html[data-theme="bleach"] .filters-bar::-webkit-scrollbar {
    display: none;
  }
  html[data-theme="bleach"] .custom-select {
    width: auto;
    min-width: 0;
    font-size: 10.5px;
    padding: 7px 24px 7px 9px;
    background-position: right 7px center;
    background-size: 11px;
  }
  html[data-theme="bleach"] .filters-bar {
    gap: 6px;
  }
  html[data-theme="bleach"] .anime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  html[data-theme="bleach"] .anime-card {
    border-radius: 4px;
    padding: 5px;
  }
  html[data-theme="bleach"] .card-details {
    padding: 8px 4px 6px;
  }
  html[data-theme="bleach"] .card-title {
    font-size: 12.5px;
  }
  html[data-theme="bleach"] .page-header-simple {
    padding: 12px 14px;
    margin-bottom: 18px;
  }
  html[data-theme="bleach"] .page-header-simple h1 {
    font-size: 16px;
  }
  html[data-theme="bleach"] .bookmarks-tabs {
    width: 100%;
    justify-content: space-between;
  }
  html[data-theme="bleach"] .bm-tab {
    padding: 8px 10px;
    font-size: 11.5px;
  }
  html[data-theme="bleach"] .player-layout {
    gap: 16px;
  }
}

@media (max-width: 560px) {
  html[data-theme="bleach"] .logo-text {
    display: inline;
    font-size: 14px;
    letter-spacing: 0.02em;
  }
  html[data-theme="bleach"] .logo {
    gap: 6px;
  }
  html[data-theme="bleach"] #image-search-open-btn {
    display: none !important;
  }
  html[data-theme="bleach"] .nav-container {
    gap: 8px;
  }
  html[data-theme="bleach"] .nav-right {
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
  }
  html[data-theme="bleach"] .search-box {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
  }
  html[data-theme="bleach"] .search-box input {
    min-width: 0;
    font-size: 12px;
    padding-left: 13px;
  }
  html[data-theme="bleach"] .logo {
    flex: 0 0 auto;
  }
  html[data-theme="bleach"] .user-menu-btn {
    flex: 0 0 34px;
  }
  html[data-theme="bleach"] .main-content {
    padding-top: 86px;
  }
  html[data-theme="bleach"] .main-content,
  html[data-theme="bleach"] .shelf-section,
  html[data-theme="bleach"] .continue-card,
  html[data-theme="bleach"] .continue-info,
  html[data-theme="bleach"] .catalog-header,
  html[data-theme="bleach"] .page-header-simple {
    min-width: 0;
  }
  html[data-theme="bleach"] .continue-title {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  html[data-theme="bleach"] .filters-bar {
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 6px;
  }
  html[data-theme="bleach"] .filter-group {
    flex: 0 1 auto;
  }
}

@media (max-width: 380px) {
  html[data-theme="bleach"] .logo-text {
    display: none;
  }
  html[data-theme="bleach"] .logo {
    gap: 0;
  }
  html[data-theme="bleach"] .search-box input {
    font-size: 11px;
  }
}

html[data-theme="bleach"] .grandline-hero,
html[data-theme="bleach"] .grandline-side {
  display: none !important;
}

/* ============================================================
   BLEACH — final skin overrides
   Black steel, blood-red brush accents, sharp corners.
   ============================================================ */

html[data-theme="bleach"] {
  --bl-ink: #f2eee7;
  --bl-ink-soft: #c9c4bb;
  --bl-muted: #9e988f;
  --bl-gold: #c8102e;
  --bl-gold-bright: #ff334b;
  --bl-gold-deep: #7f0a1c;
  --bl-border: rgba(200, 16, 46, 0.36);
  --bl-border-strong: rgba(224, 27, 46, 0.82);
  --bl-panel: rgba(6, 6, 8, 0.92);
  --bl-panel-strong: rgba(4, 4, 5, 0.97);
  --bl-shadow: 0 18px 48px rgba(0, 0, 0, 0.62);
  scrollbar-gutter: stable;
}

/* ---------- Canvas ---------- */
html[data-theme="bleach"] body {
  background-color: #030304;
  background-image:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.38) 0%,
      rgba(0, 0, 0, 0.08) 22%,
      rgba(0, 0, 0, 0.26) 50%,
      rgba(0, 0, 0, 0.70) 82%,
      #030304 100%),
    radial-gradient(ellipse 55% 45% at 76% 12%, rgba(200, 16, 46, 0.24), transparent 65%),
    url("bleach-bg-hd.jpg");
  background-position: center top, center top, center top;
  background-size: auto, auto, cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

html[data-theme="bleach"] body::before {
  background:
    linear-gradient(90deg,
      rgba(0, 0, 0, 0.74) 0%,
      rgba(0, 0, 0, 0.16) 13%,
      transparent 30%,
      transparent 70%,
      rgba(0, 0, 0, 0.16) 87%,
      rgba(0, 0, 0, 0.74) 100%),
    radial-gradient(ellipse at 48% 34%, transparent 32%, rgba(0, 0, 0, 0.52) 100%);
}

html[data-theme="bleach"] .main-content {
  max-width: 1440px;
  padding: 200px 24px 70px;
}

/* ---------- Full-width black nav ---------- */
html[data-theme="bleach"] .navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 70px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(200, 16, 46, 0.62);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 8, 0.98), rgba(4, 4, 5, 0.96));
  box-shadow:
    0 1px 0 rgba(224, 27, 46, 0.3),
    0 12px 30px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px) saturate(1.05);
}

html[data-theme="bleach"] .navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 16, 46, 0.75) 18%, #e01b2e 50%, rgba(200, 16, 46, 0.75) 82%, transparent);
  opacity: 0.8;
  pointer-events: none;
}

html[data-theme="bleach"] .nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 18px;
}

html[data-theme="bleach"] .logo {
  gap: 10px;
}

html[data-theme="bleach"] .nav-logo-img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  filter: drop-shadow(0 0 12px rgba(200, 16, 46, 0.45));
}

html[data-theme="bleach"] .logo::before {
  content: none;
  display: none;
}

html[data-theme="bleach"] .logo-text {
  color: #f2eee7;
  font-family: "Oswald", "Russo One", sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(200, 16, 46, 0.35), 0 2px 0 rgba(0, 0, 0, 0.55);
}

html[data-theme="bleach"] .logo-text .accent {
  color: #e01b2e;
}

html[data-theme="bleach"] .nav-btn {
  border-radius: 3px;
  color: #b9b3aa;
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 12px;
  letter-spacing: 0.025em;
}

html[data-theme="bleach"] .nav-btn:hover {
  background: rgba(200, 16, 46, 0.12);
  border-color: rgba(200, 16, 46, 0.42);
  color: #f2eee7;
}

html[data-theme="bleach"] .nav-btn.active {
  background: #c8102e;
  border-color: #e01b2e;
  color: #fff;
  box-shadow: 0 0 18px rgba(200, 16, 46, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html[data-theme="bleach"] .nav-btn::before {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}

html[data-theme="bleach"] .search-box input {
  background: #0a0a0c;
  border: 1px solid rgba(200, 16, 46, 0.3);
  border-radius: 3px;
  color: #f2eee7;
  font-size: 13px;
}

html[data-theme="bleach"] .search-box input::placeholder {
  color: #7f7a73;
}

html[data-theme="bleach"] .search-box input:focus {
  border-color: #e01b2e;
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.18);
}

html[data-theme="bleach"] .nav-right {
  gap: 12px;
  align-items: center;
}

html[data-theme="bleach"] .icon-btn,
html[data-theme="bleach"] .user-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 3px;
  background: #0a0a0c;
  border: 1px solid rgba(200, 16, 46, 0.3);
  color: #e9e4dc;
}

html[data-theme="bleach"] .icon-btn:hover,
html[data-theme="bleach"] .user-menu-btn:hover {
  background: rgba(200, 16, 46, 0.14);
  border-color: #e01b2e;
  color: #fff;
}

html[data-theme="bleach"] .user-menu-avatar {
  background: #111114;
  border-color: #c8102e;
  border-radius: 2px;
  color: #f2eee7;
}

html[data-theme="bleach"] .user-menu-dropdown {
  border-radius: 4px;
  border: 1px solid rgba(200, 16, 46, 0.42);
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.99), rgba(5, 5, 6, 0.99));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

html[data-theme="bleach"] .user-menu-item {
  border-radius: 2px;
  color: #d5d0c8;
}

html[data-theme="bleach"] .user-menu-item:hover {
  background: rgba(200, 16, 46, 0.14);
  color: #fff;
}

/* ---------- Section / catalog / page rails ---------- */
html[data-theme="bleach"] .section-header,
html[data-theme="bleach"] .catalog-header,
html[data-theme="bleach"] .page-header-simple {
  position: relative;
  isolation: isolate;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html[data-theme="bleach"] .section-header::before,
html[data-theme="bleach"] .catalog-header::before,
html[data-theme="bleach"] .page-header-simple::before {
  background-color: transparent;
  background-image:
    linear-gradient(100deg, rgba(18, 18, 21, 0.99) 0%, rgba(8, 8, 10, 0.98) 62%, rgba(19, 5, 9, 0.97) 100%);
  background-size: auto;
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
  box-shadow:
    inset 0 0 0 1px rgba(200, 16, 46, 0.32),
    inset 0 0 42px rgba(0, 0, 0, 0.5);
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.38));
}

html[data-theme="bleach"] .section-header::after,
html[data-theme="bleach"] .catalog-header::after,
html[data-theme="bleach"] .page-header-simple::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  z-index: 2;
  background: linear-gradient(180deg, #e01b2e 0%, #c8102e 45%, #7f0a1c 100%);
  clip-path: polygon(0 0, 100% 5%, 42% 14%, 100% 25%, 55% 39%, 100% 52%, 35% 65%, 100% 78%, 58% 89%, 100% 100%, 0 100%);
  box-shadow: 0 0 14px rgba(200, 16, 46, 0.4);
}

html[data-theme="bleach"] .section-header {
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px 20px;
  margin: 0 4px 14px;
}

html[data-theme="bleach"] .section-header h2,
html[data-theme="bleach"] .page-header-simple h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f2eee7;
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 19px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

html[data-theme="bleach"] .section-header h2::before,
html[data-theme="bleach"] .page-header-simple h1::before {
  content: none;
  display: none;
}

html[data-theme="bleach"] .section-header .section-sub {
  color: #9e988f;
  font-size: 11.5px;
  font-weight: 500;
}

html[data-theme="bleach"] .catalog-header {
  gap: 14px;
  padding: 13px 20px 15px;
}

html[data-theme="bleach"] .catalog-title-box h1 {
  color: #f2eee7;
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 26px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

html[data-theme="bleach"] .catalog-title-box h1::before {
  content: none;
  display: none;
}

html[data-theme="bleach"] .catalog-title-box p {
  color: #9e988f;
  font-size: 12px;
  font-weight: 500;
}

html[data-theme="bleach"] .filter-group {
  color: #b9b3aa;
  font-size: 11.5px;
  font-weight: 500;
}

html[data-theme="bleach"] .custom-select,
html[data-theme="bleach"] select {
  background-color: #0a0a0c;
  border: 1px solid rgba(200, 16, 46, 0.42);
  border-radius: 3px;
  color: #f2eee7;
  font-size: 12px;
  font-weight: 500;
}

html[data-theme="bleach"] .custom-select:hover,
html[data-theme="bleach"] select:hover {
  border-color: #e01b2e;
  background-color: #111114;
}

html[data-theme="bleach"] .custom-select:focus,
html[data-theme="bleach"] select:focus {
  border-color: #e01b2e;
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.16);
}

html[data-theme="bleach"] .page-header-simple {
  padding: 15px 20px;
  margin-bottom: 24px;
}

html[data-theme="bleach"] .page-header-simple h1 {
  font-size: 23px;
}

html[data-theme="bleach"] .page-header-simple p {
  color: #9e988f;
  font-size: 12px;
}

/* ---------- Panels and cards ---------- */
html[data-theme="bleach"] .shelf-section {
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(13, 13, 16, 0.97), rgba(5, 5, 7, 0.99));
  border: 1px solid rgba(200, 16, 46, 0.34);
  border-radius: 5px;
  box-shadow: var(--bl-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

html[data-theme="bleach"] .continue-card {
  background: linear-gradient(180deg, rgba(15, 15, 18, 0.99), rgba(6, 6, 8, 1));
  border: 1px solid rgba(200, 16, 46, 0.4);
  border-radius: 4px;
}

html[data-theme="bleach"] .continue-card:hover {
  transform: translateY(-3px);
  border-color: #e01b2e;
  box-shadow: 0 0 0 1px rgba(224, 27, 46, 0.45), 0 16px 30px rgba(0, 0, 0, 0.55), 0 0 22px rgba(200, 16, 46, 0.12);
}

html[data-theme="bleach"] .continue-poster {
  border-radius: 3px 0 0 3px;
}

html[data-theme="bleach"] .continue-title {
  color: #f2eee7;
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-weight: 500;
}

html[data-theme="bleach"] .continue-ep {
  color: #e01b2e;
  font-size: 11px;
  font-weight: 600;
}

html[data-theme="bleach"] .continue-progress-bar {
  height: 4px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="bleach"] .continue-progress-fill {
  border-radius: 1px;
  background: linear-gradient(90deg, #7f0a1c, #e01b2e);
  box-shadow: 0 0 10px rgba(200, 16, 46, 0.5);
}

html[data-theme="bleach"] .anime-grid {
  gap: 16px;
}

html[data-theme="bleach"] .anime-card {
  padding: 4px;
  background: linear-gradient(180deg, rgba(17, 17, 20, 0.97), rgba(6, 6, 8, 0.99));
  border: 1px solid rgba(200, 16, 46, 0.36);
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.52);
  backdrop-filter: none;
}

html[data-theme="bleach"] .anime-card:hover {
  transform: translateY(-4px);
  border-color: #e01b2e;
  box-shadow: 0 0 0 1px rgba(224, 27, 46, 0.45), 0 18px 34px rgba(0, 0, 0, 0.62), 0 0 24px rgba(200, 16, 46, 0.16);
}

html[data-theme="bleach"] .card-poster-wrap {
  border: 1px solid rgba(200, 16, 46, 0.28);
  border-radius: 2px;
  background: #030304;
}

html[data-theme="bleach"] .card-poster-wrap::after {
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5l11 7-11 7z'/%3E%3C/svg%3E") center / 11px no-repeat,
    #c8102e;
  border: 1px solid #ff5b6b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

html[data-theme="bleach"] .card-poster {
  border-radius: 1px;
}

html[data-theme="bleach"] .card-details {
  padding: 8px 5px 7px;
  border-top: 1px solid rgba(200, 16, 46, 0.24);
}

html[data-theme="bleach"] .card-title {
  color: #f2eee7;
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

html[data-theme="bleach"] .card-meta {
  color: #8f8a83;
  font-size: 10.5px;
}

html[data-theme="bleach"] .badge-score {
  top: 7px;
  right: 7px;
  background: rgba(4, 4, 5, 0.92);
  border: 1px solid rgba(224, 27, 46, 0.7);
  border-radius: 2px;
  color: #f2eee7;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
}

html[data-theme="bleach"] .badge-kind-floating {
  bottom: 7px;
  left: 7px;
  background: rgba(4, 4, 5, 0.9);
  border: 1px solid rgba(200, 16, 46, 0.45);
  border-radius: 2px;
  color: #c9c4bb;
  font-size: 9.5px;
  padding: 3px 7px;
}

html[data-theme="bleach"] .badge-status-ongoing {
  top: 7px;
  left: 7px;
  background: #c8102e;
  border-radius: 2px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px;
}

html[data-theme="bleach"] .pagination-bar {
  margin-top: 28px;
}

html[data-theme="bleach"] .page-btn {
  background: #0a0a0c;
  border: 1px solid rgba(200, 16, 46, 0.38);
  border-radius: 3px;
  color: #f2eee7;
  padding: 9px 20px;
}

html[data-theme="bleach"] .page-btn:hover:not(:disabled) {
  background: #c8102e;
  border-color: #e01b2e;
  color: #fff;
}

html[data-theme="bleach"] .page-indicator {
  background: #0a0a0c;
  border: 1px solid rgba(200, 16, 46, 0.3);
  border-radius: 3px;
  color: #a8a29a;
  padding: 8px 14px;
}

/* ---------- History / bookmarks ---------- */
html[data-theme="bleach"] .history-item-card {
  background: linear-gradient(180deg, rgba(16, 16, 19, 0.96), rgba(6, 6, 8, 0.98));
  border: 1px solid rgba(200, 16, 46, 0.36);
  border-radius: 4px;
}

html[data-theme="bleach"] .history-item-card:hover {
  border-color: #e01b2e;
}

html[data-theme="bleach"] .btn-resume {
  background: #c8102e;
  border-radius: 3px;
  color: #fff;
}

html[data-theme="bleach"] .btn-resume:hover {
  background: #e01b2e;
}

html[data-theme="bleach"] .btn-danger {
  background: #8f0e1e;
  border: 1px solid #c8102e;
  border-radius: 3px;
  color: #fff;
}

html[data-theme="bleach"] .btn-danger:hover {
  background: #c8102e;
  border-color: #ff5b6b;
}

html[data-theme="bleach"] .bookmarks-tabs {
  background: #08080a;
  border: 1px solid rgba(200, 16, 46, 0.34);
  border-radius: 3px;
  padding: 4px;
}

html[data-theme="bleach"] .bm-tab {
  border-radius: 2px;
  color: #9e988f;
}

html[data-theme="bleach"] .bm-tab.active {
  background: #c8102e;
  color: #fff;
}

html[data-theme="bleach"] .empty-state {
  background: rgba(7, 7, 9, 0.88);
  border: 1px dashed rgba(200, 16, 46, 0.45);
  border-radius: 5px;
}

/* ---------- Player ---------- */
html[data-theme="bleach"] .back-btn {
  background: #0a0a0c;
  border: 1px solid rgba(200, 16, 46, 0.38);
  border-radius: 3px;
  color: #f2eee7;
}

html[data-theme="bleach"] .back-btn:hover {
  background: rgba(200, 16, 46, 0.14);
  border-color: #e01b2e;
  color: #fff;
}

html[data-theme="bleach"] .player-breadcrumbs {
  background: rgba(5, 5, 6, 0.68);
  border: 1px solid rgba(200, 16, 46, 0.28);
  border-radius: 3px;
  color: #b9b3aa;
}

html[data-theme="bleach"] .video-wrapper {
  border: 1px solid rgba(200, 16, 46, 0.4);
  border-radius: 4px;
  background: #050506;
}

html[data-theme="bleach"] .player-controls-row {
  background: rgba(8, 8, 10, 0.92);
  border: 1px solid rgba(200, 16, 46, 0.3);
  border-radius: 4px;
}

html[data-theme="bleach"] .player-source-switch {
  background: #050506;
  border: 1px solid rgba(200, 16, 46, 0.28);
  border-radius: 3px;
}

html[data-theme="bleach"] .source-btn {
  border-radius: 2px;
  color: #9e988f;
}

html[data-theme="bleach"] .source-btn.active {
  background: #c8102e;
  border-color: #e01b2e;
  color: #fff;
}

html[data-theme="bleach"] .btn-ctrl,
html[data-theme="bleach"] .btn-skip-quick,
html[data-theme="bleach"] .btn-skip-action,
html[data-theme="bleach"] .btn-skip-ghost,
html[data-theme="bleach"] .btn-mini-action,
html[data-theme="bleach"] .btn-shiki-link,
html[data-theme="bleach"] .btn-del-history {
  border-radius: 3px;
}

html[data-theme="bleach"] .btn-ctrl {
  background: #0a0a0c;
  border: 1px solid rgba(200, 16, 46, 0.35);
  color: #f2eee7;
}

html[data-theme="bleach"] .btn-ctrl:hover {
  background: rgba(200, 16, 46, 0.16);
  border-color: #e01b2e;
  color: #fff;
}

html[data-theme="bleach"] .btn-skip-quick {
  background: #08080a;
  border: 1px solid rgba(200, 16, 46, 0.28);
  color: #b9b3aa;
}

html[data-theme="bleach"] .btn-skip-quick:hover {
  border-color: #e01b2e;
  color: #fff;
}

html[data-theme="bleach"] .toggle-slider {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

html[data-theme="bleach"] .toggle-control input:checked + .toggle-slider {
  background: #c8102e;
}

html[data-theme="bleach"] .shiki-sync-bar {
  background: rgba(8, 8, 10, 0.82);
  border: 1px solid rgba(200, 16, 46, 0.28);
  border-radius: 3px;
  color: #9e988f;
}

html[data-theme="bleach"] .btn-mini-action {
  background: rgba(200, 16, 46, 0.16);
  border: 1px solid rgba(200, 16, 46, 0.45);
  color: #ff8a95;
}

html[data-theme="bleach"] .btn-mini-action:hover {
  background: #c8102e;
  color: #fff;
}

html[data-theme="bleach"] .dub-selector-card,
html[data-theme="bleach"] .episodes-card,
html[data-theme="bleach"] .related-card,
html[data-theme="bleach"] .characters-card,
html[data-theme="bleach"] .settings-section,
html[data-theme="bleach"] .shiki-user-card,
html[data-theme="bleach"] .profile-list,
html[data-theme="bleach"] .profile-stats,
html[data-theme="bleach"] .theme-card,
html[data-theme="bleach"] .modal-card,
html[data-theme="bleach"] .anime-info-card {
  background: linear-gradient(180deg, rgba(16, 16, 19, 0.95), rgba(6, 6, 8, 0.98));
  border: 1px solid rgba(200, 16, 46, 0.34);
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

html[data-theme="bleach"] .card-section-title h3 {
  color: #e9e4dc;
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-style: italic;
  font-weight: 600;
}

html[data-theme="bleach"] .card-section-title h3::before {
  content: none;
  display: none;
}

html[data-theme="bleach"] .badge-count,
html[data-theme="bleach"] .badge-sub {
  background: rgba(200, 16, 46, 0.12);
  border: 1px solid rgba(200, 16, 46, 0.3);
  border-radius: 2px;
  color: #b9b3aa;
}

html[data-theme="bleach"] .dub-pill {
  background: #0a0a0c;
  border: 1px solid rgba(200, 16, 46, 0.3);
  border-radius: 2px;
  color: #b9b3aa;
}

html[data-theme="bleach"] .dub-pill:hover {
  border-color: #e01b2e;
  color: #fff;
}

html[data-theme="bleach"] .dub-pill.active {
  background: #c8102e;
  border-color: #e01b2e;
  color: #fff;
}

html[data-theme="bleach"] .season-tab-btn {
  background: #0a0a0c;
  border: 1px solid rgba(200, 16, 46, 0.3);
  border-radius: 3px;
  color: #b9b3aa;
}

html[data-theme="bleach"] .season-tab-btn:hover {
  border-color: #e01b2e;
  color: #fff;
}

html[data-theme="bleach"] .season-tab-btn.active {
  background: #c8102e;
  border-color: #e01b2e;
  color: #fff;
}

html[data-theme="bleach"] .ep-btn {
  background: #0a0a0c;
  border: 1px solid rgba(200, 16, 46, 0.28);
  border-radius: 2px;
  color: #d5d0c8;
}

html[data-theme="bleach"] .ep-btn:hover {
  border-color: #e01b2e;
  color: #fff;
}

html[data-theme="bleach"] .ep-btn.active {
  background: #c8102e;
  border-color: #e01b2e;
  color: #fff;
}

html[data-theme="bleach"] .filler-legend {
  background: rgba(5, 5, 6, 0.75);
  border: 1px solid rgba(200, 16, 46, 0.26);
  border-radius: 3px;
}

html[data-theme="bleach"] .filler-chip {
  border-radius: 2px;
}

html[data-theme="bleach"] .anime-info-card h2 {
  color: #f2eee7;
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-style: italic;
  font-weight: 600;
}

html[data-theme="bleach"] .title-original,
html[data-theme="bleach"] .info-label {
  color: #8f8a83;
}

html[data-theme="bleach"] .info-val {
  color: #e9e4dc;
}

html[data-theme="bleach"] .poster-box {
  border: 1px solid rgba(200, 16, 46, 0.34);
  border-radius: 3px;
}

html[data-theme="bleach"] .score-overlay {
  background: rgba(4, 4, 5, 0.9);
  border: 1px solid rgba(200, 16, 46, 0.6);
  border-radius: 2px;
  color: #f2eee7;
}

html[data-theme="bleach"] .meta-badge {
  background: rgba(200, 16, 46, 0.1);
  border: 1px solid rgba(200, 16, 46, 0.28);
  border-radius: 2px;
  color: #c9c4bb;
}

html[data-theme="bleach"] .info-table {
  border-color: rgba(200, 16, 46, 0.2);
}

html[data-theme="bleach"] .synopsis-box p,
html[data-theme="bleach"] .synopsis-box h4 {
  color: #b9b3aa;
}

html[data-theme="bleach"] .btn-shiki-link {
  background: rgba(200, 16, 46, 0.12);
  border: 1px solid rgba(200, 16, 46, 0.38);
  border-radius: 3px;
  color: #ff8a95;
}

html[data-theme="bleach"] .btn-shiki-link:hover {
  background: #c8102e;
  color: #fff;
}

html[data-theme="bleach"] .related-card-item,
html[data-theme="bleach"] .character-card {
  background: rgba(7, 7, 9, 0.82);
  border: 1px solid rgba(200, 16, 46, 0.24);
  border-radius: 3px;
}

/* ---------- Profile ---------- */
html[data-theme="bleach"] .profile-hero {
  background: rgba(7, 7, 9, 0.9);
  border: 1px solid rgba(200, 16, 46, 0.34);
  border-radius: 5px;
  overflow: hidden;
}

html[data-theme="bleach"] .profile-banner {
  border-radius: 4px 4px 0 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(200, 16, 46, 0.32), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(255, 51, 75, 0.14), transparent 46%),
    linear-gradient(135deg, rgba(18, 18, 21, 0.98), rgba(5, 5, 6, 0.98));
}

html[data-theme="bleach"] .profile-avatar {
  background: #08080a;
  border: 2px solid #c8102e;
  color: #f2eee7;
  box-shadow: 0 0 0 4px rgba(3, 3, 4, 0.75), 0 0 24px rgba(200, 16, 46, 0.25);
}

html[data-theme="bleach"] .profile-identity h1 {
  color: #f2eee7;
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-style: italic;
}

html[data-theme="bleach"] .profile-lists-header h2 {
  color: #f2eee7;
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-style: italic;
}

html[data-theme="bleach"] .profile-list-count {
  background: rgba(200, 16, 46, 0.12);
  border-color: rgba(200, 16, 46, 0.34);
  border-radius: 2px;
  color: #ff8a95;
}

html[data-theme="bleach"] .profile-edit-banner,
html[data-theme="bleach"] .profile-upload-banner,
html[data-theme="bleach"] .profile-edit-avatar-row .profile-avatar {
  border-radius: 3px;
}

/* ---------- Themes picker ---------- */
html[data-theme="bleach"] .theme-card {
  border-radius: 4px;
}

html[data-theme="bleach"] .theme-card.active {
  border-color: #e01b2e;
  box-shadow: 0 0 0 1px #e01b2e, 0 16px 36px rgba(0, 0, 0, 0.5);
}

html[data-theme="bleach"] .theme-preview {
  border-radius: 3px;
  border-color: rgba(200, 16, 46, 0.28);
}

html[data-theme="bleach"] .theme-preview[data-theme="bleach"] {
  background:
    linear-gradient(180deg, rgba(3, 3, 4, 0.18), rgba(3, 3, 4, 0.82)),
    url("bleach-bg-hd.jpg") center 30% / cover no-repeat !important;
  border-color: rgba(224, 27, 46, 0.72) !important;
}

html[data-theme="bleach"] .theme-check {
  border-radius: 2px;
}

/* ---------- Buttons / forms / modals / toasts ---------- */
html[data-theme="bleach"] .btn-primary,
html[data-theme="bleach"] .login-guest-btn {
  background: #c8102e;
  border: 1px solid #e01b2e;
  border-radius: 3px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="bleach"] .btn-primary:hover {
  background: #e01b2e;
  color: #fff;
}

html[data-theme="bleach"] .btn-skip-action {
  background: #c8102e;
  border: 1px solid #e01b2e;
  border-radius: 3px;
  color: #fff;
}

html[data-theme="bleach"] .btn-skip-ghost {
  background: #08080a;
  border: 1px solid rgba(200, 16, 46, 0.32);
  border-radius: 3px;
  color: #c9c4bb;
}

html[data-theme="bleach"] input,
html[data-theme="bleach"] textarea,
html[data-theme="bleach"] select {
  background-color: #08080a;
  border: 1px solid rgba(200, 16, 46, 0.3);
  border-radius: 3px;
  color: #f2eee7;
}

html[data-theme="bleach"] input::placeholder,
html[data-theme="bleach"] textarea::placeholder {
  color: #7f7a73;
}

html[data-theme="bleach"] input:focus,
html[data-theme="bleach"] textarea:focus,
html[data-theme="bleach"] select:focus {
  border-color: #e01b2e;
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.16);
}

html[data-theme="bleach"] .modal-card {
  border-radius: 5px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.7);
}

html[data-theme="bleach"] .modal-header {
  border-bottom-color: rgba(200, 16, 46, 0.24);
}

html[data-theme="bleach"] .modal-header h3 {
  color: #f2eee7;
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-style: italic;
  letter-spacing: 0.04em;
}

html[data-theme="bleach"] .modal-close {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  color: #9e988f;
}

html[data-theme="bleach"] .modal-close:hover {
  background: rgba(200, 16, 46, 0.16);
  color: #fff;
}

html[data-theme="bleach"] .settings-section {
  background: rgba(7, 7, 9, 0.72);
  border: 1px solid rgba(200, 16, 46, 0.24);
  border-radius: 3px;
}

html[data-theme="bleach"] .settings-section h3 {
  color: #f2eee7;
}

html[data-theme="bleach"] .login-fields input {
  border-radius: 3px;
}

html[data-theme="bleach"] .toast {
  background: linear-gradient(180deg, rgba(16, 16, 19, 0.98), rgba(5, 5, 6, 0.98));
  border: 1px solid rgba(200, 16, 46, 0.44);
  border-radius: 3px;
  color: #f2eee7;
}

html[data-theme="bleach"] .image-search-drop,
html[data-theme="bleach"] .image-result-card {
  background: rgba(7, 7, 9, 0.8);
  border-color: rgba(200, 16, 46, 0.3);
  border-radius: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
  html[data-theme="bleach"] .navbar {
    height: 66px;
  }
  html[data-theme="bleach"] .nav-btn {
    font-size: 10.5px;
    padding: 7px 9px;
    gap: 0;
  }
  html[data-theme="bleach"] .nav-btn::before {
    display: none;
  }
  html[data-theme="bleach"] .search-box {
    width: 210px;
  }
  html[data-theme="bleach"] #image-search-open-btn {
    display: none;
  }
}

@media (max-width: 900px) {
  html[data-theme="bleach"] .logo-text {
    display: inline;
    font-size: 16px;
    letter-spacing: 0.08em;
  }
  html[data-theme="bleach"] .nav-btn {
    font-size: 10px;
    padding: 6px 7px;
  }
  html[data-theme="bleach"] .search-box {
    width: 170px;
  }
}

@media (max-width: 768px) {
  html[data-theme="bleach"] .main-content {
    padding: 96px 14px 50px;
  }
  html[data-theme="bleach"] .navbar {
    width: 100%;
    height: 62px;
    margin: 0;
    top: 0;
    border-radius: 0;
  }
  html[data-theme="bleach"] .nav-container {
    padding: 0 14px;
    gap: 10px;
  }
  html[data-theme="bleach"] .logo-text {
    display: inline;
    font-size: 16px;
    letter-spacing: 0.08em;
  }
  html[data-theme="bleach"] .nav-logo-img {
    width: 34px;
    height: 34px;
  }
  html[data-theme="bleach"] .search-box {
    width: auto;
    max-width: 230px;
  }
  html[data-theme="bleach"] .icon-btn,
  html[data-theme="bleach"] .user-menu-btn {
    width: 34px;
    height: 34px;
  }
  html[data-theme="bleach"] .catalog-header {
    padding: 12px 15px 14px;
  }
  html[data-theme="bleach"] .catalog-title-box h1 {
    font-size: 21px;
  }
  html[data-theme="bleach"] .page-header-simple {
    padding: 12px 15px;
  }
  html[data-theme="bleach"] .page-header-simple h1 {
    font-size: 18px;
  }
  html[data-theme="bleach"] .anime-grid {
    gap: 12px;
  }
  html[data-theme="bleach"] .anime-card {
    border-radius: 3px;
  }
}

@media (max-width: 560px) {
  html[data-theme="bleach"] .logo-text {
    font-size: 14px;
  }
  html[data-theme="bleach"] .nav-right {
    gap: 7px;
    min-width: 0;
  }
  html[data-theme="bleach"] .search-box {
    flex: 1 1 auto;
    min-width: 0;
  }
  html[data-theme="bleach"] #image-search-open-btn {
    display: none !important;
  }
  html[data-theme="bleach"] .main-content {
    padding-top: 86px;
  }
  html[data-theme="bleach"] .catalog-title-box h1 {
    font-size: 18px;
  }
  html[data-theme="bleach"] .custom-select {
    min-width: 0;
    font-size: 10.5px;
    padding: 7px 24px 7px 9px;
    background-position: right 7px center;
    background-size: 11px;
  }
  html[data-theme="bleach"] .filters-bar {
    gap: 6px;
    flex-wrap: wrap;
  }
  html[data-theme="bleach"] .filter-group label {
    display: none;
  }
  html[data-theme="bleach"] .catalog-title-box p {
    font-size: 11.5px;
  }
  html[data-theme="bleach"] .section-header h2,
  html[data-theme="bleach"] .page-header-simple h1 {
    font-size: 16px;
  }
  html[data-theme="bleach"] .continue-card {
    min-height: 108px;
  }
  html[data-theme="bleach"] .continue-poster {
    width: 80px;
    height: 108px;
  }
  html[data-theme="bleach"] .continue-title {
    font-size: 13.5px;
  }
  html[data-theme="bleach"] .anime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
