/* ==========================================================================
   Inner Pages (Show, Article, List) — Mobile Viewport
   With Dark & Light Theme Support
   ========================================================================== */

.page-wrap {
    width: 100%;
    margin: 14px auto 36px;
    padding: 20px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.page-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.page-intro {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.page-intro img,
.page-thumb {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 18px;
    border: 1px solid var(--border);
}

.breadcrumb {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 72px 14px 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb span {
    color: var(--border-hover);
}

/* Article / Show Content */
.article-page img,
.show-page img {
    width: 100%;
    border-radius: var(--radius);
    margin: 16px 0;
    border: 1px solid var(--border);
}

.article-lead {
    color: var(--text-main);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 16px;
    font-weight: 500;
}

.show-body {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-muted);
}

[data-theme="dark"] .show-body {
    color: #CBD5E1;
}

.show-body p {
    margin-bottom: 14px;
}

.show-body h2,
.show-body h3 {
    margin-top: 22px;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1.1rem;
}

.page-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.page-actions .btn {
    width: 100%;
}

.ad-block {
    margin: 20px 0;
    text-align: center;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.ad-block img {
    max-width: 100%;
    border-radius: 8px;
}

.related-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 28px 0 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Compact list (Mobile 1-Column List) */
.compact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compact-item {
    display: flex;
    gap: 12px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    padding: 10px;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.compact-item img {
    width: 90px;
    height: 75px;
    object-fit: cover;
    margin: 0;
    border: none;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.compact-item-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.compact-item-body h2 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.compact-item-body h2 a {
    color: var(--text-main);
}

.compact-item-body p {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
