:root {
    --eme-border-width: 1px;
}

/* ===== RESET & BASE STYLES ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background-color: var(--eme-bg-primary, #121417);
    color: var(--eme-text-primary, #F3F4F6);
}

body {
    margin: 0;
    background-color: var(--eme-bg-primary, #121417);
    color: var(--eme-text-primary, #F3F4F6);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

img, svg, iframe, video {
    display: block;
    max-width: 100%;
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

.visually-hidden, .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== CONTAINER ===== */

.eme-canvas {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (max-width: 767px) {
    .eme-canvas {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== SITE HEADER ===== */

#eme-emeHeader.eme-site-header-bar {
    background: var(--eme-bg-secondary, #181B20);
    border-bottom: 1px solid var(--eme-border, #262B33);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px var(--eme-shadow-card, rgba(0, 0, 0, 0.25));
}

.eme-header-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    gap: 1.5rem;
}

.eme-header-bar__logo {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    justify-content: space-between;
}

.eme-header-bar__logo__text {
    color: var(--eme-text-primary, #F3F4F6);
    display: inline-flex;
    letter-spacing: -0.02em;
    font-weight: 800;
    font-size: 1.5rem;
    align-items: center;
}

.eme-header-bar__logo__text .eme-logo-body {
    color: var(--theme-color, #10B981);
}

.eme-header-bar__logo__text .eme-logo-ext {
    color: var(--eme-text-primary, #F3F4F6);
    margin-left: 2px;
}

/* Header Form (Pill Rounded Search) */

.eme-header-bar__form {
    position: relative;
    max-width: 480px;
    flex-grow: 1;
}

.eme-header-bar__form form {
    position: relative;
    align-items: center;
    display: flex;
    width: 100%;
}

.eme-header-bar__form input[type="search"] {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 1.25rem;
    background-color: var(--eme-bg-primary, #121417);
    border: 1px solid var(--eme-border, #262B33);
    border-radius: 9999px;
    color: var(--eme-text-primary, #F3F4F6);
    font-size: 0.875rem;
    transition: all 0.25s ease;
}

.eme-header-bar__form input[type="search"]::placeholder {
    color: var(--eme-text-muted, #9CA3AF);
}

.eme-header-bar__form input[type="search"]:focus {
    border-color: var(--theme-color, #10B981);
    background-color: var(--eme-bg-secondary, #181B20);
    box-shadow: 0 0 0 3px var(--eme-accent-alpha-25, rgba(16, 185, 129, 0.25));
}

.eme-header-bar__form button[type="submit"] {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--theme-color, #10B981);
    color: var(--eme-text-contrast, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.eme-header-bar__form button[type="submit"]:hover {
    transform: translateY(-50%) scale(1.05);
    background-color: var(--theme-color-hover, #059669);
}

/* Mobile Menu Toggle Button */

.eme-header-bar__mobile-bar-toggle {
    display: none;
}

@media (max-width: 1023px) {
    .eme-header-bar__mobile-bar-toggle {
        display: block;
        margin-left: 0.75rem;
    }

    .eme-header-bar__mobile-bar-toggle button {
        display: block;
        position: relative;
        width: 42px;
        height: 42px;
        border-radius: 9999px;
        background: var(--eme-bg-primary, #121417);
        border: 1px solid var(--eme-border, #262B33);
        cursor: pointer;
    }

    .eme-header-bar__mobile-bar-toggle button::before,
  .eme-header-bar__mobile-bar-toggle button::after {
        content: "";
        position: absolute;
        left: 11px;
        width: 20px;
        height: 2px;
        background: var(--eme-text-primary, #F3F4F6);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .eme-header-bar__mobile-bar-toggle button::before {
        top: 15px;
    }

    .eme-header-bar__mobile-bar-toggle button::after {
        top: 25px;
    }

    .eme-header-bar__mobile-bar-toggle--opened button::before {
        top: 20px;
        transform: rotate(45deg);
        background: var(--theme-color, #10B981);
    }

    .eme-header-bar__mobile-bar-toggle--opened button::after {
        top: 20px;
        transform: rotate(-45deg);
        background: var(--theme-color, #10B981);
    }
}

@media (max-width: 767px) {
    .eme-header-bar-top {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .eme-header-bar__logo {
        width: 100%;
    }

    .eme-header-bar__form {
        max-width: 100%;
        width: 100%;
    }
}

/* ===== NAVBAR (CENTERED FLOATING PILL STREAM) ===== */

#eme-emeNavbar {
    background: var(--eme-bg-primary, #121417);
    border-bottom: 1px solid var(--eme-border, #262B33);
    padding: 0.65rem 0;
}

@media (max-width: 1023px) {
    #eme-emeNavbar {
        display: none;
    }
}

#eme-emeNavbar .eme-navbar__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#eme-emeNavbar .eme-navbar__menu__item {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    background: var(--eme-bg-secondary, #181B20);
    border: 1px solid var(--eme-border, #262B33);
    color: var(--eme-text-muted, #9CA3AF);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

#eme-emeNavbar .eme-navbar__menu__item:hover,
#eme-emeNavbar .eme-navbar__menu__item--active {
    color: var(--theme-color, #10B981);
    background: var(--eme-accent-alpha-15, rgba(16, 185, 129, 0.15));
    border-color: var(--eme-accent-alpha-35, rgba(16, 185, 129, 0.35));
    transform: translateY(-1px);
}

#eme-emeNavbar .eme-navbar__menu__item--active {
    font-weight: 600;
    box-shadow: 0 0 12px var(--eme-accent-alpha-25, rgba(16, 185, 129, 0.25));
}

/* ===== MOBILE BOTTOM SHEET MENU ===== */

#eme-emeAsideMenu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    max-height: 80vh;
    z-index: 1000;
    background: var(--eme-bg-secondary, #181B20);
    border-top: 1px solid var(--eme-border, #262B33);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px var(--eme-shadow-modal, rgba(0, 0, 0, 0.7));
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#eme-emeAsideMenu.eme-mobile-rail-bar--active {
    transform: translateY(0) !important;
}

.eme-mobile-sheet__handle {
    width: 44px;
    height: 4px;
    background: var(--eme-border-light, #323842);
    border-radius: 9999px;
    margin: 12px auto 6px;
    flex-shrink: 0;
}

.eme-mobile-sheet__header-bar {
    padding: 0.5rem 1.25rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--eme-border, #262B33);
    font-weight: 700;
    color: var(--eme-text-primary, #F3F4F6);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.eme-mobile-sheet__banner-title {
    color: var(--theme-color, #10B981);
}

.eme-mobile-rail-bar__canvas {
    padding: 1.25rem 1rem 2.5rem;
    overflow-y: auto;
    max-height: calc(80vh - 70px);
}

.eme-mobile-bar__queue {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (max-width: 480px) {
    .eme-mobile-bar__queue {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.eme-mobile-bar__piece a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 9999px;
    background: var(--eme-bg-primary, #121417);
    border: 1px solid var(--eme-border, #262B33);
    color: var(--eme-text-primary, #F3F4F6);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.eme-mobile-bar__piece a:hover,
.eme-mobile-bar__piece a.eme-active {
    background: var(--theme-color, #10B981) !important;
    color: var(--eme-text-contrast, #ffffff) !important;
    border-color: var(--theme-color, #10B981) !important;
    box-shadow: 0 4px 14px var(--eme-accent-alpha-25, rgba(16, 185, 129, 0.25));
}

.eme-mobile-rail-bar-outside {
    position: fixed;
    inset: 0;
    background: var(--eme-bg-modal-overlay, rgba(0, 0, 0, 0.75));
    backdrop-filter: blur(3px);
    z-index: 999;
    display: none;
}

/* ===== BREADCRUMBS ===== */

.eme-breadcrumbs-area {
    background: var(--eme-bg-secondary, #181B20);
    border-bottom: 1px solid var(--eme-border, #262B33);
    padding: 0.6rem 0;
    font-size: 0.85rem;
}

.eme-breadcrumbs-area .eme-canvas {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.eme-breadcrumbs-area a {
    color: var(--eme-text-muted, #9CA3AF);
    transition: color 0.2s ease;
}

.eme-breadcrumbs-area a:hover {
    color: var(--theme-color, #10B981);
}

.eme-breadcrumbs-area .eme-current {
    color: var(--theme-color, #10B981);
    font-weight: 500;
}

.eme-breadcrumbs-area svg {
    flex-shrink: 0;
    stroke: var(--eme-text-dim, #6B7280);
}

/* ===== HEADINGS ===== */

.eme-banner-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0 1rem;
    padding: 0.25rem 0;
}

.eme-banner-title__banner-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--eme-text-primary, #F3F4F6);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.01em;
}

.eme-banner-title__banner-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--theme-color, #10B981);
    border-radius: 9999px;
}

/* ===== FULL-WIDTH LAYOUT ===== */

.eme-gallery.eme-gallery--fullwidth {
    display: block;
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 2.5rem;
    flex-grow: 1;
}

/* ===== VIDEO GRID (4 COLS DESKTOP, 4 COLS TABLET, 1 COL MOBILE) ===== */

.eme-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .eme-items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .eme-items {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

/* ===== VIDEO CARD COMPONENT ===== */

.eme-piece {
    display: flex;
    flex-direction: column;
    background: var(--eme-bg-secondary, #181B20);
    border: 1px solid var(--eme-border, #262B33);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.eme-piece:hover {
    transform: translateY(-4px);
    border-color: var(--eme-accent-alpha-45, rgba(16, 185, 129, 0.45));
    box-shadow: 0 10px 24px var(--eme-shadow-card, rgba(0, 0, 0, 0.5));
}

.eme-piece .eme-piece__thumbnail {
    position: relative;
    display: block;
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: var(--eme-bg-black, #0a0c0e);
}

.eme-piece .eme-piece__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.eme-piece:hover .eme-piece__thumbnail img {
    transform: scale(1.06);
}

.eme-piece .eme-piece__labels {
    position: absolute;
    left: 8px;
    z-index: 2;
    top: 8px;
}

.eme-piece .eme-piece__labels span {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--eme-text-contrast, #ffffff);
    background: var(--theme-color, #10B981);
    border-radius: 9999px;
    box-shadow: 0 2px 8px var(--eme-bg-duration, rgba(0, 0, 0, 0.4));
    letter-spacing: 0.02em;
}

.eme-piece .eme-piece__banner-title {
    padding: 0.85rem 1rem;
    text-align: left;
    flex-grow: 1;
}

.eme-piece .eme-piece__banner-title > * {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--eme-text-primary, #F3F4F6);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 2lh;
    transition: color 0.2s ease;
}

.eme-piece:hover .eme-piece__banner-title > * {
    color: var(--theme-color, #10B981);
}

@media (max-width: 767px) {
    .eme-piece .eme-piece__banner-title > * {
        font-size: 1rem;
        font-weight: 600;
    }
}

/* ===== BUTTONS ===== */

.eme-cta,
.eme-cta--pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 2rem;
    border-radius: 9999px;
    background: var(--theme-color, #10B981);
    color: var(--eme-text-contrast, #ffffff);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--eme-accent-alpha-25, rgba(16, 185, 129, 0.25));
    transition: all 0.25s ease;
}

.eme-cta:hover,
.eme-cta--pill:hover {
    background: var(--theme-color-hover, #059669);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--eme-accent-alpha-40, rgba(16, 185, 129, 0.4));
    color: var(--eme-text-contrast, #ffffff);
}

.eme-cta:active,
.eme-cta--pill:active {
    transform: translateY(0);
}

/* ===== PAGINATION ===== */

.eme-paginator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.eme-paginator .eme-paginator__piece {
    display: block;
}

.eme-paginator .eme-paginator__piece a,
.eme-paginator .eme-paginator__piece span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.6rem;
    border-radius: 9999px;
    background: var(--eme-bg-secondary, #181B20);
    border: 1px solid var(--eme-border, #262B33);
    color: var(--eme-text-muted, #9CA3AF);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.eme-paginator .eme-paginator__piece a:hover,
.eme-paginator .eme-paginator__piece--active a,
.eme-paginator .eme-paginator__piece--active span {
    background: var(--theme-color, #10B981) !important;
    color: var(--eme-text-contrast, #ffffff) !important;
    border-color: var(--theme-color, #10B981) !important;
    box-shadow: 0 2px 10px var(--eme-accent-alpha-25, rgba(16, 185, 129, 0.25));
}

/* ===== SINGLE VIDEO PAGE ===== */

.eme-single-video-gallery {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.eme-player-canvas {
    width: 100%;
    margin-top: 0.5rem;
}

.eme-player {
    aspect-ratio: 16/9;
    width: 100%;
    position: relative;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--eme-shadow-modal, rgba(0, 0, 0, 0.6));
    border: 1px solid var(--eme-border, #262B33);
}

.eme-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Inline Flat Action Bar */

.eme-player-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--eme-bg-secondary, #181B20);
    border: 1px solid var(--eme-border, #262B33);
    border-radius: 12px;
    margin-top: 0.85rem;
}

.eme-player-cta-bar__left .eme-cdn-selector-canvas {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.eme-player__cdn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    background: var(--eme-bg-primary, #121417);
    border: 1px solid var(--eme-border, #262B33);
    color: var(--eme-text-muted, #9CA3AF);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.eme-player__cdn:hover,
.eme-player__cdn--active {
    background: var(--theme-color, #10B981) !important;
    color: var(--eme-text-contrast, #ffffff) !important;
    border-color: var(--theme-color, #10B981) !important;
    box-shadow: 0 2px 10px var(--eme-accent-alpha-25, rgba(16, 185, 129, 0.25));
}

.eme-player-cta-bar__right .eme-video-byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.eme-video-byline .eme-views,
.eme-video-byline .eme-likes {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    background: var(--eme-bg-primary, #121417);
    border: 1px solid var(--eme-border, #262B33);
    color: var(--eme-text-muted, #9CA3AF);
    font-size: 0.85rem;
    font-weight: 500;
}

.eme-video-byline .eme-likes {
    cursor: pointer;
    transition: all 0.2s ease;
}

.eme-video-byline .eme-likes:hover,
.eme-video-byline .eme-likes.eme-liked {
    background: var(--eme-accent-alpha-15, rgba(16, 185, 129, 0.15));
    color: var(--theme-color, #10B981);
    border-color: var(--eme-accent-alpha-40, rgba(16, 185, 129, 0.4));
}

.eme-video-byline svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Video Info Area */

.eme-video-byline-area {
    padding: 1.25rem 1.5rem;
    background: var(--eme-bg-secondary, #181B20);
    border: 1px solid var(--eme-border, #262B33);
    border-radius: 12px;
    margin-top: 1rem;
}

.eme-video-byline-area .eme-banner-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.eme-video-byline-area .eme-banner-title__banner-title {
    font-size: 1.35rem;
}

.eme-video-description {
    color: var(--eme-text-muted, #9CA3AF);
    line-height: 1.65;
    font-size: 0.925rem;
    margin-bottom: 1.25rem;
}

/* Video Tags & Categories (Pills) */

.eme-video__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.eme-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: var(--eme-accent-alpha-15, rgba(16, 185, 129, 0.15));
    border: 1px solid var(--eme-accent-alpha-30, rgba(16, 185, 129, 0.3));
    color: var(--theme-color, #10B981);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.eme-indicator:hover {
    background: var(--theme-color, #10B981);
    color: var(--eme-text-contrast, #ffffff);
    border-color: var(--theme-color, #10B981);
    box-shadow: 0 2px 8px var(--eme-accent-alpha-25, rgba(16, 185, 129, 0.25));
}

.eme-indicator svg {
    width: 14px;
    flex-shrink: 0;
    height: 14px;
}

/* ===== TIME FILTER BUTTONS ===== */

.eme-time-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.eme-time-finder-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    background: var(--eme-bg-secondary, #181B20);
    border: 1px solid var(--eme-border, #262B33);
    color: var(--eme-text-muted, #9CA3AF);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.eme-time-finder-cta:hover,
.eme-time-finder-cta.eme-active {
    background: var(--theme-color, #10B981);
    color: var(--eme-text-contrast, #ffffff);
    border-color: var(--theme-color, #10B981);
    box-shadow: 0 2px 10px var(--eme-accent-alpha-25, rgba(16, 185, 129, 0.25));
}

/* ===== AUTOCOMPLETE DROPDOWN ===== */

.eme-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--eme-bg-secondary, #181B20);
    border: 1px solid var(--eme-border, #262B33);
    border-radius: 12px;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 8px 24px var(--eme-shadow-card, rgba(0, 0, 0, 0.5));
}

.eme-autocomplete-dropdown a {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--eme-text-primary, #F3F4F6);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--eme-border, #262B33);
    transition: all 0.15s ease;
}

.eme-autocomplete-dropdown a:last-child {
    border-bottom: none;
}

.eme-autocomplete-dropdown a:hover {
    background: var(--eme-accent-alpha-15, rgba(16, 185, 129, 0.15));
    color: var(--theme-color, #10B981);
}

/* ===== FOOTER ===== */

#eme-emeFooter {
    background: var(--eme-bg-secondary, #181B20);
    border-top: 1px solid var(--eme-border, #262B33);
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
    color: var(--eme-text-muted, #9CA3AF);
    font-size: 0.875rem;
}

.eme-bottom-bar__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}

.eme-bottom-bar__bar a {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    background: var(--eme-bg-primary, #121417);
    border: 1px solid var(--eme-border, #262B33);
    color: var(--eme-text-muted, #9CA3AF);
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.eme-bottom-bar__bar a:hover {
    color: var(--theme-color, #10B981);
    border-color: var(--eme-accent-alpha-40, rgba(16, 185, 129, 0.4));
    background: var(--eme-accent-alpha-15, rgba(16, 185, 129, 0.15));
}

/* Footer Backlinks (SEO Pills) */

.eme-bottom-bar__backlinks {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--eme-border, #262B33);
    text-align: center;
}

.eme-bottom-bar__backlinks-queue {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.eme-bottom-bar__backlink-piece {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    background: var(--eme-bg-primary, #121417);
    border: 1px solid var(--eme-border, #262B33);
    color: var(--eme-text-muted, #9CA3AF);
    font-size: 0.775rem;
    transition: all 0.2s ease;
}

.eme-bottom-bar__backlink-piece:hover {
    color: var(--theme-color, #10B981);
    border-color: var(--theme-color, #10B981);
}

.eme-bottom-bar__text {
    text-align: center;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

.eme-bottom-bar__text p {
    margin-top: 0.5rem;
    font-size: 0.825rem;
    color: var(--eme-text-dim, #6B7280);
}

.eme-policy-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.eme-policy-bar a {
    color: var(--eme-text-muted, #9CA3AF);
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.eme-policy-bar a:hover {
    color: var(--theme-color, #10B981);
}

.eme-bottom-bar__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--eme-border, #262B33);
}

.eme-bottom-bar__copyright {
    font-size: 0.8rem;
    color: var(--eme-text-dim, #6B7280);
}

.eme-dmca-indicator {
    display: inline-block;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.eme-dmca-indicator:hover {
    opacity: 1;
}

/* ===== BACK TO TOP BUTTON ===== */

.eme-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-color, #10B981);
    color: var(--eme-text-contrast, #ffffff);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 16px var(--eme-accent-alpha-25, rgba(16, 185, 129, 0.25));
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s ease;
}

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

.eme-back-to-top:hover {
    background: var(--theme-color-hover, #059669);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--eme-accent-alpha-40, rgba(16, 185, 129, 0.4));
}

/* ===== 404 PAGE ===== */

.eme-error-404 {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--eme-bg-secondary, #181B20);
    border: 1px solid var(--eme-border, #262B33);
    border-radius: 12px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.eme-error-404 h1 {
    font-size: 5rem;
    font-weight: 800;
    color: var(--theme-color, #10B981);
    line-height: 1;
    margin-bottom: 1rem;
}

.eme-error-404 p {
    color: var(--eme-text-muted, #9CA3AF);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ===== UTILITIES ===== */

.eme-mt-4 {
    margin-top: 1rem;
}

.eme-mt-5 {
    margin-top: 1.5rem;
}

.eme-text-center {
    text-align: center;
}

.fv-header-banner,
.fv-footer-banner,
.fv-square-banner {
    text-align: center;
    margin: 1.25rem auto;
    overflow: hidden;
}

/* ===== POLICY & STATIC PAGES ===== */

.eme-policy {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.eme-policy-kicker {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--eme-text-primary, #F3F4F6);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eme-policy-kicker::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--theme-color, #10B981);
    border-radius: 9999px;
}

.eme-policy-panel {
    background: var(--eme-bg-secondary, #181B20);
    border: 1px solid var(--eme-border, #262B33);
    border-radius: 12px;
    padding: 2rem;
    color: var(--eme-text-muted, #9CA3AF);
    line-height: 1.7;
}

.eme-policy-panel h2 {
    color: var(--eme-text-primary, #F3F4F6);
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.eme-policy-panel p {
    margin-bottom: 1rem;
}

.eme-policy-panel a {
    color: var(--theme-color, #10B981);
    text-decoration: underline;
}

.eme-policy-panel a:hover {
    color: var(--theme-color-hover, #059669);
}

.eme-policy-panel ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.eme-policy-panel li {
    margin-bottom: 0.4rem;
}

/* Policy Table */

.eme-policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.eme-policy-table caption {
    text-align: left;
    font-size: 0.85rem;
    color: var(--eme-text-dim, #6B7280);
    margin-bottom: 0.5rem;
}

.eme-policy-table th,
.eme-policy-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--eme-border, #262B33);
}

.eme-policy-table th {
    background: var(--eme-bg-primary, #121417);
    color: var(--eme-text-primary, #F3F4F6);
    font-weight: 600;
}

.eme-policy-table tbody tr:nth-child(even) {
    background: var(--eme-text-alpha-10, rgba(255, 255, 255, 0.02));
}

.eme-policy-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--eme-bg-primary, #121417);
    border: 1px solid var(--eme-border, #262B33);
    border-radius: 8px;
}

.eme-policy-byline span {
    color: var(--eme-text-muted, #9CA3AF);
    font-size: 0.85rem;
}

.eme-policy-byline b {
    color: var(--theme-color, #10B981);
    margin-left: 0.25rem;
}

.eme-policy-note {
    font-size: 0.85rem;
    color: var(--eme-text-dim, #6B7280);
    margin-top: 1rem;
}

/* Policy Form */

.eme-policy-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
}

.eme-form-intro {
    font-size: 0.9rem;
    color: var(--eme-text-muted, #9CA3AF);
    margin-bottom: 0.5rem;
}

.eme-policy-form label {
    color: var(--eme-text-primary, #F3F4F6);
    font-weight: 600;
    font-size: 0.85rem;
}

.eme-policy-form input[type="text"],
.eme-policy-form input[type="email"],
.eme-policy-form input[type="url"],
.eme-policy-form select,
.eme-policy-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--eme-bg-primary, #121417);
    border: 1px solid var(--eme-border, #262B33);
    border-radius: 8px;
    color: var(--eme-text-primary, #F3F4F6);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.eme-policy-form input:focus,
.eme-policy-form select:focus,
.eme-policy-form textarea:focus {
    border-color: var(--theme-color, #10B981);
    box-shadow: 0 0 0 2px var(--eme-accent-alpha-25, rgba(16, 185, 129, 0.25));
    outline: none;
}

.eme-policy-form textarea {
    min-height: 120px;
    resize: vertical;
}

.eme-checkbox-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.eme-checkbox-indicator input[type="checkbox"] {
    accent-color: var(--theme-color, #10B981);
    height: 18px;
    width: 18px;
}

.eme-policy-form button[type="submit"] {
    align-self: flex-start;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    background: var(--theme-color, #10B981);
    color: var(--eme-text-contrast, #ffffff);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--eme-accent-alpha-25, rgba(16, 185, 129, 0.25));
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.eme-policy-form button[type="submit"]:hover {
    background: var(--theme-color-hover, #059669);
    transform: translateY(-1px);
}

.eme-form-status.eme-is-success {
    padding: 1rem;
    border-radius: 8px;
    background: var(--eme-accent-alpha-15, rgba(16, 185, 129, 0.15));
    border: 1px solid var(--theme-color, #10B981);
    color: var(--theme-color, #10B981);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Lucide Icon Base Styling */
.eme-lucide, [data-lucide] {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
}

.eme-piece .eme-piece__banner-title > * {
    margin: 0;
    font-size: inherit;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    color: inherit;
}
.eme-piece:hover .eme-piece__banner-title > * {
    color: var(--theme-color);
}
.eme-piece .eme-piece__labels > * {
    font-style: normal;
    font-weight: 700;
}
ul.eme-items, ul.eme-top-items__canvas {
    list-style: none;
    margin: 0;
    padding: 0;
}
main.eme-gallery__left, section.eme-gallery__left, aside.eme-gallery__right, nav.eme-gallery__right, section.eme-gallery__right {
    display: block;
}
.eme-text-block {
    margin-bottom: 16px;
}
.eme-text-block p {
    margin: 0;
}

.eme-policy-ref { display: block; margin-top: 16px; font-size: 11px; color: var(--eme-text-muted, #666); }
.category-content { color: var(--eme-text-muted, #9CA3AF); font-size: 0.9rem; line-height: 1.7; margin: 0 0 1.25rem; }
