/* ===================================
   CineScore Global - Midnight Gold
   Brand: #0D1B2A (Midnight) + #D4A017 (Gold)
   =================================== */

/* === グローバル: 全ページダーク化 === */
body,
#page,
#content,
.content-area,
#main,
.wrap,
.container,
.site {
  background: #060B14 !important;
  color: #C8C0B4 !important;
}

/* ナビとコンテンツ間の余白を詰める */
#content, .content-area {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
#main, .main {
  padding-top: 30px !important;
}
/* トップページだけメニュー下を詰める */
.home #main, .home .main {
  padding-top: 12px !important;
}
.content-in {
  padding-top: 0 !important;
}

/* ヘッダー */
.header,
#header,
.site-header,
#masthead,
.navi,
#navi,
.navi-in,
.header-container,
.header-container-in,
.logo-header,
.tagline,
.site-name-text,
.header-in,
.appeal,
.appeal-in {
  background: #060B14 !important;
  color: #F0ECE3 !important;
}

/* ヘッダーロゴ・サイト名 */
.site-name-text a,
.logo-header a,
.site-title a {
  color: #D4A017 !important;
}

/* ナビゲーション */
.navi,
#navi,
.navi-in,
.navi-in > ul,
.navi-in > ul > li,
.navi-in a,
.menu-header,
.global-menu-bar {
  background: #0D1B2A !important;
  color: #D0C8B8 !important;
}

.navi-in a,
.navi-in a:visited {
  color: #D0C8B8 !important;
  border-color: #1A2D45 !important;
}

.navi-in a:hover {
  color: #D4A017 !important;
  background: #142638 !important;
}

/* ナビリンクの幅制限解除・中央揃え */
.navi-in > ul {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}
/* Cocoonが出す2つ目のul（モバイル用重複メニュー）を非表示 */
.navi-in > ul:nth-child(2) {
  display: none !important;
}
.navi-in > ul > li {
  width: auto !important;
  max-width: none !important;
}
.navi-in a {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: nowrap !important;
  padding: 0 20px !important;
}

/* 通知バー */
.notice-area,
.notice-area-link {
  background: #D4A017 !important;
  color: #0D1B2A !important;
}

/* パンくずリスト */
.breadcrumb,
.breadcrumb-in {
  background: #0A0F1A !important;
  color: #7A8A9E !important;
}
.breadcrumb a { color: #D4A017 !important; }

/* フッター */
.footer,
#footer,
.site-footer,
.footer-in,
.footer-bottom,
.footer-bottom-content,
.footer-bottom-logo,
.copyright,
.navi-footer,
.navi-footer-in,
.footer-widget-area {
  background: #060B14 !important;
  color: #7A8A9E !important;
  border-color: #1A2D45 !important;
}

.footer a,
.navi-footer-in a,
.copyright a {
  color: #8896A8 !important;
}

.footer a:hover,
.navi-footer-in a:hover {
  color: #D4A017 !important;
}

/* サイドバー（表示される場合） */
.sidebar,
#sidebar,
.widget-area,
.widget {
  background: #0A0F1A !important;
  color: #C8C0B4 !important;
}

/* スクロールトップボタン */
.go-to-top-button,
#go-to-top {
  background: #D4A017 !important;
  color: #0D1B2A !important;
}

