.swf-main {
  position: relative;
  z-index: 1;
}

.swf-shell {
  border: 2px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8efd9 0%, #f1e2bf 100%);
  box-shadow: 0 10px 20px rgba(79, 50, 25, 0.08);
}

.swf-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  font-size: 0.75rem;
  font-weight: 700;
}

.swf-title,
.swf-card-title {
  font-family: "Bree Serif", serif;
}

.swf-title {
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
}

.swf-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #a78657;
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  background: #fff8e6;
  font-size: 0.78rem;
  font-weight: 600;
}

.swf-label {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4a311f;
}

.swf-select {
  border-color: #a37f4f;
  background-color: #fff9ee;
}

.swf-btn,
.swf-btn-secondary {
  border: 1px solid #402818;
  font-weight: 700;
}

.swf-btn {
  background: var(--green);
  color: #f4ebd8;
}

.swf-btn:hover {
  background: #1f3c33;
  color: #f4ebd8;
}

.swf-btn-secondary {
  background: #f3dfb4;
  color: #402818;
}

.swf-btn-secondary:hover {
  background: #edd39d;
  color: #402818;
}

.swf-card {
  border: 2px solid #b79866;
  border-radius: 12px;
  background: #fff6e0;
  color: #2c221b;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(71, 46, 24, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.swf-card--locked {
  position: relative;
}

.swf-card--locked .swf-thumb {
  filter: grayscale(30%) brightness(0.7);
}

.swf-card-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #a78657;
  background: rgba(38, 25, 16, 0.88);
  color: #f6ead3;
  font-size: 0.7rem;
  font-weight: 700;
}

.swf-locked-open {
  color: #8b2e1f;
}

.swf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(71, 46, 24, 0.12);
}

.swf-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.swf-thumb-wrap {
  position: relative;
}

.swf-thumb-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.22rem 0.46rem;
  border-radius: 6px;
  background: rgba(14, 14, 14, 0.86);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.swf-type {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--burgundy);
}

.swf-author {
  margin: 0;
  font-size: 0.86rem;
  color: #4f3725;
}

.swf-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #a78657;
  background: #fff8e6;
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.73rem;
  font-weight: 700;
}

.swf-open {
  font-size: 0.8rem;
  font-weight: 700;
  color: #3f2818;
}

.swf-empty {
  border: 1px dashed #9f7f50;
  border-radius: 10px;
  background: #fbefd4;
  padding: 0.8rem;
  text-align: center;
  color: #603f27;
  font-weight: 600;
}

.search-highlight {
  background-color: rgba(255, 222, 0, 0.35);
  color: inherit;
  padding: 1px 3px;
  border-radius: 3px;
}
