/* ============================================================
   AniJar — Grand Line: Сонячний Океан
   Dark photo layout: full-bleed One Piece artwork, torn-paper
   section rails, navy glass panels and straw-hat iconography.
   ============================================================ */

html[data-theme="grandlineocean"] {
  --gl-ink: #f8efd9;
  --gl-ink-soft: #d9c9a5;
  --gl-muted: #a9c2cc;
  --gl-gold: #f3c75a;
  --gl-gold-bright: #ffdd82;
  --gl-gold-deep: #b98233;
  --gl-red: #b7352a;
  --gl-panel: rgba(5, 20, 34, 0.88);
  --gl-panel-strong: rgba(4, 15, 27, 0.96);
  --gl-panel-soft: rgba(8, 29, 49, 0.82);
  --gl-border: rgba(227, 182, 87, 0.42);
  --gl-border-strong: rgba(243, 199, 90, 0.82);
  --gl-teal: #4fc3d8;
  --gl-shadow: 0 20px 48px rgba(0, 0, 0, 0.46);
  --gl-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="grandlineocean"] body {
  background-color: #04111d;
  background-image:
    linear-gradient(180deg,
      rgba(3, 12, 22, 0.72) 0%,
      rgba(3, 12, 22, 0.48) 10%,
      rgba(3, 12, 22, 0.20) 30%,
      rgba(3, 12, 22, 0.42) 58%,
      rgba(3, 12, 22, 0.82) 82%,
      #04111d 100%),
    radial-gradient(ellipse 75% 55% at 50% -5%, rgba(255, 205, 110, 0.14), transparent 62%),
    url("grandline-ocean-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="grandlineocean"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(2, 9, 16, 0.92) 0%,
      rgba(2, 9, 16, 0.28) 12%,
      transparent 26%,
      transparent 74%,
      rgba(2, 9, 16, 0.28) 88%,
      rgba(2, 9, 16, 0.92) 100%),
    radial-gradient(ellipse at 50% 32%, transparent 36%, rgba(2, 9, 16, 0.62) 100%);
}

html[data-theme="grandlineocean"] body::after {
  content: none;
  display: none;
}

html[data-theme="grandlineocean"] ::selection {
  background: var(--gl-gold);
  color: #1b1104;
}

html[data-theme="grandlineocean"] ::-webkit-scrollbar-track {
  background: #04111d;
}

html[data-theme="grandlineocean"] ::-webkit-scrollbar-thumb {
  background: #6f4e24;
  border-radius: 999px;
}

html[data-theme="grandlineocean"] ::-webkit-scrollbar-thumb:hover {
  background: var(--gl-gold-deep);
}

html[data-theme="grandlineocean"] :focus-visible {
  outline: 2px solid var(--gl-gold);
  outline-offset: 2px;
}

/* Old photo pillars and banner are replaced by the full-page artwork */
html[data-theme="grandlineocean"] .grandline-side,
html[data-theme="grandlineocean"] .grandline-hero {
  display: none !important;
}

/* ---------- Floating navbar ---------- */
html[data-theme="grandlineocean"] .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(33, 21, 10, 0.95), rgba(7, 21, 35, 0.94));
  border: 1px solid var(--gl-border);
  border-radius: 18px;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 227, 160, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px) saturate(1.15);
}

html[data-theme="grandlineocean"] .nav-container {
  max-width: none;
  padding: 0 18px;
  gap: 16px;
}

html[data-theme="grandlineocean"] .logo {
  gap: 9px;
}

html[data-theme="grandlineocean"] .nav-logo-img {
  display: none;
}

html[data-theme="grandlineocean"] .logo::before {
  content: "";
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: url("straw-hat.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="grandlineocean"] .logo:hover::before {
  transform: rotate(0deg) scale(1.06);
}

html[data-theme="grandlineocean"] .logo-text {
  color: var(--gl-gold-bright);
  font-family: "Russo One", "Oswald", sans-serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(245, 197, 66, 0.4), 0 2px 0 rgba(0, 0, 0, 0.35);
}

html[data-theme="grandlineocean"] .logo-text .accent {
  color: #fff1c4;
}

html[data-theme="grandlineocean"] .nav-links {
  gap: 4px;
}

html[data-theme="grandlineocean"] .nav-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  color: #d7c7a4;
  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="grandlineocean"] .nav-btn:hover {
  background: rgba(245, 197, 66, 0.10);
  border-color: rgba(245, 197, 66, 0.25);
  color: var(--gl-gold-bright);
}

html[data-theme="grandlineocean"] .nav-btn.active {
  background: linear-gradient(180deg, #ffdd82, #e9b944);
  border-color: #f7d270;
  color: #231505;
  box-shadow: 0 4px 16px rgba(245, 197, 66, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Thematic line icons */
html[data-theme="grandlineocean"] .nav-btn .ui-icon {
  display: none;
}

html[data-theme="grandlineocean"] .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="grandlineocean"] .nav-btn[data-page="catalog"]::before {
  -webkit-mask-image: url("straw-hat.svg");
  mask-image: url("straw-hat.svg");
}

html[data-theme="grandlineocean"] .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="grandlineocean"] .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="grandlineocean"] .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="grandlineocean"] .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="grandlineocean"] .search-box input {
  background: rgba(4, 16, 29, 0.72);
  border: 1px solid var(--gl-border);
  border-radius: 999px;
  color: var(--gl-ink);
  font-size: 13px;
  padding: 9px 38px 9px 16px;
}

html[data-theme="grandlineocean"] .search-box input::placeholder {
  color: #8fa7b1;
}

html[data-theme="grandlineocean"] .search-box input:focus {
  border-color: var(--gl-gold);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.14);
}

