/* 大型モニター専用スタイル */
.large-monitor-container {
    height: 100vh;
    overflow: hidden;
    background-color: #f8f9fa;
    font-size: 1.4rem;
}

.court-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}

.court-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* 8列に変更 */
    grid-template-rows: 1fr; /* 1行に変更 */
    gap: 10px; /* 横幅に合わせてギャップを小さく */
    padding: 10px; /* パディングも調整 */
    height: calc(100vh - 120px); /* ヘッダー高さに合わせて調整 */
}

.court-card {
    background: white;
    border-radius: 8px; /* 角を少し小さく */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 影を軽く */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0; /* フレックスアイテムの最小幅を0に */
}

.court-number {
    background: #28a745;
    color: white;
    text-align: center;
    padding: 8px; /* パディングを小さく */
    font-size: 1rem; /* フォントサイズを調整 */
    font-weight: bold;
}

.match-slot {
    flex: 1;
    padding: 8px; /* パディングを小さく */
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.match-slot:last-child {
    border-bottom: none;
}

.match-current {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 4px solid #ffc107;
}

.match-next {
    background: linear-gradient(135deg, #d1ecf1, #b3e5fc);
    border-left: 4px solid #17a2b8;
}

.match-upcoming {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #6c757d;
}

.match-header {
    font-size: 0.75rem; /* フォントサイズを小さく */
    font-weight: bold;
    margin-bottom: 6px;
    color: #495057;
}

.team-vs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.team-name {
    font-size: 0.85rem; /* フォントサイズを小さく */
    font-weight: bold;
    color: #212529;
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vs-separator {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0 5px; /* マージンを小さく */
}

.player-names {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem; /* フォントサイズを小さく */
    color: #6c757d;
    margin-bottom: 6px;
}

.player-names .player-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 45%;
}

.score-display {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem; /* フォントサイズを調整 */
    font-weight: bold;
    color: #007bff;
}

.status-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.6rem; /* フォントサイズを小さく */
    font-weight: bold;
}

.status-playing {
    background: #dc3545;
    color: white;
    animation: pulse 2s infinite;
}

.status-finished {
    background: #28a745;
    color: white;
}

.status-scheduled {
    background: #6c757d;
    color: white;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.update-time {
    position: fixed;
    top: 10px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 1000;
}

.announcement {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
}

.announcement-text {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 既存のスタイルの後に追加 */

/* Blazor エラーUI のスタイル */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none; /* デフォルトで非表示 */
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 1px solid #ffc107;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    text-decoration: none;
    color: #856404;
    font-weight: bold;
}

#blazor-error-ui .dismiss:hover {
    color: #533f03;
}

#blazor-error-ui .reload {
    color: #856404;
    text-decoration: underline;
}

#blazor-error-ui .reload:hover {
    color: #533f03;
}