/* ============================================================
   NEO • MULTIMÍDIA — MÓDULO “MEUS FILMES” (v6.0 PREVIEW)
   ------------------------------------------------------------
   • Estrutura modularizada (padrão Neo)
   • Comentários e seções documentadas
   • Código centralizado e reaproveitável entre módulos
   ============================================================ */


/* ============================================================
   Block 1 — 🎨 VARIABLES & BASE COMPONENTS
   ------------------------------------------------------------
   Variáveis globais, estilos universais e resets de contexto
   ============================================================ */

:root {
  /* 🔹 Light Sweep (cores e durações padrão) */
  --sweep-gold-1: rgba(255, 230, 128, 0.25);
  --sweep-gold-2: rgba(255, 255, 180, 0.45);
  --sweep-blue-1: rgba(100, 180, 255, 0.25);
  --sweep-blue-2: rgba(150, 220, 255, 0.45);
  --sweep-gold-duration: 12s;
  --sweep-blue-duration: 15s;

  /* 🔹 Cores principais */
  --color-album-1: #ffeb99;
  --color-album-2: #ffd966;
  --color-film-1: #1e3c72;
  --color-film-2: #2a5298;

  /* 🔹 Bordas e efeitos */
  --border-album: #e6c300;
  --border-film: #0f2a56;
}

/* 🔹 Estrutura base de cards */
.card {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 🔹 Subcomponentes comuns */
.card__media {
  position: relative;
}
.card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}
.card__title {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}
.card__meta {
  color: #bbb;
  font-size: 0.9rem;
}
.card__desc {
  color: #aaa;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}
.card__actions {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 40;
}

/* ============================================================
   Block 2 — ✨ LIGHT SWEEP EFFECT (shared)
   ------------------------------------------------------------
   Um único @keyframes e efeito configurável via variáveis
   ============================================================ */

.card {
  --sweep-color-1: var(--sweep-blue-1);
  --sweep-color-2: var(--sweep-blue-2);
  --sweep-duration: var(--sweep-blue-duration);
}
.card[data-album] {
  --sweep-color-1: var(--sweep-gold-1);
  --sweep-color-2: var(--sweep-gold-2);
  --sweep-duration: var(--sweep-gold-duration);
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 200%;
  height: 100%;
  transform: skewX(-25deg);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    120deg,
    transparent 0%,
    var(--sweep-color-1) 45%,
    var(--sweep-color-2) 50%,
    var(--sweep-color-1) 55%,
    transparent 100%
  );
  animation: lightSweep var(--sweep-duration) linear infinite;
}

@keyframes lightSweep {
  0% { left: -150%; }
  100% { left: 150%; }
}

/* ============================================================
   Block 3 — 🟡 ALBUM vs 🔵 FILME COLORING
   ------------------------------------------------------------
   Define cores e ícones distintos por tipo de item
   ============================================================ */

.card[data-album] .card__media {
  background: linear-gradient(135deg, var(--color-album-1), var(--color-album-2));
  border: 2px solid var(--border-album);
  color: #333;
}
.card[data-album] .card__media::before {
  content: "\f07b"; /* ícone de pasta */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 28px;
  color: #b8860b;
  position: absolute;
  top: 8px;
  left: 8px;
}

.card:not([data-album]) .card__media {
  background: linear-gradient(135deg, var(--color-film-1), var(--color-film-2));
  border: 2px solid var(--border-film);
  color: #fff;
}
.card:not([data-album]) .card__media::before {
  content: "\f008"; /* ícone de filme */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 26px;
  color: #00bfff;
  position: absolute;
  top: 8px;
  left: 8px;
}

/* ============================================================
   BREADCRUMB + CONTADOR UNIFICADO — FILMES
============================================================ */
#filmes-root .breadcrumb {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
  margin:0.4rem 1rem 0.6rem;
  font-size:0.9rem;
  color:dodgerblue;
  gap:0.4rem;
  text-align:right;
}
#filmes-root .breadcrumb span {
  cursor:pointer;
  transition:color 0.2s ease;
}
#filmes-root .breadcrumb .current-folder {
  color:#ffcc40;
  font-weight:600;
  text-shadow:0 0 6px rgba(255,220,100,0.4);
}
#filmes-root .breadcrumb span:not(.current-folder):hover {
  text-decoration:underline;
  color:#1e90ff;
}

/* ============================================================
   Block 4 — ⋮ ACTION MENU (global)
   ------------------------------------------------------------
   Ícone flutuante e menu contextual universal (todos os modos)
   ============================================================ */

