@layer kpop-hub-overrides, critical;

.fa-kpop-shell {
  width: 100%;
  min-height: 70vh;
  margin: 0;
  background: #FFFFFF;
}

.fa-kpop {
  --fa-kpop-ink: #1A1D23;
  --fa-kpop-soft: #535B68;
  --fa-kpop-muted: #8A909C;
  --fa-kpop-line: #E2E5EA;
  --fa-kpop-line-soft: #EDEFF3;
  --fa-kpop-accent: #6576F1;
  width: 100%;
  max-width: 560px;
  min-height: 70vh;
  padding: 8px 16px 48px;
  margin: 0 auto;
  color: var(--fa-kpop-ink);
  background: transparent;
  box-sizing: border-box;
}

.fa-kpop *,
.fa-kpop *::before,
.fa-kpop *::after { box-sizing: border-box; }

.fa-kpop-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fa-kpop-breadcrumb {
  margin: 0 0 8px;
  color: var(--fa-kpop-soft);
  font-size: 12px;
  line-height: 20px;
}

.fa-kpop-breadcrumb ol {
  display: flex;
  min-width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  list-style: none;
  white-space: nowrap;
}

.fa-kpop-breadcrumb li,
.fa-kpop-breadcrumb a,
.fa-kpop-breadcrumb [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  color: var(--fa-kpop-soft) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  text-overflow: ellipsis;
}

.fa-kpop-breadcrumb li {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  height: 20px;
}

.fa-kpop-breadcrumb li:last-child { flex: 1 1 auto; }

.fa-kpop-breadcrumb a,
.fa-kpop-breadcrumb [aria-current="page"] {
  display: inline-flex !important;
  align-items: center;
  height: 20px !important;
  padding: 0 !important;
}

.fa-kpop-breadcrumb li + li::before {
  margin: 0 8px;
  color: var(--fa-kpop-muted);
  content: ">";
}

.fa-kpop-breadcrumb a {
  color: var(--fa-kpop-accent) !important;
  text-decoration: none;
}

@layer kpop-hub-overrides {
  .fa-kpop h1 {
    margin: 0 !important;
    color: var(--fa-kpop-ink) !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
  }

  .fa-kpop h2 {
    margin: 0 !important;
    color: var(--fa-kpop-ink) !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
  }
}

.fa-kpop-hero { padding: 16px 0 24px; }

.fa-kpop-hero > p {
  margin: 8px 0 24px;
  color: var(--fa-kpop-soft);
  font-size: 15px;
  line-height: 1.8;
}

.fa-kpop-nowrap { white-space: nowrap; }

.fa-kpop-search { position: relative; display: block; }

.fa-kpop-search form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  color: var(--fa-kpop-soft);
  background: #FFFFFF;
  border: 1px solid var(--fa-kpop-line);
  border-radius: 16px;
}

.fa-kpop-search__icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  pointer-events: none;
}

.fa-kpop-search__icon::after {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.fa-kpop-search input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px 12px 52px;
  color: var(--fa-kpop-ink);
  font: inherit;
  font-size: 16px;
  background: transparent;
  border: 0;
  border-radius: 16px;
}

.fa-kpop-search input:focus-visible {
  outline: 2px solid var(--fa-kpop-accent);
  outline-offset: 0;
}

.fa-kpop-search-results {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--fa-kpop-line-soft);
  border-bottom: 1px solid var(--fa-kpop-line-soft);
}

.fa-kpop-search-results[hidden] { display: none; }
.fa-kpop-search-option + .fa-kpop-search-option { border-top: 1px solid var(--fa-kpop-line-soft); }

.fa-kpop-search-option a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  padding: 8px 40px 8px 12px;
  color: var(--fa-kpop-ink);
  text-decoration: none;
}

.fa-kpop-search-option a::after {
  position: absolute;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--fa-kpop-soft);
  border-bottom: 2px solid var(--fa-kpop-soft);
  content: "";
  transform: rotate(-45deg);
}

.fa-kpop-search-option__title { font-size: 14px; font-weight: 700; line-height: 20px; }
.fa-kpop-search-option__group { margin-top: 4px; color: var(--fa-kpop-soft); font-size: 12px; line-height: 16px; }
.fa-kpop-search-empty { padding: 48px 16px; color: var(--fa-kpop-soft); text-align: center; }

.fa-kpop-section + .fa-kpop-section { margin-top: 24px; }

.fa-kpop-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 16px;
  gap: 12px;
}

.fa-kpop-see-all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--fa-kpop-accent);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.fa-kpop-card-grid,
.fa-kpop-gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fa-kpop-card {
  display: grid;
  grid-template-rows: auto 44px;
  min-width: 0;
  overflow: hidden;
  color: var(--fa-kpop-ink);
  text-decoration: none;
  background: #FFFFFF;
  border: 1px solid var(--fa-kpop-line);
  border-radius: 16px;
}

