.ng-nu18-page {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 16px 12px 28px;
}

.ng-nu18-page__header {
    margin-bottom: 16px;
}

.ng-nu18-page__eyebrow {
    margin: 0 0 4px;
    color: var(--ng-accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.ng-nu18-page__header h1 {
    margin: 0;
    font-size: clamp(1.7rem, 6vw, 2.5rem);
}

.ng-nu18-page__intro {
    margin: 7px 0 0;
    color: #666;
    line-height: 1.55;
}

.ng-nu18-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.ng-nu18-card {
    min-width: 0;
}

.ng-nu18-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.ng-nu18-card__image-wrap {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 7px;
    background: #f1f1f1;
}

.ng-nu18-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.ng-nu18-card__name {
    margin: 8px 0 2px;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.2;
}

.ng-nu18-card__title {
    margin: 0;
    color: #555;
    font-size: 0.82rem;
    line-height: 1.35;
}

.ng-nu18-card__meta {
    display: inline-flex;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f7f7f7;
    color: var(--ng-accent);
    font-size: 0.72rem;
    font-weight: 850;
}

.ng-nu18-page__empty {
    padding: 28px 12px;
    color: #666;
    text-align: center;
}

.ng-nu18-age-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 4px 0 18px;
    padding: 8px 0;
    break-inside: avoid;
}

.ng-nu18-age-nav--bottom {
    margin: 24px 0 10px;
}

.ng-nu18-age-nav__side {
    min-width: 0;
}

.ng-nu18-age-nav__side--next {
    text-align: right;
}

.ng-nu18-age-nav__step {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: var(--ng-link, #3366cc);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ng-nu18-age-nav__step.is-disabled {
    color: #c7c7c7;
}

.ng-nu18-age-nav__select {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 13px;
    border: 1px solid var(--ng-accent);
    border-radius: 999px;
    background: #fff;
    color: var(--ng-accent);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
}

.ng-nu18-age-nav__select svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ng-nu18-age-heading {
    margin: 0 0 18px;
    color: var(--ng-accent);
    font-size: 1.18em;
    font-weight: 950;
    letter-spacing: 0.02em;
    break-inside: avoid;
}

body.ng-nu18-sheet-open {
    overflow: hidden !important;
}

.ng-nu18-sheet[hidden] {
    display: none !important;
}

.ng-nu18-sheet {
    position: fixed;
    z-index: 5600;
    inset: 0;
}

.ng-nu18-sheet__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0,0,0,.38);
    opacity: 0;
    transition: opacity 180ms ease;
}

.ng-nu18-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: 100%;
    max-height: min(78dvh, 720px);
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -14px 38px rgba(0,0,0,.18);
    transform: translateY(100%);
    transition: transform 180ms ease;
}

.ng-nu18-sheet.is-open .ng-nu18-sheet__backdrop {
    opacity: 1;
}

.ng-nu18-sheet.is-open .ng-nu18-sheet__panel {
    transform: translateY(0);
}

.ng-nu18-sheet__handle {
    width: 42px;
    height: 4px;
    margin: 8px auto 2px;
    border-radius: 999px;
    background: #d5d5d5;
}

.ng-nu18-sheet__header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 50px;
    padding: 0 14px 6px;
    border-bottom: 1px solid #eee;
}

.ng-nu18-sheet__header h2 {
    margin: 0;
    font-size: 1rem;
}

.ng-nu18-sheet__close {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.ng-nu18-sheet__content,
.ng-nu18-sheet__list {
    min-height: 0;
}

.ng-nu18-sheet__content {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.ng-nu18-sheet__list {
    display: grid;
    padding: 6px 10px calc(16px + env(safe-area-inset-bottom, 0px));
}

.ng-nu18-sheet__option {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #222;
    text-decoration: none;
    font-weight: 750;
}

.ng-nu18-sheet__option.is-current {
    border-radius: 7px;
    background: var(--ng-accent);
    color: #fff;
}

.ng-nu18-sheet__option.is-disabled {
    color: #b8b8b8;
}

.ng-nu18-sheet__loading,
.ng-nu18-sheet__error {
    padding: 22px 16px;
    color: #666;
    text-align: center;
}


.ng-nu18-card__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.ng-nu18-card__meta-row .ng-nu18-card__meta {
    margin-top: 0;
    flex: 0 0 auto;
}

.ng-nu18-card__chapter-select {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
}

.ng-nu18-card__chapter-select svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.ng-nu18-chapter-modal-open {
    overflow: hidden !important;
}

.ng-nu18-chapter-modal[hidden] {
    display: none !important;
}

.ng-nu18-chapter-modal {
    position: fixed;
    z-index: 5700;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}

.ng-nu18-chapter-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0,0,0,.44);
}

.ng-nu18-chapter-modal__panel {
    position: relative;
    width: min(100%, 430px);
    max-height: min(78dvh, 650px);
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 54px rgba(0,0,0,.24);
}