.card-menu {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 15;
}
.menu-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #eee;
  cursor: pointer;
  padding: 2px 6px;
  transition: transform 0.2s, color 0.2s;
}
.menu-btn:hover {
  color: gold;
  transform: scale(1.2);
}

/* 🔹 Menu flutuante de contexto */
.filmes-floating-menu {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: fixed;
  top: -9999px;
  left: -9999px;
  z-index: 99999;
  min-width: 160px;
  display: none;
}
.filmes-floating-menu button {
  background: transparent;
  color: #ddd;
  border: none;
  padding: 8px 12px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease;
}
.filmes-floating-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
/* ============================================================
   Block 5 — 📦 MOVE PANEL (painel “Mover”)
   ------------------------------------------------------------
   Reutilizável entre módulos — mantém padrão visual Neo
   ============================================================ */

.move-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.move-box {
  position: relative;
  background: var(--neo-bg-panel, #1e1e1e);
  color: var(--neo-txt, #fff);
  padding: 1rem 1.2rem;
  border-radius: 10px;
  width: clamp(320px, 50vw, 420px);
  box-shadow: var(--neo-elev-soft, 0 6px 25px rgba(0, 0, 0, 0.6));
  display: flex;
  flex-direction: column;
  gap: .6rem;
  animation: fadeInUp .3s ease;
}
.move-box .btn-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all .25s ease;
}
.move-box .btn-close:hover { background: var(--neo-danger, #e53935); }

.move-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 .4rem;
}
.move-header h3 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}

.move-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.move-list {
  flex: 1;
  overflow: auto;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 6px;
  background: #252525;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .1) transparent;
}
.move-dest {
  width: 100%;
  text-align: left;
  background: #2c2c2c;
  border: none;
  color: #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background .15s;
}
.move-dest:hover { background: #3a3a3a; }
.move-dest.move-home {
  background: rgba(255, 255, 255, .08);
  font-weight: 600;
  border: 1px solid var(--neo-border, #555);
  color: #fff;
}
.move-dest.move-home:hover { background: rgba(255, 255, 255, .18); }
.move-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .6rem;
}
.move-actions .btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #2e2e2e;
  color: #eee;
  cursor: pointer;
}
.move-actions .btn-primary {
  background: #0044cc;
  border-color: #0055ff;
}
.move-actions .btn-primary:hover { background: #0055ff; }


/* ============================================================
   Block 6 — 🎬 FILM DETAIL PANEL (detalhes do filme)
   ------------------------------------------------------------
   Layout paisagem, com fundo translúcido e colunas flexíveis
   ============================================================ */

.film-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.film-detail-box {
  background: #1c1c1c;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  width: 90vw;
  max-height: 75vh;
  overflow: hidden;
  position: relative;
}

/* Fechar (X) */
.film-detail-box .btn-icon {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.film-detail-box .btn-icon:hover { background: #e53935; }

/* Estrutura geral */
.film-detail-content.landscape {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.film-detail-body.landscape-body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.4rem 1.8rem;
  gap: 1.5rem;
  flex: 1;
}

/* Coluna esquerda (imagem) */
.film-detail-left {
  flex: 0 0 35%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.film-detail-left img {
  width: 100%;
  max-width: 260px;
  max-height: 55vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

/* Coluna direita (dados textuais) */
.film-detail-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  line-height: 1.4;
  font-size: 0.9rem;
}
.film-detail-right h3 {
  margin: 0 0 0.6rem 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.film-detail-right p { margin: 0; color: #ddd; }
.film-detail-right strong {
  color: #ffc107;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  width: 100px;
}
.film-detail-right span { color: #fff; font-size: 0.9rem; }

/* Observação */
.film-observacao {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  font-style: italic;
  font-size: 0.9rem;
}

/* Rodapé */
.film-detail-box .modal__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.film-detail-box .modal__footer button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.film-detail-box .modal__footer button:hover {
  background: dodgerblue;
  border-color: dodgerblue;
}


/* ============================================================
   Block 6 — 🧭 VIEW MODES (List, Grid, Mini, Poster)
   ------------------------------------------------------------
   Todos os modos padronizados e simplificados
   ============================================================ */

/* ===== LIST (modo detalhado horizontal) ===== */
.view-list .card.card-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  width: 90%;
  max-width: 800px;
  margin: 0.4rem auto;
  background: rgba(30, 30, 30, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  padding: 0.6rem;
  position: relative;
}
.view-list .card.card-list .card__media {
  flex: 0 0 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  position: static !important; /* libera botão global */
}
.view-list .card.card-list .card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.view-list .card.card-list .card__actions {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 40;
}
.view-list .card.card-list .card__actions .card-menu {
  background: rgba(0, 0, 0, 0.45);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 17px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.view-list .card.card-list .card__actions .card-menu:hover {
  background: rgba(255, 255, 255, 0.25);
  color: gold;
  transform: scale(1.1);
}

/* ===== GRID (modo padrão em blocos) ===== */
.view-grid .card {
  width: 220px;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.view-grid .card__media {
  height: 200px;
  background: rgba(255,255,255,0.05);
}
.view-grid .card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== MINI (modo compacto) ===== */
.view-mini .card.card-mini {
  width: 120px;
  border: 1px solid rgba(255,255,255,0.08);
}
.view-mini .card-mini .card__media {
  height: 160px;
  background: rgba(255,255,255,0.03);
}

/* ===== POSTER (modo cinematográfico vertical) ===== */
.view-poster .card.card-poster {
  width: 320px;
  border: 1px solid rgba(255,255,255,0.1);
}
.view-poster .card-poster .card__media {
  height: 260px;
  background: rgba(255,255,255,0.05);
}

/* ===== Ajuste da grid container ===== */
.view-list .grid.grid--collection {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  gap: 0.6rem;
}
/* ============================================================
   Block 7 — ✨ TRANSITIONS & ANIMATIONS (globais)
   ------------------------------------------------------------
   Efeitos universais: fade, slide e transições cinematográficas
   ============================================================ */

/* 🔹 Fade entre trocas de cards (re-render dinâmico) */
.fade-transition {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fade-transition.show {
  opacity: 1;
  transform: scale(1);
}

/* 🔹 Fade e slide — estilo Netflix (entrada/saída de modais e painéis) */
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOutOverlay {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideDown {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(40px) scale(0.97); }
}

/* 🔹 Classes utilitárias de animação */
.fade-in {
  animation: fadeInOverlay 0.8s ease forwards;
}
.fade-out {
  animation: fadeOutOverlay 0.8s ease forwards;
}
.slide-up {
  animation: slideUp 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
.slide-down {
  animation: slideDown 0.8s ease forwards;
}

/* 🔹 Animação padrão para o painel “Mover” */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================================
   Block 8 — 📱 RESPONSIVE DESIGN
   ------------------------------------------------------------
   Ajustes para tablets e smartphones (até 800px)
   ============================================================ */

@media (max-width: 800px) {

  /* 🔹 Painel de detalhes — muda para layout vertical */
  .film-detail-body.landscape-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .film-detail-left {
    margin-bottom: 1rem;
  }
  .film-detail-right strong {
    width: auto;
  }

  /* 🔹 Cards no modo grid — adaptam-se ao espaço */
  .view-grid .card {
    width: 45%;
    margin: 0.5rem 0;
  }

  /* 🔹 Cards no modo poster — centralizados */
  .view-poster .card.card-poster {
    width: 90%;
    max-width: 360px;
  }

  /* 🔹 Cards no modo lista — largura total */
  .view-list .card.card-list {
    width: 95%;
  }

  /* 🔹 Ajuste de tamanhos de imagem no modo mini */
  .view-mini .card-mini .card__media {
    height: 120px;
  }

  /* 🔹 Ícones e botões menores para touch */
  .menu-btn {
    font-size: 14px;
    padding: 2px 5px;
  }
  .filmes-floating-menu button {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* ============================================================
   Block 9 — 🛠️ EDIT PANELS (Filme / Álbum)
   🎬 NEO • MULTIMÍDIA — PAINÉIS DE EDIÇÃO (v6.1 Refinado)
   ------------------------------------------------------------
   • Layout horizontal (imagem à esquerda, form à direita)
   • Cabeçalho alinhado com botões (– / ✕)
   • Campos “Ano” e “Duração” lado a lado
   • Campo “Observações” fluido
   • Responsivo e sem barra de rolagem externa
   ============================================================ */

/* ============================================================
   Overlay base — mantém o painel centralizado na tela
   ============================================================ */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none; /* Ativado via JS */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.panel-overlay:not(.hidden) {
  display: flex;
}

/* ============================================================
   Painel principal (paisagem)
   ============================================================ */
.panel.panel--film,
.panel.panel--album {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 20px 24px;
  width: 85%;
  max-width: 880px;
  max-height: 90vh;
  overflow: hidden;
  background: #1a1a1a;
  color: #eee;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  font-size: 0.9rem;
}

/* ============================================================
   Cabeçalho (Título + Botões)
   ============================================================ */
.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2a2a2a;
  border-bottom: 1px solid #333;
  border-radius: 10px 10px 0 0;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.panel__header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.panel__header .panel__controls {
  display: flex;
  gap: 6px;
}
.panel__header button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.panel__header button:hover {
  background: #444;
}
.panel__header button.close:hover {
  background: #e53935;
}

/* ============================================================
   Corpo do painel (imagem + formulário)
   ============================================================ */
.panel.panel--film .panel__body,
.panel.panel--album .panel__body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

/* ============================================================
   Área da imagem / upload
   ============================================================ */
.panel.panel--film .file-input,
.panel.panel--album .file-input {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 12px;
}
.panel.panel--film .file-input label,
.panel.panel--album .file-input label {
  display: none; /* Remove o label “Foto” */
}
.panel.panel--film .file-input img,
.panel.panel--album .file-input img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   Formulário principal
   ============================================================ */
.panel.panel--film form,
.panel.panel--album form {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 75vh;
  gap: 10px;
}

/* Campos compactos */
.panel.panel--film input,
.panel.panel--film textarea,
.panel.panel--album input,
.panel.panel--album textarea {
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  color: #eee;
  padding: 6px 8px;
  font-size: 0.9rem;
  line-height: 1.2;
}

/* Linha dupla — Ano + Duração */
.panel.panel--film form .row-duo {
  display: flex;
  gap: 8px;
}
.panel.panel--film form .row-duo > div {
  flex: 1;
}

/* Campo Observações — altura fluida */
.panel.panel--film textarea {
  min-height: 80px;
  max-height: 180px;
  resize: vertical;
  line-height: 1.3;
}

/* ============================================================
   Rodapé (botões)
   ============================================================ */
.panel__footer {
  margin-top: 8px;
  padding-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ============================================================
   Responsividade
   ============================================================ */
@media (max-width: 900px) {
  .panel.panel--film,
  .panel.panel--album {
    flex-direction: column;
    align-items: center;
    width: 95%;
    max-width: 620px;
  }

  .panel.panel--film .panel__body,
  .panel.panel--album .panel__body {
    flex-direction: column;
    align-items: center;
  }

  .panel.panel--film .file-input,
  .panel.panel--album .file-input {
    width: 100%;
    max-width: 260px;
    margin-bottom: 15px;
  }

  .panel.panel--film .file-input img,
  .panel.panel--album .file-input img {
    max-width: 100%;
    height: auto;
  }

  /* Linha dupla vira coluna */
  .panel.panel--film .row-duo {
    flex-direction: column;
  }
}

/* ============================================================
   🔧 Ajuste do Cabeçalho — linha superior horizontal
   ============================================================ */
.panel.panel--film,
.panel.panel--album {
  flex-direction: column; /* header no topo, corpo logo abaixo */
  padding: 0;
}

.panel__header {
  width: 100%;
  background: #2a2a2a;
  border-bottom: 1px solid #333;
  border-radius: 10px 10px 0 0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

/* título à esquerda, botões à direita */
.panel__header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

/* grupo de botões de controle */
.panel__header-actions {
  display: flex;
  gap: 6px;
}

.panel__header-actions button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.panel__header-actions button:hover {
  background: #444;
}
.panel__header-actions button[title="Fechar"]:hover {
  background: #e53935;
}

/* corpo continua ocupando todo o espaço */
.panel.panel--film .panel__body,
.panel.panel--album .panel__body {
  padding: 20px 24px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

/* ============================================================
   🧾 Ajuste — Campo "Observações" fluido e alinhado
   ============================================================ */
.panel.panel--film form .film-extra:last-of-type,
.panel.panel--film form textarea#obs {
  width: 100%;
}

.panel.panel--film form textarea#obs {
  display: block;
  flex: 1;
  min-height: 100px;
  max-height: 200px;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}

/* 🔹 Ajusta o espaçamento superior do grupo Observações */
.panel.panel--film form label[for="obs"] {
  margin-top: 6px;
  display: inline-block;
}

/* 🔹 Reequilibra a altura geral do painel */
.panel.panel--film .panel__body {
  gap: 22px;
  padding-bottom: 12px;
}

.panel.is-minimized {
  height: auto;
  overflow: hidden;
  border-radius: 10px;
}
.panel.is-minimized .panel__body,
.panel.is-minimized .panel__footer {
  display: none !important;
}

/* ============================================================
   🪟 Painéis minimizados (dock no canto inferior direito)
   ============================================================ */
.panel-docked {
  position: fixed !important;
  bottom: 16px;
  right: 16px;
  width: 300px;
  height: auto;
  z-index: 99999;
  transition: all 0.35s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.panel-docked .panel__body,
.panel-docked .panel__footer {
  display: none !important;
}

.panel-docked .panel__header {
  cursor: pointer;
  border-radius: 8px;
  background: rgba(50, 50, 50, 0.95);
  justify-content: space-between;
}
.panel-docked .panel__header:hover {
  background: rgba(70, 70, 70, 1);
}

/* ============================================================
   ✨ Botões de ação — Salvar (azul) / Cancelar (vermelho)
   ============================================================ */
.panel__footer .btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #2e2e2e;
  color: #eee;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* 🔹 Salvar — azul */
.panel__footer .btn.btn-primary {
  background: #0044cc;
  border-color: #0055ff;
}
.panel__footer .btn.btn-primary:hover {
  background: #0055ff;
  border-color: #0070ff;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 115, 255, 0.6);
}

/* 🔸 Cancelar — vermelho */
.panel__footer .btn:not(.btn-primary):hover {
  background: #e53935;
  border-color: #ff4444;
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}


/* ============================================================
   Versão
   ============================================================ */
 /* v6.1 Refinado — substitui integralmente v6.0 Landscape */
 
 /* ============================================================
   Block X — 🎬 FILMES UI EXCLUSIVOS
   ------------------------------------------------------------
   Estilos removidos do style.core.css (v6.2)
   Aplicam-se apenas ao módulo “Meus Filmes”
   ============================================================ */

/* ============================================================
   🎞️ CARDS DO MÓDULO FILMES
   ------------------------------------------------------------
   Zoom e sombreamento cinematográfico nos cards
   ============================================================ */
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .5);
}

/* Estilo de cards sem imagem */
.card__media.no-img {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
}
.card__media.no-img::after {
  content: attr(data-title);
  font-weight: 700;
  opacity: .8;
  color: #ddd;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ============================================================
   🔘 BOTÕES GÓTICOS (ADICIONAR FILME / ÁLBUM)
   ------------------------------------------------------------
   Efeito metálico cromado e reflexo animado
   ============================================================ */
.btn-gothic {
  background-color: #3a3a3a; /* fundo sólido metálico */
  border: 1px solid #555;
  font-family: "Cinzel", "Georgia", serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;

  /* Degradê cromado no texto */
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(
    120deg,
    #ffb3b3 0%,   /* vermelho claro */
    #ff6666 40%,  /* vermelho médio */
    #ffd6d6 60%   /* rosado claro */
  );
  background-size: 200% auto;
  animation: shineText 6s linear infinite;
}

/* Hover — brilho avermelhado dark + zoom */
.btn-gothic:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 10px rgba(255, 80, 80, 0.4),
    0 0 20px rgba(200, 40, 40, 0.25);
  background-color: #2a0e0e; /* fundo mais quente */
  border-color: rgba(255, 80, 80, 0.4);
}

/* Active — efeito pressionado */
.btn-gothic:active {
  transform: scale(0.96);
  background-color: #3a1010;
  box-shadow:
    0 0 8px rgba(255, 80, 80, 0.3),
    inset 0 0 10px rgba(0, 0, 0, 0.6);
}

/* Reflexo animado lateral */
.btn-gothic::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.4) 0%,
    rgba(255,255,255,0.15) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  z-index: 2;
  pointer-events: none;
}
.btn-gothic:hover::after {
  animation: shine 1s ease forwards;
}

/* ============================================================
   ✨ ANIMAÇÕES — cromado e reflexo
   ============================================================ */
@keyframes shineText {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes shine {
  0%   { left: -75%; }
  100% { left: 125%; }
}


/* ============================================================
   ✅ FINAL DO ARQUIVO — style.filmes.css (v6.0 PREVIEW)
   ------------------------------------------------------------
   Arquitetura modular:
   • Block 1 — Variables & Base Components
   • Block 2 — Light Sweep Effect
   • Block 3 — Album vs Filme Coloring
   • Block 4 — Action Menu
   • Block 5 — Move Panel
   • Block 6 — View Modes
   • Block 7 — Transitions & Animations
   • Block 8 — Responsive
   • Block 9 — Edit Panels(Filme/Álbum)
   ------------------------------------------------------------
   Próxima etapa sugerida (v6.1): extrair “modals” e “menus”
   para arquivos compartilhados (style.modals.css, style.menus.css)
   ============================================================ */

/* ============================================================
   🔧 CORREÇÃO — BREADCRUMB + CONTADOR (estilo igual a LIVROS)
   ============================================================ */

/* Container e alinhamento à direita */
#view .breadcrumb {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.4rem 1rem 0.6rem;
  font-size: 0.9rem;
  color: dodgerblue;
  gap: 0.4rem;
  text-align: right;
}

/* Texto clicável */
#view .breadcrumb span {
  cursor: pointer;
  transition: color 0.2s ease;
}

/* Pasta atual — cor amarelada com leve brilho */
#view .breadcrumb .current-folder {
  color: #ffcc40;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(255, 220, 100, 0.4);
}

/* Hover azul */
#view .breadcrumb span:not(.current-folder):hover {
  text-decoration: underline;
  color: #1e90ff;
}

/* Remove contador antigo, caso exista */
#view .counter {
  display: none !important;
}

/* ============================================================
   ✅ MOBILE FINAL — Painéis de Filme / Álbum (v6.3 unificado)
   ============================================================ */
@media (max-width: 768px) {

  /* Overlay cobre toda a tela */
  .panel-overlay {
    align-items: flex-start;
    padding-top: 24px;
    overflow-y: auto;
  }

  /* Painel principal — verticalizado e com altura fixa */
  .panel.panel--film,
  .panel.panel--album {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 94%;
    max-width: 420px;
    height: 90vh;
    overflow: hidden;
    margin: 0 auto 32px;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.96);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  }

  /* Cabeçalho fixo */
  .panel__header {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(40,40,40,0.98);
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
  }

  /* Corpo do painel com rolagem vertical */
  .panel__body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  /* Campo de imagem centralizado */
  .panel.panel--film .file-input,
  .panel.panel--album .file-input {
    width: 100%;
    max-width: 260px;
    flex: none;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    padding: 12px;
  }

  .panel.panel--film .file-input img,
  .panel.panel--album .file-input img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px;
  }

  /* Formulário — rolagem interna habilitada */
  .panel.panel--film form,
  .panel.panel--album form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .panel.panel--film input,
  .panel.panel--film textarea,
  .panel.panel--album input,
  .panel.panel--album textarea {
    font-size: 1rem;
    padding: 10px;
    border-radius: 8px;
  }

  .panel.panel--film .row-duo,
  .panel.panel--album .row-duo {
    flex-direction: column;
    gap: 10px;
  }

  /* Rodapé fixo — sempre visível */
  .panel__footer {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: rgba(30, 30, 30, 0.95);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .panel__footer .btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
  }
}

/* ============================================================
   📱 MOBILE COMPLEMENTAR — Menu e Painéis (v6.3b)
   ============================================================ */
@media (max-width: 768px) {

  /* --- 1️⃣ MENU SUPERIOR — Reorganização e espaçamento --- */
  .local-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0 10px;
  }

  .local-menu-center,
  .local-menu-right,
  .local-menu-left {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .local-menu .btn {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    padding: 10px;
  }

  /* 🔹 Oculta o botão “Voltar Álbum” no mobile */
  .local-menu-left [data-action="back"] {
    display: none !important;
  }

  /* --- 2️⃣ AJUSTE DO BOTÃO GRID --- */
  /* (caso ele apareça junto, empurra para nova linha) */
  .local-menu-right {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    order: 2;
  }

  .local-menu-center {
    order: 1;
  }

  /* --- 3️⃣ AJUSTE DO PAINEL DE FILME / ÁLBUM --- */
  .panel.panel--film .panel__body,
  .panel.panel--album .panel__body {
    flex-direction: column;
    align-items: center;
  }

  /* Campo de imagem no topo */
  .panel.panel--film .file-input,
  .panel.panel--album .file-input {
    order: -1; /* imagem primeiro */
    width: 100%;
    max-width: 260px;
    flex: none;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
  }

  /* --- 4️⃣ GARANTE SCROLL INTERNO SUAVE --- */
  .panel__body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* --- 5️⃣ AJUSTE DE CONFORTO VISUAL --- */
  .panel__footer .btn {
    width: 100%;
    font-size: 1rem;
  }
}
