/*
Theme Name: ThemeNekopoi
Theme URI: https://nekopoi.care
Author: Nekopoi
Author URI: https://nekopoi.care
Version: 2.0.0
Text Domain: themenekopoi
*/

/* ==========================================================================
   ThemeNekopoi - Main Stylesheet
   ========================================================================== */

/* --- 1. CSS Variables --- */
:root {
    --color-primary: #e97991;
    --color-primary-dark: #c15f74;
    --color-primary-hover: #f08da3;
    --color-primary-glow: rgba(233, 121, 145, .15);
    --color-primary-gradient: linear-gradient(135deg, #e97991 0%, #d4607a 100%);
    --color-bg: #eee;
    --color-surface: #fff;
    --color-surface-elevated: #f8f8f8;
    --color-dark: #333;
    --color-text: #2d2d2d;
    --color-text-secondary: #6f6f6f;
    --color-text-muted: #999;
    --color-border: rgba(0, 0, 0, .08);
    --color-hover-bg: #f7f0f2;
    --color-overlay: rgba(0, 0, 0, .93);
    --font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --radius: 8px;
    --radius-sm: 5px;
    --radius-lg: 12px;
    --color-accent-dark: #2b2b2b;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .04);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, .08), 0 8px 32px rgba(0, 0, 0, .04);
    --shadow-glow: 0 0 20px rgba(233, 121, 145, .12);
    --transition: .2s ease;
    --transition-slow: .35s cubic-bezier(.4, 0, .2, 1);
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
}

/* Dark mode */
[data-theme="dark"] {
    --color-bg: #121212;
    --color-surface: #1e1e1e;
    --color-surface-elevated: #2a2a2a;
    --color-accent-dark: #181818;
    --color-dark: #e8e8e8;
    --color-text: #e8e8e8;
    --color-text-secondary: #a8a8a8;
    --color-text-muted: #707070;
    --color-border: rgba(255, 255, 255, .08);
    --color-hover-bg: #2e2527;
    --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .2);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, .4), 0 8px 32px rgba(0, 0, 0, .3);
    --shadow-glow: 0 0 24px rgba(233, 121, 145, .15);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg: #121212;
        --color-surface: #1e1e1e;
        --color-surface-elevated: #2a2a2a;
        --color-accent-dark: #181818;
        --color-dark: #e8e8e8;
        --color-text: #e8e8e8;
        --color-text-secondary: #a8a8a8;
        --color-text-muted: #707070;
        --color-border: rgba(255, 255, 255, .08);
        --color-hover-bg: #2e2527;
        --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .2);
        --shadow-lg: 0 4px 16px rgba(0, 0, 0, .4), 0 8px 32px rgba(0, 0, 0, .3);
        --shadow-glow: 0 0 24px rgba(233, 121, 145, .15);
    }
}

/* --- 2. Reset / Base --- */
html {
    scroll-behavior: smooth
}

a, article, b, big, body, canvas, center, code, dd, del, div, em, embed,
footer, form, h1, h2, h3, h4, h5, h6, header, html, i, iframe, img, label,
legend, li, menu, nav, object, ol, p, q, s, section, small, span, strong,
sub, summary, th, time, tr, u, ul, var, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    direction: ltr
}

article, footer, header, menu, nav, section {
    display: block
}

body {
    line-height: 1
}

ol, ul {
    list-style: none
}

q {
    quotes: none;
    background: #252525;
    border-left: 3px solid #2f2f2f;
    padding: 5px 10px
}

/* --- Image Placeholder System (background-image, no <img>) --- */
.nk-thumb-crop,
.nk-episode-card-thumb,
.nk-grid-thumb,
.nk-search-thumb,
.nk-related-thumb-crop,
.nk-widget-thumb-crop,
.nk-info-thumb-crop,
.nk-series-poster,
.nk-hentai-thumb,
.nk-popular-thumb,
.imgrapi {
    position: relative;
    background-color: var(--color-surface-elevated);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}

.nk-hentai-thumb {
    width: 100%;
    height: 150px;
    background-position: top
}

.nk-series-poster {
    width: 180px;
    min-width: 180px;
    height: 260px;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2)
}

.nk-related-thumb-crop {
    width: 50px;
    height: 70px
}

.nk-related-thumb-crop a,
.nk-grid-thumb a,
.nk-info-thumb-crop a,
.nk-widget-thumb-crop a {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2
}

.nk-thumb-crop:not([style*="background-image"])::after,
.nk-episode-card-thumb:not([style*="background-image"])::after,
.nk-grid-thumb:not([style*="background-image"])::after,
.nk-search-thumb:not([style*="background-image"])::after,
.nk-related-thumb-crop:not([style*="background-image"])::after,
.nk-widget-thumb-crop:not([style*="background-image"])::after,
.nk-info-thumb-crop:not([style*="background-image"])::after,
.nk-series-poster:not([style*="background-image"])::after,
.nk-hentai-thumb:not([style*="background-image"])::after,
.nk-popular-thumb:not([style*="background-image"])::after,
.imgrapi:not([style*="background-image"])::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center / 28px no-repeat;
    opacity: 0.15;
    pointer-events: none
}

q:after, q:before {
    content: '';
    content: none
}

:focus {
    outline: 0
}

/* --- 3. Typography --- */
h1 { font-size: 18px; font-weight: 700; letter-spacing: -.01em }
h2 { font-size: 16px; font-weight: 600 }
h3 { font-size: 16px; font-weight: 600 }
h4 { font-size: 14px; font-weight: 600 }
h5 { font-size: 12px; font-weight: 500 }
h6 { font-size: 12px; font-weight: 500 }

p {
    margin: 10px 0;
    line-height: 1.6
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition)
}

a:hover {
    text-decoration: none;
    color: var(--color-primary)
}

::selection {
    background: var(--color-primary);
    color: #fff
}

body {
    color: var(--color-text);
    background-image: url(images/maskotKiri.svg), url(images/maskotKanan.svg);
    background-size: auto auto, auto auto;
    background-repeat: no-repeat;
    background-position: left center, right center;
    background-attachment: fixed;
    font-family: var(--font-family);
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 auto;
    background-color: var(--color-bg);
    transition: background-color var(--transition-slow), color var(--transition-slow);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

/* --- 4. Utility Classes --- */
.clearfix::after {
    content: '';
    display: table;
    clear: both
}

.nk-no-results {
    text-align: center;
    padding: 20px
}

h2.screen-reader-text {
    display: none
}

/* Inline dashicons in meta/date spans */
.nk-post-meta .dashicons,
.nk-jav-meta .dashicons,
.nk-episode-card-date .dashicons,
.headvid .dashicons {
    display: inline-block;
    font-family: dashicons;
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 13px;
    vertical-align: -3px;
    margin-right: 3px;
    opacity: .55
}

/* --- 5. Layout --- */
#nk-wrap {
    width: var(--max-width);
    margin: 0 auto
}

#nk-content {
    overflow: hidden;
    padding: 10px 0
}

.nk-container {
    margin: 0 auto;
    overflow: hidden;
    max-width: var(--max-width)
}

.nk-main-content {
    float: left;
    width: 71%;
    padding-bottom: 0
}

.nk-main-content--list {
    background: var(--color-surface);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden
}

.nk-main-content--list .nk-section-header h1 {
    margin: 0;
    font-size: 14px;
    letter-spacing: .06em
}

#nk-sidebar {
    float: right;
    width: 27.8%
}

/* --- 6. Navigation --- */
#nk-main-nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    background: rgba(18, 18, 18, .92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(233, 121, 145, .12);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 2px 16px rgba(0, 0, 0, .2)
}

#nk-main-nav .nk-container {
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible
}

#nk-main-nav > .nk-container > ul {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow: visible;
    list-style: none;
    margin: 0;
    padding: 0
}

#nk-main-nav ul li {
    flex-shrink: 0;
    position: relative
}

#nk-main-nav ul li a {
    color: rgba(255, 255, 255, .65);
    display: block;
    white-space: nowrap;
    line-height: 44px;
    font-size: 12.5px;
    padding: 0 13px;
    font-family: var(--font-family);
    font-weight: 500;
    text-decoration: none;
    letter-spacing: .02em;
    transition: color .2s ease;
    position: relative
}

