/* ============================================================
   Rashtriya Sagar — ePaper  (epaper-legacy.css)
   Modern, sleek newspaper viewer + public pages.
   ============================================================ */

/* ── Base ─────────────────────────────────────────────────── */
body {
    font-family: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    background: #f0f2f5;
    color: #1a1a2e;
}

.ep-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.ep-body > .ep-footer { margin-top: auto; }

/* ── Logo ─────────────────────────────────────────────────── */
.ep-logo-wrap {
    padding: 10px 0 6px;
}
.ep-logo-wrap img {
    transition: opacity .15s;
}
.ep-logo-wrap img:hover { opacity: .85; }

/* ── Navbar ──────────────────────────────────────────────── */
.ep-navbar {
    background: linear-gradient(135deg, #0170bf 0%, #015a9e 100%);
    position: sticky;
    top: 0;
    z-index: 1071;
    box-shadow: 0 2px 10px rgba(1,112,191,.22);
}
.ep-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    gap: 12px;
}
.ep-nav-left {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ep-nav-left::-webkit-scrollbar { display: none; }

.ep-nav-brand {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 0;
    white-space: nowrap;
    letter-spacing: .3px;
}
.ep-nav-brand:hover { color: #fff; text-decoration: none; }

.ep-nav-sep {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,.25);
    margin: 0 12px 0 14px;
    flex-shrink: 0;
}

.ep-nav-link {
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 10px;
    white-space: nowrap;
    transition: color .12s;
}
.ep-nav-link:hover {
    color: #fff;
    text-decoration: none;
}

.ep-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ep-clock {
    color: rgba(255,255,255,.6);
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.ep-mainsite-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: rgba(255,255,255,.6);
    font-size: 12px;
    text-decoration: none;
    transition: color .15s;
}
.ep-mainsite-link:hover {
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   HOMEPAGE & CITY PAGE
   ============================================================ */

.ep-home {
    padding: 24px 0 40px;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.ep-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}
.ep-breadcrumb a {
    color: #0170bf;
    text-decoration: none;
    font-weight: 500;
}
.ep-breadcrumb a:hover { text-decoration: underline; }
.ep-breadcrumb span { color: #333; font-weight: 600; }

/* ── Calendar month picker ──────────────────────────────── */
.ep-month-bar {
    background: #fff;
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ep-cal-picker {
    position: relative;
}

.ep-cal-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #0170bf, #015a9e);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow .15s, transform .1s;
    box-shadow: 0 2px 8px rgba(1,112,191,.25);
}
.ep-cal-toggle:hover {
    box-shadow: 0 4px 14px rgba(1,112,191,.35);
    transform: translateY(-1px);
}
.ep-cal-toggle:active { transform: translateY(0); }
.ep-cal-caret {
    font-size: 11px;
    opacity: .75;
    transition: transform .2s;
}
.ep-cal-open ~ .ep-cal-toggle .ep-cal-caret,
.ep-cal-dropdown.ep-cal-open + .ep-cal-toggle .ep-cal-caret { transform: rotate(180deg); }

/* Dropdown panel */
.ep-cal-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1060;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.15), 0 1px 4px rgba(0,0,0,.08);
    padding: 16px;
    min-width: 280px;
    animation: ep-cal-fadein .15s ease;
}
.ep-cal-dropdown.ep-cal-open { display: block; }
@keyframes ep-cal-fadein {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Year row */
.ep-cal-year-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef0f3;
}
.ep-cal-yr-label {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    min-width: 60px;
    text-align: center;
}
.ep-cal-yr-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dde1e6;
    border-radius: 50%;
    background: #f8f9fb;
    color: #555;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .12s;
}
.ep-cal-yr-btn:hover:not(:disabled) {
    background: #0170bf;
    color: #fff;
    border-color: #0170bf;
}
.ep-cal-yr-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
}

/* Month grid — 4 columns × 3 rows */
.ep-cal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.ep-cal-month {
    position: relative;
    padding: 10px 4px;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    background: #fafbfc;
    color: #444;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all .12s;
}
.ep-cal-month:hover:not(:disabled):not(.ep-cal-month-active) {
    background: #e4eef7;
    border-color: #b8d4ed;
    color: #0170bf;
}
.ep-cal-month-active {
    background: #0170bf !important;
    color: #fff !important;
    border-color: #0170bf !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(1,112,191,.3);
}
.ep-cal-month-future {
    opacity: .35;
    cursor: not-allowed !important;
}
/* Green dot for months that have data */
.ep-cal-month-has::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
}
.ep-cal-month-active.ep-cal-month-has::after {
    background: #fff;
}

