/*
 * 收藏回忆 - 配合 RetroGameEmulator / VideoCollector 插件的 Typecho 收藏主题
 * 暗色复古街机风格
 */

/* =========================================================
 *  CSS 变量
 * ========================================================= */
:root {
    --bg-primary: #0b0c15;
    --bg-secondary: #121420;
    --bg-card: #161927;
    --bg-hover: #1e2236;
    --text-primary: #f0f2f8;
    --text-secondary: #9aa3b2;
    --text-muted: #6b7280;
    --border-color: #252a3e;
    --primary: #06B6D4;
    --primary-hover: #22d3ee;
    --accent: #EC4899;
    --accent-hover: #f472b6;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.15);
    --transition: all 0.25s ease;
    --container-width: 1280px;
}

[data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #eef1f6;
    --bg-card: #ffffff;
    --bg-hover: #e8ecf3;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --border-color: #e2e8f0;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.25);
}

/* =========================================================
 *  基础重置
 * ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin: 0 0 1rem;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
}

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

/* =========================================================
 *  容器
 * ========================================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-body .container {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.site-body {
    flex: 1;
    padding: 32px 0;
}

.site-main {
    width: 100%;
    flex: 1;
    min-width: 0;
}

/* =========================================================
 *  头部
 * ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 12, 21, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .site-header {
    background: #ffffff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

.site-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    text-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

.site-title:hover {
    color: var(--primary-hover);
}

.site-description {
    display: none;
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

.site-nav a:hover,
.site-nav a.current {
    color: var(--text-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 1px var(--border-color);
}

.site-nav a.current {
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-glow);
}

.site-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
    transition: var(--transition);
}

.site-search:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.site-search input {
    width: 160px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
}

.site-search input::placeholder {
    color: var(--text-muted);
}

.site-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #000;
    cursor: pointer;
    transition: var(--transition);
}

.site-search button:hover {
    background: var(--primary-hover);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 8px;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="light"] .theme-icon-sun {
    display: none;
}

[data-theme="light"] .theme-icon-moon {
    display: inline-block !important;
}

/* =========================================================
 *  按钮
 * ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #000;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(6, 182, 212, 0.08);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* =========================================================
 *  文章元信息
 * ========================================================= */
.post-header {
    margin-bottom: 24px;
}

.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.platform-badge,
.rating-badge,
.players-badge,
.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.platform-badge svg {
    width: 16px;
    height: 16px;
}

.rating-badge {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: var(--warning);
}

.rating-badge::before {
    content: "★";
    font-size: 12px;
}

.post-title {
    font-size: 32px;
    margin-bottom: 0;
    color: var(--text-primary);
}

.post-title a {
    color: inherit;
}

.post-title a:hover {
    color: var(--primary);
}

/* =========================================================
 *  首页/归档 游戏网格
 * ========================================================= */
.archive-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.archive-title {
    font-size: 26px;
    margin: 0;
    color: var(--text-primary);
}

.post-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
}

.post-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.post-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.post-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.post-grid.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.post-grid.grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.post-card-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    flex: 1;
    min-height: 0;
}

.post-card-link:hover {
    color: inherit;
}

.post-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-secondary);
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-cover img {
    transform: scale(1.05);
}

.post-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
}

.post-cover-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.post-platform {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    backdrop-filter: blur(4px);
}

[data-theme="light"] .post-platform {
    background: rgba(255, 255, 255, 0.9);
}

.post-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.9);
    color: #000;
}

.post-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-info-top {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.post-title {
    font-size: 17px;
    margin: 0 0 8px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-players {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.post-excerpt {
    margin: auto 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(2 * 1.6 * 13px);
}

.post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    transition: var(--transition);
    margin-top: 14px;
    flex-shrink: 0;
}

.post-card:hover .post-action-btn {
    background: var(--primary);
    color: #000;
}

.post-action-btn.post-action-video {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.post-card:hover .post-action-btn.post-action-video {
    background: #22c55e;
    color: #000;
}

.post-action-btn.post-action-read {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-muted);
}

.post-card:hover .post-action-btn.post-action-read {
    background: var(--text-muted);
    color: #fff;
}

/* =========================================================
 *  分页
 * ========================================================= */
.page-navigator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
}

.page-navigator li a,
.page-navigator li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.page-navigator li a:hover,
.page-navigator li.current a,
.page-navigator li.current span {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* =========================================================
 *  文章页
 * ========================================================= */
.post-page .site-main {
    max-width: 1100px;
    margin: 0 auto;
}

.post-page.has-sidebar .site-main {
    max-width: none;
    margin: 0;
}

.post-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-primary);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.post-content p {
    margin-bottom: 18px;
}

.post-content a {
    border-bottom: 1px dashed var(--primary);
}

.post-content a:hover {
    border-bottom-style: solid;
}

.post-content img {
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.post-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--primary);
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
}