#nk-main-nav ul li a:hover {
    color: #fff
}

#nk-main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width .25s ease, left .25s ease
}

#nk-main-nav ul li a:hover::after {
    width: 60%;
    left: 20%
}

#nk-main-nav ul .current-menu-item > a {
    color: #fff
}

#nk-main-nav ul .current-menu-item > a::after {
    width: 60%;
    left: 20%
}

#nk-main-nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 160px;
    padding: 4px;
    z-index: 1000;
    background: rgba(18, 18, 18, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: var(--shadow-lg);
    overflow: visible
}

#nk-main-nav ul li:hover > ul {
    display: block
}

#nk-main-nav ul li ul li {
    flex-shrink: unset
}

#nk-main-nav ul li ul li a {
    line-height: 20px;
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap
}

#nk-main-nav ul li ul li a:hover {
    background: rgba(233, 121, 145, .1);
    color: var(--color-primary);
    border-radius: var(--radius-sm)
}

#nk-main-nav ul li ul li a::after {
    display: none
}

/* "More" overflow dropdown */
#nk-main-nav .nk-nav-more {
    flex-shrink: 0
}

#nk-main-nav .nk-nav-more > a {
    color: rgba(255, 255, 255, .5);
    cursor: pointer;
    user-select: none
}

#nk-main-nav .nk-nav-more > a .dashicons {
    font-family: dashicons;
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-left: 2px;
    transition: transform .2s ease
}

#nk-main-nav .nk-nav-more:hover > a .dashicons {
    transform: rotate(180deg)
}

#nk-main-nav .nk-nav-more > ul {
    right: 0;
    left: auto;
    min-width: 180px
}

#nk-main-nav .nk-nav-more.nk-nav-more--hidden {
    display: none
}

.nk-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-left: 8px
}

.nk-nav-random {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .5);
    transition: all .2s ease;
    text-decoration: none
}

.nk-nav-random:hover {
    color: var(--color-primary);
    background: rgba(233, 121, 145, .1);
    text-decoration: none
}

.nk-nav-random .dashicons {
    font-family: dashicons;
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1
}

#nk-search {
    position: relative
}

#nk-search-input {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .06);
    color: #e8e8e8;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 12px;
    width: 130px;
    transition: width .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
    outline: none
}

#nk-search-input:focus {
    width: 190px;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(233, 121, 145, .25);
    box-shadow: 0 0 0 3px rgba(233, 121, 145, .06)
}

#nk-search-input::placeholder {
    color: rgba(255, 255, 255, .3)
}

.nk-nav-logo-scroll {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: auto;
    padding: 0 10px;
    display: none;
    z-index: 1
}

/* Mobile navigation */
#nk-mobile-nav {
    background: var(--color-accent-dark);
    display: none;
    position: sticky;
    top: 0;
    z-index: 10000;
    border-bottom: 2px solid var(--color-primary)
}

#nk-mobile-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    list-style: none;
    margin: 0;
    padding: 0
}

#nk-mobile-nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, .05)
}

#nk-mobile-nav ul li:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, .05)
}

#nk-mobile-nav ul li a {
    color: rgba(255, 255, 255, .8);
    display: block;
    font-size: 13px;
    text-align: center;
    line-height: 42px;
    font-weight: 500;
    font-family: var(--font-family);
    padding: 0 10px;
    text-decoration: none;
    transition: all .15s ease
}

#nk-mobile-nav ul li a:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none
}

#nk-mobile-nav ul .current-menu-item a {
    background: var(--color-primary);
    color: #fff
}

.nk-mobile-search {
    display: none
}

/* Admin bar offset */
body.admin-bar #nk-main-nav {
    top: 32px
}

body.admin-bar #nk-mobile-nav {
    top: 32px
}

@media screen and (max-width: 782px) {
    body.admin-bar #nk-main-nav {
        top: 46px
    }

    body.admin-bar #nk-mobile-nav {
        top: 46px
    }
}

/* --- 7. Header --- */
#nk-header {
    overflow: hidden;
    width: var(--max-width);
    margin: 0 auto;
    padding-top: 45px
}

#nk-header .logo {
    float: left;
    max-width: 299px;
    margin: 32px 15px
}

.nk-ad-banner {
    overflow: hidden
}

.nk-ad-banner .nk-ad-slot {
    display: block;
    width: 728px;
    height: 90px;
    margin: 13px auto
}

.nk-ad-banner .nk-ad-slot .textwidget {
    text-align: center
}

.nk-ad-banner .nk-ad-slot .textwidget img {
    width: 728px;
    height: 90px
}

/* --- 8. Section Headers --- */
.nk-section-header {
    background: var(--color-accent-dark);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    border-bottom: 1px solid rgba(233, 121, 145, .15);
    position: relative;
    overflow: hidden
}

.nk-section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary-gradient);
    border-radius: 0 2px 2px 0
}

.nk-section-header h1 {
    text-align: left;
    font-size: 13px;
    color: rgba(255, 255, 255, .9);
    padding: 10px 10px 10px 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase
}

.nk-section-header h1 span {
    float: right;
    font-size: 18px;
    color: rgba(255, 255, 255, .5);
    margin-top: -1px
}

.nk-section-header h1 .nk-views-count {
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: rgba(255, 255, 255, .5);
    float: right;
    margin-top: -1px;
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.nk-section-header h1 .nk-views-count .dashicons {
    font-family: dashicons;
    font-size: 18px;
    width: 18px;
    height: 18px
}


.nk-section-header--alt h1 {
    color: #fff
}

/* --- 9. Post Grid / Homepage --- */
.nk-home-layout {
    overflow: hidden
}

.nk-home-layout .nk-ad-left {
    float: left;
    width: 160px;
    margin-right: 12px;
    border: 1px solid var(--color-border);
    min-height: 600px
}

.nk-home-layout .nk-episodes-area {
    float: left;
    width: calc(100% - 174px);
    box-shadow: var(--shadow);
    margin-bottom: 5px;
    border-radius: var(--radius)
}

#nk-episode-grid {
    width: 100%;
    overflow: hidden
}

.nk-post-card {
    overflow: hidden;
    background: var(--color-surface);
    padding: 10px 8px;
    transition: background var(--transition), box-shadow var(--transition);
    border-bottom: 1px solid var(--color-border)
}

.nk-post-card:hover {
    background: var(--color-hover-bg)
}

.nk-post-card:last-child {
    border-bottom: none
}

.nk-post-card--flush {
    padding: 0
}

.nk-post-card .nk-post-thumb {
    float: left;
    margin-right: 12px;
    padding: 0;
    width: 122px;
    height: 70px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-left: 4px
}

.nk-post-card .nk-post-thumb .nk-thumb-crop {
    overflow: hidden;
    height: 100%
}

.nk-post-card .nk-post-thumb .nk-thumb-crop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-slow)
}

.nk-post-card:hover .nk-post-thumb .nk-thumb-crop img {
    transform: scale(1.05)
}

.nk-post-card .nk-post-meta h2 {
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 600;
    margin-bottom: 2px
}

.nk-post-card .nk-post-meta h2 a {
    color: var(--color-text)
}

.nk-post-card .nk-post-meta h2 a:hover {
    color: var(--color-primary)
}

.nk-post-card .nk-post-meta > span {
    display: block;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
    padding: 2px 0;
    border-radius: 2px;
    color: var(--color-text-secondary)
}

.nk-post-card .nk-post-meta > span a {
    color: #fff;
    background: var(--color-primary-dark);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .01em
}

.nk-post-meta--header {
    margin-left: 0;
    height: auto;
    padding: 3px 5px 5px
}

.nk-post-meta--header h1 {
    line-height: 20px;
    font-size: 14px;
    width: 100%;
    float: none
}

.nk-post-meta--header p {
    font-size: 12px;
    line-height: 14px;
    margin: 3px 0
}

/* --- 10. Video/JAV Grid --- */
.nk-jav-grid {
    overflow: hidden;
    background: var(--color-surface);
    padding: 9px;
    box-shadow: var(--shadow);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius)
}

.nk-jav-grid h3 {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    padding: 5px 10px;
    margin-bottom: 7px;
    background-color: var(--color-accent-dark);
    background-size: cover
}

.nk-jav-grid ul {
    margin: 0 -5px;
    margin-bottom: 5px;
    overflow: hidden
}

