:root {
  color-scheme: dark;
  --kk-bg: #0b0d0f;
  --kk-surface: #121519;
  --kk-surface-raised: #181c21;
  --kk-surface-hover: #1e2329;
  --kk-border: #292f36;
  --kk-border-strong: #39414a;
  --kk-text: #f4f6f8;
  --kk-muted: #969fa9;
  --kk-subtle: #69737e;
  --kk-accent: #ff5f78;
  --kk-accent-soft: rgba(255, 95, 120, 0.13);
  --kk-mint: #4bc9a7;
  --kk-gold: #e8b95b;
  --kk-danger: #ff6b6b;
  --kk-header-height: 68px;
  --kk-content: 1680px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--kk-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--kk-text);
  background: var(--kk-bg);
  font-size: 14px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

img,
video {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.kk-icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.kankan-app {
  min-height: 100vh;
}

.kk-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--kk-header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 15, 0.94);
  backdrop-filter: blur(18px);
}

.kk-header__inner {
  display: grid;
  grid-template-columns: auto auto minmax(240px, 430px) 40px;
  align-items: center;
  gap: 24px;
  width: min(100%, var(--kk-content));
  min-height: var(--kk-header-height);
  margin: 0 auto;
  padding: 0 24px;
}

.kk-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 750;
  line-height: 1;
}

.kk-brand__mark {
  display: block;
  width: 32px;
  height: 32px;
}

.kk-brand__wordmark {
  transform: translateY(-1px);
}

.kk-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.kk-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 6px;
  color: var(--kk-muted);
  font-size: 13px;
  font-weight: 650;
  transition: color 150ms ease, background 150ms ease;
}

.kk-nav a:hover,
.kk-nav a[aria-current="page"] {
  color: var(--kk-text);
  background: var(--kk-accent-soft);
}

.kk-nav a[aria-current="page"] {
  color: var(--kk-accent);
}

.kk-nav .kk-icon {
  width: 15px;
  height: 15px;
}

.kk-nav a[data-nav="premium"] {
  color: var(--kk-gold);
}

.kk-search {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--kk-border);
  border-radius: 7px;
  background: var(--kk-surface);
  transition: border-color 150ms ease, background 150ms ease;
}

.kk-search:focus-within {
  border-color: var(--kk-border-strong);
  background: var(--kk-surface-raised);
}

.kk-search__icon {
  display: grid;
  place-items: center;
  color: var(--kk-subtle);
}

.kk-search__icon .kk-icon {
  width: 16px;
  height: 16px;
}

.kk-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--kk-text);
  background: transparent;
  font-size: 13px;
}

.kk-search input::placeholder {
  color: var(--kk-subtle);
}

.kk-search button {
  align-self: stretch;
  padding: 0 13px;
  border: 0;
  border-left: 1px solid var(--kk-border);
  cursor: pointer;
  color: var(--kk-text);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.kk-search button:hover {
  background: var(--kk-surface-hover);
}

.kk-icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--kk-border);
  border-radius: 7px;
  cursor: pointer;
  color: var(--kk-muted);
  background: var(--kk-surface);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.kk-icon-button:hover,
.kk-icon-button:focus-visible {
  color: var(--kk-text);
  border-color: var(--kk-border-strong);
  background: var(--kk-surface-hover);
  outline: none;
}

.kk-icon-button .kk-icon {
  width: 17px;
  height: 17px;
}

.kk-main {
  width: min(100%, var(--kk-content));
  min-height: calc(100vh - var(--kk-header-height));
  margin: 0 auto;
  padding: 30px 24px 80px;
}

.kk-page-heading,
.kk-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.kk-page-heading {
  margin-bottom: 26px;
}

.kk-page-heading h1,
.kk-section__heading h2 {
  margin: 0;
  color: var(--kk-text);
  font-weight: 760;
  letter-spacing: 0;
}

.kk-page-heading h1 {
  font-size: 28px;
  line-height: 1.2;
}

.kk-page-heading p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--kk-muted);
  line-height: 1.55;
}

.kk-section {
  margin-bottom: 42px;
}

.kk-section__heading {
  margin-bottom: 15px;
}

.kk-section__heading h2 {
  font-size: 18px;
  line-height: 1.3;
}

