.ep-auth-card{max-width:520px;margin:2.5rem auto;background:#fff;border:1px solid #eadfd7;border-radius:18px;padding:1.75rem;box-shadow:0 10px 30px rgba(31,25,22,.06)}
.ep-auth-card .hidden{display:none!important}
.ep-auth-card .modal-content{padding:0}
.ep-auth-card .flex{display:flex}
.ep-auth-card .inline-flex{display:inline-flex}
.ep-auth-card .flex-col{flex-direction:column}
.ep-auth-card .flex-shrink-0{flex-shrink:0}
.ep-auth-card .justify-between{justify-content:space-between}
.ep-auth-card .justify-center{justify-content:center}
.ep-auth-card .items-center{align-items:center}
.ep-auth-card .items-start{align-items:flex-start}
.ep-auth-card .gap-1{gap:.25rem}
.ep-auth-card .gap-2{gap:.5rem}
.ep-auth-card .gap-3{gap:.75rem}
.ep-auth-card .space-y-4>*+*{margin-top:1rem}
.ep-auth-card .block{display:block}
.ep-auth-card .mb-1{margin-bottom:.25rem}
.ep-auth-card .mb-4{margin-bottom:1rem}
.ep-auth-card .mt-1{margin-top:.25rem}
.ep-auth-card .mt-4{margin-top:1rem}
.ep-auth-card .mt-6{margin-top:1.5rem}
.ep-auth-card .p-2{padding:.5rem}
.ep-auth-card .p-3{padding:.75rem}
.ep-auth-card .py-2{padding-top:.5rem;padding-bottom:.5rem}
.ep-auth-card .min-h-\[44px\]{min-height:44px}
.ep-auth-card .min-w-\[44px\]{min-width:44px}
.ep-auth-card .cursor-pointer{cursor:pointer}
.ep-auth-card h3{margin:0;font-family:'Playfair Display',Georgia,serif;font-size:1.25rem;font-weight:700;color:#1f1916}
.ep-auth-card label{font-size:.875rem;font-weight:600;color:#5c4f48}
.ep-auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),.ep-auth-card textarea,.ep-auth-card select{width:100%;box-sizing:border-box;border:1px solid #eadfd7;border-radius:10px;padding:.7rem .85rem;background:#fff;color:#1f1916;font-size:.95rem;transition:border-color .15s ease,box-shadow .15s ease}
.ep-auth-card input:not([type="checkbox"]):focus,.ep-auth-card textarea:focus,.ep-auth-card select:focus{outline:none;border-color:#e85d2a;box-shadow:0 0 0 3px rgba(232,93,42,.15)}
.ep-auth-card input[type="checkbox"]{width:16px;height:16px;margin:.2rem 0 0;accent-color:#e85d2a;cursor:pointer;flex-shrink:0}
.ep-auth-card button[type=submit],.ep-auth-card .ep-auth-btn{background:#e85d2a;color:#fff;border:0;border-radius:999px;padding:.65rem 1.4rem;font-weight:700;font-size:.9rem;cursor:pointer;transition:background .15s ease}
.ep-auth-card button[type=submit]:hover,.ep-auth-card .ep-auth-btn:hover{background:#cf4c1c}
.ep-auth-card a{color:#cf4c1c;text-decoration:none;transition:color .15s ease}
.ep-auth-card a.underline{text-decoration:underline;text-underline-offset:2px}
.ep-auth-card a:hover{color:#b54016}
.ep-auth-card a#cancel-login,.ep-auth-card a#cancel-register,.ep-auth-card a.border{border:1px solid #dfd2c8;border-radius:999px;color:#5c4f48;background:#fbf9f6;padding:.65rem 1.2rem;font-size:.9rem;font-weight:600}
.ep-auth-card a#cancel-login:hover,.ep-auth-card a#cancel-register:hover,.ep-auth-card a.border:hover{background:#ede4dc;color:#1f1916}
.ep-auth-card a[aria-label]{font-size:1.5rem;line-height:1;color:#8a7970}
.ep-auth-card a[aria-label]:hover{color:#1f1916}
.ep-auth-card .bg-green-50{background:#fff4ee;border:1px solid #e85d2a;color:#9a3412!important;border-radius:10px;padding:.75rem 1rem;font-size:.875rem;font-weight:600}
.ep-auth-card .bg-red-50{background:#fef2f2;border:1px solid #dc2626;color:#b91c1c!important;border-radius:10px;padding:.75rem 1rem;font-size:.875rem;font-weight:600}
.ep-auth-card .bg-red-50 ul{margin:.35rem 0 0 1.15rem;padding:0;list-style:disc;font-size:.82rem;font-weight:500;color:#b91c1c!important}
.ep-auth-card .text-xs{font-size:.82rem;font-weight:600;color:#dc2626}
.ep-auth-card .text-sm{font-size:.875rem;color:#5c4f48}
.ep-auth-card input[aria-invalid="true"]{border-color:#dc2626!important;background:#fff5f5}
@media (min-width:640px){.ep-auth-card .sm\:flex-row{flex-direction:row}.ep-auth-card .sm\:items-center{align-items:center}.ep-auth-card .sm\:justify-between{justify-content:space-between}}
.ep-legal{max-width:860px;margin:2rem auto;background:#fff;border:1px solid #eadfd7;border-radius:18px;padding:1.6rem}
.ep-legal h1,.ep-legal h2{color:#1f1916}
.ep-error{min-height:60vh;display:flex;align-items:center;justify-content:center}
.ep-error-card{max-width:460px;background:#fff;border:1px solid #eadfd7;border-radius:18px;padding:2rem;text-align:center}
.ep-error-card a{display:inline-block;margin-top:1rem;background:#e85d2a;color:#fff;border-radius:999px;padding:.7rem 1.2rem;text-decoration:none}

/* ==========================================================================
   Pecado.top - Terracotta Orange & Warm Cream Theme (es_portal)
   Visual Identity & Palette directly referenced from index_2.png:
   - Base: Warm soothing off-white / ecru (#fbf9f6, #fbf9f6)
   - Cards: Pure white (#ffffff) with soft organic borders (#eadfd7)
   - Accent: Elegant Natural Sage / Matcha Green (#e85d2a, #cf4c1c)
   - Top Categories: Warm creamy oatmeal chips (#f6f1eb, #ede4dc)
   - Rank Badges: Authentic pastel hues (#1 peach, #2 slate blue, #3 clay, #4 periwinkle, #5 rose)
   - Typography: Editorial Serif Headings (Playfair Display / Georgia) + Clean Modern Sans
   ========================================================================== */

:root {
    /* Backgrounds & Surfaces */
    --bg-main: #fbf9f6;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f6f1eb;
    --bg-surface-hover: #ede4dc;
    
    /* Borders & Dividers */
    --border-color: #eadfd7;
    --border-light: #f2e9e2;
    --border-focus: #e85d2a;
    
    /* Text Hierarchy */
    --text-primary: #1f1916;
    --text-secondary: #5c4f48;
    --text-muted: #8a7970;
    --text-chip: #6b5a50;
    
    /* Brand Accent Colors (Match index_2.png active pills & CTA buttons) */
    --primary-orange: #e85d2a;
    --primary-orange-hover: #cf4c1c;
    --primary-orange-light: #fff1eb;
    --primary-orange-border: #f3c4b0;
    --primary-orange-dark: #b54016;
    
    /* Pastel Rank Badge Palette (index_2.png Top 1 to 5) */
    --rank-1-bg: #f5dfc6; --rank-1-text: #845227;
    --rank-2-bg: #dbe4eb; --rank-2-text: #425a6f;
    --rank-3-bg: #edd8c9; --rank-3-text: #784e36;
    --rank-4-bg: #dee3ed; --rank-4-text: #475772;
    --rank-5-bg: #f4d4d0; --rank-5-text: #844b46;
    
    /* Accent Star & Tags */
    --accent-star: #d89f38;
    --tag-bg: #f8f2ec;
    --tag-border: #eadfd7;
    --tag-text: #6b5a50;
    --badge-nouveau-bg: rgba(31, 25, 22, 0.78);
    
    /* Elevation & Shadows */
    --shadow-sm: 0 1px 3px rgba(31, 25, 22, 0.03);
    --shadow-md: 0 4px 14px rgba(31, 25, 22, 0.05);
    --shadow-lg: 0 10px 28px rgba(31, 25, 22, 0.07);
    
    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;
    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

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

/* --------------------------------------------------------------------------
   Layout Containers
   -------------------------------------------------------------------------- */
.ep-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Header Navigation (Warm Clean White & Editorial Brand)
   -------------------------------------------------------------------------- */
.ep-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.ep-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 1.5rem;
}

.ep-logo-area {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
}

.ep-brand-name {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ep-brand-sprout {
    font-size: 1.25rem;
    line-height: 1;
}

.ep-brand-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.35rem;
}

@media (max-width: 640px) {
    .ep-brand-sub { display: none; }
}

.ep-search-wrap {
    flex: 1;
    max-width: 520px;
    position: relative;
    display: flex;
    align-items: center;
}

.ep-search-input {
    width: 100%;
    background: #fdfdfc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.65rem 2.75rem 0.65rem 2.75rem;
    font-size: 0.92rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.ep-search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(232, 93, 42, 0.16);
}

.ep-search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.ep-search-filter-icon {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.15s;
}

.ep-search-filter-icon:hover {
    color: var(--primary-orange);
}

.ep-nav-list {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
}

@media (max-width: 900px) {
    .ep-nav-list { display: none; }
}

.ep-nav-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s;
}

.ep-nav-link:hover {
    color: var(--primary-orange);
    background-color: var(--bg-surface-alt);
}

.ep-nav-link.active {
    color: var(--primary-orange-dark);
    background-color: var(--primary-orange-light);
    font-weight: 700;
}

.ep-auth-btn {
    background: var(--primary-orange);
    color: #ffffff !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(232, 93, 42, 0.25);
}

.ep-auth-btn:hover {
    background: var(--primary-orange-hover);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Top Quick Category Cards (index_2.png BD & Manga, Vidéos, etc.)
   -------------------------------------------------------------------------- */
.ep-quick-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (max-width: 900px) {
    .ep-quick-categories { grid-template-columns: repeat(2, 1fr); }
}

.ep-cat-card {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.ep-cat-card:hover {
    background: var(--bg-surface-hover);
    border-color: var(--primary-orange-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.ep-cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eadfd7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ep-cat-text {
    display: flex;
    flex-direction: column;
}

.ep-cat-title {
    font-family: var(--font-serif);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.ep-cat-sub {
    font-size: 0.76rem;
    color: var(--text-chip);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   Hero Banner / À la une (index_2.png Dark Cinematic Card)
   -------------------------------------------------------------------------- */
.ep-hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #241914 0%, #36231a 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ep-hero-inner {
    padding: 2.5rem 2rem;
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.ep-hero-tag {
    display: inline-block;
    background: rgba(232, 93, 42, 0.92);
    color: #fff5ef;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.85rem;
}

.ep-hero-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.65rem;
    color: #ffffff;
}

.ep-hero-desc {
    font-size: 0.9rem;
    color: #f5dfd4;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.ep-hero-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ep-hero-chip {
    background: rgba(255, 255, 255, 0.14);
    color: #fff5ef;
    font-size: 0.78rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

/* --------------------------------------------------------------------------
   Top Rankings / Top heute (index_2.png Top 1 to 5 with Pastel Badges)
   -------------------------------------------------------------------------- */
.ep-hot-section {
    margin-bottom: 2.25rem;
}

.ep-hot-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.15rem;
}

.ep-hot-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ep-see-all {
    color: var(--primary-orange);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.ep-see-all:hover {
    color: var(--primary-orange-hover);
    text-decoration: underline;
}

.ep-hot-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.15rem;
}

@media (max-width: 1024px) {
    .ep-hot-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .ep-hot-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.75rem;
        gap: 0.85rem;
        scroll-snap-type: x mandatory;
    }
    .ep-hot-card {
        min-width: 160px;
        scroll-snap-align: start;
    }
}

.ep-hot-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.ep-hot-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange-border);
}

/* Rank Number Badge (index_2.png style) */
.ep-hot-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.ep-hot-rank.rank-1 { background: var(--rank-1-bg); color: var(--rank-1-text); }
.ep-hot-rank.rank-2 { background: var(--rank-2-bg); color: var(--rank-2-text); }
.ep-hot-rank.rank-3 { background: var(--rank-3-bg); color: var(--rank-3-text); }
.ep-hot-rank.rank-4 { background: var(--rank-4-bg); color: var(--rank-4-text); }
.ep-hot-rank.rank-5 { background: var(--rank-5-bg); color: var(--rank-5-text); }

.ep-hot-thumb-wrap {
    width: 100%;
    padding-top: 135%;
    position: relative;
    background: #ede4dc;
}

.ep-hot-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep-hot-info {
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.ep-hot-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.ep-hot-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.ep-hot-card-cat {
    display: inline-block;
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    width: fit-content;
}

/* --------------------------------------------------------------------------
   Section Header & Category Filter Pills (index_2.png Nouveautés)
   -------------------------------------------------------------------------- */
.ep-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ep-section-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ep-filter-pills {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ep-pill {
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.15s ease;
}

.ep-pill:hover {
    background: var(--bg-surface-alt);
    color: var(--primary-orange);
}

.ep-pill.active {
    background: var(--primary-orange);
    color: #ffffff;
    border-color: var(--primary-orange);
    box-shadow: 0 2px 6px rgba(232, 93, 42, 0.25);
}

/* --------------------------------------------------------------------------
   Main Works Grid & Cards (Natural White with Warm Borders)
   -------------------------------------------------------------------------- */
.ep-work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 1200px) {
    .ep-work-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .ep-work-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .ep-work-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
}

.ep-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.ep-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange-border);
}

.ep-card-cover {
    width: 100%;
    padding-top: 135%;
    position: relative;
    background: #ede4dc;
    display: block;
    overflow: hidden;
}

.ep-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ep-card:hover .ep-card-img {
    transform: scale(1.03);
}

/* NOUVEAU / NEU Badge on Card (index_2.png) */
.ep-card-badge-neu {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--badge-nouveau-bg);
    color: #f7f6f2;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(2px);
    z-index: 2;
}

.ep-card-pages-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(31, 25, 22, 0.75);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
}

.ep-card-body {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.ep-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.45rem;
    text-decoration: none;
}

.ep-card-cat-badge {
    display: inline-block;
    background: var(--tag-bg);
    color: var(--tag-text);
    border: 1px solid var(--tag-border);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.ep-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ep-card-stats {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ep-card-rating {
    color: var(--accent-star);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Bottom Callout Banner (index_2.png Explorez plus selon vos goûts)
   -------------------------------------------------------------------------- */
.ep-bottom-cta {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.ep-bottom-cta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ep-bottom-cta-icon {
    font-size: 2rem;
    line-height: 1;
}

.ep-bottom-cta-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.ep-bottom-cta-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ep-bottom-cta-btn {
    background: var(--primary-orange);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(232, 93, 42, 0.25);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ep-bottom-cta-btn:hover {
    background: var(--primary-orange-hover);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Pagination (Natural Sage Theme)
   -------------------------------------------------------------------------- */
.ep-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin: 2rem 0;
}

.ep-page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ep-page-item:hover:not(.disabled):not(.active) {
    border-color: var(--primary-orange-border);
    color: var(--primary-orange);
    background: var(--bg-surface-alt);
}

.ep-page-item.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: #ffffff;
    font-weight: 700;
}

.ep-page-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Detail & Reader Components (Buttons, Tables, Sprites)
   -------------------------------------------------------------------------- */
.ep-detail-wrap {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 850px) {
    .ep-detail-wrap { grid-template-columns: 1fr; }
}

.ep-detail-cover {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.ep-detail-title {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.ep-action-btns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.25rem 0;
}

.ep-btn-primary {
    background: var(--primary-orange);
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 3px 6px rgba(232, 93, 42, 0.25);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.ep-btn-primary:hover {
    background: var(--primary-orange-hover);
}

.ep-btn-outline {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ep-btn-outline:hover {
    background: var(--bg-surface-alt);
    border-color: var(--primary-orange-border);
    color: var(--primary-orange);
}

.ep-detail-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.88rem;
}

.ep-detail-meta-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.ep-detail-meta-table td:first-child {
    width: 140px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Detail Page Preview Thumbnails */
.ep-thumb-scroll-wrap {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.ep-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 200px);
    justify-content: center;
    gap: 1.25rem;
    margin: 0 auto;
}

.ep-comic-thumb {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    background-color: #f6efe8;
}

.ep-comic-thumb:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange);
}

.ep-comic-thumb-page {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(31, 25, 22, 0.78);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    pointer-events: none;
}

/* Reader Navigation Controls */
.ep-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-orange-dark);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ep-page-btn:hover:not(.disabled) {
    background-color: var(--bg-surface-alt);
    border-color: var(--primary-orange-border);
    color: var(--primary-orange-dark);
}

.ep-page-btn.primary {
    background-color: var(--primary-orange);
    color: #ffffff;
    border-color: var(--primary-orange);
}

.ep-page-btn.primary:hover:not(.disabled) {
    background-color: var(--primary-orange-hover);
    border-color: var(--primary-orange-hover);
    color: #ffffff;
}

.ep-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    border-color: var(--border-light);
    color: var(--text-muted);
}

.ep-page-select {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.ep-page-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 2px rgba(232, 93, 42, 0.16);
}

/* Search & Filter Component Styles */
.ep-search-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.ep-search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .ep-search-form { flex-direction: column; }
}

.ep-search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.ep-search-input-wrap input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    background: #fdfdfc;
    outline: none;
    transition: all 0.2s ease;
}

.ep-search-input-wrap input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(232, 93, 42, 0.16);
    background: #ffffff;
}

.ep-search-input-wrap .ep-input-icon {
    position: absolute;
    left: 0.9rem;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.ep-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 0.5rem;
}

.ep-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.15s ease;
}

.ep-chip:hover {
    background: var(--bg-surface-alt);
    border-color: var(--primary-orange-border);
    color: var(--primary-orange);
}

.ep-chip.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(232, 93, 42, 0.25);
}

.ep-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.ep-sort-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.ep-sort-btn {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ep-sort-btn:hover {
    color: var(--primary-orange);
    background: var(--bg-surface-alt);
}

.ep-sort-btn.active {
    color: var(--primary-orange-dark);
    background: var(--primary-orange-light);
    border-color: var(--primary-orange-border);
    font-weight: 700;
}

.ep-sort-select-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.ep-sort-select {
    appearance: none;
    min-width: 11rem;
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235f655b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.ep-sort-select:focus {
    outline: 2px solid var(--primary-orange-light);
    border-color: var(--primary-orange);
}

/* --------------------------------------------------------------------------
   Age Verification Gate Modal (Warm Cream Theme)
   -------------------------------------------------------------------------- */
#age-verify-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(31, 25, 22, 0.65);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ep-age-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 460px;
    width: 100%;
    padding: 2.25rem 2rem;
    text-align: center;
}

.ep-age-icon {
    width: 58px;
    height: 58px;
    background: #fbeee8;
    color: #b24838;
    font-size: 1.65rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.15rem;
}

.ep-age-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.ep-age-body {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
    line-height: 1.55;
}

.ep-age-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.ep-age-btn-accept {
    background: var(--primary-orange);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(232, 93, 42, 0.25);
}

.ep-age-btn-accept:hover {
    background: var(--primary-orange-hover);
}

.ep-age-btn-deny {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Footer (Organic Oatmeal & Clean Links)
   -------------------------------------------------------------------------- */
.ep-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.ep-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .ep-footer-grid { grid-template-columns: 1fr; }
}

.ep-footer-brand h4 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ep-footer-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 440px;
}

.ep-footer-col h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.85rem;
}

.ep-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ep-footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.ep-footer-links a:hover {
    color: var(--primary-orange);
}

.ep-footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* --------------------------------------------------------------------------
   German Portal - Detail Page 4-Column Kokoro Design System (1:1 Feature Parity)
   -------------------------------------------------------------------------- */
.ep-detail-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ep-title-box {
    grid-column: span 12;
    margin-bottom: 0.5rem;
}

.ep-title-main {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.ep-title-sub {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 0.85rem;
}

.ep-title-divider {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: 0.85rem 0 1.25rem 0;
    width: 100%;
}

/* 4 Columns Layout */
.ep-col-cover {
    grid-column: span 2;
}

.ep-col-meta {
    grid-column: span 3;
}

.ep-col-tags {
    grid-column: span 5;
}

.ep-col-actions {
    grid-column: span 2;
}

@media (max-width: 1200px) and (min-width: 851px) {
    .ep-col-cover { grid-column: span 3; }
    .ep-col-meta { grid-column: span 4; }
    .ep-col-tags { grid-column: span 5; }
    .ep-col-actions { grid-column: span 12; }
}

@media (max-width: 850px) {
    .ep-col-cover { grid-column: span 12; text-align: center; }
    .ep-col-meta { grid-column: span 12; }
    .ep-col-tags { grid-column: span 12; }
    .ep-col-actions { grid-column: span 12; }
}

/* Detail Card Boxes */
.ep-detail-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.ep-card-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Cover Image */
.ep-comic-cover-wrap {
    width: 180px;
    height: 256px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(31, 25, 22, 0.12);
    border: 1px solid var(--border-color);
}

.ep-comic-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Metadata Rows */
.ep-meta-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.82rem;
}

.ep-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px dashed var(--border-light);
}

.ep-meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ep-meta-lbl {
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.ep-meta-val {
    color: var(--text-primary);
    text-align: right;
    font-weight: 500;
}

/* Interactive Star Rating */
.ep-star-rating {
    display: flex;
    gap: 4px;
    cursor: pointer;
}

.ep-star {
    font-size: 1.25rem;
    color: #ded7cc;
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
}

.ep-star.filled {
    color: #d99b38;
}

.ep-star:hover {
    transform: scale(1.15);
}

/* Tags Column */
.ep-tag-scroll {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-right: 0.35rem;
}

.ep-tag-scroll.expanded {
    max-height: 70vh;
}

.ep-tag-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.ep-tag-type-key {
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 58px;
    color: var(--text-muted);
    padding-top: 2px;
    flex-shrink: 0;
}

.ep-tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    flex: 1;
}

.ep-tag-chip {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
}

.ep-tag-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.ep-tag-chip.selected {
    background: var(--primary-orange) !important;
    color: #ffffff !important;
    border-color: var(--primary-orange-dark) !important;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(232, 93, 42, 0.3);
}

.ep-selected-tag-container {
    background-color: var(--bg-surface-alt);
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    margin-top: 0.85rem;
    min-height: 38px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.ep-sel-chip {
    background-color: var(--primary-orange);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ep-sel-remove {
    cursor: pointer;
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1;
}

.ep-toggle-tag-btn {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-orange-dark);
    background-color: var(--primary-orange-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ep-toggle-tag-btn:hover {
    background-color: var(--border-color);
}

/* Action Buttons Column */
.ep-btn-act {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    margin-bottom: 0.6rem;
}

.ep-btn-act-report {
    background-color: var(--bg-surface-alt);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.ep-btn-act-report:hover {
    background-color: var(--border-color);
}

.ep-btn-act-complaint {
    background-color: #f8f3ee;
    color: var(--text-primary);
    border: 1px solid #e4d3c8;
}

.ep-btn-act-complaint:hover {
    background-color: #f0e6dc;
}

.ep-btn-act-download {
    background-color: var(--primary-orange);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(232, 93, 42, 0.25);
}

.ep-btn-act-download:hover {
    background-color: var(--primary-orange-hover);
}

.ep-btn-act-fav {
    background-color: #889073;
    color: #ffffff;
}

.ep-btn-act-fav.favorited {
    background-color: var(--primary-orange-hover);
}

.ep-btn-act-share {
    background-color: #8a9ba8;
    color: #ffffff;
}

.ep-btn-act-share:hover {
    background-color: #728492;
}

/* Thumbnail Pagination & Grid */
.ep-thumb-pag-wrap {
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ep-thumb-pag-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.ep-thumb-pag-btn {
    display: inline-block;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    padding: 0.3rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.ep-thumb-pag-btn:hover:not(.disabled) {
    background-color: var(--border-color);
    color: var(--primary-orange-dark);
}

.ep-thumb-pag-btn.active {
    background-color: var(--primary-orange);
    color: #ffffff;
    border-color: var(--primary-orange);
}

.ep-thumb-pag-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.ep-thumb-jump-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ep-thumb-jump-input {
    width: 60px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    text-align: center;
    background-color: #ffffff;
    outline: none;
}

.ep-thumb-jump-btn {
    background-color: var(--primary-orange);
    color: #ffffff;
    border: none;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.ep-thumb-jump-btn:hover {
    background-color: var(--primary-orange-hover);
}

/* Sliced Thumbnails Grid (Exact 200px x 292px) */
.ep-thumbnail-board {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.ep-thumbnail-scroll {
    overflow-x: auto;
    width: 100%;
}

.ep-thumbnail-matrix {
    display: grid;
    grid-template-columns: repeat(5, 200px);
    justify-content: space-between;
    width: 100%;
    max-width: 1216px;
    column-gap: 1.5rem;
    row-gap: 1.75rem;
    margin: 0 auto;
}

@media (max-width: 1200px) and (min-width: 768px) {
    .ep-thumbnail-matrix {
        grid-template-columns: repeat(auto-fill, 200px);
        justify-content: center;
        gap: 1.25rem;
    }
}

@media (max-width: 767px) {
    .ep-thumbnail-matrix {
        grid-template-columns: repeat(2, 1fr);
        justify-content: space-evenly;
        gap: 0.75rem;
    }
    .comic-thumbnail {
        width: 100% !important;
        height: 220px !important;
        background-size: cover !important;
    }
}

.comic-thumbnail {
    width: 200px;
    height: 292px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background-repeat: no-repeat;
    background-color: #f6efe8;
    border: 1px solid var(--border-color);
    display: block;
}

.comic-thumbnail:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(31, 25, 22, 0.22);
    border-radius: 6px;
}

/* Related Works Grid */
.ep-related-section {
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.ep-related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .ep-related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .ep-related-grid { grid-template-columns: repeat(2, 1fr); }
}

.ep-related-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.ep-related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange);
}

.ep-related-card img {
    width: 100%;
    aspect-ratio: 250 / 188;
    object-fit: cover;
    display: block;
}

.ep-related-card-title {
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Comments Section */
.ep-comment-box {
    margin-bottom: 3rem;
}

.ep-comment-form {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.ep-comment-textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.88rem;
    font-family: inherit;
    resize: none;
    height: 90px;
    outline: none;
    transition: border-color 0.2s ease;
    background-color: var(--bg-main);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.ep-comment-textarea:focus {
    border-color: var(--primary-orange);
    background-color: #ffffff;
}

.ep-comment-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.ep-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.ep-comment-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ep-avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    background-color: var(--primary-orange);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
}

/* Modals */
.ep-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(31, 25, 22, 0.55);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.ep-modal-overlay.active {
    display: flex;
}

.ep-modal-window {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.ep-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.ep-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.ep-modal-close:hover {
    color: var(--text-primary);
}

/* Toast */
.ep-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #23271f;
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}

.ep-toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   DOWNLOAD PACKAGING & STREAMING PIPELINE (es_portal)
   Terracotta Orange & Warm Cream Aesthetic (pecado.top)
   ========================================================================== */

.ep-dl-advisory-banner {
    background-color: #faf5ed;
    border: 1px solid #ebd9c5;
    color: #8c582f;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.825rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.ep-dl-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.ep-dl-breadcrumb a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
}
.ep-dl-breadcrumb a:hover {
    text-decoration: underline;
}
.ep-dl-breadcrumb .ep-sep {
    color: #c7beaf;
}
.ep-dl-breadcrumb .ep-current {
    color: var(--text-primary);
    font-weight: 700;
}

.ep-dl-page-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
@media (min-width: 640px) {
    .ep-dl-page-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.ep-dl-main-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}
.ep-dl-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}
.ep-dl-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    background: #f6f1eb;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.ep-dl-back-btn:hover {
    background: #eae6da;
    color: var(--text-primary);
}

/* Manga Overview Card */
.ep-dl-manga-card {
    display: flex;
    gap: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.ep-dl-manga-cover {
    width: 90px;
    height: 128px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #ece8de;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}
.ep-dl-manga-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ep-dl-manga-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ep-dl-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.ep-dl-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}
.ep-pill-cat {
    background: #f5dfc6;
    color: #845227;
}
.ep-pill-info {
    background: #f6f1eb;
    color: #6b5a50;
    border: 1px solid #eadfd7;
}
.ep-pill-sage {
    background: #fff1eb;
    color: #4a5438;
    border: 1px solid #dbe4ce;
}
.ep-dl-manga-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    line-height: 1.35;
}
.ep-dl-manga-alt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Packaging Task Card */
.ep-dl-task-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.ep-dl-task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}
.ep-dl-task-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ep-dl-task-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff1eb;
    color: #5c634a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ep-dl-task-icon svg {
    width: 22px;
    height: 22px;
}
.ep-dl-task-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.ep-dl-task-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Status Pill */
.ep-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}
.ep-status-pill.status-processing {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.ep-status-pill.status-queued {
    background: #f0edf5;
    color: #5a486e;
    border: 1px solid #ddd7e8;
}
.ep-status-pill.status-ready {
    background: #fff1eb;
    color: #e85d2a;
    border: 1px solid #c8ddb5;
}
.ep-status-pill.status-failed {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.ep-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: epPulse 1.8s infinite ease-in-out;
}
@keyframes epPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Progress Hero */
.ep-dl-progress-hero {
    background: #fbf9f6;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.ep-dl-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.ep-dl-stage-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.ep-dl-stage-badge {
    background: var(--primary-orange);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.ep-dl-stage-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ep-dl-percent {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-orange);
    flex-shrink: 0;
}

.ep-progress-track {
    width: 100%;
    height: 12px;
    background: #eae5d9;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.75rem;
}
.ep-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e85d2a, #f38a5e);
    border-radius: 999px;
    transition: width 0.4s ease;
    position: relative;
    overflow: hidden;
}
.ep-progress-bar.completed {
    background: #e85d2a;
}
.ep-progress-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    animation: epShimmer 2s infinite linear;
}
@keyframes epShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ep-dl-milestones {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* 4-Stage Stepper Grid */
.ep-stepper-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
    .ep-stepper-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .ep-stepper-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.ep-step-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: #fbf9f6;
    border: 1px solid var(--border-light);
    transition: all 0.25s ease;
}
.ep-step-card.active {
    background: #fff1eb;
    border-color: #f3c4b0;
}
.ep-step-card.completed {
    background: #fff3ec;
    border-color: #f5cab5;
}
.ep-step-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2ddd3;
    color: #665f54;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ep-step-card.active .ep-step-badge {
    background: var(--primary-orange);
    color: #ffffff;
}
.ep-step-card.completed .ep-step-badge {
    background: #e85d2a;
    color: #ffffff;
}
.ep-step-content {
    min-width: 0;
}
.ep-step-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}
.ep-step-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.2;
}

/* In-Page Alert Banner */
.ep-alert-box {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}
.ep-alert-box.alert-warning {
    background: #fefce8;
    border: 1px solid #fef08a;
    color: #854d0e;
}
.ep-alert-box.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.ep-alert-box.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
.ep-alert-icon {
    font-size: 1.2rem;
    line-height: 1;
}
.ep-alert-body {
    flex: 1;
    min-width: 0;
}
.ep-alert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}
.ep-alert-title {
    font-weight: 700;
    font-size: 0.85rem;
}
.ep-alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
}
.ep-alert-close:hover {
    opacity: 1;
}
.ep-alert-msg {
    font-size: 0.8rem;
    line-height: 1.4;
}
.ep-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}
.ep-alert-action-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-alert-primary {
    background: #e85d2a;
    color: #ffffff;
}
.btn-alert-warning {
    background: #ca8a04;
    color: #ffffff;
}
.btn-alert-danger {
    background: #b91c1c;
    color: #ffffff;
}
.btn-alert-outline {
    background: #ffffff;
    border-color: #d1c9bf;
    color: #4a3b32;
}

/* Split Grid: Action Left & Terminal Right */
.ep-dl-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 900px) {
    .ep-dl-split-grid {
        grid-template-columns: 7fr 5fr;
    }
}

.ep-dl-action-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
}
.ep-turnstile-wrap {
    margin-bottom: 1rem;
}
.ep-turnstile-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}
.ep-dl-btn-area {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.ep-btn-dl-start,
.ep-btn-dl-ready {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.ep-btn-dl-start {
    background: var(--primary-orange);
    color: #ffffff;
}
.ep-btn-dl-start:hover:not(:disabled) {
    background: var(--primary-orange-hover);
}
.ep-btn-dl-start:disabled {
    background: #e6cfc4;
    cursor: not-allowed;
    opacity: 0.75;
}
.ep-btn-dl-ready {
    background: #e85d2a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(232, 93, 42, 0.25);
}
.ep-btn-dl-ready:hover {
    background: #cf4c1c;
    transform: translateY(-1px);
}
.ep-dl-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.76rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 0.75rem;
}

/* Live Terminal Console */
.ep-terminal-card {
    background: #1e241e;
    border: 1px solid #2f382f;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}
.ep-term-header {
    background: #161b16;
    padding: 0.5rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2b332b;
}
.ep-term-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ep-term-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.dot-red { background: #e06c75; }
.dot-yellow { background: #e5c07b; }
.dot-green { background: #98c379; }
.ep-term-title {
    margin-left: 0.5rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.72rem;
    color: #8c968c;
}
.ep-term-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(152, 195, 121, 0.15);
    color: #98c379;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}
.ep-term-live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #98c379;
    animation: epPulse 1.2s infinite;
}
.ep-terminal-body {
    padding: 0.85rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #abb2bf;
    overflow-y: auto;
    max-height: 240px;
    flex: 1;
}
.ep-terminal-line {
    word-break: break-all;
    margin-bottom: 0.25rem;
}
.ep-term-time {
    color: #5c6370;
}
.ep-term-msg.info { color: #61afef; }
.ep-term-msg.success { color: #98c379; font-weight: 600; }
.ep-term-msg.warning { color: #e5c07b; }
.ep-term-msg.danger { color: #e06c75; }

/* Download Instructions & Notes Card */
.ep-dl-notes-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.ep-dl-notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-light);
}
.ep-dl-notes-header h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.ep-dl-feedback-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f6f1eb;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.ep-dl-feedback-trigger:hover {
    background: #eadfd7;
    color: var(--text-primary);
}
.ep-dl-notes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .ep-dl-notes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.ep-dl-note-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.ep-dl-note-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff1eb;
    color: #e85d2a;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.ep-dl-note-content strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.ep-dl-note-content span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Modal Overlay & Dialog */
.ep-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 25, 22, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.ep-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.ep-modal-dialog {
    background: #ffffff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    padding: 1.5rem;
    box-shadow: 0 12px 36px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}
.ep-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.ep-modal-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}
.ep-modal-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}
.ep-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}
.ep-modal-close:hover {
    color: var(--text-primary);
}
.ep-form-group {
    margin-bottom: 1rem;
}
.ep-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}
.ep-form-input,
.ep-form-select,
.ep-form-textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fbf9f6;
    color: var(--text-primary);
    font-family: inherit;
    box-sizing: border-box;
}
.ep-form-input:focus,
.ep-form-select:focus,
.ep-form-textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: #ffffff;
}
.ep-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.25rem;
}
.ep-btn-modal-cancel {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #f6f1eb;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.ep-btn-modal-cancel:hover {
    background: #eadfd7;
}
.ep-btn-modal-submit {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    background: var(--primary-orange);
    border: none;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}
.ep-btn-modal-submit:hover {
    background: var(--primary-orange-hover);
}

.ep-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: epSpin 0.8s linear infinite;
}
@keyframes epSpin {
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   Pecado.top Enhancements: Announcement Banner, Brand Badge & Mobile Drawer
   ========================================================================== */
.ep-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e85d2a 0%, #cf4c1c 100%);
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(232, 93, 42, 0.28);
    flex-shrink: 0;
}

.ep-highlight-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #e85d2a 0%, #cf4c1c 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 0.95rem 1.35rem;
    margin: 1.25rem 0 1.25rem;
    box-shadow: 0 6px 18px rgba(232, 93, 42, 0.22);
}

.ep-highlight-box-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.ep-highlight-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.ep-highlight-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fffaf7;
}

.ep-highlight-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ffffff;
    color: #cf4c1c;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ep-highlight-cta:hover {
    background: #fff5ef;
    color: #b54016;
}

