/* =============================================================
   FIELDS — MOVIE THEME (cinematic gold)
   Loaded on gp-genre/lang/country/mode/perspective/gameplay
   taxonomy archives when site mode resolves to "movie".
   ============================================================= */


:root {
    --gxf-bg:        #fbfbfc;
    --gxf-bg-2:      #f0f0f2;
    --gxf-bg-card:   #f5f5f6;
    --gxf-bg-deep:   #ebebed;
    --gxf-accent:    #5b6573;
    --gxf-accent-2:  #7b8593;
    --gxf-accent-d:  #44505e;
    --gxf-border:    #dcdde0;
    --gxf-border-2:  #e7e8ea;
    --gxf-text:      #1f2329;
    --gxf-text-dim:  #5c636d;
    --gxf-text-mute: #8a9099;
}

/* ─── Page chrome bypass ─────────────────────────────────────── */
body:has(#geekui-root-field) .entry-header,
body:has(#geekui-root-field) .page-header,
body:has(#geekui-root-field) header.entry-header,
body:has(#geekui-root-field) .page-title-wrapper,
body:has(#geekui-root-field) .page-banner,
body:has(#geekui-root-field) .ast-page-title-bar,
body:has(#geekui-root-field) .ast-archive-description,
body:has(#geekui-root-field) .generate-page-header,
body:has(#geekui-root-field) .elementor-page-title,
body:has(#geekui-root-field) .breadcrumb-section,
body:has(#geekui-root-field) [class*="page-title"]:not(li):not(a),
body:has(#geekui-root-field) [class*="page-header"]:not(li):not(a),
body:has(#geekui-root-field) [class*="entry-header"]:not(li):not(a),
body:has(#geekui-root-field) [class*="banner"]:not(.site-header):not(nav):not(#masthead):not(li):not(a),
body:has(#geekui-root-field) [class*="title-bar"]:not(li):not(a),
body:has(#geekui-root-field) [class*="title-section"]:not(li):not(a),
body:has(#geekui-root-field) main header,
body:has(#geekui-root-field) main > header,
body:has(#geekui-root-field) main > section:first-child:not(article),
body:has(#geekui-root-field) main > div:first-child:not(article):not(.entry-content) {
    background: var(--gxf-bg) !important;
    color: var(--gxf-text) !important;
    box-shadow: none !important;
    border-color: var(--gxf-border-2) !important;
}

/* ─── Canvas ─────────────────────────────────────────────────── */
#geekui-root-field {
    position: relative;
    color: var(--gxf-text);
    padding: 28px 22px 60px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%,  color-mix(in srgb, var(--gxf-accent) 10%, transparent), transparent 60%),
        radial-gradient(ellipse 60% 40% at 10% 100%, color-mix(in srgb, var(--gxf-accent) 6%, transparent), transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 100%, color-mix(in srgb, var(--gxf-accent) 6%, transparent), transparent 60%),
        var(--gxf-bg);
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
}

/* ─── Layout ─────────────────────────────────────────────────── */
.gxf-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}
.gxf-content__main { min-width: 0; }

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER — cinematic gold with diamond divider
   ═══════════════════════════════════════════════════════════════ */
.gxf-container { position: relative; }
.gxf-pagetitle {
    margin: 0 0 4px !important;
    font-family: 'Cormorant Garamond', 'Times New Roman', serif !important;
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.15;
    color: var(--gxf-text) !important;
    font-variant: normal !important;
    font-feature-settings: normal !important;
    text-transform: none !important;
}
.gxf-pagetitle__prefix {
    color: var(--gxf-text) !important;
    font-weight: 500;
}
.gxf-pagetitle__genre {
    color: var(--gxf-accent-2) !important;
    font-weight: 600;
    font-style: italic;
}
/* Diamond divider — flex row: line | ◆ | line, on its own line below title */
.gxf-pagetitle__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 280px;
    max-width: 60%;
    height: 14px;
    margin: 14px 0 0;
    color: var(--gxf-accent);
    font-size: 12px;
    line-height: 1;
    text-shadow: 0 0 6px color-mix(in srgb, var(--gxf-accent) 45%, transparent);
}
.gxf-pagetitle__divider::before,
.gxf-pagetitle__divider::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
}
.gxf-pagetitle__divider::before {
    background: linear-gradient(to right, transparent, var(--gxf-accent));
}
.gxf-pagetitle__divider::after {
    background: linear-gradient(to right, var(--gxf-accent), transparent);
}
.gxf-pagesub { display: none; }

/* ═══════════════════════════════════════════════════════════════
   TITLE ROW — clean cinematic layout, NO numbered prefix
   ═══════════════════════════════════════════════════════════════ */
.gxf-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 26px;
}
.gxf-row,
a.gxf-row,
a.gxf-row:link,
a.gxf-row:visited {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr 24px;
    gap: 22px;
    align-items: center;
    padding: 0 18px 0 0;
    background: linear-gradient(180deg, var(--gxf-bg-card) 0%, var(--gxf-bg-2) 100%);
    border: 1px solid var(--gxf-border);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 color-mix(in srgb, var(--gxf-accent) 4%, transparent);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    color: inherit !important;
    min-height: 180px;
}
.gxf-row:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--gxf-accent) 55%, transparent);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.55),
        0 0 18px color-mix(in srgb, var(--gxf-accent) 14%, transparent),
        inset 0 1px 0 color-mix(in srgb, var(--gxf-accent) 10%, transparent);
}

/* Hide the numbered prefix in movie theme */
.gxf-row__num {
    display: none;
}

.gxf-row__poster {
    position: relative;
    width: 120px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--gxf-bg-deep);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--gxf-accent) 8%, transparent) inset;
    align-self: stretch;
}
.gxf-row__poster-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.gxf-row__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 0;
    min-width: 0;
}
.gxf-row__title {
    margin: 0 !important;
    font-family: 'Cormorant Garamond', 'Times New Roman', serif !important;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.005em;
    line-height: 1.2;
    color: var(--gxf-accent-2) !important;
    font-variant: normal !important;
    font-feature-settings: normal !important;
    text-transform: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.gxf-row:hover .gxf-row__title { color: var(--gxf-accent) !important; }

.gxf-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: var(--gxf-text-dim);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.gxf-row__year { color: var(--gxf-text-dim); }
.gxf-row__sep { color: var(--gxf-accent-d); opacity: 0.7; font-size: 9px; }
.gxf-row__cat { color: var(--gxf-text-dim); }

.gxf-row__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.gxf-row a.gxf-row__tag,
.gxf-row a.gxf-row__tag:link,
.gxf-row a.gxf-row__tag:visited {
    color: var(--gxf-accent) !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}
.gxf-row a.gxf-row__tag:hover { color: var(--gxf-accent-2) !important; }
.gxf-row__tag-sep {
    color: var(--gxf-accent-d);
    opacity: 0.6;
    font-size: 9px;
}

.gxf-row__sum {
    margin: 0 !important;
    color: var(--gxf-text-dim);
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.005em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gxf-row__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gxf-accent);
    transition: transform 0.2s ease, color 0.2s ease;
}
.gxf-row__arrow svg { width: 16px; height: 16px; }
.gxf-row:hover .gxf-row__arrow {
    color: var(--gxf-accent-2);
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR — Genres (cinematic gold)
   ═══════════════════════════════════════════════════════════════ */
.gxf-side {
    position: sticky;
    top: 80px;
    align-self: start;
    background: linear-gradient(180deg, var(--gxf-bg-card) 0%, var(--gxf-bg-2) 100%);
    border: 1px solid var(--gxf-border);
    border-radius: 4px;
    padding: 18px 16px 20px;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 color-mix(in srgb, var(--gxf-accent) 4%, transparent);
}
.gxf-side__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--gxf-border-2);
}
.gxf-side__header-icon {
    color: var(--gxf-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}
.gxf-side__header-icon svg {
    width: 1em;
    height: 1em;
}
.gxf-side__header-title {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.005em;
    color: var(--gxf-accent-2);
    font-variant: normal;
    font-feature-settings: normal;
    text-transform: none;
}
.gxf-side__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px;
}
a.gxf-side__tag,
a.gxf-side__tag:link,
a.gxf-side__tag:visited {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--gxf-accent) 6%, transparent) 0%, color-mix(in srgb, var(--gxf-accent) 10%, transparent) 100%);
    border: 1px solid var(--gxf-accent);
    border-radius: 999px;
    color: var(--gxf-text) !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--gxf-accent) 10%, transparent),
        0 1px 3px rgba(0, 0, 0, 0.45);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.gxf-side__tag:hover {
    background: linear-gradient(180deg, color-mix(in srgb, var(--gxf-accent) 18%, transparent) 0%, color-mix(in srgb, var(--gxf-accent) 10%, transparent) 100%);
    color: var(--gxf-accent-2) !important;
    border-color: var(--gxf-accent-2);
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--gxf-accent) 18%, transparent),
        0 0 12px color-mix(in srgb, var(--gxf-accent) 22%, transparent),
        0 1px 3px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}