.nk-jav-grid ul li {
    float: left;
    height: 110px;
    overflow: inherit;
    width: 22.3%;
    padding: 5px 10px 0
}

.nk-jav-grid ul li .nk-grid-thumb {
    width: 100%;
    height: 110px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius)
}

.nk-jav-grid ul li img {
    width: 100%;
    height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--radius)
}

.nk-jav-grid ul li h2 {
    font-size: 11px;
    line-height: 12px;
    background: var(--color-accent-dark);
    padding: 5px 10px;
    text-align: center;
    position: relative;
    bottom: 22px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    color: #fff
}

.nk-jav-grid ul li .nk-jav-meta > span {
    display: none
}

.nk-jav-grid ul li a:hover {
    color: #fff
}

.nk-grid-thumb img {
    width: 100%;
    height: auto
}

.video {
    width: 100%;
    overflow: hidden
}

.video .nk-jav-grid {
    margin: 10px 0
}

/* --- 11. Series Showcase --- */
.nk-hentai-grid {
    margin: 0;
    background: linear-gradient(135deg, rgba(233, 121, 145, .9) 0%, rgba(193, 95, 116, .95) 100%);
    padding: 10px;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius)
}

.nk-hentai-grid ul {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0
}

.nk-hentai-grid ul li {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    transition: opacity var(--transition), box-shadow var(--transition)
}

.nk-hentai-grid ul li:hover {
    opacity: .85;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3)
}

.nk-hentai-grid ul li img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: top;
    display: block
}

.nk-hentai-grid ul li .title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500;
    text-align: center;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 5px;
    font-size: 11px
}

.nk-hentai-grid ul li a {
    color: #fff;
    display: block
}

.nk-recommended {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 40px;
    background: var(--color-accent-dark);
    font-size: 13px;
    margin: 0;
    padding: 0;
    box-shadow: var(--shadow);
    letter-spacing: 0;
    border-radius: var(--radius);
    border: 1px solid var(--color-border)
}

.nk-recommended h2 {
    float: left;
    font-size: 12px;
    margin-right: 8px;
    background: var(--color-primary-gradient);
    color: #fff;
    padding: 0 14px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase
}

.nk-recommended a {
    color: rgba(255, 255, 255, .8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px
}

.nk-recommended a:hover {
    color: var(--color-primary)
}

.nk-ticker ul {
    height: 0
}

/* --- 12. Article / Single Post --- */
.nk-article {
    overflow: hidden;
    position: relative
}

/* ── Single Post Header ── */
.nk-post-header {
    overflow: hidden;
    position: relative;
    background: var(--color-accent-dark);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    padding: 14px 16px 12px 18px;
    border-bottom: 1px solid rgba(233, 121, 145, .1)
}

.nk-post-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary-gradient);
    border-radius: 0 2px 2px 0
}

.nk-post-header h1 {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    color: #fff;
    margin: 0 0 6px;
    float: none;
    width: auto;
    white-space: normal;
    overflow: visible;
    text-overflow: unset
}

.nk-post-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .4)
}

.nk-post-header-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.nk-post-header-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, .25)
}

.nk-social-bar {
    overflow: hidden;
    padding: 5px 10px;
    background: var(--color-surface)
}

.nk-social-bar .left {
    float: left
}

.nk-social-bar .right {
    float: right
}

/* ── Single Post Body ── */
.nk-post-body {
    overflow: hidden;
    padding: 16px;
    background: var(--color-surface)
}

.nk-post-body .nk-featured-img {
    text-align: center;
    margin-bottom: 16px
}

.nk-post-body .nk-featured-img img {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
    border: 1px solid var(--color-border)
}

/* ── Post Content (WP editor output) ── */
.konten {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--color-text)
}

.konten p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.7
}

.konten p:last-child {
    margin-bottom: 0
}

.konten p b:only-child,
.konten p strong:only-child {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-primary)
}

.konten .separator {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5
}

.konten .separator:last-of-type {
    border-bottom: none
}

.konten .separator b,
.konten .separator strong {
    color: var(--color-text);
    font-weight: 600
}

.konten h3 {
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.6;
    padding: 10px 14px;
    margin: 14px 0 0;
    background: rgba(233, 121, 145, .05);
    border: 1px solid rgba(233, 121, 145, .08);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary)
}

.konten h3 span[style] {
    font-weight: 600 !important
}

.nk-post-body embed, .nk-post-body iframe {
    position: relative;
    z-index: 102
}

/* JAV header styles */
.nk-jav-header {
    border-bottom: 1px solid var(--color-border)
}

.nk-jav-header h1 {
    text-align: center
}

.nk-jav-header p {
    font-size: 12px;
    line-height: 14px;
    margin: 5px 0;
    text-align: center
}

.nk-synopsis {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 20px
}

.nk-synopsis-label {
    font-size: 13px
}

/* --- 13. Streaming --- */
.nk-player-wrapper {
    width: auto;
    margin: 8px 0;
    background: var(--color-accent-dark);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 9999
}

.nk-player-series {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 8px 0;
    background: linear-gradient(135deg, rgba(233, 121, 145, .08), rgba(233, 121, 145, .03));
    border: 1px solid rgba(233, 121, 145, .12);
    border-radius: 8px;
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    transition: all var(--transition);
    overflow: hidden
}

.nk-player-series:hover {
    background: linear-gradient(135deg, rgba(233, 121, 145, .15), rgba(233, 121, 145, .06));
    border-color: rgba(233, 121, 145, .25);
    color: #fff;
    text-decoration: none
}

.nk-player-series-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, .08)
}

.nk-player-series-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1
}

.nk-player-series-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-primary);
    line-height: 1
}

.nk-player-series-title {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.nk-player-series-arrow {
    flex-shrink: 0;
    opacity: .3;
    transition: all var(--transition)
}

.nk-player-series:hover .nk-player-series-arrow {
    opacity: .8;
    transform: translateX(2px)
}

.nk-player-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto
}

.nk-player-controls button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 5px;
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap
}

.nk-player-controls button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2)
}

.nk-player-controls button.nk-lights-off {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, .3);
    background: rgba(251, 191, 36, .1)
}

.nk-player-wrapper:fullscreen {
    background: #000;
    border-radius: 0
}

.nk-player-wrapper:fullscreen .nk-player-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1
}

.nk-player-wrapper:fullscreen .nk-player-frame iframe {
    height: 100vh
}

.nk-player-wrapper > .text {
    display: none
}

.nk-player-wrapper > .list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    font-weight: 600;
    background: var(--color-accent-dark)
}

.nk-player-wrapper > .list a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    color: rgba(255, 255, 255, .6);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    transition: all var(--transition)
}

.nk-player-wrapper > .list a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .15);
    text-decoration: none
}

.nk-player-wrapper > .list a.active {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(233, 121, 145, .25)
}

.nk-player-wrapper > .list > p {
    margin: 0
}

.nk-player-wrapper > .nk-player-frame {
    width: 100%;
    height: auto;
    background: #000
}

/* --- 14. Downloads --- */
.nk-download-section {
    padding: 10px 0;
    background: var(--color-surface);
    box-shadow: var(--shadow);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius)
}

.nk-download-section span {
    font-weight: 700;
    display: block;
    margin-bottom: 5px
}

.nk-download-section .nk-download-box {
    overflow: hidden;
    padding-top: .6em
}

.nk-download-section .nk-download-box .nk-download-row {
    width: 48%;
    float: left;
    margin: 0 7.1px 15px
}

.nk-download-section .nk-download-box .nk-download-row .nk-download-name {
    background: var(--color-accent-dark);
    padding: 8px 12px;
    color: rgba(255, 255, 255, .9);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .02em;
    border-left: 3px solid var(--color-primary)
}

.nk-download-section .nk-download-box .nk-download-row .nk-download-links {
    padding: 10px 10px 5px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--color-surface-elevated);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    border: 1px solid var(--color-border);
    border-top: none
}

.nk-download-section .nk-download-box .nk-download-row .nk-download-links b {
    margin-right: 5px;
    float: left;
    color: #fff;
    font-size: 11px;
    line-height: 19px;
    padding: 5px;
    background: var(--color-accent-dark);
    display: none
}