.kk-section__heading a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--kk-muted);
  font-size: 12px;
}

.kk-section__heading a .kk-icon {
  width: 14px;
  height: 14px;
}

.kk-section__heading a:hover {
  color: var(--kk-text);
}

.kk-video-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 14px;
}

.kk-video-card {
  min-width: 0;
}

.kk-video-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 7px;
  background: var(--kk-surface-raised);
}

.kk-video-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease, opacity 180ms ease;
}

.kk-video-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--kk-subtle);
  background: var(--kk-surface-raised);
  font-size: 30px;
  font-weight: 850;
}

.kk-video-card__media img.is-broken,
.kk-category-card__image.is-broken,
.kk-history-item img.is-broken {
  visibility: hidden;
}

.kk-video-card:hover .kk-video-card__media img {
  transform: scale(1.025);
}

.kk-video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  opacity: 0;
  color: #fff;
  background: rgba(10, 12, 14, 0.76);
  transform: translate(-50%, -44%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.kk-video-card__play .kk-icon {
  width: 17px;
  height: 17px;
  transform: translateX(1px);
}

.kk-video-card:hover .kk-video-card__play,
.kk-video-card:focus-visible .kk-video-card__play {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.kk-video-card:focus-visible {
  outline: 2px solid var(--kk-accent);
  outline-offset: 4px;
  border-radius: 7px;
}

.kk-badge,
.kk-duration,
.kk-quality {
  position: absolute;
  z-index: 2;
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  color: #fff;
  background: rgba(10, 12, 14, 0.82);
  font-size: 10px;
  font-weight: 750;
}

.kk-badge {
  gap: 4px;
  left: 8px;
  top: 8px;
  padding: 0 7px;
}

.kk-badge .kk-icon {
  width: 11px;
  height: 11px;
}

.kk-badge--vip {
  color: #17120a;
  background: var(--kk-gold);
}

.kk-badge--free {
  color: #081712;
  background: var(--kk-mint);
}

.kk-badge--coin {
  color: #1d1306;
  background: #f2a94b;
}

.kk-duration {
  right: 8px;
  bottom: 8px;
  padding: 0 6px;
}

.kk-quality {
  right: 8px;
  top: 8px;
  padding: 0 6px;
  color: var(--kk-text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.kk-video-card__body {
  padding: 9px 2px 0;
}

.kk-video-card__title {
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  color: var(--kk-text);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.kk-video-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 7px;
  color: var(--kk-muted);
  font-size: 11px;
}

.kk-video-card__meta span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.kk-video-card__meta span + span::before {
  content: "·";
  margin-right: 7px;
  color: var(--kk-subtle);
}

.kk-album-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 14px;
}

.kk-album-card {
  min-width: 0;
}

.kk-album-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 7px;
  background: var(--kk-surface-raised);
}

.kk-album-card__media img,
.kk-album-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  object-fit: cover;
  color: var(--kk-subtle);
  transition: transform 220ms ease;
}

.kk-album-card:hover .kk-album-card__media img {
  transform: scale(1.025);
}

.kk-album-card__placeholder .kk-icon {
  width: 24px;
  height: 24px;
}

.kk-album-card__count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  padding: 0 7px;
  border-radius: 5px;
  color: #fff;
  background: rgba(10, 12, 14, 0.84);
  font-size: 10px;
  font-weight: 700;
}

.kk-album-card__count .kk-icon {
  width: 12px;
  height: 12px;
}

.kk-album-card__body {
  padding: 9px 2px 0;
}

.kk-album-card__title {
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--kk-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.kk-album-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 7px;
  color: var(--kk-muted);
  font-size: 11px;
}

.kk-album-card__meta span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.kk-album-card__meta span + span::before {
  content: "·";
  margin-right: 7px;
  color: var(--kk-subtle);
}

.kk-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 38px auto 0;
}

.kk-pagination a,
.kk-pagination span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 10px;
  border: 1px solid var(--kk-border);
  border-radius: 6px;
  color: var(--kk-muted);
  background: var(--kk-surface);
  font-size: 12px;
}

.kk-pagination .kk-icon {
  width: 14px;
  height: 14px;
}

