/* ============ 胶卷 - 右侧作品历史 ============ */
.film-reel {
  position: fixed;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
  z-index: 60;
  width: 220px;
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  font-family: 'Bebas Neue', sans-serif;
}
@media (max-width: 1280px) {
  .film-reel { display: none; }
}

/* === 上端卷盘 - 复古金属胶片轴 === */
.film-spool {
  width: 200px;
  height: 200px;
  position: relative;
  flex-shrink: 0;
  margin-bottom: -16px;
  z-index: 3;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.6));
}
.film-spool-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #1a1a1a 0%, #1a1a1a 18%, transparent 19%),
    radial-gradient(circle at 30% 30%, #6a6a6a 0%, #3a3a3a 30%, #1a1a1a 60%, #050505 100%);
  border: 4px solid #2a2a2a;
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.9),
    inset 0 0 4px rgba(255,255,255,0.1),
    0 0 0 2px #0a0a0a,
    0 0 0 6px rgba(120,120,120,0.3);
  position: relative;
  animation: spoolRotate 18s linear infinite;
}
@keyframes spoolRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* 中心轴心 */
.film-spool-hole {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #555 0%, #1a1a1a 50%, #000 100%);
  box-shadow:
    inset 0 0 12px rgba(0,0,0,1),
    0 0 0 2px #2a2a2a,
    0 0 8px rgba(255,255,255,0.08);
}
/* 三根轮辐 */
.film-spool-arm {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px;
  height: 80px;
  background: linear-gradient(to bottom,
    #4a4a4a 0%,
    #6a6a6a 20%,
    #3a3a3a 50%,
    #1a1a1a 100%);
  transform-origin: 50% 0;
  border-radius: 2px;
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.1), inset -1px 0 0 rgba(0,0,0,0.5);
}
.film-spool-arm:nth-child(2) { transform: translate(-50%, 0) rotate(0deg); }
.film-spool-arm:nth-child(3) { transform: translate(-50%, 0) rotate(120deg); }
.film-spool-arm:nth-child(4) { transform: translate(-50%, 0) rotate(240deg); }

.film-spool-label {
  position: absolute;
  width: 100%;
  text-align: center;
  bottom: -22px;
  font-size: 11px;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.55);
  font-weight: 900;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* === 胶片条容器 === */
.film-strip-container {
  width: 220px;
  flex: 1;
  position: relative;
  overflow: hidden;
  /* 顶部和底部的渐变淡出,模拟胶卷消失感 */
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%);
  mask-image: linear-gradient(to bottom,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%);
  cursor: grab;
  margin-top: 18px;
}
.film-strip-container:active {
  cursor: grabbing;
}