.nk-download-section .nk-download-box .nk-download-row .nk-download-links a {
    display: block;
    float: left;
    margin: 0 5px 5px 0;
    color: #fff;
    transition: all var(--transition);
    background: var(--color-primary);
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em
}

.nk-download-section .nk-download-box .nk-download-row .nk-download-links a:hover {
    color: #fff;
    background: var(--color-primary-hover);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 121, 145, .3)
}

.nk-download-links p {
    margin: 0
}

.source {
    overflow: hidden;
    padding-top: 5px
}

.source span {
    float: right;
    color: #3d8ecb
}

/* --- 15. Series Info --- */
/* --- Series Info Page --- */
.nk-series-info {
    float: left;
    width: 71%;
    background: var(--color-surface);
    padding: 0;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden
}

.nk-series-info h2 {
    font-size: 14px;
    position: relative;
    margin-bottom: 5px;
    display: none
}

/* Info tabs bar */
/* Series info header inherits standard .nk-section-header styles */

/* Cover + Synopsis area */
.nk-series-info .nk-series-detail {
    display: flex;
    gap: 16px;
    padding: 16px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
    overflow: visible
}

.nk-series-info .nk-series-detail img {
    float: none;
    width: 180px;
    min-width: 180px;
    height: 260px;
    padding: 0;
    margin-right: 0;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2)
}

.nk-series-info .nk-series-synopsis {
    text-align: left;
    flex: 1;
    min-width: 0
}

.nk-series-info .nk-series-synopsis b {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
    line-height: 1.3
}

.nk-series-info .nk-series-synopsis p {
    margin: 0 0 6px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    font-size: 13px
}

.nk-series-info .nk-series-synopsis .nk-latest-episode {
    display: none;
    float: right;
    margin-left: 10px;
    margin-bottom: 10px;
    padding: 1px;
    width: 150px;
    border: 1px solid var(--color-border);
    text-align: center
}

.nk-series-info .nk-series-synopsis .nk-latest-episode .latestheader {
    background: var(--color-accent-dark);
    font-weight: 700;
    line-height: 27px;
    font-size: 13px
}

.nk-series-info .nk-series-synopsis .nk-latest-episode .latestepisode {
    line-height: 40px;
    font-size: 17px;
    font-weight: 600;
    color: #f2b51a
}

.nk-series-info .nk-series-synopsis .nk-latest-episode .latestnow {
    line-height: 27px;
    font-size: 13px
}

.nk-series-info .nk-series-synopsis .nk-latest-episode .latestnow a {
    display: block;
    background: var(--color-surface-elevated);
    color: var(--color-text);
    font-weight: 700
}

.nk-series-info .nk-series-synopsis .nk-latest-episode .latestnow a:hover {
    color: var(--color-primary)
}

/* Meta list */
.nk-series-meta-list {
    font-size: 13px;
    margin: 0 16px 16px;
    font-family: var(--font-family);
    background: var(--color-surface-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden
}

.nk-series-meta-list ul li {
    display: flex;
    align-items: baseline;
    padding: 8px 14px;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition)
}

.nk-series-meta-list ul li:last-child {
    border-bottom: none
}

.nk-series-meta-list ul li:hover {
    background: var(--color-hover-bg)
}

.nk-series-meta-list ul li b {
    display: inline-block;
    float: none;
    width: 90px;
    min-width: 90px;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em
}

.nk-series-meta-list ul li a {
    color: var(--color-primary);
    font-weight: 500;
    transition: color var(--transition)
}

.nk-series-meta-list ul li a:hover {
    color: var(--color-primary-hover)
}

/* Notice/reminder box */
.nk-series-notice {
    margin: 0 16px 16px;
    padding: 10px 14px;
    background: rgba(233, 121, 145, .08);
    border: 1px solid rgba(233, 121, 145, .2);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5
}

.nk-series-notice b {
    color: var(--color-text);
    font-weight: 600
}

.nk-notice-icon {
    color: var(--color-primary);
    margin-right: 4px
}

/* Episode grid - standalone card */
.nk-episode-grid {
    float: left;
    width: 71%;
    margin-top: 10px;
    background: var(--color-surface);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden
}

.nk-episode-grid .nk-section-header {
    border-radius: var(--radius) var(--radius) 0 0
}

.nk-episode-grid ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: var(--color-surface)
}

.nk-episode-grid ul li {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface-elevated)
}

.nk-episode-card {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    transition: background var(--transition)
}

.nk-episode-card:hover {
    background: var(--color-hover-bg)
}

.nk-episode-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 62%;
    overflow: hidden;
    background-color: var(--color-surface-elevated)
}

.nk-episode-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease
}

.nk-episode-card:hover .nk-episode-card-thumb img {
    transform: scale(1.05)
}

.nk-episode-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    z-index: 2;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,.3)
}

.nk-episode-card-info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.nk-episode-card-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.nk-episode-card-date {
    font-size: 11px;
    color: var(--color-text-muted)
}


/* --- 16. Related Posts --- */
ul.nk-related-list {
    background: var(--color-surface);
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius)
}

.nk-main-content .nk-related-list li {
    padding: 12px;
    transition: background var(--transition);
    border-right: 1px solid var(--color-border);
    display: flex;
    align-items: flex-start;
    gap: 10px
}

.nk-main-content .nk-related-list li:last-child {
    border-right: none
}

.nk-main-content .nk-related-list li:hover {
    background: var(--color-hover-bg)
}

.nk-main-content .nk-related-list li .nk-related-thumb-frame .nk-related-thumb-crop {
    overflow: hidden;
    border-radius: var(--radius-sm)
}

.nk-main-content .nk-related-list li .nk-related-thumb-frame .nk-related-thumb-crop a img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block
}

.nk-main-content .nk-related-list li .nk-related-info {
    overflow: hidden;
    flex: 1;
    min-width: 0
}

.nk-main-content .nk-related-list li .nk-related-info .nk-related-title a {
    color: var(--color-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.nk-main-content .nk-related-list li .nk-related-info .nk-related-title a:hover {
    color: var(--color-primary)
}

.nk-related-section {
    background: var(--color-surface);
    margin-bottom: 15px;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden
}

/* Related info posts (related1) */
.nk-related-list--info {
    margin: 0
}

.nk-related-list--info li {
    padding: 5px;
    overflow: hidden
}

.nk-related-list--info li .img {
    height: 100%;
    width: 100%;
    display: none
}

.nk-related-list--info li .img .ltd {
    overflow: hidden;
    margin-right: 10px;
    width: 90px;
    min-width: 90px;
    height: 90px;
    position: relative;
    background-color: var(--color-surface-elevated);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-sm)
}

.nk-related-list--info li .img .ltd a {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2
}

.nk-related-list--info li .nf {
    padding: 10px 5px;
    line-height: normal;
    overflow: hidden
}

.nk-related-list--info li .nf h2 {
    font-size: 13px
}

.nk-related-list--info li .nf h2 a {
    color: var(--color-text)
}

.nk-related-list--info li .nf h2 a:hover {
    color: var(--color-primary)
}

/* Info related (infoarea related1) */
.nk-main-content .nk-related-list--info {
    margin-bottom: 15px;
    background: var(--color-surface);
    box-shadow: var(--shadow);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius)
}

.nk-main-content .nk-related-list--info li {
    padding: 10px;
    transition: background var(--transition)
}

.nk-main-content .nk-related-list--info li:hover {
    background: var(--color-hover-bg)
}

.nk-main-content .nk-related-list--info li .nk-info-thumb-frame {
    float: left;
    margin-right: 10px;
    padding-left: 5px
}

.nk-main-content .nk-related-list--info li .nk-info-thumb-frame .nk-info-thumb-crop {
    width: 150px;
    min-width: 150px;
    height: 100px;
    position: relative;
    overflow: hidden;
    padding: 5px 0 0;
    margin-bottom: 5px;
    border-radius: 4px
}

.nk-main-content .nk-related-list--info li .nk-info-thumb-frame .nk-info-thumb-crop a > img {
    border-radius: var(--radius);
    background-size: cover
}

.nk-main-content .nk-related-list--info li .nk-info-details {
    padding: 3px;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-top: 3px
}

.nk-main-content .nk-related-list--info li .nk-info-details .nk-info-title a {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600
}

