/* アーカイブ全体のコンテナ */
.rs-archive-container {
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #e1e1e1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ヘッダー行 */
.rs-archive-row.rs-header {
    display: flex;
    background: #15151e; /* F1風のダークネイビー */
    color: #fff;
    font-weight: 700;
    padding: 12px 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 共通のカラム設定 */
.rs-col-date { width: 15%; }
.rs-col-title { width: 45%; }
.rs-col-winner { width: 25%; }
.rs-col-actions { width: 15%; text-align: right; }

/* データ行 */
.rs-archive-row.rs-trigger {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rs-archive-row.rs-trigger:hover {
    background-color: #f9f9f9;
    border-left: 4px solid #e10600; /* F1レッドのアクセント */
    padding-left: 16px;
}

/* テキスト装飾 */
.rs-col-title strong {
    font-size: 1.1rem;
    color: #15151e;
    display: block;
}

.rs-game-tag {
    font-size: 0.75rem;
    color: #67676d;
    background: #f0f0f2;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.winner-label {
    color: #d4af37;
    font-size: 0.7rem;
    border: 1px solid #d4af37;
    padding: 1px 4px;
    border-radius: 2px;
    margin-right: 8px;
}

/* 詳細エリア（アコーディオン） */
.rs-detail-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: #fafafa;
}

.rs-archive-item.is-open .rs-detail-content {
    max-height: 2000px;
    transition: max-height 0.4s ease-in;
    border-bottom: 2px solid #e1e1e1;
}

.rs-detail-inner {
    padding: 30px;
}

/* 詳細テーブル */
.rs-result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.rs-result-table th {
    background: #38383f;
    color: #fff;
    text-align: left;
    padding: 12px;
    font-size: 0.85rem;
}

.rs-result-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.rs-result-table tr:nth-child(even) { background: #fdfdfd; }

/* ステータスバッジ */
.status {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
}
.status.fin { background: #e6ffed; color: #1a7f37; }
.status.dnp { background: #ffebe9; color: #cf222e; }
.status.dns { background: #f6f8fa; color: #57606a; }

/* YouTubeボタン */
.rs-btn-yt {
    display: inline-flex;
    align-items: center;
    background: #e10600;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.rs-btn-yt:hover { background: #b00500; }

/* スマホ対応 */
@media (max-width: 768px) {
    .rs-header { display: none; }
    .rs-archive-row.rs-trigger { flex-wrap: wrap; }
    .rs-col-date { width: 30%; font-size: 0.8rem; }
    .rs-col-actions { width: 70%; }
    .rs-col-title { width: 100%; margin: 10px 0; }
    .rs-col-winner { width: 100%; font-size: 0.9rem; }
}

/* フィルターフォーム */
.rs-archive-filter {
    background: #f8f8f9;
    padding: 20px;
    border-bottom: 2px solid #e1e1e1;
}

.rs-filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.rs-filter-group select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 180px;
}

.rs-filter-submit {
    background: #15151e;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.rs-filter-submit:hover { background: #e10600; }

.rs-filter-reset {
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
}

.rs-no-data {
    padding: 40px;
    text-align: center;
    color: #999;
    font-style: italic;
}