/* Hentai4Free individual image page – scoped to body#image */
:root {
    --h4f-bg: #09090b;
    --h4f-surface: #121217;
    --h4f-surface-2: #19191f;
    --h4f-border: rgba(255, 255, 255, .10);
    --h4f-text: #f7f7f8;
    --h4f-muted: #a6a6b0;
    --h4f-accent: #e11d48;
    --h4f-accent-2: #fb315f;
}

body#image {
    background: var(--h4f-bg);
    color: var(--h4f-text);
}

body#image #top-bar {
    background: rgba(9, 9, 11, .94);
    border-bottom: 1px solid var(--h4f-border);
    backdrop-filter: blur(14px);
}

body#image .image-viewer {
    background:
        radial-gradient(circle at 50% 0, rgba(225, 29, 72, .12), transparent 42%),
        #050506;
    border-bottom: 1px solid var(--h4f-border);
    padding: 24px 16px;
}

body#image .h4f-reader-grid {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: 210px minmax(0, 1fr) 210px;
    margin: 18px auto 0;
    max-width: 1540px;
    padding: 0 14px;
}

body#image .h4f-reader-grid--solo {
    display: block;
    max-width: none;
    padding: 0;
}

body#image .h4f-reader-stage {
    min-width: 0;
}

body#image .h4f-reader-stage .image-viewer {
    border: 1px solid var(--h4f-border);
    border-radius: 14px;
    min-height: 560px;
    overflow: hidden;
}

body#image .h4f-reader-stage .image-viewer .media {
    max-height: calc(100vh - 145px);
    object-fit: contain;
}

body#image .h4f-reader-rail {
    background: #111116;
    border: 1px solid var(--h4f-border);
    border-radius: 12px;
    overflow: hidden;
    padding: 10px;
}

body#image .h4f-rail-heading {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 3px 3px 10px;
    text-transform: uppercase;
}

body#image .h4f-manga-card {
    color: #f4f4f6;
    display: block;
    text-decoration: none;
}

body#image .h4f-manga-card--rail + .h4f-manga-card--rail {
    border-top: 1px solid var(--h4f-border);
    margin-top: 10px;
    padding-top: 10px;
}

body#image .h4f-manga-card-image {
    background: #08080a;
    border-radius: 8px;
    display: block;
    overflow: hidden;
    position: relative;
}

body#image .h4f-manga-card-image::after {
    background: linear-gradient(transparent, rgba(0, 0, 0, .25));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

body#image .h4f-manga-card img {
    aspect-ratio: 16 / 10;
    display: block;
    height: auto;
    object-fit: cover;
    transition: transform .22s ease;
    width: 100%;
}

body#image .h4f-manga-card:hover img {
    transform: scale(1.035);
}

body#image .h4f-manga-card-title {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 7px;
    overflow: hidden;
}

body#image .h4f-manga-card:hover .h4f-manga-card-title {
    color: var(--h4f-accent-2);
}

body#image .h4f-manga-strip {
    background: #111116;
    border: 1px solid var(--h4f-border);
    border-radius: 14px;
    margin-bottom: 18px;
    margin-top: 18px;
    padding: 18px;
}

body#image .h4f-strip-header {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

body#image .h4f-strip-header h2 {
    color: #fff;
    font-size: 20px;
    margin: 2px 0 0;
}

body#image .h4f-strip-header > a,
body#image .h4f-strip-kicker {
    color: var(--h4f-accent-2);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

body#image .h4f-manga-strip-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

body#image .h4f-discovery-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

body#image .h4f-discovery-label {
    color: var(--h4f-muted);
    font-size: 12px;
    font-weight: 800;
    margin-right: 3px;
    text-transform: uppercase;
}

body#image .h4f-discovery-links a {
    background: #17171d;
    border: 1px solid var(--h4f-border);
    border-radius: 999px;
    color: #dedee4;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 11px;
    text-decoration: none;
}

body#image .h4f-discovery-links a:hover {
    border-color: rgba(251, 49, 95, .55);
    color: var(--h4f-accent-2);
}