.nk-main-content .nk-related-list--info li .nk-info-details .nk-info-title a:hover {
    color: #c93756
}

.nk-info-thumb-crop img {
    width: 150px;
    height: 150px
}

/* --- 17. Search Results --- */
.nk-search-results {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden
}

.nk-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.nk-search-results ul li {
    border-bottom: 1px solid var(--color-border)
}

.nk-search-results ul li:last-child {
    border-bottom: none
}

.nk-search-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
    transition: background var(--transition)
}

.nk-search-item:hover {
    background: var(--color-hover-bg)
}

.nk-search-thumb {
    width: 130px;
    min-width: 130px;
    height: 90px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg)
}

.nk-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.nk-search-info {
    flex: 1;
    min-width: 0;
    overflow: hidden
}

.nk-search-info h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.nk-search-item:hover h2 {
    color: var(--color-primary)
}

.nk-search-genres {
    display: block;
    font-size: 12px;
    color: var(--color-primary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.nk-search-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

/* --- 18. A-Z Index --- */
/* --- 18. A-Z Index --- */
.nk-az-index {
    width: 100%
}

.nk-az-nav {
    padding: 10px 12px;
    margin: 0;
    background: linear-gradient(135deg, rgba(233, 121, 145, .9) 0%, rgba(196, 82, 112, .95) 100%);
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.nk-az-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    min-width: 25px;
    height: 26px;
    padding: 0;
    font-size: 11px;
    transition: all var(--transition);
    color: rgba(255, 255, 255, .85);
    text-align: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .08);
    text-decoration: none;
    letter-spacing: .02em
}

.nk-az-nav a:hover {
    background: rgba(255, 255, 255, .25);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2)
}

#nk-az-list {
    overflow: hidden;
    clear: both;
    padding: 12px 14px
}

.nk-az-group {
    position: relative;
    margin-bottom: 8px;
    overflow: hidden;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--color-border)
}

.nk-az-group:last-child {
    border-bottom: none
}

.nk-az-letter {
    font-weight: 800;
    color: var(--color-primary);
    font-size: 26px;
    margin-bottom: 6px;
    background: transparent;
    padding: 10px 14px 6px;
    text-transform: uppercase;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px
}

.nk-az-letter::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--color-primary) 0%, transparent 100%);
    opacity: .3
}

.nk-az-letter a {
    color: var(--color-primary);
    text-decoration: none;
    scroll-margin-top: 100px
}

.nk-az-row {
    float: left;
    line-height: 1;
    list-style: none;
    width: 50%;
    color: var(--color-text-secondary);
    padding: 0 4px;
    box-sizing: border-box
}

.nk-az-item {
    font-weight: 400;
    color: var(--color-text-muted);
    padding: 7px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    transition: all .15s ease;
    position: relative;
    border-left: 2px solid transparent
}

.nk-az-item:hover {
    background: var(--color-hover-bg);
    border-left-color: var(--color-primary)
}

.nk-az-item a {
    font-size: 13px;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition)
}

.nk-az-item a:hover {
    text-decoration: none;
    color: var(--color-primary)
}

/* --- 19. Genres / Popular --- */
.nk-genre-list {
    overflow: hidden;
    font-size: 13px;
    padding: 14px
}

.nk-genre-list ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0
}

.nk-genre-list ul li {
    list-style: none;
    margin: 0;
    padding: 0;
    float: none;
    width: auto
}

.nk-genre-list ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--color-surface-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    transition: all .2s ease;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    overflow: hidden
}

.nk-genre-list ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--color-primary-gradient);
    transition: width .2s ease;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm)
}

.nk-genre-list ul li a:hover {
    color: var(--color-primary);
    border-color: rgba(233, 121, 145, .3);
    background: var(--color-hover-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 121, 145, .08);
    text-decoration: none
}

.nk-genre-list ul li a:hover::before {
    width: 3px
}

.nk-popular-list {
    margin-top: 10px;
    overflow: hidden;
    margin-left: -10px
}

.nk-popular-list li {
    float: left;
    width: 320px;
    margin-left: 10px;
    margin-bottom: 10px
}

.nk-popular-thumb {
    width: 150px;
    height: 200px;
    float: left;
    padding: 2px;
    border: 1px solid var(--color-border);
    margin-right: 10px;
    border-radius: var(--radius)
}

.nk-popular-thumb a {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2
}

.nk-popular-list li span {
    display: block;
    font-size: 13px
}

.nk-popular-list li span a {
    color: var(--color-primary)
}

/* --- 20. Sidebar --- */
#nk-sidebar .nk-widget {
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border)
}

#nk-sidebar .nk-widget::before {
    display: none
}

#nk-sidebar h3 {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    color: rgba(255, 255, 255, .9);
    background-color: var(--color-accent-dark);
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(233, 121, 145, .15)
}

#nk-sidebar h3 span {
    float: right;
    color: #eee
}

#nk-sidebar ul {
    font-size: 12px;
    margin-bottom: 10px;
    background: var(--color-surface);
    padding: 0
}

#nk-sidebar ul li {
    overflow: hidden;
    padding-bottom: 5px;
    padding-top: 7px;
    transition: background var(--transition)
}

#nk-sidebar ul li:hover {
    background: var(--color-hover-bg)
}

#nk-sidebar ul li a {
    color: var(--color-text-secondary)
}

#nk-sidebar .textwidget {
    color: #7e7e7e
}

#nk-sidebar ul li .right {
    height: 41px;
    margin-left: 48px;
    padding: 1px 5px;
    font-size: 13px;
    background: 0 0;
    line-height: 18px
}

#nk-sidebar ul li .right .title {
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

#nk-sidebar ul li .right .title a {
    color: var(--color-primary)
}

#nk-sidebar ul li .right .latest {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    color: var(--color-text-muted)
}

#nk-sidebar ul li .right .latest a {
    color: var(--color-text-secondary)
}

.nk-widget-thumb-frame {
    float: left;
    width: 40px;
    height: 40px;
    border-radius: 3px;
    margin: 0 8px 0 5px;
    overflow: hidden
}

.nk-widget-thumb-crop {
    overflow: hidden;
    width: 100%;
    height: 100%
}

.nk-widget-thumb-crop img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.nk-widget-episodes a li {
    overflow: hidden;
    padding-bottom: 5px;
    padding-top: 7px
}

.nk-widget-badge {
    padding: 3px
}

.nk-widget-badge .video {
    display: block;
    font-size: 13px
}

/* --- 21. Pagination --- */
.pagination {
    overflow: hidden;
    line-height: 15px;
    padding: 10px 15px;
    background: var(--color-primary);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius)
}

.pagination .page {
    float: left;
    font-size: 13px
}

.pagination .page span {
    color: rgba(255, 255, 255, .7);
    padding: 8px;
    margin-right: 5px;
    font-weight: 400;
    text-transform: uppercase;
    border-radius: var(--radius-sm)
}

.pagination .page .now {
    padding: 5px 10px;
    color: var(--color-primary);
    background: #fff;
    border: none;
    font-weight: 700;
    border-radius: var(--radius-sm)
}

.pagination .page a {
    padding: 5px 10px;
    color: rgba(255, 255, 255, .85);
    background: 0 0;
    font-weight: 400;
    border-radius: var(--radius-sm);
    transition: background var(--transition)
}

.pagination .page a:hover {
    background: rgba(0, 0, 0, .15);
    color: #fff;
    font-weight: 400;
    text-decoration: none
}

.pagination .nav-links span.page-numbers.current {
    display: block;
    float: left;
    padding: 5px 10px;
    color: var(--color-primary);
    background: #fff;
    border: 1px solid #fff;
    font-weight: 700;
    border-radius: var(--radius)
}

.pagination .nav-links a.page-numbers {
    display: block;
    float: left;
    color: #fff;
    padding: 5px 10px;
    border: 1px solid transparent;
    font-weight: 400
}

.pagination .nav-links span.page-numbers.dots {
    display: none
}

.nk-episode-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 6px;
    padding: 8px 10px;
    margin: 0
}

.nk-episode-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 6px;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.35;
    min-width: 0;
    flex: 1;
    transition: all var(--transition)
}

.nk-episode-nav a:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-color: rgba(255, 255, 255, .2);
    text-decoration: none
}

