/* ============================================================
   NothingFilx Theme — style.css
   ============================================================ */

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Variables ────────────────────────────────────────────── */
:root {
    /* ── Deep Jewel Tones Palette ── */
    --bg-primary: #1A1A1A;
    --star-bg: #222222;
    --bg-secondary: #222222;
    --bg-card: #2A2A2A;
    --bg-card-hover: #333333;
    --accent: #004D61;
    --accent-hover: #006B85;
    --secondary: #822659;
    --secondary-hover: #9E3070;
    --text: #F0F0F0;
    --text-muted: #A0A0A0;
    --text-dim: #707070;
    --link: #004D61;
    --link-hover: #006B85;
    --border: #333333;
    --border-light: #444444;
    --radius: 5px;
    --radius-pill: 50px;
    --font: -apple-system, Inter, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow: 0 4px 20px rgba(0,0,0,0.5);
    --transition: 0.2s ease;

    /* ── Badge Colors ── */
    --badge-quality: #004D61;
    --badge-type: rgba(255,255,255,0.1);
    --rating-badge-bg: #DAA520;

    /* ── Gradient ── */
    --gradient-start: #004D61;
    --gradient-end: #822659;

    /* ── Status ── */
    --success: #3E5641;
    --warning: #DAA520;
    --danger: #C43D36;

    /* ── Interactive ── */
    --focus-ring: #004D61;
}

::selection {
    background: linear-gradient(135deg, rgba(0,77,97,0.5), rgba(130,38,89,0.4));
    color: #fff;
}

html {
    scroll-behavior: smooth;
    height: auto;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #004D61, #822659);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #006B85, #9E3070);
}

/* ── Body ─────────────────────────────────────────────────── */
body {
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    background: #1A1A1A;
    -webkit-font-smoothing: antialiased;
    position: relative;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--link-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Container ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Site Wrapper ─────────────────────────────────────────── */
.site {
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   HEADER — Cinematic Premium
   ══════════════════════════════════════════════════════════════ */

/* ── Shell ─────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none !important;
    opacity: 1 !important;
}

.hdr {
    background: linear-gradient(180deg, rgba(6,8,14,0.94) 0%, rgba(8,10,18,0.88) 100%);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    transition: background 0.4s ease;
}

.site-header.scrolled .hdr {
    background: linear-gradient(180deg, rgba(6,8,14,0.98) 0%, rgba(8,10,18,0.95) 100%);
}

.hdr__line {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0,229,255,0) 8%,
        rgba(0,229,255,0.5) 25%,
        rgba(0,191,255,0.9) 50%,
        rgba(0,229,255,0.5) 75%,
        rgba(0,229,255,0) 92%,
        transparent 100%
    );
    box-shadow:
        0 0 8px 1px rgba(0,229,255,0.45),
        0 0 20px 3px rgba(0,191,255,0.25);
    opacity: 1;
    animation: hdr-glow 4s ease-in-out infinite;
}

@keyframes hdr-glow {
    0%, 100% {
        box-shadow:
            0 0 8px 1px rgba(0,229,255,0.45),
            0 0 20px 3px rgba(0,191,255,0.25);
    }
    50% {
        box-shadow:
            0 0 12px 2px rgba(0,229,255,0.7),
            0 0 28px 5px rgba(0,191,255,0.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hdr__line {
        animation: none;
    }
}

.site-header.scrolled .hdr__line {
    opacity: 1;
}

.hdr__row {
    display: flex;
    align-items: center;
    height: 54px;
}

/* ── Brand ─────────────────────────────────────────────────── */
.hdr__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 32px;
    position: relative;
}

.hdr__brand::after {
    content: '';
    position: absolute;
    inset: -6px -10px;
    border-radius: 12px;
    background: radial-gradient(ellipse at center, rgba(0,77,97,0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hdr__brand:hover::after {
    opacity: 1;
}

.hdr__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.hdr__brand:hover .hdr__logo {
    transform: scale(1.08);
}

.hdr__logo img,
.hdr__logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hdr__name {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    letter-spacing: -0.4px;
    white-space: nowrap;
    background: linear-gradient(135deg, #fff 40%, rgba(0,77,97,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Navigation ────────────────────────────────────────────── */
.hdr__nav {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.hdr__menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1px;
}

.hdr__item {
    position: relative;
}

.hdr__link {
    display: flex;
    align-items: center;
    padding: 6px 12px !important;
    color: rgba(255,255,255,0.48);
    font-size: 12.5px !important;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
    position: relative;
}

.hdr__link span {
    position: relative;
    z-index: 1;
}

.hdr__link::before {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 12px;
    right: 12px;
    height: 1.5px;
    background: linear-gradient(90deg, #004D61, #822659);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    opacity: 0;
}

.hdr__item:hover .hdr__link,
.hdr__item.is-active .hdr__link {
    color: rgba(255,255,255,0.92);
}

.hdr__item:hover .hdr__link::before,
.hdr__item.is-active .hdr__link::before {
    transform: scaleX(1);
    opacity: 1;
}

/* Chevron */
.hdr__link::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 3px solid currentColor;
    opacity: 0;
    margin-left: 5px;
    transition: opacity 0.25s, transform 0.25s;
    flex-shrink: 0;
}

.hdr__item.has-children .hdr__link::after {
    opacity: 0.3;
}

.hdr__item.has-children:hover .hdr__link::after {
    opacity: 0.7;
    transform: rotate(180deg);
}

/* ── Dropdown ──────────────────────────────────────────────── */
.hdr__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s cubic-bezier(0.4,0,0.2,1),
                visibility 0.2s,
                transform 0.2s cubic-bezier(0.4,0,0.2,1);
    z-index: 9999;
    pointer-events: none;
}

.hdr__item:hover > .hdr__dropdown,
.hdr__item.open > .hdr__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Invisible bridge so cursor can travel from link to dropdown */
.hdr__dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 16px;
}

.hdr__sub {
    list-style: none;
    padding: 6px;
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
    background: rgba(14,16,26,0.96);
    backdrop-filter: saturate(150%) blur(24px);
    -webkit-backdrop-filter: saturate(150%) blur(24px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.2),
        0 12px 24px rgba(0,0,0,0.3),
        0 24px 48px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.hdr__sub li a {
    display: block;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
    letter-spacing: 0.01em;
    text-transform: none;
}

.hdr__sub li a::after {
    display: none !important;
}

.hdr__sub li a:hover {
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.05);
    padding-left: 18px !important;
}

.hdr__sub::-webkit-scrollbar { width: 4px; }
.hdr__sub::-webkit-scrollbar-track { background: transparent; }
.hdr__sub::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 2px; }

/* ── Actions ───────────────────────────────────────────────── */
.hdr__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ── Search ────────────────────────────────────────────────── */
.hdr__search {
    position: relative;
    display: flex;
    align-items: center;
}

.hdr__search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-radius 0.3s;
}

.hdr__search-toggle:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
}

.hdr__search.is-open .hdr__search-toggle {
    border-radius: 10px 0 0 10px;
    background: rgba(0,77,97,0.15);
    color: #004D61;
}

.hdr__search-expand {
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
    pointer-events: none;
}

.hdr__search.is-open .hdr__search-expand {
    width: 240px;
    opacity: 1;
    pointer-events: auto;
}

.hdr__search-expand .search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,77,97,0.25);
    border-radius: 10px;
    overflow: hidden;
    height: 36px;
}

.hdr__search-expand .search-form .search-input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 4px 0 12px;
    min-width: 0;
}

.hdr__search-expand .search-form .search-icon {
    display: none;
}

.hdr__search-expand .search-form input {
    background: transparent;
    border: none;
    padding: 7px 8px;
    color: var(--text);
    font-size: 15px;
    width: 100%;
    min-width: 0;
    outline: none;
}

.hdr__search-expand .search-form input::placeholder {
    color: rgba(255,255,255,0.28);
}

.hdr__search-expand .search-form button {
    background: rgba(0,77,97,0.65);
    color: #fff;
    border: none;
    border-radius: 0 9px 9px 0;
    padding: 7px 14px;
    margin: 2px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 28px;
}

.hdr__search-expand .search-form button:hover {
    background: rgba(0,77,97,0.9);
}

.hdr__search-expand .search-form button svg {
    width: 14px;
    height: 14px;
}

.hdr__search-expand .search-form .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

/* ── Burger ────────────────────────────────────────────────── */
.hdr__burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    z-index: 10001;
    flex-shrink: 0;
    transition: background 0.25s;
}

.hdr__burger:hover {
    background: rgba(255,255,255,0.08);
}

.hdr__burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: rgba(255,255,255,0.75);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    position: absolute;
    left: 11px;
}

.hdr__burger span:nth-child(1) { top: 13px; }
.hdr__burger span:nth-child(2) { top: 19.5px; width: 13px; left: 11px; }
.hdr__burger span:nth-child(3) { top: 26px; }

