/* ==========================================================================
   VCD7 Tokyo Minimalist Cinema & Gallery - Homepage Stylesheet
   Version: 2026.10.Gallery
   ========================================================================== */

.vcd-gallery-home {
  position: relative;
  overflow: hidden;
  padding-bottom: 30px;
}

/* ==========================================================================
   1. Trending Highlights & Previews (Full-Width Stretched Showcase)
   ========================================================================== */
.vcd-trending-showcase-section {
  padding: 26px 0 16px;
}

.vcd-trending-stream {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 22px 24px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.vcd-trending-stream:hover {
  border-color: rgba(223, 196, 127, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.vcd-stream-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-subtle);
}

.vcd-stream-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vcd-stream-sparkle {
  color: var(--gold-bright);
  font-size: 16px;
}

.vcd-stream-title strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.vcd-stream-title .vcd-stream-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(223, 196, 127, 0.16);
}

.vcd-stream-kicker {
  font-size: 12px;
  color: var(--gold-muted);
  font-weight: 500;
}

.vcd-stream-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.vcd-stream-card {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-subtle);
  background: rgba(0, 0, 0, 0.35);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.vcd-stream-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(223, 196, 127, 0.15);
}

.vcd-stream-pic {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.vcd-stream-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.vcd-stream-card:hover .vcd-stream-pic img {
  transform: scale(1.06);
}

.vcd-stream-pic .vcd-stream-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(10, 11, 14, 0.88);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-bright);
  border-radius: 3px;
  border: 1px solid rgba(223, 196, 127, 0.3);
  z-index: 2;
}

.vcd-stream-hover-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.vcd-stream-hover-play svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(223, 196, 127, 0.9);
  color: #000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transform: scale(0.85);
  transition: transform 0.25s ease;
}

.vcd-stream-card:hover .vcd-stream-hover-play {
  opacity: 1;
}

.vcd-stream-card:hover .vcd-stream-hover-play svg {
  transform: scale(1);
}

.vcd-stream-info {
  padding: 12px 14px 14px;
}

.vcd-stream-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
  transition: color 0.2s ease;
}

.vcd-stream-card:hover .vcd-stream-info h4 {
  color: var(--gold-bright);
}

.vcd-stream-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.vcd-stream-type {
  color: var(--gold-muted);
  padding: 1px 6px;
  background: rgba(223, 196, 127, 0.08);
  border-radius: 2px;
  border: 1px solid rgba(223, 196, 127, 0.16);
}

.vcd-stream-actor {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* ==========================================================================
   3. Channels Capsule Filter Bar
   ========================================================================== */
.vcd-channel-capsule-section {
  padding: 12px 0 26px;
}

.vcd-channel-capsule-bar {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 18px 24px;
  background: rgba(18, 20, 26, 0.78);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.vcd-channel-capsule-bar:hover {
  border-color: rgba(223, 196, 127, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.vcd-channel-kicker {
  display: flex;
  flex-direction: column;
  min-width: 96px;
  flex-shrink: 0;
  border-right: 1px solid var(--line-subtle);
  padding-right: 20px;
  padding-top: 5px;
}

.vcd-channel-kicker strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.vcd-channel-kicker span {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
}

.vcd-channel-kicker .vcd-kicker-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: rgba(223, 196, 127, 0.08);
  border: 1px solid rgba(223, 196, 127, 0.20);
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-style: normal;
  width: fit-content;
}

.vcd-channel-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  overflow: visible !important;
  white-space: normal !important;
  padding: 0;
  flex: 1;
}

.vcd-channel-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.028);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(223, 196, 127, 0.16);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.vcd-channel-pills a:hover {
  color: #fff;
  border-color: var(--gold);
  background: rgba(223, 196, 127, 0.14);
  box-shadow: 0 2px 10px rgba(223, 196, 127, 0.18);
  transform: translateY(-1px);
}

.vcd-channel-pills a.active {
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  border-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(223, 196, 127, 0.35);
}

.vcd-channel-pills a.vcd-pill-special {
  border-color: rgba(223, 196, 127, 0.35);
  background: rgba(223, 196, 127, 0.08);
  color: var(--gold-bright);
}

.vcd-channel-pills a.vcd-pill-special:hover {
  background: rgba(223, 196, 127, 0.20);
  border-color: var(--gold-bright);
}

@media (max-width: 980px) {
  .vcd-channel-capsule-bar {
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;
  }
  .vcd-channel-kicker {
    border-right: none;
    border-bottom: 1px solid var(--line-subtle);
    padding-right: 0;
    padding-bottom: 10px;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .vcd-channel-kicker .vcd-kicker-count {
    margin-top: 0;
  }
}

/* ==========================================================================
   4. Curated Picks & Weekly Ranking (Harmonized Twin Panels)
   ========================================================================== */
.vcd-bottom-showcase-section {
  padding: 30px 0 50px;
}

.vcd-bottom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: stretch;
}

/* Harmonized Editor's Picks Panel */
.vcd-editors-panel {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.vcd-editors-head,
.vcd-rank-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-subtle);
}