/* 胶片条本体 - 真正的胶卷质感:深棕黑色胶片基底+两侧整齐的齿孔阵列 */
.film-strip {
  display: flex;
  flex-direction: column;
  /* 深棕黑色胶片基底 */
  background:
    /* 左右两侧的齿孔阵列 */
    radial-gradient(ellipse 9px 6px at 14px 50%, transparent 0%, transparent 60%, #0a0605 61%) repeat-y left top,
    radial-gradient(ellipse 9px 6px at calc(100% - 14px) 50%, transparent 0%, transparent 60%, #0a0605 61%) repeat-y right top,
    linear-gradient(to right,
      #0a0605 0%,
      #1a0e08 24px,
      #1a0e08 calc(100% - 24px),
      #0a0605 100%);
  background-size: 28px 18px, 28px 18px, 100% 100%;
  background-position: left top, right top, 0 0;
  padding: 10px 28px;
  gap: 6px;
  transition: transform 0.4s ease-out;
  position: relative;
}

/* 空状态 */
.film-empty {
  text-align: center;
  font-size: 10px;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.3);
  padding: 60px 0;
  font-family: 'Bebas Neue', monospace;
}

/* 单个胶片帧 - 16:9曝光区,在棕黑胶片基底上 */
.film-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  position: relative;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(180,160,120,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.film-frame:hover {
  transform: translateY(-2px);
  border-color: rgba(255,230,170,0.7);
  box-shadow: 0 4px 16px rgba(0,0,0,0.7), 0 0 12px rgba(255,200,100,0.2);
  z-index: 5;
}
.film-frame.is-new {
  animation: filmFrameIn 0.6s ease-out;
}
@keyframes filmFrameIn {
  from { opacity: 0; transform: translateY(40px) scale(0.85); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.film-frame .film-frame-grade {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 6px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  border-radius: 2px;
  font-family: 'Bebas Neue', monospace;
  letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.2s, font-size 0.2s;
}
.film-frame:hover .film-frame-grade {
  transform: scale(1.15);
  border-color: rgba(255,230,170,0.7);
}

/* === 作品详情弹窗 === */
.work-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: lightboxFadeIn 0.3s ease;
}
.work-detail-overlay.show { display: flex; }
.work-detail-card {
  max-width: 92vw;
  max-height: 92vh;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 32px;
  cursor: default;
  position: relative;
  overflow-y: auto;
  animation: lightboxImgIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 80px rgba(0,0,0,0.8);
}
.work-detail-close,
.work-detail-download {
  position: absolute;
  top: 20px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.work-detail-close { right: 20px; padding: 6px 12px; }
.work-detail-download { right: 80px; }
.work-detail-close:hover,
.work-detail-download:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
}
.work-detail-content { color: #fff; }
.work-detail-content img.work-detail-img {
  width: 100%;
  max-width: 1280px;
  display: block;
  margin: 0 auto 24px;
  border-radius: 4px;
}
.work-detail-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto 24px;
}
.work-detail-media-block,
.work-upload-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 16px;
}
.work-detail-video { width: 100%; max-height: 70vh; background: #000; border-radius: 6px; }
.work-detail-file-link { color: #ffd36a; font-size: 15px; word-break: break-all; }
.work-upload-panel { max-width: 1280px; margin: 24px auto 0; display: grid; gap: 12px; }
.work-upload-check { color: rgba(255,255,255,0.82); font-size: 14px; }
.work-upload-textarea {
  min-height: 88px;
  resize: vertical;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 10px;
}
.work-upload-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.work-upload-btn {
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
.work-upload-btn.primary { border-color: #ffd36a; color: #ffd36a; }
.work-detail-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.work-detail-info-block {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid rgba(255,255,255,0.3);
  padding: 16px 20px;
}
.work-detail-info-block.mode-wu { border-left-color: #e60012; }
.work-detail-info-block.mode-wen { border-left-color: #c0d8ff; }
.work-detail-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.work-detail-value {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  word-break: break-word;
}
.work-detail-stand-name {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  font-style: italic;
}
.work-detail-tagline {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 4px;
}
.work-detail-overall {
  font-size: 56px;
  font-weight: 900;
  font-family: 'Bebas Neue', monospace;
  letter-spacing: 2px;
  text-align: center;
  padding: 16px;
}
.work-detail-overall.g-S { color: #ffd700; text-shadow: 0 0 20px #ffd700; }
.work-detail-overall.g-A { color: #ff6b6b; text-shadow: 0 0 16px #ff6b6b; }
.work-detail-overall.g-B { color: #4dabf7; }
.work-detail-overall.g-C { color: #adb5bd; }
.work-detail-overall.g-D { color: #868e96; }
.work-detail-overall.g-E { color: #495057; }
.work-detail-grades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.work-detail-grade-cell {
  background: rgba(255,255,255,0.04);
  padding: 10px;
  text-align: center;
  border-radius: 4px;
}
.work-detail-grade-cell-name {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.work-detail-grade-cell-grade {
  font-size: 22px;
  font-weight: 900;
  font-family: 'Bebas Neue', monospace;
}