a.gxf-side__tag--active,
a.gxf-side__tag--active:link,
a.gxf-side__tag--active:visited,
a.gxf-side__tag--active:active,
a.gxf-side__tag--active:focus {
    background:
        linear-gradient(180deg, var(--gxf-accent-2) 0%, var(--gxf-accent) 55%, var(--gxf-accent-d) 100%) !important;
    border-color: var(--gxf-accent-2) !important;
    color: var(--gxf-bg) !important;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(255, 220, 140, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 240, 200, 0.55),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25),
        0 0 18px color-mix(in srgb, var(--gxf-accent-2) 55%, transparent),
        0 0 32px color-mix(in srgb, var(--gxf-accent-2) 25%, transparent) !important;
}
a.gxf-side__tag--active:hover {
    transform: translateY(-1px);
    background:
        linear-gradient(180deg, var(--gxf-accent-2) 0%, var(--gxf-accent-2) 55%, var(--gxf-accent-d) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 240, 200, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25),
        0 0 24px color-mix(in srgb, var(--gxf-accent-2) 70%, transparent),
        0 0 40px color-mix(in srgb, var(--gxf-accent-2) 35%, transparent) !important;
}

/* ─── Loader — gold ring ─────────────────────────────────────── */
#geekui-root-field .geekfp-spinner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 500px !important;
    position: relative;
}
#geekui-root-field .geekfp-spinner .geekfp-rotating,
#geekui-root-field .geekfp-spinner > svg {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    font-size: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
}
#geekui-root-field .geekfp-spinner::after {
    content: '' !important;
    display: block !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    border: 3px solid color-mix(in srgb, var(--gxf-accent) 10%, transparent) !important;
    border-top-color: var(--gxf-accent) !important;
    border-right-color: color-mix(in srgb, var(--gxf-accent) 40%, transparent) !important;
    animation: gxf-ring-rotate 0.7s linear infinite !important;
    box-shadow: 0 0 16px color-mix(in srgb, var(--gxf-accent) 18%, transparent) !important;
    flex-shrink: 0 !important;
}
@keyframes gxf-ring-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .gxf-content { grid-template-columns: 1fr; }
    .gxf-side { position: static; }
}
@media (max-width: 700px) {
    .gxf-pagetitle { font-size: 28px; }
    .gxf-row { grid-template-columns: 90px 1fr 20px; gap: 14px; padding: 0 12px 0 0; min-height: 140px; }
    .gxf-row__poster { width: 90px; }
    .gxf-row__title { font-size: 18px; }
    .gxf-row__body { padding: 12px 0; }
}