/* Legend */
.ep-cal-legend {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ep-cal-dot-has {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

/* ── City sections ──────────────────────────────────────── */
.ep-city-section {
    margin-bottom: 32px;
}
.ep-city-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0170bf;
}
.ep-city-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ep-city-name i { color: #0170bf; font-size: 16px; }
.ep-city-viewall {
    font-size: 13px;
    color: #0170bf;
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
    white-space: nowrap;
}
.ep-city-viewall:hover { color: #015a9e; text-decoration: none; }
.ep-city-count {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

/* ── Card grid ──────────────────────────────────────────── */
.ep-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}
.ep-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    transition: transform .2s ease, box-shadow .2s ease;
}
.ep-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    text-decoration: none;
    color: inherit;
}
.ep-card-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #e8ecf1;
}
.ep-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;   /* show newspaper masthead, not center-crop */
    display: block;
    transition: transform .3s ease;
}
.ep-card:hover .ep-card-img img {
    transform: scale(1.04);
}
.ep-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #bbb;
    font-size: 32px;
    background: linear-gradient(135deg, #e8ecf1, #d9dee5);
}
.ep-card-date {
    padding: 8px 10px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    background: linear-gradient(135deg, #0170bf, #015a9e);
    color: #fff;
}
.ep-card-day {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}
.ep-card-month {
    font-size: 11px;
    font-weight: 500;
    opacity: .9;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ── Empty state ────────────────────────────────────────── */
.ep-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ep-empty-state i {
    font-size: 48px;
    color: #ccc;
    display: block;
    margin-bottom: 16px;
}
.ep-empty-state p {
    font-size: 15px;
    margin: 0;
}

/* ============================================================
   VIEWER  (/epaper/view)
   ============================================================ */

.epv-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #0170bf, #015a9e);
    color: #fff;
    padding: 10px 24px;
    gap: 8px;
    font-size: 14px;
}
.epv-bar-left  { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.epv-bar-right { display: flex; align-items: center; gap: 8px; }

.epv-back {
    color: rgba(255,255,255,.9);
    text-decoration: none;
    font-size: 13px;
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 6px;
    transition: all .15s;
    font-weight: 500;
}
.epv-back:hover { background: rgba(255,255,255,.15); color: #fff; }

.epv-city {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .3px;
}
.epv-sep  { color: rgba(255,255,255,.4); }
.epv-date { color: rgba(255,255,255,.85); }

/* ── Stage ──────────────────────────────────────────────── */
.epv-stage {
    position: relative;
    background: linear-gradient(180deg, #e8ecf1 0%, #d4d9e0 100%);
    min-height: 80vh;
    padding: 20px 8px 32px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.epv-imgwrap {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}
.epv-imgwrap img {
    width: 80vw;
    height: auto;
    display: block;
    background: #fff;
    box-shadow:
        0 2px 6px rgba(0,0,0,.08),
        0 12px 32px rgba(0,0,0,.18),
        0 32px 80px rgba(0,0,0,.12);
    border-radius: 3px;
    transition: opacity .2s ease, transform .3s ease;
}

/* Page-turn animation */
.epv-imgwrap img.epv-exit-left  { opacity: 0; transform: translateX(-40px) scale(.98); }
.epv-imgwrap img.epv-exit-right { opacity: 0; transform: translateX(40px) scale(.98); }
.epv-imgwrap img.epv-enter-left  { animation: epv-slide-from-left .3s ease forwards; }
.epv-imgwrap img.epv-enter-right { animation: epv-slide-from-right .3s ease forwards; }
@keyframes epv-slide-from-left {
    from { opacity: 0; transform: translateX(-40px) scale(.98); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes epv-slide-from-right {
    from { opacity: 0; transform: translateX(40px) scale(.98); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* Side arrows */
.epv-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: #0170bf;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s, background .15s, color .15s;
    z-index: 1050;
    user-select: none;
    backdrop-filter: blur(4px);
}
.epv-arrow-left  { left: 18px; }
.epv-arrow-right { right: 18px; }
.epv-arrow:hover:not(:disabled) {
    background: #0170bf;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}
.epv-arrow:active:not(:disabled) {
    transform: translateY(-50%) scale(.94);
}
.epv-arrow:disabled {
    opacity: .3;
    cursor: not-allowed;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* Spinner */
.epv-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    border: 4px solid rgba(1,112,191,.15);
    border-top-color: #0170bf;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: epv-spin .9s linear infinite;
    pointer-events: none;
}
@keyframes epv-spin {
    to { transform: translate(-50%,-50%) rotate(360deg); }
}

/* ── Pagination bar ─────────────────────────────────────── */
.epv-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 18px;
    background: #fff;
    border-top: 1px solid #e4e8ec;
    border-bottom: 1px solid #e4e8ec;
}

.epv-pgbtn {
    background: #0170bf;
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    transition: background .15s;
}
.epv-pgbtn:hover:not(:disabled) { background: #015a9e; }
.epv-pgbtn:disabled {
    background: #c4d8ea;
    cursor: not-allowed;
}

.epv-counter {
    font-size: 14px;
    color: #555;
    padding: 0 6px;
    white-space: nowrap;
}
.epv-counter strong {
    color: #0170bf;
    font-weight: 700;
    font-size: 17px;
}
.epv-counter-sep { color: #bbb; margin: 0 4px; }

/* Segmented page numbers */
.epv-pgnums {
    display: inline-flex;
    flex-wrap: wrap;
    background: #f8f9fb;
    border: 1px solid #d0d5dc;
    border-radius: 6px;
    overflow: hidden;
}

.epv-pgnum {
    min-width: 36px;
    height: 32px;
    background: #f8f9fb;
    border: none;
    border-right: 1px solid #d0d5dc;
    border-radius: 0;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    transition: background .12s, color .12s;
    padding: 0 10px;
    font-weight: 500;
}
.epv-pgnum:last-child { border-right: none; }
.epv-pgnum:hover { background: #e4eef7; color: #0170bf; }
.epv-pgnum-active {
    background: #0170bf !important;
    color: #fff !important;
    font-weight: 700;
    border-right-color: rgba(255,255,255,.3) !important;
}

/* ── Thumbnail strip ────────────────────────────────────── */
.epv-thumbs-wrap {
    background: linear-gradient(180deg, #1e2128 0%, #15171c 100%);
    padding: 16px 0 18px;
    border-top: 3px solid #0170bf;
}
.epv-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 18px;
    justify-content: space-evenly;
    scrollbar-width: thin;
    scrollbar-color: #4a4e55 #15171c;
}
.epv-thumbs > * { flex: 0 0 auto; }
.epv-thumbs::-webkit-scrollbar { height: 5px; }
.epv-thumbs::-webkit-scrollbar-track { background: #15171c; }
.epv-thumbs::-webkit-scrollbar-thumb { background: #4a4e55; border-radius: 3px; }

.epv-thumb {
    position: relative;
    flex-shrink: 0;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: border-color .15s, transform .15s, background .15s;
}

.epv-thumb-sep {
    flex: 0 0 1px;
    align-self: stretch;
    background: rgba(255,255,255,.15);
    margin: 14px 0;
    border-radius: 1px;
}

.epv-thumb:hover {
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.04);
    transform: translateY(-2px);
}
.epv-thumb img {
    height: 100px;
    width: auto;
    max-width: 78px;
    object-fit: cover;
    display: block;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.epv-thumb span {
    font-size: 10px;
    color: rgba(255,255,255,.45);
    line-height: 1;
    font-weight: 600;
    letter-spacing: .3px;
}
.epv-thumb-on {
    border-color: #0170bf !important;
    background: rgba(1,112,191,.14) !important;
    transform: translateY(-2px);
}
.epv-thumb-on img {
    box-shadow: 0 0 0 2px #0170bf, 0 4px 12px rgba(1,112,191,.45);
}
.epv-thumb-on span {
    color: #fff;
    font-weight: 700;
}

/* ── Viewer empty state ─────────────────────────────────── */
.epv-empty {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    background: #fff;
}
.epv-empty p { font-size: 16px; margin-bottom: 12px; }
.epv-empty p strong { color: #0170bf; font-size: 18px; }
.epv-back-btn {
    display: inline-block;
    margin-top: 16px;
    background: #0170bf;
    color: #fff;
    padding: 10px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background .15s;
}
.epv-back-btn:hover { background: #015a9e; color: #fff; }

/* ============================================================
   FOOTER  (matches main site rs-footer)
   ============================================================ */

.ep-footer {
    background: linear-gradient(180deg, #0e1828 0%, #08101c 100%);
    color: #cbd3df;
    border-top: 4px solid #c9303f;
    padding: 48px 0 0;
    font-size: 14px;
    line-height: 1.65;
}

.ep-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ep-footer-brand { min-width: 0; }

.ep-footer-logo {
    display: inline-block;
    margin-bottom: 14px;
}
.ep-footer-logo img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.ep-footer-tagline {
    margin: 0 0 18px;
    color: #a8b2c1;
    font-size: 13px;
    max-width: 360px;
    line-height: 1.7;
}

.ep-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.ep-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.06);
    color: #e8edf4;
    transition: transform .18s, background .18s, color .18s;
    text-decoration: none;
    font-size: 15px;
}
.ep-social:hover {
    transform: translateY(-2px);
    background: #c9303f;
    color: #fff;
    text-decoration: none;
}

.ep-footer-publisher {
    position: relative;
    max-width: 370px;
    padding: 13px 15px 13px 17px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
    overflow: hidden;
}
.ep-footer-publisher::before {
    content: "";
    position: absolute;
    inset: 12px auto 12px 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #c9303f;
}
.ep-footer-pub-hi {
    display: block;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}
.ep-footer-pub-en {
    display: block;
    margin-top: 3px;
    color: #aeb8c7;
    font-size: 12px;
    line-height: 1.45;
}

.ep-footer-col { min-width: 0; }

.ep-footer-heading {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0 0 16px;
    padding-bottom: 10px;
    position: relative;
}
.ep-footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: #c9303f;
    border-radius: 2px;
}

.ep-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ep-footer-list li { margin-bottom: 8px; }
.ep-footer-list a {
    color: #cbd3df;
    text-decoration: none;
    transition: color .15s, padding-left .15s;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
}
.ep-footer-list a::before {
    content: "›";
    margin-right: 8px;
    color: #c9303f;
    font-weight: 700;
    transform: translateX(0);
    transition: transform .15s;
}
.ep-footer-list a:hover {
    color: #fff;
    text-decoration: none;
}
.ep-footer-list a:hover::before {
    transform: translateX(3px);
}

.ep-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ep-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #cbd3df;
    font-size: 13px;
}
.ep-footer-contact li i {
    width: 20px;
    text-align: center;
    color: #c9303f;
    margin-top: 3px;
    flex-shrink: 0;
}
.ep-footer-contact a {
    color: #cbd3df;
    text-decoration: none;
    transition: color .15s;
}
.ep-footer-contact a:hover { color: #fff; }
.ep-footer-contact strong { color: #fff; font-weight: 600; }

.ep-footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0;
    font-size: 13px;
    color: #7a8599;
}
.ep-footer-bottom strong { color: #e8edf4; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

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

@media (max-width: 768px) {
    .ep-home { padding: 16px 0 30px; }

    .ep-nav-link { font-size: 12px; padding: 8px 7px; }
    .ep-nav-sep { margin: 0 8px 0 10px; }
    .ep-clock { display: none; }

    .ep-month-bar {
        padding: 10px 14px;
        gap: 10px;
    }

    .ep-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }
    .ep-card-day { font-size: 16px; }
    .ep-card-date { padding: 6px 8px; }

    .ep-city-name { font-size: 15px; }

    .epv-bar { padding: 8px 14px; }
    .epv-city { font-size: 14px; }
    .epv-stage { padding: 14px 8px; min-height: 60vh; }
    .epv-imgwrap img { max-height: 78vh; }

    .epv-arrow { width: 40px; height: 40px; font-size: 16px; }
    .epv-arrow-left  { left: 6px; }
    .epv-arrow-right { right: 6px; }

    .epv-pager { gap: 6px; padding: 10px 8px; }
    .epv-pgbtn { padding: 6px 12px; font-size: 12px; }
    .epv-pgnum { min-width: 30px; height: 28px; font-size: 12px; }

    .epv-thumb img { height: 68px; max-width: 54px; }

    .ep-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .ep-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .epv-pgnums { display: none; }
    .ep-card-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