.nk-episode-nav a svg {
    flex-shrink: 0;
    opacity: .6;
    transition: opacity var(--transition), transform var(--transition)
}

.nk-episode-nav a:hover svg {
    opacity: 1
}

.nk-episode-nav .nk-episode-prev:hover svg {
    transform: translateX(-2px)
}

.nk-episode-nav .nk-episode-next:hover svg {
    transform: translateX(2px)
}

.nk-episode-nav a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0
}

.nk-episode-nav .nk-episode-next {
    justify-content: flex-end;
    text-align: right
}

/* --- 22. Tooltips --- */
#nk-tooltip-popup {
    position: absolute;
    z-index: 100000;
    pointer-events: auto;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .5));
    max-width: calc(100vw - 20px)
}

#nk-tooltip-popup.nk-tooltip-above .nk-tooltip-card::after {
    top: auto;
    bottom: -6px;
    border-bottom: none;
    border-top: 6px solid var(--color-surface-elevated)
}

.nk-tooltip-card {
    padding: 0;
    width: 420px;
    max-width: 100%;
    min-height: 10px;
    background: var(--color-surface-elevated);
    min-width: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    position: relative;
    box-sizing: border-box
}

.nk-tooltip-card::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--color-surface-elevated);
    content: '';
    position: absolute;
    top: -6px;
    left: 2em
}

.nk-tooltip-card h2 {
    font-weight: 600;
    font-size: 13px;
    margin: 0;
    padding: 8px 12px;
    background: var(--color-surface-elevated);
    color: var(--color-text);
    line-height: 1.4;
    border-bottom: 1px solid var(--color-border)
}

.nk-tooltip-body {
    background: var(--color-accent-dark);
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start
}

.nk-tooltip-body .nk-tooltip-img {
    width: 110px;
    min-width: 110px;
    height: auto;
    border-radius: var(--radius-sm);
    overflow: hidden
}

.nk-tooltip-body .nk-tooltip-img img {
    width: 110px;
    height: auto;
    display: block
}

.nk-tooltip-body .nk-tooltip-detail {
    flex: 1;
    min-width: 0
}

.nk-tooltip-detail p {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text);
    margin: 0;
    padding: 0;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid var(--color-border)
}

.nk-tooltip-detail p:last-child {
    border-bottom: none
}

.nk-tooltip-detail p a {
    color: var(--color-primary)
}

.nk-tooltip-detail b {
    font-weight: 500;
    display: inline-block;
    width: 100px;
    color: var(--color-text-muted);
    font-size: 11px
}

/* --- 23. Comments --- */
.nk-comments {
    background: var(--color-surface);
    padding: 0 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2px;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius)
}

.nk-comments h3 {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    margin-bottom: 0
}

/* --- 24. Footer --- */
#nk-footer {
    padding: 20px 0 12px;
    color: var(--color-text-secondary);
    line-height: 24px;
    overflow: hidden;
    font-size: 12px;
    margin: 0 auto;
    width: var(--max-width);
    border-top: 1px solid var(--color-border)
}

#nk-footer a {
    color: var(--color-primary);
    font-weight: 600
}

#nk-footer a:hover {
    text-decoration: underline
}

#nk-footer .nk-footer-inner {
    padding: 0;
    margin: 0 auto;
    font-size: 13px;
    text-align: center
}

#nk-footer .nk-footer-inner .nk-copyright {
    float: none;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px
}

#nk-footer .nk-footer-inner .other {
    float: right
}

/* --- 25. Light Switch / Overlay --- */
.nk-lights-toggle {
    /* Styled via .nk-player-controls button */
}

#nk-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--color-overlay);
    width: 100%;
    height: 100%;
    z-index: 9998;
    transition: all .5s ease
}

/* --- 26. Ads --- */
.nk-ad-page {
    overflow: hidden
}

.nk-ad-page .textwidget {
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    padding-top: 5px;
    padding-bottom: 10px;
    margin-bottom: 10px
}

.nk-ad-sidebar-300 {
    margin: -1px
}

.nk-ad-pagenav {
    display: block;
    width: 760px;
    height: 90px;
    margin: 13px auto;
    border-radius: var(--radius)
}

.nk-ad-pagenav .nk-ad-pagenav-slot .textwidget {
    text-align: center
}

.nk-ad-pagenav .nk-ad-pagenav-slot .textwidget img {
    width: 728px;
    height: 90px
}

.nk-ad-mobile {
    display: none;
    height: 60px;
    width: 100%;
    background-size: cover
}

.nk-ad-mobile .nk-ad-slot img {
    height: 60px;
    width: 100%
}

.nk-ad-mobile-top {
    display: none;
    height: 60px;
    width: 320px;
    margin: 10px auto;
    border: 1px solid var(--color-border);
    background-size: cover
}

.nk-ad-mobile-top img {
    height: 60px;
    width: 320px
}

.nk-ad-mobile-bottom {
    display: none;
    height: 250px;
    width: 320px;
    margin: auto;
    background-size: cover
}

.nk-ad-mobile-bottom img {
    height: 250px;
    width: 320px
}

.nk-sidebar-optional {
    padding: 0;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    border-radius: var(--radius)
}

/* --- 27. Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
    background-color: transparent;
    -webkit-border-radius: 100px
}

::-webkit-scrollbar:hover {
    background-color: rgba(0, 0, 0, .09)
}

::-webkit-scrollbar-thumb:vertical {
    background: rgba(0, 0, 0, .5);
    -webkit-border-radius: 100px;
    background-clip: padding-box;
    border: 2px solid transparent;
    min-height: 10px
}

::-webkit-scrollbar-thumb:vertical:active {
    background: rgba(0, 0, 0, .61);
    -webkit-border-radius: 100px
}

/* --- 28. 404 --- */
.nk-404-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    overflow: hidden;
    position: relative
}

.nk-404-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(233, 121, 145, .08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(233, 121, 145, .05) 0%, transparent 50%);
    animation: nk404drift 20s ease-in-out infinite alternate;
    pointer-events: none
}

@keyframes nk404drift {
    0% { transform: translate(0, 0) }
    100% { transform: translate(-5%, 3%) }
}

.nk-404 {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    max-width: 520px
}

.nk-404__code {
    font-size: clamp(100px, 20vw, 180px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -8px;
    margin-bottom: 16px;
    user-select: none
}

.nk-404__4,
.nk-404__4b {
    color: var(--color-primary);
    display: inline-block;
    animation: nk404pulse 3s ease-in-out infinite
}

.nk-404__4b {
    animation-delay: .3s
}

.nk-404__0 {
    display: inline-block;
    color: var(--color-text-muted);
    animation: nk404float 4s ease-in-out infinite
}

@keyframes nk404pulse {
    0%, 100% { opacity: 1; transform: scale(1) }
    50% { opacity: .7; transform: scale(.97) }
}

@keyframes nk404float {
    0%, 100% { transform: translateY(0) }
    50% { transform: translateY(-8px) }
}

.nk-404__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
    letter-spacing: -.5px
}

.nk-404__desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 32px;
    line-height: 1.6
}

.nk-404__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px
}

.nk-404__btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease
}

.nk-404__btn--primary {
    background: var(--color-primary);
    color: #fff
}

.nk-404__btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(233, 121, 145, .3)
}

.nk-404__btn--ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border)
}

.nk-404__btn--ghost:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
    transform: translateY(-1px)
}

.nk-404__search {
    display: flex;
    max-width: 360px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    transition: border-color .2s ease
}

.nk-404__search:focus-within {
    border-color: var(--color-primary)
}

.nk-404__input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--color-text);
    font-size: 13px;
    outline: none;
    font-family: inherit
}

.nk-404__input::placeholder {
    color: var(--color-text-muted)
}

.nk-404__submit {
    padding: 10px 18px;
    border: none;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s ease;
    font-family: inherit
}

.nk-404__submit:hover {
    background: var(--color-primary-dark)
}

/* --- 29. Misc / Legacy --- */
.nk-series-link {
    color: inherit
}

.nk-ad-mobile-floating {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999
}

/* Popup overlay (ad interstitial) */
.qdh5bmkh44i5y7lm031n {
    position: fixed;
    z-index: 999999999999;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0
}

