
/* ---------------- Library sections and Kinolenta ---------------- */

.library-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.library-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: background 0.16s, color 0.16s;
}

.library-tab .icon {
  width: 15px;
  height: 15px;
}

.library-tab:hover {
  color: var(--text);
}

.library-tab.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.24);
}

.library-status-section {
  margin-top: 38px;
}

.library-status-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.library-status-eyebrow i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status, var(--primary));
  box-shadow: 0 0 10px color-mix(in srgb, var(--status, var(--primary)) 60%, transparent);
}

/* Film strip */

.kinolenta-page .library-intro {
  margin-bottom: 26px;
}

.kinolenta-strip {
  position: relative;
  overflow: hidden;
  padding: 23px 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    #08080c;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.7);
}

.kinolenta-strip::before,
.kinolenta-strip::after {
  content: '';
  position: absolute;
  right: 15px;
  left: 15px;
  height: 7px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0 9px, transparent 9px 19px);
  opacity: 0.34;
  pointer-events: none;
}

.kinolenta-strip::before {
  top: 7px;
}

.kinolenta-strip::after {
  bottom: 7px;
}

.kinolenta-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 5px 3px 7px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.kinolenta-frame {
  display: flex;
  width: 160px;
  flex: 0 0 160px;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
  transition: transform 0.2s;
}

.kinolenta-frame:hover {
  transform: translateY(-4px);
}

.kinolenta-cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 2px solid #efe9dc;
  border-radius: 7px;
  background: #15151d;
  box-shadow: 0 10px 24px -16px #000;
}

.kinolenta-cover svg {
  display: block;
  width: 100%;
  height: 100%;
}

.kinolenta-frame-copy {
  display: block;
  min-width: 0;
  padding: 0 2px;
}

.kinolenta-frame-copy b {
  display: -webkit-box;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kinolenta-frame-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kinolenta-empty {
  margin-top: 20px;
}

@media (max-width: 620px) {
  .library-tabs {
    width: 100%;
  }
  .library-tab {
    flex: 1;
    padding: 0 9px;
  }
  .kinolenta-frame {
    width: 136px;
    flex-basis: 136px;
  }
  .kinolenta-strip {
    padding: 21px 11px;
  }
}