.kk-pagination a:hover,
.kk-pagination [aria-current="page"] {
  color: var(--kk-text);
  border-color: var(--kk-border-strong);
  background: var(--kk-surface-hover);
}

.kk-category-section {
  margin-bottom: 34px;
}

.kk-category-section h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.kk-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.kk-category-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  min-height: 68px;
  overflow: hidden;
  border: 1px solid var(--kk-border);
  border-radius: 7px;
  background: var(--kk-surface);
  transition: border-color 150ms ease, background 150ms ease;
}

.kk-category-card:hover,
.kk-category-card:focus-visible {
  border-color: var(--kk-border-strong);
  background: var(--kk-surface-hover);
  outline: none;
}

.kk-category-card__image {
  width: 58px;
  height: 68px;
  object-fit: cover;
  background: var(--kk-surface-raised);
}

.kk-category-card__placeholder {
  display: grid;
  place-items: center;
  width: 58px;
  height: 68px;
  color: var(--kk-subtle);
  background: var(--kk-surface-raised);
}

.kk-category-card__placeholder .kk-icon {
  width: 19px;
  height: 19px;
}

.kk-category-card__copy {
  min-width: 0;
  padding: 10px 12px;
}

.kk-category-card__copy strong,
.kk-category-card__copy span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.kk-category-card__copy strong {
  font-size: 13px;
}

.kk-category-card__copy span {
  margin-top: 5px;
  color: var(--kk-muted);
  font-size: 10px;
}

.kk-detail {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.kk-player-slot {
  min-height: 0;
}

.kk-detail__content {
  padding: 4px 0 0;
}

.kk-detail__title {
  margin: 0;
  color: var(--kk-text);
  font-size: 22px;
  font-weight: 760;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.kk-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--kk-muted);
  font-size: 12px;
}

.kk-detail__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kk-detail__meta .kk-icon {
  width: 14px;
  height: 14px;
  color: var(--kk-subtle);
}

.kk-detail__description {
  margin-top: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--kk-border);
  border-bottom: 1px solid var(--kk-border);
  color: #c1c7ce;
  line-height: 1.7;
  white-space: pre-wrap;
}

.kk-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.kk-chip-list a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--kk-border);
  border-radius: 6px;
  color: var(--kk-muted);
  background: var(--kk-surface);
  font-size: 11px;
}

.kk-chip-list a:hover {
  color: var(--kk-text);
  border-color: var(--kk-border-strong);
}

.kk-detail__related {
  margin-top: 38px;
}

.kk-album-detail {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.kk-album-detail__header {
  width: min(100%, 1080px);
  margin: 0 0 24px;
}

.kk-album-detail__header h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.4;
}

.kk-album-detail__header > p {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--kk-border);
  color: #c1c7ce;
  line-height: 1.7;
}

.kk-album-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.kk-album-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--kk-border);
  border-radius: 7px;
  cursor: zoom-in;
  background: var(--kk-surface);
}

.kk-album-photo:hover,
.kk-album-photo:focus-visible {
  border-color: var(--kk-border-strong);
  outline: none;
}

.kk-album-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.kk-album-photo:hover img {
  transform: scale(1.025);
}

.kk-album-photo > span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 5px;
  border-radius: 5px;
  color: #fff;
  background: rgba(10, 12, 14, 0.82);
  font-size: 10px;
  font-weight: 700;
}

.kk-album-card__media img.is-broken,
.kk-album-photo img.is-broken {
  visibility: hidden;
}

.kk-empty,
.kk-error {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 320px;
  place-content: center;
  text-align: center;
}

.kk-state-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--kk-border);
  border-radius: 8px;
  color: var(--kk-muted);
  background: var(--kk-surface);
}

.kk-state-icon .kk-icon {
  width: 20px;
  height: 20px;
}

.kk-state-icon--error {
  color: var(--kk-danger);
  border-color: rgba(255, 107, 107, 0.28);
  background: rgba(255, 107, 107, 0.08);
}

.kk-empty strong,
.kk-error h1 {
  margin: 0;
  font-size: 20px;
}

.kk-empty span,
.kk-error p {
  max-width: 560px;
  margin: 0;
  color: var(--kk-muted);
  line-height: 1.6;
}

