/* livecam-style.css */

/* 1. 全体のベース */
body {
    background-color: #fdfbf7;
    color: #334155;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

/* 1.2 メインコンテナ：Bootstrapの余白をリセットして画面端6pxを実現 */
#app-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden; 
    padding-bottom: 80px !important; 
}

/* 2. ヒーローエリア */
.hero-section {
    width: 100%;
    position: relative;
    background: #000;
    aspect-ratio: 16 / 9;
    margin-bottom: 0px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.hero-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 3. エリアコンテナ：画面端から左右6pxのマージンに統一 */
.area-section {
    margin: 12px 6px 10px 6px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.area-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #139ed5;
    margin-bottom: 8px;
    border-left: 4px solid #139ed5;
    padding-left: 10px;
    line-height: 1.2;
}

/* 4. グリッドレイアウト（通常） */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* 🏠 5. 横スクロール専用スタイル（マイホーム用） */
.horizontal-scroll {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 2px 2px 12px 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none; /* スクロールバーを隠す（iOS/Android向け） */
}

/* 横スクロール時のカードサイズ固定 */
.horizontal-scroll .spot-card {
    flex: 0 0 160px; /* 幅を160pxに固定 */
    scroll-snap-align: start;
}

/* 5.2 横スクロール用インジケーター（ドット） */
.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #e2e8f0;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
    background-color: #0e49b6;
    transform: scale(1.2);
}

/* 6. サムネイルカード */
.spot-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.spot-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.spot-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 7. テキスト・バッジ */
.spot-info {
    padding: 10px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
}

.score-badge {
    position: static;
    background: #6c757d;
    color: #ffffff;
    font-size: 0.65rem; 
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px; 
    white-space: nowrap; 
}