.hdr__burger.is-active span:nth-child(1) {
    top: 19.5px;
    transform: rotate(45deg);
    width: 18px;
}

.hdr__burger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hdr__burger.is-active span:nth-child(3) {
    top: 19.5px;
    transform: rotate(-45deg);
    width: 18px;
}

.hdr__burger.is-active {
    background: rgba(130,38,89,0.15);
}

/* ── Section Title ────────────────────────────────────────── */
.section-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 14px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: -0.3px;
    position: relative;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #004D61, #822659, transparent);
    border-radius: 2px;
}

/* ── Featured Section ─────────────────────────────────────── */
.featured-section {
    padding: 30px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.featured-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Movies Grid ──────────────────────────────────────────── */
.movies-grid-section {
    padding: 36px 0 64px;
    position: relative;
}

.movies-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,77,97,0.25), rgba(130,38,89,0.25), transparent);
}

.movies-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 30px 20px !important;
    perspective: 1200px;
}

/* ── Poster Card ──────────────────────────────────────────── */
.poster-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #111318;
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3),
                0 4px 12px rgba(0,0,0,0.2);
    transform-style: preserve-3d;
}

.poster-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,77,97,0.4), rgba(130,38,89,0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 5;
}

.poster-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: 0 28px 56px -12px rgba(0,0,0,0.6),
                0 12px 24px -8px rgba(0,0,0,0.35),
                0 0 0 1px rgba(0,77,97,0.08);
    border-color: rgba(0,77,97,0.12);
}

.poster-card:hover::before {
    opacity: 1;
}

.poster-card.visible {
    opacity: 1;
    transform: none;
}

.poster-inner {
    position: relative;
}

.poster-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #0d0f12;
}

.poster-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1),
                filter 0.5s ease;
    will-change: transform;
}

.poster-card:hover .poster-image img {
    transform: scale(1.07);
    filter: saturate(1.1) brightness(1.03);
}

.no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    background: linear-gradient(135deg, #111318, #161820);
}

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.2) 35%,
        transparent 55%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.poster-card:hover .poster-shine {
    opacity: 0.85;
}

/* Quality strip at bottom of image */
.poster-shine::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.poster-card:hover .poster-shine::after {
    opacity: 1;
}

.poster-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 3;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.poster-card:hover .poster-badges {
    transform: translateY(-2px);
}

.badge-quality,
.badge-type,
.badge-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    letter-spacing: 0.5px;
    line-height: 1;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poster-card:hover .badge-quality,
.poster-card:hover .badge-type {
    transform: translateY(-1px);
}

.badge-quality {
    background: rgba(0,77,97,0.8);
    color: #b8e6f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.poster-card:hover .badge-quality {
    box-shadow: 0 4px 12px rgba(0,77,97,0.3);
}

.badge-type {
    background: rgba(130,38,89,0.75);
    color: #f0c8d8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.poster-card:hover .badge-type {
    box-shadow: 0 4px 12px rgba(130,38,89,0.25);
}

.badge-rating {
    margin-left: auto;
    background: rgba(245,158,11,0.8);
    color: #fef3c7;
    padding: 4px 7px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-color: rgba(245,158,11,0.2);
}

.poster-info {
    padding: 12px 14px 15px;
    position: relative;
}

.poster-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: rgba(255,255,255,0.04);
}

.poster-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.poster-date svg {
    width: 10px;
    height: 10px;
    opacity: 0.3;
}

.poster-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    letter-spacing: -0.05px;
}

.poster-card:hover .poster-title {
    color: rgba(255,255,255,0.95);
}

.poster-link {
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* Card entrance animation */
@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(4deg);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
        filter: blur(0);
    }
}