.vcd-editors-title,
.vcd-rank-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.vcd-editors-title strong,
.vcd-rank-title strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-bright);
}

.vcd-editors-title span,
.vcd-rank-title span {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
}

.vcd-editors-kicker,
.vcd-rank-kicker {
  font-size: 11px;
  color: var(--gold-muted);
  letter-spacing: 0.06em;
}

.vcd-picks-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  flex: 1;
}

/* Weekly Top Ranking Column */
.vcd-weekly-rank {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.vcd-rank-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 4px;
}

.vcd-rank-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.vcd-rank-item:hover {
  background: rgba(223, 196, 127, 0.08);
}

.vcd-rank-num {
  font-family: "Cinzel", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.vcd-rank-item:nth-child(1) .vcd-rank-num {
  color: #121008;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
  border-color: #ffd700;
  box-shadow: 0 2px 10px rgba(255, 170, 0, 0.45);
}

.vcd-rank-item:nth-child(2) .vcd-rank-num {
  color: #121008;
  font-weight: 800;
  background: linear-gradient(135deg, #f0f0f0 0%, #b8b8b8 100%);
  border-color: #e0e0e0;
  box-shadow: 0 2px 8px rgba(200, 200, 200, 0.35);
}

.vcd-rank-item:nth-child(3) .vcd-rank-num {
  color: #121008;
  font-weight: 800;
  background: linear-gradient(135deg, #dfa87f 0%, #a85828 100%);
  border-color: #dfa87f;
  box-shadow: 0 2px 8px rgba(223, 168, 127, 0.35);
}

.vcd-rank-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.vcd-rank-title-wrap b {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.vcd-rank-item:hover .vcd-rank-title-wrap b {
  color: var(--gold-bright);
}

.vcd-rank-title-wrap em {
  font-size: 11px;
  font-style: normal;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vcd-rank-views {
  font-size: 11px;
  color: var(--gold-bright);
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(223, 196, 127, 0.08);
  border: 1px solid rgba(223, 196, 127, 0.22);
  transition: all 0.2s ease;
}

.vcd-rank-item:hover .vcd-rank-views {
  background: rgba(223, 196, 127, 0.18);
  border-color: var(--gold);
}

.vcd-rank-fire {
  font-style: normal;
  font-size: 12px;
}

/* ==========================================================================
   Responsive Rules
   ========================================================================== */
@media (max-width: 1280px) {
  .vcd-bottom-layout {
    grid-template-columns: 1fr;
  }
  .vcd-picks-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .vcd-stream-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .vcd-stream-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vcd-picks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 580px) {
  .vcd-stream-cards {
    grid-template-columns: 1fr;
  }
  .vcd-picks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