.ep-mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 1.15rem;
    cursor: pointer;
}

.ep-mobile-drawer {
    display: none;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem 1rem;
}

.ep-mobile-drawer.open {
    display: block;
}

.ep-mobile-drawer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ep-mobile-drawer-links a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: var(--bg-surface-alt);
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 600;
}

.ep-mobile-drawer-links a.active {
    background: var(--primary-orange-light);
    color: var(--primary-orange-dark);
}

@media (max-width: 900px) {
    .ep-mobile-menu-btn {
        display: inline-flex;
    }
    .ep-header-inner {
        gap: 0.75rem;
    }
}

/* ==========================================================================
   User Profile & Favorites Page (es_portal)
   ========================================================================== */
.ep-fav-shell { padding: 1.5rem 0 2.5rem; }
.ep-fav-profile {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.ep-fav-profile-left { display: flex; align-items: flex-start; gap: 1rem; min-width: 0; }
.ep-fav-avatar {
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--primary-orange); color: #ffffff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; font-weight: 800; flex-shrink: 0;
}
.ep-fav-username { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--text-primary); margin: 0 0 0.3rem; }
.ep-fav-meta-row { font-size: 0.875rem; color: var(--text-secondary); margin: 0.18rem 0; }
.ep-fav-logout-btn {
    background: var(--bg-surface-alt); color: var(--text-secondary);
    border: 1px solid var(--border-color); border-radius: 999px;
    padding: 0.45rem 1rem; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.ep-fav-logout-btn:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.ep-fav-tabs { display: flex; gap: 1rem; border-bottom: 1px solid var(--border-color); margin-bottom: 1.25rem; }
.ep-fav-tabs .tab-btn {
    background: transparent; border: 0; border-bottom: 2px solid transparent;
    padding: 0.55rem 0.25rem; font-size: 0.92rem; font-weight: 700;
    color: var(--text-muted); cursor: pointer;
}
.ep-fav-tabs .tab-btn.active { border-bottom-color: var(--primary-orange); color: var(--primary-orange-dark); }
.ep-fav-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 0.75rem; margin-bottom: 1rem;
}
.ep-fav-toolbar-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ep-fav-btn-danger {
    background: #ffffff; color: #b91c1c; border: 1px solid #ef4444;
    border-radius: 8px; padding: 0.45rem 0.9rem; font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.ep-fav-btn-danger:hover:not(:disabled) { background: #dc2626; color: #ffffff; }
.ep-fav-btn-danger:disabled { opacity: 0.45; cursor: not-allowed; }
.ep-fav-capacity {
    background: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); padding: 0.85rem 1rem; margin-bottom: 1.5rem;
}
.ep-fav-capacity-top { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.45rem; }
.ep-fav-capacity-track { height: 8px; border-radius: 999px; background: var(--bg-surface-alt); overflow: hidden; }
.ep-fav-capacity-bar { height: 100%; border-radius: 999px; background: var(--primary-orange); transition: width 0.25s ease; }
.ep-fav-capacity-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.4rem; }
.ep-fav-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; }
.ep-fav-del-btn {
    background: var(--bg-surface-alt); border: 1px solid var(--border-color); color: var(--text-secondary);
    border-radius: 6px; padding: 0.22rem 0.55rem; font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.ep-fav-del-btn:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.ep-fav-empty {
    text-align: center; padding: 3rem 1.5rem;
    background: var(--bg-surface); border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg); color: var(--text-muted);
}
.ep-fav-shell .hidden { display: none !important; }
.fav-full-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.fav-full-modal.show { display: flex; }
.ep-fav-modal-box { background: #ffffff; border-radius: 16px; padding: 1.75rem; text-align: center; max-width: 420px; width: 90%; box-shadow: var(--shadow-lg); }

/* === Ad Slot Containers (Banner 320x50 & Social Bar) === */
.site-ad-slot.site-ad-banner-320x50 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 1.15rem auto;
    overflow: hidden;
    box-sizing: border-box;
}
.site-ad-banner-320x50__inner {
    width: 320px;
    max-width: 100%;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}
.site-ad-banner-320x50.is-placeholder .site-ad-banner-320x50__inner {
    height: 50px;
    background: #fdf6f0;
    border: 1px dashed #ebd4c3;
    border-radius: 6px;
    color: #6e5a4f;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 0 0.5rem;
}
.site-ad-social-bar.is-placeholder {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9990;
    background: #fdf6f0;
    border: 1px dashed #e85d2a;
    color: #e85d2a;
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}