body#image .image-viewer .media {
    border-radius: 12px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .55);
}

body#image .h4f-image-shell {
    margin-top: 20px;
}

body#image .h4f-breadcrumb {
    align-items: center;
    color: var(--h4f-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 8px;
    margin: 0 0 14px;
}

body#image .h4f-breadcrumb a {
    color: #d8d8df;
    text-decoration: none;
}

body#image .h4f-breadcrumb a:hover,
body#image .viewer-title a:hover {
    color: var(--h4f-accent-2);
}

body#image .h4f-breadcrumb-separator {
    color: #62626c;
}

body#image .viewer-title {
    color: var(--h4f-text);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
}

body#image .viewer-title a {
    color: inherit;
    text-decoration: none;
}

body#image .description-meta,
body#image .description-meta a {
    color: var(--h4f-muted);
}

body#image .h4f-image-summary {
    background: linear-gradient(145deg, var(--h4f-surface), var(--h4f-surface-2));
    border: 1px solid var(--h4f-border);
    border-radius: 14px;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 18px 0;
    padding: 20px;
}

body#image .h4f-image-summary-copy h2 {
    color: var(--h4f-text);
    font-size: 18px;
    margin: 0 0 7px;
}

body#image .h4f-image-summary-copy p {
    color: var(--h4f-muted);
    line-height: 1.6;
    margin: 0;
}

body#image .h4f-brand-cta {
    align-items: center;
    align-self: center;
    background: linear-gradient(135deg, var(--h4f-accent), var(--h4f-accent-2));
    border-radius: 9px;
    box-shadow: 0 9px 24px rgba(225, 29, 72, .24);
    color: #fff !important;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    text-decoration: none !important;
    white-space: nowrap;
}

body#image .h4f-brand-cta:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

body#image .header-content-right .btn,
body#image .tab-navigation .btn,
body#image .panel-share-item,
body#image .panel-description {
    border-color: var(--h4f-border);
}

body#image .tabbed-content,
body#image .panel-share-item,
body#image .panel-description {
    color: var(--h4f-text);
}

body#image .panel-share-input-label .text-input {
    background: #0d0d11;
    border-color: var(--h4f-border);
    color: #eeeef2;
}

body#image .panel-share-input-label .input-action {
    color: var(--h4f-accent-2);
}

body#image .h4f-seo-note {
    color: #777782;
    font-size: 12px;
    line-height: 1.5;
    margin: 24px 0 4px;
}

@media (max-width: 720px) {
    body#image .h4f-reader-grid {
        display: block;
        margin-top: 10px;
        padding: 0 8px;
    }

    body#image .h4f-reader-rail {
        display: none;
    }

    body#image .h4f-reader-stage .image-viewer {
        border-radius: 9px;
        min-height: 0;
    }

    body#image .h4f-reader-stage .image-viewer .media {
        max-height: none;
    }

    body#image .image-viewer {
        padding: 12px 8px;
    }

    body#image .image-viewer .media {
        border-radius: 8px;
    }

    body#image .h4f-image-shell {
        margin-top: 14px;
    }

    body#image .h4f-image-summary {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    body#image .h4f-brand-cta {
        width: 100%;
    }

    body#image .viewer-title {
        font-size: 25px;
    }

    body#image .h4f-manga-strip {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        margin-top: 12px;
        padding: 15px 12px;
    }

    body#image .h4f-manga-strip-grid {
        display: flex;
        margin-right: -12px;
        overflow-x: auto;
        padding-bottom: 5px;
        scroll-snap-type: x mandatory;
    }

    body#image .h4f-manga-card--strip {
        flex: 0 0 66%;
        scroll-snap-align: start;
    }
}

@media (min-width: 721px) and (max-width: 1180px) {
    body#image .h4f-reader-grid {
        grid-template-columns: minmax(0, 1fr) 210px;
    }

    body#image .h4f-reader-rail--left {
        display: none;
    }

    body#image .h4f-manga-strip-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    body#image .h4f-brand-cta {
        transition: none;
    }
}