.fa-kpop-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #FFFFFF;
}

.fa-kpop-card__media img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: contain;
}

.fa-kpop-card__title {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.fa-kpop-card__title-text {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  line-break: strict;
  overflow-wrap: anywhere;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fa-kpop-card--featured .fa-kpop-card__title-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fa-kpop-gateway {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 80px;
  padding: 12px;
  color: var(--fa-kpop-ink);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 16px;
}

.fa-kpop-gateway--pink { background: #FFF0F6; border-color: #FFD5E5; }
.fa-kpop-gateway--blue { background: #EEF6FF; border-color: #D4E7FB; }

[class*="fa-kpop-gateway--agency"] {
  background: #F7F7FF;
  border-color: #E0E2FF;
}

.fa-kpop-gateway--agency-sm { background: #F2F8FF; border-color: #D8E8FA; }
.fa-kpop-gateway--agency-jyp { background: #FFF7F1; border-color: #F6DFCE; }
.fa-kpop-gateway--agency-yg { background: #FFF9E8; border-color: #F3E2AE; }

.fa-kpop-gateway__icon { display: block; width: 40px; height: 40px; object-fit: contain; }
.fa-kpop-gateway__copy { min-width: 0; }
.fa-kpop-gateway__copy strong { display: block; overflow: hidden; font-size: 13px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.fa-kpop-gateway__copy span { display: block; color: var(--fa-kpop-soft); font-size: 12px; line-height: 16px; }
.fa-kpop-chevron { width: 8px; height: 8px; border-right: 2px solid var(--fa-kpop-soft); border-bottom: 2px solid var(--fa-kpop-soft); transform: rotate(-45deg); }

.fa-kpop-page-header { margin: 8px 0 16px; }
.fa-kpop-page-header__copy { margin-top: 8px; }
.fa-kpop-page-header__copy > p { margin: 4px 0 0; color: var(--fa-kpop-soft); font-size: 13px; line-height: 18px; }

.fa-kpop-back {
  position: relative;
  display: inline-grid;
  width: 44px;
  min-height: 44px;
  margin-left: -10px;
  place-items: center;
  color: var(--fa-kpop-ink);
}

.fa-kpop-back::before {
  width: 11px;
  height: 11px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.fa-kpop-back::after {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 2px;
  background: currentColor;
  content: "";
}

.fa-kpop-directory-content { margin-top: 24px; }

.fa-kpop-group-index {
  display: flex;
  gap: 8px;
  width: calc(100% + 32px);
  padding: 0 16px 16px;
  margin: 0 -16px 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.fa-kpop-group-index::-webkit-scrollbar { display: none; }

.fa-kpop-group-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--fa-kpop-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  background: #FFFFFF;
  border: 1px solid var(--fa-kpop-line);
  border-radius: 999px;
}

.fa-kpop-group { scroll-margin-top: 16px; }
.fa-kpop-group + .fa-kpop-group { margin-top: 32px; }
.fa-kpop-group__header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.fa-kpop-group__header > h2 { font-size: 18px !important; }
.fa-kpop-group__header > span { flex: 0 0 auto; color: var(--fa-kpop-soft); font-size: 12px; line-height: 18px; }

.fa-kpop a:focus-visible,
.fa-kpop input:focus-visible {
  outline: 2px solid var(--fa-kpop-accent);
  outline-offset: 2px;
}

@media (hover: hover) {
  .fa-kpop-card:hover,
  .fa-kpop-gateway:hover,
  .fa-kpop-group-index a:hover,
  .fa-kpop-see-all:hover { opacity: .82; }
}

@media (max-width: 360px) {
  .fa-kpop { padding-right: 12px; padding-left: 12px; }
  .fa-kpop-card__title { padding-right: 8px; padding-left: 8px; font-size: 12px; }
  .fa-kpop-group-index { width: calc(100% + 24px); padding-right: 12px; padding-left: 12px; margin-right: -12px; margin-left: -12px; }
  .fa-kpop-gateway { grid-template-columns: 36px minmax(0, 1fr) 8px; padding: 10px; }
  .fa-kpop-gateway__icon { width: 36px; height: 36px; }
}

@media (max-width: 340px) {
  @layer kpop-hub-overrides {
    .fa-kpop-page-header h1 { font-size: 26px !important; }
  }
}

@media (min-width: 768px) {
  .fa-kpop { max-width: 560px; padding-top: 16px; padding-right: 24px; padding-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .fa-kpop * { scroll-behavior: auto !important; transition: none !important; }
}
