/* /examples (gallery) and /examples/<slug> (one book). Dashboard shell;
   the read-along player reuses home.css (.hn-script, .hn-w2, .hn-ex-play). */

.ex-sub { margin: 6px 0 0; font-size: 14.5px; color: #6b7280; max-width: 620px; }

/* ---------- gallery ---------- */
.ex-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 22px; }
.ex-filters button {
    height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid #e6e8ee; background: #fff; font-size: 13px; font-weight: 500; color: #3f3f46; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.ex-filters button:hover { border-color: #c9ccd6; }
.ex-filters button.is-on { background: #18181b; border-color: #18181b; color: #fff; }

.ex-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px 20px; }
.ex-grid li[hidden] { display: none; }
.ex-card { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; }
.ex-card-cover { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 6px 12px 12px 6px; overflow: hidden; margin-bottom: 10px;
    box-shadow: inset 6px 0 0 rgba(0, 0, 0, .12), 0 18px 34px -20px rgba(24, 24, 27, .55), 0 1px 3px rgba(24, 24, 27, .12);
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s; }
.ex-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-card-play { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center;
    background: rgba(24, 24, 27, .82); color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.ex-card:hover .ex-card-cover { transform: translateY(-4px); box-shadow: inset 6px 0 0 rgba(0, 0, 0, .12), 0 26px 44px -22px rgba(24, 24, 27, .6); }
.ex-card:hover .ex-card-play, .ex-card:focus-visible .ex-card-play { opacity: 1; transform: none; }
.ex-card-title { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; color: #18181b; }
.ex-card-meta { font-size: 12.5px; color: #6b7280; }

/* ---------- one book ---------- */
.ex-crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; font-size: 13px; color: #6b7280; }
.ex-crumbs a { color: #3f3f46; font-weight: 500; text-decoration: none; }
.ex-crumbs a:hover { text-decoration: underline; }
.ex-detail { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 48px; align-items: start; }
/* The page reuses the carousel's player class (.hn-ex-slide) but not its fixed card size. */
.ex-detail.hn-ex-slide { flex: none; height: auto; grid-template-rows: auto; background: none; }
.ex-stage { position: sticky; top: 24px; display: flex; align-items: center; justify-content: center; padding: 36px 56px; border-radius: 24px;
    background: radial-gradient(110% 80% at 50% 0%, #f6f1e7 0%, #ebeef7 60%, #dde3f1 100%); }
.ex-cover { width: 100%; max-width: 320px; height: auto; border-radius: 6px 14px 14px 6px; box-shadow: inset 6px 0 0 rgba(0, 0, 0, .12), 0 34px 60px -28px rgba(24, 24, 27, .6); }
.ex-nav { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 999px; display: grid; place-items: center;
    background: #fff; color: #18181b; box-shadow: 0 0 0 1px #e6e8ee, 0 6px 14px -8px rgba(24, 24, 27, .3); transition: transform .15s; }
.ex-nav:hover { transform: scale(1.06); color: #18181b; }
.ex-nav svg { width: 18px; height: 18px; }
.ex-nav--prev { left: 10px; } .ex-nav--next { right: 10px; }

.ex-title { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.ex-by { margin: 8px 0 0; font-size: 15px; color: #3f3f46; }
.ex-facts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ex-facts li { height: 28px; line-height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid #e6e8ee; font-size: 12.5px; font-weight: 500; color: #3f3f46; background: #fff; }
.ex-about { margin: 18px 0 0; font-size: 16px; line-height: 1.6; color: #3f3f46; max-width: 640px; }

.ex-player.hn-ex-body { height: 360px; margin-top: 24px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px #eceef3, 0 20px 40px -30px rgba(24, 24, 27, .35); }
.ex-player .hn-script { padding: 26px 30px 110px; font-size: 17px; }
.ex-player .hn-ex-play { bottom: 22px; width: 58px; height: 58px; }

.ex-h2 { margin: 32px 0 12px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ex-cast { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ex-cast li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fafafb; border: 1px solid #f0f1f5; }
.ex-cast-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ex-cast-copy b { font-size: 14px; font-weight: 600; }
.ex-cast-copy small { font-size: 13px; line-height: 1.45; color: #6b7280; }
.ex-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ex-tags .hn-tag { font-size: 12.5px; height: 26px; }
.ex-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.ex-btn { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #18181b; text-decoration: none;
    background: #fff; box-shadow: 0 0 0 1px #e6e8ee; }
.ex-btn--dark { background: linear-gradient(180deg, #34343a, #1c1c20); color: #fff; box-shadow: 0 8px 16px -10px rgba(24, 24, 27, .6); }
.ex-btn:hover { filter: brightness(1.05); color: inherit; }
.ex-btn--dark:hover { color: #fff; }
.ex-note { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: #9ca3af; max-width: 560px; }

.ex-more { margin-top: 56px; }
.ex-strip { list-style: none; margin: 0; padding: 4px 2px 12px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.ex-strip li { flex: 0 0 112px; scroll-snap-align: start; }
.ex-strip a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: #3f3f46; font-size: 12px; font-weight: 500; }
.ex-strip img { width: 112px; height: 168px; object-fit: cover; border-radius: 4px 8px 8px 4px; box-shadow: 0 10px 20px -14px rgba(24, 24, 27, .6); opacity: .8; transition: opacity .15s, transform .15s; }
.ex-strip a:hover img { opacity: 1; transform: translateY(-2px); }
.ex-strip a.is-current img { opacity: 1; box-shadow: 0 0 0 3px #2f6bf3, 0 10px 20px -14px rgba(24, 24, 27, .6); }
.ex-strip a.is-current { color: #18181b; }

@media (max-width: 1100px) {
    .ex-detail { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .ex-stage { position: relative; top: 0; padding: 28px 56px; }
    .ex-cover { max-width: 240px; }
}
@media (max-width: 640px) {
    .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
    .ex-player.hn-ex-body { height: 340px; }
    .ex-player .hn-script { padding: 22px 20px 100px; font-size: 16px; }
}