.movies-grid .poster-card {
    animation: cardReveal 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.movies-grid .poster-card:nth-child(1) { animation-delay: 0.03s; }
.movies-grid .poster-card:nth-child(2) { animation-delay: 0.06s; }
.movies-grid .poster-card:nth-child(3) { animation-delay: 0.09s; }
.movies-grid .poster-card:nth-child(4) { animation-delay: 0.12s; }
.movies-grid .poster-card:nth-child(5) { animation-delay: 0.15s; }
.movies-grid .poster-card:nth-child(6) { animation-delay: 0.18s; }
.movies-grid .poster-card:nth-child(7) { animation-delay: 0.21s; }
.movies-grid .poster-card:nth-child(8) { animation-delay: 0.24s; }
.movies-grid .poster-card:nth-child(9) { animation-delay: 0.27s; }
.movies-grid .poster-card:nth-child(10) { animation-delay: 0.30s; }
.movies-grid .poster-card:nth-child(n+11) { animation-delay: 0.33s; }

/* ── Single Post Hero ─────────────────────────────────────── */
.single-hero {
    display: flex;
    gap: 32px;
    padding: 20px 0 24px;
    align-items: flex-start;
    position: relative;
}

.single-poster-wrap {
    flex-shrink: 0;
    position: relative;
}

/* Glow effect behind poster */
.single-poster-wrap::before {
    content: '';
    position: absolute;
    inset: 10px -10px -10px 10px;
    background: radial-gradient(ellipse at center, rgba(0,77,97,0.2) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.single-hero:hover .single-poster-wrap::before {
    opacity: 1;
}

.single-poster {
    position: relative;
    width: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.single-poster:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 30px rgba(0,77,97,0.15);
}

.single-poster img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.single-poster:hover img {
    transform: scale(1.05);
}

/* Poster overlay gradient */
.single-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.single-info {
    flex: 1;
    min-width: 0;
    padding-top: 8px;
}

.single-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.single-badges .badge-rating {
    margin-left: auto;
}

.single-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.single-excerpt {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 650px;
    opacity: 0.9;
}

/* ── Two Column Layout ────────────────────────────────────── */
.single-body-wrap {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.single-body {
    flex: 1;
    min-width: 0;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.single-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.single-widget {
    background: linear-gradient(135deg, rgba(20,22,27,0.7), rgba(13,15,17,0.5));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 14px;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: border-color 0.3s ease;
}

.single-widget:hover {
    border-color: rgba(0,77,97,0.15);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.widget-title svg {
    color: #004D61;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Sidebar search */
.sidebar-search-form {
    display: flex;
    gap: 6px;
}

.sidebar-search-form input[type="search"] {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 9px 14px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.sidebar-search-form input[type="search"]:focus {
    border-color: var(--focus-ring);
}

.sidebar-search-form input[type="search"]::placeholder {
    color: rgba(255,255,255,0.35);
}

.sidebar-search-form button {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sidebar-search-form button:hover {
    filter: brightness(1.15);
}

/* Trending */
.trending-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.trending-item:hover {
    background: rgba(255,255,255,0.04);
}

.trending-thumb {
    width: 48px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.trending-info {
    min-width: 0;
}

.trending-rank {
    font-size: 13px;
    font-weight: 800;
    color: #004D61;
}

.trending-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.trending-views {
    font-size: 12px;
    color: var(--text-muted);
}

/* Recent posts */
.recent-with-thumbs {
    list-style: none;
}

.recent-with-thumbs li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.recent-with-thumbs li:last-child {
    border-bottom: none;
}

.recent-with-thumbs li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.recent-with-thumbs li a:hover {
    opacity: 0.8;
}

.recent-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-meta {
    min-width: 0;
}

.recent-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.recent-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* About widget */
.about-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.sidebar-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sidebar-pages a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.2s ease;
}

.sidebar-pages a:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
}

/* ── Content Boxes ────────────────────────────────────────── */
.info-box,
.synopsis-box,
.download-box,
.screenshots-box,
.tax-box {
    position: relative;
    width: 100%;
    max-width: 860px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20,22,27,0.6) 0%, rgba(13,15,17,0.4) 100%);
    outline: 1px solid rgba(255,255,255,0.06);
    transition: outline-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.info-box:hover,
.synopsis-box:hover,
.screenshots-box:hover,
.tax-box:hover {
    outline-color: rgba(0,77,97,0.2);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.download-box {
    outline-color: rgba(0,77,97,0.1);
    box-shadow: 0 4px 24px rgba(0,77,97,0.08);
}

.download-box:hover {
    outline-color: rgba(0,77,97,0.25);
    box-shadow: 0 8px 40px rgba(0,77,97,0.15), 0 0 80px rgba(0,77,97,0.05);
}

.info-box-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 900px;
    translate: -50% -50%;
    background: linear-gradient(#004D61, #3a7ce8, #822659, #004D61);
    background-size: 100% 300%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: box-spin 7000ms infinite linear;
    animation-play-state: paused;
    pointer-events: none;
    z-index: 0;
}

.info-box:hover .info-box-glow,
.synopsis-box:hover .info-box-glow,
.download-box:hover .info-box-glow,
.screenshots-box:hover .info-box-glow,
.tax-box:hover .info-box-glow {
    opacity: 1;
    animation-play-state: running;
}

@keyframes box-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.info-box-inner {
    position: relative;
    z-index: 1;
    padding: 20px;
    border-radius: inherit;
    background: rgba(20,22,27,0.7);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
}

/* Box heading */
.box-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

.box-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #004D61, #822659);
    border-radius: 2px;
}

.box-heading svg {
    color: #004D61;
    flex-shrink: 0;
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
}

.info-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border-radius: 12px;
    outline: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid rgba(0,77,97,0.2);
    transition: all 0.25s ease;
}

.info-cell:hover {
    transform: translateY(-2px);
    border-left-color: rgba(0,77,97,0.6);
    box-shadow: 0 4px 16px rgba(0,77,97,0.08);
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
}

.info-cell:nth-child(6n+2) {
    border-left-color: rgba(52,211,153,0.25);
}
.info-cell:nth-child(6n+2):hover {
    border-left-color: rgba(52,211,153,0.6);
}

.info-cell:nth-child(6n+3) {
    border-left-color: rgba(251,191,36,0.25);
}
.info-cell:nth-child(6n+3):hover {
    border-left-color: rgba(251,191,36,0.6);
}

.info-cell:nth-child(6n+4) {
    border-left-color: rgba(96,165,250,0.25);
}
.info-cell:nth-child(6n+4):hover {
    border-left-color: rgba(96,165,250,0.6);
}

.info-cell:nth-child(6n+5) {
    border-left-color: rgba(244,114,182,0.25);
}
.info-cell:nth-child(6n+5):hover {
    border-left-color: rgba(244,114,182,0.6);
}

.info-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(0,77,97,0.6);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.num-val {
    display: inline-block;
    background: linear-gradient(135deg, #004D61, #006B85);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.lang-val {
    display: inline-block;
    background: linear-gradient(135deg, #3a7ce8, #5a9cf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Synopsis */
.synopsis-text {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0;
}

/* Screenshots */
.screenshot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.screenshot-grid.single-screenshot {
    grid-template-columns: 1fr;
}

.screenshot-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
    line-height: 0;
    cursor: pointer;
}

.screenshot-item:hover {
    border-color: rgba(0,77,97,0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-item:hover img {
    transform: scale(1.02);
}

/* Download count */
.download-count {
    margin-left: auto;
    font-size: 14px;
    font-weight: 500;
    color: #004D61;
    background: rgba(0,77,97,0.1);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0,77,97,0.15);
}

/* Tax box */
.single-tax-metas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tax-meta-block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tax-meta-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #004D61;
    background: rgba(0,77,97,0.1);
    padding: 4px 12px;
    border-radius: 6px;
}

.tax-meta-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    padding: 4px 12px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.25s ease;
}

.tax-meta-link:hover {
    background: rgba(0,77,97,0.12);
    border-color: rgba(0,77,97,0.25);
    color: #006B85;
    transform: translateY(-1px);
}

/* DWD content */
.dwd-content {
    position: relative;
    z-index: 1;
}

/* Hide redundant "Download Links:" text (box-heading already shows it) */
.dwd-content > .single-download-section > h3:first-child {
    font-size: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

/* Download section structure */
.single-download-section .dwd-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.single-download-section .dwd-section {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 14px;
    transition: border-color 0.3s ease;
}

.single-download-section .dwd-section:hover {
    border-color: rgba(0,77,97,0.15);
}

/* Language heading like "{Hindi-English}" */
.single-download-section .dwd-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.single-download-section .dwd-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Each download row: quality + size + buttons */
.single-download-section .dwd-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.single-download-section .dwd-row:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(0,77,97,0.15);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* Left side: quality tag + size */
.single-download-section .dwd-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Quality tag like "480p", "720p", "1080p" */
.single-download-section .dwd-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    background: rgba(0,77,97,0.2);
    color: #004D61;
    letter-spacing: 0.3px;
}

/* File size like "640MB", "1.8GB" */
.single-download-section .dwd-size {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Right side: download buttons */
.single-download-section .dwd-row-right {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

/* Download button base */
.single-download-section .dwd-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: calc(var(--btn-radius, 50) * 1px);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 2px 6px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    overflow: hidden;
    isolation: isolate;
    flex: 1 1 280px;
}

.single-download-section .dwd-btn .dwd-btn-label {
    line-height: 1.4;
}

/* Soft top-light sheen across the pill */
.single-download-section .dwd-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 45%);
    pointer-events: none;
    z-index: 1;
}

.single-download-section .dwd-btn .dwd-btn-label,
.single-download-section .dwd-btn svg {
    position: relative;
    z-index: 2;
}

.single-download-section .dwd-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    color: #fff;
}

.single-download-section .dwd-btn:active {
    transform: translateY(0) scale(0.97);
}

.single-download-section .dwd-btn:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* G-Direct [Instant] — teal → green */
.single-download-section .dwd-btn.dwd-green {
    background: linear-gradient(135deg, #0ebac3, #09d261);
}

.single-download-section .dwd-btn.dwd-green:hover {
    box-shadow: 0 6px 18px rgba(9, 210, 97, 0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* V-Cloud [Resumable] — deep blue → sky */
.single-download-section .dwd-btn.dwd-blue {
    background: linear-gradient(135deg, #3a7ce8, #5ac8f0);
}

.single-download-section .dwd-btn.dwd-blue:hover {
    box-shadow: 0 6px 18px rgba(58, 124, 232, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Batch/Zip — purple → magenta */
.single-download-section .dwd-btn.dwd-purple {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.single-download-section .dwd-btn.dwd-purple:hover {
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Download Now / default — brand teal → purple */
.single-download-section .dwd-btn.dwd-orange {
    background: linear-gradient(135deg, #004D61, #822659);
}

.single-download-section .dwd-btn.dwd-orange:hover {
    box-shadow: 0 6px 18px rgba(0, 77, 97, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Legacy colour classes kept as aliases */
.single-download-section .dwd-btn.grad-purple { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.single-download-section .dwd-btn.grad-blue   { background: linear-gradient(135deg, #3a7ce8, #5ac8f0); }
.single-download-section .dwd-btn.grad-green  { background: linear-gradient(135deg, #0ebac3, #09d261); }
.single-download-section .dwd-btn.grad-red    { background: linear-gradient(135deg, #f43f5e, #ef4444); }
.single-download-section .dwd-btn.grad-orange { background: linear-gradient(135deg, #004D61, #822659); }

/* ══════════════════════════════════════════════════════════════
   NothingFilx download section
   Same button, heading and banner styling on every post,
   regardless of per-post content.
   ══════════════════════════════════════════════════════════════ */
.single-download-section .dwd-deco {
    text-align: center;
    margin: 4px 0 20px;
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(238, 244, 37, 0.12), rgba(238, 244, 37, 0.02) 45%, rgba(255, 166, 0, 0.10)),
        linear-gradient(90deg, #14141c, #1d1d2b);
    border: 1px solid rgba(238, 244, 37, 0.35);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 10px 30px -12px rgba(238, 244, 37, 0.25),
        inset 0 0 30px rgba(238, 244, 37, 0.05);
}

/* Animated gold shine sweep across the banner */
.single-download-section .dwd-deco::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    transform: skewX(-20deg);
    animation: dwd-deco-shine 4.2s ease-in-out infinite;
}

@keyframes dwd-deco-shine {
    0%   { left: -80%; }
    55%  { left: 130%; }
    100% { left: 130%; }
}

.single-download-section .dwd-deco::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 60%;
    height: 18px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(238, 244, 37, 0.30), transparent 70%);
    filter: blur(6px);
}

.single-download-section .dwd-deco strong {
    position: relative;
    z-index: 1;
    color: #eef425;
    font-size: 16pt;
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1.4;
    text-shadow:
        0 0 12px rgba(238, 244, 37, 0.55),
        0 0 34px rgba(238, 244, 37, 0.30),
        0 1px 2px rgba(0, 0, 0, 0.8);
}

@media (prefers-reduced-motion: reduce) {
    .single-download-section .dwd-deco::before {
        animation: none;
    }
}

.single-download-section .dwd-heading {
    display: none;
}

.single-download-section .dwd-section {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* ── "Download Links" section title ────────────────────────────── */
.single-download-section .dwd-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 6px 0 22px;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: transparent;
    background: linear-gradient(90deg, #ffffff 0%, #eef425 35%, #ffb84d 65%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
}

.single-download-section .dwd-title::before,
.single-download-section .dwd-title::after {
    content: "";
    flex: 0 0 46px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(238, 244, 37, 0.85));
}

.single-download-section .dwd-title::after {
    background: linear-gradient(90deg, rgba(238, 244, 37, 0.85), transparent);
}

.single-download-section .dwd-title-ico {
    color: #eef425;
    filter: drop-shadow(0 0 8px rgba(238, 244, 37, 0.6));
    flex: 0 0 auto;
}

/* ── Variant heading card (e.g. "480p ... [640MB]") ────────────── */
.single-download-section .dwd-link-heading {
    text-align: center;
    margin: 20px 0 8px;
    font-size: 1em;
}

.single-download-section .dwd-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 9px 18px;
    border-radius: 999px;
    position: relative;
    color: #fff;
    font-weight: 700;
    line-height: 1.4;
    font-size: 1.02rem;
    background:
        linear-gradient(#15151f, #15151f) padding-box,
        linear-gradient(120deg, rgba(238, 244, 37, 0.9), rgba(255, 184, 77, 0.5) 35%, rgba(130, 38, 89, 0.65) 70%, rgba(0, 77, 97, 0.9)) border-box;
    border: 1.5px solid transparent;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 10px 28px -12px rgba(238, 244, 37, 0.35),
        inset 0 0 22px rgba(238, 244, 37, 0.05);
    overflow: hidden;
}

.single-download-section .dwd-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-20deg);
    animation: dwd-box-shine 5s ease-in-out infinite;
}

@keyframes dwd-box-shine {
    0%   { left: -70%; }
    50%  { left: 130%; }
    100% { left: 130%; }
}

/* Colour-coded quality badge inside the card */
.single-download-section .dwd-q {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.3px;
    font-size: 0.92rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.single-download-section .dwd-q-480  { background: linear-gradient(135deg, #14b8a6, #059669); }
.single-download-section .dwd-q-720  { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.single-download-section .dwd-q-1080 { background: linear-gradient(135deg, #a855f7, #ec4899); }
.single-download-section .dwd-q-2160 { background: linear-gradient(135deg, #f97316, #e11d48); }
.single-download-section .dwd-q-4k   { background: linear-gradient(135deg, #eef425, #f97316); color: #1a1a00; }

.single-download-section .dwd-v {
    position: relative;
    z-index: 1;
    color: #f5f6ff;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.2px;
}

/* File-size badge inside the card (e.g. "150MB/E") */
.single-download-section .dwd-size {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.3px;
    font-size: 0.88rem;
    color: #0f172a;
    background: linear-gradient(135deg, #eef425, #a3e635);
    box-shadow:
        0 4px 14px -6px rgba(0, 0, 0, 0.8),
        0 0 12px -2px rgba(238, 244, 37, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .single-download-section .dwd-box::after {
        animation: none;
    }
}

.single-download-section .dwd-lang {
    color: #eef425;
}

.single-download-section .dwd-link-row {
    text-align: center;
    margin: 6px 0 12px;
}

.single-download-section .dwd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 8px;
    color: #fff;
    border: none;
    cursor: pointer;
    min-width: 190px !important;
    padding: 12px 22px;
    border-radius: 14px !important;
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
    position: relative;
    box-shadow:
        0 8px 22px -10px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.single-download-section .dwd-button:hover {
    transform: translateY(-3px);
    filter: brightness(1.1) saturate(1.1);
    box-shadow:
        0 14px 30px -12px rgba(0, 0, 0, 0.85),
        0 0 24px -4px rgba(238, 244, 37, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.single-download-section .dwd-button:active {
    transform: translateY(-1px) scale(0.98);
}
/* Fallback button styles */
.dwd-btn,
.btn-shortcode {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    border-radius: calc(var(--btn-radius, 50) * 1px);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    margin: 4px 0;
}

.dwd-btn:hover,
.btn-shortcode:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: 0 6px 18px rgba(0,77,97,0.4);
    color: #fff;
}

/* Recently Viewed Widget */
.rv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.rv-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    transition: all 0.3s ease;
}

.rv-card:hover {
    border-color: rgba(0,77,97,0.2);
    transform: translateY(-2px);
}

.rv-thumb-wrap {
    aspect-ratio: 2/3;
    overflow: hidden;
}

.rv-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rv-card:hover .rv-thumb {
    transform: scale(1.05);
}

.rv-info {
    padding: 8px;
}

.rv-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination, .page-numbers-wrapper {
    margin-top: 40px;
    text-align: center;
}

.pagination nav,
.pagination nav > div {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.pagination ul.page-numbers,
ul.page-numbers {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pagination a,
.pagination span,
ul.page-numbers li a,
ul.page-numbers li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 46px;
    height: 46px;
    padding: 0 16px;
    background: var(--bg-card);
    color: var(--text-muted);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    float: none !important;
    vertical-align: middle !important;
}

ul.page-numbers li {
    list-style: none !important;
    margin: 0 !important;
}

.pagination a:hover,
ul.page-numbers li a:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.12);
    background: var(--bg-card-hover);
}

.pagination .current,
ul.page-numbers .current {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0,77,97,0.25);
}

.pagination .dots,
ul.page-numbers .dots {
    color: var(--text-muted);
    min-width: 24px;
    letter-spacing: 2px;
}

.pagination .prev,
.pagination .next,
ul.page-numbers .prev,
ul.page-numbers .next {
    padding: 0 16px;
    font-size: 15px;
    gap: 6px;
}

.pagination .prev svg,
.pagination .next svg {
    flex-shrink: 0;
}

/* ── Comments ─────────────────────────────────────────────── */
.comments-area {
    position: relative;
    width: 100%;
    max-width: 860px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20,22,27,0.6) 0%, rgba(13,15,17,0.4) 100%);
    outline: 1px solid rgba(255,255,255,0.06);
    transition: outline-color 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
}

.comments-area:hover {
    outline-color: rgba(0,77,97,0.2);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.comment-form p {
    margin-bottom: 16px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--focus-ring);
    box-shadow: 0 0 0 3px rgba(0,77,97,0.1);
    background: rgba(255,255,255,0.05);
}

.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.comment-form .form-submit {
    margin-bottom: 0;
}

.comment-form .form-submit input[type="submit"] {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    min-height: 44px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.comment-form .form-submit input[type="submit"]:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(0,77,97,0.35);
    transform: translateY(-1px);
}

.comment-form .comment-notes {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.comment-form .required {
    color: var(--danger, #C43D36);
}

.comment-form-cookies-consent {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.comment-form-cookies-consent input {
    width: auto;
    accent-color: var(--accent);
}

.comment-form-cookies-consent label {
    display: inline;
    margin-bottom: 0;
    font-weight: 400;
    font-size: 13px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.comment-list .comment {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.comment-list .comment .comment-body {
    font-size: 14px;
    line-height: 1.6;
}

.comment-list .comment .comment-author {
    font-weight: 600;
    margin-bottom: 4px;
}

.comment-list .comment .comment-author img {
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.comment-list .comment .comment-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comment-list .comment .reply {
    margin-top: 8px;
}

.comment-list .comment .reply a {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
}

.comment-list .comment .reply a:hover {
    text-decoration: underline;
}

.comments-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── Breadcrumbs ──────────────────────────────────────────── */
.breadcrumbs {
    padding: 12px 0;
    font-size: 13px;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.breadcrumbs li {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumbs li a {
    color: var(--text-muted);
}

.breadcrumbs li a:hover {
    color: #004D61;
}

.breadcrumbs li.current {
    color: var(--text);
    font-weight: 500;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #222222 100%);
    border-top: 1px solid var(--border);
    padding: 28px 0 20px;
    margin-top: 0;
    position: relative;
    flex-shrink: 0;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 500px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #004D61, #822659, transparent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 15px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #004D61;
}

.footer-info {
    text-align: center;
    font-size: 14px;
    color: var(--text-dim);
}

.footer-info a {
    color: #004D61;
}

/* ── Scroll to Top ────────────────────────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,77,97,0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,77,97,0.4);
}

/* ── Archive / Search Pages ───────────────────────────────── */
.archive-header, .search-header {
    padding: 24px 0 8px;
}

.search-header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-header-icon {
    color: #004D61;
    flex-shrink: 0;
}

.archive-title, .search-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.archive-title span, .search-title span {
    color: #004D61;
}

.archive-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.search-count {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ── No Results ───────────────────────────────────────────── */
.no-results-box {
    text-align: center;
    padding: 60px 20px;
}

/* ── Page Template ────────────────────────────────────────── */
.page-article {
    padding: 24px 0 40px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-content {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-muted);
}

.page-content a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-content a:hover {
    color: var(--link-hover);
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    color: var(--text);
    margin: 24px 0 12px;
}

.page-content p {
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.page-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 16px 0;
    background: rgba(255,255,255,0.03);
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
}

.page-links {
    margin-top: 24px;
    font-size: 14px;
}

/* ── Page Hero ────────────────────────────────────────────── */
/* ============================================================
   Cinematic Page Layer — dark, luxurious, film-graded
   ============================================================ */

:root {
    --gold: #E8C37D;
    --gold-deep: #C9A35C;
    --page-bg: #121317;
    --glass-bg: rgba(255, 255, 255, 0.035);
    --glass-border: rgba(255, 255, 255, 0.09);
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── Hero: cinematic backdrop ─────────────────────────────── */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 84px;
    background:
        radial-gradient(1100px 520px at 12% -12%, rgba(0, 77, 97, 0.5), transparent 62%),
        radial-gradient(900px 480px at 92% -8%, rgba(130, 38, 89, 0.42), transparent 60%),
        radial-gradient(700px 300px at 78% 110%, rgba(201, 163, 92, 0.14), transparent 55%),
        linear-gradient(180deg, #101116, var(--page-bg) 82%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(111, 211, 232, 0.09), transparent 40%),
        linear-gradient(245deg, rgba(199, 125, 180, 0.08), transparent 45%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.055;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

.page-hero__inner {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
}

.page-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 1;
    will-change: transform, opacity;
}

.page-hero__glow--a {
    width: 480px;
    height: 480px;
    top: -200px;
    left: -140px;
    background: rgba(0, 109, 133, 0.5);
    animation: nf-aurora-a 22s var(--ease-out) infinite alternate;
}

.page-hero__glow--b {
    width: 420px;
    height: 420px;
    top: -130px;
    right: -130px;
    background: rgba(158, 48, 112, 0.42);
    animation: nf-aurora-b 26s var(--ease-out) infinite alternate;
}

@keyframes nf-aurora-a {
    0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
    100% { transform: translate3d(46px, 34px, 0) scale(1.18); opacity: 1; }
}

@keyframes nf-aurora-b {
    0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; }
    100% { transform: translate3d(-40px, 46px, 0) scale(1.12); opacity: 1; }
}

.page-hero__crumbs {
    margin-bottom: 22px;
}

.page-hero__crumbs .breadcrumbs {
    padding: 0;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 0.06em;
}

.page-hero__crumbs .breadcrumbs ol {
    justify-content: center;
    gap: 6px;
}

.page-hero__crumbs .breadcrumbs a {
    color: var(--text-muted);
}

.page-hero__crumbs .breadcrumbs a:hover {
    color: var(--gold);
}

.page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(232, 195, 125, 0.28);
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.page-hero__eyebrow::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--gold), #C77DB4);
    box-shadow: 0 0 10px rgba(232, 195, 125, 0.8);
}

.page-hero__title {
    font-family: var(--font-display);
    font-weight: 560;
    font-size: clamp(40px, 6.5vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.015em;
    margin: 0 0 18px;
    color: #F5F2EA;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
    font-variation-settings: 'opsz' 100;
}

.page-hero__title .grad {
    background: linear-gradient(100deg, #7FE0F4 0%, #F5F2EA 42%, var(--gold) 78%, #C77DB4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.page-hero__lead {
    margin: 0 auto;
    max-width: 640px;
    font-family: var(--font-body);
    font-size: clamp(15px, 1.7vw, 17px);
    line-height: 1.75;
    color: #A9A4A4;
    letter-spacing: 0.005em;
}

.page-hero__fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background: linear-gradient(180deg, transparent, var(--bg-primary));
    z-index: 2;
    pointer-events: none;
}

/* ── Section primitives ───────────────────────────────────── */
.page-article {
    padding: 56px 0 88px;
}

.page-article .container {
    max-width: 1080px;
}

.page-content {
    color: #C4C0B8;
    font-family: var(--font-body);
}

.nf-section {
    margin-bottom: 64px;
}

.nf-section:last-child {
    margin-bottom: 0;
}

.nf-section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.nf-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.nf-section-kicker::before {
    content: '';
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.nf-section-title {
    font-family: var(--font-display);
    font-weight: 560;
    font-size: clamp(26px, 3.4vw, 36px);
    letter-spacing: -0.01em;
    line-height: 1.18;
    color: #F5F2EA;
    margin: 0 0 14px;
    font-variation-settings: 'opsz' 80;
}

.nf-section-desc {
    margin: 0;
    color: #A9A4A4;
    line-height: 1.75;
    font-size: 15px;
    font-family: var(--font-body);
}

.nf-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 195, 125, 0.28) 50%, transparent);
    margin: 60px 0;
    position: relative;
}

.nf-divider::after {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px;
    color: var(--gold);
    background: var(--page-bg);
    padding: 0 12px;
}

/* ── Glass card primitives ────────────────────────────────── */
.nf-card,
.nf-feature,
.nf-step,
.nf-stat,
.nf-meta-item,
.nf-contact-card {
    background:
        linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
        linear-gradient(160deg, rgba(111, 211, 232, 0.22), rgba(255, 255, 255, 0.06) 32%, rgba(232, 195, 125, 0.16)) border-box;
    border: 1px solid transparent;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ── Info / Legal cards ───────────────────────────────────── */
.nf-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.nf-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 30px 28px;
    transition: transform 0.5s var(--ease-out), border-color 0.4s ease, box-shadow 0.5s ease;
}

.nf-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.08) 46%, transparent 60%);
    transform: translateX(-130%);
    transition: transform 0.9s ease;
    pointer-events: none;
}

.nf-card:hover {
    transform: translateY(-6px);
    border-color: rgba(111, 211, 232, 0.5);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(111, 211, 232, 0.14) inset,
        0 0 48px rgba(0, 77, 97, 0.18);
}

.nf-card:hover::after {
    transform: translateX(130%);
}

.nf-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    background: linear-gradient(140deg, rgba(0, 109, 133, 0.5), rgba(158, 48, 112, 0.4));
    border: 1px solid rgba(111, 211, 232, 0.3);
    color: #7FE0F4;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.4s var(--ease-out);
}

.nf-card:hover .nf-card__icon {
    transform: translateY(-2px) scale(1.04);
}

.nf-card__icon svg {
    width: 25px;
    height: 25px;
}

.nf-card__title {
    font-family: var(--font-display);
    font-weight: 560;
    font-size: 19px;
    color: #F5F2EA;
    margin: 0 0 10px;
    line-height: 1.3;
}

.nf-card__text {
    margin: 0;
    color: #A9A4A4;
    font-size: 14px;
    line-height: 1.7;
    font-family: var(--font-body);
}

/* ── Feature rows ─────────────────────────────────────────── */
.nf-feature {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: flex-start;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 14px;
    transition: border-color 0.4s ease, transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.nf-feature:hover {
    transform: translateX(4px);
    border-color: rgba(232, 195, 125, 0.4);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.nf-feature__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, rgba(0, 109, 133, 0.45), rgba(158, 48, 112, 0.35));
    border: 1px solid rgba(111, 211, 232, 0.28);
    color: #7FE0F4;
    flex: none;
}

.nf-feature__icon svg {
    width: 22px;
    height: 22px;
}

.nf-feature__title {
    font-family: var(--font-display);
    font-weight: 560;
    font-size: 17px;
    color: #F5F2EA;
    margin: 0 0 5px;
}

.nf-feature__text {
    margin: 0;
    color: #A9A4A4;
    font-size: 14px;
    line-height: 1.7;
    font-family: var(--font-body);
}

/* ── Steps ────────────────────────────────────────────────── */
.nf-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    counter-reset: nf-step;
}

.nf-step {
    position: relative;
    border-radius: 16px;
    padding: 32px 24px 24px;
    counter-increment: nf-step;
    transition: transform 0.5s var(--ease-out), border-color 0.4s ease, box-shadow 0.5s ease;
}

.nf-step:hover {
    transform: translateY(-5px);
    border-color: rgba(111, 211, 232, 0.45);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 77, 97, 0.15);
}

.nf-step::before {
    content: '0' counter(nf-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 560;
    font-size: 18px;
    line-height: 1;
    color: var(--gold);
    background: linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
        linear-gradient(140deg, rgba(232, 195, 125, 0.5), rgba(111, 211, 232, 0.35)) border-box;
    border: 1px solid transparent;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.nf-step__title {
    font-family: var(--font-display);
    font-weight: 560;
    font-size: 17px;
    color: #F5F2EA;
    margin: 0 0 8px;
}

.nf-step__text {
    margin: 0;
    color: #A9A4A4;
    font-size: 14px;
    line-height: 1.7;
    font-family: var(--font-body);
}

/* ── Checklist ────────────────────────────────────────────── */
.nf-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.nf-checklist li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 13px;
    padding: 16px 18px;
    color: #B9B4AC;
    font-size: 14px;
    line-height: 1.65;
    font-family: var(--font-body);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, transform 0.3s var(--ease-out), background 0.3s ease;
}

.nf-checklist li:hover {
    border-color: rgba(232, 195, 125, 0.35);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.nf-checklist li::before {
    content: '✓';
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #0E1B10;
    background: linear-gradient(140deg, #E8C37D, #C77DB4);
    box-shadow: 0 4px 12px rgba(232, 195, 125, 0.25);
}

.nf-checklist li strong {
    color: #F5F2EA;
    font-weight: 600;
}

/* ── Stats ────────────────────────────────────────────────── */
.nf-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
}

.nf-stat {
    text-align: center;
    border-radius: 16px;
    padding: 30px 16px 28px;
    transition: transform 0.5s var(--ease-out), border-color 0.4s ease, box-shadow 0.5s ease;
}

.nf-stat:hover {
    transform: translateY(-5px);
    border-color: rgba(232, 195, 125, 0.4);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 77, 97, 0.16);
}

.nf-stat__value {
    font-family: var(--font-display);
    font-weight: 560;
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -0.02em;
    line-height: 1;
    background: linear-gradient(100deg, #7FE0F4 0%, #F5F2EA 45%, var(--gold) 80%, #C77DB4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-variation-settings: 'opsz' 120;
}

.nf-stat__label {
    margin-top: 12px;
    color: #A9A4A4;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-body);
}

/* ── CTA banner ───────────────────────────────────────────── */
.nf-cta {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(640px 300px at 10% -10%, rgba(0, 109, 133, 0.5), transparent 62%),
        radial-gradient(560px 300px at 95% -10%, rgba(158, 48, 112, 0.42), transparent 60%),
        radial-gradient(460px 240px at 50% 130%, rgba(232, 195, 125, 0.12), transparent 55%),
        linear-gradient(180deg, #191a20, var(--page-bg));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 52px 36px;
    text-align: center;
}

.nf-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.nf-cta__title {
    font-family: var(--font-display);
    font-weight: 560;
    font-size: clamp(26px, 3.4vw, 34px);
    color: #F5F2EA;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
    font-variation-settings: 'opsz' 80;
}

.nf-cta__text {
    max-width: 580px;
    margin: 0 auto 28px;
    color: #A9A4A4;
    line-height: 1.75;
    font-size: 15px;
    font-family: var(--font-body);
}

.nf-cta__actions {
    position: relative;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────── */
.nf-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease, filter 0.3s ease;
    overflow: hidden;
}

.nf-btn:hover {
    transform: translateY(-3px);
}

.nf-btn:active {
    transform: translateY(-1px);
}

.nf-btn--primary {
    background: linear-gradient(92deg, #0B5F78 0%, #822659 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 77, 97, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nf-btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s var(--ease-out);
}

.nf-btn--primary:hover::after {
    left: 120%;
}

.nf-btn--primary:hover {
    filter: brightness(1.12);
    color: #fff;
    box-shadow: 0 14px 38px rgba(0, 77, 97, 0.5), 0 0 0 1px rgba(111, 211, 232, 0.3);
}

.nf-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #F5F2EA;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nf-btn--ghost:hover {
    border-color: rgba(232, 195, 125, 0.55);
    color: var(--gold);
    background: rgba(255, 255, 255, 0.06);
}

/* ── Contact page ─────────────────────────────────────────── */
.nf-contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    align-items: start;
}

.nf-contact-card {
    border-radius: 18px;
    padding: 34px 32px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.nf-form .nf-field {
    margin-bottom: 20px;
}

.nf-form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #D8D4CB;
    margin-bottom: 9px;
    font-family: var(--font-body);
}

.nf-form label .req {
    color: #C77DB4;
}

.nf-form input[type="text"],
.nf-form input[type="email"],
.nf-form input[type="url"],
.nf-form input[type="tel"],
.nf-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    padding: 13px 16px;
    color: #F5F2EA;
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.nf-form input::placeholder,
.nf-form textarea::placeholder {
    color: #6b675f;
}

.nf-form input:focus,
.nf-form textarea:focus {
    outline: none;
    border-color: rgba(232, 195, 125, 0.55);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 0 0 3px rgba(232, 195, 125, 0.14), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.nf-form textarea {
    resize: vertical;
    min-height: 140px;
}

.nf-form .nf-btn[type="submit"] {
    border: 0;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    padding: 15px 28px;
}

.nf-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.nf-form-status {
    display: none;
    border-radius: 13px;
    padding: 15px 18px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
    font-family: var(--font-body);
}

.nf-form-status--success {
    display: block;
    background: linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
        linear-gradient(160deg, rgba(111, 211, 232, 0.35), rgba(232, 195, 125, 0.25)) border-box;
    border: 1px solid transparent;
    color: #A8E0B2;
}

.nf-form-status--error {
    display: block;
    background: rgba(196, 61, 54, 0.14);
    border: 1px solid rgba(196, 61, 54, 0.5);
    color: #E39A95;
}

.nf-contact-meta {
    display: grid;
    gap: 16px;
}

.nf-meta-item {
    display: flex;
    gap: 16px;
    align-items: center;
    border-radius: 15px;
    padding: 20px 20px;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.nf-meta-item:hover {
    border-color: rgba(232, 195, 125, 0.42);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}

.nf-meta-item__icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, rgba(0, 109, 133, 0.5), rgba(158, 48, 112, 0.4));
    border: 1px solid rgba(111, 211, 232, 0.28);
    color: #7FE0F4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nf-meta-item__icon svg {
    width: 21px;
    height: 21px;
}

.nf-meta-item__label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8f8a81;
    margin-bottom: 3px;
    font-family: var(--font-body);
}

.nf-meta-item__value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #F5F2EA;
    font-family: var(--font-body);
}

.nf-meta-item:hover .nf-meta-item__value {
    color: var(--gold);
}

/* ── Page content refinements ─────────────────────────────── */
.page-content .custom-box {
    border-radius: 14px;
    padding: 22px 24px;
    border: 1px solid;
    line-height: 1.7;
    font-size: 14px;
    margin: 0 0 20px;
    font-family: var(--font-body);
}

.page-content .info-custom-box {
    background: rgba(0, 109, 133, 0.1);
    border-color: rgba(0, 109, 133, 0.38);
    color: #B9B4AC;
}

.page-content .warning-custom-box {
    background: rgba(232, 195, 125, 0.08);
    border-color: rgba(232, 195, 125, 0.35);
    color: #B9B4AC;
}

.page-content .success-custom-box {
    background: rgba(62, 86, 65, 0.16);
    border-color: rgba(62, 86, 65, 0.45);
    color: #B9B4AC;
}

.page-content .quote-custom-box {
    border-left: 3px solid var(--gold);
    padding: 18px 22px;
    margin: 18px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 14px 14px 0;
    color: #B9B4AC;
    font-style: italic;
    font-size: 15px;
    line-height: 1.75;
    font-family: var(--font-body);
}

.page-content .quote-custom-box cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    color: #8f8a81;
    font-size: 13px;
}

.page-content .custom-box h3 {
    margin-top: 0;
    font-family: var(--font-display);
    font-weight: 560;
    color: #F5F2EA;
}

.page-content .columns-wrap {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
}

.page-content .column-item {
    flex: 1 1 280px;
    min-width: 0;
}

/* ── Cinematic scroll reveal ──────────────────────────────── */
body.nf-reveal-ready .page-article .nf-section-head,
body.nf-reveal-ready .page-article .nf-cta,
body.nf-reveal-ready .page-article .nf-contact-card,
body.nf-reveal-ready .page-article .nf-feature {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}

body.nf-reveal-ready .page-article .nf-card,
body.nf-reveal-ready .page-article .nf-step,
body.nf-reveal-ready .page-article .nf-stat,
body.nf-reveal-ready .page-article .nf-checklist li,
body.nf-reveal-ready .page-article .nf-meta-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}

body.nf-reveal-ready .page-article .nf-cards .nf-card:nth-child(2),
body.nf-reveal-ready .page-article .nf-steps .nf-step:nth-child(2),
body.nf-reveal-ready .page-article .nf-stats .nf-stat:nth-child(2),
body.nf-reveal-ready .page-article .nf-checklist li:nth-child(2) { transition-delay: 0.08s; }

body.nf-reveal-ready .page-article .nf-cards .nf-card:nth-child(3),
body.nf-reveal-ready .page-article .nf-steps .nf-step:nth-child(3),
body.nf-reveal-ready .page-article .nf-stats .nf-stat:nth-child(3),
body.nf-reveal-ready .page-article .nf-checklist li:nth-child(3) { transition-delay: 0.16s; }

body.nf-reveal-ready .page-article .nf-cards .nf-card:nth-child(4),
body.nf-reveal-ready .page-article .nf-steps .nf-step:nth-child(4),
body.nf-reveal-ready .page-article .nf-stats .nf-stat:nth-child(4),
body.nf-reveal-ready .page-article .nf-checklist li:nth-child(4) { transition-delay: 0.24s; }

body.nf-reveal-ready .page-article .nf-cards .nf-card:nth-child(5),
body.nf-reveal-ready .page-article .nf-steps .nf-step:nth-child(5),
body.nf-reveal-ready .page-article .nf-stats .nf-stat:nth-child(5),
body.nf-reveal-ready .page-article .nf-checklist li:nth-child(5) { transition-delay: 0.32s; }

body.nf-reveal-ready .page-article .nf-section-head.is-visible,
body.nf-reveal-ready .page-article .nf-card.is-visible,
body.nf-reveal-ready .page-article .nf-step.is-visible,
body.nf-reveal-ready .page-article .nf-stat.is-visible,
body.nf-reveal-ready .page-article .nf-checklist li.is-visible,
body.nf-reveal-ready .page-article .nf-meta-item.is-visible,
body.nf-reveal-ready .page-article .nf-cta.is-visible,
body.nf-reveal-ready .page-article .nf-contact-card.is-visible,
body.nf-reveal-ready .page-article .nf-feature.is-visible {
    opacity: 1;
    transform: none;
}

/* Hero entrance choreography */
body.nf-reveal-ready .page-hero__eyebrow,
body.nf-reveal-ready .page-hero__title,
body.nf-reveal-ready .page-hero__lead,
body.nf-reveal-ready .page-hero__crumbs {
    opacity: 0;
    animation: nf-hero-rise 0.9s var(--ease-out) forwards;
}

body.nf-reveal-ready .page-hero__crumbs { animation-delay: 0.05s; }
body.nf-reveal-ready .page-hero__eyebrow { animation-delay: 0.18s; }
body.nf-reveal-ready .page-hero__title   { animation-delay: 0.32s; }
body.nf-reveal-ready .page-hero__lead    { animation-delay: 0.46s; }

@keyframes nf-hero-rise {
    from { opacity: 0; transform: translateY(22px); filter: blur(4px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
}

/* ── Responsive: cinematic page ───────────────────────────── */
@media (max-width: 768px) {
    .page-hero {
        padding: 52px 0 60px;
    }

    .page-hero__title {
        font-size: clamp(34px, 9vw, 46px);
    }

    .nf-contact-grid {
        grid-template-columns: 1fr;
    }

    .nf-cta {
        padding: 40px 24px;
    }

    .nf-contact-card {
        padding: 28px 22px;
    }

    .nf-card,
    .nf-step,
    .nf-stat {
        padding-right: 22px;
        padding-left: 22px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 44px 0 52px;
    }

    .page-hero__eyebrow {
        letter-spacing: 0.16em;
        padding: 7px 14px;
    }

    .nf-section {
        margin-bottom: 52px;
    }

    .nf-cta {
        padding: 34px 20px;
    }

    .nf-cta__actions .nf-btn {
        width: 100%;
        justify-content: center;
    }

    .nf-cards {
        grid-template-columns: 1fr;
    }

    .nf-steps {
        grid-template-columns: 1fr;
    }

    .nf-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-hero__glow,
    .page-hero__glow--a,
    .page-hero__glow--b {
        animation: none;
    }

    .page-hero__eyebrow,
    .page-hero__title,
    .page-hero__lead,
    .page-hero__actions,
    .page-hero__crumbs {
        opacity: 1;
        transform: none;
    }

    .page-article .nf-section-head,
    .page-article .nf-card,
    .page-article .nf-feature,
    .page-article .nf-step,
    .page-article .nf-stat,
    .page-article .nf-checklist li,
    .page-article .nf-meta-item,
    .page-article .nf-cta,
    .page-article .nf-contact-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }

    .search-header-inner {
        gap: 8px;
    }

    .search-header-icon {
        width: 18px;
        height: 18px;
    }
}

.no-results-box svg {
    color: var(--text-dim);
    margin-bottom: 16px;
}

.no-results-box h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.no-results-box p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.no-results-btn {
    display: inline-flex;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.no-results-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 20px rgba(0,77,97,0.3);
    color: #fff;
}

/* ── Share Buttons ────────────────────────────────────────── */
.share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-btn:hover {
    background: rgba(0,77,97,0.1);
    border-color: rgba(0,77,97,0.2);
    color: #004D61;
}

/* Floating Share Bar */
.floating-share-bar {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: flex;
    gap: 6px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    padding: 6px 10px;
    background: rgba(4, 5, 6, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.floating-share-bar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.floating-share-bar a,
.floating-share-bar button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(0, 77, 97, 0.12);
    border: 1px solid rgba(0, 77, 97, 0.25);
    color: #004D61;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.floating-share-bar a:hover,
.floating-share-bar button:hover {
    background: rgba(0, 77, 97, 0.3);
    border-color: #004D61;
    color: #006B85;
}

.floating-share-bar a:active,
.floating-share-bar button:active {
    transform: scale(0.92);
}

.floating-share-bar svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.floating-share-bar .share-copy.copied {
    background: rgba(0,180,80,0.2);
    border-color: rgba(0,180,80,0.4);
    color: #00b450;
}

/* ── Responsive: Tablet ───────────────────────────────────── */
@media (max-width: 1024px) {
    .movies-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 14px !important;
    }

    .hdr__nav {
        display: none;
    }

    .hdr__nav.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        flex: none;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        align-items: stretch;
        background: rgba(6,8,14,0.98);
        backdrop-filter: saturate(180%) blur(30px);
        -webkit-backdrop-filter: saturate(180%) blur(30px);
        z-index: 10000;
        padding: 68px 20px 32px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hdr__nav.is-open .hdr__menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: stretch;
    }

    .hdr__nav.is-open .hdr__item {
        position: static;
        width: 100%;
        flex-shrink: 0;
    }

    .hdr__nav.is-open .hdr__link {
        font-size: 16px !important;
        padding: 14px 16px !important;
        color: rgba(255,255,255,0.7);
        border-radius: 12px;
        letter-spacing: 0.02em;
        text-transform: none;
        width: 100%;
        justify-content: flex-start;
    }

    .hdr__nav.is-open .hdr__link::before {
        display: none;
    }

    .hdr__nav.is-open .hdr__link::after {
        opacity: 0.3;
        transition: transform 0.3s;
    }

    .hdr__nav.is-open .hdr__item.open .hdr__link::after {
        transform: rotate(180deg);
    }

    .hdr__nav.is-open .hdr__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        min-width: 0;
        width: 100%;
        background: none;
        border: none;
        border-radius: 0;
        padding: 2px 0 2px 16px;
        box-shadow: none;
        pointer-events: auto;
    }

    .hdr__nav.is-open .hdr__dropdown::before {
        display: none;
    }

    .hdr__nav.is-open .hdr__item.open > .hdr__dropdown {
        display: block;
    }

    .hdr__nav.is-open .hdr__sub {
        background: rgba(255,255,255,0.02);
        border: none;
        border-radius: 0;
        padding: 2px 0;
        box-shadow: none;
    }

    .hdr__nav.is-open .hdr__sub li a {
        font-size: 14px !important;
        padding: 10px 14px !important;
        color: rgba(255,255,255,0.45);
        border-radius: 8px;
    }

    .hdr__nav.is-open .hdr__sub li a:hover {
        background: rgba(255,255,255,0.04);
        color: rgba(255,255,255,0.8);
        padding-left: 14px !important;
    }

    .hdr__burger {
        display: flex;
    }

    .hdr__search {
        display: flex;
    }

    /* Full-width search bar dropping below the header on small screens */
    .hdr__search-expand {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        transform: none;
        padding: 12px 20px;
        background: rgba(6,8,14,0.98);
        backdrop-filter: saturate(180%) blur(30px);
        -webkit-backdrop-filter: saturate(180%) blur(30px);
        border-top: 1px solid rgba(0,229,255,0.12);
        box-shadow: 0 16px 32px rgba(0,0,0,0.4);
        transition: opacity 0.25s ease, visibility 0.25s ease;
        visibility: hidden;
    }

    .hdr__search.is-open .hdr__search-expand {
        width: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .hdr__search-expand .search-form {
        height: 40px;
        background: rgba(255,255,255,0.06);
        border-color: rgba(0,229,255,0.25);
    }

    .hdr__search-expand .search-form button {
        height: 32px;
    }

    .hdr__brand {
        margin-right: auto;
    }


    .single-body-wrap {
        flex-direction: column;
    }

    .single-sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .single-sidebar .single-widget {
        flex: 1 1 calc(50% - 6px);
        min-width: 280px;
    }

    .single-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .single-poster {
        width: 220px;
    }

    /* Download rows — prevent overflow on tablet */
    .single-download-section .dwd-row {
        flex-wrap: wrap;
    }

    .single-download-section .dwd-row-right {
        flex-shrink: 1;
    }
}

/* ── Responsive: Mobile ───────────────────────────────────── */
@media (max-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }

    .poster-badges {
        gap: 3px;
        left: 6px;
        right: 6px;
    }

    .badge-quality,
    .badge-type,
    .badge-rating {
        font-size: 9px !important;
        padding: 3px 5px;
        gap: 2px;
        border-radius: 5px;
    }

    .badge-rating {
        padding: 3px 6px;
    }

    .container {
        padding: 0 16px;
    }

    .single-title {
        font-size: 20px;
        letter-spacing: -0.3px;
    }

    .section-title {
        font-size: 20px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .hdr__name {
        font-size: 14px;
    }

    .single-poster {
        width: 140px;
    }

    .single-hero {
        gap: 20px;
        padding: 16px 0;
    }

    .single-excerpt {
        font-size: 13px;
    }

    /* Sidebar — full width below content */
    .single-sidebar {
        width: 100%;
        position: static;
        flex-direction: column;
    }

    .single-sidebar .single-widget {
        width: 100%;
        box-sizing: border-box;
    }

    /* Content boxes — tighter padding */
    .info-box,
    .synopsis-box,
    .download-box,
    .screenshots-box,
    .tax-box,
    .comments-area {
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .info-box-inner {
        padding: 16px;
    }

    .box-heading {
        font-size: 15px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    /* Info grid — 2 columns */
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .info-cell {
        padding: 10px 12px;
    }

    .info-label {
        font-size: 10px;
    }

    .info-value {
        font-size: 13px;
    }

    /* Synopsis */
    .synopsis-text {
        font-size: 13px;
        line-height: 1.65;
    }

    /* Screenshots — single column */
    .screenshot-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .screenshot-item:hover {
        transform: none;
    }

    .comments-area {
        padding: 16px;
    }

    /* Download section — stack rows */
    .single-download-section .dwd-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }

    .single-download-section .dwd-row-left {
        flex: 1;
        min-width: 0;
    }

    .single-download-section .dwd-row-right {
        width: 100%;
        justify-content: flex-end;
    }

    .single-download-section .dwd-btn {
        padding: 8px 14px;
        font-size: 11px;
    }

    .single-download-section .dwd-tag {
        font-size: 11px;
        padding: 3px 8px;
    }

    .single-download-section .dwd-size {
        font-size: 12px;
    }

    .single-download-section .dwd-heading {
        font-size: 12px;
    }

    /* Tax box */
    .single-tax-metas {
        gap: 10px;
    }

    .tax-meta-block {
        gap: 6px;
    }

    .tax-meta-label {
        font-size: 10px;
        padding: 3px 8px;
    }

    .tax-meta-link {
        font-size: 11px;
        padding: 3px 10px;
    }

    /* Comments */
    .comments-area {
        margin-top: 24px;
        padding-top: 20px;
    }

    .comment-reply-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .comment-form input,
    .comment-form textarea {
        padding: 10px 14px;
        font-size: 14px;
    }

    .comment-form .form-submit input[type="submit"] {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    /* Download count badge */
    .download-count {
        font-size: 10px;
        padding: 2px 8px;
    }

    /* Share bar — tablet */
    .floating-share-bar {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        gap: 4px;
        padding: 5px 8px;
    }

    .floating-share-bar svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .poster-card {
        border-radius: 12px;
    }

    .poster-badges {
        gap: 3px;
        left: 6px;
        right: 6px;
    }

    .badge-quality,
    .badge-type,
    .badge-rating {
        font-size: 8px !important;
        padding: 3px 5px;
        gap: 2px;
        border-radius: 5px;
    }

    .badge-rating {
        padding: 3px 6px;
    }

    .poster-info {
        padding: 8px 10px 10px;
    }

    .poster-date {
        font-size: 9px;
    }

    .poster-title {
        font-size: 12px;
    }

    .single-poster {
        width: 160px;
    }

    .comments-area {
        padding: 14px 12px;
    }

    /* Content boxes — extra compact */
    .info-box,
    .synopsis-box,
    .download-box,
    .screenshots-box,
    .tax-box,
    .comments-area {
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .info-box-inner {
        padding: 14px 12px;
    }

    .box-heading {
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .box-heading svg {
        width: 16px;
        height: 16px;
    }

    /* Info grid — single column on tiny screens */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .info-cell {
        padding: 8px 10px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .info-label {
        font-size: 10px;
        flex-shrink: 0;
    }

    .info-value {
        font-size: 12px;
        text-align: right;
    }

    /* Synopsis */
    .synopsis-text {
        font-size: 12px;
    }

    /* Download section — fully stacked */
    .single-download-section .dwd-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .single-download-section .dwd-row-left {
        width: 100%;
    }

    .single-download-section .dwd-row-right {
        justify-content: flex-start;
    }

    .single-download-section .dwd-btn {
        padding: 8px 14px;
        font-size: 11px;
    }

    .single-download-section .dwd-section {
        padding: 10px;
    }

    /* Fix BP-4: Allow download button text to wrap on tiny screens */
    .single-download-section .dwd-btn {
        white-space: normal;
        word-break: break-word;
    }

    /* Tax box — stack blocks */
    .single-tax-metas {
        flex-direction: column;
        gap: 8px;
    }

    .tax-meta-block {
        flex-wrap: wrap;
    }

    .tax-meta-link {
        font-size: 10px;
        padding: 3px 8px;
    }

    /* Comments */
    .comment-form input,
    .comment-form textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .comment-form .form-submit input[type="submit"] {
        padding: 11px;
        font-size: 13px;
    }

    /* Pagination */
    .pagination ul.page-numbers {
        gap: 4px;
    }

    .pagination a, .pagination span,
    ul.page-numbers li a, ul.page-numbers li span {
        min-width: 34px;
        height: 34px;
        font-size: 11px;
        padding: 0 8px;
    }

    /* Sidebar widgets */
    .single-widget {
        padding: 12px;
    }

    .widget-title {
        font-size: 12px;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .sidebar-search-form input[type="search"] {
        padding: 8px 12px;
        font-size: 12px;
    }

    .sidebar-search-form button {
        padding: 8px 14px;
        font-size: 12px;
    }

    /* Share bar — small phone */
    .floating-share-bar {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        gap: 2px;
        padding: 4px 6px;
        border-radius: 24px;
    }

    .floating-share-bar a,
    .floating-share-bar button {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .floating-share-bar svg {
        width: 15px;
        height: 15px;
    }
}

/* ── Responsive: Large Phone (428px) ─────────────────────── */
@media (max-width: 428px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .container {
        padding: 0 14px;
    }

    .single-poster {
        width: 150px;
    }

    .single-title {
        font-size: 18px;
    }

    .poster-info {
        padding: 8px 10px 10px;
    }

    .poster-title {
        font-size: 12px;
    }

    .poster-date {
        font-size: 9px;
    }

    /* Fix BP-2: Prevent header overflow on small phones */
    .hdr__row {
        gap: 0;
    }

    .hdr__logo {
        width: 28px;
        height: 28px;
    }

    .hdr__name {
        font-size: 13px;
    }

    .hdr__brand {
        margin-right: 16px;
    }
}

/* ── Responsive: iPhone (390px) ──────────────────────────── */
@media (max-width: 390px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .container {
        padding: 0 12px;
    }

    .single-poster {
        width: 140px;
    }

    .single-title {
        font-size: 17px;
    }

    .single-excerpt {
        font-size: 12px;
    }

    .poster-info {
        padding: 6px 8px 8px;
    }

    .poster-title {
        font-size: 11px;
    }

    .info-box-inner {
        padding: 12px 10px;
    }

    .box-heading {
        font-size: 13px;
    }

    .comment-form input,
    .comment-form textarea {
        font-size: 16px; /* Prevent iOS zoom on focus */
    }
}

/* ── Responsive: Small Phone (360px) ─────────────────────── */
@media (max-width: 360px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    .container {
        padding: 0 10px;
    }

    .single-poster {
        width: 120px;
    }

    .single-title {
        font-size: 16px;
    }

    .poster-card {
        border-radius: 10px;
    }

    .poster-info {
        padding: 5px 7px 7px;
    }

    .poster-title {
        font-size: 10.5px;
    }

    .poster-date {
        font-size: 8px;
    }

    .badge-quality,
    .badge-type,
    .badge-rating {
        font-size: 8px !important;
        padding: 2px 4px;
        gap: 2px;
        border-radius: 4px;
    }

    .poster-badges {
        left: 4px;
        right: 4px;
        gap: 2px;
    }

    .section-title {
        font-size: 18px;
    }

    .info-grid {
        gap: 4px;
    }

    .info-cell {
        padding: 6px 8px;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-links a {
        font-size: 11px;
    }

    .footer-info p {
        font-size: 11px;
    }
}

/* ── Responsive: Laptop (1440px) ─────────────────────────── */
@media (max-width: 1440px) {
    .container {
        max-width: 1240px;
    }
}

/* ── Responsive: Small Laptop (1280px) ───────────────────── */
@media (max-width: 1280px) {
    .container {
        max-width: 1100px;
    }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .single-sidebar, .scroll-top, .share-buttons {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }

    .poster-card {
        break-inside: avoid;
    }
}

/* ── Reduced Motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .floating-share-bar,
    .floating-share-bar a,
    .floating-share-bar button {
        transition: none;
    }

    .floating-share-bar a:active,
    .floating-share-bar button:active {
        transform: none;
    }

    .poster-card,
    .poster-card:hover {
        transition: none;
        transform: none !important;
    }

    .poster-card::before,
    .poster-card:hover::before {
        opacity: 0;
    }

    .poster-card:hover .poster-image img {
        transform: none;
        filter: none;
    }

    .poster-card:hover .poster-shine::after {
        opacity: 0;
    }

    .poster-card:hover .poster-badges {
        transform: none;
    }

    .poster-card:hover .badge-quality,
    .poster-card:hover .badge-type {
        transform: none;
    }

    .movies-grid .poster-card {
        animation: none;
        opacity: 1;
    }
}