html[data-theme="grandlineocean"] .search-btn,
html[data-theme="grandlineocean"] .search-clear-btn,
html[data-theme="grandlineocean"] .icon-btn,
html[data-theme="grandlineocean"] .user-menu-btn {
  color: var(--gl-gold);
}

html[data-theme="grandlineocean"] .icon-btn,
html[data-theme="grandlineocean"] .user-menu-btn {
  width: 38px;
  height: 38px;
  background: rgba(4, 16, 29, 0.72);
  border: 1px solid var(--gl-border);
  border-radius: 50%;
}

html[data-theme="grandlineocean"] .icon-btn:hover,
html[data-theme="grandlineocean"] .user-menu-btn:hover {
  background: rgba(245, 197, 66, 0.14);
  border-color: var(--gl-gold);
  color: var(--gl-gold-bright);
}

html[data-theme="grandlineocean"] .user-menu-avatar {
  background: rgba(4, 16, 29, 0.9);
  border-color: var(--gl-gold);
  color: var(--gl-gold);
}

html[data-theme="grandlineocean"] .user-menu-dropdown {
  background: linear-gradient(180deg, rgba(9, 27, 45, 0.98), rgba(4, 15, 27, 0.98));
  border: 1px solid var(--gl-border);
  border-radius: 16px;
  box-shadow: var(--gl-shadow);
  backdrop-filter: blur(16px);
}

html[data-theme="grandlineocean"] .user-menu-item {
  color: var(--gl-ink);
  border-radius: 10px;
}

html[data-theme="grandlineocean"] .user-menu-item:hover {
  background: rgba(245, 197, 66, 0.12);
  color: var(--gl-gold-bright);
}

html[data-theme="grandlineocean"] .user-menu-divider {
  background: rgba(245, 197, 66, 0.16);
}

/* ---------- Main canvas ---------- */
html[data-theme="grandlineocean"] .main-content {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  padding: 150px 24px 70px;
}

html[data-theme="grandlineocean"] .page-view {
  animation: glPageIn 0.35s ease both;
}

@keyframes glPageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Torn-paper rails ---------- */
html[data-theme="grandlineocean"] .section-header,
html[data-theme="grandlineocean"] .catalog-header,
html[data-theme="grandlineocean"] .page-header-simple {
  position: relative;
  isolation: isolate;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html[data-theme="grandlineocean"] .section-header::before,
html[data-theme="grandlineocean"] .catalog-header::before,
html[data-theme="grandlineocean"] .page-header-simple::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #e8d2a1;
  background-image: url("grandline-paper.png");
  background-size: 460px auto;
  background-position: center;
  clip-path: var(--gl-torn);
  box-shadow:
    inset 0 0 0 1px rgba(92, 60, 25, 0.6),
    inset 0 0 54px rgba(104, 69, 30, 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="grandlineocean"] .section-header {
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  margin: 0 4px 14px;
}

html[data-theme="grandlineocean"] .section-header h2,
html[data-theme="grandlineocean"] .page-header-simple h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2b1a08;
  font-family: "Russo One", "Oswald", sans-serif;
  font-size: 18px;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 246, 215, 0.45);
}

html[data-theme="grandlineocean"] .section-header h2 > .ui-icon,
html[data-theme="grandlineocean"] .page-header-simple h1 > .ui-icon {
  display: none;
}

html[data-theme="grandlineocean"] .section-header h2::before,
html[data-theme="grandlineocean"] .page-header-simple h1::before {
  content: "";
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  background: url("straw-hat.svg") center / contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(255, 246, 215, 0.45));
}

html[data-theme="grandlineocean"] .section-header .section-sub {
  color: #624522;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Continue watching ---------- */
html[data-theme="grandlineocean"] .shelf-section {
  margin-bottom: 28px;
  padding: 14px 16px 16px;
  background:
    linear-gradient(180deg, rgba(11, 36, 60, 0.9) 0%, rgba(4, 16, 29, 0.94) 100%);
  border: 1px solid var(--gl-border);
  border-radius: 24px;
  box-shadow:
    var(--gl-shadow),
    inset 0 1px 0 rgba(255, 226, 158, 0.12);
  backdrop-filter: blur(14px);
}

html[data-theme="grandlineocean"] .shelf-section::before {
  display: none;
  content: none;
}

html[data-theme="grandlineocean"] .continue-cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

html[data-theme="grandlineocean"] .continue-card {
  min-height: 126px;
  background: linear-gradient(180deg, rgba(11, 40, 65, 0.94), rgba(4, 18, 32, 0.97));
  border: 1px solid rgba(227, 182, 87, 0.46);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}

html[data-theme="grandlineocean"] .continue-card:hover {
  transform: translateY(-3px);
  border-color: var(--gl-gold);
  box-shadow:
    0 0 0 1px rgba(243, 199, 90, 0.55),
    0 16px 30px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(243, 199, 90, 0.1);
}

html[data-theme="grandlineocean"] .continue-poster {
  width: 92px;
  height: 126px;
  border-radius: 15px 0 0 15px;
}

html[data-theme="grandlineocean"] .continue-info {
  padding: 12px 13px;
  gap: 10px;
}

html[data-theme="grandlineocean"] .continue-title {
  color: var(--gl-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="grandlineocean"] .continue-ep {
  color: var(--gl-gold);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

html[data-theme="grandlineocean"] .continue-progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.11);
  border-radius: 999px;
}

html[data-theme="grandlineocean"] .continue-progress-fill {
  background: linear-gradient(90deg, #e7b54a, #ffe294);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(245, 197, 66, 0.45);
}

/* ---------- Catalog rail with filters ---------- */
html[data-theme="grandlineocean"] .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="grandlineocean"] .catalog-title-box h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2b1a08;
  font-family: "Russo One", "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, 246, 215, 0.45);
}

