/* archive.html 固有スタイル */
/* 共通スタイルは /css/style.css に移動済み */

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; background: rgba(79,127,255,0.1); color: var(--accent); cursor: pointer; border: 1px solid transparent; }
.tag.active { background: var(--accent); color: #fff; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .15s; cursor: pointer; }
.card:hover { box-shadow: var(--shadow); }
.thumb { position: relative; background: var(--surface2); height: 200px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text3); flex-direction: column; gap: 8px; }
.video-badge { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.65); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 20px; display: flex; align-items: center; gap: 3px; }
.processing-badge { position: absolute; top: 8px; left: 8px; background: rgba(255,170,0,0.9); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 20px; }
.card-body { padding: 12px 14px; }
.card-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.card-url { font-size: 11px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.card-comment { font-size: 12px; color: var(--text2); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.card-tag { font-size: 10px; padding: 2px 8px; border-radius: 20px; background: rgba(79,127,255,0.1); color: var(--accent); }
.card-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }

/* モーダル */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 500; align-items: center; justify-content: center; }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border-radius: 16px; width: 90%; max-width: 560px; max-height: 90vh; overflow-y: auto; padding: 28px; }
.modal-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.m-lbl { font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 6px; margin-top: 14px; }

/* 詳細モーダル */
.detail-modal { display: none; position: fixed; inset: 0; background: rgba(10,15,40,0.6); z-index: 500; flex-direction: column; }
.detail-modal.open { display: flex; }
.detail-header { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-sm); }
.detail-body { flex: 1; display: flex; overflow: hidden; background: var(--bg); }
.detail-side { width: 280px; background: var(--surface); overflow-y: auto; padding: 20px; flex-shrink: 0; border-right: 1px solid var(--border); }
.detail-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.detail-tabs { display: flex; background: var(--surface); padding: 8px 16px; gap: 6px; border-bottom: 1px solid var(--border); }
.detail-tab { padding: 6px 14px; border-radius: 8px; font-size: 12px; cursor: pointer; color: var(--text2); border: 1px solid transparent; background: none; font-family: inherit; transition: all .15s; }
.detail-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.detail-tab:hover:not(.active) { background: var(--surface2); }
.detail-view { flex: 1; overflow: auto; background: var(--surface2); display: flex; align-items: flex-start; justify-content: center; padding: 24px; }
.detail-view img { max-width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.detail-view video { max-width: 100%; border-radius: 8px; box-shadow: var(--shadow); max-height: calc(100vh - 200px); }