/* 汎用リンク */
a { color: #D4A017; }
a:hover { color: #F0C850; }

/* Cocoonコンテンツ内のカード等 */
.entry-card,
.post-list,
.widget-entry-card-content {
  background: #0D1B2A !important;
  border-color: #1A2D45 !important;
}

/* ページネーション */
.pagination a,
.page-numbers {
  background: #0D1B2A !important;
  color: #D0C8B8 !important;
  border-color: #1A2D45 !important;
}
.pagination .current {
  background: #D4A017 !important;
  color: #0D1B2A !important;
}

/* === ここから個別コンポーネント === */

/* --- 映画一覧グリッド --- */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.movie-card {
  background: #0D1B2A;
  border: 1px solid #1A2D45;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-link:hover .movie-card {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(212, 160, 23, 0.15), 0 4px 12px rgba(0,0,0,0.3);
}

.movie-card-poster img {
  width: 100%;
  display: block;
}

.movie-card-no-poster {
  width: 100%;
  height: 200px;
  background: #1A2D45;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #556;
  font-size: 0.85em;
}

.movie-card-info {
  padding: 12px 14px;
}

.movie-card-title {
  font-size: 0.92em;
  margin: 0 0 4px;
  line-height: 1.35;
  color: #F0ECE3;
  font-weight: 600;
}

.movie-card-title a {
  color: #F0ECE3;
  text-decoration: none;
}

.movie-card-original {
  font-size: 0.72em;
  color: #7A8A9E;
  margin: 0 0 4px;
}

.movie-card-meta {
  font-size: 0.75em;
  color: #8896A8;
  margin: 0 0 2px;
}

.movie-card-genre {
  font-size: 0.75em;
  color: #8896A8;
  margin: 0 0 6px;
}

.streaming-badge {
  font-size: 0.72em;
  background: rgba(212, 160, 23, 0.15);
  color: #D4A017;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
  border: 1px solid rgba(212, 160, 23, 0.3);
}

.streaming-badge.rental {
  background: rgba(92, 107, 192, 0.15);
  color: #7986CB;
  border: 1px solid rgba(92, 107, 192, 0.3);
}

.movie-card-score {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.score-label-small {
  font-size: 0.65em;
  color: #7A8A9E;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.score-value {
  font-size: 1.4em;
  font-weight: bold;
  color: #D4A017;
}

/* --- 2カラムレイアウト（詳細ページ） --- */
.movie-layout {
  display: flex;
  gap: 30px;
  align-items: stretch;
  margin-bottom: 30px;
}

.movie-poster {
  flex: 0 0 300px;
  display: flex;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.movie-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.movie-main .world-score-index { flex-shrink: 0; }
.movie-main .movie-info-table { flex: 1; }

@media (max-width: 640px) {
  .movie-layout { flex-direction: column; }
  .movie-poster { flex: 0 0 auto; width: 100%; }
}

/* --- 個別映画ページのサイドバー非表示 --- */
.single-movie .sidebar { display: none !important; }
.single-movie #content { width: 100% !important; max-width: 100% !important; }

/* --- ソート・フィルターバー --- */
.sort-bar {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sort-btn {
  padding: 6px 14px;
  background: #0D1B2A;
  color: #D4A017;
  border: 1px solid #D4A017;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.83em;
  font-weight: 500;
  transition: all 0.2s;
}

.sort-btn:hover {
  background: #D4A017;
  color: #0D1B2A;
}

.filter-bar {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-bar select {
  padding: 6px 12px;
  border: 1px solid #2A3A50;
  border-radius: 6px;
  font-size: 0.83em;
  cursor: pointer;
  background: #0D1B2A;
  color: #D0C8B8;
}

/* --- 分析セクション --- */
.analysis-section {
  background: linear-gradient(135deg, #0D1B2A 0%, #142638 100%);
  border-left: 4px solid #D4A017;
  padding: 20px 22px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
}

.analysis-text {
  font-size: 0.9em;
  line-height: 1.85;
  color: #D0C8B8;
}

/* === モバイル下部メニューバー === */
.mobile-menu-buttons,
.menu-button-bar,
.mobile-footer-menu-buttons,
.footer-mobile-buttons,
#navi-footer-fixed,
.mobile-footer-menu,
.navi-menu-content {
  background: #0D1B2A !important;
  border-top: 1px solid #1A2D45 !important;
}

.mobile-menu-buttons .menu-button,
.menu-button-bar .menu-button,
#navi-footer-fixed a,
.mobile-footer-menu a,
.footer-mobile-buttons a,
.menu-button-icon::before {
  color: #D4A017 !important;
}

.mobile-menu-buttons .menu-button:hover,
#navi-footer-fixed a:hover {
  color: #F0C850 !important;
  background: #142638 !important;
}

/* モバイルスライドメニュー */
.navi-menu-content,
.mobile-menu-content,
#slide-in-menu,
.menu-drawer {
  background: #0D1B2A !important;
  color: #D0C8B8 !important;
}

.navi-menu-content a,
.mobile-menu-content a,
#slide-in-menu a,
.menu-drawer a,
.menu-drawer li a {
  color: #D0C8B8 !important;
  background: #0D1B2A !important;
  border-color: #1A2D45 !important;
}

.navi-menu-content a:hover,
#slide-in-menu a:hover,
.menu-drawer a:hover {
  color: #D4A017 !important;
  background: #142638 !important;
}

/* === フィルター追加メニュー項目の整列 === */
.navi-in > ul > li.menu-item {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

/* === Xフォローボタン（ヘッダーナビ） === */
.x-follow-btn {
  display: inline-flex !important;
  align-items: center !important;
  background: #fff !important;
  color: #000 !important;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  font-size: 0.85em !important;
  font-weight: 700 !important;
  transition: all 0.3s !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.x-follow-btn:hover {
  background: #D4A017 !important;
  color: #000 !important;
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(212, 160, 23, 0.5);
}
.x-follow-btn svg {
  flex-shrink: 0;
}

/* === Xフォローボタン（フッター固定バナー） === */
.cinescore-x-footer-follow {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  animation: xFollowPulse 3s ease-in-out infinite;
}
.x-follow-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 0.9em;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 2px rgba(212, 160, 23, 0.4);
  transition: all 0.3s;
}
.x-follow-footer-btn:hover {
  background: #D4A017;
  color: #000 !important;
  box-shadow: 0 4px 24px rgba(212, 160, 23, 0.6);
  transform: translateY(-2px);
}
.x-follow-footer-btn svg {
  flex-shrink: 0;
}
@keyframes xFollowPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@media (max-width: 834px) {
  /* モバイルではフィルター追加メニュー項目のみ非表示 */
  .cinescore-x-follow { display: none !important; }
}
@media (max-width: 680px) {
  .cinescore-x-footer-follow {
    bottom: 56px;
    right: 8px;
    animation: none;
  }
  .x-follow-footer-btn {
    padding: 6px 12px;
    font-size: 0.72em;
    gap: 5px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4), 0 0 0 1px rgba(212, 160, 23, 0.3);
  }
  .x-follow-footer-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* === 戻るボタン（左下固定） === */
.cinescore-back-btn-wrap {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}
.cinescore-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.82em;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 2px rgba(212, 160, 23, 0.4);
  transition: all 0.3s;
}
.cinescore-back-btn:hover {
  background: #D4A017;
  color: #000 !important;
  box-shadow: 0 4px 24px rgba(212, 160, 23, 0.6);
  transform: translateY(-2px);
}
.cinescore-back-btn svg {
  flex-shrink: 0;
}
@media (max-width: 680px) {
  .cinescore-back-btn-wrap {
    bottom: 56px;
    left: 8px;
  }
  .cinescore-back-btn {
    padding: 5px 10px;
    font-size: 0.68em;
    gap: 4px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4), 0 0 0 1px rgba(212, 160, 23, 0.3);
  }
  .cinescore-back-btn svg {
    width: 13px;
    height: 13px;
  }
}

/* === コンシェルジュページ: TOPへボタンを上部メニュー下に配置 === */
.page-id-2456 .cinescore-back-btn-wrap {
  position: fixed;
  bottom: auto;
  top: 60px;
  left: 12px;
}
@media (max-width: 680px) {
  .page-id-2456 .cinescore-back-btn-wrap {
    bottom: auto;
    top: 50px;
    left: 8px;
  }
}

/* === aboutページ: サイドバー非表示・幅860px中央揃え === */
.page-id-30 .sidebar { display: none !important; }
.page-id-30 #content,
.page-id-30 .content-in,
.page-id-30 .main,
.page-id-30 #main,
.page-id-30 #main-in {
  width: 860px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  float: none !important;
  display: block !important;
}

/* === スマホ: サイドバーボタン非表示 === */
.sidebar-menu-button { display: none !important; }
