/* ==========================================
   HCC Netflix UI Core Styles
   ========================================== */
   
.hcc-app-wrapper {
    background-color: #141414;
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100vh;
    padding-bottom: 80px; /* ボトムナビの余白 */
    overflow-x: hidden;
    /* もしテーマ(Arkhe)のコンテナ幅が制限されている場合、画面幅いっぱいに引き伸ばすテクニック */
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.hcc-app-header {
    padding: 3rem 4% 1rem;
    background: linear-gradient(to bottom, rgba(20,20,20,1) 0%, rgba(20,20,20,0) 100%);
}

.hcc-app-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: 1px;
}

.hcc-app-subtitle {
    color: #e5a93d; /* ゴールド */
    font-size: 1rem;
    margin: 0;
}

/* スイムレーン（カルーセル列） */
.hcc-genre-swimlane {
    margin: 2rem 0 3rem;
    position: relative;
}

.hcc-genre-title {
    color: #e5e5e5;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0 4% 1rem;
    padding-left: 10px;
    border-left: 3px solid #e5a93d;
}

/* 横スクロールエリア */
.hcc-swimlane-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 4%;
    gap: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* スクロールバー非表示 */
    scrollbar-width: none;
}
.hcc-swimlane-scroll::-webkit-scrollbar {
    display: none;
}

/* 動画カード */
.hcc-video-card {
    flex: 0 0 calc(70% - 15px); /* スマホでは70%の幅で見切れるように */
    max-width: 320px;
    background: #181818;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s;
    position: relative;
    scroll-snap-align: start;
}
@media (min-width: 768px) {
    .hcc-video-card { flex: 0 0 calc(25% - 15px); }
}
@media (min-width: 1024px) {
    .hcc-video-card { flex: 0 0 calc(20% - 15px); }
}

.hcc-video-card:hover {
    transform: scale(1.05); /* Netflix風拡大 */
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

.hcc-card-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: 6px 6px 0 0;
    position: relative;
}

.hcc-card-badge {
    position: absolute;
    top: 10px;
    left: 0;
    background-color: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hcc-card-overlay {
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 6px 6px 0 0;
}
.hcc-video-card:hover .hcc-card-overlay {
    opacity: 1;
}
.hcc-card-overlay i {
    font-size: 3rem;
    color: rgba(255,255,255,0.9);
}

.hcc-card-info {
    padding: 15px;
}

.hcc-card-title {
    font-size: 1.1rem;
    color: #fff;
    margin: 0 0 5px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hcc-card-meta {
    font-size: 0.8rem;
    color: #a3a3a3;
    margin: 0 0 10px 0;
    display: flex;
    justify-content: space-between;
}

.hcc-card-excerpt {
    font-size: 0.85rem;
    color: #d2d2d2;
    line-height: 1.4;
    display: none; /* ホバー時のみ表示するか、最初から消すか */
}
.hcc-video-card:hover .hcc-card-excerpt {
    display: block;
}

/* ==========================================
   ボトムナビゲーション (PWA)
   ========================================== */
.hcc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20,20,20,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #333;
    z-index: 100;
}

.hcc-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #808080;
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s;
}

.hcc-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.hcc-nav-item.active,
.hcc-nav-item:hover {
    color: #e5a93d; /* ゴールド */
}

/* ==========================================
   動画再生モーダル
   ========================================== */
.hcc-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s;
}

.hcc-modal.is-active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s;
}

.hcc-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
}

.hcc-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 800px;
    background: #181818;
    border-radius: 8px;
    padding: 0; /* YouTube用 iframe を全幅にするため */
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.hcc-modal.is-active .hcc-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.hcc-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
}
.hcc-modal-close:hover {
    background: #e74c3c;
}

.hcc-modal-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    background: #000;
}
.hcc-modal-player-wrapper iframe,
.hcc-modal-player-wrapper div /* fallback for YouTube API */ {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

#hcc-modal-title {
    padding: 20px;
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.hcc-modal-actions {
    padding: 0 20px 20px;
}

/* Phase 2: アンロックボタン用 */
.hcc-btn-unlock {
    background: linear-gradient(135deg, #e67e22, #f1c40f);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, filter 0.2s;
}
.hcc-btn-unlock:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}