.jpzw55hpb6e7vxk6dg53 {
    position: fixed;
    z-index: 999999999999;
    left: 0;
    top: 50%;
    margin: 0 auto;
    text-align: center;
    right: 0;
    width: 400px;
    height: 350px;
    margin-top: -175px
}

.jpzw55hpb6e7vxk6dg53 img {
    max-width: 100%;
    max-height: 100%
}

.jpzw55hpb6e7vxk6dg53 .close-button {
    margin-top: 0
}

.jpzw55hpb6e7vxk6dg53 .close-button a {
    padding: 6px 10px;
    background: var(--color-primary);
    font-size: 14px;
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none
}

/* Dark mode toggle switch */
.nk-theme-switch {
    display: flex;
    justify-content: center;
    padding: 16px 0 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent
}

.nk-switch-track {
    position: relative;
    width: 56px;
    height: 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0c27f 0%, #fc5c7d 100%);
    transition: background var(--transition-slow);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .1)
}

.nk-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff2a8 0%, #ffd649 100%);
    transition: transform var(--transition-slow), background var(--transition-slow), box-shadow var(--transition-slow);
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2)
}

.nk-switch-crater {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, .12);
    opacity: 0;
    transition: opacity var(--transition-slow)
}

.nk-switch-crater:nth-child(1) { width: 6px; height: 6px; top: 5px; left: 4px }
.nk-switch-crater:nth-child(2) { width: 4px; height: 4px; top: 12px; left: 11px }
.nk-switch-crater:nth-child(3) { width: 5px; height: 5px; top: 4px; left: 13px }

.nk-switch-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: center
}

.nk-switch-sun {
    left: 7px;
    color: #fff;
    opacity: 0;
    transform: translateY(-50%) scale(.6) rotate(-90deg)
}

.nk-switch-moon {
    right: 7px;
    color: rgba(255, 255, 255, .7);
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(0deg)
}

.nk-switch-stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none
}

.nk-switch-stars span {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: opacity var(--transition-slow)
}

.nk-switch-stars span:nth-child(1) { top: 6px; right: 12px }
.nk-switch-stars span:nth-child(2) { top: 16px; right: 18px }
.nk-switch-stars span:nth-child(3) { top: 10px; right: 26px }