html[data-theme="grandlineocean"] .catalog-title-box h1::before {
  content: "";
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  background: url("straw-hat.svg") center / contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(255, 246, 215, 0.45));
}

html[data-theme="grandlineocean"] .catalog-title-box p {
  margin-top: 3px;
  color: #5e4322;
  font-size: 12.5px;
  font-weight: 600;
}

html[data-theme="grandlineocean"] .filters-bar {
  gap: 10px;
}

html[data-theme="grandlineocean"] .filter-group {
  color: #4a321c;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
}

html[data-theme="grandlineocean"] .custom-select,
html[data-theme="grandlineocean"] select {
  background-color: #0a1c2d;
  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 #8a6332;
  border-radius: 999px;
  color: #f5e3b4;
  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="grandlineocean"] .custom-select:hover,
html[data-theme="grandlineocean"] select:hover {
  border-color: var(--gl-gold);
  background-color: #11283e;
}

html[data-theme="grandlineocean"] .custom-select:focus,
html[data-theme="grandlineocean"] select:focus {
  border-color: var(--gl-gold);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.14);
}

/* ---------- Anime grid and cards ---------- */
html[data-theme="grandlineocean"] .anime-grid {
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 18px;
}

html[data-theme="grandlineocean"] .anime-card {
  padding: 6px;
  background: linear-gradient(180deg, rgba(9, 32, 53, 0.93), rgba(3, 14, 25, 0.97));
  border: 1px solid rgba(227, 182, 87, 0.46);
  border-radius: 16px;
  color: var(--gl-ink);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(6px);
}

html[data-theme="grandlineocean"] .anime-card:hover {
  transform: translateY(-5px);
  border-color: var(--gl-gold);
  box-shadow:
    0 0 0 1px rgba(243, 199, 90, 0.55),
    0 20px 38px rgba(0, 0, 0, 0.5),
    0 0 26px rgba(243, 199, 90, 0.12);
}

html[data-theme="grandlineocean"] .card-poster-wrap {
  border: 1px solid rgba(227, 182, 87, 0.32);
  border-radius: 12px;
  background: #03101b;
}

html[data-theme="grandlineocean"] .card-poster-wrap::before {
  content: none;
  display: none;
}

html[data-theme="grandlineocean"] .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, #ffe08a, #e9b944);
  border: 1px solid #f9de94;
  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="grandlineocean"] .anime-card:hover .card-poster-wrap::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

html[data-theme="grandlineocean"] .card-poster {
  filter: none;
  border-radius: 11px;
}

html[data-theme="grandlineocean"] .card-details {
  padding: 10px 6px 8px;
  border-top: 1px solid rgba(227, 182, 87, 0.24);
}

html[data-theme="grandlineocean"] .card-details::before {
  display: none;
  content: none;
}