.kk-error button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--kk-border-strong);
  border-radius: 6px;
  cursor: pointer;
  color: var(--kk-text);
  background: var(--kk-surface-raised);
  font-weight: 700;
}

.kk-error button .kk-icon {
  width: 15px;
  height: 15px;
}

.kk-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: var(--kk-surface);
}

.kk-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.045);
  animation: kk-pulse 1.15s ease-in-out infinite alternate;
}

.kk-skeleton--heading {
  width: 210px;
  height: 34px;
}

.kk-skeleton--card {
  aspect-ratio: 16 / 13;
}

@keyframes kk-pulse {
  to { opacity: 0.3; }
}

.kk-mobile-nav {
  display: none;
}

.kk-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1998;
  background: rgba(0, 0, 0, 0.62);
}

.kk-history-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1999;
  width: min(430px, 92vw);
  overflow: hidden;
  border-left: 1px solid var(--kk-border);
  background: var(--kk-bg);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.42);
}

.kk-history-drawer > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--kk-border);
}

.kk-history-drawer h2 {
  margin: 0;
  font-size: 17px;
}

.kk-history-drawer__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kk-history-drawer__actions > button:not(.kk-icon-button) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 0;
  cursor: pointer;
  color: var(--kk-muted);
  background: transparent;
  font-size: 12px;
}

.kk-history-drawer__actions > button:not(.kk-icon-button) .kk-icon {
  width: 14px;
  height: 14px;
}

.kk-history-list {
  height: calc(100% - 68px);
  padding: 12px;
  overflow: auto;
}

.kk-history-empty {
  min-height: 100%;
}

.kk-history-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 11px;
  padding: 8px;
  border-radius: 7px;
  transition: background 150ms ease;
}

.kk-history-item:hover {
  background: var(--kk-surface-raised);
}

.kk-history-item img,
.kk-history-item__placeholder {
  width: 112px;
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  object-fit: cover;
  background: var(--kk-surface-raised);
}

.kk-history-item__placeholder {
  display: grid;
  place-items: center;
  color: var(--kk-subtle);
}

.kk-history-item__placeholder .kk-icon {
  width: 20px;
  height: 20px;
}

.kk-history-item__copy {
  min-width: 0;
  padding-top: 2px;
}

.kk-history-item__copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.45;
}

.kk-history-item__copy span {
  display: block;
  margin-top: 8px;
  color: var(--kk-muted);
  font-size: 10px;
}

.kk-history-progress {
  display: block;
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--kk-border);
}

.kk-history-progress i {
  display: block;
  height: 100%;
  background: var(--kk-accent);
}

.kk-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 3000;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border: 1px solid var(--kk-border-strong);
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  color: var(--kk-text);
  background: var(--kk-surface-raised);
  transform: translate(-50%, 8px);
  transition: opacity 150ms ease, transform 150ms ease;
  font-size: 12px;
}

.kk-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.kk-lightbox-open {
  overflow: hidden;
}

.kk-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 16px;
  padding: 64px 24px 24px;
  background: rgba(4, 5, 6, 0.97);
}

.kk-lightbox__close {
  position: absolute;
  right: 18px;
  top: 18px;
}

.kk-lightbox__step {
  justify-self: center;
  width: 44px;
  height: 44px;
  background: rgba(24, 28, 33, 0.92);
}

.kk-lightbox__figure {
  display: grid;
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - 88px);
  margin: 0;
  place-items: center;
}

.kk-lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 118px);
  object-fit: contain;
}

.kk-lightbox__figure figcaption {
  min-height: 20px;
  margin-top: 10px;
  color: var(--kk-muted);
  font-size: 11px;
}

.kk-lightbox.is-loading .kk-lightbox__figure img {
  opacity: 0.35;
}

html.kankan-ui body #avjb-full-poc {
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  border-color: var(--kk-border);
  border-radius: 8px;
  background: #050607;
  box-shadow: none;
}

html.kankan-ui body #avjb-full-poc .avjb-shell__head {
  min-height: 48px;
  padding: 0 13px;
  border-bottom-color: var(--kk-border);
  background: #0d1013;
}

html.kankan-ui body #avjb-full-poc .avjb-shell__title {
  gap: 6px;
  font-size: 12px;
}