.post-content code {
    padding: 2px 6px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    color: var(--primary);
}

.post-content pre {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 20px 0;
}

.post-content pre code {
    background: transparent;
    padding: 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.post-content th,
.post-content td {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.post-content th {
    background: var(--bg-card);
    font-weight: 600;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 28px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tags-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.post-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.post-tags a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.post-near {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-secondary);
}

.post-near a {
    color: var(--text-primary);
    font-weight: 500;
}

.post-near .next-post {
    text-align: right;
}

/* =========================================================
 *  模拟器容器适配
 * ========================================================= */
.ejs-container {
    max-width: 100%;
    margin: 24px 0;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: #000;
    box-shadow: var(--shadow);
}

.ejs-container .ejs-loading {
    background: rgba(0, 0, 0, 0.85);
}

.post-article .ejs-container {
    margin: 0 0 28px;
}

/* =========================================================
 *  评论区
 * ========================================================= */
.comments-area {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.comments-title,
.respond-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.comment-list {
    margin-bottom: 32px;
}

.comment-body {
    padding: 18px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.comment-child {
    margin-left: 32px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-name {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-by-author .comment-name::after {
    content: "作者";
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    background: var(--primary);
    color: #000;
    border-radius: 20px;
}

.comment-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.comment-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-reply {
    margin-top: 12px;
}

.comment-reply a {
    font-size: 13px;
    color: var(--primary);
}

.respond {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
}

.respond-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.respond-row input,
.respond-row textarea {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.respond-row input:focus,
.respond-row textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.respond-row textarea {
    width: 100%;
    resize: vertical;
    min-height: 120px;
}

.respond-submit {
    margin-bottom: 0;
    justify-content: flex-start;
}

.logged-in-as {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* =========================================================
 *  侧边栏
 * ========================================================= */
.site-sidebar {
    width: 300px;
    flex-shrink: 0;
    margin-top: 0;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 16px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.widget ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-secondary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget ul li a:hover {
    color: var(--primary);
}

.widget .count,
.widget .post-date {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 8px;
}

.widget-search form {
    display: flex;
    gap: 8px;
}

.widget-search input {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.tag-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* =========================================================
 *  404 / 空结果
 * ========================================================= */
.error-main,
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 40px rgba(6, 182, 212, 0.25);
    margin-bottom: 16px;
}

.error-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.error-desc {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.no-results-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.no-results h2 {
    font-size: 24px;
    color: var(--text-primary);
}

.no-results p {
    color: var(--text-secondary);
}

/* =========================================================
 *  页脚
 * ========================================================= */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 28px 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-left p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-left .powered {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.back-to-top:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* =========================================================
 *  响应式
 * ========================================================= */
@media (max-width: 1200px) {
    .post-grid.grid-5,
    .post-grid.grid-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .site-body .container {
        flex-direction: column;
    }

    .site-sidebar {
        width: 100%;
        margin-top: 32px;
    }

    .post-grid.grid-4,
    .post-grid.grid-5,
    .post-grid.grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 12px 20px;
        gap: 4px;
        align-items: stretch;
    }

    .site-nav.active {
        display: flex;
    }

    .site-nav a {
        justify-content: flex-start;
    }

    .nav-toggle {
        display: flex;
    }

    .site-search {
        display: none;
    }

    .post-grid.grid-2,
    .post-grid.grid-3,
    .post-grid.grid-4,
    .post-grid.grid-5,
    .post-grid.grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .post-title {
        font-size: 24px;
    }

    .post-near {
        grid-template-columns: 1fr;
    }

    .post-near .next-post {
        text-align: left;
    }

    .respond-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .post-grid.grid-2,
    .post-grid.grid-3,
    .post-grid.grid-4,
    .post-grid.grid-5,
    .post-grid.grid-6 {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}
