/* schedule.css */

.calendar-container {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--text-dark);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-header-cell {
    font-size: 10px;
    color: #888;
    text-align: center;
    margin-bottom: 5px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.1s;
    overflow: hidden;
}
.cal-day:active { transform: scale(0.95); }

/* 日付数字 */
.day-num {
    font-size: 10px;
    z-index: 5;
    color: #555;
    font-weight: bold;
    position: absolute;
    top: 2px;
    right: 3px;
    text-shadow: 0 0 2px white;
}

/* 動画がある日のスタイル */
.cal-day.has-video {
    background: #fff;
    border-color: #eee;
}
.cal-day.has-video.type-upcoming, .cal-day.has-video.type-live {
    border-color: #ff6b81;
}
.cal-day.has-video.type-shorts {
    border-color: #ffd700;
}
.cal-day.has-video.type-video {
    border-color: #a18cd1;
}

/* カレンダー用の小さいサムネイル */
.cal-thumb-small {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 4px;
    position: absolute;
    bottom: 2px; /* 下寄せ */
    left: 10%;   /* 中央寄せ (100-80)/2 */
    z-index: 1;
    opacity: 0.9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Shortsは縦長に見切れないように調整 */
.type-shorts .cal-thumb-small {
    object-fit: contain;
    background: #000;
}

.cal-multi-dot {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 6px;
    height: 6px;
    background: var(--deep-rose);
    border-radius: 50%;
    z-index: 6;
    border: 1px solid white;
}

/* --- 詳細エリア --- */
.schedule-detail {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px;
    max-height: 350px;
    overflow-y: auto;
    min-height: 100px;
}

.detail-header {
    font-weight: bold;
    color: var(--text-dark);
    border-bottom: 1px dashed #ddd;
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.placeholder-text {
    text-align: center;
    color: #aaa;
    font-size: 12px;
    margin-top: 20px;
}

/* 詳細カード */
.schedule-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #fcfcfc;
    border: 1px solid #eee;
    transition: background 0.2s;
}
.schedule-card:hover {
    background: #f4f4f4;
}

.card-left {
    width: 100px;
    flex-shrink: 0;
}

.detail-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.type-shorts .detail-thumb {
    aspect-ratio: 9/16; /* Shortsは縦長表示 */
    max-height: 120px;
    object-fit: cover;
}

.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    background: #888;
}
.badge.type-upcoming, .badge.type-live { background: #ff6b81; }
.badge.type-shorts { background: #ffd700; color: #333; }
.badge.type-archive, .badge.type-video { background: #a18cd1; }

.detail-time {
    font-size: 11px;
    color: #888;
}

.detail-title {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-link {
    align-self: flex-start;
    display: inline-block;
    background: #333;
    color: white;
    font-size: 11px;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.2s;
}
.detail-link:active { transform: scale(0.95); }

.month-nav button {
    background: transparent;
    border: none;
    color: var(--deep-rose); /* にぽちゃんカラーを適用 */
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    margin: 0 5px;
    transition: color 0.2s, transform 0.1s;
    outline: none;
}
.month-nav button:hover {
    color: var(--accent-color);
}
.month-nav button:active {
    transform: scale(0.95);
}

/* schedule.css */

/* --- 新規: 更新ボタンのスタイル --- */
.refresh-btn {
    /* --primary-color: #ffb6c1; (Light Pink) を使用 */
    background: var(--primary-color); 
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    gap: 5px;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap; /* ボタン内のテキストが折り返されないように */
}
.refresh-btn:active {
    transform: scale(0.98);
}
.refresh-btn:hover {
    background: var(--accent-color); /* ホバーで少し濃いピンクに */
}