#myVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
}

body {
  background: linear-gradient(135deg, #232e36 0%, #2c3a42 100%);
  color: #cfd8dc;
  min-height: 100vh;
}

/* Header animation */
header {
  animation: fadeIn 1s ease-out;
}

/* Search container animation */
.search-container {
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeIn 1s ease-out;
}

/* Stats container animation */
.stats-container {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeIn 1s ease-out;
}

/* Footer animation */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  z-index: 100;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease;
  animation: fadeIn 1s ease-out;
}

/* Stylish divider animation */
.stylish-divider {
  height: 3px;
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(
    to right,
    transparent 0%,
    #f4f4f4 20%,
    #f4f4f4 80%,
    transparent 100%
  );
  border-radius: 2px;
  opacity: 0.3;
  animation: fadeIn 1s ease-out;
}

.file-card {
  background: rgba(44, 58, 66, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(58, 92, 92, 0.18);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.file-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(58, 92, 92, 0.10), rgba(224, 90, 71, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.file-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(35, 46, 54, 0.3);
  border-color: #4a6a6a;
}
.file-card:hover::before {
  opacity: 1;
}
.download-btn {
  background: linear-gradient(135deg, #3a5c5c 0%, #4a6a6a 100%);
  color: #f4f4f4;
  border: 1px solid #3a5c5c;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.download-btn:hover {
  background: #e05a47;
  color: #fff;
  border-color: #e05a47;
}
.preview-btn {
  background: #f7c873;
  color: #232e36;
  border: 1px solid #f7c873;
  box-shadow: 0 2px 8px rgba(35, 46, 54, 0.10);
  font-weight: 600;
}
.preview-btn:hover {
  background: #e05a47;
  color: #fff;
  border-color: #e05a47;
}
.preview-overlay {
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.35s cubic-bezier(0.4,0,0.2,1);
  opacity: 0;
  transform: scale(0.98);
}
.file-card:hover .preview-overlay {
  opacity: 1 !important;
  transform: scale(1.02);
}
.preview-overlay .preview-btn {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
}
.file-card:hover .preview-overlay .preview-btn {
  transform: scale(1.08);
  box-shadow: 0 4px 24px 0 rgba(44,58,66,0.18);
}
.preview-overlay .absolute.inset-0 {
  background: linear-gradient(135deg, rgba(44,58,66,0.18) 60%, rgba(58,92,92,0.10) 100%);
  backdrop-filter: blur(2px);
}
.file-id, .extension-badge {
  background: rgba(58, 92, 92, 0.13);
  color: #f4f4f4;
}
.stat-value {
  background: linear-gradient(135deg, #f7c873, #e05a47);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Segoe UI', 'Arial', 'sans-serif';
  font-size: 1.5rem;
  font-weight: bold;
}
.stat-label {
  color: #b0bec5;
}
.search-input {
  background: rgba(44, 58, 66, 0.65);
  backdrop-filter: blur(6px);
  border: 1.5px solid #3a5c5c;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(58,92,92,0.15);
  box-shadow: 0 2px 12px 0 rgba(44,58,66,0.10);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  width: 100%;
  transition: all 0.3s ease;
  outline: none;
}
.search-input:focus {
  border-color: #f7c873;
  box-shadow: 0 0 0 3px rgba(247, 200, 115, 0.15);
}
.footer {
  background: rgba(44, 58, 66, 0.35);
  color: #b0bec5;
}
.footer a {
  color: #f7c873;
}
.footer a:hover {
  color: #e05a47;
}
.loading {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
}
@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .stats-container {
    flex-direction: column;
    align-items: center;
  }
}




.file-id {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #fff;
}
.extension-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #fff;
  text-transform: uppercase;
}
.node-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  background: rgba(44, 58, 66, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

/* Node 1: Amaterasu — Soft Amber Gold */
.node-badge[data-node-id="1"] {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* Node 2: Tsukuyomi — Soft Cyan Blue */
.node-badge[data-node-id="2"] {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
}

/* Node 3: Susanoo — Soft Mint Emerald */
.node-badge[data-node-id="3"] {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* Node 4: Raijin — Soft Lavender Violet */
.node-badge[data-node-id="4"] {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

/* Node 5: Fujin — Soft Coral Rose */
.node-badge[data-node-id="5"] {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
}
.download-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}
.download-notification.show {
  transform: translateY(0);
  opacity: 1;
}
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  z-index: 100;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease;
}
.footer.visible {
  transform: translateY(0);
  opacity: 1;
}
.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}
.footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-hover-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 99;
}
.video-preview-frame {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.video-preview-el {
  border-radius: 0.75rem;
  max-width: 100%;
  max-height: 50vh;
  width: auto;
  height: auto;
  box-shadow: 0 2px 16px 0 rgba(44, 58, 66, 0.18);
  background: #181c20;
}
@media (min-width: 768px) {
  .video-preview-el {
    max-width: 640px;
  }
}
#previewContent.preview-content-media {
  overflow: hidden;
  position: relative;
}
.hljs {
  background: transparent;
  padding: 0;
}
.folder-modal-content {
  max-height: 75vh;
  width: 75vw;
  max-width: 75vw;
  display: flex;
  flex-direction: column;
}
.folder-scrollable-tree {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 0.5rem;
}
pre {
  margin: 0;
  padding: 0;
  tab-size: 4;
  -moz-tab-size: 4;
  -o-tab-size: 4;
}
code {
  font-family: 'Fira Code', 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
  line-height: 1.5;
}
.list-view #fileList {
  display: block;
}
.list-view .file-card {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  min-height: 90px;
  box-shadow: 0 2px 8px 0 rgba(44,58,66,0.06);
}
.list-view .file-content {
  flex: 1 1 0%;
  text-align: left;
  margin-left: 1.5rem;
  filter: none !important;
}
.list-view .file-id,
.list-view .extension-badge {
  position: static;
  margin-right: 1.5rem;
  margin-bottom: 0;
  background: none;
  color: #b0bec5;
  font-size: 0.9rem;
}
.list-view .buttons-container {
  margin-bottom: 0;
  margin-left: 1.5rem;
}
.list-view .preview-overlay,
.list-view .preview-container {
  position: static !important;
  display: none !important;
}
.list-view .file-card .text-center {
  text-align: left !important;
}
.list-view .file-card .text-5xl {
  font-size: 2rem !important;
  margin-bottom: 0 !important;
}
.list-view .file-card h3 {
  margin-bottom: 0.25rem !important;
}
.list-view .file-card .mb-2 {
  margin-bottom: 0.25rem !important;
}
.list-view .file-card .mb-4 {
  margin-bottom: 0 !important;
}

/* Folder Download Archive Modal */
#folderDownloadModal {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.folder-archive-modal-box {
  background: #1f2937; /* Tailwind gray-850 / gray-900 */
  background: linear-gradient(145deg, #1e293b 0%, #111827 100%);
  border: 1px solid #374151;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.folder-archive-bar {
  background: linear-gradient(90deg, #3a5c5c 0%, #f7c873 100%);
  box-shadow: 0 0 10px rgba(247, 200, 115, 0.35);
  transition: width 0.3s ease-out;
  width: var(--progress-pct, 5%);
}