.ng-nu18-chapter-modal__header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 12px 10px 16px;
    border-bottom: 1px solid #eee;
}

.ng-nu18-chapter-modal__header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
}

.ng-nu18-chapter-modal__close {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.ng-nu18-chapter-modal__content {
    max-height: calc(min(78dvh, 650px) - 56px);
    overflow-y: auto;
    padding: 14px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.ng-nu18-chapter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
}

.ng-nu18-chapter-grid__item {
    display: grid;
    aspect-ratio: 1 / 1;
    place-items: center;
    min-width: 0;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-size: 0.92rem;
    font-weight: 850;
    text-decoration: none;
}

.ng-nu18-chapter-grid__item.is-current {
    border-color: var(--ng-accent);
    background: var(--ng-accent);
    color: #fff;
}

.ng-nu18-chapter-grid__item.is-disabled {
    background: #f5f5f5;
    color: #b9b9b9;
}

.ng-nu18-chapter-modal__loading,
.ng-nu18-chapter-modal__error {
    margin: 0;
    padding: 28px 10px;
    color: #666;
    text-align: center;
}

@media (min-width: 700px) {
    .ng-nu18-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .ng-nu18-sheet__panel {
        left: 50%;
        right: auto;
        width: min(560px, 100%);
        transform: translate(-50%, 100%);
    }

    .ng-nu18-sheet.is-open .ng-nu18-sheet__panel {
        transform: translate(-50%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ng-nu18-sheet__backdrop,
    .ng-nu18-sheet__panel {
        transition: none;
    }
}

/* CP17 — Nữ 18 directory select + bottom sheet */
.ng-nu18-page__title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-width: 0;
}

.ng-nu18-directory-trigger {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.ng-nu18-directory-trigger svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ng-nu18-directory-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

body.ng-nu18-directory-open {
    overflow: hidden !important;
}

.ng-nu18-directory-sheet[hidden] {
    display: none !important;
}

.ng-nu18-directory-sheet {
    position: fixed;
    z-index: 5900;
    inset: 0;
}

.ng-nu18-directory-sheet__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    transition: opacity 190ms ease;
}

.ng-nu18-directory-sheet__panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: 100%;
    max-height: min(78dvh, 720px);
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -16px 44px rgba(0, 0, 0, 0.22);
    transform: translateY(100%);
    transition: transform 210ms ease;
}

.ng-nu18-directory-sheet.is-open .ng-nu18-directory-sheet__backdrop {
    opacity: 1;
}

.ng-nu18-directory-sheet.is-open .ng-nu18-directory-sheet__panel {
    transform: translateY(0);
}

.ng-nu18-directory-sheet__handle {
    width: 42px;
    height: 4px;
    margin: 9px auto 3px;
    border-radius: 999px;
    background: #d4d4d4;
}

.ng-nu18-directory-sheet__header {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 14px 10px 18px;
    border-bottom: 1px solid #ececec;
}

.ng-nu18-directory-sheet__header h2 {
    margin: 0;
    color: #111;
    font-size: 1.08rem;
    font-weight: 900;
}

.ng-nu18-directory-sheet__header p {
    margin: 3px 0 0;
    color: #777;
    font-size: 0.78rem;
    font-weight: 700;
}

.ng-nu18-directory-sheet__close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f4f4f4;
    color: #111;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
}

.ng-nu18-directory-sheet__list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 4px 14px calc(18px + env(safe-area-inset-bottom, 0px));
}

.ng-nu18-directory-sheet__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    min-height: 52px;
    align-items: center;
    gap: 14px;
    padding: 10px 4px;
    border: 0;
    border-bottom: 1px solid #efefef;
    background: transparent;
    color: #111;
    text-align: left;
    cursor: pointer;
}

.ng-nu18-directory-sheet__name {
    min-width: 0;
    overflow: hidden;
    font-size: 0.94rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ng-nu18-directory-sheet__count {
    color: #777;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.ng-nu18-card.ng-nu18-card--directory-focus {
    animation: ng-nu18-directory-focus 900ms ease;
}

@keyframes ng-nu18-directory-focus {
    0%, 100% { outline-color: transparent; }
    35% { outline-color: var(--ng-accent); }
}

@media (min-width: 700px) {
    .ng-nu18-directory-sheet__panel {
        left: 50%;
        right: auto;
        width: min(560px, 100%);
        transform: translate(-50%, 100%);
    }

    .ng-nu18-directory-sheet.is-open .ng-nu18-directory-sheet__panel {
        transform: translate(-50%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ng-nu18-directory-sheet__backdrop,
    .ng-nu18-directory-sheet__panel {
        transition: none;
    }

    .ng-nu18-card.ng-nu18-card--directory-focus {
        animation: none;
    }
}

