/*
Theme Name: BubbleClips
Theme URI:  https://hentaianimeclips.com
Author:      HentaiAnimeClips
Author URI:  https://hentaianimeclips.com
Description: A soft bubblegum theme for hentai cartoon clips: lavender canvas, candy gradients, chunky rounded cards and a floating pill header.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bubbleclips
Tags:        video, hentai, anime, light, pastel, grid, custom-menu, featured-images, translation-ready
*/

:root {
  --bg:      #fdf5ff;
  --ink:     #2b1740;
  --muted:   #7c6c91;
  --card:    #ffffff;
  --line:    #f0e2fb;
  --pink:    #ff6fb1;
  --violet:  #a274ff;
  --mint:    #7cf5d0;
  --candy:   linear-gradient(120deg, #ff6fb1 0%, #a274ff 52%, #7cf5d0 100%);
  --candy-soft: linear-gradient(120deg, #ffe6f2 0%, #efe4ff 50%, #e2fff6 100%);
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body:    "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label:   "Space Grotesk", ui-monospace, Consolas, monospace;
  --max:     1320px;
  --pad:     clamp(16px, 4vw, 48px);
  --r:       26px;
  --shadow:  0 18px 40px rgba(162, 116, 255, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(760px 520px at 88% -6%, rgba(255, 111, 177, .16), transparent 62%),
    radial-gradient(760px 560px at 4% 8%, rgba(124, 245, 208, .18), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
::selection { background: var(--pink); color: #fff; }

/* ============================================================== header */
.top { position: sticky; top: 0; z-index: 80; padding: 14px var(--pad) 0; }
.top-pill {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: clamp(12px, 2vw, 26px);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px 9px 10px;
  box-shadow: var(--shadow);
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-blob {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px;
  background: var(--candy); color: #fff;
  font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: -.02em;
  box-shadow: 0 8px 18px rgba(255, 111, 177, .35);
}
.logo-text {
  font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1;
  letter-spacing: -.02em; text-transform: lowercase;
}
.logo-text em { font-style: normal; background: var(--candy); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-text small { display: block; font-family: var(--label); font-size: 8px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--label); font-size: 11px; font-weight: 500; letter-spacing: .02em;
  color: var(--muted); transition: color .15s, background .15s;
}
.nav a:hover, .nav .current-menu-item > a { color: var(--ink); background: #f3ebff; }

.search-form { display: flex; align-items: center; gap: 6px; flex-shrink: 1; min-width: 0; }
.search-form input[type="search"] { min-width: 0; }
.search-form .search-submit, .search-form button { flex-shrink: 0; }
.search-form input[type="search"] {
  width: clamp(120px, 13vw, 180px);
  border: 1px solid var(--line); background: #fbf7ff; border-radius: 999px;
  padding: 9px 14px; font-family: var(--body); font-size: 12.5px; color: var(--ink);
}
.search-form input[type="search"]::placeholder { color: #a998bd; }
.search-form input[type="search"]:focus { outline: none; border-color: #d9c4f5; background: #fff; }
.search-form .search-submit, .search-form button {
  border: 0; cursor: pointer; width: 36px; height: 36px; border-radius: 50%;
  background: var(--candy); color: #fff; font-size: 14px; line-height: 1;
  box-shadow: 0 8px 18px rgba(162, 116, 255, .35);
}
/* WordPress renders an <input type=submit> with text: turn it into an icon button */
.search-form input.search-submit {
  padding: 0; color: transparent; text-indent: -9999px; overflow: hidden;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 16px 16px;
  background-color: transparent;
  position: relative;
}
.search-form input.search-submit { background: var(--candy) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center/16px 16px no-repeat; }
.search-form button:hover, .search-form input.search-submit:hover { filter: brightness(1.05); }
.search-form .search-submit svg { width: 16px; height: 16px; display: block; margin: 0 auto; }

/* tape strip */
.tape { max-width: var(--max); margin: 10px auto 0; }
.tape-inner {
  display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap;
  background: var(--candy-soft); border: 1px solid #f2e6ff; border-radius: 999px;
  padding: 7px 16px; font-family: var(--label); font-size: 10.5px; color: #6d5b83;
}
.tape a { color: var(--ink); font-weight: 500; }
.tape a:hover { color: var(--pink); }
.tape .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255,111,177,.18); flex-shrink: 0; }
.tape .sep { color: var(--violet); }
.tape .fill { flex: 1; }
.tape .pill-count { background: #fff; border-radius: 999px; padding: 2px 10px; color: var(--violet); font-weight: 500; }

/* ================================================================ hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(30px, 4.6vw, 62px) var(--pad) 0;
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.sticker {
  display: inline-block; transform: rotate(-3deg);
  background: #fff; border: 1px dashed #e2cdf7; border-radius: 999px;
  padding: 5px 14px; margin-bottom: 18px;
  font-family: var(--label); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--violet);
  box-shadow: 0 8px 18px rgba(162,116,255,.12);
}
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: .98; letter-spacing: -.03em; margin: 0 0 18px;
}
.hero h1 .grad {
  background: var(--candy); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); max-width: 46ch; margin: 0 0 24px; font-size: clamp(.98rem, 1.4vw, 1.06rem); }

.bubbles { display: flex; gap: 10px; list-style: none; margin: 0 0 22px; padding: 0; flex-wrap: wrap; }
.bubbles li {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 10px 16px; display: flex; flex-direction: column; align-items: flex-start;
  box-shadow: 0 10px 24px rgba(162,116,255,.10);
}
.bubbles strong { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1; }
.bubbles span { font-family: var(--label); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-family: var(--label); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  transition: all .15s;
}
.chip:hover { color: #fff; background: var(--candy); border-color: transparent; }

.hero-card {
  display: block; position: relative; background: #fff; border-radius: 32px;
  padding: 12px; border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(162,116,255,.22);
  transform: rotate(1.2deg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-card:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 36px 80px rgba(255,111,177,.26); }
.hero-card .tag {
  position: absolute; top: -10px; right: 22px; z-index: 3; transform: rotate(4deg);
  background: var(--mint); color: #0f3d33; border-radius: 999px;
  font-family: var(--label); font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 4px 11px; box-shadow: 0 8px 18px rgba(124,245,208,.45);
}
.hero-art { position: relative; display: block; border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; background: #f3ebff; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-card:hover .hero-art img { transform: scale(1.03); }
.orb {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.orb svg {
  width: 34px; height: 34px; padding: 14px; box-sizing: content-box;
  color: #fff; background: var(--candy); border-radius: 50%;
  box-shadow: 0 14px 30px rgba(255,111,177,.45), 0 0 0 8px rgba(255,255,255,.35);
}
.hero-card .dur {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(43,23,64,.75); color: #fff; border-radius: 999px;
  font-family: var(--label); font-size: 10px; padding: 3px 10px;
}
.hero-body { display: block; padding: 12px 8px 6px; }
.hero-body .cat { display: block; font-family: var(--label); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin-bottom: 4px; }
.hero-body strong { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.25; letter-spacing: -.01em; }

/* =============================================================== shelf */
.shelf { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.shelf-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 44px 0 16px;
}
.shelf-head h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  letter-spacing: -.02em; margin: 0; display: flex; align-items: center; gap: 10px;
}
.shelf-head h2::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: var(--candy); box-shadow: 0 0 0 6px rgba(162,116,255,.12);
}
.shelf-count { font-family: var(--label); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: 0 12px 28px rgba(162,116,255,.10);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); border-color: #e6d3fb; box-shadow: 0 22px 46px rgba(255,111,177,.20); }
.card .art { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16/10; background: #f6eeff; }
.card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .art img { transform: scale(1.05); }
.card .dur {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(43,23,64,.72); color: #fff; border-radius: 999px;
  font-family: var(--label); font-size: 9.5px; padding: 2px 8px;
}
.card .body { padding: 11px 13px 14px; }
.card .cat { display: block; font-family: var(--label); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: 4px; }
.card .title {
  margin: 0; font-family: var(--body); font-weight: 800; font-size: .92rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card .meta { display: block; margin-top: 6px; font-family: var(--label); font-size: 9.5px; color: #a998bd; }

.pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 38px 0 8px; }
.pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-family: var(--label); font-size: 11px; color: var(--muted);
  box-shadow: 0 8px 18px rgba(162,116,255,.10);
}
.pager .page-numbers:hover, .pager .page-numbers.current { background: var(--candy); border-color: transparent; color: #fff; }

/* =============================================================== piece */
.piece { max-width: 1160px; margin: 0 auto; padding: 24px var(--pad) 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 7px; font-family: var(--label); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--pink); }

.piece-head { padding: 18px 0 20px; }
.piece-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.piece-cats a {
  font-family: var(--label); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet); background: #f6eeff; border-radius: 999px; padding: 4px 11px;
}
.piece-cats a:hover { background: var(--candy); color: #fff; }
.piece-head h1 {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.04; letter-spacing: -.025em; margin: 0 0 14px; max-width: 30ch;
}
.piece-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.piece-meta .mini {
  font-family: var(--label); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
}

.player {
  border-radius: 30px; padding: 7px; background: var(--candy);
  box-shadow: 0 24px 60px rgba(162,116,255,.28);
}
.player video { width: 100%; aspect-ratio: 16/9; border-radius: 24px; background: #120a1c; display: block; }

.piece-desc { color: var(--muted); font-size: 1rem; line-height: 1.8; max-width: 70ch; padding: 24px 0 0; }
.piece-desc p { margin: 0 0 1.1em; }

.taglist { display: flex; flex-wrap: wrap; gap: 7px; padding: 20px 0 4px; }
.taglist a {
  font-family: var(--label); font-size: 10px; letter-spacing: .06em; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
}
.taglist a:hover { color: #fff; background: var(--candy); border-color: transparent; }

.related-head { padding-top: 44px; }

/* =============================================================== pages */
.sheet { max-width: 780px; margin: 0 auto; padding: 40px var(--pad) 80px; }
.sheet h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.02em; margin: 14px 0 20px; }
.prose { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.prose h2, .prose h3 { font-family: var(--display); font-weight: 600; color: var(--ink); margin: 1.6em 0 .5em; }
.prose h2 { font-size: 1.35rem; }
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }

.missing { max-width: 900px; margin: 0 auto; padding: 70px var(--pad) 110px; text-align: center; }
.missing-num { font-family: var(--display); font-weight: 600; font-size: clamp(5rem, 15vw, 9rem); line-height: .9; margin: 0; background: var(--candy); -webkit-background-clip: text; background-clip: text; color: transparent; }
.missing-note { font-family: var(--label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 12px 0 24px; }
.btn {
  display: inline-block; border-radius: 999px; padding: 12px 22px;
  background: var(--candy); color: #fff; font-family: var(--display); font-weight: 600; font-size: 14px;
  box-shadow: 0 14px 30px rgba(255,111,177,.35);
}
.btn:hover { filter: brightness(1.05); }

.empty { padding: 70px 0; }
.empty h2 { font-family: var(--display); font-weight: 600; margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 0 20px; }

/* ================================================================ foot */
.foot { margin-top: 64px; background: linear-gradient(180deg, #f7ecff, #fdf5ff); border-top: 1px solid var(--line); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 42px var(--pad) 34px; }
.foot-mark {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 4.6vw, 3rem);
  letter-spacing: -.03em; margin: 0 0 24px;
}
.foot-mark em { font-style: normal; background: var(--candy); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 26px; padding: 22px 0; border-top: 1px solid var(--line); }
.foot-grid h4 { font-family: var(--label); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-grid a { font-size: .9rem; color: var(--ink); }
.foot-grid a:hover { color: var(--pink); }
.foot-note { color: var(--muted); font-size: .84rem; line-height: 1.7; margin: 0; }
.pill { display: inline-block; margin-top: 10px; font-family: var(--label); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.colophon { font-family: var(--label); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #a998bd; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }

/* =========================================================== responsive */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .hero-card { max-width: 600px; }
}
@media (max-width: 860px) {
  .top-pill { flex-wrap: wrap; border-radius: 28px; padding: 10px 12px; row-gap: 8px; }
  .nav { order: 3; width: 100%; margin-left: 0; }
  .nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav ul::-webkit-scrollbar { display: none; }
  .search-form { margin-left: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .search-form { width: 100%; order: 4; }
  .search-form input[type="search"] { width: 100%; flex: 1; }
  .grid { gap: 12px; }
  .card .title { font-size: .84rem; }
  .card .meta { display: none; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.1rem); }
  .foot-grid { grid-template-columns: 1fr; }
  .player { border-radius: 22px; padding: 5px; }
  .player video { border-radius: 18px; }
}
@media (min-width: 1600px) { :root { --max: 1460px; } }