html[data-theme="grandlineocean"] .card-title {
  margin-bottom: 7px;
  color: var(--gl-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="grandlineocean"] .card-meta {
  color: #9db7c2;
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 11px;
}

html[data-theme="grandlineocean"] .badge-score {
  top: 8px;
  right: 8px;
  background: linear-gradient(180deg, #ffe08a, #eebc49);
  border: 1px solid #a97b27;
  border-radius: 8px;
  color: #231505;
  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="grandlineocean"] .badge-kind-floating {
  bottom: 8px;
  left: 8px;
  background: rgba(3, 15, 27, 0.86);
  border: 1px solid rgba(227, 182, 87, 0.48);
  border-radius: 999px;
  color: #f1e3c5;
  font-size: 10px;
  padding: 3px 8px;
  backdrop-filter: blur(6px);
}

html[data-theme="grandlineocean"] .badge-status-ongoing {
  top: 8px;
  left: 8px;
  background: rgba(245, 197, 66, 0.94);
  border-radius: 999px;
  color: #231505;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
}

/* ---------- Pagination ---------- */
html[data-theme="grandlineocean"] .pagination-bar {
  margin-top: 30px;
  gap: 12px;
}

html[data-theme="grandlineocean"] .page-btn {
  background: rgba(5, 20, 34, 0.9);
  border: 1px solid var(--gl-border);
  border-radius: 999px;
  color: var(--gl-ink);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

html[data-theme="grandlineocean"] .page-btn:hover:not(:disabled) {
  background: rgba(245, 197, 66, 0.14);
  border-color: var(--gl-gold);
  color: var(--gl-gold-bright);
}

html[data-theme="grandlineocean"] .page-indicator {
  background: rgba(5, 20, 34, 0.78);
  border: 1px solid rgba(227, 182, 87, 0.26);
  border-radius: 999px;
  color: #d7c7a4;
  font-size: 12px;
  padding: 8px 16px;
}

/* ---------- Page rails for secondary pages ---------- */
html[data-theme="grandlineocean"] .page-header-simple {
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 15px 22px;
}

html[data-theme="grandlineocean"] .page-header-simple h1 {
  font-size: 22px;
  letter-spacing: 0.05em;
}

html[data-theme="grandlineocean"] .page-header-simple p {
  color: #5e4322;
  font-size: 12.5px;
  font-weight: 600;
}

html[data-theme="grandlineocean"] .btn-danger {
  background: linear-gradient(180deg, #b7352a, #8a2119);
  border: 1px solid #d16250;
  border-radius: 999px;
  color: #ffe9d9;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

html[data-theme="grandlineocean"] .btn-danger:hover {
  background: linear-gradient(180deg, #d24b38, #a92a1e);
  border-color: #ffad8f;
  color: #fff;
}

/* ---------- History / bookmarks ---------- */
html[data-theme="grandlineocean"] .history-cards-grid {
  gap: 16px;
}

html[data-theme="grandlineocean"] .history-item-card {
  background: linear-gradient(180deg, rgba(9, 32, 53, 0.92), rgba(4, 16, 29, 0.96));
  border: 1px solid var(--gl-border);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

html[data-theme="grandlineocean"] .history-item-card:hover {
  border-color: var(--gl-gold);
  box-shadow: var(--gl-shadow);
}

html[data-theme="grandlineocean"] .history-item-title {
  color: var(--gl-ink);
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

html[data-theme="grandlineocean"] .btn-resume {
  background: linear-gradient(180deg, #ffe08a, #e9b944);
  border-radius: 999px;
  color: #231505;
  font-weight: 800;
}

html[data-theme="grandlineocean"] .btn-resume:hover {
  background: linear-gradient(180deg, #ffe9a8, #f3c75a);
}

html[data-theme="grandlineocean"] .bookmarks-tabs {
  background: rgba(5, 20, 34, 0.78);
  border: 1px solid var(--gl-border);
  border-radius: 999px;
  padding: 5px;
  display: inline-flex;
  gap: 4px;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}

html[data-theme="grandlineocean"] .bm-tab {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--gl-muted);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 15px;
}

html[data-theme="grandlineocean"] .bm-tab:hover {
  color: var(--gl-gold-bright);
}

html[data-theme="grandlineocean"] .bm-tab.active {
  background: linear-gradient(180deg, #ffe08a, #e9b944);
  color: #231505;
  box-shadow: 0 4px 14px rgba(245, 197, 66, 0.24);
}

html[data-theme="grandlineocean"] .empty-state {
  background: var(--gl-panel);
  border: 1px dashed var(--gl-border);
  border-radius: 20px;
  padding: 36px 24px;
  color: var(--gl-muted);
  backdrop-filter: blur(10px);
}

html[data-theme="grandlineocean"] .empty-state h3 {
  color: var(--gl-ink);
  font-family: "Russo One", "Oswald", sans-serif;
  font-size: 17px;
  letter-spacing: 0.04em;
}

/* ---------- Player page ---------- */
html[data-theme="grandlineocean"] .player-page-top {
  margin-bottom: 18px;
}

html[data-theme="grandlineocean"] .back-btn {
  background: rgba(5, 20, 34, 0.85);
  border: 1px solid var(--gl-border);
  border-radius: 999px;
  color: var(--gl-ink);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  backdrop-filter: blur(8px);
}

html[data-theme="grandlineocean"] .back-btn:hover {
  border-color: var(--gl-gold);
  color: var(--gl-gold-bright);
  background: rgba(245, 197, 66, 0.12);
}

html[data-theme="grandlineocean"] .player-breadcrumbs {
  color: var(--gl-muted);
  font-size: 12px;
  background: rgba(4, 16, 29, 0.62);
  border: 1px solid rgba(227, 182, 87, 0.22);
  border-radius: 999px;
  padding: 7px 14px;
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

html[data-theme="grandlineocean"] .video-wrapper {
  background: var(--gl-panel-strong);
  border: 1px solid var(--gl-border);
  border-radius: 20px;
  box-shadow: var(--gl-shadow);
}

html[data-theme="grandlineocean"] .player-controls-row {
  background: var(--gl-panel);
  border: 1px solid var(--gl-border);
  border-radius: 16px;
  padding: 10px 12px;
  backdrop-filter: blur(10px);
}

html[data-theme="grandlineocean"] .player-source-switch {
  background: rgba(3, 14, 25, 0.8);
  border: 1px solid rgba(227, 182, 87, 0.3);
  border-radius: 999px;
  padding: 3px;
}

html[data-theme="grandlineocean"] .source-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--gl-muted);
  font-size: 11px;
  padding: 5px 11px;
}

html[data-theme="grandlineocean"] .source-btn.active {
  background: linear-gradient(180deg, #ffe08a, #e9b944);
  border-color: #f7d270;
  color: #231505;
  box-shadow: 0 3px 10px rgba(245, 197, 66, 0.24);
}

html[data-theme="grandlineocean"] .btn-ctrl,
html[data-theme="grandlineocean"] .btn-skip-quick,
html[data-theme="grandlineocean"] .btn-skip-action,
html[data-theme="grandlineocean"] .btn-skip-ghost,
html[data-theme="grandlineocean"] .btn-mini-action,
html[data-theme="grandlineocean"] .btn-shiki-link,
html[data-theme="grandlineocean"] .btn-del-history {
  border-radius: 999px;
}

html[data-theme="grandlineocean"] .btn-ctrl {
  background: rgba(4, 16, 29, 0.78);
  border: 1px solid rgba(227, 182, 87, 0.36);
  color: var(--gl-ink);
  padding: 8px 15px;
}

html[data-theme="grandlineocean"] .btn-ctrl:hover {
  background: rgba(245, 197, 66, 0.16);
  border-color: var(--gl-gold);
  color: var(--gl-gold-bright);
}

html[data-theme="grandlineocean"] .btn-skip-quick {
  background: rgba(4, 16, 29, 0.7);
  border: 1px solid rgba(227, 182, 87, 0.28);
  color: var(--gl-muted);
}

html[data-theme="grandlineocean"] .btn-skip-quick:hover {
  border-color: var(--gl-gold);
  color: var(--gl-gold-bright);
}

html[data-theme="grandlineocean"] .toggle-control input:checked + .toggle-slider {
  background: linear-gradient(90deg, #d9a63b, #f3c75a);
}

html[data-theme="grandlineocean"] .toggle-slider {
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="grandlineocean"] .shiki-sync-bar {
  background: rgba(5, 20, 34, 0.84);
  border: 1px solid rgba(227, 182, 87, 0.26);
  border-radius: 14px;
  color: var(--gl-muted);
}

html[data-theme="grandlineocean"] .btn-mini-action {
  background: rgba(245, 197, 66, 0.14);
  border: 1px solid rgba(245, 197, 66, 0.42);
  color: var(--gl-gold-bright);
}

html[data-theme="grandlineocean"] .btn-mini-action:hover {
  background: var(--gl-gold);
  color: #231505;
}

html[data-theme="grandlineocean"] .dub-selector-card,
html[data-theme="grandlineocean"] .episodes-card,
html[data-theme="grandlineocean"] .related-card,
html[data-theme="grandlineocean"] .characters-card,
html[data-theme="grandlineocean"] .settings-section,
html[data-theme="grandlineocean"] .shiki-user-card,
html[data-theme="grandlineocean"] .profile-list,
html[data-theme="grandlineocean"] .profile-stats,
html[data-theme="grandlineocean"] .theme-card,
html[data-theme="grandlineocean"] .modal-card {
  background: linear-gradient(180deg, rgba(9, 32, 53, 0.92), rgba(4, 16, 29, 0.96));
  border: 1px solid var(--gl-border);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

html[data-theme="grandlineocean"] .dub-selector-card,
html[data-theme="grandlineocean"] .episodes-card,
html[data-theme="grandlineocean"] .related-card,
html[data-theme="grandlineocean"] .characters-card {
  padding: 18px;
  margin-bottom: 18px;
}

html[data-theme="grandlineocean"] .anime-info-card {
  background: linear-gradient(180deg, rgba(9, 32, 53, 0.92), rgba(4, 16, 29, 0.96));
  border: 1px solid var(--gl-border);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

html[data-theme="grandlineocean"] .card-section-title h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gl-gold-bright);
  font-family: "Russo One", "Oswald", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html[data-theme="grandlineocean"] .card-section-title h3::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: url("straw-hat.svg") center / contain no-repeat;
}

html[data-theme="grandlineocean"] .card-section-title h3 > .ui-icon {
  display: none;
}

html[data-theme="grandlineocean"] .badge-count,
html[data-theme="grandlineocean"] .badge-sub {
  background: rgba(245, 197, 66, 0.10);
  border: 1px solid rgba(245, 197, 66, 0.22);
  border-radius: 999px;
  color: #c9b889;
  font-size: 11px;
  padding: 3px 9px;
}

html[data-theme="grandlineocean"] .dub-pill {
  background: rgba(4, 16, 29, 0.72);
  border: 1px solid rgba(227, 182, 87, 0.28);
  border-radius: 999px;
  color: var(--gl-muted);
  font-size: 12px;
  padding: 7px 13px;
}

html[data-theme="grandlineocean"] .dub-pill:hover {
  background: rgba(245, 197, 66, 0.12);
  border-color: rgba(245, 197, 66, 0.5);
  color: var(--gl-gold-bright);
}

html[data-theme="grandlineocean"] .dub-pill.active {
  background: linear-gradient(180deg, #ffe08a, #e9b944);
  border-color: #f7d270;
  color: #231505;
  box-shadow: 0 4px 14px rgba(245, 197, 66, 0.24);
}

html[data-theme="grandlineocean"] .season-tab-btn {
  background: rgba(4, 16, 29, 0.72);
  border: 1px solid rgba(227, 182, 87, 0.28);
  border-radius: 999px;
  color: var(--gl-muted);
  font-size: 12px;
  padding: 7px 14px;
}

html[data-theme="grandlineocean"] .season-tab-btn:hover {
  border-color: var(--gl-gold);
  color: var(--gl-gold-bright);
}

html[data-theme="grandlineocean"] .season-tab-btn.active {
  background: linear-gradient(180deg, #ffe08a, #e9b944);
  border-color: #f7d270;
  color: #231505;
  box-shadow: 0 4px 14px rgba(245, 197, 66, 0.24);
}

html[data-theme="grandlineocean"] .episodes-info,
html[data-theme="grandlineocean"] .episodes-info span {
  color: var(--gl-muted);
}

html[data-theme="grandlineocean"] .ep-btn {
  background: rgba(4, 16, 29, 0.72);
  border: 1px solid rgba(227, 182, 87, 0.28);
  border-radius: 12px;
  color: var(--gl-ink-soft);
}

html[data-theme="grandlineocean"] .ep-btn:hover {
  border-color: var(--gl-gold);
  color: var(--gl-gold-bright);
}

html[data-theme="grandlineocean"] .ep-btn.active {
  background: linear-gradient(180deg, #ffe08a, #e9b944);
  border-color: #f7d270;
  color: #231505;
  box-shadow: 0 4px 14px rgba(245, 197, 66, 0.24);
}

html[data-theme="grandlineocean"] .filler-legend {
  background: rgba(4, 16, 29, 0.65);
  border: 1px solid rgba(227, 182, 87, 0.22);
  border-radius: 12px;
}

html[data-theme="grandlineocean"] .filler-chip {
  border-radius: 999px;
}

html[data-theme="grandlineocean"] .anime-info-card h2 {
  color: var(--gl-ink);
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

html[data-theme="grandlineocean"] .title-original,
html[data-theme="grandlineocean"] .info-label {
  color: #8fa7b1;
}

html[data-theme="grandlineocean"] .info-val {
  color: var(--gl-ink);
}

html[data-theme="grandlineocean"] .poster-box {
  border: 1px solid rgba(227, 182, 87, 0.32);
  border-radius: 14px;
}

html[data-theme="grandlineocean"] .score-overlay {
  background: rgba(245, 197, 66, 0.94);
  border: 1px solid #a97b27;
  border-radius: 9px;
  color: #231505;
  font-weight: 800;
  backdrop-filter: none;
}

html[data-theme="grandlineocean"] .meta-badge {
  background: rgba(245, 197, 66, 0.1);
  border: 1px solid rgba(245, 197, 66, 0.22);
  border-radius: 999px;
  color: #d9c9a5;
}

html[data-theme="grandlineocean"] .info-table {
  border-color: rgba(227, 182, 87, 0.18);
}

html[data-theme="grandlineocean"] .synopsis-box p,
html[data-theme="grandlineocean"] .synopsis-box h4 {
  color: #b7c8cd;
}

html[data-theme="grandlineocean"] .btn-shiki-link {
  background: rgba(245, 197, 66, 0.12);
  border: 1px solid rgba(245, 197, 66, 0.36);
  color: var(--gl-gold-bright);
  padding: 10px 16px;
}

html[data-theme="grandlineocean"] .btn-shiki-link:hover {
  background: var(--gl-gold);
  color: #231505;
}

html[data-theme="grandlineocean"] .related-card-item,
html[data-theme="grandlineocean"] .character-card {
  background: rgba(4, 16, 29, 0.6);
  border: 1px solid rgba(227, 182, 87, 0.22);
  border-radius: 14px;
  overflow: hidden;
}

/* ---------- Profile ---------- */
html[data-theme="grandlineocean"] .profile-hero {
  background: var(--gl-panel);
  border: 1px solid var(--gl-border);
  border-radius: 22px;
  box-shadow: var(--gl-shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

html[data-theme="grandlineocean"] .profile-banner {
  border-radius: 20px 20px 0 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(245, 197, 66, 0.26), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(79, 195, 216, 0.2), transparent 45%),
    linear-gradient(135deg, rgba(9, 32, 53, 0.96), rgba(4, 16, 29, 0.96));
}

html[data-theme="grandlineocean"] .profile-avatar {
  background: #071a2c;
  border: 2px solid var(--gl-gold);
  color: var(--gl-gold);
  box-shadow: 0 0 0 5px rgba(3, 13, 23, 0.72), 0 0 28px rgba(245, 197, 66, 0.22);
}

html[data-theme="grandlineocean"] .profile-identity h1 {
  color: var(--gl-ink);
  font-family: "Russo One", "Oswald", sans-serif;
  letter-spacing: 0.03em;
}

html[data-theme="grandlineocean"] .profile-identity span {
  color: var(--gl-muted);
}

html[data-theme="grandlineocean"] .profile-lists-header h2 {
  color: var(--gl-gold-bright);
  font-family: "Russo One", "Oswald", sans-serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html[data-theme="grandlineocean"] .profile-list-head:hover,
html[data-theme="grandlineocean"] .profile-row:hover {
  background: rgba(245, 197, 66, 0.06);
}

html[data-theme="grandlineocean"] .profile-list-count {
  background: rgba(245, 197, 66, 0.1);
  border-color: rgba(245, 197, 66, 0.3);
  border-radius: 999px;
  color: var(--gl-gold);
}

html[data-theme="grandlineocean"] .profile-stats {
  color: var(--gl-muted);
}

html[data-theme="grandlineocean"] .profile-stats strong,
html[data-theme="grandlineocean"] .profile-stats b {
  color: var(--gl-gold-bright);
}

html[data-theme="grandlineocean"] .profile-edit-banner {
  border-radius: 14px;
  overflow: hidden;
}

html[data-theme="grandlineocean"] .profile-upload-banner,
html[data-theme="grandlineocean"] .profile-edit-avatar-row .profile-avatar {
  border-radius: 12px;
}

/* ---------- Themes page ---------- */
html[data-theme="grandlineocean"] .themes-grid {
  gap: 18px;
}

html[data-theme="grandlineocean"] .theme-card {
  padding: 10px;
  border-radius: 18px;
}

html[data-theme="grandlineocean"] .theme-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 199, 90, 0.65);
}

html[data-theme="grandlineocean"] .theme-card.active {
  border-color: var(--gl-gold);
  box-shadow: 0 0 0 1px var(--gl-gold), 0 16px 36px rgba(0, 0, 0, 0.4);
}

html[data-theme="grandlineocean"] .theme-preview {
  border-radius: 12px;
  background: #061827;
  border-color: rgba(227, 182, 87, 0.28);
}

html[data-theme="grandlineocean"] .theme-preview[data-theme="grandlineocean"] {
  background:
    linear-gradient(180deg, rgba(4, 16, 29, 0.38), rgba(4, 16, 29, 0.86)),
    url("grandline-ocean-bg-hd.jpg") center 28% / cover no-repeat !important;
  border-color: rgba(243, 199, 90, 0.72) !important;
}

html[data-theme="grandlineocean"] .theme-card-meta strong {
  color: var(--gl-ink);
  font-family: "Oswald", "Trebuchet MS", sans-serif;
  font-weight: 600;
}

html[data-theme="grandlineocean"] .theme-card-meta span {
  color: var(--gl-muted);
}

html[data-theme="grandlineocean"] .theme-check {
  background: var(--gl-gold) !important;
  color: #231505 !important;
  border-radius: 50%;
}

/* ---------- Buttons, forms, modals, toasts ---------- */
html[data-theme="grandlineocean"] .btn-primary,
html[data-theme="grandlineocean"] .login-guest-btn {
  background: linear-gradient(180deg, #ffe08a, #e9b944);
  border: 1px solid #f7d270;
  border-radius: 999px;
  color: #231505;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(245, 197, 66, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-theme="grandlineocean"] .btn-primary:hover {
  background: linear-gradient(180deg, #ffe9a8, #f3c75a);
  color: #1a0f02;
}

html[data-theme="grandlineocean"] .btn-skip-action {
  background: linear-gradient(180deg, #ffe08a, #e9b944);
  color: #231505;
  font-weight: 800;
}

html[data-theme="grandlineocean"] .btn-skip-ghost {
  background: rgba(4, 16, 29, 0.65);
  border: 1px solid rgba(227, 182, 87, 0.32);
  color: var(--gl-ink-soft);
}

html[data-theme="grandlineocean"] input,
html[data-theme="grandlineocean"] textarea,
html[data-theme="grandlineocean"] select {
  background-color: rgba(4, 16, 29, 0.8);
  border: 1px solid rgba(227, 182, 87, 0.3);
  border-radius: 12px;
  color: var(--gl-ink);
}

html[data-theme="grandlineocean"] input::placeholder,
html[data-theme="grandlineocean"] textarea::placeholder {
  color: #89a1ad;
}

html[data-theme="grandlineocean"] input:focus,
html[data-theme="grandlineocean"] textarea:focus,
html[data-theme="grandlineocean"] select:focus {
  border-color: var(--gl-gold);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.12);
}

html[data-theme="grandlineocean"] .modal-card {
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

html[data-theme="grandlineocean"] .modal-header {
  border-bottom-color: rgba(227, 182, 87, 0.18);
}

html[data-theme="grandlineocean"] .modal-header h3 {
  color: var(--gl-gold-bright);
  font-family: "Russo One", "Oswald", sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: none;
}

html[data-theme="grandlineocean"] .modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--gl-muted);
}

html[data-theme="grandlineocean"] .modal-close:hover {
  background: rgba(245, 197, 66, 0.12);
  color: var(--gl-gold);
}

html[data-theme="grandlineocean"] .settings-section {
  background: rgba(4, 16, 29, 0.55);
  border: 1px solid rgba(227, 182, 87, 0.2);
  border-radius: 14px;
  box-shadow: none;
}

html[data-theme="grandlineocean"] .settings-section h3 {
  color: var(--gl-ink);
}

html[data-theme="grandlineocean"] .settings-hint,
html[data-theme="grandlineocean"] .settings-section p,
html[data-theme="grandlineocean"] .setting-checkbox-row span {
  color: var(--gl-muted);
}

html[data-theme="grandlineocean"] .setting-checkbox-row input {
  accent-color: var(--gl-gold);
}

html[data-theme="grandlineocean"] .login-fields input {
  background: rgba(4, 16, 29, 0.8);
  border-radius: 14px;
}

html[data-theme="grandlineocean"] .toast {
  background: linear-gradient(180deg, rgba(11, 36, 60, 0.97), rgba(4, 16, 29, 0.97));
  border: 1px solid var(--gl-border);
  border-radius: 14px;
  color: var(--gl-ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

html[data-theme="grandlineocean"] .toast.toast-success .toast-icon-wrap {
  color: var(--gl-gold);
}

html[data-theme="grandlineocean"] .image-search-drop,
html[data-theme="grandlineocean"] .image-result-card {
  background: rgba(4, 16, 29, 0.65);
  border-color: rgba(227, 182, 87, 0.3);
  border-radius: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
  html[data-theme="grandlineocean"] .nav-btn {
    font-size: 10.5px;
    padding: 7px 9px;
    gap: 0;
    white-space: nowrap;
  }
  html[data-theme="grandlineocean"] .nav-btn::before {
    display: none;
  }
  html[data-theme="grandlineocean"] .search-box {
    width: 210px;
  }
  html[data-theme="grandlineocean"] #image-search-open-btn {
    display: none;
  }
  html[data-theme="grandlineocean"] .navbar {
    height: 66px;
  }
}

@media (max-width: 900px) {
  html[data-theme="grandlineocean"] .logo-text {
    display: none;
  }
  html[data-theme="grandlineocean"] .nav-btn {
    font-size: 10px;
    padding: 6px 7px;
  }
  html[data-theme="grandlineocean"] .search-box {
    width: 160px;
  }
  html[data-theme="grandlineocean"] .nav-container {
    gap: 10px;
  }
}

@media (max-width: 1250px) {
  html[data-theme="grandlineocean"] .continue-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html[data-theme="grandlineocean"] .catalog-title-box h1 {
    font-size: 22px;
  }
  html[data-theme="grandlineocean"] .filter-group {
    font-size: 11.5px;
  }
}

@media (max-width: 1024px) {
  html[data-theme="grandlineocean"] .main-content {
    padding-top: 120px;
  }
  html[data-theme="grandlineocean"] .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 16px;
  }
  html[data-theme="grandlineocean"] .logo-text {
    font-size: 19px;
  }
  html[data-theme="grandlineocean"] .navbar {
    height: 66px;
  }
}

@media (max-width: 900px) {
  html[data-theme="grandlineocean"] .filters-bar {
    width: 100%;
  }
  html[data-theme="grandlineocean"] .filter-group {
    flex: 1 1 30%;
    min-width: 150px;
  }
  html[data-theme="grandlineocean"] .custom-select {
    width: 100%;
  }
}

@media (max-width: 768px) {
  html[data-theme="grandlineocean"] .main-content {
    padding: 96px 14px 50px;
  }
  html[data-theme="grandlineocean"] .navbar {
    width: calc(100% - 16px);
    height: 62px;
    margin-top: 8px;
    top: 8px;
    border-radius: 16px;
  }
  html[data-theme="grandlineocean"] .nav-container {
    padding: 0 12px;
    gap: 10px;
  }
  html[data-theme="grandlineocean"] .logo::before {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  html[data-theme="grandlineocean"] .logo-text {
    display: inline;
    font-size: 17px;
    letter-spacing: 0.06em;
  }
  html[data-theme="grandlineocean"] .search-box {
    width: 100%;
    max-width: 230px;
  }
  html[data-theme="grandlineocean"] .icon-btn,
  html[data-theme="grandlineocean"] .user-menu-btn {
    width: 34px;
    height: 34px;
  }
  html[data-theme="grandlineocean"] .continue-cards-grid {
    grid-template-columns: 1fr;
  }
  html[data-theme="grandlineocean"] .continue-card {
    min-height: 108px;
  }
  html[data-theme="grandlineocean"] .continue-poster {
    width: 80px;
    height: 108px;
  }
  html[data-theme="grandlineocean"] .continue-info {
    padding: 10px 12px;
  }
  html[data-theme="grandlineocean"] .continue-title {
    font-size: 13.5px;
  }
  html[data-theme="grandlineocean"] .shelf-section {
    border-radius: 18px;
    padding: 12px 12px 14px;
  }
  html[data-theme="grandlineocean"] .section-header {
    padding: 8px 13px;
    margin: 0 0 12px;
  }
  html[data-theme="grandlineocean"] .section-header h2,
  html[data-theme="grandlineocean"] .page-header-simple h1 {
    font-size: 15px;
    letter-spacing: 0.04em;
  }
  html[data-theme="grandlineocean"] .section-header h2::before,
  html[data-theme="grandlineocean"] .page-header-simple h1::before {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }
  html[data-theme="grandlineocean"] .section-header .section-sub {
    display: none;
  }
  html[data-theme="grandlineocean"] .catalog-header {
    padding: 12px 15px 14px;
    gap: 10px;
  }
  html[data-theme="grandlineocean"] .catalog-title-box h1 {
    font-size: 18px;
  }
  html[data-theme="grandlineocean"] .catalog-title-box h1::before {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
  html[data-theme="grandlineocean"] .catalog-title-box p {
    font-size: 11.5px;
  }
  html[data-theme="grandlineocean"] .filter-group {
    min-width: 0;
    flex: 0 0 auto;
    gap: 0;
  }
  html[data-theme="grandlineocean"] .filter-group label {
    display: none;
  }
  html[data-theme="grandlineocean"] .filters-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  html[data-theme="grandlineocean"] .filters-bar::-webkit-scrollbar {
    display: none;
  }
  html[data-theme="grandlineocean"] .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="grandlineocean"] .filters-bar {
    gap: 6px;
  }
  html[data-theme="grandlineocean"] .anime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  html[data-theme="grandlineocean"] .anime-card {
    border-radius: 14px;
    padding: 5px;
  }
  html[data-theme="grandlineocean"] .card-details {
    padding: 8px 4px 6px;
  }
  html[data-theme="grandlineocean"] .card-title {
    font-size: 12.5px;
  }
  html[data-theme="grandlineocean"] .page-header-simple {
    padding: 12px 14px;
    margin-bottom: 18px;
  }
  html[data-theme="grandlineocean"] .page-header-simple h1 {
    font-size: 16px;
  }
  html[data-theme="grandlineocean"] .bookmarks-tabs {
    width: 100%;
    justify-content: space-between;
  }
  html[data-theme="grandlineocean"] .bm-tab {
    padding: 8px 10px;
    font-size: 11.5px;
  }
  html[data-theme="grandlineocean"] .player-layout {
    gap: 16px;
  }
}

@media (max-width: 560px) {
  html[data-theme="grandlineocean"] .logo-text {
    display: inline;
    font-size: 14px;
    letter-spacing: 0.02em;
  }
  html[data-theme="grandlineocean"] .logo {
    gap: 6px;
  }
  html[data-theme="grandlineocean"] #image-search-open-btn {
    display: none !important;
  }
  html[data-theme="grandlineocean"] .nav-container {
    gap: 8px;
  }
  html[data-theme="grandlineocean"] .nav-right {
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
  }
  html[data-theme="grandlineocean"] .search-box {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
  }
  html[data-theme="grandlineocean"] .search-box input {
    min-width: 0;
    font-size: 12px;
    padding-left: 13px;
  }
  html[data-theme="grandlineocean"] .logo {
    flex: 0 0 auto;
  }
  html[data-theme="grandlineocean"] .user-menu-btn {
    flex: 0 0 34px;
  }
  html[data-theme="grandlineocean"] .main-content {
    padding-top: 86px;
  }
  html[data-theme="grandlineocean"] .main-content,
  html[data-theme="grandlineocean"] .shelf-section,
  html[data-theme="grandlineocean"] .continue-card,
  html[data-theme="grandlineocean"] .continue-info,
  html[data-theme="grandlineocean"] .catalog-header,
  html[data-theme="grandlineocean"] .page-header-simple {
    min-width: 0;
  }
  html[data-theme="grandlineocean"] .continue-title {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  html[data-theme="grandlineocean"] .filters-bar {
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 6px;
  }
  html[data-theme="grandlineocean"] .filter-group {
    flex: 0 1 auto;
  }
}

@media (max-width: 380px) {
  html[data-theme="grandlineocean"] .logo-text {
    display: none;
  }
  html[data-theme="grandlineocean"] .logo {
    gap: 0;
  }
  html[data-theme="grandlineocean"] .search-box input {
    font-size: 11px;
  }
}

html[data-theme="grandlineocean"] .grandline-hero,
html[data-theme="grandlineocean"] .grandline-side {
  display: none !important;
}
