.novel-hover-preview {
    --preview-accent: 139, 92, 246;
    position: fixed;
    z-index: 100000;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transform-origin: center;
    transition:
        opacity 180ms ease,
        transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 180ms ease;
}

.novel-hover-preview.is-visible {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.novel-hover-preview__surface {
    position: relative;
    overflow: hidden;
    min-height: 238px;
    padding: 20px;
    border: 1px solid rgba(var(--preview-accent), 0.34);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(15, 16, 24, 0.94), rgba(8, 10, 16, 0.97));
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.58),
        0 0 26px rgba(var(--preview-accent), 0.1);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.novel-hover-preview__surface::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(125deg, rgba(var(--preview-accent), 0.1), transparent 42%),
        radial-gradient(circle at 88% 10%, rgba(34, 211, 238, 0.11), transparent 34%);
}

.novel-hover-preview__body {
    position: relative;
    z-index: 1;
}

.novel-hover-preview__eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: rgba(165, 243, 252, 0.82);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.novel-hover-preview__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgb(var(--preview-accent));
    box-shadow: 0 0 12px rgba(var(--preview-accent), 0.8);
}

.novel-hover-preview__title {
    margin: 0;
    color: #fff;
    font-size: 1.18rem;
    font-weight: 850;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.novel-hover-preview__author {
    display: none;
    margin: 7px 0 0;
    color: rgba(226, 232, 240, 0.64);
    font-size: 0.78rem;
    font-weight: 650;
}

.novel-hover-preview__author.has-value {
    display: block;
}

.novel-hover-preview__description {
    display: -webkit-box;
    min-height: 2.9em;
    margin: 14px 0 0;
    overflow: hidden;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.novel-hover-preview__description.is-empty {
    color: rgba(148, 163, 184, 0.66);
    font-style: italic;
}

.novel-hover-preview__tags,
.novel-hover-preview__meta {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.novel-hover-preview__tags.has-values,
.novel-hover-preview__meta.has-values {
    display: flex;
}

.novel-hover-preview__tag,
.novel-hover-preview__meta-item {
    max-width: 100%;
    overflow: hidden;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.68rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-hover-preview__meta-item.is-rating {
    border-color: rgba(250, 204, 21, 0.18);
    color: #fde68a;
}

.novel-hover-preview__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 17px;
    padding: 0 15px;
    border: 1px solid rgba(var(--preview-accent), 0.42);
    border-radius: 8px;
    background: rgba(var(--preview-accent), 0.18);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.novel-hover-preview__action:hover,
.novel-hover-preview__action:focus-visible {
    border-color: rgba(34, 211, 238, 0.62);
    background: rgba(var(--preview-accent), 0.3);
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

@media (hover: none), (pointer: coarse), (max-width: 1023px) {
    .novel-hover-preview {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .novel-hover-preview,
    .novel-hover-preview__action {
        transition: none;
    }
}