/* Dark mode active state */
[data-theme="dark"] .nk-switch-track {
    background: linear-gradient(135deg, #0f1729 0%, #1a1a3e 50%, #2d1b4e 100%)
}

[data-theme="dark"] .nk-switch-thumb {
    transform: translateX(28px);
    background: linear-gradient(135deg, #c8cad0 0%, #e8e8ec 100%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .4)
}

[data-theme="dark"] .nk-switch-crater { opacity: 1 }

[data-theme="dark"] .nk-switch-sun {
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(0deg)
}

[data-theme="dark"] .nk-switch-moon {
    opacity: 0;
    transform: translateY(-50%) scale(.6) rotate(90deg)
}

[data-theme="dark"] .nk-switch-stars span { opacity: .8 }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .nk-switch-track {
        background: linear-gradient(135deg, #0f1729 0%, #1a1a3e 50%, #2d1b4e 100%)
    }
    :root:not([data-theme="light"]) .nk-switch-thumb {
        transform: translateX(28px);
        background: linear-gradient(135deg, #c8cad0 0%, #e8e8ec 100%);
        box-shadow: 0 1px 4px rgba(0, 0, 0, .4)
    }
    :root:not([data-theme="light"]) .nk-switch-crater { opacity: 1 }
    :root:not([data-theme="light"]) .nk-switch-sun {
        opacity: 1;
        transform: translateY(-50%) scale(1) rotate(0deg)
    }
    :root:not([data-theme="light"]) .nk-switch-moon {
        opacity: 0;
        transform: translateY(-50%) scale(.6) rotate(90deg)
    }
    :root:not([data-theme="light"]) .nk-switch-stars span { opacity: .8 }
}

.nk-switch-track:active .nk-switch-thumb {
    width: 26px
}

[data-theme="dark"] .nk-switch-track:active .nk-switch-thumb {
    width: 26px;
    transform: translateX(24px)
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
    .nk-related-list ul li .foot {
        bottom: 2px;
        width: 94.2%
    }
}

/* --- 30. Responsive --- */
@media only screen and (max-width: 600px) {
    body {
        background-image: none
    }

    .nk-main-content .nk-related-list--info li .nk-info-thumb-frame {
        display: none
    }

    #nk-mobile-nav {
        display: block;
        max-width: 100vw
    }

    #nk-main-nav {
        display: none
    }

    #nk-header, #nk-sidebar {
        display: none
    }

    #nk-header .logo {
        float: none;
        text-align: center
    }

    #nk-header .logo img {
        height: auto;
        width: 50%
    }

    .nk-main-content {
        float: none;
        width: 100%;
        padding-bottom: 10px
    }

    #nk-episode-grid {
        width: 100%;
        overflow: hidden
    }

    #nk-footer {
        width: 100%
    }

    #nk-footer .nk-footer-inner {
        padding: 0;
        width: 100%;
        line-height: 19px;
        text-align: center;
        margin: 0 auto
    }

    #nk-footer .nk-footer-inner .nk-copyright {
        float: none
    }

    #nk-footer .nk-footer-inner .other {
        float: none
    }

    .nk-post-header h1 {
        font-size: 14px
    }

    .nk-home-layout .nk-episodes-area {
        width: 100%
    }

    .nk-sidebar-optional {
        display: none
    }

    .nk-social-bar .right span {
        font-size: 11px
    }

    .nk-hentai-grid ul {
        grid-template-columns: repeat(3, 1fr)
    }

    .nk-hentai-grid ul li .title {
        font-size: 10px
    }

    #nk-wrap {
        padding: 0;
        width: 100%;
        margin-top: 10px;
        border: 1px transparent
    }

    .nk-ad-banner {
        display: none
    }

    .nk-ad-pagenav {
        display: none
    }

    .nk-post-body .nk-featured-img img {
        max-width: 200px
    }

    .nk-series-info .nk-series-detail {
        flex-direction: column;
        align-items: center;
        padding: 12px
    }

    .nk-series-info .nk-series-detail img {
        float: none;
        width: 50% !important;
        min-width: 140px;
        height: auto !important;
        margin: 0 auto 12px;
        display: block
    }

    .nk-series-meta-list {
        margin: 0 10px 12px
    }

    .nk-series-meta-list ul li {
        padding: 6px 10px
    }

    .nk-series-meta-list ul li b {
        width: 70px;
        min-width: 70px;
        font-size: 11px
    }

    .nk-episode-grid {
        float: none;
        width: 100%;
        margin-top: 8px
    }

    .nk-episode-grid ul {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 8px
    }

    .nk-episode-card-title {
        font-size: 11px;
        -webkit-line-clamp: 1
    }

    .nk-episode-card-info {
        padding: 6px 8px
    }

    .nk-episode-badge {
        font-size: 10px;
        padding: 2px 6px
    }

    .nk-container {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        background: var(--color-accent-dark)
    }

    .nk-social-bar .right {
        float: none
    }

    .nk-social-bar .left {
        float: none
    }

    .nk-series-info {
        float: none;
        width: 100%
    }

    .nk-series-info .nk-series-synopsis .nk-latest-episode {
        display: none
    }

    .nk-az-nav {
        padding: 8px;
        gap: 3px
    }

    .nk-az-nav a {
        min-width: 26px;
        height: 26px;
        padding: 0 4px;
        font-size: 10px
    }

    .nk-az-row {
        width: 100%;
        float: none
    }

    .nk-az-letter {
        font-size: 22px;
        padding: 8px 10px 4px
    }

    #nk-az-list {
        padding: 8px
    }

    .nk-az-item {
        padding: 6px 8px;
        border-left-width: 2px
    }

    .nk-home-layout .nk-ad-left {
        display: none
    }

    .nk-post-card .nk-post-meta {
        margin-left: 0
    }

    ul.nk-related-list {
        display: block;
        height: 100%;
        box-shadow: none;
        padding-top: 5px
    }

    .nk-main-content .nk-related-list li {
        width: 100%;
        float: left
    }

    .nk-main-content .nk-related-list li .nk-related-thumb-frame {
        float: left;
        padding-right: 10px
    }

    .nk-main-content .nk-related-list li .nk-related-thumb-frame .nk-related-thumb-crop a img {
        width: 55px;
        height: auto
    }

    .nk-main-content .nk-related-list li .nk-related-info {
        background: 0 0;
        color: var(--color-text)
    }

    .nk-main-content .nk-related-list li .nk-related-info .nk-related-title a {
        color: var(--color-text)
    }

    .nk-jav-grid {
        padding: 0
    }

    .nk-jav-grid ul {
        margin: 0
    }

    .nk-jav-grid ul li {
        float: none;
        width: 100%;
        height: auto;
        margin: 0 0 4px;
        overflow: hidden;
        padding: 8px 10px;
        display: flex;
        align-items: flex-start
    }

    .nk-jav-grid ul li .nk-grid-thumb {
        width: 80px;
        min-width: 80px;
        height: 52px;
        float: none;
        flex-shrink: 0
    }

    .nk-jav-grid ul li .nk-jav-meta {
        flex: 1;
        min-width: 0;
        margin-left: 10px
    }

    .nk-jav-grid ul li h2 {
        font-size: 13px;
        line-height: 1.3;
        position: inherit;
        text-align: left;
        background: var(--color-surface);
        color: var(--color-text);
        padding: 0;
        bottom: 0;
        white-space: normal;
        text-overflow: clip;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden
    }

    .nk-jav-grid ul li .nk-jav-meta > span {
        display: block;
        font-size: 11px;
        color: var(--color-text-muted)
    }

    .nk-download-section .nk-download-box .nk-download-row {
        width: 100%;
        margin: 0 0 15px
    }

    .nk-download-section {
        padding: 10px
    }

    .nk-download-section .nk-download-box .nk-download-row .nk-download-links {
        white-space: normal;
        overflow: visible
    }

    .nk-download-section .nk-download-box .nk-download-row .nk-download-links p {
        display: flex;
        flex-wrap: wrap;
        gap: 5px
    }

    .nk-download-section .nk-download-box .nk-download-row .nk-download-links a {
        float: none;
        flex: 1 1 0;
        margin: 0;
        text-align: center;
        padding: 6px 8px;
        font-size: 11px;
        min-width: 0
    }

    .nk-mobile-search {
        display: block;
        background: var(--color-accent-dark);
        padding: 8px 12px;
        max-width: 100vw
    }

    .nk-mobile-search form {
        display: flex;
        background: rgba(255, 255, 255, .08);
        border-radius: var(--radius);
        overflow: hidden
    }

    .nk-mobile-search input[type="text"] {
        border: 0;
        background: transparent;
        font-family: var(--font-family);
        flex: 1;
        padding: 10px 14px;
        color: #fff;
        font-size: 14px;
        outline: none
    }

    .nk-mobile-search input::placeholder {
        color: rgba(255, 255, 255, .35)
    }

    .nk-ad-mobile {
        display: block;
        margin-bottom: 10px
    }

    .nk-ad-mobile .nk-ad-slot {
        margin: 0 auto
    }

    .nk-ad-mobile-top {
        display: block
    }

    .nk-ad-mobile-bottom {
        display: block;
        margin-bottom: 10px
    }

    .jpzw55hpb6e7vxk6dg53 {
        top: 64%;
        width: 335px;
        height: 234px
    }

    /* --- Global mobile overflow protection --- */
    html {
        overflow-x: hidden;
        max-width: 100vw
    }

    body {
        overflow-x: hidden;
        max-width: 100vw
    }

    * {
        box-sizing: border-box
    }

    .nk-post-card + .nk-section-header {
        margin-top: 12px
    }

    /* --- Episode card: flexbox on mobile --- */
    .nk-post-card {
        display: flex;
        align-items: flex-start;
        padding: 8px 10px
    }

    .nk-post-card .nk-post-thumb {
        float: none;
        flex-shrink: 0;
        width: 80px;
        height: 52px;
        margin-right: 10px;
        margin-left: 0
    }

    .nk-post-card .nk-post-meta {
        flex: 1;
        min-width: 0;
        margin-left: 0
    }

    .nk-post-card .nk-post-meta h2 {
        font-size: 13px;
        white-space: normal;
        text-overflow: clip;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden
    }

    .nk-post-card .nk-post-meta > span {
        font-size: 11px
    }

    .nk-post-card .nk-post-meta > span a {
        font-size: 10px;
        padding: 2px 6px
    }

    /* --- Post title: full width on mobile --- */
    .nk-post-header {
        padding: 12px 14px 10px 16px
    }

    .nk-post-header h1 {
        font-size: 14px;
        line-height: 1.4
    }

    .nk-post-header-meta {
        gap: 10px;
        font-size: 11px
    }

    /* --- Search results: smaller thumbnails --- */
    .nk-search-thumb {
        width: 90px !important;
        min-width: 90px !important;
        height: 65px !important
    }

    .nk-search-info h2 {
        font-size: 13px !important
    }

    .nk-search-desc {
        font-size: 12px !important;
        -webkit-line-clamp: 2 !important
    }

    .nk-search-item {
        padding: 8px !important;
        gap: 10px !important
    }

    /* Download section inherits 600px rules, no further reduction needed */

    /* --- Streaming player: fit mobile --- */
    .nk-player-wrapper .nk-player-frame {
        width: 100% !important
    }

    .nk-player-wrapper .nk-player-frame .nk-video-iframe {
        width: 100% !important
    }

    #nk-player-tabs a {
        padding: 6px 10px;
        font-size: 12px
    }

    /* --- Episode navigation: prevent overflow --- */
    .nk-episode-nav {
        flex-direction: column;
        padding: 6px 10px
    }

    .nk-episode-nav a {
        font-size: 12px;
        padding: 8px 12px
    }

    /* --- Section headers: tighter on mobile --- */
    .nk-section-header h1 {
        font-size: 14px;
        padding: 8px 12px
    }

    /* --- Related posts: compact on mobile --- */
    .nk-related-section {
        padding: 8px
    }

    /* --- Info Terkini: compact --- */
    .nk-main-content .nk-widget .nk-widget-episodes li {
        padding: 8px
    }

    /* --- A-Z index: mobile overrides --- */
    .nk-az-group {
        padding: 0 4px;
        margin-bottom: 6px
    }

    .nk-az-item {
        font-size: 13px
    }

    .nk-main-content--list {
        border-radius: 0
    }

    /* --- Genre list: responsive grid --- */
    .nk-genre-list {
        padding: 10px
    }

    .nk-genre-list ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px
    }

    .nk-genre-list ul li a {
        padding: 9px 10px;
        font-size: 12px
    }

    /* --- Tooltip: smaller on mobile --- */
    #nk-tooltip-popup {
        display: none !important
    }

    /* --- Pagination: compact on mobile --- */
    .nav-links .page-numbers {
        padding: 6px 10px;
        font-size: 13px
    }

    /* --- Footer: tighter on mobile --- */
    #nk-footer {
        padding: 12px 10px;
        font-size: 12px
    }

    /* --- Post body: prevent image overflow --- */
    .nk-post-body img,
    .nk-article img {
        max-width: 100% !important;
        height: auto !important
    }

    /* --- Series info page: stack layout --- */
    .nk-series-detail {
        display: block !important
    }

    .nk-series-detail img {
        display: block;
        margin: 0 auto 10px !important;
        max-width: 50% !important
    }

    .nk-series-synopsis {
        padding: 0 8px
    }

    /* --- Info tabs: scroll if needed --- */

    /* --- Hentai Lainnya widget: compact grid --- */
    .nk-related-section .nk-related-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px
    }

    .nk-related-section .nk-related-list li {
        width: 100% !important;
        float: none !important
    }
}

@media only screen and (max-width: 360px) {
    .jpzw55hpb6e7vxk6dg53 {
        top: 73%
    }

    /* Extra-small screen adjustments */
    .nk-post-card .nk-post-thumb {
        width: 70px;
        height: 46px
    }

    .nk-search-thumb {
        width: 75px !important;
        min-width: 75px !important;
        height: 55px !important
    }

    .nk-hentai-grid ul {
        grid-template-columns: repeat(2, 1fr)
    }

    #nk-mobile-nav ul li a {
        font-size: 11px;
        line-height: 38px
    }

    .nk-episode-grid ul {
        grid-template-columns: repeat(2, 1fr)
    }
}
