/* ===== 全局 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f6f8;
  color: #1a1a2e;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.container { max-width: 1200px; margin: 0 auto; }

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 2rem;
  text-align: center;
}

/* ===== 文件夹卡片 ===== */
.folder-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.account-folder,
.folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  padding: 1rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #1a1a2e;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.account-folder::before,
.folder::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--card-color, #ddd);
  border-radius: 16px 0 0 16px;
}

.account-folder:hover,
.folder:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.folder-icon { font-size: 48px; line-height: 1; margin-bottom: 0.5rem; }

.account-folder span,
.folder span {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb { margin-bottom: 1.5rem; font-size: 0.9rem; color: #888; }
.breadcrumb a { color: #2c3e50; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s;
}

.video-card:hover { transform: scale(1.02); }

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

.video-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.video-info { padding: 1rem 1.2rem; }

.video-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-info span { font-size: 0.8rem; color: #555; }

.video-page {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 2rem;
  text-align: center;
}

.video-page h1 { margin-bottom: 0.5rem; font-size: 1.8rem; }
.video-page .meta { color: #555; margin-bottom: 2rem; }

#ayaee {
  min-height: 200px;
  background: #f9f9f9;
  border: 2px dashed #ddd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

.error-page { text-align: center; padding: 4rem 1rem; }
.error-page h1 { font-size: 4rem; color: #2c3e50; margin-bottom: 1rem; }
.error-page p { font-size: 1.2rem; color: #555; }
.error-page a { color: #2c3e50; text-decoration: none; }
.error-page a:hover { text-decoration: underline; }

.back-link { display: inline-block; margin-top: 1rem; color: #2c3e50; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
  body { padding: 1rem; }
  h1 { font-size: 1.6rem; }
  .folder-grid { gap: 1rem; }
  .account-folder, .folder { width: 100px; height: 100px; }
  .folder-icon { font-size: 36px; }
  .video-grid { grid-template-columns: 1fr; }
}
