/**
 * N1110 Video Publisher - Frontend CSS
 */

/* ============================================
   共通ナビゲーション
   ============================================ */
.n1110-video-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
    flex-wrap: wrap;
}

.n1110-video-nav .nav-btn {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    color: inherit;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.n1110-video-nav .nav-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-lang-switch {
    display: flex;
    gap: 5px;
}

.nav-lang-switch a {
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.nav-lang-switch a:hover,
.nav-lang-switch a.active {
    background: rgba(255,255,255,0.3);
}

/* ============================================
   シネマホール風デザイン
   ============================================ */
.n1110-video-cinema {
    background: var(--cinema-bg, #1a1a2e);
    color: var(--cinema-text, #ffffff);
    min-height: 100vh;
    padding-bottom: 50px;
}

.cinema-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 0;
    padding: 30px 20px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(180deg, var(--cinema-accent, #e94560) 0%, transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* メインフィーチャー */
.cinema-featured {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 
        0 0 0 3px var(--cinema-accent, #e94560),
        0 0 30px rgba(233, 69, 96, 0.3),
        0 20px 50px rgba(0,0,0,0.5);
}

.featured-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-screen:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.featured-screen:hover .featured-overlay {
    opacity: 1;
}

.featured-overlay .play-icon {
    font-size: 60px;
    color: #fff;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.8);
}

.featured-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.featured-info h2 {
    margin: 0;
    font-size: 1.5rem;
}

/* 動画グリッド */
.cinema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cinema-card {
    position: relative;
}

.cinema-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.cinema-card:hover .card-screen {
    box-shadow: 
        0 0 0 2px var(--cinema-accent, #e94560),
        0 10px 30px rgba(233, 69, 96, 0.2);
    transform: translateY(-5px);
}

.card-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.cinema-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay .play-icon {
    font-size: 40px;
    color: #fff;
}

.card-title {
    margin: 10px 0 0;
    font-size: 1rem;
    text-align: center;
}

/* ============================================
   フィルムリール風デザイン
   ============================================ */
.n1110-video-filmreel {
    background: var(--film-bg, #2d2d2d);
    color: #fff;
    min-height: 100vh;
    padding-bottom: 50px;
}

.filmreel-title {
    text-align: center;
    font-size: 2rem;
    margin: 0;
    padding: 30px 20px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
}

/* フィルムストリップ */
.filmstrip-container {
    background: var(--film-border, #8b7355);
    padding: 0;
    margin: 20px 0;
    overflow: hidden;
}

.filmstrip-holes {
    display: flex;
    justify-content: space-around;
    padding: 8px 20px;
    background: var(--film-border, #8b7355);
}

.filmstrip-holes .hole {
    width: 15px;
    height: 15px;
    background: var(--film-hole, #1a1a1a);
    border-radius: 3px;
}

.filmstrip-scroll {
    overflow-x: auto;
    background: #1a1a1a;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--film-border, #8b7355) #1a1a1a;
}

.filmstrip-scroll::-webkit-scrollbar {
    height: 8px;
}

.filmstrip-scroll::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.filmstrip-scroll::-webkit-scrollbar-thumb {
    background: var(--film-border, #8b7355);
    border-radius: 4px;
}

.filmstrip-track {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.film-frame {
    flex-shrink: 0;
    width: 250px;
}

.film-frame a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.frame-image {
    position: relative;
    aspect-ratio: 16 / 9;
    border: 4px solid #333;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.film-frame:hover .frame-image {
    border-color: var(--film-border, #8b7355);
    transform: scale(1.05);
}

.frame-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.film-frame:hover .frame-overlay {
    opacity: 1;
}

.frame-overlay .play-icon {
    font-size: 30px;
    color: #fff;
}

.frame-title {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* モバイル用グリッド */
.filmreel-grid-mobile {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

@media (max-width: 768px) {
    .filmstrip-container {
        display: none;
    }
    
    .filmreel-grid-mobile {
        display: grid;
    }
}

.film-card-mobile {
    position: relative;
}

.film-card-mobile a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.film-card-mobile img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.film-card-mobile .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.film-card-mobile h3 {
    margin: 8px 0 0;
    font-size: 0.85rem;
    text-align: center;
}

/* ============================================
   動画シングルページ
   ============================================ */
.n1110-video-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.video-title {
    font-size: 2rem;
    margin: 20px 0;
    text-align: center;
}

.video-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #555;
}

/* ============================================
   コンテンツブロック
   ============================================ */
.content-block {
    margin-bottom: 40px;
}

/* 動画ブロック */
.block-video .video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
}

.block-video iframe,
.block-video video {
    width: 100%;
    height: 100%;
}

/* プロンプトブロック */
.block-prompt {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
}

.prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #2d2d2d;
}

.prompt-title {
    color: #fff;
    font-weight: 600;
}

.copy-btn {
    background: #4a9eff;
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #3a8eef;
}

.copy-btn.copied {
    background: #4caf50;
}

.prompt-content {
    margin: 0;
    padding: 20px;
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.prompt-content code {
    background: transparent;
}

/* 画像スライドブロック */
.block-image-slide {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
}

.slide-title {
    margin: 0 0 15px;
    font-size: 1.1rem;
}

.image-slider {
    position: relative;
}

.slider-container {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.slider-container .slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slider-container .slide.active {
    display: block;
}

.slider-container .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.slider-prev,
.slider-next {
    background: #333;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: #555;
}

.slider-counter {
    font-size: 14px;
    color: #666;
}

/* 音楽ブロック */
.block-music {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 20px;
    color: #fff;
}

.music-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.music-icon {
    font-size: 24px;
}

.music-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.music-player {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.music-player iframe {
    display: block;
}

.music-download-btn {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s;
}

.music-download-btn:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* スプレッドシートブロック */
.block-spreadsheet {
    background: #f0f4f8;
    border-radius: 10px;
    padding: 20px;
}

.spreadsheet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.spreadsheet-icon {
    font-size: 24px;
}

.spreadsheet-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.spreadsheet-embed {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.spreadsheet-embed iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.spreadsheet-link {
    display: inline-block;
    padding: 10px 20px;
    background: #34a853;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.spreadsheet-link:hover {
    background: #2d9249;
    color: #fff;
}

/* テキストブロック */
.block-text {
    line-height: 1.8;
    color: #333;
}

.block-text p {
    margin-bottom: 1em;
}

/* ファイルダウンロードブロック */
.file-download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f5f5f5;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.file-download-btn:hover {
    background: #eee;
    transform: translateX(5px);
}

.file-icon {
    font-size: 30px;
}

.file-info {
    flex: 1;
}

.file-title {
    display: block;
    font-weight: 600;
}

.file-name {
    display: block;
    font-size: 12px;
    color: #666;
}

.download-icon {
    font-size: 24px;
}

/* 動画ダウンロードブロック */
.video-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 30px;
    background: linear-gradient(135deg, #e94560 0%, #0f3460 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.video-download-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
    color: #fff;
}

.video-download-btn .video-icon {
    font-size: 28px;
}

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 768px) {
    .cinema-title,
    .filmreel-title {
        font-size: 1.5rem;
    }
    
    .cinema-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .n1110-video-nav {
        gap: 10px;
    }
    
    .n1110-video-nav .nav-btn {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .video-title {
        font-size: 1.5rem;
    }
    
    .slider-controls {
        gap: 15px;
    }
    
    .slider-prev,
    .slider-next {
        width: 35px;
        height: 35px;
    }
}

/* ============================================
   ノーコンテンツ
   ============================================ */
.no-videos {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}