html.kankan-ui body #avjb-full-poc .avjb-shell__title-icon {
  width: 15px;
  height: 15px;
  color: var(--kk-accent);
}

html.kankan-ui body #avjb-full-poc .avjb-shell__download {
  border-radius: 6px;
  border-color: var(--kk-border-strong);
  background: var(--kk-surface-raised);
}

html.kankan-ui body #avjb-full-poc .avjb-shell__download:hover {
  border-color: var(--kk-accent);
  background: var(--kk-accent-soft);
}

html.kankan-ui body #avjb-history-float .avjb-history__fab,
html.kankan-ui body #avjb-history-float .avjb-history__panel,
html.kankan-ui body #avjb-history-float .avjb-history__item,
html.kankan-ui body #avjb-history-float .avjb-history__action {
  border-radius: 7px;
}

@media (max-width: 1380px) {
  .kk-video-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .kk-album-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .kk-album-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kk-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  .kk-header__inner { grid-template-columns: auto minmax(220px, 1fr) 40px; gap: 16px; }
  .kk-nav { display: none; }
  .kk-video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kk-album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kk-album-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kk-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --kk-header-height: 112px; }

  body { padding-bottom: 66px; }

  .kk-header__inner {
    grid-template-columns: minmax(0, 1fr) 38px;
    grid-template-rows: 56px 46px;
    gap: 0 10px;
    padding: 0 12px 10px;
  }

  .kk-brand { font-size: 18px; }
  .kk-brand__mark { width: 30px; height: 30px; }
  .kk-search { grid-column: 1 / -1; grid-row: 2; min-height: 40px; }
  .kk-history-trigger.kk-icon-button { grid-column: 2; grid-row: 1; }

  .kk-main {
    padding: 20px 12px 50px;
  }

  .kk-page-heading { margin-bottom: 20px; }
  .kk-page-heading h1 { font-size: 23px; }
  .kk-page-heading p { font-size: 12px; }
  .kk-section { margin-bottom: 34px; }
  .kk-section__heading h2 { font-size: 17px; }

  .kk-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 9px;
  }

  .kk-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 9px;
  }

  .kk-album-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .kk-album-card__title { min-height: 36px; font-size: 12px; }
  .kk-album-card__meta { gap: 5px; font-size: 10px; }
  .kk-album-card__meta span + span::before { margin-right: 5px; }
  .kk-album-detail__header h1 { font-size: 19px; }

  .kk-video-card__media { border-radius: 6px; }
  .kk-video-card__title { min-height: 36px; font-size: 12px; }
  .kk-video-card__meta { gap: 5px; font-size: 10px; }
  .kk-video-card__meta span + span::before { margin-right: 5px; }
  .kk-quality { display: none; }

  .kk-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kk-category-card { grid-template-columns: 48px minmax(0, 1fr); min-height: 60px; }
  .kk-category-card__image,
  .kk-category-card__placeholder { width: 48px; height: 60px; }
  .kk-category-card__copy { padding: 8px; }

  .kk-detail__title { font-size: 18px; }
  .kk-detail__meta { gap: 7px 13px; font-size: 11px; }
  .kk-detail__description { padding: 13px 0; font-size: 12px; }

  .kk-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 62px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--kk-border);
    background: rgba(11, 13, 15, 0.96);
    backdrop-filter: blur(16px);
  }

  .kk-mobile-nav a,
  .kk-mobile-nav button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 5px 0;
    border: 0;
    cursor: pointer;
    color: var(--kk-muted);
    background: transparent;
  }

  .kk-mobile-nav a[aria-current="page"] {
    color: var(--kk-accent);
  }

  .kk-mobile-nav .kk-icon { width: 18px; height: 18px; }
  .kk-mobile-nav small { font-size: 9px; }

  .kk-lightbox {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 7px;
    padding: 58px 8px 18px;
  }

  .kk-lightbox__close { right: 10px; top: 10px; }
  .kk-lightbox__step { width: 36px; height: 36px; }
  .kk-lightbox__figure img { max-height: calc(100vh - 108px); }

  html.kankan-ui body #avjb-full-poc { border-radius: 7px; }
  html.kankan-ui body #avjb-history-float { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
